diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevision.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevision.java index 37e715b50d9a..102101aaf0f0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevision.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevision.java @@ -106,13 +106,13 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Is deprecated, may not be used, only preserved for historical
-     * purposes.
+     * Is archived and can no longer receive traffic, only preserved for
+     * historical purposes.
      * 
* - * DEPRECATED = 2; + * ARCHIVED = 3; */ - DEPRECATED(2), + ARCHIVED(3), UNRECOGNIZED(-1), ; @@ -152,13 +152,13 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Is deprecated, may not be used, only preserved for historical
-     * purposes.
+     * Is archived and can no longer receive traffic, only preserved for
+     * historical purposes.
      * 
* - * DEPRECATED = 2; + * ARCHIVED = 3; */ - public static final int DEPRECATED_VALUE = 2; + public static final int ARCHIVED_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -188,8 +188,8 @@ public static State forNumber(int value) { return STATE_UNSPECIFIED; case 1: return ACTIVE; - case 2: - return DEPRECATED; + case 3: + return ARCHIVED; default: return null; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevisionProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevisionProto.java index 58081b9a2330..eb7756b02a67 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevisionProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevisionProto.java @@ -59,28 +59,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ield_behavior.proto\032\031google/api/resource" + ".proto\0326google/cloud/aiplatform/v1beta1/" + "reasoning_engine.proto\032\037google/protobuf/" - + "timestamp.proto\"\274\004\n\036ReasoningEngineRunti" + + "timestamp.proto\"\272\004\n\036ReasoningEngineRunti" + "meRevision\022\021\n\004name\030\001 \001(\tB\003\340A\010\022G\n\004spec\030\003 " + "\001(\01324.google.cloud.aiplatform.v1beta1.Re" + "asoningEngineSpecB\003\340A\005\0224\n\013create_time\030\004 " + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022Y\n\005" + "state\030\005 \001(\0162E.google.cloud.aiplatform.v1" + "beta1.ReasoningEngineRuntimeRevision.Sta" - + "teB\003\340A\003\":\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" - + "\n\n\006ACTIVE\020\001\022\016\n\nDEPRECATED\020\002:\360\001\352A\354\001\n8aipl" - + "atform.googleapis.com/ReasoningEngineRun" - + "timeRevision\022oprojects/{project}/locatio" - + "ns/{location}/reasoningEngines/{reasonin" - + "g_engine}/runtimeRevisions/{runtime_revi" - + "sion}*\037reasoningEngineRuntimeRevisions2\036" - + "reasoningEngineRuntimeRevisionB\372\001\n#com.g" - + "oogle.cloud.aiplatform.v1beta1B#Reasonin" - + "gEngineRuntimeRevisionProtoP\001ZCcloud.goo" - + "gle.com/go/aiplatform/apiv1beta1/aiplatf" - + "ormpb;aiplatformpb\252\002\037Google.Cloud.AIPlat" - + "form.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V" - + "1beta1\352\002\"Google::Cloud::AIPlatform::V1be" - + "ta1b\006proto3" + + "teB\003\340A\003\"8\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + + "\n\n\006ACTIVE\020\001\022\014\n\010ARCHIVED\020\003:\360\001\352A\354\001\n8aiplat" + + "form.googleapis.com/ReasoningEngineRunti" + + "meRevision\022oprojects/{project}/locations" + + "/{location}/reasoningEngines/{reasoning_" + + "engine}/runtimeRevisions/{runtime_revisi" + + "on}*\037reasoningEngineRuntimeRevisions2\036re" + + "asoningEngineRuntimeRevisionB\372\001\n#com.goo" + + "gle.cloud.aiplatform.v1beta1B#ReasoningE" + + "ngineRuntimeRevisionProtoP\001ZCcloud.googl" + + "e.com/go/aiplatform/apiv1beta1/aiplatfor" + + "mpb;aiplatformpb\252\002\037Google.Cloud.AIPlatfo" + + "rm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1b" + + "eta1\352\002\"Google::Cloud::AIPlatform::V1beta" + + "1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine_runtime_revision.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine_runtime_revision.proto index 28a8e097863c..f75aafdd31e4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine_runtime_revision.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine_runtime_revision.proto @@ -47,9 +47,9 @@ message ReasoningEngineRuntimeRevision { // Is deployed and ready to be used. ACTIVE = 1; - // Is deprecated, may not be used, only preserved for historical - // purposes. - DEPRECATED = 2; + // Is archived and can no longer receive traffic, only preserved for + // historical purposes. + ARCHIVED = 3; } // Identifier. The resource name of the ReasoningEngineRuntimeRevision. diff --git a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1/reflect-config.json b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1/reflect-config.json index 055c8ab36f6b..43936ae6fec9 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1/reflect-config.json +++ b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1/reflect-config.json @@ -1826,6 +1826,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1.Instance$ObservabilityInstanceInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.Instance$ObservabilityInstanceInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1.Instance$PscAutoConnectionConfig", "queryAllDeclaredConstructors": true, @@ -1898,6 +1916,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1.Instance$QueryInsightsInstanceInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.Instance$QueryInsightsInstanceInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1.Instance$ReadPoolConfig", "queryAllDeclaredConstructors": true, diff --git a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1alpha/reflect-config.json b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1alpha/reflect-config.json index 4acef6e024a0..eec7cc7efcb1 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1alpha/reflect-config.json +++ b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1alpha/reflect-config.json @@ -1907,6 +1907,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1alpha.Instance$ObservabilityInstanceInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1alpha.Instance$ObservabilityInstanceInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1alpha.Instance$PscAutoConnectionConfig", "queryAllDeclaredConstructors": true, @@ -2015,6 +2033,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1alpha.Instance$QueryInsightsInstanceInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1alpha.Instance$QueryInsightsInstanceInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1alpha.Instance$ReadPoolConfig", "queryAllDeclaredConstructors": true, diff --git a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1beta/reflect-config.json b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1beta/reflect-config.json index cf325d99a88d..acb4df63f141 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1beta/reflect-config.json +++ b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1beta/reflect-config.json @@ -1907,6 +1907,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1beta.Instance$ObservabilityInstanceInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1beta.Instance$ObservabilityInstanceInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1beta.Instance$PscAutoConnectionConfig", "queryAllDeclaredConstructors": true, @@ -2015,6 +2033,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1beta.Instance$QueryInsightsInstanceInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1beta.Instance$QueryInsightsInstanceInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1beta.Instance$ReadPoolConfig", "queryAllDeclaredConstructors": true, diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientHttpJsonTest.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientHttpJsonTest.java index 69001baac073..4960363105cb 100644 --- a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientHttpJsonTest.java +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientHttpJsonTest.java @@ -1763,7 +1763,9 @@ public void getInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1833,7 +1835,9 @@ public void getInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1905,7 +1909,9 @@ public void createInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1984,7 +1990,9 @@ public void createInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2063,7 +2071,9 @@ public void createSecondaryInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2143,7 +2153,9 @@ public void createSecondaryInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2282,7 +2294,9 @@ public void updateInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2320,7 +2334,9 @@ public void updateInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2378,7 +2394,9 @@ public void updateInstanceExceptionTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2509,7 +2527,9 @@ public void failoverInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2584,7 +2604,9 @@ public void failoverInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2661,7 +2683,9 @@ public void injectFaultTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2738,7 +2762,9 @@ public void injectFaultTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2817,7 +2843,9 @@ public void restartInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2892,7 +2920,9 @@ public void restartInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientTest.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientTest.java index c06a0c5f674f..a82ef397fede 100644 --- a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientTest.java +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientTest.java @@ -1652,7 +1652,9 @@ public void getInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1716,7 +1718,9 @@ public void getInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1780,7 +1784,9 @@ public void createInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1858,7 +1864,9 @@ public void createInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1936,7 +1944,9 @@ public void createSecondaryInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2016,7 +2026,9 @@ public void createSecondaryInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2155,7 +2167,9 @@ public void updateInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2314,7 +2328,9 @@ public void failoverInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2386,7 +2402,9 @@ public void failoverInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2458,7 +2476,9 @@ public void injectFaultTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2533,7 +2553,9 @@ public void injectFaultTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2608,7 +2630,9 @@ public void restartInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2680,7 +2704,9 @@ public void restartInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminClientHttpJsonTest.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminClientHttpJsonTest.java index 6948894a5b32..fd76824febd1 100644 --- a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminClientHttpJsonTest.java +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminClientHttpJsonTest.java @@ -1805,7 +1805,9 @@ public void getInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1880,7 +1882,9 @@ public void getInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1957,7 +1961,9 @@ public void createInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2041,7 +2047,9 @@ public void createInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2125,7 +2133,9 @@ public void createSecondaryInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2210,7 +2220,9 @@ public void createSecondaryInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2354,7 +2366,9 @@ public void updateInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2397,7 +2411,9 @@ public void updateInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2460,7 +2476,9 @@ public void updateInstanceExceptionTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2596,7 +2614,9 @@ public void failoverInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2676,7 +2696,9 @@ public void failoverInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2758,7 +2780,9 @@ public void injectFaultTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2840,7 +2864,9 @@ public void injectFaultTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2924,7 +2950,9 @@ public void restartInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -3004,7 +3032,9 @@ public void restartInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminClientTest.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminClientTest.java index a73237fe6162..cfefcd9666c4 100644 --- a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminClientTest.java +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminClientTest.java @@ -1688,7 +1688,9 @@ public void getInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1757,7 +1759,9 @@ public void getInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1826,7 +1830,9 @@ public void createInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1909,7 +1915,9 @@ public void createInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1992,7 +2000,9 @@ public void createSecondaryInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2077,7 +2087,9 @@ public void createSecondaryInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2221,7 +2233,9 @@ public void updateInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2385,7 +2399,9 @@ public void failoverInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2462,7 +2478,9 @@ public void failoverInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2539,7 +2557,9 @@ public void injectFaultTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2619,7 +2639,9 @@ public void injectFaultTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2699,7 +2721,9 @@ public void restartInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2776,7 +2800,9 @@ public void restartInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClientHttpJsonTest.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClientHttpJsonTest.java index 2a6638fe4240..e827a018b08a 100644 --- a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClientHttpJsonTest.java +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClientHttpJsonTest.java @@ -1791,7 +1791,9 @@ public void getInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1865,7 +1867,9 @@ public void getInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1941,7 +1945,9 @@ public void createInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2024,7 +2030,9 @@ public void createInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2107,7 +2115,9 @@ public void createSecondaryInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2191,7 +2201,9 @@ public void createSecondaryInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2334,7 +2346,9 @@ public void updateInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2376,7 +2390,9 @@ public void updateInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2438,7 +2454,9 @@ public void updateInstanceExceptionTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2573,7 +2591,9 @@ public void failoverInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2652,7 +2672,9 @@ public void failoverInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2733,7 +2755,9 @@ public void injectFaultTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2814,7 +2838,9 @@ public void injectFaultTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2897,7 +2923,9 @@ public void restartInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2976,7 +3004,9 @@ public void restartInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClientTest.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClientTest.java index 66b3213bdb05..291e4d8906d0 100644 --- a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClientTest.java +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClientTest.java @@ -1676,7 +1676,9 @@ public void getInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1744,7 +1746,9 @@ public void getInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1812,7 +1816,9 @@ public void createInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1894,7 +1900,9 @@ public void createInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1976,7 +1984,9 @@ public void createSecondaryInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2060,7 +2070,9 @@ public void createSecondaryInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2203,7 +2215,9 @@ public void updateInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2366,7 +2380,9 @@ public void failoverInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2442,7 +2458,9 @@ public void failoverInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2518,7 +2536,9 @@ public void injectFaultTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2597,7 +2617,9 @@ public void injectFaultTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2676,7 +2698,9 @@ public void restartInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2752,7 +2776,9 @@ public void restartInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setQueryInsightsInfo(Instance.QueryInsightsInstanceInfo.newBuilder().build()) .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) + .setObservabilityInstanceInfo(Instance.ObservabilityInstanceInfo.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Instance.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Instance.java index 4e8b54151ae2..b23a46a1b9fc 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Instance.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Instance.java @@ -4029,34 +4029,2767 @@ public com.google.protobuf.Parser getParserForType( } } + public interface QueryInsightsInstanceInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. Whether Query Insights is enabled.
+     * 
+ * + * bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
+     * Output only. Whether to record application tags.
+     * 
+ * + * bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The recordApplicationTags. + */ + boolean getRecordApplicationTags(); + + /** + * + * + *
+     * Output only. Whether to record client address.
+     * 
+ * + * bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The recordClientAddress. + */ + boolean getRecordClientAddress(); + + /** + * + * + *
+     * Output only. Maximum query string length.
+     * 
+ * + * uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The queryStringLength. + */ + int getQueryStringLength(); + + /** + * + * + *
+     * Output only. Number of query execution plans captured per minute.
+     * 
+ * + * uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The queryPlansPerMinute. + */ + int getQueryPlansPerMinute(); + } + + /** + * + * + *
+   * Instance level Query Insights information, which is read-only and available
+   * in the output only.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo} + */ + public static final class QueryInsightsInstanceInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo) + QueryInsightsInstanceInfoOrBuilder { + 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= */ "", + "QueryInsightsInstanceInfo"); + } + + // Use QueryInsightsInstanceInfo.newBuilder() to construct. + private QueryInsightsInstanceInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryInsightsInstanceInfo() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_QueryInsightsInstanceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_QueryInsightsInstanceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.class, + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + + /** + * + * + *
+     * Output only. Whether Query Insights is enabled.
+     * 
+ * + * bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 2; + private boolean recordApplicationTags_ = false; + + /** + * + * + *
+     * Output only. Whether to record application tags.
+     * 
+ * + * bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The recordApplicationTags. + */ + @java.lang.Override + public boolean getRecordApplicationTags() { + return recordApplicationTags_; + } + + public static final int RECORD_CLIENT_ADDRESS_FIELD_NUMBER = 3; + private boolean recordClientAddress_ = false; + + /** + * + * + *
+     * Output only. Whether to record client address.
+     * 
+ * + * bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The recordClientAddress. + */ + @java.lang.Override + public boolean getRecordClientAddress() { + return recordClientAddress_; + } + + public static final int QUERY_STRING_LENGTH_FIELD_NUMBER = 4; + private int queryStringLength_ = 0; + + /** + * + * + *
+     * Output only. Maximum query string length.
+     * 
+ * + * uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The queryStringLength. + */ + @java.lang.Override + public int getQueryStringLength() { + return queryStringLength_; + } + + public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 5; + private int queryPlansPerMinute_ = 0; + + /** + * + * + *
+     * Output only. Number of query execution plans captured per minute.
+     * 
+ * + * uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The queryPlansPerMinute. + */ + @java.lang.Override + public int getQueryPlansPerMinute() { + return queryPlansPerMinute_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (recordApplicationTags_ != false) { + output.writeBool(2, recordApplicationTags_); + } + if (recordClientAddress_ != false) { + output.writeBool(3, recordClientAddress_); + } + if (queryStringLength_ != 0) { + output.writeUInt32(4, queryStringLength_); + } + if (queryPlansPerMinute_ != 0) { + output.writeUInt32(5, queryPlansPerMinute_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + if (recordApplicationTags_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, recordApplicationTags_); + } + if (recordClientAddress_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, recordClientAddress_); + } + if (queryStringLength_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(4, queryStringLength_); + } + if (queryPlansPerMinute_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(5, queryPlansPerMinute_); + } + 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.alloydb.v1.Instance.QueryInsightsInstanceInfo)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo other = + (com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false; + if (getRecordClientAddress() != other.getRecordClientAddress()) return false; + if (getQueryStringLength() != other.getQueryStringLength()) return false; + if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) 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) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags()); + hash = (37 * hash) + RECORD_CLIENT_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordClientAddress()); + hash = (37 * hash) + QUERY_STRING_LENGTH_FIELD_NUMBER; + hash = (53 * hash) + getQueryStringLength(); + hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER; + hash = (53 * hash) + getQueryPlansPerMinute(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo 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.alloydb.v1.Instance.QueryInsightsInstanceInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo 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.alloydb.v1.Instance.QueryInsightsInstanceInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo 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.alloydb.v1.Instance.QueryInsightsInstanceInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo 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.alloydb.v1.Instance.QueryInsightsInstanceInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo 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.alloydb.v1.Instance.QueryInsightsInstanceInfo 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; + } + + /** + * + * + *
+     * Instance level Query Insights information, which is read-only and available
+     * in the output only.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo) + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_QueryInsightsInstanceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_QueryInsightsInstanceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.class, + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + recordApplicationTags_ = false; + recordClientAddress_ = false; + queryStringLength_ = 0; + queryPlansPerMinute_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_QueryInsightsInstanceInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo build() { + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo buildPartial() { + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo result = + new com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.recordApplicationTags_ = recordApplicationTags_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.recordClientAddress_ = recordClientAddress_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.queryStringLength_ = queryStringLength_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.queryPlansPerMinute_ = queryPlansPerMinute_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo) { + return mergeFrom((com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo other) { + if (other + == com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (other.getRecordApplicationTags() != false) { + setRecordApplicationTags(other.getRecordApplicationTags()); + } + if (other.getRecordClientAddress() != false) { + setRecordClientAddress(other.getRecordClientAddress()); + } + if (other.getQueryStringLength() != 0) { + setQueryStringLength(other.getQueryStringLength()); + } + if (other.getQueryPlansPerMinute() != 0) { + setQueryPlansPerMinute(other.getQueryPlansPerMinute()); + } + 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 8: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + recordApplicationTags_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + recordClientAddress_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + queryStringLength_ = input.readUInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + queryPlansPerMinute_ = input.readUInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + 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 boolean enabled_; + + /** + * + * + *
+       * Output only. Whether Query Insights is enabled.
+       * 
+ * + * bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + /** + * + * + *
+       * Output only. Whether Query Insights is enabled.
+       * 
+ * + * bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Whether Query Insights is enabled.
+       * 
+ * + * bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private boolean recordApplicationTags_; + + /** + * + * + *
+       * Output only. Whether to record application tags.
+       * 
+ * + * bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The recordApplicationTags. + */ + @java.lang.Override + public boolean getRecordApplicationTags() { + return recordApplicationTags_; + } + + /** + * + * + *
+       * Output only. Whether to record application tags.
+       * 
+ * + * bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The recordApplicationTags to set. + * @return This builder for chaining. + */ + public Builder setRecordApplicationTags(boolean value) { + + recordApplicationTags_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Whether to record application tags.
+       * 
+ * + * bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRecordApplicationTags() { + bitField0_ = (bitField0_ & ~0x00000002); + recordApplicationTags_ = false; + onChanged(); + return this; + } + + private boolean recordClientAddress_; + + /** + * + * + *
+       * Output only. Whether to record client address.
+       * 
+ * + * bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The recordClientAddress. + */ + @java.lang.Override + public boolean getRecordClientAddress() { + return recordClientAddress_; + } + + /** + * + * + *
+       * Output only. Whether to record client address.
+       * 
+ * + * bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The recordClientAddress to set. + * @return This builder for chaining. + */ + public Builder setRecordClientAddress(boolean value) { + + recordClientAddress_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Whether to record client address.
+       * 
+ * + * bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRecordClientAddress() { + bitField0_ = (bitField0_ & ~0x00000004); + recordClientAddress_ = false; + onChanged(); + return this; + } + + private int queryStringLength_; + + /** + * + * + *
+       * Output only. Maximum query string length.
+       * 
+ * + * uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The queryStringLength. + */ + @java.lang.Override + public int getQueryStringLength() { + return queryStringLength_; + } + + /** + * + * + *
+       * Output only. Maximum query string length.
+       * 
+ * + * uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The queryStringLength to set. + * @return This builder for chaining. + */ + public Builder setQueryStringLength(int value) { + + queryStringLength_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Maximum query string length.
+       * 
+ * + * uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearQueryStringLength() { + bitField0_ = (bitField0_ & ~0x00000008); + queryStringLength_ = 0; + onChanged(); + return this; + } + + private int queryPlansPerMinute_; + + /** + * + * + *
+       * Output only. Number of query execution plans captured per minute.
+       * 
+ * + * uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The queryPlansPerMinute. + */ + @java.lang.Override + public int getQueryPlansPerMinute() { + return queryPlansPerMinute_; + } + + /** + * + * + *
+       * Output only. Number of query execution plans captured per minute.
+       * 
+ * + * uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The queryPlansPerMinute to set. + * @return This builder for chaining. + */ + public Builder setQueryPlansPerMinute(int value) { + + queryPlansPerMinute_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Number of query execution plans captured per minute.
+       * 
+ * + * uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearQueryPlansPerMinute() { + bitField0_ = (bitField0_ & ~0x00000010); + queryPlansPerMinute_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo) + private static final com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo(); + } + + public static com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryInsightsInstanceInfo 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.alloydb.v1.Instance.QueryInsightsInstanceInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public interface ObservabilityInstanceConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Observability feature status for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ + boolean hasEnabled(); + + /** + * + * + *
+     * Observability feature status for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
+     * Preserve comments in query string for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool preserve_comments = 2; + * + * @return Whether the preserveComments field is set. + */ + boolean hasPreserveComments(); + + /** + * + * + *
+     * Preserve comments in query string for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool preserve_comments = 2; + * + * @return The preserveComments. + */ + boolean getPreserveComments(); + + /** + * + * + *
+     * Track wait events during query execution for an instance.
+     * This flag is turned "on" by default but tracking is enabled only after
+     * observability enabled flag is also turned on.
+     * 
+ * + * optional bool track_wait_events = 3; + * + * @return Whether the trackWaitEvents field is set. + */ + boolean hasTrackWaitEvents(); + + /** + * + * + *
+     * Track wait events during query execution for an instance.
+     * This flag is turned "on" by default but tracking is enabled only after
+     * observability enabled flag is also turned on.
+     * 
+ * + * optional bool track_wait_events = 3; + * + * @return The trackWaitEvents. + */ + boolean getTrackWaitEvents(); + + /** + * + * + *
+     * Output only. Track wait event types during query execution for an
+     * instance. This flag is turned "on" by default but tracking is enabled
+     * only after observability enabled flag is also turned on. This is
+     * read-only flag and only modifiable by internal API.
+     * 
+ * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the trackWaitEventTypes field is set. + */ + boolean hasTrackWaitEventTypes(); + + /** + * + * + *
+     * Output only. Track wait event types during query execution for an
+     * instance. This flag is turned "on" by default but tracking is enabled
+     * only after observability enabled flag is also turned on. This is
+     * read-only flag and only modifiable by internal API.
+     * 
+ * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The trackWaitEventTypes. + */ + boolean getTrackWaitEventTypes(); + + /** + * + * + *
+     * Query string length. The default value is 10k.
+     * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return Whether the maxQueryStringLength field is set. + */ + boolean hasMaxQueryStringLength(); + + /** + * + * + *
+     * Query string length. The default value is 10k.
+     * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return The maxQueryStringLength. + */ + int getMaxQueryStringLength(); + + /** + * + * + *
+     * Record application tags for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool record_application_tags = 6; + * + * @return Whether the recordApplicationTags field is set. + */ + boolean hasRecordApplicationTags(); + + /** + * + * + *
+     * Record application tags for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool record_application_tags = 6; + * + * @return The recordApplicationTags. + */ + boolean getRecordApplicationTags(); + + /** + * + * + *
+     * Number of query execution plans captured by Insights per minute
+     * for all queries combined. The default value is 200.
+     * Any integer between 0 to 200 is considered valid.
+     * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return Whether the queryPlansPerMinute field is set. + */ + boolean hasQueryPlansPerMinute(); + + /** + * + * + *
+     * Number of query execution plans captured by Insights per minute
+     * for all queries combined. The default value is 200.
+     * Any integer between 0 to 200 is considered valid.
+     * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return The queryPlansPerMinute. + */ + int getQueryPlansPerMinute(); + + /** + * + * + *
+     * Track actively running queries on the instance.
+     * If not set, this flag is "off" by default.
+     * 
+ * + * optional bool track_active_queries = 8; + * + * @return Whether the trackActiveQueries field is set. + */ + boolean hasTrackActiveQueries(); + + /** + * + * + *
+     * Track actively running queries on the instance.
+     * If not set, this flag is "off" by default.
+     * 
+ * + * optional bool track_active_queries = 8; + * + * @return The trackActiveQueries. + */ + boolean getTrackActiveQueries(); + } + + /** + * + * + *
+   * Observability Instance specific configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig} + */ + public static final class ObservabilityInstanceConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) + ObservabilityInstanceConfigOrBuilder { + 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= */ "", + "ObservabilityInstanceConfig"); + } + + // Use ObservabilityInstanceConfig.newBuilder() to construct. + private ObservabilityInstanceConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ObservabilityInstanceConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.class, + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.Builder.class); + } + + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + + /** + * + * + *
+     * Observability feature status for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ + @java.lang.Override + public boolean hasEnabled() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Observability feature status for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int PRESERVE_COMMENTS_FIELD_NUMBER = 2; + private boolean preserveComments_ = false; + + /** + * + * + *
+     * Preserve comments in query string for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool preserve_comments = 2; + * + * @return Whether the preserveComments field is set. + */ + @java.lang.Override + public boolean hasPreserveComments() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Preserve comments in query string for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool preserve_comments = 2; + * + * @return The preserveComments. + */ + @java.lang.Override + public boolean getPreserveComments() { + return preserveComments_; + } + + public static final int TRACK_WAIT_EVENTS_FIELD_NUMBER = 3; + private boolean trackWaitEvents_ = false; + + /** + * + * + *
+     * Track wait events during query execution for an instance.
+     * This flag is turned "on" by default but tracking is enabled only after
+     * observability enabled flag is also turned on.
+     * 
+ * + * optional bool track_wait_events = 3; + * + * @return Whether the trackWaitEvents field is set. + */ + @java.lang.Override + public boolean hasTrackWaitEvents() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Track wait events during query execution for an instance.
+     * This flag is turned "on" by default but tracking is enabled only after
+     * observability enabled flag is also turned on.
+     * 
+ * + * optional bool track_wait_events = 3; + * + * @return The trackWaitEvents. + */ + @java.lang.Override + public boolean getTrackWaitEvents() { + return trackWaitEvents_; + } + + public static final int TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER = 4; + private boolean trackWaitEventTypes_ = false; + + /** + * + * + *
+     * Output only. Track wait event types during query execution for an
+     * instance. This flag is turned "on" by default but tracking is enabled
+     * only after observability enabled flag is also turned on. This is
+     * read-only flag and only modifiable by internal API.
+     * 
+ * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the trackWaitEventTypes field is set. + */ + @java.lang.Override + public boolean hasTrackWaitEventTypes() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. Track wait event types during query execution for an
+     * instance. This flag is turned "on" by default but tracking is enabled
+     * only after observability enabled flag is also turned on. This is
+     * read-only flag and only modifiable by internal API.
+     * 
+ * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The trackWaitEventTypes. + */ + @java.lang.Override + public boolean getTrackWaitEventTypes() { + return trackWaitEventTypes_; + } + + public static final int MAX_QUERY_STRING_LENGTH_FIELD_NUMBER = 5; + private int maxQueryStringLength_ = 0; + + /** + * + * + *
+     * Query string length. The default value is 10k.
+     * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return Whether the maxQueryStringLength field is set. + */ + @java.lang.Override + public boolean hasMaxQueryStringLength() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Query string length. The default value is 10k.
+     * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return The maxQueryStringLength. + */ + @java.lang.Override + public int getMaxQueryStringLength() { + return maxQueryStringLength_; + } + + public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 6; + private boolean recordApplicationTags_ = false; + + /** + * + * + *
+     * Record application tags for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool record_application_tags = 6; + * + * @return Whether the recordApplicationTags field is set. + */ + @java.lang.Override + public boolean hasRecordApplicationTags() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Record application tags for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool record_application_tags = 6; + * + * @return The recordApplicationTags. + */ + @java.lang.Override + public boolean getRecordApplicationTags() { + return recordApplicationTags_; + } + + public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 7; + private int queryPlansPerMinute_ = 0; + + /** + * + * + *
+     * Number of query execution plans captured by Insights per minute
+     * for all queries combined. The default value is 200.
+     * Any integer between 0 to 200 is considered valid.
+     * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return Whether the queryPlansPerMinute field is set. + */ + @java.lang.Override + public boolean hasQueryPlansPerMinute() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Number of query execution plans captured by Insights per minute
+     * for all queries combined. The default value is 200.
+     * Any integer between 0 to 200 is considered valid.
+     * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return The queryPlansPerMinute. + */ + @java.lang.Override + public int getQueryPlansPerMinute() { + return queryPlansPerMinute_; + } + + public static final int TRACK_ACTIVE_QUERIES_FIELD_NUMBER = 8; + private boolean trackActiveQueries_ = false; + + /** + * + * + *
+     * Track actively running queries on the instance.
+     * If not set, this flag is "off" by default.
+     * 
+ * + * optional bool track_active_queries = 8; + * + * @return Whether the trackActiveQueries field is set. + */ + @java.lang.Override + public boolean hasTrackActiveQueries() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Track actively running queries on the instance.
+     * If not set, this flag is "off" by default.
+     * 
+ * + * optional bool track_active_queries = 8; + * + * @return The trackActiveQueries. + */ + @java.lang.Override + public boolean getTrackActiveQueries() { + return trackActiveQueries_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(1, enabled_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(2, preserveComments_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(3, trackWaitEvents_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(4, trackWaitEventTypes_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt32(5, maxQueryStringLength_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeBool(6, recordApplicationTags_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeInt32(7, queryPlansPerMinute_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeBool(8, trackActiveQueries_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, preserveComments_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, trackWaitEvents_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, trackWaitEventTypes_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxQueryStringLength_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, recordApplicationTags_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, queryPlansPerMinute_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, trackActiveQueries_); + } + 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.alloydb.v1.Instance.ObservabilityInstanceConfig)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig other = + (com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) obj; + + if (hasEnabled() != other.hasEnabled()) return false; + if (hasEnabled()) { + if (getEnabled() != other.getEnabled()) return false; + } + if (hasPreserveComments() != other.hasPreserveComments()) return false; + if (hasPreserveComments()) { + if (getPreserveComments() != other.getPreserveComments()) return false; + } + if (hasTrackWaitEvents() != other.hasTrackWaitEvents()) return false; + if (hasTrackWaitEvents()) { + if (getTrackWaitEvents() != other.getTrackWaitEvents()) return false; + } + if (hasTrackWaitEventTypes() != other.hasTrackWaitEventTypes()) return false; + if (hasTrackWaitEventTypes()) { + if (getTrackWaitEventTypes() != other.getTrackWaitEventTypes()) return false; + } + if (hasMaxQueryStringLength() != other.hasMaxQueryStringLength()) return false; + if (hasMaxQueryStringLength()) { + if (getMaxQueryStringLength() != other.getMaxQueryStringLength()) return false; + } + if (hasRecordApplicationTags() != other.hasRecordApplicationTags()) return false; + if (hasRecordApplicationTags()) { + if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false; + } + if (hasQueryPlansPerMinute() != other.hasQueryPlansPerMinute()) return false; + if (hasQueryPlansPerMinute()) { + if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) return false; + } + if (hasTrackActiveQueries() != other.hasTrackActiveQueries()) return false; + if (hasTrackActiveQueries()) { + if (getTrackActiveQueries() != other.getTrackActiveQueries()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEnabled()) { + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + } + if (hasPreserveComments()) { + hash = (37 * hash) + PRESERVE_COMMENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreserveComments()); + } + if (hasTrackWaitEvents()) { + hash = (37 * hash) + TRACK_WAIT_EVENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEvents()); + } + if (hasTrackWaitEventTypes()) { + hash = (37 * hash) + TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEventTypes()); + } + if (hasMaxQueryStringLength()) { + hash = (37 * hash) + MAX_QUERY_STRING_LENGTH_FIELD_NUMBER; + hash = (53 * hash) + getMaxQueryStringLength(); + } + if (hasRecordApplicationTags()) { + hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags()); + } + if (hasQueryPlansPerMinute()) { + hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER; + hash = (53 * hash) + getQueryPlansPerMinute(); + } + if (hasTrackActiveQueries()) { + hash = (37 * hash) + TRACK_ACTIVE_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackActiveQueries()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig 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.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig 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.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig 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.alloydb.v1.Instance.ObservabilityInstanceConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig + 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.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig 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.alloydb.v1.Instance.ObservabilityInstanceConfig 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; + } + + /** + * + * + *
+     * Observability Instance specific configuration.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.class, + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.Builder.class); + } + + // Construct using + // com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + preserveComments_ = false; + trackWaitEvents_ = false; + trackWaitEventTypes_ = false; + maxQueryStringLength_ = 0; + recordApplicationTags_ = false; + queryPlansPerMinute_ = 0; + trackActiveQueries_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig build() { + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig buildPartial() { + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig result = + new com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.preserveComments_ = preserveComments_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.trackWaitEvents_ = trackWaitEvents_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.trackWaitEventTypes_ = trackWaitEventTypes_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.maxQueryStringLength_ = maxQueryStringLength_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.recordApplicationTags_ = recordApplicationTags_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.queryPlansPerMinute_ = queryPlansPerMinute_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.trackActiveQueries_ = trackActiveQueries_; + to_bitField0_ |= 0x00000080; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) { + return mergeFrom( + (com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig other) { + if (other + == com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig + .getDefaultInstance()) return this; + if (other.hasEnabled()) { + setEnabled(other.getEnabled()); + } + if (other.hasPreserveComments()) { + setPreserveComments(other.getPreserveComments()); + } + if (other.hasTrackWaitEvents()) { + setTrackWaitEvents(other.getTrackWaitEvents()); + } + if (other.hasTrackWaitEventTypes()) { + setTrackWaitEventTypes(other.getTrackWaitEventTypes()); + } + if (other.hasMaxQueryStringLength()) { + setMaxQueryStringLength(other.getMaxQueryStringLength()); + } + if (other.hasRecordApplicationTags()) { + setRecordApplicationTags(other.getRecordApplicationTags()); + } + if (other.hasQueryPlansPerMinute()) { + setQueryPlansPerMinute(other.getQueryPlansPerMinute()); + } + if (other.hasTrackActiveQueries()) { + setTrackActiveQueries(other.getTrackActiveQueries()); + } + 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 8: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + preserveComments_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + trackWaitEvents_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + trackWaitEventTypes_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + maxQueryStringLength_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + recordApplicationTags_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + queryPlansPerMinute_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + trackActiveQueries_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + 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 boolean enabled_; + + /** + * + * + *
+       * Observability feature status for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ + @java.lang.Override + public boolean hasEnabled() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Observability feature status for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + /** + * + * + *
+       * Observability feature status for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Observability feature status for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private boolean preserveComments_; + + /** + * + * + *
+       * Preserve comments in query string for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool preserve_comments = 2; + * + * @return Whether the preserveComments field is set. + */ + @java.lang.Override + public boolean hasPreserveComments() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Preserve comments in query string for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool preserve_comments = 2; + * + * @return The preserveComments. + */ + @java.lang.Override + public boolean getPreserveComments() { + return preserveComments_; + } + + /** + * + * + *
+       * Preserve comments in query string for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool preserve_comments = 2; + * + * @param value The preserveComments to set. + * @return This builder for chaining. + */ + public Builder setPreserveComments(boolean value) { + + preserveComments_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Preserve comments in query string for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool preserve_comments = 2; + * + * @return This builder for chaining. + */ + public Builder clearPreserveComments() { + bitField0_ = (bitField0_ & ~0x00000002); + preserveComments_ = false; + onChanged(); + return this; + } + + private boolean trackWaitEvents_; + + /** + * + * + *
+       * Track wait events during query execution for an instance.
+       * This flag is turned "on" by default but tracking is enabled only after
+       * observability enabled flag is also turned on.
+       * 
+ * + * optional bool track_wait_events = 3; + * + * @return Whether the trackWaitEvents field is set. + */ + @java.lang.Override + public boolean hasTrackWaitEvents() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * Track wait events during query execution for an instance.
+       * This flag is turned "on" by default but tracking is enabled only after
+       * observability enabled flag is also turned on.
+       * 
+ * + * optional bool track_wait_events = 3; + * + * @return The trackWaitEvents. + */ + @java.lang.Override + public boolean getTrackWaitEvents() { + return trackWaitEvents_; + } + + /** + * + * + *
+       * Track wait events during query execution for an instance.
+       * This flag is turned "on" by default but tracking is enabled only after
+       * observability enabled flag is also turned on.
+       * 
+ * + * optional bool track_wait_events = 3; + * + * @param value The trackWaitEvents to set. + * @return This builder for chaining. + */ + public Builder setTrackWaitEvents(boolean value) { + + trackWaitEvents_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Track wait events during query execution for an instance.
+       * This flag is turned "on" by default but tracking is enabled only after
+       * observability enabled flag is also turned on.
+       * 
+ * + * optional bool track_wait_events = 3; + * + * @return This builder for chaining. + */ + public Builder clearTrackWaitEvents() { + bitField0_ = (bitField0_ & ~0x00000004); + trackWaitEvents_ = false; + onChanged(); + return this; + } + + private boolean trackWaitEventTypes_; + + /** + * + * + *
+       * Output only. Track wait event types during query execution for an
+       * instance. This flag is turned "on" by default but tracking is enabled
+       * only after observability enabled flag is also turned on. This is
+       * read-only flag and only modifiable by internal API.
+       * 
+ * + * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the trackWaitEventTypes field is set. + */ + @java.lang.Override + public boolean hasTrackWaitEventTypes() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+       * Output only. Track wait event types during query execution for an
+       * instance. This flag is turned "on" by default but tracking is enabled
+       * only after observability enabled flag is also turned on. This is
+       * read-only flag and only modifiable by internal API.
+       * 
+ * + * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The trackWaitEventTypes. + */ + @java.lang.Override + public boolean getTrackWaitEventTypes() { + return trackWaitEventTypes_; + } + + /** + * + * + *
+       * Output only. Track wait event types during query execution for an
+       * instance. This flag is turned "on" by default but tracking is enabled
+       * only after observability enabled flag is also turned on. This is
+       * read-only flag and only modifiable by internal API.
+       * 
+ * + * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The trackWaitEventTypes to set. + * @return This builder for chaining. + */ + public Builder setTrackWaitEventTypes(boolean value) { + + trackWaitEventTypes_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Track wait event types during query execution for an
+       * instance. This flag is turned "on" by default but tracking is enabled
+       * only after observability enabled flag is also turned on. This is
+       * read-only flag and only modifiable by internal API.
+       * 
+ * + * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTrackWaitEventTypes() { + bitField0_ = (bitField0_ & ~0x00000008); + trackWaitEventTypes_ = false; + onChanged(); + return this; + } + + private int maxQueryStringLength_; + + /** + * + * + *
+       * Query string length. The default value is 10k.
+       * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return Whether the maxQueryStringLength field is set. + */ + @java.lang.Override + public boolean hasMaxQueryStringLength() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+       * Query string length. The default value is 10k.
+       * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return The maxQueryStringLength. + */ + @java.lang.Override + public int getMaxQueryStringLength() { + return maxQueryStringLength_; + } + + /** + * + * + *
+       * Query string length. The default value is 10k.
+       * 
+ * + * optional int32 max_query_string_length = 5; + * + * @param value The maxQueryStringLength to set. + * @return This builder for chaining. + */ + public Builder setMaxQueryStringLength(int value) { + + maxQueryStringLength_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Query string length. The default value is 10k.
+       * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return This builder for chaining. + */ + public Builder clearMaxQueryStringLength() { + bitField0_ = (bitField0_ & ~0x00000010); + maxQueryStringLength_ = 0; + onChanged(); + return this; + } + + private boolean recordApplicationTags_; + + /** + * + * + *
+       * Record application tags for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool record_application_tags = 6; + * + * @return Whether the recordApplicationTags field is set. + */ + @java.lang.Override + public boolean hasRecordApplicationTags() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+       * Record application tags for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool record_application_tags = 6; + * + * @return The recordApplicationTags. + */ + @java.lang.Override + public boolean getRecordApplicationTags() { + return recordApplicationTags_; + } + + /** + * + * + *
+       * Record application tags for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool record_application_tags = 6; + * + * @param value The recordApplicationTags to set. + * @return This builder for chaining. + */ + public Builder setRecordApplicationTags(boolean value) { + + recordApplicationTags_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Record application tags for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool record_application_tags = 6; + * + * @return This builder for chaining. + */ + public Builder clearRecordApplicationTags() { + bitField0_ = (bitField0_ & ~0x00000020); + recordApplicationTags_ = false; + onChanged(); + return this; + } + + private int queryPlansPerMinute_; + + /** + * + * + *
+       * Number of query execution plans captured by Insights per minute
+       * for all queries combined. The default value is 200.
+       * Any integer between 0 to 200 is considered valid.
+       * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return Whether the queryPlansPerMinute field is set. + */ + @java.lang.Override + public boolean hasQueryPlansPerMinute() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+       * Number of query execution plans captured by Insights per minute
+       * for all queries combined. The default value is 200.
+       * Any integer between 0 to 200 is considered valid.
+       * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return The queryPlansPerMinute. + */ + @java.lang.Override + public int getQueryPlansPerMinute() { + return queryPlansPerMinute_; + } + + /** + * + * + *
+       * Number of query execution plans captured by Insights per minute
+       * for all queries combined. The default value is 200.
+       * Any integer between 0 to 200 is considered valid.
+       * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @param value The queryPlansPerMinute to set. + * @return This builder for chaining. + */ + public Builder setQueryPlansPerMinute(int value) { + + queryPlansPerMinute_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+       * Number of query execution plans captured by Insights per minute
+       * for all queries combined. The default value is 200.
+       * Any integer between 0 to 200 is considered valid.
+       * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return This builder for chaining. + */ + public Builder clearQueryPlansPerMinute() { + bitField0_ = (bitField0_ & ~0x00000040); + queryPlansPerMinute_ = 0; + onChanged(); + return this; + } + + private boolean trackActiveQueries_; + + /** + * + * + *
+       * Track actively running queries on the instance.
+       * If not set, this flag is "off" by default.
+       * 
+ * + * optional bool track_active_queries = 8; + * + * @return Whether the trackActiveQueries field is set. + */ + @java.lang.Override + public boolean hasTrackActiveQueries() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+       * Track actively running queries on the instance.
+       * If not set, this flag is "off" by default.
+       * 
+ * + * optional bool track_active_queries = 8; + * + * @return The trackActiveQueries. + */ + @java.lang.Override + public boolean getTrackActiveQueries() { + return trackActiveQueries_; + } + + /** + * + * + *
+       * Track actively running queries on the instance.
+       * If not set, this flag is "off" by default.
+       * 
+ * + * optional bool track_active_queries = 8; + * + * @param value The trackActiveQueries to set. + * @return This builder for chaining. + */ + public Builder setTrackActiveQueries(boolean value) { + + trackActiveQueries_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+       * Track actively running queries on the instance.
+       * If not set, this flag is "off" by default.
+       * 
+ * + * optional bool track_active_queries = 8; + * + * @return This builder for chaining. + */ + public Builder clearTrackActiveQueries() { + bitField0_ = (bitField0_ & ~0x00000080); + trackActiveQueries_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) + private static final com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig(); + } + + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObservabilityInstanceConfig 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.alloydb.v1.Instance.ObservabilityInstanceConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ObservabilityInstanceInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo) com.google.protobuf.MessageOrBuilder { /** * * *
-     * Observability feature status for an instance.
-     * This flag is turned "off" by default.
-     * 
- * - * optional bool enabled = 1; - * - * @return Whether the enabled field is set. - */ - boolean hasEnabled(); - - /** - * - * - *
-     * Observability feature status for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Observability feature status for an instance.
      * 
* - * optional bool enabled = 1; + * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The enabled. */ @@ -4066,25 +6799,10 @@ public interface ObservabilityInstanceConfigOrBuilder * * *
-     * Preserve comments in query string for an instance.
-     * This flag is turned "off" by default.
-     * 
- * - * optional bool preserve_comments = 2; - * - * @return Whether the preserveComments field is set. - */ - boolean hasPreserveComments(); - - /** - * - * - *
-     * Preserve comments in query string for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Preserve comments in query string for an instance.
      * 
* - * optional bool preserve_comments = 2; + * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The preserveComments. */ @@ -4094,27 +6812,10 @@ public interface ObservabilityInstanceConfigOrBuilder * * *
-     * Track wait events during query execution for an instance.
-     * This flag is turned "on" by default but tracking is enabled only after
-     * observability enabled flag is also turned on.
-     * 
- * - * optional bool track_wait_events = 3; - * - * @return Whether the trackWaitEvents field is set. - */ - boolean hasTrackWaitEvents(); - - /** - * - * - *
-     * Track wait events during query execution for an instance.
-     * This flag is turned "on" by default but tracking is enabled only after
-     * observability enabled flag is also turned on.
+     * Output only. Track wait events during query execution for an instance.
      * 
* - * optional bool track_wait_events = 3; + * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The trackWaitEvents. */ @@ -4125,30 +6826,10 @@ public interface ObservabilityInstanceConfigOrBuilder * *
      * Output only. Track wait event types during query execution for an
-     * instance. This flag is turned "on" by default but tracking is enabled
-     * only after observability enabled flag is also turned on. This is
-     * read-only flag and only modifiable by internal API.
-     * 
- * - * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the trackWaitEventTypes field is set. - */ - boolean hasTrackWaitEventTypes(); - - /** - * - * - *
-     * Output only. Track wait event types during query execution for an
-     * instance. This flag is turned "on" by default but tracking is enabled
-     * only after observability enabled flag is also turned on. This is
-     * read-only flag and only modifiable by internal API.
+     * instance.
      * 
* - * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The trackWaitEventTypes. */ @@ -4158,23 +6839,10 @@ public interface ObservabilityInstanceConfigOrBuilder * * *
-     * Query string length. The default value is 10k.
-     * 
- * - * optional int32 max_query_string_length = 5; - * - * @return Whether the maxQueryStringLength field is set. - */ - boolean hasMaxQueryStringLength(); - - /** - * - * - *
-     * Query string length. The default value is 10k.
+     * Output only. Query string length. The default value is 10k.
      * 
* - * optional int32 max_query_string_length = 5; + * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The maxQueryStringLength. */ @@ -4184,25 +6852,10 @@ public interface ObservabilityInstanceConfigOrBuilder * * *
-     * Record application tags for an instance.
-     * This flag is turned "off" by default.
-     * 
- * - * optional bool record_application_tags = 6; - * - * @return Whether the recordApplicationTags field is set. - */ - boolean hasRecordApplicationTags(); - - /** - * - * - *
-     * Record application tags for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Record application tags for an instance.
      * 
* - * optional bool record_application_tags = 6; + * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The recordApplicationTags. */ @@ -4212,27 +6865,11 @@ public interface ObservabilityInstanceConfigOrBuilder * * *
-     * Number of query execution plans captured by Insights per minute
-     * for all queries combined. The default value is 200.
-     * Any integer between 0 to 200 is considered valid.
-     * 
- * - * optional int32 query_plans_per_minute = 7; - * - * @return Whether the queryPlansPerMinute field is set. - */ - boolean hasQueryPlansPerMinute(); - - /** - * - * - *
-     * Number of query execution plans captured by Insights per minute
-     * for all queries combined. The default value is 200.
-     * Any integer between 0 to 200 is considered valid.
+     * Output only. Number of query execution plans captured by Insights per
+     * minute for all queries combined.
      * 
* - * optional int32 query_plans_per_minute = 7; + * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The queryPlansPerMinute. */ @@ -4242,44 +6879,21 @@ public interface ObservabilityInstanceConfigOrBuilder * * *
-     * Track actively running queries on the instance.
-     * If not set, this flag is "off" by default.
-     * 
- * - * optional bool track_active_queries = 8; - * - * @return Whether the trackActiveQueries field is set. - */ - boolean hasTrackActiveQueries(); - - /** - * - * - *
-     * Track actively running queries on the instance.
-     * If not set, this flag is "off" by default.
+     * Output only. Track actively running queries on the instance.
      * 
* - * optional bool track_active_queries = 8; + * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The trackActiveQueries. */ boolean getTrackActiveQueries(); } - /** - * - * - *
-   * Observability Instance specific configuration.
-   * 
- * - * Protobuf type {@code google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig} - */ - public static final class ObservabilityInstanceConfig extends com.google.protobuf.GeneratedMessage + /** Protobuf type {@code google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo} */ + public static final class ObservabilityInstanceInfo extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) - ObservabilityInstanceConfigOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo) + ObservabilityInstanceInfoOrBuilder { private static final long serialVersionUID = 0L; static { @@ -4289,61 +6903,42 @@ public static final class ObservabilityInstanceConfig extends com.google.protobu /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "ObservabilityInstanceConfig"); + "ObservabilityInstanceInfo"); } - // Use ObservabilityInstanceConfig.newBuilder() to construct. - private ObservabilityInstanceConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use ObservabilityInstanceInfo.newBuilder() to construct. + private ObservabilityInstanceInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private ObservabilityInstanceConfig() {} + private ObservabilityInstanceInfo() {} public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_descriptor; + .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_fieldAccessorTable + .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.class, - com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.Builder.class); + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.class, + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.Builder.class); } - private int bitField0_; - public static final int ENABLED_FIELD_NUMBER = 1; + public static final int ENABLED_FIELD_NUMBER = 2; private boolean enabled_ = false; /** * * *
-     * Observability feature status for an instance.
-     * This flag is turned "off" by default.
-     * 
- * - * optional bool enabled = 1; - * - * @return Whether the enabled field is set. - */ - @java.lang.Override - public boolean hasEnabled() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * Observability feature status for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Observability feature status for an instance.
      * 
* - * optional bool enabled = 1; + * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The enabled. */ @@ -4352,35 +6947,17 @@ public boolean getEnabled() { return enabled_; } - public static final int PRESERVE_COMMENTS_FIELD_NUMBER = 2; + public static final int PRESERVE_COMMENTS_FIELD_NUMBER = 3; private boolean preserveComments_ = false; /** * * *
-     * Preserve comments in query string for an instance.
-     * This flag is turned "off" by default.
-     * 
- * - * optional bool preserve_comments = 2; - * - * @return Whether the preserveComments field is set. - */ - @java.lang.Override - public boolean hasPreserveComments() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Preserve comments in query string for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Preserve comments in query string for an instance.
      * 
* - * optional bool preserve_comments = 2; + * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The preserveComments. */ @@ -4389,37 +6966,17 @@ public boolean getPreserveComments() { return preserveComments_; } - public static final int TRACK_WAIT_EVENTS_FIELD_NUMBER = 3; + public static final int TRACK_WAIT_EVENTS_FIELD_NUMBER = 4; private boolean trackWaitEvents_ = false; /** * * *
-     * Track wait events during query execution for an instance.
-     * This flag is turned "on" by default but tracking is enabled only after
-     * observability enabled flag is also turned on.
-     * 
- * - * optional bool track_wait_events = 3; - * - * @return Whether the trackWaitEvents field is set. - */ - @java.lang.Override - public boolean hasTrackWaitEvents() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-     * Track wait events during query execution for an instance.
-     * This flag is turned "on" by default but tracking is enabled only after
-     * observability enabled flag is also turned on.
+     * Output only. Track wait events during query execution for an instance.
      * 
* - * optional bool track_wait_events = 3; + * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The trackWaitEvents. */ @@ -4428,7 +6985,7 @@ public boolean getTrackWaitEvents() { return trackWaitEvents_; } - public static final int TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER = 4; + public static final int TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER = 5; private boolean trackWaitEventTypes_ = false; /** @@ -4436,33 +6993,10 @@ public boolean getTrackWaitEvents() { * *
      * Output only. Track wait event types during query execution for an
-     * instance. This flag is turned "on" by default but tracking is enabled
-     * only after observability enabled flag is also turned on. This is
-     * read-only flag and only modifiable by internal API.
-     * 
- * - * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the trackWaitEventTypes field is set. - */ - @java.lang.Override - public boolean hasTrackWaitEventTypes() { - return ((bitField0_ & 0x00000008) != 0); - } - - /** - * - * - *
-     * Output only. Track wait event types during query execution for an
-     * instance. This flag is turned "on" by default but tracking is enabled
-     * only after observability enabled flag is also turned on. This is
-     * read-only flag and only modifiable by internal API.
+     * instance.
      * 
* - * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The trackWaitEventTypes. */ @@ -4471,33 +7005,17 @@ public boolean getTrackWaitEventTypes() { return trackWaitEventTypes_; } - public static final int MAX_QUERY_STRING_LENGTH_FIELD_NUMBER = 5; + public static final int MAX_QUERY_STRING_LENGTH_FIELD_NUMBER = 6; private int maxQueryStringLength_ = 0; /** * * *
-     * Query string length. The default value is 10k.
-     * 
- * - * optional int32 max_query_string_length = 5; - * - * @return Whether the maxQueryStringLength field is set. - */ - @java.lang.Override - public boolean hasMaxQueryStringLength() { - return ((bitField0_ & 0x00000010) != 0); - } - - /** - * - * - *
-     * Query string length. The default value is 10k.
+     * Output only. Query string length. The default value is 10k.
      * 
* - * optional int32 max_query_string_length = 5; + * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The maxQueryStringLength. */ @@ -4506,35 +7024,17 @@ public int getMaxQueryStringLength() { return maxQueryStringLength_; } - public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 6; + public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 7; private boolean recordApplicationTags_ = false; /** * * *
-     * Record application tags for an instance.
-     * This flag is turned "off" by default.
-     * 
- * - * optional bool record_application_tags = 6; - * - * @return Whether the recordApplicationTags field is set. - */ - @java.lang.Override - public boolean hasRecordApplicationTags() { - return ((bitField0_ & 0x00000020) != 0); - } - - /** - * - * - *
-     * Record application tags for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Record application tags for an instance.
      * 
* - * optional bool record_application_tags = 6; + * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The recordApplicationTags. */ @@ -4543,37 +7043,18 @@ public boolean getRecordApplicationTags() { return recordApplicationTags_; } - public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 7; + public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 8; private int queryPlansPerMinute_ = 0; /** * * *
-     * Number of query execution plans captured by Insights per minute
-     * for all queries combined. The default value is 200.
-     * Any integer between 0 to 200 is considered valid.
-     * 
- * - * optional int32 query_plans_per_minute = 7; - * - * @return Whether the queryPlansPerMinute field is set. - */ - @java.lang.Override - public boolean hasQueryPlansPerMinute() { - return ((bitField0_ & 0x00000040) != 0); - } - - /** - * - * - *
-     * Number of query execution plans captured by Insights per minute
-     * for all queries combined. The default value is 200.
-     * Any integer between 0 to 200 is considered valid.
+     * Output only. Number of query execution plans captured by Insights per
+     * minute for all queries combined.
      * 
* - * optional int32 query_plans_per_minute = 7; + * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The queryPlansPerMinute. */ @@ -4582,35 +7063,17 @@ public int getQueryPlansPerMinute() { return queryPlansPerMinute_; } - public static final int TRACK_ACTIVE_QUERIES_FIELD_NUMBER = 8; + public static final int TRACK_ACTIVE_QUERIES_FIELD_NUMBER = 9; private boolean trackActiveQueries_ = false; /** * * *
-     * Track actively running queries on the instance.
-     * If not set, this flag is "off" by default.
-     * 
- * - * optional bool track_active_queries = 8; - * - * @return Whether the trackActiveQueries field is set. - */ - @java.lang.Override - public boolean hasTrackActiveQueries() { - return ((bitField0_ & 0x00000080) != 0); - } - - /** - * - * - *
-     * Track actively running queries on the instance.
-     * If not set, this flag is "off" by default.
+     * Output only. Track actively running queries on the instance.
      * 
* - * optional bool track_active_queries = 8; + * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The trackActiveQueries. */ @@ -4633,29 +7096,29 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeBool(1, enabled_); + if (enabled_ != false) { + output.writeBool(2, enabled_); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeBool(2, preserveComments_); + if (preserveComments_ != false) { + output.writeBool(3, preserveComments_); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeBool(3, trackWaitEvents_); + if (trackWaitEvents_ != false) { + output.writeBool(4, trackWaitEvents_); } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeBool(4, trackWaitEventTypes_); + if (trackWaitEventTypes_ != false) { + output.writeBool(5, trackWaitEventTypes_); } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeInt32(5, maxQueryStringLength_); + if (maxQueryStringLength_ != 0) { + output.writeInt32(6, maxQueryStringLength_); } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeBool(6, recordApplicationTags_); + if (recordApplicationTags_ != false) { + output.writeBool(7, recordApplicationTags_); } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeInt32(7, queryPlansPerMinute_); + if (queryPlansPerMinute_ != 0) { + output.writeInt32(8, queryPlansPerMinute_); } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeBool(8, trackActiveQueries_); + if (trackActiveQueries_ != false) { + output.writeBool(9, trackActiveQueries_); } getUnknownFields().writeTo(output); } @@ -4666,78 +7129,54 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, preserveComments_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, trackWaitEvents_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, trackWaitEventTypes_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxQueryStringLength_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, recordApplicationTags_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, queryPlansPerMinute_); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, trackActiveQueries_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enabled_); } - if (!(obj instanceof com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig)) { - return super.equals(obj); + if (preserveComments_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, preserveComments_); } - com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig other = - (com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) obj; - - if (hasEnabled() != other.hasEnabled()) return false; - if (hasEnabled()) { - if (getEnabled() != other.getEnabled()) return false; + if (trackWaitEvents_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, trackWaitEvents_); } - if (hasPreserveComments() != other.hasPreserveComments()) return false; - if (hasPreserveComments()) { - if (getPreserveComments() != other.getPreserveComments()) return false; + if (trackWaitEventTypes_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, trackWaitEventTypes_); } - if (hasTrackWaitEvents() != other.hasTrackWaitEvents()) return false; - if (hasTrackWaitEvents()) { - if (getTrackWaitEvents() != other.getTrackWaitEvents()) return false; + if (maxQueryStringLength_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, maxQueryStringLength_); } - if (hasTrackWaitEventTypes() != other.hasTrackWaitEventTypes()) return false; - if (hasTrackWaitEventTypes()) { - if (getTrackWaitEventTypes() != other.getTrackWaitEventTypes()) return false; + if (recordApplicationTags_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, recordApplicationTags_); } - if (hasMaxQueryStringLength() != other.hasMaxQueryStringLength()) return false; - if (hasMaxQueryStringLength()) { - if (getMaxQueryStringLength() != other.getMaxQueryStringLength()) return false; + if (queryPlansPerMinute_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, queryPlansPerMinute_); } - if (hasRecordApplicationTags() != other.hasRecordApplicationTags()) return false; - if (hasRecordApplicationTags()) { - if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false; + if (trackActiveQueries_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, trackActiveQueries_); } - if (hasQueryPlansPerMinute() != other.hasQueryPlansPerMinute()) return false; - if (hasQueryPlansPerMinute()) { - if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) return false; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - if (hasTrackActiveQueries() != other.hasTrackActiveQueries()) return false; - if (hasTrackActiveQueries()) { - if (getTrackActiveQueries() != other.getTrackActiveQueries()) return false; + if (!(obj instanceof com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo)) { + return super.equals(obj); } + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo other = + (com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (getPreserveComments() != other.getPreserveComments()) return false; + if (getTrackWaitEvents() != other.getTrackWaitEvents()) return false; + if (getTrackWaitEventTypes() != other.getTrackWaitEventTypes()) return false; + if (getMaxQueryStringLength() != other.getMaxQueryStringLength()) return false; + if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false; + if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) return false; + if (getTrackActiveQueries() != other.getTrackActiveQueries()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4749,109 +7188,92 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasEnabled()) { - hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); - } - if (hasPreserveComments()) { - hash = (37 * hash) + PRESERVE_COMMENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreserveComments()); - } - if (hasTrackWaitEvents()) { - hash = (37 * hash) + TRACK_WAIT_EVENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEvents()); - } - if (hasTrackWaitEventTypes()) { - hash = (37 * hash) + TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEventTypes()); - } - if (hasMaxQueryStringLength()) { - hash = (37 * hash) + MAX_QUERY_STRING_LENGTH_FIELD_NUMBER; - hash = (53 * hash) + getMaxQueryStringLength(); - } - if (hasRecordApplicationTags()) { - hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags()); - } - if (hasQueryPlansPerMinute()) { - hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER; - hash = (53 * hash) + getQueryPlansPerMinute(); - } - if (hasTrackActiveQueries()) { - hash = (37 * hash) + TRACK_ACTIVE_QUERIES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackActiveQueries()); - } + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (37 * hash) + PRESERVE_COMMENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreserveComments()); + hash = (37 * hash) + TRACK_WAIT_EVENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEvents()); + hash = (37 * hash) + TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEventTypes()); + hash = (37 * hash) + MAX_QUERY_STRING_LENGTH_FIELD_NUMBER; + hash = (53 * hash) + getMaxQueryStringLength(); + hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags()); + hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER; + hash = (53 * hash) + getQueryPlansPerMinute(); + hash = (37 * hash) + TRACK_ACTIVE_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackActiveQueries()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo 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.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo 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.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo 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.alloydb.v1.Instance.ObservabilityInstanceConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo 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.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -4869,7 +7291,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig prototype) { + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -4884,36 +7306,27 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder return builder; } - /** - * - * - *
-     * Observability Instance specific configuration.
-     * 
- * - * Protobuf type {@code google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig} - */ + /** Protobuf type {@code google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) - com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfigOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo) + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_descriptor; + .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_fieldAccessorTable + .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.class, - com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.Builder.class); + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.class, + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.Builder.class); } - // Construct using - // com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.newBuilder() + // Construct using com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -4938,19 +7351,18 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_descriptor; + .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceInfo_descriptor; } @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig + public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo getDefaultInstanceForType() { - return com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig - .getDefaultInstance(); + return com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig build() { - com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig result = buildPartial(); + public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo build() { + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4958,9 +7370,9 @@ public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig build() } @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig buildPartial() { - com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig result = - new com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig(this); + public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo buildPartial() { + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo result = + new com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -4969,49 +7381,38 @@ public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig buildPar } private void buildPartial0( - com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig result) { + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo result) { int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.enabled_ = enabled_; - to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.preserveComments_ = preserveComments_; - to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.trackWaitEvents_ = trackWaitEvents_; - to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.trackWaitEventTypes_ = trackWaitEventTypes_; - to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.maxQueryStringLength_ = maxQueryStringLength_; - to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.recordApplicationTags_ = recordApplicationTags_; - to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.queryPlansPerMinute_ = queryPlansPerMinute_; - to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { result.trackActiveQueries_ = trackActiveQueries_; - to_bitField0_ |= 0x00000080; } - result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) { - return mergeFrom( - (com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) other); + if (other instanceof com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo) { + return mergeFrom((com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo) other); } else { super.mergeFrom(other); return this; @@ -5019,32 +7420,32 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig other) { + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo other) { if (other - == com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig - .getDefaultInstance()) return this; - if (other.hasEnabled()) { + == com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } - if (other.hasPreserveComments()) { + if (other.getPreserveComments() != false) { setPreserveComments(other.getPreserveComments()); } - if (other.hasTrackWaitEvents()) { + if (other.getTrackWaitEvents() != false) { setTrackWaitEvents(other.getTrackWaitEvents()); } - if (other.hasTrackWaitEventTypes()) { + if (other.getTrackWaitEventTypes() != false) { setTrackWaitEventTypes(other.getTrackWaitEventTypes()); } - if (other.hasMaxQueryStringLength()) { + if (other.getMaxQueryStringLength() != 0) { setMaxQueryStringLength(other.getMaxQueryStringLength()); } - if (other.hasRecordApplicationTags()) { + if (other.getRecordApplicationTags() != false) { setRecordApplicationTags(other.getRecordApplicationTags()); } - if (other.hasQueryPlansPerMinute()) { + if (other.getQueryPlansPerMinute() != 0) { setQueryPlansPerMinute(other.getQueryPlansPerMinute()); } - if (other.hasTrackActiveQueries()) { + if (other.getTrackActiveQueries() != false) { setTrackActiveQueries(other.getTrackActiveQueries()); } this.mergeUnknownFields(other.getUnknownFields()); @@ -5073,54 +7474,54 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: + case 16: { enabled_ = input.readBool(); bitField0_ |= 0x00000001; break; - } // case 8 - case 16: + } // case 16 + case 24: { preserveComments_ = input.readBool(); bitField0_ |= 0x00000002; break; - } // case 16 - case 24: + } // case 24 + case 32: { trackWaitEvents_ = input.readBool(); bitField0_ |= 0x00000004; break; - } // case 24 - case 32: + } // case 32 + case 40: { trackWaitEventTypes_ = input.readBool(); bitField0_ |= 0x00000008; break; - } // case 32 - case 40: + } // case 40 + case 48: { maxQueryStringLength_ = input.readInt32(); bitField0_ |= 0x00000010; break; - } // case 40 - case 48: + } // case 48 + case 56: { recordApplicationTags_ = input.readBool(); bitField0_ |= 0x00000020; break; - } // case 48 - case 56: + } // case 56 + case 64: { queryPlansPerMinute_ = input.readInt32(); bitField0_ |= 0x00000040; break; - } // case 56 - case 64: + } // case 64 + case 72: { trackActiveQueries_ = input.readBool(); bitField0_ |= 0x00000080; break; - } // case 64 + } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5146,28 +7547,10 @@ public Builder mergeFrom( * * *
-       * Observability feature status for an instance.
-       * This flag is turned "off" by default.
-       * 
- * - * optional bool enabled = 1; - * - * @return Whether the enabled field is set. - */ - @java.lang.Override - public boolean hasEnabled() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-       * Observability feature status for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Observability feature status for an instance.
        * 
* - * optional bool enabled = 1; + * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The enabled. */ @@ -5180,11 +7563,10 @@ public boolean getEnabled() { * * *
-       * Observability feature status for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Observability feature status for an instance.
        * 
* - * optional bool enabled = 1; + * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The enabled to set. * @return This builder for chaining. @@ -5201,11 +7583,10 @@ public Builder setEnabled(boolean value) { * * *
-       * Observability feature status for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Observability feature status for an instance.
        * 
* - * optional bool enabled = 1; + * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -5222,28 +7603,10 @@ public Builder clearEnabled() { * * *
-       * Preserve comments in query string for an instance.
-       * This flag is turned "off" by default.
-       * 
- * - * optional bool preserve_comments = 2; - * - * @return Whether the preserveComments field is set. - */ - @java.lang.Override - public boolean hasPreserveComments() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-       * Preserve comments in query string for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Preserve comments in query string for an instance.
        * 
* - * optional bool preserve_comments = 2; + * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The preserveComments. */ @@ -5256,11 +7619,10 @@ public boolean getPreserveComments() { * * *
-       * Preserve comments in query string for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Preserve comments in query string for an instance.
        * 
* - * optional bool preserve_comments = 2; + * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The preserveComments to set. * @return This builder for chaining. @@ -5277,11 +7639,10 @@ public Builder setPreserveComments(boolean value) { * * *
-       * Preserve comments in query string for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Preserve comments in query string for an instance.
        * 
* - * optional bool preserve_comments = 2; + * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -5298,30 +7659,10 @@ public Builder clearPreserveComments() { * * *
-       * Track wait events during query execution for an instance.
-       * This flag is turned "on" by default but tracking is enabled only after
-       * observability enabled flag is also turned on.
-       * 
- * - * optional bool track_wait_events = 3; - * - * @return Whether the trackWaitEvents field is set. - */ - @java.lang.Override - public boolean hasTrackWaitEvents() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-       * Track wait events during query execution for an instance.
-       * This flag is turned "on" by default but tracking is enabled only after
-       * observability enabled flag is also turned on.
+       * Output only. Track wait events during query execution for an instance.
        * 
* - * optional bool track_wait_events = 3; + * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The trackWaitEvents. */ @@ -5334,80 +7675,51 @@ public boolean getTrackWaitEvents() { * * *
-       * Track wait events during query execution for an instance.
-       * This flag is turned "on" by default but tracking is enabled only after
-       * observability enabled flag is also turned on.
+       * Output only. Track wait events during query execution for an instance.
        * 
* - * optional bool track_wait_events = 3; + * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The trackWaitEvents to set. * @return This builder for chaining. */ public Builder setTrackWaitEvents(boolean value) { - - trackWaitEvents_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-       * Track wait events during query execution for an instance.
-       * This flag is turned "on" by default but tracking is enabled only after
-       * observability enabled flag is also turned on.
-       * 
- * - * optional bool track_wait_events = 3; - * - * @return This builder for chaining. - */ - public Builder clearTrackWaitEvents() { - bitField0_ = (bitField0_ & ~0x00000004); - trackWaitEvents_ = false; + + trackWaitEvents_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } - private boolean trackWaitEventTypes_; - /** * * *
-       * Output only. Track wait event types during query execution for an
-       * instance. This flag is turned "on" by default but tracking is enabled
-       * only after observability enabled flag is also turned on. This is
-       * read-only flag and only modifiable by internal API.
+       * Output only. Track wait events during query execution for an instance.
        * 
* - * - * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the trackWaitEventTypes field is set. + * @return This builder for chaining. */ - @java.lang.Override - public boolean hasTrackWaitEventTypes() { - return ((bitField0_ & 0x00000008) != 0); + public Builder clearTrackWaitEvents() { + bitField0_ = (bitField0_ & ~0x00000004); + trackWaitEvents_ = false; + onChanged(); + return this; } + private boolean trackWaitEventTypes_; + /** * * *
        * Output only. Track wait event types during query execution for an
-       * instance. This flag is turned "on" by default but tracking is enabled
-       * only after observability enabled flag is also turned on. This is
-       * read-only flag and only modifiable by internal API.
+       * instance.
        * 
* - * - * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The trackWaitEventTypes. */ @@ -5421,14 +7733,10 @@ public boolean getTrackWaitEventTypes() { * *
        * Output only. Track wait event types during query execution for an
-       * instance. This flag is turned "on" by default but tracking is enabled
-       * only after observability enabled flag is also turned on. This is
-       * read-only flag and only modifiable by internal API.
+       * instance.
        * 
* - * - * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The trackWaitEventTypes to set. * @return This builder for chaining. @@ -5446,14 +7754,10 @@ public Builder setTrackWaitEventTypes(boolean value) { * *
        * Output only. Track wait event types during query execution for an
-       * instance. This flag is turned "on" by default but tracking is enabled
-       * only after observability enabled flag is also turned on. This is
-       * read-only flag and only modifiable by internal API.
+       * instance.
        * 
* - * - * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -5470,26 +7774,11 @@ public Builder clearTrackWaitEventTypes() { * * *
-       * Query string length. The default value is 10k.
-       * 
- * - * optional int32 max_query_string_length = 5; - * - * @return Whether the maxQueryStringLength field is set. - */ - @java.lang.Override - public boolean hasMaxQueryStringLength() { - return ((bitField0_ & 0x00000010) != 0); - } - - /** - * - * - *
-       * Query string length. The default value is 10k.
+       * Output only. Query string length. The default value is 10k.
        * 
* - * optional int32 max_query_string_length = 5; + * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The maxQueryStringLength. */ @@ -5502,10 +7791,11 @@ public int getMaxQueryStringLength() { * * *
-       * Query string length. The default value is 10k.
+       * Output only. Query string length. The default value is 10k.
        * 
* - * optional int32 max_query_string_length = 5; + * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The maxQueryStringLength to set. * @return This builder for chaining. @@ -5522,10 +7812,11 @@ public Builder setMaxQueryStringLength(int value) { * * *
-       * Query string length. The default value is 10k.
+       * Output only. Query string length. The default value is 10k.
        * 
* - * optional int32 max_query_string_length = 5; + * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -5542,28 +7833,10 @@ public Builder clearMaxQueryStringLength() { * * *
-       * Record application tags for an instance.
-       * This flag is turned "off" by default.
-       * 
- * - * optional bool record_application_tags = 6; - * - * @return Whether the recordApplicationTags field is set. - */ - @java.lang.Override - public boolean hasRecordApplicationTags() { - return ((bitField0_ & 0x00000020) != 0); - } - - /** - * - * - *
-       * Record application tags for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Record application tags for an instance.
        * 
* - * optional bool record_application_tags = 6; + * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The recordApplicationTags. */ @@ -5576,11 +7849,10 @@ public boolean getRecordApplicationTags() { * * *
-       * Record application tags for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Record application tags for an instance.
        * 
* - * optional bool record_application_tags = 6; + * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The recordApplicationTags to set. * @return This builder for chaining. @@ -5597,11 +7869,10 @@ public Builder setRecordApplicationTags(boolean value) { * * *
-       * Record application tags for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Record application tags for an instance.
        * 
* - * optional bool record_application_tags = 6; + * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -5618,30 +7889,11 @@ public Builder clearRecordApplicationTags() { * * *
-       * Number of query execution plans captured by Insights per minute
-       * for all queries combined. The default value is 200.
-       * Any integer between 0 to 200 is considered valid.
-       * 
- * - * optional int32 query_plans_per_minute = 7; - * - * @return Whether the queryPlansPerMinute field is set. - */ - @java.lang.Override - public boolean hasQueryPlansPerMinute() { - return ((bitField0_ & 0x00000040) != 0); - } - - /** - * - * - *
-       * Number of query execution plans captured by Insights per minute
-       * for all queries combined. The default value is 200.
-       * Any integer between 0 to 200 is considered valid.
+       * Output only. Number of query execution plans captured by Insights per
+       * minute for all queries combined.
        * 
* - * optional int32 query_plans_per_minute = 7; + * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The queryPlansPerMinute. */ @@ -5654,12 +7906,11 @@ public int getQueryPlansPerMinute() { * * *
-       * Number of query execution plans captured by Insights per minute
-       * for all queries combined. The default value is 200.
-       * Any integer between 0 to 200 is considered valid.
+       * Output only. Number of query execution plans captured by Insights per
+       * minute for all queries combined.
        * 
* - * optional int32 query_plans_per_minute = 7; + * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The queryPlansPerMinute to set. * @return This builder for chaining. @@ -5676,12 +7927,11 @@ public Builder setQueryPlansPerMinute(int value) { * * *
-       * Number of query execution plans captured by Insights per minute
-       * for all queries combined. The default value is 200.
-       * Any integer between 0 to 200 is considered valid.
+       * Output only. Number of query execution plans captured by Insights per
+       * minute for all queries combined.
        * 
* - * optional int32 query_plans_per_minute = 7; + * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -5698,28 +7948,10 @@ public Builder clearQueryPlansPerMinute() { * * *
-       * Track actively running queries on the instance.
-       * If not set, this flag is "off" by default.
-       * 
- * - * optional bool track_active_queries = 8; - * - * @return Whether the trackActiveQueries field is set. - */ - @java.lang.Override - public boolean hasTrackActiveQueries() { - return ((bitField0_ & 0x00000080) != 0); - } - - /** - * - * - *
-       * Track actively running queries on the instance.
-       * If not set, this flag is "off" by default.
+       * Output only. Track actively running queries on the instance.
        * 
* - * optional bool track_active_queries = 8; + * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The trackActiveQueries. */ @@ -5732,11 +7964,10 @@ public boolean getTrackActiveQueries() { * * *
-       * Track actively running queries on the instance.
-       * If not set, this flag is "off" by default.
+       * Output only. Track actively running queries on the instance.
        * 
* - * optional bool track_active_queries = 8; + * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The trackActiveQueries to set. * @return This builder for chaining. @@ -5753,11 +7984,10 @@ public Builder setTrackActiveQueries(boolean value) { * * *
-       * Track actively running queries on the instance.
-       * If not set, this flag is "off" by default.
+       * Output only. Track actively running queries on the instance.
        * 
* - * optional bool track_active_queries = 8; + * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -5768,26 +7998,26 @@ public Builder clearTrackActiveQueries() { return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo) } - // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) - private static final com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo) + private static final com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig(); + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo(); } - public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public ObservabilityInstanceConfig parsePartialFrom( + public ObservabilityInstanceInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5807,17 +8037,17 @@ public ObservabilityInstanceConfig parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig + public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -16861,6 +19091,75 @@ public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig getQuery : queryInsightsConfig_; } + public static final int QUERY_INSIGHTS_INFO_FIELD_NUMBER = 47; + private com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo queryInsightsInfo_; + + /** + * + * + *
+   * Output only. Instance level Query Insights information, which is read-only
+   * and available in the output only. Contains the effective query insights
+   * settings for this instance, by merging customer's provided
+   * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the queryInsightsInfo field is set. + */ + @java.lang.Override + public boolean hasQueryInsightsInfo() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Output only. Instance level Query Insights information, which is read-only
+   * and available in the output only. Contains the effective query insights
+   * settings for this instance, by merging customer's provided
+   * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The queryInsightsInfo. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo getQueryInsightsInfo() { + return queryInsightsInfo_ == null + ? com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.getDefaultInstance() + : queryInsightsInfo_; + } + + /** + * + * + *
+   * Output only. Instance level Query Insights information, which is read-only
+   * and available in the output only. Contains the effective query insights
+   * settings for this instance, by merging customer's provided
+   * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfoOrBuilder + getQueryInsightsInfoOrBuilder() { + return queryInsightsInfo_ == null + ? com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.getDefaultInstance() + : queryInsightsInfo_; + } + public static final int OBSERVABILITY_CONFIG_FIELD_NUMBER = 26; private com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig observabilityConfig_; @@ -16878,7 +19177,7 @@ public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig getQuery */ @java.lang.Override public boolean hasObservabilityConfig() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -16918,6 +19217,76 @@ public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig getObser : observabilityConfig_; } + public static final int OBSERVABILITY_INSTANCE_INFO_FIELD_NUMBER = 44; + private com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observabilityInstanceInfo_; + + /** + * + * + *
+   * Output only. Instance level observability information, contains the
+   * effective values of observability settings for this instance, by merging
+   * customer's provided `ObservabilityInstanceConfig` with the
+   * Observability defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the observabilityInstanceInfo field is set. + */ + @java.lang.Override + public boolean hasObservabilityInstanceInfo() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+   * Output only. Instance level observability information, contains the
+   * effective values of observability settings for this instance, by merging
+   * customer's provided `ObservabilityInstanceConfig` with the
+   * Observability defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The observabilityInstanceInfo. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo + getObservabilityInstanceInfo() { + return observabilityInstanceInfo_ == null + ? com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.getDefaultInstance() + : observabilityInstanceInfo_; + } + + /** + * + * + *
+   * Output only. Instance level observability information, contains the
+   * effective values of observability settings for this instance, by merging
+   * customer's provided `ObservabilityInstanceConfig` with the
+   * Observability defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfoOrBuilder + getObservabilityInstanceInfoOrBuilder() { + return observabilityInstanceInfo_ == null + ? com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.getDefaultInstance() + : observabilityInstanceInfo_; + } + public static final int READ_POOL_CONFIG_FIELD_NUMBER = 14; private com.google.cloud.alloydb.v1.Instance.ReadPoolConfig readPoolConfig_; @@ -16935,7 +19304,7 @@ public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig getObser */ @java.lang.Override public boolean hasReadPoolConfig() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -17300,7 +19669,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { */ @java.lang.Override public boolean hasClientConnectionConfig() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -17380,7 +19749,7 @@ public boolean getSatisfiesPzs() { */ @java.lang.Override public boolean hasPscInstanceConfig() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -17442,7 +19811,7 @@ public com.google.cloud.alloydb.v1.Instance.PscInstanceConfig getPscInstanceConf */ @java.lang.Override public boolean hasNetworkConfig() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -17633,7 +20002,7 @@ public com.google.cloud.alloydb.v1.Instance.ActivationPolicy getActivationPolicy */ @java.lang.Override public boolean hasConnectionPoolConfig() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -17730,7 +20099,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetDatabaseFlags(), DatabaseFlagsDefaultEntryHolder.defaultEntry, 13); - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(14, getReadPoolConfig()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ipAddress_)) { @@ -17753,22 +20122,22 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(21, getQueryInsightsConfig()); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { output.writeMessage(23, getClientConnectionConfig()); } if (satisfiesPzs_ != false) { output.writeBool(24, satisfiesPzs_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(26, getObservabilityConfig()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(publicIpAddress_)) { com.google.protobuf.GeneratedMessage.writeString(output, 27, publicIpAddress_); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { output.writeMessage(28, getPscInstanceConfig()); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { output.writeMessage(29, getNetworkConfig()); } for (int i = 0; i < outboundPublicIpAddresses_.size(); i++) { @@ -17780,9 +20149,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(35, activationPolicy_); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { output.writeMessage(37, getConnectionPoolConfig()); } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(44, getObservabilityInstanceInfo()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(47, getQueryInsightsInfo()); + } getUnknownFields().writeTo(output); } @@ -17849,7 +20224,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, databaseFlags__); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getReadPoolConfig()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ipAddress_)) { @@ -17881,24 +20256,24 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getQueryInsightsConfig()); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getClientConnectionConfig()); } if (satisfiesPzs_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, satisfiesPzs_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getObservabilityConfig()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(publicIpAddress_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(27, publicIpAddress_); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getPscInstanceConfig()); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getNetworkConfig()); } { @@ -17914,10 +20289,18 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(35, activationPolicy_); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, getConnectionPoolConfig()); } + if (((bitField0_ & 0x00000100) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 44, getObservabilityInstanceInfo()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(47, getQueryInsightsInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -17967,10 +20350,19 @@ public boolean equals(final java.lang.Object obj) { if (hasQueryInsightsConfig()) { if (!getQueryInsightsConfig().equals(other.getQueryInsightsConfig())) return false; } + if (hasQueryInsightsInfo() != other.hasQueryInsightsInfo()) return false; + if (hasQueryInsightsInfo()) { + if (!getQueryInsightsInfo().equals(other.getQueryInsightsInfo())) return false; + } if (hasObservabilityConfig() != other.hasObservabilityConfig()) return false; if (hasObservabilityConfig()) { if (!getObservabilityConfig().equals(other.getObservabilityConfig())) return false; } + if (hasObservabilityInstanceInfo() != other.hasObservabilityInstanceInfo()) return false; + if (hasObservabilityInstanceInfo()) { + if (!getObservabilityInstanceInfo().equals(other.getObservabilityInstanceInfo())) + return false; + } if (hasReadPoolConfig() != other.hasReadPoolConfig()) return false; if (hasReadPoolConfig()) { if (!getReadPoolConfig().equals(other.getReadPoolConfig())) return false; @@ -18061,10 +20453,18 @@ public int hashCode() { hash = (37 * hash) + QUERY_INSIGHTS_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getQueryInsightsConfig().hashCode(); } + if (hasQueryInsightsInfo()) { + hash = (37 * hash) + QUERY_INSIGHTS_INFO_FIELD_NUMBER; + hash = (53 * hash) + getQueryInsightsInfo().hashCode(); + } if (hasObservabilityConfig()) { hash = (37 * hash) + OBSERVABILITY_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getObservabilityConfig().hashCode(); } + if (hasObservabilityInstanceInfo()) { + hash = (37 * hash) + OBSERVABILITY_INSTANCE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getObservabilityInstanceInfo().hashCode(); + } if (hasReadPoolConfig()) { hash = (37 * hash) + READ_POOL_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getReadPoolConfig().hashCode(); @@ -18283,7 +20683,9 @@ private void maybeForceBuilderInitialization() { internalGetWritableNodeFieldBuilder(); internalGetNodesFieldBuilder(); internalGetQueryInsightsConfigFieldBuilder(); + internalGetQueryInsightsInfoFieldBuilder(); internalGetObservabilityConfigFieldBuilder(); + internalGetObservabilityInstanceInfoFieldBuilder(); internalGetReadPoolConfigFieldBuilder(); internalGetClientConnectionConfigFieldBuilder(); internalGetPscInstanceConfigFieldBuilder(); @@ -18342,11 +20744,21 @@ public Builder clear() { queryInsightsConfigBuilder_.dispose(); queryInsightsConfigBuilder_ = null; } + queryInsightsInfo_ = null; + if (queryInsightsInfoBuilder_ != null) { + queryInsightsInfoBuilder_.dispose(); + queryInsightsInfoBuilder_ = null; + } observabilityConfig_ = null; if (observabilityConfigBuilder_ != null) { observabilityConfigBuilder_.dispose(); observabilityConfigBuilder_ = null; } + observabilityInstanceInfo_ = null; + if (observabilityInstanceInfoBuilder_ != null) { + observabilityInstanceInfoBuilder_.dispose(); + observabilityInstanceInfoBuilder_ = null; + } readPoolConfig_ = null; if (readPoolConfigBuilder_ != null) { readPoolConfigBuilder_.dispose(); @@ -18488,68 +20900,82 @@ private void buildPartial0(com.google.cloud.alloydb.v1.Instance result) { to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00010000) != 0)) { + result.queryInsightsInfo_ = + queryInsightsInfoBuilder_ == null + ? queryInsightsInfo_ + : queryInsightsInfoBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00020000) != 0)) { result.observabilityConfig_ = observabilityConfigBuilder_ == null ? observabilityConfig_ : observabilityConfigBuilder_.build(); - to_bitField0_ |= 0x00000040; + to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { + result.observabilityInstanceInfo_ = + observabilityInstanceInfoBuilder_ == null + ? observabilityInstanceInfo_ + : observabilityInstanceInfoBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00080000) != 0)) { result.readPoolConfig_ = readPoolConfigBuilder_ == null ? readPoolConfig_ : readPoolConfigBuilder_.build(); - to_bitField0_ |= 0x00000080; + to_bitField0_ |= 0x00000200; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.ipAddress_ = ipAddress_; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.publicIpAddress_ = publicIpAddress_; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00400000) != 0)) { result.reconciling_ = reconciling_; } - if (((from_bitField0_ & 0x00200000) != 0)) { + if (((from_bitField0_ & 0x00800000) != 0)) { result.etag_ = etag_; } - if (((from_bitField0_ & 0x00400000) != 0)) { + if (((from_bitField0_ & 0x01000000) != 0)) { result.annotations_ = internalGetAnnotations(); result.annotations_.makeImmutable(); } - if (((from_bitField0_ & 0x00800000) != 0)) { + if (((from_bitField0_ & 0x02000000) != 0)) { result.clientConnectionConfig_ = clientConnectionConfigBuilder_ == null ? clientConnectionConfig_ : clientConnectionConfigBuilder_.build(); - to_bitField0_ |= 0x00000100; + to_bitField0_ |= 0x00000400; } - if (((from_bitField0_ & 0x01000000) != 0)) { + if (((from_bitField0_ & 0x04000000) != 0)) { result.satisfiesPzs_ = satisfiesPzs_; } - if (((from_bitField0_ & 0x02000000) != 0)) { + if (((from_bitField0_ & 0x08000000) != 0)) { result.pscInstanceConfig_ = pscInstanceConfigBuilder_ == null ? pscInstanceConfig_ : pscInstanceConfigBuilder_.build(); - to_bitField0_ |= 0x00000200; + to_bitField0_ |= 0x00000800; } - if (((from_bitField0_ & 0x04000000) != 0)) { + if (((from_bitField0_ & 0x10000000) != 0)) { result.networkConfig_ = networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); - to_bitField0_ |= 0x00000400; + to_bitField0_ |= 0x00001000; } - if (((from_bitField0_ & 0x08000000) != 0)) { + if (((from_bitField0_ & 0x20000000) != 0)) { outboundPublicIpAddresses_.makeImmutable(); result.outboundPublicIpAddresses_ = outboundPublicIpAddresses_; } - if (((from_bitField0_ & 0x10000000) != 0)) { + if (((from_bitField0_ & 0x40000000) != 0)) { result.activationPolicy_ = activationPolicy_; } - if (((from_bitField0_ & 0x20000000) != 0)) { + if (((from_bitField0_ & 0x80000000) != 0)) { result.connectionPoolConfig_ = connectionPoolConfigBuilder_ == null ? connectionPoolConfig_ : connectionPoolConfigBuilder_.build(); - to_bitField0_ |= 0x00000800; + to_bitField0_ |= 0x00002000; } result.bitField0_ |= to_bitField0_; } @@ -18644,20 +21070,26 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.Instance other) { if (other.hasQueryInsightsConfig()) { mergeQueryInsightsConfig(other.getQueryInsightsConfig()); } + if (other.hasQueryInsightsInfo()) { + mergeQueryInsightsInfo(other.getQueryInsightsInfo()); + } if (other.hasObservabilityConfig()) { mergeObservabilityConfig(other.getObservabilityConfig()); } + if (other.hasObservabilityInstanceInfo()) { + mergeObservabilityInstanceInfo(other.getObservabilityInstanceInfo()); + } if (other.hasReadPoolConfig()) { mergeReadPoolConfig(other.getReadPoolConfig()); } if (!other.getIpAddress().isEmpty()) { ipAddress_ = other.ipAddress_; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); } if (!other.getPublicIpAddress().isEmpty()) { publicIpAddress_ = other.publicIpAddress_; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; onChanged(); } if (other.getReconciling() != false) { @@ -18665,11 +21097,11 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.Instance other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; onChanged(); } internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; if (other.hasClientConnectionConfig()) { mergeClientConnectionConfig(other.getClientConnectionConfig()); } @@ -18685,7 +21117,7 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.Instance other) { if (!other.outboundPublicIpAddresses_.isEmpty()) { if (outboundPublicIpAddresses_.isEmpty()) { outboundPublicIpAddresses_ = other.outboundPublicIpAddresses_; - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; } else { ensureOutboundPublicIpAddressesIsMutable(); outboundPublicIpAddresses_.addAll(other.outboundPublicIpAddresses_); @@ -18822,25 +21254,25 @@ public Builder mergeFrom( { input.readMessage( internalGetReadPoolConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; break; } // case 114 case 122: { ipAddress_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; break; } // case 122 case 128: { reconciling_ = input.readBool(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00400000; break; } // case 128 case 138: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; break; } // case 138 case 146: @@ -18852,7 +21284,7 @@ public Builder mergeFrom( internalGetMutableAnnotations() .getMutableMap() .put(annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; break; } // case 146 case 154: @@ -18887,40 +21319,40 @@ public Builder mergeFrom( input.readMessage( internalGetClientConnectionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; break; } // case 186 case 192: { satisfiesPzs_ = input.readBool(); - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; break; } // case 192 case 210: { input.readMessage( internalGetObservabilityConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 210 case 218: { publicIpAddress_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; break; } // case 218 case 226: { input.readMessage( internalGetPscInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; break; } // case 226 case 234: { input.readMessage( internalGetNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; break; } // case 234 case 274: @@ -18933,16 +21365,31 @@ public Builder mergeFrom( case 280: { activationPolicy_ = input.readEnum(); - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; break; } // case 280 case 298: { input.readMessage( internalGetConnectionPoolConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; break; } // case 298 + case 354: + { + input.readMessage( + internalGetObservabilityInstanceInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 354 + case 378: + { + input.readMessage( + internalGetQueryInsightsInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 378 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -21956,13 +24403,259 @@ public Builder clearQueryInsightsConfig() { if (queryInsightsConfigBuilder_ == null) { queryInsightsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig, - com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig.Builder, - com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfigOrBuilder>( - getQueryInsightsConfig(), getParentForChildren(), isClean()); - queryInsightsConfig_ = null; + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig, + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig.Builder, + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfigOrBuilder>( + getQueryInsightsConfig(), getParentForChildren(), isClean()); + queryInsightsConfig_ = null; + } + return queryInsightsConfigBuilder_; + } + + private com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo queryInsightsInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo, + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.Builder, + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfoOrBuilder> + queryInsightsInfoBuilder_; + + /** + * + * + *
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the queryInsightsInfo field is set. + */ + public boolean hasQueryInsightsInfo() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The queryInsightsInfo. + */ + public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo getQueryInsightsInfo() { + if (queryInsightsInfoBuilder_ == null) { + return queryInsightsInfo_ == null + ? com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.getDefaultInstance() + : queryInsightsInfo_; + } else { + return queryInsightsInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setQueryInsightsInfo( + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo value) { + if (queryInsightsInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queryInsightsInfo_ = value; + } else { + queryInsightsInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setQueryInsightsInfo( + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.Builder builderForValue) { + if (queryInsightsInfoBuilder_ == null) { + queryInsightsInfo_ = builderForValue.build(); + } else { + queryInsightsInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeQueryInsightsInfo( + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo value) { + if (queryInsightsInfoBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && queryInsightsInfo_ != null + && queryInsightsInfo_ + != com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo + .getDefaultInstance()) { + getQueryInsightsInfoBuilder().mergeFrom(value); + } else { + queryInsightsInfo_ = value; + } + } else { + queryInsightsInfoBuilder_.mergeFrom(value); + } + if (queryInsightsInfo_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearQueryInsightsInfo() { + bitField0_ = (bitField0_ & ~0x00010000); + queryInsightsInfo_ = null; + if (queryInsightsInfoBuilder_ != null) { + queryInsightsInfoBuilder_.dispose(); + queryInsightsInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.Builder + getQueryInsightsInfoBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return internalGetQueryInsightsInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfoOrBuilder + getQueryInsightsInfoOrBuilder() { + if (queryInsightsInfoBuilder_ != null) { + return queryInsightsInfoBuilder_.getMessageOrBuilder(); + } else { + return queryInsightsInfo_ == null + ? com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.getDefaultInstance() + : queryInsightsInfo_; + } + } + + /** + * + * + *
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo, + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.Builder, + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfoOrBuilder> + internalGetQueryInsightsInfoFieldBuilder() { + if (queryInsightsInfoBuilder_ == null) { + queryInsightsInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo, + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.Builder, + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfoOrBuilder>( + getQueryInsightsInfo(), getParentForChildren(), isClean()); + queryInsightsInfo_ = null; } - return queryInsightsConfigBuilder_; + return queryInsightsInfoBuilder_; } private com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig observabilityConfig_; @@ -21986,7 +24679,7 @@ public Builder clearQueryInsightsConfig() { * @return Whether the observabilityConfig field is set. */ public boolean hasObservabilityConfig() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -22034,7 +24727,7 @@ public Builder setObservabilityConfig( } else { observabilityConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -22057,7 +24750,7 @@ public Builder setObservabilityConfig( } else { observabilityConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -22076,7 +24769,7 @@ public Builder setObservabilityConfig( public Builder mergeObservabilityConfig( com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig value) { if (observabilityConfigBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00020000) != 0) && observabilityConfig_ != null && observabilityConfig_ != com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig @@ -22089,7 +24782,7 @@ public Builder mergeObservabilityConfig( observabilityConfigBuilder_.mergeFrom(value); } if (observabilityConfig_ != null) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -22107,7 +24800,7 @@ public Builder mergeObservabilityConfig( * */ public Builder clearObservabilityConfig() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); observabilityConfig_ = null; if (observabilityConfigBuilder_ != null) { observabilityConfigBuilder_.dispose(); @@ -22130,7 +24823,7 @@ public Builder clearObservabilityConfig() { */ public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.Builder getObservabilityConfigBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return internalGetObservabilityConfigFieldBuilder().getBuilder(); } @@ -22185,6 +24878,254 @@ public Builder clearObservabilityConfig() { return observabilityConfigBuilder_; } + private com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo + observabilityInstanceInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo, + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.Builder, + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfoOrBuilder> + observabilityInstanceInfoBuilder_; + + /** + * + * + *
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the observabilityInstanceInfo field is set. + */ + public boolean hasObservabilityInstanceInfo() { + return ((bitField0_ & 0x00040000) != 0); + } + + /** + * + * + *
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The observabilityInstanceInfo. + */ + public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo + getObservabilityInstanceInfo() { + if (observabilityInstanceInfoBuilder_ == null) { + return observabilityInstanceInfo_ == null + ? com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.getDefaultInstance() + : observabilityInstanceInfo_; + } else { + return observabilityInstanceInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setObservabilityInstanceInfo( + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo value) { + if (observabilityInstanceInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + observabilityInstanceInfo_ = value; + } else { + observabilityInstanceInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setObservabilityInstanceInfo( + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.Builder builderForValue) { + if (observabilityInstanceInfoBuilder_ == null) { + observabilityInstanceInfo_ = builderForValue.build(); + } else { + observabilityInstanceInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeObservabilityInstanceInfo( + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo value) { + if (observabilityInstanceInfoBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) + && observabilityInstanceInfo_ != null + && observabilityInstanceInfo_ + != com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo + .getDefaultInstance()) { + getObservabilityInstanceInfoBuilder().mergeFrom(value); + } else { + observabilityInstanceInfo_ = value; + } + } else { + observabilityInstanceInfoBuilder_.mergeFrom(value); + } + if (observabilityInstanceInfo_ != null) { + bitField0_ |= 0x00040000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearObservabilityInstanceInfo() { + bitField0_ = (bitField0_ & ~0x00040000); + observabilityInstanceInfo_ = null; + if (observabilityInstanceInfoBuilder_ != null) { + observabilityInstanceInfoBuilder_.dispose(); + observabilityInstanceInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.Builder + getObservabilityInstanceInfoBuilder() { + bitField0_ |= 0x00040000; + onChanged(); + return internalGetObservabilityInstanceInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfoOrBuilder + getObservabilityInstanceInfoOrBuilder() { + if (observabilityInstanceInfoBuilder_ != null) { + return observabilityInstanceInfoBuilder_.getMessageOrBuilder(); + } else { + return observabilityInstanceInfo_ == null + ? com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.getDefaultInstance() + : observabilityInstanceInfo_; + } + } + + /** + * + * + *
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo, + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.Builder, + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfoOrBuilder> + internalGetObservabilityInstanceInfoFieldBuilder() { + if (observabilityInstanceInfoBuilder_ == null) { + observabilityInstanceInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo, + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.Builder, + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfoOrBuilder>( + getObservabilityInstanceInfo(), getParentForChildren(), isClean()); + observabilityInstanceInfo_ = null; + } + return observabilityInstanceInfoBuilder_; + } + private com.google.cloud.alloydb.v1.Instance.ReadPoolConfig readPoolConfig_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.alloydb.v1.Instance.ReadPoolConfig, @@ -22205,7 +25146,7 @@ public Builder clearObservabilityConfig() { * @return Whether the readPoolConfig field is set. */ public boolean hasReadPoolConfig() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -22249,7 +25190,7 @@ public Builder setReadPoolConfig(com.google.cloud.alloydb.v1.Instance.ReadPoolCo } else { readPoolConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -22271,7 +25212,7 @@ public Builder setReadPoolConfig( } else { readPoolConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -22288,7 +25229,7 @@ public Builder setReadPoolConfig( */ public Builder mergeReadPoolConfig(com.google.cloud.alloydb.v1.Instance.ReadPoolConfig value) { if (readPoolConfigBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) + if (((bitField0_ & 0x00080000) != 0) && readPoolConfig_ != null && readPoolConfig_ != com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.getDefaultInstance()) { @@ -22300,7 +25241,7 @@ public Builder mergeReadPoolConfig(com.google.cloud.alloydb.v1.Instance.ReadPool readPoolConfigBuilder_.mergeFrom(value); } if (readPoolConfig_ != null) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); } return this; @@ -22317,7 +25258,7 @@ public Builder mergeReadPoolConfig(com.google.cloud.alloydb.v1.Instance.ReadPool * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; */ public Builder clearReadPoolConfig() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00080000); readPoolConfig_ = null; if (readPoolConfigBuilder_ != null) { readPoolConfigBuilder_.dispose(); @@ -22338,7 +25279,7 @@ public Builder clearReadPoolConfig() { * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; */ public com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.Builder getReadPoolConfigBuilder() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); return internalGetReadPoolConfigFieldBuilder().getBuilder(); } @@ -22459,7 +25400,7 @@ public Builder setIpAddress(java.lang.String value) { throw new NullPointerException(); } ipAddress_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -22478,7 +25419,7 @@ public Builder setIpAddress(java.lang.String value) { */ public Builder clearIpAddress() { ipAddress_ = getDefaultInstance().getIpAddress(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00100000); onChanged(); return this; } @@ -22502,7 +25443,7 @@ public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); ipAddress_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -22584,7 +25525,7 @@ public Builder setPublicIpAddress(java.lang.String value) { throw new NullPointerException(); } publicIpAddress_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -22606,7 +25547,7 @@ public Builder setPublicIpAddress(java.lang.String value) { */ public Builder clearPublicIpAddress() { publicIpAddress_ = getDefaultInstance().getPublicIpAddress(); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } @@ -22633,7 +25574,7 @@ public Builder setPublicIpAddressBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); publicIpAddress_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -22679,7 +25620,7 @@ public boolean getReconciling() { public Builder setReconciling(boolean value) { reconciling_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -22700,7 +25641,7 @@ public Builder setReconciling(boolean value) { * @return This builder for chaining. */ public Builder clearReconciling() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00400000); reconciling_ = false; onChanged(); return this; @@ -22771,7 +25712,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -22789,7 +25730,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00800000); onChanged(); return this; } @@ -22812,7 +25753,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -22837,7 +25778,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; onChanged(); return annotations_; } @@ -22935,7 +25876,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { } public Builder clearAnnotations() { - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x01000000); internalGetMutableAnnotations().getMutableMap().clear(); return this; } @@ -22962,7 +25903,7 @@ public Builder removeAnnotations(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAnnotations() { - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; return internalGetMutableAnnotations().getMutableMap(); } @@ -22985,7 +25926,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableAnnotations().getMutableMap().put(key, value); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; return this; } @@ -23002,7 +25943,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { */ public Builder putAllAnnotations(java.util.Map values) { internalGetMutableAnnotations().getMutableMap().putAll(values); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; return this; } @@ -23027,7 +25968,7 @@ public Builder putAllAnnotations(java.util.Map */ public Builder clearClientConnectionConfig() { - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x02000000); clientConnectionConfig_ = null; if (clientConnectionConfigBuilder_ != null) { clientConnectionConfigBuilder_.dispose(); @@ -23170,7 +26111,7 @@ public Builder clearClientConnectionConfig() { */ public com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.Builder getClientConnectionConfigBuilder() { - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; onChanged(); return internalGetClientConnectionConfigFieldBuilder().getBuilder(); } @@ -23258,7 +26199,7 @@ public boolean getSatisfiesPzs() { public Builder setSatisfiesPzs(boolean value) { satisfiesPzs_ = value; - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -23275,7 +26216,7 @@ public Builder setSatisfiesPzs(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x04000000); satisfiesPzs_ = false; onChanged(); return this; @@ -23303,7 +26244,7 @@ public Builder clearSatisfiesPzs() { * @return Whether the pscInstanceConfig field is set. */ public boolean hasPscInstanceConfig() { - return ((bitField0_ & 0x02000000) != 0); + return ((bitField0_ & 0x08000000) != 0); } /** @@ -23352,7 +26293,7 @@ public Builder setPscInstanceConfig( } else { pscInstanceConfigBuilder_.setMessage(value); } - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -23376,7 +26317,7 @@ public Builder setPscInstanceConfig( } else { pscInstanceConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -23396,7 +26337,7 @@ public Builder setPscInstanceConfig( public Builder mergePscInstanceConfig( com.google.cloud.alloydb.v1.Instance.PscInstanceConfig value) { if (pscInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x02000000) != 0) + if (((bitField0_ & 0x08000000) != 0) && pscInstanceConfig_ != null && pscInstanceConfig_ != com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.getDefaultInstance()) { @@ -23408,7 +26349,7 @@ public Builder mergePscInstanceConfig( pscInstanceConfigBuilder_.mergeFrom(value); } if (pscInstanceConfig_ != null) { - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; onChanged(); } return this; @@ -23427,7 +26368,7 @@ public Builder mergePscInstanceConfig( * */ public Builder clearPscInstanceConfig() { - bitField0_ = (bitField0_ & ~0x02000000); + bitField0_ = (bitField0_ & ~0x08000000); pscInstanceConfig_ = null; if (pscInstanceConfigBuilder_ != null) { pscInstanceConfigBuilder_.dispose(); @@ -23451,7 +26392,7 @@ public Builder clearPscInstanceConfig() { */ public com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.Builder getPscInstanceConfigBuilder() { - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; onChanged(); return internalGetPscInstanceConfigFieldBuilder().getBuilder(); } @@ -23529,7 +26470,7 @@ public Builder clearPscInstanceConfig() { * @return Whether the networkConfig field is set. */ public boolean hasNetworkConfig() { - return ((bitField0_ & 0x04000000) != 0); + return ((bitField0_ & 0x10000000) != 0); } /** @@ -23576,7 +26517,7 @@ public Builder setNetworkConfig( } else { networkConfigBuilder_.setMessage(value); } - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -23599,7 +26540,7 @@ public Builder setNetworkConfig( } else { networkConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -23618,7 +26559,7 @@ public Builder setNetworkConfig( public Builder mergeNetworkConfig( com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig value) { if (networkConfigBuilder_ == null) { - if (((bitField0_ & 0x04000000) != 0) + if (((bitField0_ & 0x10000000) != 0) && networkConfig_ != null && networkConfig_ != com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig @@ -23631,7 +26572,7 @@ public Builder mergeNetworkConfig( networkConfigBuilder_.mergeFrom(value); } if (networkConfig_ != null) { - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; onChanged(); } return this; @@ -23649,7 +26590,7 @@ public Builder mergeNetworkConfig( * */ public Builder clearNetworkConfig() { - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x10000000); networkConfig_ = null; if (networkConfigBuilder_ != null) { networkConfigBuilder_.dispose(); @@ -23672,7 +26613,7 @@ public Builder clearNetworkConfig() { */ public com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.Builder getNetworkConfigBuilder() { - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; onChanged(); return internalGetNetworkConfigFieldBuilder().getBuilder(); } @@ -23735,7 +26676,7 @@ private void ensureOutboundPublicIpAddressesIsMutable() { outboundPublicIpAddresses_ = new com.google.protobuf.LazyStringArrayList(outboundPublicIpAddresses_); } - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; } /** @@ -23830,7 +26771,7 @@ public Builder setOutboundPublicIpAddresses(int index, java.lang.String value) { } ensureOutboundPublicIpAddressesIsMutable(); outboundPublicIpAddresses_.set(index, value); - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -23855,7 +26796,7 @@ public Builder addOutboundPublicIpAddresses(java.lang.String value) { } ensureOutboundPublicIpAddressesIsMutable(); outboundPublicIpAddresses_.add(value); - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -23877,7 +26818,7 @@ public Builder addOutboundPublicIpAddresses(java.lang.String value) { public Builder addAllOutboundPublicIpAddresses(java.lang.Iterable values) { ensureOutboundPublicIpAddressesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, outboundPublicIpAddresses_); - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -23897,7 +26838,7 @@ public Builder addAllOutboundPublicIpAddresses(java.lang.Iterable */ public Builder clearConnectionPoolConfig() { - bitField0_ = (bitField0_ & ~0x20000000); + bitField0_ = (bitField0_ & ~0x80000000); connectionPoolConfig_ = null; if (connectionPoolConfigBuilder_ != null) { connectionPoolConfigBuilder_.dispose(); @@ -24230,7 +27171,7 @@ public Builder clearConnectionPoolConfig() { */ public com.google.cloud.alloydb.v1.Instance.ConnectionPoolConfig.Builder getConnectionPoolConfigBuilder() { - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; onChanged(); return internalGetConnectionPoolConfigFieldBuilder().getBuilder(); } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/InstanceOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/InstanceOrBuilder.java index 7c6852f819e2..c028f947f139 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/InstanceOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/InstanceOrBuilder.java @@ -773,6 +773,59 @@ java.lang.String getDatabaseFlagsOrDefault( com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfigOrBuilder getQueryInsightsConfigOrBuilder(); + /** + * + * + *
+   * Output only. Instance level Query Insights information, which is read-only
+   * and available in the output only. Contains the effective query insights
+   * settings for this instance, by merging customer's provided
+   * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the queryInsightsInfo field is set. + */ + boolean hasQueryInsightsInfo(); + + /** + * + * + *
+   * Output only. Instance level Query Insights information, which is read-only
+   * and available in the output only. Contains the effective query insights
+   * settings for this instance, by merging customer's provided
+   * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The queryInsightsInfo. + */ + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo getQueryInsightsInfo(); + + /** + * + * + *
+   * Output only. Instance level Query Insights information, which is read-only
+   * and available in the output only. Contains the effective query insights
+   * settings for this instance, by merging customer's provided
+   * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfoOrBuilder + getQueryInsightsInfoOrBuilder(); + /** * * @@ -814,6 +867,59 @@ java.lang.String getDatabaseFlagsOrDefault( com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfigOrBuilder getObservabilityConfigOrBuilder(); + /** + * + * + *
+   * Output only. Instance level observability information, contains the
+   * effective values of observability settings for this instance, by merging
+   * customer's provided `ObservabilityInstanceConfig` with the
+   * Observability defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the observabilityInstanceInfo field is set. + */ + boolean hasObservabilityInstanceInfo(); + + /** + * + * + *
+   * Output only. Instance level observability information, contains the
+   * effective values of observability settings for this instance, by merging
+   * customer's provided `ObservabilityInstanceConfig` with the
+   * Observability defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The observabilityInstanceInfo. + */ + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo getObservabilityInstanceInfo(); + + /** + * + * + *
+   * Output only. Instance level observability information, contains the
+   * effective values of observability settings for this instance, by merging
+   * customer's provided `ObservabilityInstanceConfig` with the
+   * Observability defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfoOrBuilder + getObservabilityInstanceInfoOrBuilder(); + /** * * diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ResourcesProto.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ResourcesProto.java index 3d5106806a28..893098a43545 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ResourcesProto.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ResourcesProto.java @@ -168,10 +168,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1_Instance_QueryInsightsInstanceConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_alloydb_v1_Instance_QueryInsightsInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_Instance_QueryInsightsInstanceInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_Instance_QueryInsightsInstanceInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1_Instance_ReadPoolConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -492,7 +500,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tSECONDARY\020\002:u\352Ar\n" + "\036alloydb.googleapis.com/Cluster\022:projects/{project" + "}/locations/{location}/clusters/{cluster}*\010clusters2\007clusterR\001\001B\010\n" - + "\006source\"\307$\n" + + "\006source\"\377)\n" + "\010Instance\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022\020\n" @@ -517,9 +525,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005nodes\030\024 \003(\0132&" + ".google.cloud.alloydb.v1.Instance.NodeB\003\340A\003\022\\\n" + "\025query_insights_config\030\025 \001(\0132=.goo" - + "gle.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig\022[\n" - + "\024observability_config\030\032" - + " \001(\0132=.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig\022J\n" + + "gle.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig\022]\n" + + "\023query_insights_info\030/" + + " \001(\0132;.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfoB\003\340A\003\022[\n" + + "\024observability_config\030\032 \001(\0132=.google.cloud.al" + + "loydb.v1.Instance.ObservabilityInstanceConfig\022e\n" + + "\033observability_instance_info\030, \001" + + "(\0132;.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfoB\003\340A\003\022J\n" + "\020read_pool_config\030\016" + " \001(\01320.google.cloud.alloydb.v1.Instance.ReadPoolConfig\022\027\n\n" + "ip_address\030\017 \001(\tB\003\340A\003\022&\n" @@ -527,21 +539,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tB\013\340A\003\342\214\317\327\010\002\010\002\022\030\n" + "\013reconciling\030\020 \001(\010B\003\340A\003\022\014\n" + "\004etag\030\021 \001(\t\022G\n" - + "\013annotations\030\022 \003(\01322.googl" - + "e.cloud.alloydb.v1.Instance.AnnotationsEntry\022_\n" - + "\030client_connection_config\030\027 \001(\01328" - + ".google.cloud.alloydb.v1.Instance.ClientConnectionConfigB\003\340A\001\022\032\n\r" + + "\013annotations\030\022 \003(\01322.google." + + "cloud.alloydb.v1.Instance.AnnotationsEntry\022_\n" + + "\030client_connection_config\030\027 \001(\01328.g" + + "oogle.cloud.alloydb.v1.Instance.ClientConnectionConfigB\003\340A\001\022\032\n\r" + "satisfies_pzs\030\030 \001(\010B\003\340A\003\022U\n" - + "\023psc_instance_config\030\034 \001(\01323" - + ".google.cloud.alloydb.v1.Instance.PscInstanceConfigB\003\340A\001\022T\n" - + "\016network_config\030\035 \001(\013" - + "27.google.cloud.alloydb.v1.Instance.InstanceNetworkConfigB\003\340A\001\0221\n" + + "\023psc_instance_config\030\034 \001(\01323.g" + + "oogle.cloud.alloydb.v1.Instance.PscInstanceConfigB\003\340A\001\022T\n" + + "\016network_config\030\035 \001(\01327" + + ".google.cloud.alloydb.v1.Instance.InstanceNetworkConfigB\003\340A\001\0221\n" + "\034outbound_public_ip_addresses\030\" \003(" + "\tB\013\340A\003\342\214\317\327\010\002\010\002\022R\n" + "\021activation_policy\030#" + " \001(\01622.google.cloud.alloydb.v1.Instance.ActivationPolicyB\003\340A\001\022[\n" - + "\026connection_pool_config\030% \001(\01326.google.c" - + "loud.alloydb.v1.Instance.ConnectionPoolConfigB\003\340A\001\0328\n\r" + + "\026connection_pool_config\030% \001(\01326.google.clo" + + "ud.alloydb.v1.Instance.ConnectionPoolConfigB\003\340A\001\0328\n\r" + "MachineConfig\022\021\n" + "\tcpu_count\030\001 \001(\005\022\024\n" + "\014machine_type\030\004 \001(\t\032R\n" @@ -559,7 +571,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "H\002\210\001\001B\032\n" + "\030_record_application_tagsB\030\n" + "\026_record_client_addressB\031\n" - + "\027_query_plans_per_minute\032\360\003\n" + + "\027_query_plans_per_minute\032\302\001\n" + + "\031QueryInsightsInstanceInfo\022\024\n" + + "\007enabled\030\001 \001(\010B\003\340A\003\022$\n" + + "\027record_application_tags\030\002 \001(\010B\003\340A\003\022\"\n" + + "\025record_client_address\030\003 \001(\010B\003\340A\003\022 \n" + + "\023query_string_length\030\004 \001(\r" + + "B\003\340A\003\022#\n" + + "\026query_plans_per_minute\030\005 \001(\r" + + "B\003\340A\003\032\360\003\n" + "\033ObservabilityInstanceConfig\022\024\n" + "\007enabled\030\001 \001(\010H\000\210\001\001\022\036\n" + "\021preserve_comments\030\002 \001(\010H\001\210\001\001\022\036\n" @@ -576,7 +596,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030_max_query_string_lengthB\032\n" + "\030_record_application_tagsB\031\n" + "\027_query_plans_per_minuteB\027\n" - + "\025_track_active_queries\032$\n" + + "\025_track_active_queries\032\252\002\n" + + "\031ObservabilityInstanceInfo\022\024\n" + + "\007enabled\030\002 \001(\010B\003\340A\003\022\036\n" + + "\021preserve_comments\030\003 \001(\010B\003\340A\003\022\036\n" + + "\021track_wait_events\030\004 \001(\010B\003\340A\003\022#\n" + + "\026track_wait_event_types\030\005 \001(\010B\003\340A\003\022$\n" + + "\027max_query_string_length\030\006 \001(\005B\003\340A\003\022$\n" + + "\027record_application_tags\030\007 \001(\010B\003\340A\003\022#\n" + + "\026query_plans_per_minute\030\010 \001(\005B\003\340A\003\022!\n" + + "\024track_active_queries\030\t \001(\010B\003\340A\003\032$\n" + "\016ReadPoolConfig\022\022\n\n" + "node_count\030\001 \001(\005\032v\n" + "\026ClientConnectionConfig\022\037\n" @@ -595,13 +624,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(compute.googleapis.com/ServiceAttachment\022&\n" + "\031allowed_consumer_projects\030\002 \003(\tB\003\340A\001\022\031\n" + "\014psc_dns_name\030\007 \001(\tB\003\340A\003\022X\n" - + "\025psc_interface_configs\030\010" - + " \003(\01324.google.cloud.alloydb.v1.Instance.PscInterfaceConfigB\003\340A\001\022\\\n" - + "\024psc_auto_connections\030\t \003(\01329.google.cloud" - + ".alloydb.v1.Instance.PscAutoConnectionConfigB\003\340A\001\032\352\002\n" + + "\025psc_interface_configs\030\010 \003(\01324.googl" + + "e.cloud.alloydb.v1.Instance.PscInterfaceConfigB\003\340A\001\022\\\n" + + "\024psc_auto_connections\030\t \003(" + + "\01329.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfigB\003\340A\001\032\352\002\n" + "\025InstanceNetworkConfig\022t\n" - + "\034authorized_external_networks\030\001 \003(\0132I.goog" - + "le.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetworkB\003\340A\001\022\035\n" + + "\034authorized_external_networks\030\001 \003(\0132I.google.cloud.alloydb.v1.Inst" + + "ance.InstanceNetworkConfig.AuthorizedNetworkB\003\340A\001\022\035\n" + "\020enable_public_ip\030\002 \001(\010B\003\340A\001\022&\n" + "\031enable_outbound_public_ip\030\003 \001(\010B\003\340A\001\0227\n" + "\007network\030\004 \001(\tB&\340A\003\372A \n" @@ -612,8 +641,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024ConnectionPoolConfig\022\024\n" + "\007enabled\030\014 \001(\010B\003\340A\001\022U\n" + "\005flags\030\r" - + " \003(\0132A.g" - + "oogle.cloud.alloydb.v1.Instance.ConnectionPoolConfig.FlagsEntryB\003\340A\001\022\031\n" + + " \003(\0132A.google.cloud.alloydb.v1.I" + + "nstance.ConnectionPoolConfig.FlagsEntryB\003\340A\001\022\031\n" + "\014pooler_count\030\016 \001(\005B\003\340A\003\032,\n\n" + "FlagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -639,7 +668,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tPROMOTING\020\t\"X\n" + "\014InstanceType\022\035\n" + "\031INSTANCE_TYPE_UNSPECIFIED\020\000\022\013\n" - + "\007PRIMARY\020\001\022\r\n" + + "\007PRIMARY\020\001\022\r" + + "\n" + "\tREAD_POOL\020\002\022\r\n" + "\tSECONDARY\020\003\"N\n" + "\020AvailabilityType\022!\n" @@ -650,8 +680,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035ACTIVATION_POLICY_UNSPECIFIED\020\000\022\n\n" + "\006ALWAYS\020\001\022\t\n" + "\005NEVER\020\002:\216\001\352A\212\001\n" - + "\037alloydb.googleapis.com/Instance\022Oprojects/{project}/locations" - + "/{location}/clusters/{cluster}/instances/{instance}*" + + "\037alloydb.googleapis.com/Instance\022Oprojects/{pr" + + "oject}/locations/{location}/clusters/{cluster}/instances/{instance}*" + "\tinstances2\010instanceR\001\001\"\251\002\n" + "\016ConnectionInfo\022\014\n" + "\004name\030\001 \001(\t\022\027\n\n" @@ -659,9 +689,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021public_ip_address\030\005 \001(" + "\tB\013\340A\003\342\214\317\327\010\002\010\002\022\031\n" + "\014instance_uid\030\004 \001(\tB\003\340A\003:\254\001\352A\250\001\n" - + "%alloydb.googleapis.com/ConnectionInfo\022^projects/{project}/locations/{lo" - + "cation}/clusters/{cluster}/instances/{in" - + "stance}/connectionInfo*\017connectionInfos2\016connectionInfo\"\205\r\n" + + "%alloydb.googleapis.com/ConnectionInfo\022^projects/{projec" + + "t}/locations/{location}/clusters/{cluste" + + "r}/instances/{instance}/connectionInfo*\017connectionInfos2\016connectionInfo\"\205\r\n" + "\006Backup\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022\020\n" @@ -686,15 +716,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017encryption_info\030\r" + " \001(\0132\'.google.cloud.alloydb.v1.EncryptionInfoB\003\340A\003\022\014\n" + "\004etag\030\016 \001(\t\022E\n" - + "\013annotations\030\020 \003(\013" - + "20.google.cloud.alloydb.v1.Backup.AnnotationsEntry\022\027\n\n" + + "\013annotations\030\020" + + " \003(\01320.google.cloud.alloydb.v1.Backup.AnnotationsEntry\022\027\n\n" + "size_bytes\030\021 \001(\003B\003\340A\003\0224\n" + "\013expiry_time\030\023 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022Q\n" - + "\017expiry_quantity\030\024 \001(\01323.goo" - + "gle.cloud.alloydb.v1.Backup.QuantityBasedExpiryB\003\340A\003\022\032\n\r" + + "\017expiry_quantity\030\024" + + " \001(\01323.google.cloud.alloydb.v1.Backup.QuantityBasedExpiryB\003\340A\003\022\032\n\r" + "satisfies_pzs\030\025 \001(\010B\003\340A\003\022G\n" - + "\020database_version\030\026" - + " \001(\0162(.google.cloud.alloydb.v1.DatabaseVersionB\003\340A\003\022B\n" + + "\020database_version\030\026 \001" + + "(\0162(.google.cloud.alloydb.v1.DatabaseVersionB\003\340A\003\022B\n" + "\004tags\030\031 \003(\0132).google.cloud.alloydb.v1.Backup.TagsEntryB" + "\t\340A\004\340A\005\340A\001\032W\n" + "\023QuantityBasedExpiry\022\034\n" @@ -717,25 +747,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010DELETING\020\004\"J\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\r\n" - + "\tON_DEMAND\020\001\022\r\n" - + "\tAUTOMATED\020\002\022\016\n" + + "\tON_DEMAND\020\001\022\r" + "\n" + + "\tAUTOMATED\020\002\022\016\n\n" + "CONTINUOUS\020\003:p\352Am\n" - + "\035alloydb.googleapis.com/Backup\0228projects/{project}/locations/" - + "{location}/backups/{backup}*\007backups2\006backupR\001\001\"\374\010\n" + + "\035alloydb.googleapis.com/Backup\0228projects/{pro" + + "ject}/locations/{location}/backups/{backup}*\007backups2\006backupR\001\001\"\374\010\n" + "\025SupportedDatabaseFlag\022`\n" - + "\023string_restrictions\030\007 \001(\0132A.google.cloud.al" - + "loydb.v1.SupportedDatabaseFlag.StringRestrictionsH\000\022b\n" - + "\024integer_restrictions\030\010 \001(" - + "\0132B.google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictionsH\000\022\"\n" + + "\023string_restrictions\030\007 \001(\0132A" + + ".google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictionsH\000\022b\n" + + "\024integer_restrictions\030\010 \001(\0132B.google.cloud.alloydb" + + ".v1.SupportedDatabaseFlag.IntegerRestrictionsH\000\022\"\n" + "\030recommended_string_value\030\n" + " \001(\tH\001\022@\n" + "\031recommended_integer_value\030\013" + " \001(\0132\033.google.protobuf.Int64ValueH\001\022\014\n" + "\004name\030\001 \001(\t\022\021\n" + "\tflag_name\030\002 \001(\t\022L\n\n" - + "value_type\030\003 \001(\01628.google.clou" - + "d.alloydb.v1.SupportedDatabaseFlag.ValueType\022\037\n" + + "value_type\030\003 \001" + + "(\01628.google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType\022\037\n" + "\027accepts_multiple_values\030\004 \001(\010\022G\n" + "\025supported_db_versions\030\005" + " \003(\0162(.google.cloud.alloydb.v1.DatabaseVersion\022\033\n" @@ -756,24 +786,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021SCOPE_UNSPECIFIED\020\000\022\014\n" + "\010DATABASE\020\001\022\023\n" + "\017CONNECTION_POOL\020\002:\227\001\352A\223\001\n" - + ",alloydb.googleapis.com/SupportedDatabaseFlag\0224projects/{project}" - + "/locations/{location}/flags/{flag}*\026supp" - + "ortedDatabaseFlags2\025supportedDatabaseFlagB\016\n" + + ",alloydb.googleapis.com/SupportedDatabaseFlag\0224pr" + + "ojects/{project}/locations/{location}/fl" + + "ags/{flag}*\026supportedDatabaseFlags2\025supportedDatabaseFlagB\016\n" + "\014restrictionsB\023\n" + "\021recommended_value\"\372\002\n" + "\004User\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\025\n" + "\010password\030\002 \001(\tB\003\340A\004\022\033\n" + "\016database_roles\030\004 \003(\tB\003\340A\001\022>\n" - + "\tuser_type\030\005" - + " \001(\0162&.google.cloud.alloydb.v1.User.UserTypeB\003\340A\001\022\035\n" + + "\tuser_type\030\005 \001(\0162&.goog" + + "le.cloud.alloydb.v1.User.UserTypeB\003\340A\001\022\035\n" + "\020keep_extra_roles\030\006 \001(\010B\003\340A\004\"Q\n" + "\010UserType\022\031\n" + "\025USER_TYPE_UNSPECIFIED\020\000\022\024\n" + "\020ALLOYDB_BUILT_IN\020\001\022\024\n" + "\020ALLOYDB_IAM_USER\020\002:y\352Av\n" - + "\033alloydb.googleapis.com/User\022Gprojects/{project}/locations" - + "/{location}/clusters/{cluster}/users/{user}*\005users2\004userR\001\001\"\346\002\n" + + "\033alloydb.googleapis.com/User\022Gprojects/{pr" + + "oject}/locations/{location}/clusters/{cluster}/users/{user}*\005users2\004userR\001\001\"\346\002\n" + "\010Database\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\027\n" + "\007charset\030\002 \001(\tB\006\340A\001\340A\005\022\031\n" @@ -782,47 +812,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021database_template\030\006 \001(\tB\006\340A\004\340A\005\022&\n" + "\024is_template_database\030\007" + " \001(\010B\003\340A\001H\000\210\001\001:\216\001\352A\212\001\n" - + "\037alloydb.googleapis.com/Database\022Oprojects/{project}/locations" - + "/{location}/clusters/{cluster}/databases/{database}*" - + "\tdatabases2\010databaseR\001\001B\027\n" - + "\025_is_template_database*^\n" - + "\014InstanceView\022\035\n" - + "\031INSTANCE_VIEW_UNSPECIFIED\020\000\022\027\n" - + "\023INSTANCE_VIEW_BASIC\020\001\022\026\n" - + "\022INSTANCE_VIEW_FULL\020\002*g\n" - + "\013ClusterView\022\034\n" - + "\030CLUSTER_VIEW_UNSPECIFIED\020\000\022\026\n" - + "\022CLUSTER_VIEW_BASIC\020\001\022\"\n" - + "\036CLUSTER_VIEW_CONTINUOUS_BACKUP\020\002*\235\001\n" - + "\017DatabaseVersion\022 \n" - + "\034DATABASE_VERSION_UNSPECIFIED\020\000\022\023\n" - + "\013POSTGRES_13\020\001\032\002\010\001\022\017\n" - + "\013POSTGRES_14\020\002\022\017\n" - + "\013POSTGRES_15\020\003\022\017\n" - + "\013POSTGRES_16\020\004\022\017\n" - + "\013POSTGRES_17\020\005\022\017\n" - + "\013POSTGRES_18\020\006*N\n" - + "\020SubscriptionType\022!\n" - + "\035SUBSCRIPTION_TYPE_UNSPECIFIED\020\000\022\014\n" - + "\010STANDARD\020\001\022\t\n" - + "\005TRIAL\020\002B\247\005\n" - + "\033com.google.cloud.alloydb.v1B\016ResourcesProtoP\001Z5cloud.g" - + "oogle.com/go/alloydb/apiv1/alloydbpb;all" - + "oydbpb\252\002\027Google.Cloud.AlloyDb.V1\312\002\027Googl" - + "e\\Cloud\\AlloyDb\\V1\352\002\032Google::Cloud::AlloyDB::V1\352A\246\001\n" - + "(cloudkms.googleapis.com/Cry", - "ptoKeyVersion\022zprojects/{project}/locati" - + "ons/{location}/keyRings/{key_ring}/crypt" - + "oKeys/{crypto_key}/cryptoKeyVersions/{cr" - + "ypto_key_version}\352AN\n\036compute.googleapis" - + ".com/Network\022,projects/{project}/global/" - + "networks/{network}\352Ax\n!cloudkms.googleap" - + "is.com/CryptoKey\022Sprojects/{project}/loc" - + "ations/{location}/keyRings/{key_ring}/cr" - + "yptoKeys/{crypto_key}\352Aw\n(compute.google" - + "apis.com/ServiceAttachment\022Kprojects/{pr" - + "oject}/regions/{region}/serviceAttachmen" - + "ts/{service_attachment}b\006proto3" + + "\037alloydb.googleapis.com/Database\022Oprojects/{pr" + + "oject}/locations/{location}/clusters/{cluster}/databases/{database}*\tdatabases2\010", + "databaseR\001\001B\027\n\025_is_template_database*^\n\014" + + "InstanceView\022\035\n\031INSTANCE_VIEW_UNSPECIFIE" + + "D\020\000\022\027\n\023INSTANCE_VIEW_BASIC\020\001\022\026\n\022INSTANCE" + + "_VIEW_FULL\020\002*g\n\013ClusterView\022\034\n\030CLUSTER_V" + + "IEW_UNSPECIFIED\020\000\022\026\n\022CLUSTER_VIEW_BASIC\020" + + "\001\022\"\n\036CLUSTER_VIEW_CONTINUOUS_BACKUP\020\002*\235\001" + + "\n\017DatabaseVersion\022 \n\034DATABASE_VERSION_UN" + + "SPECIFIED\020\000\022\023\n\013POSTGRES_13\020\001\032\002\010\001\022\017\n\013POST" + + "GRES_14\020\002\022\017\n\013POSTGRES_15\020\003\022\017\n\013POSTGRES_1" + + "6\020\004\022\017\n\013POSTGRES_17\020\005\022\017\n\013POSTGRES_18\020\006*N\n" + + "\020SubscriptionType\022!\n\035SUBSCRIPTION_TYPE_U" + + "NSPECIFIED\020\000\022\014\n\010STANDARD\020\001\022\t\n\005TRIAL\020\002B\247\005" + + "\n\033com.google.cloud.alloydb.v1B\016Resources" + + "ProtoP\001Z5cloud.google.com/go/alloydb/api" + + "v1/alloydbpb;alloydbpb\252\002\027Google.Cloud.Al" + + "loyDb.V1\312\002\027Google\\Cloud\\AlloyDb\\V1\352\002\032Goo" + + "gle::Cloud::AlloyDB::V1\352A\246\001\n(cloudkms.go" + + "ogleapis.com/CryptoKeyVersion\022zprojects/" + + "{project}/locations/{location}/keyRings/" + + "{key_ring}/cryptoKeys/{crypto_key}/crypt" + + "oKeyVersions/{crypto_key_version}\352AN\n\036co" + + "mpute.googleapis.com/Network\022,projects/{" + + "project}/global/networks/{network}\352Ax\n!c" + + "loudkms.googleapis.com/CryptoKey\022Sprojec" + + "ts/{project}/locations/{location}/keyRin" + + "gs/{key_ring}/cryptoKeys/{crypto_key}\352Aw" + + "\n(compute.googleapis.com/ServiceAttachme" + + "nt\022Kprojects/{project}/regions/{region}/" + + "serviceAttachments/{service_attachment}b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1128,7 +1149,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WritableNode", "Nodes", "QueryInsightsConfig", + "QueryInsightsInfo", "ObservabilityConfig", + "ObservabilityInstanceInfo", "ReadPoolConfig", "IpAddress", "PublicIpAddress", @@ -1170,8 +1193,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "QueryStringLength", "QueryPlansPerMinute", }); - internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_descriptor = + internal_static_google_cloud_alloydb_v1_Instance_QueryInsightsInstanceInfo_descriptor = internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(3); + internal_static_google_cloud_alloydb_v1_Instance_QueryInsightsInstanceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_Instance_QueryInsightsInstanceInfo_descriptor, + new java.lang.String[] { + "Enabled", + "RecordApplicationTags", + "RecordClientAddress", + "QueryStringLength", + "QueryPlansPerMinute", + }); + internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_descriptor = + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(4); internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_descriptor, @@ -1185,8 +1220,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "QueryPlansPerMinute", "TrackActiveQueries", }); + internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceInfo_descriptor = + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(5); + internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceInfo_descriptor, + new java.lang.String[] { + "Enabled", + "PreserveComments", + "TrackWaitEvents", + "TrackWaitEventTypes", + "MaxQueryStringLength", + "RecordApplicationTags", + "QueryPlansPerMinute", + "TrackActiveQueries", + }); internal_static_google_cloud_alloydb_v1_Instance_ReadPoolConfig_descriptor = - internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(4); + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(6); internal_static_google_cloud_alloydb_v1_Instance_ReadPoolConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Instance_ReadPoolConfig_descriptor, @@ -1194,7 +1244,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeCount", }); internal_static_google_cloud_alloydb_v1_Instance_ClientConnectionConfig_descriptor = - internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(5); + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(7); internal_static_google_cloud_alloydb_v1_Instance_ClientConnectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Instance_ClientConnectionConfig_descriptor, @@ -1202,7 +1252,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequireConnectors", "SslConfig", }); internal_static_google_cloud_alloydb_v1_Instance_PscInterfaceConfig_descriptor = - internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(6); + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(8); internal_static_google_cloud_alloydb_v1_Instance_PscInterfaceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Instance_PscInterfaceConfig_descriptor, @@ -1210,7 +1260,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkAttachmentResource", }); internal_static_google_cloud_alloydb_v1_Instance_PscAutoConnectionConfig_descriptor = - internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(7); + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(9); internal_static_google_cloud_alloydb_v1_Instance_PscAutoConnectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Instance_PscAutoConnectionConfig_descriptor, @@ -1218,7 +1268,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConsumerProject", "ConsumerNetwork", "IpAddress", "Status", "ConsumerNetworkStatus", }); internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_descriptor = - internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(8); + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(10); internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_descriptor, @@ -1230,7 +1280,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PscAutoConnections", }); internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_descriptor = - internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(9); + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(11); internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_descriptor, @@ -1251,7 +1301,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CidrRange", }); internal_static_google_cloud_alloydb_v1_Instance_ConnectionPoolConfig_descriptor = - internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(10); + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(12); internal_static_google_cloud_alloydb_v1_Instance_ConnectionPoolConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Instance_ConnectionPoolConfig_descriptor, @@ -1268,7 +1318,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(11); + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(13); internal_static_google_cloud_alloydb_v1_Instance_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Instance_LabelsEntry_descriptor, @@ -1276,7 +1326,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1_Instance_DatabaseFlagsEntry_descriptor = - internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(12); + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(14); internal_static_google_cloud_alloydb_v1_Instance_DatabaseFlagsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Instance_DatabaseFlagsEntry_descriptor, @@ -1284,7 +1334,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1_Instance_AnnotationsEntry_descriptor = - internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(13); + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(15); internal_static_google_cloud_alloydb_v1_Instance_AnnotationsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Instance_AnnotationsEntry_descriptor, diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/resources.proto b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/resources.proto index 18730aa4a086..5ed63b964a31 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/resources.proto +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/resources.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -851,6 +851,27 @@ message Instance { optional uint32 query_plans_per_minute = 5; } + // Instance level Query Insights information, which is read-only and available + // in the output only. + message QueryInsightsInstanceInfo { + // Output only. Whether Query Insights is enabled. + bool enabled = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether to record application tags. + bool record_application_tags = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether to record client address. + bool record_client_address = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Maximum query string length. + uint32 query_string_length = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of query execution plans captured per minute. + uint32 query_plans_per_minute = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // Observability Instance specific configuration. message ObservabilityInstanceConfig { // Observability feature status for an instance. @@ -890,6 +911,37 @@ message Instance { optional bool track_active_queries = 8; } + message ObservabilityInstanceInfo { + // Output only. Observability feature status for an instance. + bool enabled = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Preserve comments in query string for an instance. + bool preserve_comments = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Track wait events during query execution for an instance. + bool track_wait_events = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Track wait event types during query execution for an + // instance. + bool track_wait_event_types = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Query string length. The default value is 10k. + int32 max_query_string_length = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Record application tags for an instance. + bool record_application_tags = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of query execution plans captured by Insights per + // minute for all queries combined. + int32 query_plans_per_minute = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Track actively running queries on the instance. + bool track_active_queries = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // Configuration for a read pool instance. message ReadPoolConfig { // Read capacity, i.e. number of nodes in a read pool instance. @@ -1229,9 +1281,23 @@ message Instance { // Configuration for query insights. QueryInsightsInstanceConfig query_insights_config = 21; + // Output only. Instance level Query Insights information, which is read-only + // and available in the output only. Contains the effective query insights + // settings for this instance, by merging customer's provided + // `QueryInsightsInstanceConfig` with the Query Insights defaults. + QueryInsightsInstanceInfo query_insights_info = 47 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Configuration for observability. ObservabilityInstanceConfig observability_config = 26; + // Output only. Instance level observability information, contains the + // effective values of observability settings for this instance, by merging + // customer's provided `ObservabilityInstanceConfig` with the + // Observability defaults. + ObservabilityInstanceInfo observability_instance_info = 44 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Read pool instance configuration. // This is required if the value of instanceType is READ_POOL. ReadPoolConfig read_pool_config = 14; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ConnectionInfo.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ConnectionInfo.java index a97d6cfc8a37..27a34dc2c237 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ConnectionInfo.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ConnectionInfo.java @@ -271,7 +271,7 @@ public com.google.protobuf.ByteString getPublicIpAddressBytes() { * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1456 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1535 * @return A list containing the pemCertificateChain. */ @java.lang.Deprecated @@ -292,7 +292,7 @@ public com.google.protobuf.ProtocolStringList getPemCertificateChainList() { * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1456 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1535 * @return The count of pemCertificateChain. */ @java.lang.Deprecated @@ -313,7 +313,7 @@ public int getPemCertificateChainCount() { * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1456 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1535 * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -335,7 +335,7 @@ public java.lang.String getPemCertificateChain(int index) { * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1456 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1535 * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ @@ -1370,7 +1370,7 @@ private void ensurePemCertificateChainIsMutable() { * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1456 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1535 * @return A list containing the pemCertificateChain. */ @java.lang.Deprecated @@ -1392,7 +1392,7 @@ public com.google.protobuf.ProtocolStringList getPemCertificateChainList() { * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1456 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1535 * @return The count of pemCertificateChain. */ @java.lang.Deprecated @@ -1413,7 +1413,7 @@ public int getPemCertificateChainCount() { * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1456 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1535 * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -1435,7 +1435,7 @@ public java.lang.String getPemCertificateChain(int index) { * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1456 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1535 * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ @@ -1457,7 +1457,7 @@ public com.google.protobuf.ByteString getPemCertificateChainBytes(int index) { * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1456 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1535 * @param index The index to set the value at. * @param value The pemCertificateChain to set. * @return This builder for chaining. @@ -1487,7 +1487,7 @@ public Builder setPemCertificateChain(int index, java.lang.String value) { * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1456 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1535 * @param value The pemCertificateChain to add. * @return This builder for chaining. */ @@ -1516,7 +1516,7 @@ public Builder addPemCertificateChain(java.lang.String value) { * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1456 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1535 * @param values The pemCertificateChain to add. * @return This builder for chaining. */ @@ -1542,7 +1542,7 @@ public Builder addAllPemCertificateChain(java.lang.Iterable va * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1456 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1535 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1567,7 +1567,7 @@ public Builder clearPemCertificateChain() { * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1456 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1535 * @param value The bytes of the pemCertificateChain to add. * @return This builder for chaining. */ diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ConnectionInfoOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ConnectionInfoOrBuilder.java index 982ba6faa34f..6ac3881f306d 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ConnectionInfoOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ConnectionInfoOrBuilder.java @@ -133,7 +133,7 @@ public interface ConnectionInfoOrBuilder * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1456 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1535 * @return A list containing the pemCertificateChain. */ @java.lang.Deprecated @@ -152,7 +152,7 @@ public interface ConnectionInfoOrBuilder * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1456 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1535 * @return The count of pemCertificateChain. */ @java.lang.Deprecated @@ -171,7 +171,7 @@ public interface ConnectionInfoOrBuilder * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1456 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1535 * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -191,7 +191,7 @@ public interface ConnectionInfoOrBuilder * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1456 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1535 * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/Database.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/Database.java index 7e04903bcc1a..1a5dfbe470b5 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/Database.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/Database.java @@ -327,7 +327,7 @@ public com.google.protobuf.ByteString getCharacterTypeBytes() { * bool is_template = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.alloydb.v1alpha.Database.is_template is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=1853 + * google/cloud/alloydb/v1alpha/resources.proto;l=1932 * @return The isTemplate. */ @java.lang.Override @@ -1410,7 +1410,7 @@ public Builder setCharacterTypeBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.alloydb.v1alpha.Database.is_template is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=1853 + * google/cloud/alloydb/v1alpha/resources.proto;l=1932 * @return The isTemplate. */ @java.lang.Override @@ -1431,7 +1431,7 @@ public boolean getIsTemplate() { * * * @deprecated google.cloud.alloydb.v1alpha.Database.is_template is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=1853 + * google/cloud/alloydb/v1alpha/resources.proto;l=1932 * @param value The isTemplate to set. * @return This builder for chaining. */ @@ -1456,7 +1456,7 @@ public Builder setIsTemplate(boolean value) { * * * @deprecated google.cloud.alloydb.v1alpha.Database.is_template is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=1853 + * google/cloud/alloydb/v1alpha/resources.proto;l=1932 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/DatabaseOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/DatabaseOrBuilder.java index a0373e183f7d..62b76685a046 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/DatabaseOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/DatabaseOrBuilder.java @@ -167,7 +167,7 @@ public interface DatabaseOrBuilder * bool is_template = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.alloydb.v1alpha.Database.is_template is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=1853 + * google/cloud/alloydb/v1alpha/resources.proto;l=1932 * @return The isTemplate. */ @java.lang.Deprecated diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/Instance.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/Instance.java index 4d27c2620fd5..eb3273deeefa 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/Instance.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/Instance.java @@ -4212,34 +4212,19 @@ public com.google.protobuf.Parser getParserForType( } } - public interface ObservabilityInstanceConfigOrBuilder + public interface QueryInsightsInstanceInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig) + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo) com.google.protobuf.MessageOrBuilder { /** * * *
-     * Observability feature status for an instance.
-     * This flag is turned "off" by default.
-     * 
- * - * optional bool enabled = 1; - * - * @return Whether the enabled field is set. - */ - boolean hasEnabled(); - - /** - * - * - *
-     * Observability feature status for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Whether Query Insights is enabled.
      * 
* - * optional bool enabled = 1; + * bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The enabled. */ @@ -4249,492 +4234,3361 @@ public interface ObservabilityInstanceConfigOrBuilder * * *
-     * Preserve comments in query string for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Whether to record application tags.
      * 
* - * optional bool preserve_comments = 2; + * bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the preserveComments field is set. + * @return The recordApplicationTags. */ - boolean hasPreserveComments(); + boolean getRecordApplicationTags(); /** * * *
-     * Preserve comments in query string for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Whether to record client address.
      * 
* - * optional bool preserve_comments = 2; + * bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The preserveComments. + * @return The recordClientAddress. */ - boolean getPreserveComments(); + boolean getRecordClientAddress(); /** * * *
-     * Track wait events during query execution for an instance.
-     * This flag is turned "on" by default but tracking is enabled only after
-     * observability enabled flag is also turned on.
+     * Output only. Maximum query string length.
      * 
* - * optional bool track_wait_events = 3; + * uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the trackWaitEvents field is set. + * @return The queryStringLength. */ - boolean hasTrackWaitEvents(); + int getQueryStringLength(); /** * * *
-     * Track wait events during query execution for an instance.
-     * This flag is turned "on" by default but tracking is enabled only after
-     * observability enabled flag is also turned on.
+     * Output only. Number of query execution plans captured per minute.
      * 
* - * optional bool track_wait_events = 3; + * uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The trackWaitEvents. + * @return The queryPlansPerMinute. */ - boolean getTrackWaitEvents(); + int getQueryPlansPerMinute(); + } - /** - * - * - *
-     * Output only. Track wait event types during query execution for an
-     * instance. This flag is turned "on" by default but tracking is enabled
-     * only after observability enabled flag is also turned on. This is
-     * read-only flag and only modifiable by internal API.
-     * 
- * - * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the trackWaitEventTypes field is set. - */ - boolean hasTrackWaitEventTypes(); + /** + * + * + *
+   * Instance level Query Insights information, which is read-only and available
+   * in the output only.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo} + */ + public static final class QueryInsightsInstanceInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo) + QueryInsightsInstanceInfoOrBuilder { + private static final long serialVersionUID = 0L; - /** - * - * - *
-     * Output only. Track wait event types during query execution for an
-     * instance. This flag is turned "on" by default but tracking is enabled
-     * only after observability enabled flag is also turned on. This is
-     * read-only flag and only modifiable by internal API.
-     * 
- * - * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The trackWaitEventTypes. - */ - boolean getTrackWaitEventTypes(); + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "QueryInsightsInstanceInfo"); + } - /** - * - * - *
-     * Query string length. The default value is 10k.
-     * 
- * - * optional int32 max_query_string_length = 5; - * - * @return Whether the maxQueryStringLength field is set. - */ - boolean hasMaxQueryStringLength(); + // Use QueryInsightsInstanceInfo.newBuilder() to construct. + private QueryInsightsInstanceInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - /** - * - * - *
-     * Query string length. The default value is 10k.
-     * 
- * - * optional int32 max_query_string_length = 5; - * - * @return The maxQueryStringLength. - */ - int getMaxQueryStringLength(); + private QueryInsightsInstanceInfo() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_v1alpha_Instance_QueryInsightsInstanceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_v1alpha_Instance_QueryInsightsInstanceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo.class, + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; /** * * *
-     * Record application tags for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Whether Query Insights is enabled.
      * 
* - * optional bool record_application_tags = 6; + * bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the recordApplicationTags field is set. + * @return The enabled. */ - boolean hasRecordApplicationTags(); + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 2; + private boolean recordApplicationTags_ = false; /** * * *
-     * Record application tags for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Whether to record application tags.
      * 
* - * optional bool record_application_tags = 6; + * bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The recordApplicationTags. */ - boolean getRecordApplicationTags(); + @java.lang.Override + public boolean getRecordApplicationTags() { + return recordApplicationTags_; + } - /** - * - * - *
-     * Number of query execution plans captured by Insights per minute
-     * for all queries combined. The default value is 200.
-     * Any integer between 0 to 200 is considered valid.
-     * 
- * - * optional int32 query_plans_per_minute = 7; - * - * @return Whether the queryPlansPerMinute field is set. - */ - boolean hasQueryPlansPerMinute(); + public static final int RECORD_CLIENT_ADDRESS_FIELD_NUMBER = 3; + private boolean recordClientAddress_ = false; /** * * *
-     * Number of query execution plans captured by Insights per minute
-     * for all queries combined. The default value is 200.
-     * Any integer between 0 to 200 is considered valid.
+     * Output only. Whether to record client address.
      * 
* - * optional int32 query_plans_per_minute = 7; + * bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The queryPlansPerMinute. + * @return The recordClientAddress. */ - int getQueryPlansPerMinute(); + @java.lang.Override + public boolean getRecordClientAddress() { + return recordClientAddress_; + } - /** - * - * - *
-     * Track actively running queries on the instance.
-     * If not set, this flag is "off" by default.
-     * 
- * - * optional bool track_active_queries = 8; - * - * @return Whether the trackActiveQueries field is set. - */ - boolean hasTrackActiveQueries(); + public static final int QUERY_STRING_LENGTH_FIELD_NUMBER = 4; + private int queryStringLength_ = 0; /** * * *
-     * Track actively running queries on the instance.
-     * If not set, this flag is "off" by default.
+     * Output only. Maximum query string length.
      * 
* - * optional bool track_active_queries = 8; + * uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The trackActiveQueries. + * @return The queryStringLength. */ - boolean getTrackActiveQueries(); + @java.lang.Override + public int getQueryStringLength() { + return queryStringLength_; + } - /** - * - * - *
-     * Track client address for an instance.
-     * If not set, default value is "off".
-     * 
- * - * optional bool track_client_address = 9; - * - * @return Whether the trackClientAddress field is set. - */ - boolean hasTrackClientAddress(); + public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 5; + private int queryPlansPerMinute_ = 0; /** * * *
-     * Track client address for an instance.
-     * If not set, default value is "off".
+     * Output only. Number of query execution plans captured per minute.
      * 
* - * optional bool track_client_address = 9; + * uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The trackClientAddress. + * @return The queryPlansPerMinute. */ - boolean getTrackClientAddress(); + @java.lang.Override + public int getQueryPlansPerMinute() { + return queryPlansPerMinute_; + } - /** - * - * - *
-     * Whether assistive experiences are enabled for this AlloyDB instance.
-     * 
- * - * optional bool assistive_experiences_enabled = 10; - * - * @return Whether the assistiveExperiencesEnabled field is set. - */ - boolean hasAssistiveExperiencesEnabled(); + private byte memoizedIsInitialized = -1; - /** - * - * - *
-     * Whether assistive experiences are enabled for this AlloyDB instance.
-     * 
+ @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (recordApplicationTags_ != false) { + output.writeBool(2, recordApplicationTags_); + } + if (recordClientAddress_ != false) { + output.writeBool(3, recordClientAddress_); + } + if (queryStringLength_ != 0) { + output.writeUInt32(4, queryStringLength_); + } + if (queryPlansPerMinute_ != 0) { + output.writeUInt32(5, queryPlansPerMinute_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + if (recordApplicationTags_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, recordApplicationTags_); + } + if (recordClientAddress_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, recordClientAddress_); + } + if (queryStringLength_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(4, queryStringLength_); + } + if (queryPlansPerMinute_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(5, queryPlansPerMinute_); + } + 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.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo other = + (com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false; + if (getRecordClientAddress() != other.getRecordClientAddress()) return false; + if (getQueryStringLength() != other.getQueryStringLength()) return false; + if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) 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) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags()); + hash = (37 * hash) + RECORD_CLIENT_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordClientAddress()); + hash = (37 * hash) + QUERY_STRING_LENGTH_FIELD_NUMBER; + hash = (53 * hash) + getQueryStringLength(); + hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER; + hash = (53 * hash) + getQueryPlansPerMinute(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo 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.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo 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.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo 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.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo + 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.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo 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.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo 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; + } + + /** * - * optional bool assistive_experiences_enabled = 10; * - * @return The assistiveExperiencesEnabled. + *
+     * Instance level Query Insights information, which is read-only and available
+     * in the output only.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo} */ - boolean getAssistiveExperiencesEnabled(); - } + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo) + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_v1alpha_Instance_QueryInsightsInstanceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_v1alpha_Instance_QueryInsightsInstanceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo.class, + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo.Builder.class); + } + + // Construct using + // com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + recordApplicationTags_ = false; + recordClientAddress_ = false; + queryStringLength_ = 0; + queryPlansPerMinute_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_v1alpha_Instance_QueryInsightsInstanceInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo build() { + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo buildPartial() { + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo result = + new com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.recordApplicationTags_ = recordApplicationTags_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.recordClientAddress_ = recordClientAddress_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.queryStringLength_ = queryStringLength_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.queryPlansPerMinute_ = queryPlansPerMinute_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo) { + return mergeFrom( + (com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo other) { + if (other + == com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo + .getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (other.getRecordApplicationTags() != false) { + setRecordApplicationTags(other.getRecordApplicationTags()); + } + if (other.getRecordClientAddress() != false) { + setRecordClientAddress(other.getRecordClientAddress()); + } + if (other.getQueryStringLength() != 0) { + setQueryStringLength(other.getQueryStringLength()); + } + if (other.getQueryPlansPerMinute() != 0) { + setQueryPlansPerMinute(other.getQueryPlansPerMinute()); + } + 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 8: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + recordApplicationTags_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + recordClientAddress_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + queryStringLength_ = input.readUInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + queryPlansPerMinute_ = input.readUInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + 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 boolean enabled_; + + /** + * + * + *
+       * Output only. Whether Query Insights is enabled.
+       * 
+ * + * bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + /** + * + * + *
+       * Output only. Whether Query Insights is enabled.
+       * 
+ * + * bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Whether Query Insights is enabled.
+       * 
+ * + * bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private boolean recordApplicationTags_; + + /** + * + * + *
+       * Output only. Whether to record application tags.
+       * 
+ * + * bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The recordApplicationTags. + */ + @java.lang.Override + public boolean getRecordApplicationTags() { + return recordApplicationTags_; + } + + /** + * + * + *
+       * Output only. Whether to record application tags.
+       * 
+ * + * bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The recordApplicationTags to set. + * @return This builder for chaining. + */ + public Builder setRecordApplicationTags(boolean value) { + + recordApplicationTags_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Whether to record application tags.
+       * 
+ * + * bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRecordApplicationTags() { + bitField0_ = (bitField0_ & ~0x00000002); + recordApplicationTags_ = false; + onChanged(); + return this; + } + + private boolean recordClientAddress_; + + /** + * + * + *
+       * Output only. Whether to record client address.
+       * 
+ * + * bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The recordClientAddress. + */ + @java.lang.Override + public boolean getRecordClientAddress() { + return recordClientAddress_; + } + + /** + * + * + *
+       * Output only. Whether to record client address.
+       * 
+ * + * bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The recordClientAddress to set. + * @return This builder for chaining. + */ + public Builder setRecordClientAddress(boolean value) { + + recordClientAddress_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Whether to record client address.
+       * 
+ * + * bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRecordClientAddress() { + bitField0_ = (bitField0_ & ~0x00000004); + recordClientAddress_ = false; + onChanged(); + return this; + } + + private int queryStringLength_; + + /** + * + * + *
+       * Output only. Maximum query string length.
+       * 
+ * + * uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The queryStringLength. + */ + @java.lang.Override + public int getQueryStringLength() { + return queryStringLength_; + } + + /** + * + * + *
+       * Output only. Maximum query string length.
+       * 
+ * + * uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The queryStringLength to set. + * @return This builder for chaining. + */ + public Builder setQueryStringLength(int value) { + + queryStringLength_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Maximum query string length.
+       * 
+ * + * uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearQueryStringLength() { + bitField0_ = (bitField0_ & ~0x00000008); + queryStringLength_ = 0; + onChanged(); + return this; + } + + private int queryPlansPerMinute_; + + /** + * + * + *
+       * Output only. Number of query execution plans captured per minute.
+       * 
+ * + * uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The queryPlansPerMinute. + */ + @java.lang.Override + public int getQueryPlansPerMinute() { + return queryPlansPerMinute_; + } + + /** + * + * + *
+       * Output only. Number of query execution plans captured per minute.
+       * 
+ * + * uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The queryPlansPerMinute to set. + * @return This builder for chaining. + */ + public Builder setQueryPlansPerMinute(int value) { + + queryPlansPerMinute_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Number of query execution plans captured per minute.
+       * 
+ * + * uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearQueryPlansPerMinute() { + bitField0_ = (bitField0_ & ~0x00000010); + queryPlansPerMinute_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo) + private static final com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo(); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryInsightsInstanceInfo 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.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ObservabilityInstanceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Observability feature status for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ + boolean hasEnabled(); + + /** + * + * + *
+     * Observability feature status for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
+     * Preserve comments in query string for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool preserve_comments = 2; + * + * @return Whether the preserveComments field is set. + */ + boolean hasPreserveComments(); + + /** + * + * + *
+     * Preserve comments in query string for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool preserve_comments = 2; + * + * @return The preserveComments. + */ + boolean getPreserveComments(); + + /** + * + * + *
+     * Track wait events during query execution for an instance.
+     * This flag is turned "on" by default but tracking is enabled only after
+     * observability enabled flag is also turned on.
+     * 
+ * + * optional bool track_wait_events = 3; + * + * @return Whether the trackWaitEvents field is set. + */ + boolean hasTrackWaitEvents(); + + /** + * + * + *
+     * Track wait events during query execution for an instance.
+     * This flag is turned "on" by default but tracking is enabled only after
+     * observability enabled flag is also turned on.
+     * 
+ * + * optional bool track_wait_events = 3; + * + * @return The trackWaitEvents. + */ + boolean getTrackWaitEvents(); + + /** + * + * + *
+     * Output only. Track wait event types during query execution for an
+     * instance. This flag is turned "on" by default but tracking is enabled
+     * only after observability enabled flag is also turned on. This is
+     * read-only flag and only modifiable by internal API.
+     * 
+ * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the trackWaitEventTypes field is set. + */ + boolean hasTrackWaitEventTypes(); + + /** + * + * + *
+     * Output only. Track wait event types during query execution for an
+     * instance. This flag is turned "on" by default but tracking is enabled
+     * only after observability enabled flag is also turned on. This is
+     * read-only flag and only modifiable by internal API.
+     * 
+ * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The trackWaitEventTypes. + */ + boolean getTrackWaitEventTypes(); + + /** + * + * + *
+     * Query string length. The default value is 10k.
+     * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return Whether the maxQueryStringLength field is set. + */ + boolean hasMaxQueryStringLength(); + + /** + * + * + *
+     * Query string length. The default value is 10k.
+     * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return The maxQueryStringLength. + */ + int getMaxQueryStringLength(); + + /** + * + * + *
+     * Record application tags for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool record_application_tags = 6; + * + * @return Whether the recordApplicationTags field is set. + */ + boolean hasRecordApplicationTags(); + + /** + * + * + *
+     * Record application tags for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool record_application_tags = 6; + * + * @return The recordApplicationTags. + */ + boolean getRecordApplicationTags(); + + /** + * + * + *
+     * Number of query execution plans captured by Insights per minute
+     * for all queries combined. The default value is 200.
+     * Any integer between 0 to 200 is considered valid.
+     * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return Whether the queryPlansPerMinute field is set. + */ + boolean hasQueryPlansPerMinute(); + + /** + * + * + *
+     * Number of query execution plans captured by Insights per minute
+     * for all queries combined. The default value is 200.
+     * Any integer between 0 to 200 is considered valid.
+     * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return The queryPlansPerMinute. + */ + int getQueryPlansPerMinute(); + + /** + * + * + *
+     * Track actively running queries on the instance.
+     * If not set, this flag is "off" by default.
+     * 
+ * + * optional bool track_active_queries = 8; + * + * @return Whether the trackActiveQueries field is set. + */ + boolean hasTrackActiveQueries(); + + /** + * + * + *
+     * Track actively running queries on the instance.
+     * If not set, this flag is "off" by default.
+     * 
+ * + * optional bool track_active_queries = 8; + * + * @return The trackActiveQueries. + */ + boolean getTrackActiveQueries(); + + /** + * + * + *
+     * Track client address for an instance.
+     * If not set, default value is "off".
+     * 
+ * + * optional bool track_client_address = 9; + * + * @return Whether the trackClientAddress field is set. + */ + boolean hasTrackClientAddress(); + + /** + * + * + *
+     * Track client address for an instance.
+     * If not set, default value is "off".
+     * 
+ * + * optional bool track_client_address = 9; + * + * @return The trackClientAddress. + */ + boolean getTrackClientAddress(); + + /** + * + * + *
+     * Whether assistive experiences are enabled for this AlloyDB instance.
+     * 
+ * + * optional bool assistive_experiences_enabled = 10; + * + * @return Whether the assistiveExperiencesEnabled field is set. + */ + boolean hasAssistiveExperiencesEnabled(); + + /** + * + * + *
+     * Whether assistive experiences are enabled for this AlloyDB instance.
+     * 
+ * + * optional bool assistive_experiences_enabled = 10; + * + * @return The assistiveExperiencesEnabled. + */ + boolean getAssistiveExperiencesEnabled(); + } + + /** + * + * + *
+   * Observability Instance specific configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig} + */ + public static final class ObservabilityInstanceConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig) + ObservabilityInstanceConfigOrBuilder { + 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= */ "", + "ObservabilityInstanceConfig"); + } + + // Use ObservabilityInstanceConfig.newBuilder() to construct. + private ObservabilityInstanceConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ObservabilityInstanceConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.class, + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.Builder.class); + } + + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + + /** + * + * + *
+     * Observability feature status for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ + @java.lang.Override + public boolean hasEnabled() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Observability feature status for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int PRESERVE_COMMENTS_FIELD_NUMBER = 2; + private boolean preserveComments_ = false; + + /** + * + * + *
+     * Preserve comments in query string for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool preserve_comments = 2; + * + * @return Whether the preserveComments field is set. + */ + @java.lang.Override + public boolean hasPreserveComments() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Preserve comments in query string for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool preserve_comments = 2; + * + * @return The preserveComments. + */ + @java.lang.Override + public boolean getPreserveComments() { + return preserveComments_; + } + + public static final int TRACK_WAIT_EVENTS_FIELD_NUMBER = 3; + private boolean trackWaitEvents_ = false; + + /** + * + * + *
+     * Track wait events during query execution for an instance.
+     * This flag is turned "on" by default but tracking is enabled only after
+     * observability enabled flag is also turned on.
+     * 
+ * + * optional bool track_wait_events = 3; + * + * @return Whether the trackWaitEvents field is set. + */ + @java.lang.Override + public boolean hasTrackWaitEvents() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Track wait events during query execution for an instance.
+     * This flag is turned "on" by default but tracking is enabled only after
+     * observability enabled flag is also turned on.
+     * 
+ * + * optional bool track_wait_events = 3; + * + * @return The trackWaitEvents. + */ + @java.lang.Override + public boolean getTrackWaitEvents() { + return trackWaitEvents_; + } + + public static final int TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER = 4; + private boolean trackWaitEventTypes_ = false; + + /** + * + * + *
+     * Output only. Track wait event types during query execution for an
+     * instance. This flag is turned "on" by default but tracking is enabled
+     * only after observability enabled flag is also turned on. This is
+     * read-only flag and only modifiable by internal API.
+     * 
+ * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the trackWaitEventTypes field is set. + */ + @java.lang.Override + public boolean hasTrackWaitEventTypes() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. Track wait event types during query execution for an
+     * instance. This flag is turned "on" by default but tracking is enabled
+     * only after observability enabled flag is also turned on. This is
+     * read-only flag and only modifiable by internal API.
+     * 
+ * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The trackWaitEventTypes. + */ + @java.lang.Override + public boolean getTrackWaitEventTypes() { + return trackWaitEventTypes_; + } + + public static final int MAX_QUERY_STRING_LENGTH_FIELD_NUMBER = 5; + private int maxQueryStringLength_ = 0; + + /** + * + * + *
+     * Query string length. The default value is 10k.
+     * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return Whether the maxQueryStringLength field is set. + */ + @java.lang.Override + public boolean hasMaxQueryStringLength() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Query string length. The default value is 10k.
+     * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return The maxQueryStringLength. + */ + @java.lang.Override + public int getMaxQueryStringLength() { + return maxQueryStringLength_; + } + + public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 6; + private boolean recordApplicationTags_ = false; + + /** + * + * + *
+     * Record application tags for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool record_application_tags = 6; + * + * @return Whether the recordApplicationTags field is set. + */ + @java.lang.Override + public boolean hasRecordApplicationTags() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Record application tags for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool record_application_tags = 6; + * + * @return The recordApplicationTags. + */ + @java.lang.Override + public boolean getRecordApplicationTags() { + return recordApplicationTags_; + } + + public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 7; + private int queryPlansPerMinute_ = 0; + + /** + * + * + *
+     * Number of query execution plans captured by Insights per minute
+     * for all queries combined. The default value is 200.
+     * Any integer between 0 to 200 is considered valid.
+     * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return Whether the queryPlansPerMinute field is set. + */ + @java.lang.Override + public boolean hasQueryPlansPerMinute() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Number of query execution plans captured by Insights per minute
+     * for all queries combined. The default value is 200.
+     * Any integer between 0 to 200 is considered valid.
+     * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return The queryPlansPerMinute. + */ + @java.lang.Override + public int getQueryPlansPerMinute() { + return queryPlansPerMinute_; + } + + public static final int TRACK_ACTIVE_QUERIES_FIELD_NUMBER = 8; + private boolean trackActiveQueries_ = false; + + /** + * + * + *
+     * Track actively running queries on the instance.
+     * If not set, this flag is "off" by default.
+     * 
+ * + * optional bool track_active_queries = 8; + * + * @return Whether the trackActiveQueries field is set. + */ + @java.lang.Override + public boolean hasTrackActiveQueries() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Track actively running queries on the instance.
+     * If not set, this flag is "off" by default.
+     * 
+ * + * optional bool track_active_queries = 8; + * + * @return The trackActiveQueries. + */ + @java.lang.Override + public boolean getTrackActiveQueries() { + return trackActiveQueries_; + } + + public static final int TRACK_CLIENT_ADDRESS_FIELD_NUMBER = 9; + private boolean trackClientAddress_ = false; + + /** + * + * + *
+     * Track client address for an instance.
+     * If not set, default value is "off".
+     * 
+ * + * optional bool track_client_address = 9; + * + * @return Whether the trackClientAddress field is set. + */ + @java.lang.Override + public boolean hasTrackClientAddress() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Track client address for an instance.
+     * If not set, default value is "off".
+     * 
+ * + * optional bool track_client_address = 9; + * + * @return The trackClientAddress. + */ + @java.lang.Override + public boolean getTrackClientAddress() { + return trackClientAddress_; + } + + public static final int ASSISTIVE_EXPERIENCES_ENABLED_FIELD_NUMBER = 10; + private boolean assistiveExperiencesEnabled_ = false; + + /** + * + * + *
+     * Whether assistive experiences are enabled for this AlloyDB instance.
+     * 
+ * + * optional bool assistive_experiences_enabled = 10; + * + * @return Whether the assistiveExperiencesEnabled field is set. + */ + @java.lang.Override + public boolean hasAssistiveExperiencesEnabled() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Whether assistive experiences are enabled for this AlloyDB instance.
+     * 
+ * + * optional bool assistive_experiences_enabled = 10; + * + * @return The assistiveExperiencesEnabled. + */ + @java.lang.Override + public boolean getAssistiveExperiencesEnabled() { + return assistiveExperiencesEnabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(1, enabled_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(2, preserveComments_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(3, trackWaitEvents_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(4, trackWaitEventTypes_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt32(5, maxQueryStringLength_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeBool(6, recordApplicationTags_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeInt32(7, queryPlansPerMinute_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeBool(8, trackActiveQueries_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeBool(9, trackClientAddress_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeBool(10, assistiveExperiencesEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, preserveComments_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, trackWaitEvents_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, trackWaitEventTypes_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxQueryStringLength_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, recordApplicationTags_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, queryPlansPerMinute_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, trackActiveQueries_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, trackClientAddress_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(10, assistiveExperiencesEnabled_); + } + 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.alloydb.v1alpha.Instance.ObservabilityInstanceConfig)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig other = + (com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig) obj; + + if (hasEnabled() != other.hasEnabled()) return false; + if (hasEnabled()) { + if (getEnabled() != other.getEnabled()) return false; + } + if (hasPreserveComments() != other.hasPreserveComments()) return false; + if (hasPreserveComments()) { + if (getPreserveComments() != other.getPreserveComments()) return false; + } + if (hasTrackWaitEvents() != other.hasTrackWaitEvents()) return false; + if (hasTrackWaitEvents()) { + if (getTrackWaitEvents() != other.getTrackWaitEvents()) return false; + } + if (hasTrackWaitEventTypes() != other.hasTrackWaitEventTypes()) return false; + if (hasTrackWaitEventTypes()) { + if (getTrackWaitEventTypes() != other.getTrackWaitEventTypes()) return false; + } + if (hasMaxQueryStringLength() != other.hasMaxQueryStringLength()) return false; + if (hasMaxQueryStringLength()) { + if (getMaxQueryStringLength() != other.getMaxQueryStringLength()) return false; + } + if (hasRecordApplicationTags() != other.hasRecordApplicationTags()) return false; + if (hasRecordApplicationTags()) { + if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false; + } + if (hasQueryPlansPerMinute() != other.hasQueryPlansPerMinute()) return false; + if (hasQueryPlansPerMinute()) { + if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) return false; + } + if (hasTrackActiveQueries() != other.hasTrackActiveQueries()) return false; + if (hasTrackActiveQueries()) { + if (getTrackActiveQueries() != other.getTrackActiveQueries()) return false; + } + if (hasTrackClientAddress() != other.hasTrackClientAddress()) return false; + if (hasTrackClientAddress()) { + if (getTrackClientAddress() != other.getTrackClientAddress()) return false; + } + if (hasAssistiveExperiencesEnabled() != other.hasAssistiveExperiencesEnabled()) return false; + if (hasAssistiveExperiencesEnabled()) { + if (getAssistiveExperiencesEnabled() != other.getAssistiveExperiencesEnabled()) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEnabled()) { + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + } + if (hasPreserveComments()) { + hash = (37 * hash) + PRESERVE_COMMENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreserveComments()); + } + if (hasTrackWaitEvents()) { + hash = (37 * hash) + TRACK_WAIT_EVENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEvents()); + } + if (hasTrackWaitEventTypes()) { + hash = (37 * hash) + TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEventTypes()); + } + if (hasMaxQueryStringLength()) { + hash = (37 * hash) + MAX_QUERY_STRING_LENGTH_FIELD_NUMBER; + hash = (53 * hash) + getMaxQueryStringLength(); + } + if (hasRecordApplicationTags()) { + hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags()); + } + if (hasQueryPlansPerMinute()) { + hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER; + hash = (53 * hash) + getQueryPlansPerMinute(); + } + if (hasTrackActiveQueries()) { + hash = (37 * hash) + TRACK_ACTIVE_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackActiveQueries()); + } + if (hasTrackClientAddress()) { + hash = (37 * hash) + TRACK_CLIENT_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackClientAddress()); + } + if (hasAssistiveExperiencesEnabled()) { + hash = (37 * hash) + ASSISTIVE_EXPERIENCES_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getAssistiveExperiencesEnabled()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig 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.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig 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.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig 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.alloydb.v1alpha.Instance.ObservabilityInstanceConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig + 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.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig 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.alloydb.v1alpha.Instance.ObservabilityInstanceConfig 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; + } + + /** + * + * + *
+     * Observability Instance specific configuration.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig) + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.class, + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + preserveComments_ = false; + trackWaitEvents_ = false; + trackWaitEventTypes_ = false; + maxQueryStringLength_ = 0; + recordApplicationTags_ = false; + queryPlansPerMinute_ = 0; + trackActiveQueries_ = false; + trackClientAddress_ = false; + assistiveExperiencesEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig build() { + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig buildPartial() { + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig result = + new com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.preserveComments_ = preserveComments_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.trackWaitEvents_ = trackWaitEvents_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.trackWaitEventTypes_ = trackWaitEventTypes_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.maxQueryStringLength_ = maxQueryStringLength_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.recordApplicationTags_ = recordApplicationTags_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.queryPlansPerMinute_ = queryPlansPerMinute_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.trackActiveQueries_ = trackActiveQueries_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.trackClientAddress_ = trackClientAddress_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.assistiveExperiencesEnabled_ = assistiveExperiencesEnabled_; + to_bitField0_ |= 0x00000200; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig) { + return mergeFrom( + (com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig other) { + if (other + == com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig + .getDefaultInstance()) return this; + if (other.hasEnabled()) { + setEnabled(other.getEnabled()); + } + if (other.hasPreserveComments()) { + setPreserveComments(other.getPreserveComments()); + } + if (other.hasTrackWaitEvents()) { + setTrackWaitEvents(other.getTrackWaitEvents()); + } + if (other.hasTrackWaitEventTypes()) { + setTrackWaitEventTypes(other.getTrackWaitEventTypes()); + } + if (other.hasMaxQueryStringLength()) { + setMaxQueryStringLength(other.getMaxQueryStringLength()); + } + if (other.hasRecordApplicationTags()) { + setRecordApplicationTags(other.getRecordApplicationTags()); + } + if (other.hasQueryPlansPerMinute()) { + setQueryPlansPerMinute(other.getQueryPlansPerMinute()); + } + if (other.hasTrackActiveQueries()) { + setTrackActiveQueries(other.getTrackActiveQueries()); + } + if (other.hasTrackClientAddress()) { + setTrackClientAddress(other.getTrackClientAddress()); + } + if (other.hasAssistiveExperiencesEnabled()) { + setAssistiveExperiencesEnabled(other.getAssistiveExperiencesEnabled()); + } + 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 8: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + preserveComments_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + trackWaitEvents_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + trackWaitEventTypes_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + maxQueryStringLength_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + recordApplicationTags_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + queryPlansPerMinute_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + trackActiveQueries_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + trackClientAddress_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: + { + assistiveExperiencesEnabled_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + 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 boolean enabled_; + + /** + * + * + *
+       * Observability feature status for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ + @java.lang.Override + public boolean hasEnabled() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Observability feature status for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + /** + * + * + *
+       * Observability feature status for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Observability feature status for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private boolean preserveComments_; + + /** + * + * + *
+       * Preserve comments in query string for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool preserve_comments = 2; + * + * @return Whether the preserveComments field is set. + */ + @java.lang.Override + public boolean hasPreserveComments() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Preserve comments in query string for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool preserve_comments = 2; + * + * @return The preserveComments. + */ + @java.lang.Override + public boolean getPreserveComments() { + return preserveComments_; + } + + /** + * + * + *
+       * Preserve comments in query string for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool preserve_comments = 2; + * + * @param value The preserveComments to set. + * @return This builder for chaining. + */ + public Builder setPreserveComments(boolean value) { + + preserveComments_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Preserve comments in query string for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool preserve_comments = 2; + * + * @return This builder for chaining. + */ + public Builder clearPreserveComments() { + bitField0_ = (bitField0_ & ~0x00000002); + preserveComments_ = false; + onChanged(); + return this; + } + + private boolean trackWaitEvents_; + + /** + * + * + *
+       * Track wait events during query execution for an instance.
+       * This flag is turned "on" by default but tracking is enabled only after
+       * observability enabled flag is also turned on.
+       * 
+ * + * optional bool track_wait_events = 3; + * + * @return Whether the trackWaitEvents field is set. + */ + @java.lang.Override + public boolean hasTrackWaitEvents() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * Track wait events during query execution for an instance.
+       * This flag is turned "on" by default but tracking is enabled only after
+       * observability enabled flag is also turned on.
+       * 
+ * + * optional bool track_wait_events = 3; + * + * @return The trackWaitEvents. + */ + @java.lang.Override + public boolean getTrackWaitEvents() { + return trackWaitEvents_; + } + + /** + * + * + *
+       * Track wait events during query execution for an instance.
+       * This flag is turned "on" by default but tracking is enabled only after
+       * observability enabled flag is also turned on.
+       * 
+ * + * optional bool track_wait_events = 3; + * + * @param value The trackWaitEvents to set. + * @return This builder for chaining. + */ + public Builder setTrackWaitEvents(boolean value) { + + trackWaitEvents_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Track wait events during query execution for an instance.
+       * This flag is turned "on" by default but tracking is enabled only after
+       * observability enabled flag is also turned on.
+       * 
+ * + * optional bool track_wait_events = 3; + * + * @return This builder for chaining. + */ + public Builder clearTrackWaitEvents() { + bitField0_ = (bitField0_ & ~0x00000004); + trackWaitEvents_ = false; + onChanged(); + return this; + } + + private boolean trackWaitEventTypes_; + + /** + * + * + *
+       * Output only. Track wait event types during query execution for an
+       * instance. This flag is turned "on" by default but tracking is enabled
+       * only after observability enabled flag is also turned on. This is
+       * read-only flag and only modifiable by internal API.
+       * 
+ * + * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the trackWaitEventTypes field is set. + */ + @java.lang.Override + public boolean hasTrackWaitEventTypes() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+       * Output only. Track wait event types during query execution for an
+       * instance. This flag is turned "on" by default but tracking is enabled
+       * only after observability enabled flag is also turned on. This is
+       * read-only flag and only modifiable by internal API.
+       * 
+ * + * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The trackWaitEventTypes. + */ + @java.lang.Override + public boolean getTrackWaitEventTypes() { + return trackWaitEventTypes_; + } + + /** + * + * + *
+       * Output only. Track wait event types during query execution for an
+       * instance. This flag is turned "on" by default but tracking is enabled
+       * only after observability enabled flag is also turned on. This is
+       * read-only flag and only modifiable by internal API.
+       * 
+ * + * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The trackWaitEventTypes to set. + * @return This builder for chaining. + */ + public Builder setTrackWaitEventTypes(boolean value) { + + trackWaitEventTypes_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Track wait event types during query execution for an
+       * instance. This flag is turned "on" by default but tracking is enabled
+       * only after observability enabled flag is also turned on. This is
+       * read-only flag and only modifiable by internal API.
+       * 
+ * + * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTrackWaitEventTypes() { + bitField0_ = (bitField0_ & ~0x00000008); + trackWaitEventTypes_ = false; + onChanged(); + return this; + } + + private int maxQueryStringLength_; + + /** + * + * + *
+       * Query string length. The default value is 10k.
+       * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return Whether the maxQueryStringLength field is set. + */ + @java.lang.Override + public boolean hasMaxQueryStringLength() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+       * Query string length. The default value is 10k.
+       * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return The maxQueryStringLength. + */ + @java.lang.Override + public int getMaxQueryStringLength() { + return maxQueryStringLength_; + } + + /** + * + * + *
+       * Query string length. The default value is 10k.
+       * 
+ * + * optional int32 max_query_string_length = 5; + * + * @param value The maxQueryStringLength to set. + * @return This builder for chaining. + */ + public Builder setMaxQueryStringLength(int value) { + + maxQueryStringLength_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Query string length. The default value is 10k.
+       * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return This builder for chaining. + */ + public Builder clearMaxQueryStringLength() { + bitField0_ = (bitField0_ & ~0x00000010); + maxQueryStringLength_ = 0; + onChanged(); + return this; + } + + private boolean recordApplicationTags_; + + /** + * + * + *
+       * Record application tags for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool record_application_tags = 6; + * + * @return Whether the recordApplicationTags field is set. + */ + @java.lang.Override + public boolean hasRecordApplicationTags() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+       * Record application tags for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool record_application_tags = 6; + * + * @return The recordApplicationTags. + */ + @java.lang.Override + public boolean getRecordApplicationTags() { + return recordApplicationTags_; + } + + /** + * + * + *
+       * Record application tags for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool record_application_tags = 6; + * + * @param value The recordApplicationTags to set. + * @return This builder for chaining. + */ + public Builder setRecordApplicationTags(boolean value) { + + recordApplicationTags_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Record application tags for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool record_application_tags = 6; + * + * @return This builder for chaining. + */ + public Builder clearRecordApplicationTags() { + bitField0_ = (bitField0_ & ~0x00000020); + recordApplicationTags_ = false; + onChanged(); + return this; + } + + private int queryPlansPerMinute_; + + /** + * + * + *
+       * Number of query execution plans captured by Insights per minute
+       * for all queries combined. The default value is 200.
+       * Any integer between 0 to 200 is considered valid.
+       * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return Whether the queryPlansPerMinute field is set. + */ + @java.lang.Override + public boolean hasQueryPlansPerMinute() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+       * Number of query execution plans captured by Insights per minute
+       * for all queries combined. The default value is 200.
+       * Any integer between 0 to 200 is considered valid.
+       * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return The queryPlansPerMinute. + */ + @java.lang.Override + public int getQueryPlansPerMinute() { + return queryPlansPerMinute_; + } + + /** + * + * + *
+       * Number of query execution plans captured by Insights per minute
+       * for all queries combined. The default value is 200.
+       * Any integer between 0 to 200 is considered valid.
+       * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @param value The queryPlansPerMinute to set. + * @return This builder for chaining. + */ + public Builder setQueryPlansPerMinute(int value) { + + queryPlansPerMinute_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+       * Number of query execution plans captured by Insights per minute
+       * for all queries combined. The default value is 200.
+       * Any integer between 0 to 200 is considered valid.
+       * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return This builder for chaining. + */ + public Builder clearQueryPlansPerMinute() { + bitField0_ = (bitField0_ & ~0x00000040); + queryPlansPerMinute_ = 0; + onChanged(); + return this; + } + + private boolean trackActiveQueries_; + + /** + * + * + *
+       * Track actively running queries on the instance.
+       * If not set, this flag is "off" by default.
+       * 
+ * + * optional bool track_active_queries = 8; + * + * @return Whether the trackActiveQueries field is set. + */ + @java.lang.Override + public boolean hasTrackActiveQueries() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+       * Track actively running queries on the instance.
+       * If not set, this flag is "off" by default.
+       * 
+ * + * optional bool track_active_queries = 8; + * + * @return The trackActiveQueries. + */ + @java.lang.Override + public boolean getTrackActiveQueries() { + return trackActiveQueries_; + } + + /** + * + * + *
+       * Track actively running queries on the instance.
+       * If not set, this flag is "off" by default.
+       * 
+ * + * optional bool track_active_queries = 8; + * + * @param value The trackActiveQueries to set. + * @return This builder for chaining. + */ + public Builder setTrackActiveQueries(boolean value) { + + trackActiveQueries_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+       * Track actively running queries on the instance.
+       * If not set, this flag is "off" by default.
+       * 
+ * + * optional bool track_active_queries = 8; + * + * @return This builder for chaining. + */ + public Builder clearTrackActiveQueries() { + bitField0_ = (bitField0_ & ~0x00000080); + trackActiveQueries_ = false; + onChanged(); + return this; + } + + private boolean trackClientAddress_; + + /** + * + * + *
+       * Track client address for an instance.
+       * If not set, default value is "off".
+       * 
+ * + * optional bool track_client_address = 9; + * + * @return Whether the trackClientAddress field is set. + */ + @java.lang.Override + public boolean hasTrackClientAddress() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+       * Track client address for an instance.
+       * If not set, default value is "off".
+       * 
+ * + * optional bool track_client_address = 9; + * + * @return The trackClientAddress. + */ + @java.lang.Override + public boolean getTrackClientAddress() { + return trackClientAddress_; + } + + /** + * + * + *
+       * Track client address for an instance.
+       * If not set, default value is "off".
+       * 
+ * + * optional bool track_client_address = 9; + * + * @param value The trackClientAddress to set. + * @return This builder for chaining. + */ + public Builder setTrackClientAddress(boolean value) { + + trackClientAddress_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+       * Track client address for an instance.
+       * If not set, default value is "off".
+       * 
+ * + * optional bool track_client_address = 9; + * + * @return This builder for chaining. + */ + public Builder clearTrackClientAddress() { + bitField0_ = (bitField0_ & ~0x00000100); + trackClientAddress_ = false; + onChanged(); + return this; + } + + private boolean assistiveExperiencesEnabled_; + + /** + * + * + *
+       * Whether assistive experiences are enabled for this AlloyDB instance.
+       * 
+ * + * optional bool assistive_experiences_enabled = 10; + * + * @return Whether the assistiveExperiencesEnabled field is set. + */ + @java.lang.Override + public boolean hasAssistiveExperiencesEnabled() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+       * Whether assistive experiences are enabled for this AlloyDB instance.
+       * 
+ * + * optional bool assistive_experiences_enabled = 10; + * + * @return The assistiveExperiencesEnabled. + */ + @java.lang.Override + public boolean getAssistiveExperiencesEnabled() { + return assistiveExperiencesEnabled_; + } + + /** + * + * + *
+       * Whether assistive experiences are enabled for this AlloyDB instance.
+       * 
+ * + * optional bool assistive_experiences_enabled = 10; + * + * @param value The assistiveExperiencesEnabled to set. + * @return This builder for chaining. + */ + public Builder setAssistiveExperiencesEnabled(boolean value) { - /** - * - * - *
-   * Observability Instance specific configuration.
-   * 
- * - * Protobuf type {@code google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig} - */ - public static final class ObservabilityInstanceConfig extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig) - ObservabilityInstanceConfigOrBuilder { - private static final long serialVersionUID = 0L; + assistiveExperiencesEnabled_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+       * Whether assistive experiences are enabled for this AlloyDB instance.
+       * 
+ * + * optional bool assistive_experiences_enabled = 10; + * + * @return This builder for chaining. + */ + public Builder clearAssistiveExperiencesEnabled() { + bitField0_ = (bitField0_ & ~0x00000200); + assistiveExperiencesEnabled_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig) + private static final com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig + DEFAULT_INSTANCE; static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ObservabilityInstanceConfig"); + DEFAULT_INSTANCE = + new com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig(); } - // Use ObservabilityInstanceConfig.newBuilder() to construct. - private ObservabilityInstanceConfig(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); + public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; } - private ObservabilityInstanceConfig() {} + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObservabilityInstanceConfig 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 final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.alloydb.v1alpha.ResourcesProto - .internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceConfig_descriptor; + public static com.google.protobuf.Parser parser() { + return PARSER; } @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.alloydb.v1alpha.ResourcesProto - .internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.class, - com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.Builder.class); + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - private int bitField0_; - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ObservabilityInstanceInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo) + com.google.protobuf.MessageOrBuilder { /** * * *
-     * Observability feature status for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Observability feature status for an instance.
      * 
* - * optional bool enabled = 1; + * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the enabled field is set. + * @return The enabled. */ - @java.lang.Override - public boolean hasEnabled() { - return ((bitField0_ & 0x00000001) != 0); - } + boolean getEnabled(); /** * * *
-     * Observability feature status for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Preserve comments in query string for an instance.
      * 
* - * optional bool enabled = 1; + * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The enabled. + * @return The preserveComments. */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } + boolean getPreserveComments(); - public static final int PRESERVE_COMMENTS_FIELD_NUMBER = 2; - private boolean preserveComments_ = false; + /** + * + * + *
+     * Output only. Track wait events during query execution for an instance.
+     * 
+ * + * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The trackWaitEvents. + */ + boolean getTrackWaitEvents(); /** * * *
-     * Preserve comments in query string for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Track wait event types during query execution for an
+     * instance.
      * 
* - * optional bool preserve_comments = 2; + * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the preserveComments field is set. + * @return The trackWaitEventTypes. */ - @java.lang.Override - public boolean hasPreserveComments() { - return ((bitField0_ & 0x00000002) != 0); - } + boolean getTrackWaitEventTypes(); /** * * *
-     * Preserve comments in query string for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Query string length. The default value is 10k.
      * 
* - * optional bool preserve_comments = 2; + * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The preserveComments. + * @return The maxQueryStringLength. */ - @java.lang.Override - public boolean getPreserveComments() { - return preserveComments_; - } + int getMaxQueryStringLength(); - public static final int TRACK_WAIT_EVENTS_FIELD_NUMBER = 3; - private boolean trackWaitEvents_ = false; + /** + * + * + *
+     * Output only. Record application tags for an instance.
+     * 
+ * + * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The recordApplicationTags. + */ + boolean getRecordApplicationTags(); /** * * *
-     * Track wait events during query execution for an instance.
-     * This flag is turned "on" by default but tracking is enabled only after
-     * observability enabled flag is also turned on.
+     * Output only. Number of query execution plans captured by Insights per
+     * minute for all queries combined.
      * 
* - * optional bool track_wait_events = 3; + * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the trackWaitEvents field is set. + * @return The queryPlansPerMinute. + */ + int getQueryPlansPerMinute(); + + /** + * + * + *
+     * Output only. Track actively running queries on the instance.
+     * 
+ * + * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The trackActiveQueries. + */ + boolean getTrackActiveQueries(); + + /** + * + * + *
+     * Output only. Track client address for an instance.
+     * 
+ * + * bool track_client_address = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The trackClientAddress. + */ + boolean getTrackClientAddress(); + + /** + * + * + *
+     * Output only. Whether assistive experiences are enabled for this AlloyDB
+     * instance.
+     * 
+ * + * bool assistive_experiences_enabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The assistiveExperiencesEnabled. + */ + boolean getAssistiveExperiencesEnabled(); + + /** + * + * + *
+     * Output only. Indicates whether to track active query plans for an
+     * instance. Deprecated: Use track_active_queries instead.
+     * 
+ * + * + * bool track_active_query_plan = 13 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated + * google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.track_active_query_plan + * is deprecated. See google/cloud/alloydb/v1alpha/resources.proto;l=976 + * @return The trackActiveQueryPlan. */ + @java.lang.Deprecated + boolean getTrackActiveQueryPlan(); + } + + /** Protobuf type {@code google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo} */ + public static final class ObservabilityInstanceInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo) + ObservabilityInstanceInfoOrBuilder { + 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= */ "", + "ObservabilityInstanceInfo"); + } + + // Use ObservabilityInstanceInfo.newBuilder() to construct. + private ObservabilityInstanceInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ObservabilityInstanceInfo() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceInfo_descriptor; + } + @java.lang.Override - public boolean hasTrackWaitEvents() { - return ((bitField0_ & 0x00000004) != 0); + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.class, + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.Builder.class); } + public static final int ENABLED_FIELD_NUMBER = 2; + private boolean enabled_ = false; + /** * * *
-     * Track wait events during query execution for an instance.
-     * This flag is turned "on" by default but tracking is enabled only after
-     * observability enabled flag is also turned on.
+     * Output only. Observability feature status for an instance.
      * 
* - * optional bool track_wait_events = 3; + * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The trackWaitEvents. + * @return The enabled. */ @java.lang.Override - public boolean getTrackWaitEvents() { - return trackWaitEvents_; + public boolean getEnabled() { + return enabled_; } - public static final int TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER = 4; - private boolean trackWaitEventTypes_ = false; + public static final int PRESERVE_COMMENTS_FIELD_NUMBER = 3; + private boolean preserveComments_ = false; /** * * *
-     * Output only. Track wait event types during query execution for an
-     * instance. This flag is turned "on" by default but tracking is enabled
-     * only after observability enabled flag is also turned on. This is
-     * read-only flag and only modifiable by internal API.
+     * Output only. Preserve comments in query string for an instance.
      * 
* - * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the trackWaitEventTypes field is set. + * @return The preserveComments. */ @java.lang.Override - public boolean hasTrackWaitEventTypes() { - return ((bitField0_ & 0x00000008) != 0); + public boolean getPreserveComments() { + return preserveComments_; } + public static final int TRACK_WAIT_EVENTS_FIELD_NUMBER = 4; + private boolean trackWaitEvents_ = false; + /** * * *
-     * Output only. Track wait event types during query execution for an
-     * instance. This flag is turned "on" by default but tracking is enabled
-     * only after observability enabled flag is also turned on. This is
-     * read-only flag and only modifiable by internal API.
+     * Output only. Track wait events during query execution for an instance.
      * 
* - * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The trackWaitEventTypes. + * @return The trackWaitEvents. */ @java.lang.Override - public boolean getTrackWaitEventTypes() { - return trackWaitEventTypes_; + public boolean getTrackWaitEvents() { + return trackWaitEvents_; } - public static final int MAX_QUERY_STRING_LENGTH_FIELD_NUMBER = 5; - private int maxQueryStringLength_ = 0; + public static final int TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER = 5; + private boolean trackWaitEventTypes_ = false; /** * * *
-     * Query string length. The default value is 10k.
+     * Output only. Track wait event types during query execution for an
+     * instance.
      * 
* - * optional int32 max_query_string_length = 5; + * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the maxQueryStringLength field is set. + * @return The trackWaitEventTypes. */ @java.lang.Override - public boolean hasMaxQueryStringLength() { - return ((bitField0_ & 0x00000010) != 0); + public boolean getTrackWaitEventTypes() { + return trackWaitEventTypes_; } + public static final int MAX_QUERY_STRING_LENGTH_FIELD_NUMBER = 6; + private int maxQueryStringLength_ = 0; + /** * * *
-     * Query string length. The default value is 10k.
+     * Output only. Query string length. The default value is 10k.
      * 
* - * optional int32 max_query_string_length = 5; + * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The maxQueryStringLength. */ @@ -4743,35 +7597,17 @@ public int getMaxQueryStringLength() { return maxQueryStringLength_; } - public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 6; + public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 7; private boolean recordApplicationTags_ = false; /** * * *
-     * Record application tags for an instance.
-     * This flag is turned "off" by default.
-     * 
- * - * optional bool record_application_tags = 6; - * - * @return Whether the recordApplicationTags field is set. - */ - @java.lang.Override - public boolean hasRecordApplicationTags() { - return ((bitField0_ & 0x00000020) != 0); - } - - /** - * - * - *
-     * Record application tags for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Record application tags for an instance.
      * 
* - * optional bool record_application_tags = 6; + * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The recordApplicationTags. */ @@ -4780,37 +7616,18 @@ public boolean getRecordApplicationTags() { return recordApplicationTags_; } - public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 7; + public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 8; private int queryPlansPerMinute_ = 0; /** * * *
-     * Number of query execution plans captured by Insights per minute
-     * for all queries combined. The default value is 200.
-     * Any integer between 0 to 200 is considered valid.
-     * 
- * - * optional int32 query_plans_per_minute = 7; - * - * @return Whether the queryPlansPerMinute field is set. - */ - @java.lang.Override - public boolean hasQueryPlansPerMinute() { - return ((bitField0_ & 0x00000040) != 0); - } - - /** - * - * - *
-     * Number of query execution plans captured by Insights per minute
-     * for all queries combined. The default value is 200.
-     * Any integer between 0 to 200 is considered valid.
+     * Output only. Number of query execution plans captured by Insights per
+     * minute for all queries combined.
      * 
* - * optional int32 query_plans_per_minute = 7; + * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The queryPlansPerMinute. */ @@ -4819,35 +7636,17 @@ public int getQueryPlansPerMinute() { return queryPlansPerMinute_; } - public static final int TRACK_ACTIVE_QUERIES_FIELD_NUMBER = 8; + public static final int TRACK_ACTIVE_QUERIES_FIELD_NUMBER = 9; private boolean trackActiveQueries_ = false; /** * * *
-     * Track actively running queries on the instance.
-     * If not set, this flag is "off" by default.
-     * 
- * - * optional bool track_active_queries = 8; - * - * @return Whether the trackActiveQueries field is set. - */ - @java.lang.Override - public boolean hasTrackActiveQueries() { - return ((bitField0_ & 0x00000080) != 0); - } - - /** - * - * - *
-     * Track actively running queries on the instance.
-     * If not set, this flag is "off" by default.
+     * Output only. Track actively running queries on the instance.
      * 
* - * optional bool track_active_queries = 8; + * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The trackActiveQueries. */ @@ -4856,35 +7655,17 @@ public boolean getTrackActiveQueries() { return trackActiveQueries_; } - public static final int TRACK_CLIENT_ADDRESS_FIELD_NUMBER = 9; + public static final int TRACK_CLIENT_ADDRESS_FIELD_NUMBER = 10; private boolean trackClientAddress_ = false; /** * * *
-     * Track client address for an instance.
-     * If not set, default value is "off".
-     * 
- * - * optional bool track_client_address = 9; - * - * @return Whether the trackClientAddress field is set. - */ - @java.lang.Override - public boolean hasTrackClientAddress() { - return ((bitField0_ & 0x00000100) != 0); - } - - /** - * - * - *
-     * Track client address for an instance.
-     * If not set, default value is "off".
+     * Output only. Track client address for an instance.
      * 
* - * optional bool track_client_address = 9; + * bool track_client_address = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The trackClientAddress. */ @@ -4893,39 +7674,51 @@ public boolean getTrackClientAddress() { return trackClientAddress_; } - public static final int ASSISTIVE_EXPERIENCES_ENABLED_FIELD_NUMBER = 10; + public static final int ASSISTIVE_EXPERIENCES_ENABLED_FIELD_NUMBER = 11; private boolean assistiveExperiencesEnabled_ = false; /** * * *
-     * Whether assistive experiences are enabled for this AlloyDB instance.
+     * Output only. Whether assistive experiences are enabled for this AlloyDB
+     * instance.
      * 
* - * optional bool assistive_experiences_enabled = 10; + * bool assistive_experiences_enabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return Whether the assistiveExperiencesEnabled field is set. + * @return The assistiveExperiencesEnabled. */ @java.lang.Override - public boolean hasAssistiveExperiencesEnabled() { - return ((bitField0_ & 0x00000200) != 0); + public boolean getAssistiveExperiencesEnabled() { + return assistiveExperiencesEnabled_; } + public static final int TRACK_ACTIVE_QUERY_PLAN_FIELD_NUMBER = 13; + private boolean trackActiveQueryPlan_ = false; + /** * * *
-     * Whether assistive experiences are enabled for this AlloyDB instance.
+     * Output only. Indicates whether to track active query plans for an
+     * instance. Deprecated: Use track_active_queries instead.
      * 
* - * optional bool assistive_experiences_enabled = 10; + * + * bool track_active_query_plan = 13 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The assistiveExperiencesEnabled. + * @deprecated + * google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.track_active_query_plan + * is deprecated. See google/cloud/alloydb/v1alpha/resources.proto;l=976 + * @return The trackActiveQueryPlan. */ @java.lang.Override - public boolean getAssistiveExperiencesEnabled() { - return assistiveExperiencesEnabled_; + @java.lang.Deprecated + public boolean getTrackActiveQueryPlan() { + return trackActiveQueryPlan_; } private byte memoizedIsInitialized = -1; @@ -4942,35 +7735,38 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeBool(1, enabled_); + if (enabled_ != false) { + output.writeBool(2, enabled_); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeBool(2, preserveComments_); + if (preserveComments_ != false) { + output.writeBool(3, preserveComments_); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeBool(3, trackWaitEvents_); + if (trackWaitEvents_ != false) { + output.writeBool(4, trackWaitEvents_); } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeBool(4, trackWaitEventTypes_); + if (trackWaitEventTypes_ != false) { + output.writeBool(5, trackWaitEventTypes_); } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeInt32(5, maxQueryStringLength_); + if (maxQueryStringLength_ != 0) { + output.writeInt32(6, maxQueryStringLength_); } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeBool(6, recordApplicationTags_); + if (recordApplicationTags_ != false) { + output.writeBool(7, recordApplicationTags_); } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeInt32(7, queryPlansPerMinute_); + if (queryPlansPerMinute_ != 0) { + output.writeInt32(8, queryPlansPerMinute_); } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeBool(8, trackActiveQueries_); + if (trackActiveQueries_ != false) { + output.writeBool(9, trackActiveQueries_); } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeBool(9, trackClientAddress_); + if (trackClientAddress_ != false) { + output.writeBool(10, trackClientAddress_); } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeBool(10, assistiveExperiencesEnabled_); + if (assistiveExperiencesEnabled_ != false) { + output.writeBool(11, assistiveExperiencesEnabled_); + } + if (trackActiveQueryPlan_ != false) { + output.writeBool(13, trackActiveQueryPlan_); } getUnknownFields().writeTo(output); } @@ -4981,94 +7777,67 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, preserveComments_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, trackWaitEvents_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, trackWaitEventTypes_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxQueryStringLength_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, recordApplicationTags_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, queryPlansPerMinute_); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, trackActiveQueries_); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, trackClientAddress_); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(10, assistiveExperiencesEnabled_); + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enabled_); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + if (preserveComments_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, preserveComments_); } - if (!(obj instanceof com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig)) { - return super.equals(obj); + if (trackWaitEvents_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, trackWaitEvents_); } - com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig other = - (com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig) obj; - - if (hasEnabled() != other.hasEnabled()) return false; - if (hasEnabled()) { - if (getEnabled() != other.getEnabled()) return false; + if (trackWaitEventTypes_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, trackWaitEventTypes_); } - if (hasPreserveComments() != other.hasPreserveComments()) return false; - if (hasPreserveComments()) { - if (getPreserveComments() != other.getPreserveComments()) return false; + if (maxQueryStringLength_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, maxQueryStringLength_); } - if (hasTrackWaitEvents() != other.hasTrackWaitEvents()) return false; - if (hasTrackWaitEvents()) { - if (getTrackWaitEvents() != other.getTrackWaitEvents()) return false; + if (recordApplicationTags_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, recordApplicationTags_); } - if (hasTrackWaitEventTypes() != other.hasTrackWaitEventTypes()) return false; - if (hasTrackWaitEventTypes()) { - if (getTrackWaitEventTypes() != other.getTrackWaitEventTypes()) return false; + if (queryPlansPerMinute_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, queryPlansPerMinute_); } - if (hasMaxQueryStringLength() != other.hasMaxQueryStringLength()) return false; - if (hasMaxQueryStringLength()) { - if (getMaxQueryStringLength() != other.getMaxQueryStringLength()) return false; + if (trackActiveQueries_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, trackActiveQueries_); } - if (hasRecordApplicationTags() != other.hasRecordApplicationTags()) return false; - if (hasRecordApplicationTags()) { - if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false; + if (trackClientAddress_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, trackClientAddress_); } - if (hasQueryPlansPerMinute() != other.hasQueryPlansPerMinute()) return false; - if (hasQueryPlansPerMinute()) { - if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) return false; + if (assistiveExperiencesEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(11, assistiveExperiencesEnabled_); } - if (hasTrackActiveQueries() != other.hasTrackActiveQueries()) return false; - if (hasTrackActiveQueries()) { - if (getTrackActiveQueries() != other.getTrackActiveQueries()) return false; + if (trackActiveQueryPlan_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, trackActiveQueryPlan_); } - if (hasTrackClientAddress() != other.hasTrackClientAddress()) return false; - if (hasTrackClientAddress()) { - if (getTrackClientAddress() != other.getTrackClientAddress()) return false; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - if (hasAssistiveExperiencesEnabled() != other.hasAssistiveExperiencesEnabled()) return false; - if (hasAssistiveExperiencesEnabled()) { - if (getAssistiveExperiencesEnabled() != other.getAssistiveExperiencesEnabled()) - return false; + if (!(obj instanceof com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo)) { + return super.equals(obj); } + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo other = + (com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (getPreserveComments() != other.getPreserveComments()) return false; + if (getTrackWaitEvents() != other.getTrackWaitEvents()) return false; + if (getTrackWaitEventTypes() != other.getTrackWaitEventTypes()) return false; + if (getMaxQueryStringLength() != other.getMaxQueryStringLength()) return false; + if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false; + if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) return false; + if (getTrackActiveQueries() != other.getTrackActiveQueries()) return false; + if (getTrackClientAddress() != other.getTrackClientAddress()) return false; + if (getAssistiveExperiencesEnabled() != other.getAssistiveExperiencesEnabled()) return false; + if (getTrackActiveQueryPlan() != other.getTrackActiveQueryPlan()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5080,106 +7849,87 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasEnabled()) { - hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); - } - if (hasPreserveComments()) { - hash = (37 * hash) + PRESERVE_COMMENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreserveComments()); - } - if (hasTrackWaitEvents()) { - hash = (37 * hash) + TRACK_WAIT_EVENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEvents()); - } - if (hasTrackWaitEventTypes()) { - hash = (37 * hash) + TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEventTypes()); - } - if (hasMaxQueryStringLength()) { - hash = (37 * hash) + MAX_QUERY_STRING_LENGTH_FIELD_NUMBER; - hash = (53 * hash) + getMaxQueryStringLength(); - } - if (hasRecordApplicationTags()) { - hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags()); - } - if (hasQueryPlansPerMinute()) { - hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER; - hash = (53 * hash) + getQueryPlansPerMinute(); - } - if (hasTrackActiveQueries()) { - hash = (37 * hash) + TRACK_ACTIVE_QUERIES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackActiveQueries()); - } - if (hasTrackClientAddress()) { - hash = (37 * hash) + TRACK_CLIENT_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackClientAddress()); - } - if (hasAssistiveExperiencesEnabled()) { - hash = (37 * hash) + ASSISTIVE_EXPERIENCES_ENABLED_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getAssistiveExperiencesEnabled()); - } + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (37 * hash) + PRESERVE_COMMENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreserveComments()); + hash = (37 * hash) + TRACK_WAIT_EVENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEvents()); + hash = (37 * hash) + TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEventTypes()); + hash = (37 * hash) + MAX_QUERY_STRING_LENGTH_FIELD_NUMBER; + hash = (53 * hash) + getMaxQueryStringLength(); + hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags()); + hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER; + hash = (53 * hash) + getQueryPlansPerMinute(); + hash = (37 * hash) + TRACK_ACTIVE_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackActiveQueries()); + hash = (37 * hash) + TRACK_CLIENT_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackClientAddress()); + hash = (37 * hash) + ASSISTIVE_EXPERIENCES_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAssistiveExperiencesEnabled()); + hash = (37 * hash) + TRACK_ACTIVE_QUERY_PLAN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackActiveQueryPlan()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo 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.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo 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.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo 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.alloydb.v1alpha.Instance.ObservabilityInstanceConfig + public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig + public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -5187,12 +7937,12 @@ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceCon PARSER, input, extensionRegistry); } - public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -5210,7 +7960,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig prototype) { + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -5225,37 +7975,28 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder return builder; } - /** - * - * - *
-     * Observability Instance specific configuration.
-     * 
- * - * Protobuf type {@code google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig} - */ + /** Protobuf type {@code google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig) - com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfigOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo) + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.alloydb.v1alpha.ResourcesProto - .internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceConfig_descriptor; + .internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.alloydb.v1alpha.ResourcesProto - .internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceConfig_fieldAccessorTable + .internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.class, - com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.Builder - .class); + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.class, + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.Builder.class); } // Construct using - // com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.newBuilder() + // com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -5276,26 +8017,26 @@ public Builder clear() { trackActiveQueries_ = false; trackClientAddress_ = false; assistiveExperiencesEnabled_ = false; + trackActiveQueryPlan_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.alloydb.v1alpha.ResourcesProto - .internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceConfig_descriptor; + .internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceInfo_descriptor; } @java.lang.Override - public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig + public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo getDefaultInstanceForType() { - return com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig + return com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig build() { - com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig result = - buildPartial(); + public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo build() { + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5303,9 +8044,9 @@ public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig bui } @java.lang.Override - public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig buildPartial() { - com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig result = - new com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig(this); + public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo buildPartial() { + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo result = + new com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -5314,58 +8055,48 @@ public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig bui } private void buildPartial0( - com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig result) { + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo result) { int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.enabled_ = enabled_; - to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.preserveComments_ = preserveComments_; - to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.trackWaitEvents_ = trackWaitEvents_; - to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.trackWaitEventTypes_ = trackWaitEventTypes_; - to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.maxQueryStringLength_ = maxQueryStringLength_; - to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.recordApplicationTags_ = recordApplicationTags_; - to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.queryPlansPerMinute_ = queryPlansPerMinute_; - to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { result.trackActiveQueries_ = trackActiveQueries_; - to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000100) != 0)) { result.trackClientAddress_ = trackClientAddress_; - to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000200) != 0)) { result.assistiveExperiencesEnabled_ = assistiveExperiencesEnabled_; - to_bitField0_ |= 0x00000200; } - result.bitField0_ |= to_bitField0_; + if (((from_bitField0_ & 0x00000400) != 0)) { + result.trackActiveQueryPlan_ = trackActiveQueryPlan_; + } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig) { + if (other instanceof com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo) { return mergeFrom( - (com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig) other); + (com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo) other); } else { super.mergeFrom(other); return this; @@ -5373,40 +8104,43 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig other) { + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo other) { if (other - == com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig + == com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo .getDefaultInstance()) return this; - if (other.hasEnabled()) { + if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } - if (other.hasPreserveComments()) { + if (other.getPreserveComments() != false) { setPreserveComments(other.getPreserveComments()); } - if (other.hasTrackWaitEvents()) { + if (other.getTrackWaitEvents() != false) { setTrackWaitEvents(other.getTrackWaitEvents()); } - if (other.hasTrackWaitEventTypes()) { + if (other.getTrackWaitEventTypes() != false) { setTrackWaitEventTypes(other.getTrackWaitEventTypes()); } - if (other.hasMaxQueryStringLength()) { + if (other.getMaxQueryStringLength() != 0) { setMaxQueryStringLength(other.getMaxQueryStringLength()); } - if (other.hasRecordApplicationTags()) { + if (other.getRecordApplicationTags() != false) { setRecordApplicationTags(other.getRecordApplicationTags()); } - if (other.hasQueryPlansPerMinute()) { + if (other.getQueryPlansPerMinute() != 0) { setQueryPlansPerMinute(other.getQueryPlansPerMinute()); } - if (other.hasTrackActiveQueries()) { + if (other.getTrackActiveQueries() != false) { setTrackActiveQueries(other.getTrackActiveQueries()); } - if (other.hasTrackClientAddress()) { + if (other.getTrackClientAddress() != false) { setTrackClientAddress(other.getTrackClientAddress()); } - if (other.hasAssistiveExperiencesEnabled()) { + if (other.getAssistiveExperiencesEnabled() != false) { setAssistiveExperiencesEnabled(other.getAssistiveExperiencesEnabled()); } + if (other.getTrackActiveQueryPlan() != false) { + setTrackActiveQueryPlan(other.getTrackActiveQueryPlan()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -5433,66 +8167,72 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: + case 16: { enabled_ = input.readBool(); bitField0_ |= 0x00000001; break; - } // case 8 - case 16: + } // case 16 + case 24: { preserveComments_ = input.readBool(); bitField0_ |= 0x00000002; break; - } // case 16 - case 24: + } // case 24 + case 32: { trackWaitEvents_ = input.readBool(); bitField0_ |= 0x00000004; break; - } // case 24 - case 32: + } // case 32 + case 40: { trackWaitEventTypes_ = input.readBool(); bitField0_ |= 0x00000008; break; - } // case 32 - case 40: + } // case 40 + case 48: { maxQueryStringLength_ = input.readInt32(); bitField0_ |= 0x00000010; break; - } // case 40 - case 48: + } // case 48 + case 56: { recordApplicationTags_ = input.readBool(); bitField0_ |= 0x00000020; break; - } // case 48 - case 56: + } // case 56 + case 64: { queryPlansPerMinute_ = input.readInt32(); bitField0_ |= 0x00000040; break; - } // case 56 - case 64: + } // case 64 + case 72: { trackActiveQueries_ = input.readBool(); bitField0_ |= 0x00000080; break; - } // case 64 - case 72: + } // case 72 + case 80: { trackClientAddress_ = input.readBool(); bitField0_ |= 0x00000100; break; - } // case 72 - case 80: + } // case 80 + case 88: { assistiveExperiencesEnabled_ = input.readBool(); bitField0_ |= 0x00000200; break; - } // case 80 + } // case 88 + case 104: + { + trackActiveQueryPlan_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 104 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5518,28 +8258,10 @@ public Builder mergeFrom( * * *
-       * Observability feature status for an instance.
-       * This flag is turned "off" by default.
-       * 
- * - * optional bool enabled = 1; - * - * @return Whether the enabled field is set. - */ - @java.lang.Override - public boolean hasEnabled() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-       * Observability feature status for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Observability feature status for an instance.
        * 
* - * optional bool enabled = 1; + * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The enabled. */ @@ -5552,11 +8274,10 @@ public boolean getEnabled() { * * *
-       * Observability feature status for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Observability feature status for an instance.
        * 
* - * optional bool enabled = 1; + * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The enabled to set. * @return This builder for chaining. @@ -5573,11 +8294,10 @@ public Builder setEnabled(boolean value) { * * *
-       * Observability feature status for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Observability feature status for an instance.
        * 
* - * optional bool enabled = 1; + * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -5594,28 +8314,10 @@ public Builder clearEnabled() { * * *
-       * Preserve comments in query string for an instance.
-       * This flag is turned "off" by default.
-       * 
- * - * optional bool preserve_comments = 2; - * - * @return Whether the preserveComments field is set. - */ - @java.lang.Override - public boolean hasPreserveComments() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-       * Preserve comments in query string for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Preserve comments in query string for an instance.
        * 
* - * optional bool preserve_comments = 2; + * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The preserveComments. */ @@ -5628,11 +8330,10 @@ public boolean getPreserveComments() { * * *
-       * Preserve comments in query string for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Preserve comments in query string for an instance.
        * 
* - * optional bool preserve_comments = 2; + * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The preserveComments to set. * @return This builder for chaining. @@ -5649,51 +8350,30 @@ public Builder setPreserveComments(boolean value) { * * *
-       * Preserve comments in query string for an instance.
-       * This flag is turned "off" by default.
-       * 
- * - * optional bool preserve_comments = 2; - * - * @return This builder for chaining. - */ - public Builder clearPreserveComments() { - bitField0_ = (bitField0_ & ~0x00000002); - preserveComments_ = false; - onChanged(); - return this; - } - - private boolean trackWaitEvents_; - - /** - * - * - *
-       * Track wait events during query execution for an instance.
-       * This flag is turned "on" by default but tracking is enabled only after
-       * observability enabled flag is also turned on.
+       * Output only. Preserve comments in query string for an instance.
        * 
* - * optional bool track_wait_events = 3; + * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the trackWaitEvents field is set. + * @return This builder for chaining. */ - @java.lang.Override - public boolean hasTrackWaitEvents() { - return ((bitField0_ & 0x00000004) != 0); + public Builder clearPreserveComments() { + bitField0_ = (bitField0_ & ~0x00000002); + preserveComments_ = false; + onChanged(); + return this; } + private boolean trackWaitEvents_; + /** * * *
-       * Track wait events during query execution for an instance.
-       * This flag is turned "on" by default but tracking is enabled only after
-       * observability enabled flag is also turned on.
+       * Output only. Track wait events during query execution for an instance.
        * 
* - * optional bool track_wait_events = 3; + * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The trackWaitEvents. */ @@ -5706,12 +8386,10 @@ public boolean getTrackWaitEvents() { * * *
-       * Track wait events during query execution for an instance.
-       * This flag is turned "on" by default but tracking is enabled only after
-       * observability enabled flag is also turned on.
+       * Output only. Track wait events during query execution for an instance.
        * 
* - * optional bool track_wait_events = 3; + * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The trackWaitEvents to set. * @return This builder for chaining. @@ -5728,12 +8406,10 @@ public Builder setTrackWaitEvents(boolean value) { * * *
-       * Track wait events during query execution for an instance.
-       * This flag is turned "on" by default but tracking is enabled only after
-       * observability enabled flag is also turned on.
+       * Output only. Track wait events during query execution for an instance.
        * 
* - * optional bool track_wait_events = 3; + * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -5751,35 +8427,10 @@ public Builder clearTrackWaitEvents() { * *
        * Output only. Track wait event types during query execution for an
-       * instance. This flag is turned "on" by default but tracking is enabled
-       * only after observability enabled flag is also turned on. This is
-       * read-only flag and only modifiable by internal API.
-       * 
- * - * - * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the trackWaitEventTypes field is set. - */ - @java.lang.Override - public boolean hasTrackWaitEventTypes() { - return ((bitField0_ & 0x00000008) != 0); - } - - /** - * - * - *
-       * Output only. Track wait event types during query execution for an
-       * instance. This flag is turned "on" by default but tracking is enabled
-       * only after observability enabled flag is also turned on. This is
-       * read-only flag and only modifiable by internal API.
+       * instance.
        * 
* - * - * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The trackWaitEventTypes. */ @@ -5793,14 +8444,10 @@ public boolean getTrackWaitEventTypes() { * *
        * Output only. Track wait event types during query execution for an
-       * instance. This flag is turned "on" by default but tracking is enabled
-       * only after observability enabled flag is also turned on. This is
-       * read-only flag and only modifiable by internal API.
+       * instance.
        * 
* - * - * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The trackWaitEventTypes to set. * @return This builder for chaining. @@ -5818,14 +8465,10 @@ public Builder setTrackWaitEventTypes(boolean value) { * *
        * Output only. Track wait event types during query execution for an
-       * instance. This flag is turned "on" by default but tracking is enabled
-       * only after observability enabled flag is also turned on. This is
-       * read-only flag and only modifiable by internal API.
+       * instance.
        * 
* - * - * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -5842,26 +8485,11 @@ public Builder clearTrackWaitEventTypes() { * * *
-       * Query string length. The default value is 10k.
-       * 
- * - * optional int32 max_query_string_length = 5; - * - * @return Whether the maxQueryStringLength field is set. - */ - @java.lang.Override - public boolean hasMaxQueryStringLength() { - return ((bitField0_ & 0x00000010) != 0); - } - - /** - * - * - *
-       * Query string length. The default value is 10k.
+       * Output only. Query string length. The default value is 10k.
        * 
* - * optional int32 max_query_string_length = 5; + * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The maxQueryStringLength. */ @@ -5874,10 +8502,11 @@ public int getMaxQueryStringLength() { * * *
-       * Query string length. The default value is 10k.
+       * Output only. Query string length. The default value is 10k.
        * 
* - * optional int32 max_query_string_length = 5; + * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The maxQueryStringLength to set. * @return This builder for chaining. @@ -5894,10 +8523,11 @@ public Builder setMaxQueryStringLength(int value) { * * *
-       * Query string length. The default value is 10k.
+       * Output only. Query string length. The default value is 10k.
        * 
* - * optional int32 max_query_string_length = 5; + * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -5914,28 +8544,10 @@ public Builder clearMaxQueryStringLength() { * * *
-       * Record application tags for an instance.
-       * This flag is turned "off" by default.
-       * 
- * - * optional bool record_application_tags = 6; - * - * @return Whether the recordApplicationTags field is set. - */ - @java.lang.Override - public boolean hasRecordApplicationTags() { - return ((bitField0_ & 0x00000020) != 0); - } - - /** - * - * - *
-       * Record application tags for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Record application tags for an instance.
        * 
* - * optional bool record_application_tags = 6; + * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The recordApplicationTags. */ @@ -5948,11 +8560,10 @@ public boolean getRecordApplicationTags() { * * *
-       * Record application tags for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Record application tags for an instance.
        * 
* - * optional bool record_application_tags = 6; + * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The recordApplicationTags to set. * @return This builder for chaining. @@ -5969,11 +8580,10 @@ public Builder setRecordApplicationTags(boolean value) { * * *
-       * Record application tags for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Record application tags for an instance.
        * 
* - * optional bool record_application_tags = 6; + * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -5990,30 +8600,11 @@ public Builder clearRecordApplicationTags() { * * *
-       * Number of query execution plans captured by Insights per minute
-       * for all queries combined. The default value is 200.
-       * Any integer between 0 to 200 is considered valid.
-       * 
- * - * optional int32 query_plans_per_minute = 7; - * - * @return Whether the queryPlansPerMinute field is set. - */ - @java.lang.Override - public boolean hasQueryPlansPerMinute() { - return ((bitField0_ & 0x00000040) != 0); - } - - /** - * - * - *
-       * Number of query execution plans captured by Insights per minute
-       * for all queries combined. The default value is 200.
-       * Any integer between 0 to 200 is considered valid.
+       * Output only. Number of query execution plans captured by Insights per
+       * minute for all queries combined.
        * 
* - * optional int32 query_plans_per_minute = 7; + * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The queryPlansPerMinute. */ @@ -6026,12 +8617,11 @@ public int getQueryPlansPerMinute() { * * *
-       * Number of query execution plans captured by Insights per minute
-       * for all queries combined. The default value is 200.
-       * Any integer between 0 to 200 is considered valid.
+       * Output only. Number of query execution plans captured by Insights per
+       * minute for all queries combined.
        * 
* - * optional int32 query_plans_per_minute = 7; + * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The queryPlansPerMinute to set. * @return This builder for chaining. @@ -6048,12 +8638,11 @@ public Builder setQueryPlansPerMinute(int value) { * * *
-       * Number of query execution plans captured by Insights per minute
-       * for all queries combined. The default value is 200.
-       * Any integer between 0 to 200 is considered valid.
+       * Output only. Number of query execution plans captured by Insights per
+       * minute for all queries combined.
        * 
* - * optional int32 query_plans_per_minute = 7; + * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -6070,28 +8659,10 @@ public Builder clearQueryPlansPerMinute() { * * *
-       * Track actively running queries on the instance.
-       * If not set, this flag is "off" by default.
-       * 
- * - * optional bool track_active_queries = 8; - * - * @return Whether the trackActiveQueries field is set. - */ - @java.lang.Override - public boolean hasTrackActiveQueries() { - return ((bitField0_ & 0x00000080) != 0); - } - - /** - * - * - *
-       * Track actively running queries on the instance.
-       * If not set, this flag is "off" by default.
+       * Output only. Track actively running queries on the instance.
        * 
* - * optional bool track_active_queries = 8; + * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The trackActiveQueries. */ @@ -6104,11 +8675,10 @@ public boolean getTrackActiveQueries() { * * *
-       * Track actively running queries on the instance.
-       * If not set, this flag is "off" by default.
+       * Output only. Track actively running queries on the instance.
        * 
* - * optional bool track_active_queries = 8; + * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The trackActiveQueries to set. * @return This builder for chaining. @@ -6125,11 +8695,10 @@ public Builder setTrackActiveQueries(boolean value) { * * *
-       * Track actively running queries on the instance.
-       * If not set, this flag is "off" by default.
+       * Output only. Track actively running queries on the instance.
        * 
* - * optional bool track_active_queries = 8; + * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -6146,28 +8715,10 @@ public Builder clearTrackActiveQueries() { * * *
-       * Track client address for an instance.
-       * If not set, default value is "off".
-       * 
- * - * optional bool track_client_address = 9; - * - * @return Whether the trackClientAddress field is set. - */ - @java.lang.Override - public boolean hasTrackClientAddress() { - return ((bitField0_ & 0x00000100) != 0); - } - - /** - * - * - *
-       * Track client address for an instance.
-       * If not set, default value is "off".
+       * Output only. Track client address for an instance.
        * 
* - * optional bool track_client_address = 9; + * bool track_client_address = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The trackClientAddress. */ @@ -6180,11 +8731,10 @@ public boolean getTrackClientAddress() { * * *
-       * Track client address for an instance.
-       * If not set, default value is "off".
+       * Output only. Track client address for an instance.
        * 
* - * optional bool track_client_address = 9; + * bool track_client_address = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The trackClientAddress to set. * @return This builder for chaining. @@ -6201,11 +8751,10 @@ public Builder setTrackClientAddress(boolean value) { * * *
-       * Track client address for an instance.
-       * If not set, default value is "off".
+       * Output only. Track client address for an instance.
        * 
* - * optional bool track_client_address = 9; + * bool track_client_address = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -6222,50 +8771,110 @@ public Builder clearTrackClientAddress() { * * *
-       * Whether assistive experiences are enabled for this AlloyDB instance.
+       * Output only. Whether assistive experiences are enabled for this AlloyDB
+       * instance.
        * 
* - * optional bool assistive_experiences_enabled = 10; + * bool assistive_experiences_enabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return Whether the assistiveExperiencesEnabled field is set. + * @return The assistiveExperiencesEnabled. */ @java.lang.Override - public boolean hasAssistiveExperiencesEnabled() { - return ((bitField0_ & 0x00000200) != 0); + public boolean getAssistiveExperiencesEnabled() { + return assistiveExperiencesEnabled_; } /** * * *
-       * Whether assistive experiences are enabled for this AlloyDB instance.
+       * Output only. Whether assistive experiences are enabled for this AlloyDB
+       * instance.
        * 
* - * optional bool assistive_experiences_enabled = 10; + * bool assistive_experiences_enabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The assistiveExperiencesEnabled. + * @param value The assistiveExperiencesEnabled to set. + * @return This builder for chaining. */ - @java.lang.Override - public boolean getAssistiveExperiencesEnabled() { - return assistiveExperiencesEnabled_; + public Builder setAssistiveExperiencesEnabled(boolean value) { + + assistiveExperiencesEnabled_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Whether assistive experiences are enabled for this AlloyDB
+       * instance.
+       * 
+ * + * bool assistive_experiences_enabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAssistiveExperiencesEnabled() { + bitField0_ = (bitField0_ & ~0x00000200); + assistiveExperiencesEnabled_ = false; + onChanged(); + return this; + } + + private boolean trackActiveQueryPlan_; + + /** + * + * + *
+       * Output only. Indicates whether to track active query plans for an
+       * instance. Deprecated: Use track_active_queries instead.
+       * 
+ * + * + * bool track_active_query_plan = 13 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated + * google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.track_active_query_plan + * is deprecated. See google/cloud/alloydb/v1alpha/resources.proto;l=976 + * @return The trackActiveQueryPlan. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean getTrackActiveQueryPlan() { + return trackActiveQueryPlan_; } /** * * *
-       * Whether assistive experiences are enabled for this AlloyDB instance.
+       * Output only. Indicates whether to track active query plans for an
+       * instance. Deprecated: Use track_active_queries instead.
        * 
* - * optional bool assistive_experiences_enabled = 10; + * + * bool track_active_query_plan = 13 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The assistiveExperiencesEnabled to set. + * @deprecated + * google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.track_active_query_plan + * is deprecated. See google/cloud/alloydb/v1alpha/resources.proto;l=976 + * @param value The trackActiveQueryPlan to set. * @return This builder for chaining. */ - public Builder setAssistiveExperiencesEnabled(boolean value) { + @java.lang.Deprecated + public Builder setTrackActiveQueryPlan(boolean value) { - assistiveExperiencesEnabled_ = value; - bitField0_ |= 0x00000200; + trackActiveQueryPlan_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -6274,41 +8883,47 @@ public Builder setAssistiveExperiencesEnabled(boolean value) { * * *
-       * Whether assistive experiences are enabled for this AlloyDB instance.
+       * Output only. Indicates whether to track active query plans for an
+       * instance. Deprecated: Use track_active_queries instead.
        * 
* - * optional bool assistive_experiences_enabled = 10; + * + * bool track_active_query_plan = 13 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated + * google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.track_active_query_plan + * is deprecated. See google/cloud/alloydb/v1alpha/resources.proto;l=976 * @return This builder for chaining. */ - public Builder clearAssistiveExperiencesEnabled() { - bitField0_ = (bitField0_ & ~0x00000200); - assistiveExperiencesEnabled_ = false; + @java.lang.Deprecated + public Builder clearTrackActiveQueryPlan() { + bitField0_ = (bitField0_ & ~0x00000400); + trackActiveQueryPlan_ = false; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig) + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo) } - // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig) - private static final com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo) + private static final com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig(); + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo(); } - public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig + public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public ObservabilityInstanceConfig parsePartialFrom( + public ObservabilityInstanceInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -6328,17 +8943,17 @@ public ObservabilityInstanceConfig parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig + public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -20082,6 +22697,76 @@ public boolean hasQueryInsightsConfig() { : queryInsightsConfig_; } + public static final int QUERY_INSIGHTS_INFO_FIELD_NUMBER = 47; + private com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo queryInsightsInfo_; + + /** + * + * + *
+   * Output only. Instance level Query Insights information, which is read-only
+   * and available in the output only. Contains the effective query insights
+   * settings for this instance, by merging customer's provided
+   * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the queryInsightsInfo field is set. + */ + @java.lang.Override + public boolean hasQueryInsightsInfo() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Output only. Instance level Query Insights information, which is read-only
+   * and available in the output only. Contains the effective query insights
+   * settings for this instance, by merging customer's provided
+   * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The queryInsightsInfo. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo + getQueryInsightsInfo() { + return queryInsightsInfo_ == null + ? com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo.getDefaultInstance() + : queryInsightsInfo_; + } + + /** + * + * + *
+   * Output only. Instance level Query Insights information, which is read-only
+   * and available in the output only. Contains the effective query insights
+   * settings for this instance, by merging customer's provided
+   * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfoOrBuilder + getQueryInsightsInfoOrBuilder() { + return queryInsightsInfo_ == null + ? com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo.getDefaultInstance() + : queryInsightsInfo_; + } + public static final int OBSERVABILITY_CONFIG_FIELD_NUMBER = 26; private com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observabilityConfig_; @@ -20101,7 +22786,7 @@ public boolean hasQueryInsightsConfig() { */ @java.lang.Override public boolean hasObservabilityConfig() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -20144,6 +22829,77 @@ public boolean hasObservabilityConfig() { : observabilityConfig_; } + public static final int OBSERVABILITY_INSTANCE_INFO_FIELD_NUMBER = 44; + private com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo + observabilityInstanceInfo_; + + /** + * + * + *
+   * Output only. Instance level observability information, contains the
+   * effective values of observability settings for this instance, by merging
+   * customer's provided `ObservabilityInstanceConfig` with the
+   * Observability defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the observabilityInstanceInfo field is set. + */ + @java.lang.Override + public boolean hasObservabilityInstanceInfo() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+   * Output only. Instance level observability information, contains the
+   * effective values of observability settings for this instance, by merging
+   * customer's provided `ObservabilityInstanceConfig` with the
+   * Observability defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The observabilityInstanceInfo. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo + getObservabilityInstanceInfo() { + return observabilityInstanceInfo_ == null + ? com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.getDefaultInstance() + : observabilityInstanceInfo_; + } + + /** + * + * + *
+   * Output only. Instance level observability information, contains the
+   * effective values of observability settings for this instance, by merging
+   * customer's provided `ObservabilityInstanceConfig` with the
+   * Observability defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfoOrBuilder + getObservabilityInstanceInfoOrBuilder() { + return observabilityInstanceInfo_ == null + ? com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.getDefaultInstance() + : observabilityInstanceInfo_; + } + public static final int READ_POOL_CONFIG_FIELD_NUMBER = 14; private com.google.cloud.alloydb.v1alpha.Instance.ReadPoolConfig readPoolConfig_; @@ -20161,7 +22917,7 @@ public boolean hasObservabilityConfig() { */ @java.lang.Override public boolean hasReadPoolConfig() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -20528,7 +23284,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { */ @java.lang.Override public boolean hasUpdatePolicy() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -20590,7 +23346,7 @@ public com.google.cloud.alloydb.v1alpha.Instance.UpdatePolicy getUpdatePolicy() */ @java.lang.Override public boolean hasClientConnectionConfig() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -20690,7 +23446,7 @@ public boolean getSatisfiesPzs() { */ @java.lang.Override public boolean hasPscInstanceConfig() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -20753,7 +23509,7 @@ public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig getPscInstanc */ @java.lang.Override public boolean hasPscInstanceInfo() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -20815,7 +23571,7 @@ public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo getPscInstanceI */ @java.lang.Override public boolean hasNetworkConfig() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -20873,13 +23629,13 @@ public com.google.cloud.alloydb.v1alpha.Instance.InstanceNetworkConfig getNetwor * * * @deprecated google.cloud.alloydb.v1alpha.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=1399 + * google/cloud/alloydb/v1alpha/resources.proto;l=1478 * @return Whether the geminiConfig field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasGeminiConfig() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -20895,7 +23651,7 @@ public boolean hasGeminiConfig() { * * * @deprecated google.cloud.alloydb.v1alpha.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=1399 + * google/cloud/alloydb/v1alpha/resources.proto;l=1478 * @return The geminiConfig. */ @java.lang.Override @@ -21075,7 +23831,7 @@ public com.google.cloud.alloydb.v1alpha.Instance.ActivationPolicy getActivationP */ @java.lang.Override public boolean hasConnectionPoolConfig() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -21135,7 +23891,7 @@ public com.google.cloud.alloydb.v1alpha.Instance.ConnectionPoolConfig getConnect */ @java.lang.Override public boolean hasGcaConfig() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -21231,7 +23987,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetDatabaseFlags(), DatabaseFlagsDefaultEntryHolder.defaultEntry, 13); - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(14, getReadPoolConfig()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ipAddress_)) { @@ -21254,31 +24010,31 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(21, getQueryInsightsConfig()); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { output.writeMessage(22, getUpdatePolicy()); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { output.writeMessage(23, getClientConnectionConfig()); } if (satisfiesPzs_ != false) { output.writeBool(24, satisfiesPzs_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(26, getObservabilityConfig()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(publicIpAddress_)) { com.google.protobuf.GeneratedMessage.writeString(output, 27, publicIpAddress_); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { output.writeMessage(28, getPscInstanceConfig()); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { output.writeMessage(29, getNetworkConfig()); } if (satisfiesPzi_ != false) { output.writeBool(30, satisfiesPzi_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { output.writeMessage(33, getGeminiConfig()); } for (int i = 0; i < outboundPublicIpAddresses_.size(); i++) { @@ -21290,15 +24046,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(35, activationPolicy_); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { output.writeMessage(37, getConnectionPoolConfig()); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { output.writeMessage(38, getGcaConfig()); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(44, getObservabilityInstanceInfo()); + } + if (((bitField0_ & 0x00002000) != 0)) { output.writeMessage(46, getPscInstanceInfo()); } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(47, getQueryInsightsInfo()); + } getUnknownFields().writeTo(output); } @@ -21365,7 +24127,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, databaseFlags__); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getReadPoolConfig()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ipAddress_)) { @@ -21397,33 +24159,33 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getQueryInsightsConfig()); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getUpdatePolicy()); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getClientConnectionConfig()); } if (satisfiesPzs_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, satisfiesPzs_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getObservabilityConfig()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(publicIpAddress_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(27, publicIpAddress_); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getPscInstanceConfig()); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getNetworkConfig()); } if (satisfiesPzi_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(30, satisfiesPzi_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(33, getGeminiConfig()); } { @@ -21439,16 +24201,24 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(35, activationPolicy_); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, getConnectionPoolConfig()); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getGcaConfig()); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 44, getObservabilityInstanceInfo()); + } + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(46, getPscInstanceInfo()); } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(47, getQueryInsightsInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -21499,10 +24269,19 @@ public boolean equals(final java.lang.Object obj) { if (hasQueryInsightsConfig()) { if (!getQueryInsightsConfig().equals(other.getQueryInsightsConfig())) return false; } + if (hasQueryInsightsInfo() != other.hasQueryInsightsInfo()) return false; + if (hasQueryInsightsInfo()) { + if (!getQueryInsightsInfo().equals(other.getQueryInsightsInfo())) return false; + } if (hasObservabilityConfig() != other.hasObservabilityConfig()) return false; if (hasObservabilityConfig()) { if (!getObservabilityConfig().equals(other.getObservabilityConfig())) return false; } + if (hasObservabilityInstanceInfo() != other.hasObservabilityInstanceInfo()) return false; + if (hasObservabilityInstanceInfo()) { + if (!getObservabilityInstanceInfo().equals(other.getObservabilityInstanceInfo())) + return false; + } if (hasReadPoolConfig() != other.hasReadPoolConfig()) return false; if (hasReadPoolConfig()) { if (!getReadPoolConfig().equals(other.getReadPoolConfig())) return false; @@ -21610,10 +24389,18 @@ public int hashCode() { hash = (37 * hash) + QUERY_INSIGHTS_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getQueryInsightsConfig().hashCode(); } + if (hasQueryInsightsInfo()) { + hash = (37 * hash) + QUERY_INSIGHTS_INFO_FIELD_NUMBER; + hash = (53 * hash) + getQueryInsightsInfo().hashCode(); + } if (hasObservabilityConfig()) { hash = (37 * hash) + OBSERVABILITY_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getObservabilityConfig().hashCode(); } + if (hasObservabilityInstanceInfo()) { + hash = (37 * hash) + OBSERVABILITY_INSTANCE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getObservabilityInstanceInfo().hashCode(); + } if (hasReadPoolConfig()) { hash = (37 * hash) + READ_POOL_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getReadPoolConfig().hashCode(); @@ -21851,7 +24638,9 @@ private void maybeForceBuilderInitialization() { internalGetWritableNodeFieldBuilder(); internalGetNodesFieldBuilder(); internalGetQueryInsightsConfigFieldBuilder(); + internalGetQueryInsightsInfoFieldBuilder(); internalGetObservabilityConfigFieldBuilder(); + internalGetObservabilityInstanceInfoFieldBuilder(); internalGetReadPoolConfigFieldBuilder(); internalGetUpdatePolicyFieldBuilder(); internalGetClientConnectionConfigFieldBuilder(); @@ -21915,11 +24704,21 @@ public Builder clear() { queryInsightsConfigBuilder_.dispose(); queryInsightsConfigBuilder_ = null; } + queryInsightsInfo_ = null; + if (queryInsightsInfoBuilder_ != null) { + queryInsightsInfoBuilder_.dispose(); + queryInsightsInfoBuilder_ = null; + } observabilityConfig_ = null; if (observabilityConfigBuilder_ != null) { observabilityConfigBuilder_.dispose(); observabilityConfigBuilder_ = null; } + observabilityInstanceInfo_ = null; + if (observabilityInstanceInfoBuilder_ != null) { + observabilityInstanceInfoBuilder_.dispose(); + observabilityInstanceInfoBuilder_ = null; + } readPoolConfig_ = null; if (readPoolConfigBuilder_ != null) { readPoolConfigBuilder_.dispose(); @@ -22086,96 +24885,110 @@ private void buildPartial0(com.google.cloud.alloydb.v1alpha.Instance result) { to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00010000) != 0)) { + result.queryInsightsInfo_ = + queryInsightsInfoBuilder_ == null + ? queryInsightsInfo_ + : queryInsightsInfoBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00020000) != 0)) { result.observabilityConfig_ = observabilityConfigBuilder_ == null ? observabilityConfig_ : observabilityConfigBuilder_.build(); - to_bitField0_ |= 0x00000040; + to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { + result.observabilityInstanceInfo_ = + observabilityInstanceInfoBuilder_ == null + ? observabilityInstanceInfo_ + : observabilityInstanceInfoBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00080000) != 0)) { result.readPoolConfig_ = readPoolConfigBuilder_ == null ? readPoolConfig_ : readPoolConfigBuilder_.build(); - to_bitField0_ |= 0x00000080; + to_bitField0_ |= 0x00000200; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.ipAddress_ = ipAddress_; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.publicIpAddress_ = publicIpAddress_; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00400000) != 0)) { result.reconciling_ = reconciling_; } - if (((from_bitField0_ & 0x00200000) != 0)) { + if (((from_bitField0_ & 0x00800000) != 0)) { result.etag_ = etag_; } - if (((from_bitField0_ & 0x00400000) != 0)) { + if (((from_bitField0_ & 0x01000000) != 0)) { result.annotations_ = internalGetAnnotations(); result.annotations_.makeImmutable(); } - if (((from_bitField0_ & 0x00800000) != 0)) { + if (((from_bitField0_ & 0x02000000) != 0)) { result.updatePolicy_ = updatePolicyBuilder_ == null ? updatePolicy_ : updatePolicyBuilder_.build(); - to_bitField0_ |= 0x00000100; + to_bitField0_ |= 0x00000400; } - if (((from_bitField0_ & 0x01000000) != 0)) { + if (((from_bitField0_ & 0x04000000) != 0)) { result.clientConnectionConfig_ = clientConnectionConfigBuilder_ == null ? clientConnectionConfig_ : clientConnectionConfigBuilder_.build(); - to_bitField0_ |= 0x00000200; + to_bitField0_ |= 0x00000800; } - if (((from_bitField0_ & 0x02000000) != 0)) { + if (((from_bitField0_ & 0x08000000) != 0)) { result.satisfiesPzi_ = satisfiesPzi_; } - if (((from_bitField0_ & 0x04000000) != 0)) { + if (((from_bitField0_ & 0x10000000) != 0)) { result.satisfiesPzs_ = satisfiesPzs_; } - if (((from_bitField0_ & 0x08000000) != 0)) { + if (((from_bitField0_ & 0x20000000) != 0)) { result.pscInstanceConfig_ = pscInstanceConfigBuilder_ == null ? pscInstanceConfig_ : pscInstanceConfigBuilder_.build(); - to_bitField0_ |= 0x00000400; - } - if (((from_bitField0_ & 0x10000000) != 0)) { - result.pscInstanceInfo_ = - pscInstanceInfoBuilder_ == null ? pscInstanceInfo_ : pscInstanceInfoBuilder_.build(); - to_bitField0_ |= 0x00000800; - } - if (((from_bitField0_ & 0x20000000) != 0)) { - result.networkConfig_ = - networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x40000000) != 0)) { - result.geminiConfig_ = - geminiConfigBuilder_ == null ? geminiConfig_ : geminiConfigBuilder_.build(); + result.pscInstanceInfo_ = + pscInstanceInfoBuilder_ == null ? pscInstanceInfo_ : pscInstanceInfoBuilder_.build(); to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x80000000) != 0)) { - outboundPublicIpAddresses_.makeImmutable(); - result.outboundPublicIpAddresses_ = outboundPublicIpAddresses_; + result.networkConfig_ = + networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); + to_bitField0_ |= 0x00004000; } result.bitField0_ |= to_bitField0_; } private void buildPartial1(com.google.cloud.alloydb.v1alpha.Instance result) { int from_bitField1_ = bitField1_; + int to_bitField0_ = 0; if (((from_bitField1_ & 0x00000001) != 0)) { - result.activationPolicy_ = activationPolicy_; + result.geminiConfig_ = + geminiConfigBuilder_ == null ? geminiConfig_ : geminiConfigBuilder_.build(); + to_bitField0_ |= 0x00008000; } - int to_bitField0_ = 0; if (((from_bitField1_ & 0x00000002) != 0)) { + outboundPublicIpAddresses_.makeImmutable(); + result.outboundPublicIpAddresses_ = outboundPublicIpAddresses_; + } + if (((from_bitField1_ & 0x00000004) != 0)) { + result.activationPolicy_ = activationPolicy_; + } + if (((from_bitField1_ & 0x00000008) != 0)) { result.connectionPoolConfig_ = connectionPoolConfigBuilder_ == null ? connectionPoolConfig_ : connectionPoolConfigBuilder_.build(); - to_bitField0_ |= 0x00004000; + to_bitField0_ |= 0x00010000; } - if (((from_bitField1_ & 0x00000004) != 0)) { + if (((from_bitField1_ & 0x00000010) != 0)) { result.gcaConfig_ = gcaConfigBuilder_ == null ? gcaConfig_ : gcaConfigBuilder_.build(); - to_bitField0_ |= 0x00008000; + to_bitField0_ |= 0x00020000; } result.bitField0_ |= to_bitField0_; } @@ -22270,20 +25083,26 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.Instance other) { if (other.hasQueryInsightsConfig()) { mergeQueryInsightsConfig(other.getQueryInsightsConfig()); } + if (other.hasQueryInsightsInfo()) { + mergeQueryInsightsInfo(other.getQueryInsightsInfo()); + } if (other.hasObservabilityConfig()) { mergeObservabilityConfig(other.getObservabilityConfig()); } + if (other.hasObservabilityInstanceInfo()) { + mergeObservabilityInstanceInfo(other.getObservabilityInstanceInfo()); + } if (other.hasReadPoolConfig()) { mergeReadPoolConfig(other.getReadPoolConfig()); } if (!other.getIpAddress().isEmpty()) { ipAddress_ = other.ipAddress_; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); } if (!other.getPublicIpAddress().isEmpty()) { publicIpAddress_ = other.publicIpAddress_; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; onChanged(); } if (other.getReconciling() != false) { @@ -22291,11 +25110,11 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.Instance other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; onChanged(); } internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; if (other.hasUpdatePolicy()) { mergeUpdatePolicy(other.getUpdatePolicy()); } @@ -22323,7 +25142,7 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.Instance other) { if (!other.outboundPublicIpAddresses_.isEmpty()) { if (outboundPublicIpAddresses_.isEmpty()) { outboundPublicIpAddresses_ = other.outboundPublicIpAddresses_; - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; } else { ensureOutboundPublicIpAddressesIsMutable(); outboundPublicIpAddresses_.addAll(other.outboundPublicIpAddresses_); @@ -22463,25 +25282,25 @@ public Builder mergeFrom( { input.readMessage( internalGetReadPoolConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; break; } // case 114 case 122: { ipAddress_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; break; } // case 122 case 128: { reconciling_ = input.readBool(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00400000; break; } // case 128 case 138: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; break; } // case 138 case 146: @@ -22493,7 +25312,7 @@ public Builder mergeFrom( internalGetMutableAnnotations() .getMutableMap() .put(annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; break; } // case 146 case 154: @@ -22527,7 +25346,7 @@ public Builder mergeFrom( { input.readMessage( internalGetUpdatePolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; break; } // case 178 case 186: @@ -22535,53 +25354,53 @@ public Builder mergeFrom( input.readMessage( internalGetClientConnectionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; break; } // case 186 case 192: { satisfiesPzs_ = input.readBool(); - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; break; } // case 192 case 210: { input.readMessage( internalGetObservabilityConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 210 case 218: { publicIpAddress_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; break; } // case 218 case 226: { input.readMessage( internalGetPscInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; break; } // case 226 case 234: { input.readMessage( internalGetNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; break; } // case 234 case 240: { satisfiesPzi_ = input.readBool(); - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; break; } // case 240 case 266: { input.readMessage( internalGetGeminiConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; break; } // case 266 case 274: @@ -22594,30 +25413,45 @@ public Builder mergeFrom( case 280: { activationPolicy_ = input.readEnum(); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; break; } // case 280 case 298: { input.readMessage( internalGetConnectionPoolConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; break; } // case 298 case 306: { input.readMessage( internalGetGcaConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; break; } // case 306 + case 354: + { + input.readMessage( + internalGetObservabilityInstanceInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 354 case 370: { input.readMessage( internalGetPscInstanceInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; break; } // case 370 + case 378: + { + input.readMessage( + internalGetQueryInsightsInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 378 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -23308,16 +26142,228 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * * * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; + + /** + * + * + *
+     * Output only. Delete time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. Delete time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Delete time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + } else { + deleteTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Delete time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); } else { - updateTimeBuilder_.setMessage(builderForValue.build()); + deleteTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -23326,27 +26372,27 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. Update time stamp
+     * Output only. Delete time stamp
      * 
* * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); } else { - updateTime_ = value; + deleteTime_ = value; } } else { - updateTimeBuilder_.mergeFrom(value); + deleteTimeBuilder_.mergeFrom(value); } - if (updateTime_ != null) { - bitField0_ |= 0x00000010; + if (deleteTime_ != null) { + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -23356,19 +26402,19 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Update time stamp
+     * Output only. Delete time stamp
      * 
* * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000010); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; + public Builder clearDeleteTime() { + bitField0_ = (bitField0_ & ~0x00000020); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; } onChanged(); return this; @@ -23378,37 +26424,37 @@ public Builder clearUpdateTime() { * * *
-     * Output only. Update time stamp
+     * Output only. Delete time stamp
      * 
* * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000010; + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { + bitField0_ |= 0x00000020; onChanged(); - return internalGetUpdateTimeFieldBuilder().getBuilder(); + return internalGetDeleteTimeFieldBuilder().getBuilder(); } /** * * *
-     * Output only. Update time stamp
+     * Output only. Delete time stamp
      * 
* * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + : deleteTime_; } } @@ -23416,120 +26462,239 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-     * Output only. Update time stamp
+     * Output only. Delete time stamp
      * 
* * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = + internalGetDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; + getDeleteTime(), getParentForChildren(), isClean()); + deleteTime_ = null; } - return updateTimeBuilder_; + return deleteTimeBuilder_; } - private com.google.protobuf.Timestamp deleteTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000040; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } /** * * *
-     * Output only. Delete time stamp
+     * Labels as key value pairs
      * 
* - * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 7; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** * - * @return Whether the deleteTime field is set. + * + *
+     * Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 7; */ - public boolean hasDeleteTime() { - return ((bitField0_ & 0x00000020) != 0); + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); } /** * * *
-     * Output only. Delete time stamp
+     * Labels as key value pairs
      * 
* - * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 7; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 7; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000040; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
+     * Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 7; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000040; + return this; + } + + /** + * + * + *
+     * Labels as key value pairs
+     * 
* - * @return The deleteTime. + * map<string, string> labels = 7; */ - public com.google.protobuf.Timestamp getDeleteTime() { - if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; - } else { - return deleteTimeBuilder_.getMessage(); - } + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000040; + return this; } + private int state_ = 0; + /** * * *
-     * Output only. Delete time stamp
+     * Output only. The current serving state of the instance.
      * 
* * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1alpha.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The enum numeric value on the wire for state. */ - public Builder setDeleteTime(com.google.protobuf.Timestamp value) { - if (deleteTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deleteTime_ = value; - } else { - deleteTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; + @java.lang.Override + public int getStateValue() { + return state_; } /** * * *
-     * Output only. Delete time stamp
+     * Output only. The current serving state of the instance.
      * 
* * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1alpha.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (deleteTimeBuilder_ == null) { - deleteTime_ = builderForValue.build(); - } else { - deleteTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -23538,50 +26703,42 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. Delete time stamp
+     * Output only. The current serving state of the instance.
      * 
* * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1alpha.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The state. */ - public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { - if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && deleteTime_ != null - && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getDeleteTimeBuilder().mergeFrom(value); - } else { - deleteTime_ = value; - } - } else { - deleteTimeBuilder_.mergeFrom(value); - } - if (deleteTime_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } - return this; + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.State getState() { + com.google.cloud.alloydb.v1alpha.Instance.State result = + com.google.cloud.alloydb.v1alpha.Instance.State.forNumber(state_); + return result == null ? com.google.cloud.alloydb.v1alpha.Instance.State.UNRECOGNIZED : result; } /** * * *
-     * Output only. Delete time stamp
+     * Output only. The current serving state of the instance.
      * 
* * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1alpha.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The state to set. + * @return This builder for chaining. */ - public Builder clearDeleteTime() { - bitField0_ = (bitField0_ & ~0x00000020); - deleteTime_ = null; - if (deleteTimeBuilder_ != null) { - deleteTimeBuilder_.dispose(); - deleteTimeBuilder_ = null; + public Builder setState(com.google.cloud.alloydb.v1alpha.Instance.State value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000080; + state_ = value.getNumber(); onChanged(); return this; } @@ -23590,222 +26747,195 @@ public Builder clearDeleteTime() { * * *
-     * Output only. Delete time stamp
+     * Output only. The current serving state of the instance.
      * 
* * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1alpha.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return This builder for chaining. */ - public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - bitField0_ |= 0x00000020; + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000080); + state_ = 0; onChanged(); - return internalGetDeleteTimeFieldBuilder().getBuilder(); + return this; } + private int instanceType_ = 0; + /** * * *
-     * Output only. Delete time stamp
+     * Required. The type of the instance. Specified at creation time.
      * 
* * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1alpha.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The enum numeric value on the wire for instanceType. */ - public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { - if (deleteTimeBuilder_ != null) { - return deleteTimeBuilder_.getMessageOrBuilder(); - } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; - } + @java.lang.Override + public int getInstanceTypeValue() { + return instanceType_; } /** * * *
-     * Output only. Delete time stamp
+     * Required. The type of the instance. Specified at creation time.
      * 
* * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1alpha.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param value The enum numeric value on the wire for instanceType to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetDeleteTimeFieldBuilder() { - if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); - deleteTime_ = null; - } - return deleteTimeBuilder_; - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - private com.google.protobuf.MapField - internalGetMutableLabels() { - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - bitField0_ |= 0x00000040; + public Builder setInstanceTypeValue(int value) { + instanceType_ = value; + bitField0_ |= 0x00000100; onChanged(); - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); + return this; } /** * * *
-     * Labels as key value pairs
+     * Required. The type of the instance. Specified at creation time.
      * 
* - * map<string, string> labels = 7; + * + * .google.cloud.alloydb.v1alpha.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceType. */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); + public com.google.cloud.alloydb.v1alpha.Instance.InstanceType getInstanceType() { + com.google.cloud.alloydb.v1alpha.Instance.InstanceType result = + com.google.cloud.alloydb.v1alpha.Instance.InstanceType.forNumber(instanceType_); + return result == null + ? com.google.cloud.alloydb.v1alpha.Instance.InstanceType.UNRECOGNIZED + : result; } /** * * *
-     * Labels as key value pairs
+     * Required. The type of the instance. Specified at creation time.
      * 
* - * map<string, string> labels = 7; + * + * .google.cloud.alloydb.v1alpha.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The instanceType to set. + * @return This builder for chaining. */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); + public Builder setInstanceType(com.google.cloud.alloydb.v1alpha.Instance.InstanceType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + instanceType_ = value.getNumber(); + onChanged(); + return this; } /** * * *
-     * Labels as key value pairs
+     * Required. The type of the instance. Specified at creation time.
      * 
* - * map<string, string> labels = 7; + * + * .google.cloud.alloydb.v1alpha.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; + public Builder clearInstanceType() { + bitField0_ = (bitField0_ & ~0x00000100); + instanceType_ = 0; + onChanged(); + return this; } + private com.google.cloud.alloydb.v1alpha.Instance.MachineConfig machineConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1alpha.Instance.MachineConfig, + com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.Builder, + com.google.cloud.alloydb.v1alpha.Instance.MachineConfigOrBuilder> + machineConfigBuilder_; + /** * * *
-     * Labels as key value pairs
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * map<string, string> labels = 7; + * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10; + * + * @return Whether the machineConfig field is set. */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableLabels().getMutableMap().clear(); - return this; + public boolean hasMachineConfig() { + return ((bitField0_ & 0x00000200) != 0); } /** * * *
-     * Labels as key value pairs
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * map<string, string> labels = 7; + * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10; + * + * @return The machineConfig. */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public com.google.cloud.alloydb.v1alpha.Instance.MachineConfig getMachineConfig() { + if (machineConfigBuilder_ == null) { + return machineConfig_ == null + ? com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.getDefaultInstance() + : machineConfig_; + } else { + return machineConfigBuilder_.getMessage(); } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000040; - return internalGetMutableLabels().getMutableMap(); } /** * * *
-     * Labels as key value pairs
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * map<string, string> labels = 7; + * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); + public Builder setMachineConfig(com.google.cloud.alloydb.v1alpha.Instance.MachineConfig value) { + if (machineConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + machineConfig_ = value; + } else { + machineConfigBuilder_.setMessage(value); } - internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; + onChanged(); return this; } @@ -23813,54 +26943,72 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
-     * Labels as key value pairs
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * map<string, string> labels = 7; + * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000040; + public Builder setMachineConfig( + com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.Builder builderForValue) { + if (machineConfigBuilder_ == null) { + machineConfig_ = builderForValue.build(); + } else { + machineConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); return this; } - private int state_ = 0; - /** * * *
-     * Output only. The current serving state of the instance.
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * - * .google.cloud.alloydb.v1alpha.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. + * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10; */ - @java.lang.Override - public int getStateValue() { - return state_; + public Builder mergeMachineConfig( + com.google.cloud.alloydb.v1alpha.Instance.MachineConfig value) { + if (machineConfigBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && machineConfig_ != null + && machineConfig_ + != com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.getDefaultInstance()) { + getMachineConfigBuilder().mergeFrom(value); + } else { + machineConfig_ = value; + } + } else { + machineConfigBuilder_.mergeFrom(value); + } + if (machineConfig_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; } /** * * *
-     * Output only. The current serving state of the instance.
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * - * .google.cloud.alloydb.v1alpha.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. + * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10; */ - public Builder setStateValue(int value) { - state_ = value; - bitField0_ |= 0x00000080; + public Builder clearMachineConfig() { + bitField0_ = (bitField0_ & ~0x00000200); + machineConfig_ = null; + if (machineConfigBuilder_ != null) { + machineConfigBuilder_.dispose(); + machineConfigBuilder_ = null; + } onChanged(); return this; } @@ -23869,103 +27017,110 @@ public Builder setStateValue(int value) { * * *
-     * Output only. The current serving state of the instance.
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * - * .google.cloud.alloydb.v1alpha.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. + * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10; */ - @java.lang.Override - public com.google.cloud.alloydb.v1alpha.Instance.State getState() { - com.google.cloud.alloydb.v1alpha.Instance.State result = - com.google.cloud.alloydb.v1alpha.Instance.State.forNumber(state_); - return result == null ? com.google.cloud.alloydb.v1alpha.Instance.State.UNRECOGNIZED : result; + public com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.Builder + getMachineConfigBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetMachineConfigFieldBuilder().getBuilder(); } /** * * *
-     * Output only. The current serving state of the instance.
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * - * .google.cloud.alloydb.v1alpha.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The state to set. - * @return This builder for chaining. + * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10; */ - public Builder setState(com.google.cloud.alloydb.v1alpha.Instance.State value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.alloydb.v1alpha.Instance.MachineConfigOrBuilder + getMachineConfigOrBuilder() { + if (machineConfigBuilder_ != null) { + return machineConfigBuilder_.getMessageOrBuilder(); + } else { + return machineConfig_ == null + ? com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.getDefaultInstance() + : machineConfig_; } - bitField0_ |= 0x00000080; - state_ = value.getNumber(); - onChanged(); - return this; } /** * * *
-     * Output only. The current serving state of the instance.
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * - * .google.cloud.alloydb.v1alpha.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. + * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10; */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000080); - state_ = 0; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1alpha.Instance.MachineConfig, + com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.Builder, + com.google.cloud.alloydb.v1alpha.Instance.MachineConfigOrBuilder> + internalGetMachineConfigFieldBuilder() { + if (machineConfigBuilder_ == null) { + machineConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1alpha.Instance.MachineConfig, + com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.Builder, + com.google.cloud.alloydb.v1alpha.Instance.MachineConfigOrBuilder>( + getMachineConfig(), getParentForChildren(), isClean()); + machineConfig_ = null; + } + return machineConfigBuilder_; } - private int instanceType_ = 0; + private int availabilityType_ = 0; /** * * *
-     * Required. The type of the instance. Specified at creation time.
+     * Availability type of an Instance.
+     * If empty, defaults to REGIONAL for primary instances.
+     * For read pools, availability_type is always UNSPECIFIED. Instances in the
+     * read pools are evenly distributed across available zones within the region
+     * (i.e. read pools with more than one node will have a node in at
+     * least two zones).
      * 
* - * - * .google.cloud.alloydb.v1alpha.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.alloydb.v1alpha.Instance.AvailabilityType availability_type = 11; * - * @return The enum numeric value on the wire for instanceType. + * @return The enum numeric value on the wire for availabilityType. */ @java.lang.Override - public int getInstanceTypeValue() { - return instanceType_; + public int getAvailabilityTypeValue() { + return availabilityType_; } /** * * *
-     * Required. The type of the instance. Specified at creation time.
+     * Availability type of an Instance.
+     * If empty, defaults to REGIONAL for primary instances.
+     * For read pools, availability_type is always UNSPECIFIED. Instances in the
+     * read pools are evenly distributed across available zones within the region
+     * (i.e. read pools with more than one node will have a node in at
+     * least two zones).
      * 
* - * - * .google.cloud.alloydb.v1alpha.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.alloydb.v1alpha.Instance.AvailabilityType availability_type = 11; * - * @param value The enum numeric value on the wire for instanceType to set. + * @param value The enum numeric value on the wire for availabilityType to set. * @return This builder for chaining. */ - public Builder setInstanceTypeValue(int value) { - instanceType_ = value; - bitField0_ |= 0x00000100; + public Builder setAvailabilityTypeValue(int value) { + availabilityType_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -23974,21 +27129,24 @@ public Builder setInstanceTypeValue(int value) { * * *
-     * Required. The type of the instance. Specified at creation time.
+     * Availability type of an Instance.
+     * If empty, defaults to REGIONAL for primary instances.
+     * For read pools, availability_type is always UNSPECIFIED. Instances in the
+     * read pools are evenly distributed across available zones within the region
+     * (i.e. read pools with more than one node will have a node in at
+     * least two zones).
      * 
* - * - * .google.cloud.alloydb.v1alpha.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.alloydb.v1alpha.Instance.AvailabilityType availability_type = 11; * - * @return The instanceType. + * @return The availabilityType. */ @java.lang.Override - public com.google.cloud.alloydb.v1alpha.Instance.InstanceType getInstanceType() { - com.google.cloud.alloydb.v1alpha.Instance.InstanceType result = - com.google.cloud.alloydb.v1alpha.Instance.InstanceType.forNumber(instanceType_); + public com.google.cloud.alloydb.v1alpha.Instance.AvailabilityType getAvailabilityType() { + com.google.cloud.alloydb.v1alpha.Instance.AvailabilityType result = + com.google.cloud.alloydb.v1alpha.Instance.AvailabilityType.forNumber(availabilityType_); return result == null - ? com.google.cloud.alloydb.v1alpha.Instance.InstanceType.UNRECOGNIZED + ? com.google.cloud.alloydb.v1alpha.Instance.AvailabilityType.UNRECOGNIZED : result; } @@ -23996,22 +27154,26 @@ public com.google.cloud.alloydb.v1alpha.Instance.InstanceType getInstanceType() * * *
-     * Required. The type of the instance. Specified at creation time.
+     * Availability type of an Instance.
+     * If empty, defaults to REGIONAL for primary instances.
+     * For read pools, availability_type is always UNSPECIFIED. Instances in the
+     * read pools are evenly distributed across available zones within the region
+     * (i.e. read pools with more than one node will have a node in at
+     * least two zones).
      * 
* - * - * .google.cloud.alloydb.v1alpha.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.alloydb.v1alpha.Instance.AvailabilityType availability_type = 11; * - * @param value The instanceType to set. + * @param value The availabilityType to set. * @return This builder for chaining. */ - public Builder setInstanceType(com.google.cloud.alloydb.v1alpha.Instance.InstanceType value) { + public Builder setAvailabilityType( + com.google.cloud.alloydb.v1alpha.Instance.AvailabilityType value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000100; - instanceType_ = value.getNumber(); + bitField0_ |= 0x00000400; + availabilityType_ = value.getNumber(); onChanged(); return this; } @@ -24020,64 +27182,80 @@ public Builder setInstanceType(com.google.cloud.alloydb.v1alpha.Instance.Instanc * * *
-     * Required. The type of the instance. Specified at creation time.
+     * Availability type of an Instance.
+     * If empty, defaults to REGIONAL for primary instances.
+     * For read pools, availability_type is always UNSPECIFIED. Instances in the
+     * read pools are evenly distributed across available zones within the region
+     * (i.e. read pools with more than one node will have a node in at
+     * least two zones).
      * 
* - * - * .google.cloud.alloydb.v1alpha.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.alloydb.v1alpha.Instance.AvailabilityType availability_type = 11; * * @return This builder for chaining. */ - public Builder clearInstanceType() { - bitField0_ = (bitField0_ & ~0x00000100); - instanceType_ = 0; + public Builder clearAvailabilityType() { + bitField0_ = (bitField0_ & ~0x00000400); + availabilityType_ = 0; onChanged(); return this; } - private com.google.cloud.alloydb.v1alpha.Instance.MachineConfig machineConfig_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1alpha.Instance.MachineConfig, - com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.Builder, - com.google.cloud.alloydb.v1alpha.Instance.MachineConfigOrBuilder> - machineConfigBuilder_; + private java.lang.Object gceZone_ = ""; /** * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * The Compute Engine zone that the instance should serve from, per
+     * https://cloud.google.com/compute/docs/regions-zones
+     * This can ONLY be specified for ZONAL instances.
+     * If present for a REGIONAL instance, an error will be thrown.
+     * If this is absent for a ZONAL instance, instance is created in a random
+     * zone with available capacity.
      * 
* - * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10; + * string gce_zone = 12; * - * @return Whether the machineConfig field is set. + * @return The gceZone. */ - public boolean hasMachineConfig() { - return ((bitField0_ & 0x00000200) != 0); + public java.lang.String getGceZone() { + java.lang.Object ref = gceZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gceZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * The Compute Engine zone that the instance should serve from, per
+     * https://cloud.google.com/compute/docs/regions-zones
+     * This can ONLY be specified for ZONAL instances.
+     * If present for a REGIONAL instance, an error will be thrown.
+     * If this is absent for a ZONAL instance, instance is created in a random
+     * zone with available capacity.
      * 
* - * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10; + * string gce_zone = 12; * - * @return The machineConfig. + * @return The bytes for gceZone. */ - public com.google.cloud.alloydb.v1alpha.Instance.MachineConfig getMachineConfig() { - if (machineConfigBuilder_ == null) { - return machineConfig_ == null - ? com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.getDefaultInstance() - : machineConfig_; + public com.google.protobuf.ByteString getGceZoneBytes() { + java.lang.Object ref = gceZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gceZone_ = b; + return b; } else { - return machineConfigBuilder_.getMessage(); + return (com.google.protobuf.ByteString) ref; } } @@ -24085,22 +27263,25 @@ public com.google.cloud.alloydb.v1alpha.Instance.MachineConfig getMachineConfig( * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * The Compute Engine zone that the instance should serve from, per
+     * https://cloud.google.com/compute/docs/regions-zones
+     * This can ONLY be specified for ZONAL instances.
+     * If present for a REGIONAL instance, an error will be thrown.
+     * If this is absent for a ZONAL instance, instance is created in a random
+     * zone with available capacity.
      * 
* - * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10; + * string gce_zone = 12; + * + * @param value The gceZone to set. + * @return This builder for chaining. */ - public Builder setMachineConfig(com.google.cloud.alloydb.v1alpha.Instance.MachineConfig value) { - if (machineConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - machineConfig_ = value; - } else { - machineConfigBuilder_.setMessage(value); + public Builder setGceZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00000200; + gceZone_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -24109,345 +27290,483 @@ public Builder setMachineConfig(com.google.cloud.alloydb.v1alpha.Instance.Machin * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * The Compute Engine zone that the instance should serve from, per
+     * https://cloud.google.com/compute/docs/regions-zones
+     * This can ONLY be specified for ZONAL instances.
+     * If present for a REGIONAL instance, an error will be thrown.
+     * If this is absent for a ZONAL instance, instance is created in a random
+     * zone with available capacity.
      * 
* - * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10; + * string gce_zone = 12; + * + * @return This builder for chaining. */ - public Builder setMachineConfig( - com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.Builder builderForValue) { - if (machineConfigBuilder_ == null) { - machineConfig_ = builderForValue.build(); - } else { - machineConfigBuilder_.setMessage(builderForValue.build()); + public Builder clearGceZone() { + gceZone_ = getDefaultInstance().getGceZone(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + + /** + * + * + *
+     * The Compute Engine zone that the instance should serve from, per
+     * https://cloud.google.com/compute/docs/regions-zones
+     * This can ONLY be specified for ZONAL instances.
+     * If present for a REGIONAL instance, an error will be thrown.
+     * If this is absent for a ZONAL instance, instance is created in a random
+     * zone with available capacity.
+     * 
+ * + * string gce_zone = 12; + * + * @param value The bytes for gceZone to set. + * @return This builder for chaining. + */ + public Builder setGceZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00000200; + checkByteStringIsUtf8(value); + gceZone_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } + private com.google.protobuf.MapField databaseFlags_; + + private com.google.protobuf.MapField + internalGetDatabaseFlags() { + if (databaseFlags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DatabaseFlagsDefaultEntryHolder.defaultEntry); + } + return databaseFlags_; + } + + private com.google.protobuf.MapField + internalGetMutableDatabaseFlags() { + if (databaseFlags_ == null) { + databaseFlags_ = + com.google.protobuf.MapField.newMapField(DatabaseFlagsDefaultEntryHolder.defaultEntry); + } + if (!databaseFlags_.isMutable()) { + databaseFlags_ = databaseFlags_.copy(); + } + bitField0_ |= 0x00001000; + onChanged(); + return databaseFlags_; + } + + public int getDatabaseFlagsCount() { + return internalGetDatabaseFlags().getMap().size(); + } + + /** + * + * + *
+     * Database flags. Set at the instance level.
+     * They are copied from the primary instance on secondary instance creation.
+     * Flags that have restrictions default to the value at primary
+     * instance on read instances during creation. Read instances can set new
+     * flags or override existing flags that are relevant for reads, for example,
+     * for enabling columnar cache on a read instance. Flags set on read instance
+     * might or might not be present on the primary instance.
+     *
+     *
+     * This is a list of "key": "value" pairs.
+     * "key": The name of the flag. These flags are passed at instance setup time,
+     * so include both server options and system variables for Postgres. Flags are
+     * specified with underscores, not hyphens.
+     * "value": The value of the flag. Booleans are set to **on** for true
+     * and **off** for false. This field must be omitted if the flag
+     * doesn't take a value.
+     * 
+ * + * map<string, string> database_flags = 13; + */ + @java.lang.Override + public boolean containsDatabaseFlags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetDatabaseFlags().getMap().containsKey(key); + } + + /** Use {@link #getDatabaseFlagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDatabaseFlags() { + return getDatabaseFlagsMap(); + } + /** * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * Database flags. Set at the instance level.
+     * They are copied from the primary instance on secondary instance creation.
+     * Flags that have restrictions default to the value at primary
+     * instance on read instances during creation. Read instances can set new
+     * flags or override existing flags that are relevant for reads, for example,
+     * for enabling columnar cache on a read instance. Flags set on read instance
+     * might or might not be present on the primary instance.
+     *
+     *
+     * This is a list of "key": "value" pairs.
+     * "key": The name of the flag. These flags are passed at instance setup time,
+     * so include both server options and system variables for Postgres. Flags are
+     * specified with underscores, not hyphens.
+     * "value": The value of the flag. Booleans are set to **on** for true
+     * and **off** for false. This field must be omitted if the flag
+     * doesn't take a value.
      * 
* - * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10; + * map<string, string> database_flags = 13; */ - public Builder mergeMachineConfig( - com.google.cloud.alloydb.v1alpha.Instance.MachineConfig value) { - if (machineConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && machineConfig_ != null - && machineConfig_ - != com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.getDefaultInstance()) { - getMachineConfigBuilder().mergeFrom(value); - } else { - machineConfig_ = value; - } - } else { - machineConfigBuilder_.mergeFrom(value); - } - if (machineConfig_ != null) { - bitField0_ |= 0x00000200; - onChanged(); - } - return this; + @java.lang.Override + public java.util.Map getDatabaseFlagsMap() { + return internalGetDatabaseFlags().getMap(); } /** * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * Database flags. Set at the instance level.
+     * They are copied from the primary instance on secondary instance creation.
+     * Flags that have restrictions default to the value at primary
+     * instance on read instances during creation. Read instances can set new
+     * flags or override existing flags that are relevant for reads, for example,
+     * for enabling columnar cache on a read instance. Flags set on read instance
+     * might or might not be present on the primary instance.
+     *
+     *
+     * This is a list of "key": "value" pairs.
+     * "key": The name of the flag. These flags are passed at instance setup time,
+     * so include both server options and system variables for Postgres. Flags are
+     * specified with underscores, not hyphens.
+     * "value": The value of the flag. Booleans are set to **on** for true
+     * and **off** for false. This field must be omitted if the flag
+     * doesn't take a value.
      * 
* - * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10; + * map<string, string> database_flags = 13; */ - public Builder clearMachineConfig() { - bitField0_ = (bitField0_ & ~0x00000200); - machineConfig_ = null; - if (machineConfigBuilder_ != null) { - machineConfigBuilder_.dispose(); - machineConfigBuilder_ = null; + @java.lang.Override + public /* nullable */ java.lang.String getDatabaseFlagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } - onChanged(); - return this; + java.util.Map map = internalGetDatabaseFlags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
-     * 
- * - * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10; - */ - public com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.Builder - getMachineConfigBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return internalGetMachineConfigFieldBuilder().getBuilder(); - } - - /** + * Database flags. Set at the instance level. + * They are copied from the primary instance on secondary instance creation. + * Flags that have restrictions default to the value at primary + * instance on read instances during creation. Read instances can set new + * flags or override existing flags that are relevant for reads, for example, + * for enabling columnar cache on a read instance. Flags set on read instance + * might or might not be present on the primary instance. * * - *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * This is a list of "key": "value" pairs.
+     * "key": The name of the flag. These flags are passed at instance setup time,
+     * so include both server options and system variables for Postgres. Flags are
+     * specified with underscores, not hyphens.
+     * "value": The value of the flag. Booleans are set to **on** for true
+     * and **off** for false. This field must be omitted if the flag
+     * doesn't take a value.
      * 
* - * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10; + * map<string, string> database_flags = 13; */ - public com.google.cloud.alloydb.v1alpha.Instance.MachineConfigOrBuilder - getMachineConfigOrBuilder() { - if (machineConfigBuilder_ != null) { - return machineConfigBuilder_.getMessageOrBuilder(); - } else { - return machineConfig_ == null - ? com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.getDefaultInstance() - : machineConfig_; + @java.lang.Override + public java.lang.String getDatabaseFlagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDatabaseFlags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return map.get(key); + } + + public Builder clearDatabaseFlags() { + bitField0_ = (bitField0_ & ~0x00001000); + internalGetMutableDatabaseFlags().getMutableMap().clear(); + return this; } /** * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * Database flags. Set at the instance level.
+     * They are copied from the primary instance on secondary instance creation.
+     * Flags that have restrictions default to the value at primary
+     * instance on read instances during creation. Read instances can set new
+     * flags or override existing flags that are relevant for reads, for example,
+     * for enabling columnar cache on a read instance. Flags set on read instance
+     * might or might not be present on the primary instance.
+     *
+     *
+     * This is a list of "key": "value" pairs.
+     * "key": The name of the flag. These flags are passed at instance setup time,
+     * so include both server options and system variables for Postgres. Flags are
+     * specified with underscores, not hyphens.
+     * "value": The value of the flag. Booleans are set to **on** for true
+     * and **off** for false. This field must be omitted if the flag
+     * doesn't take a value.
      * 
* - * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10; + * map<string, string> database_flags = 13; */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1alpha.Instance.MachineConfig, - com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.Builder, - com.google.cloud.alloydb.v1alpha.Instance.MachineConfigOrBuilder> - internalGetMachineConfigFieldBuilder() { - if (machineConfigBuilder_ == null) { - machineConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1alpha.Instance.MachineConfig, - com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.Builder, - com.google.cloud.alloydb.v1alpha.Instance.MachineConfigOrBuilder>( - getMachineConfig(), getParentForChildren(), isClean()); - machineConfig_ = null; + public Builder removeDatabaseFlags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - return machineConfigBuilder_; + internalGetMutableDatabaseFlags().getMutableMap().remove(key); + return this; } - private int availabilityType_ = 0; + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableDatabaseFlags() { + bitField0_ |= 0x00001000; + return internalGetMutableDatabaseFlags().getMutableMap(); + } /** * * *
-     * Availability type of an Instance.
-     * If empty, defaults to REGIONAL for primary instances.
-     * For read pools, availability_type is always UNSPECIFIED. Instances in the
-     * read pools are evenly distributed across available zones within the region
-     * (i.e. read pools with more than one node will have a node in at
-     * least two zones).
-     * 
+ * Database flags. Set at the instance level. + * They are copied from the primary instance on secondary instance creation. + * Flags that have restrictions default to the value at primary + * instance on read instances during creation. Read instances can set new + * flags or override existing flags that are relevant for reads, for example, + * for enabling columnar cache on a read instance. Flags set on read instance + * might or might not be present on the primary instance. * - * .google.cloud.alloydb.v1alpha.Instance.AvailabilityType availability_type = 11; * - * @return The enum numeric value on the wire for availabilityType. + * This is a list of "key": "value" pairs. + * "key": The name of the flag. These flags are passed at instance setup time, + * so include both server options and system variables for Postgres. Flags are + * specified with underscores, not hyphens. + * "value": The value of the flag. Booleans are set to **on** for true + * and **off** for false. This field must be omitted if the flag + * doesn't take a value. + * + * + * map<string, string> database_flags = 13; */ - @java.lang.Override - public int getAvailabilityTypeValue() { - return availabilityType_; + public Builder putDatabaseFlags(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableDatabaseFlags().getMutableMap().put(key, value); + bitField0_ |= 0x00001000; + return this; } /** * * *
-     * Availability type of an Instance.
-     * If empty, defaults to REGIONAL for primary instances.
-     * For read pools, availability_type is always UNSPECIFIED. Instances in the
-     * read pools are evenly distributed across available zones within the region
-     * (i.e. read pools with more than one node will have a node in at
-     * least two zones).
-     * 
+ * Database flags. Set at the instance level. + * They are copied from the primary instance on secondary instance creation. + * Flags that have restrictions default to the value at primary + * instance on read instances during creation. Read instances can set new + * flags or override existing flags that are relevant for reads, for example, + * for enabling columnar cache on a read instance. Flags set on read instance + * might or might not be present on the primary instance. * - * .google.cloud.alloydb.v1alpha.Instance.AvailabilityType availability_type = 11; * - * @param value The enum numeric value on the wire for availabilityType to set. - * @return This builder for chaining. + * This is a list of "key": "value" pairs. + * "key": The name of the flag. These flags are passed at instance setup time, + * so include both server options and system variables for Postgres. Flags are + * specified with underscores, not hyphens. + * "value": The value of the flag. Booleans are set to **on** for true + * and **off** for false. This field must be omitted if the flag + * doesn't take a value. + * + * + * map<string, string> database_flags = 13; */ - public Builder setAvailabilityTypeValue(int value) { - availabilityType_ = value; - bitField0_ |= 0x00000400; - onChanged(); + public Builder putAllDatabaseFlags(java.util.Map values) { + internalGetMutableDatabaseFlags().getMutableMap().putAll(values); + bitField0_ |= 0x00001000; return this; } + private com.google.cloud.alloydb.v1alpha.Instance.Node writableNode_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1alpha.Instance.Node, + com.google.cloud.alloydb.v1alpha.Instance.Node.Builder, + com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder> + writableNodeBuilder_; + /** * * *
-     * Availability type of an Instance.
-     * If empty, defaults to REGIONAL for primary instances.
-     * For read pools, availability_type is always UNSPECIFIED. Instances in the
-     * read pools are evenly distributed across available zones within the region
-     * (i.e. read pools with more than one node will have a node in at
-     * least two zones).
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* - * .google.cloud.alloydb.v1alpha.Instance.AvailabilityType availability_type = 11; + * + * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The availabilityType. + * @return Whether the writableNode field is set. */ - @java.lang.Override - public com.google.cloud.alloydb.v1alpha.Instance.AvailabilityType getAvailabilityType() { - com.google.cloud.alloydb.v1alpha.Instance.AvailabilityType result = - com.google.cloud.alloydb.v1alpha.Instance.AvailabilityType.forNumber(availabilityType_); - return result == null - ? com.google.cloud.alloydb.v1alpha.Instance.AvailabilityType.UNRECOGNIZED - : result; + public boolean hasWritableNode() { + return ((bitField0_ & 0x00002000) != 0); } /** * * *
-     * Availability type of an Instance.
-     * If empty, defaults to REGIONAL for primary instances.
-     * For read pools, availability_type is always UNSPECIFIED. Instances in the
-     * read pools are evenly distributed across available zones within the region
-     * (i.e. read pools with more than one node will have a node in at
-     * least two zones).
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* - * .google.cloud.alloydb.v1alpha.Instance.AvailabilityType availability_type = 11; + * + * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The availabilityType to set. - * @return This builder for chaining. + * @return The writableNode. */ - public Builder setAvailabilityType( - com.google.cloud.alloydb.v1alpha.Instance.AvailabilityType value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.alloydb.v1alpha.Instance.Node getWritableNode() { + if (writableNodeBuilder_ == null) { + return writableNode_ == null + ? com.google.cloud.alloydb.v1alpha.Instance.Node.getDefaultInstance() + : writableNode_; + } else { + return writableNodeBuilder_.getMessage(); } - bitField0_ |= 0x00000400; - availabilityType_ = value.getNumber(); - onChanged(); - return this; } /** * * *
-     * Availability type of an Instance.
-     * If empty, defaults to REGIONAL for primary instances.
-     * For read pools, availability_type is always UNSPECIFIED. Instances in the
-     * read pools are evenly distributed across available zones within the region
-     * (i.e. read pools with more than one node will have a node in at
-     * least two zones).
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* - * .google.cloud.alloydb.v1alpha.Instance.AvailabilityType availability_type = 11; - * - * @return This builder for chaining. + * + * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearAvailabilityType() { - bitField0_ = (bitField0_ & ~0x00000400); - availabilityType_ = 0; + public Builder setWritableNode(com.google.cloud.alloydb.v1alpha.Instance.Node value) { + if (writableNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + writableNode_ = value; + } else { + writableNodeBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; onChanged(); return this; } - private java.lang.Object gceZone_ = ""; - /** * * *
-     * The Compute Engine zone that the instance should serve from, per
-     * https://cloud.google.com/compute/docs/regions-zones
-     * This can ONLY be specified for ZONAL instances.
-     * If present for a REGIONAL instance, an error will be thrown.
-     * If this is absent for a ZONAL instance, instance is created in a random
-     * zone with available capacity.
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* - * string gce_zone = 12; - * - * @return The gceZone. + * + * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.lang.String getGceZone() { - java.lang.Object ref = gceZone_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gceZone_ = s; - return s; + public Builder setWritableNode( + com.google.cloud.alloydb.v1alpha.Instance.Node.Builder builderForValue) { + if (writableNodeBuilder_ == null) { + writableNode_ = builderForValue.build(); } else { - return (java.lang.String) ref; + writableNodeBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00002000; + onChanged(); + return this; } /** * * *
-     * The Compute Engine zone that the instance should serve from, per
-     * https://cloud.google.com/compute/docs/regions-zones
-     * This can ONLY be specified for ZONAL instances.
-     * If present for a REGIONAL instance, an error will be thrown.
-     * If this is absent for a ZONAL instance, instance is created in a random
-     * zone with available capacity.
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* - * string gce_zone = 12; - * - * @return The bytes for gceZone. + * + * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.protobuf.ByteString getGceZoneBytes() { - java.lang.Object ref = gceZone_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gceZone_ = b; - return b; + public Builder mergeWritableNode(com.google.cloud.alloydb.v1alpha.Instance.Node value) { + if (writableNodeBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && writableNode_ != null + && writableNode_ + != com.google.cloud.alloydb.v1alpha.Instance.Node.getDefaultInstance()) { + getWritableNodeBuilder().mergeFrom(value); + } else { + writableNode_ = value; + } } else { - return (com.google.protobuf.ByteString) ref; + writableNodeBuilder_.mergeFrom(value); + } + if (writableNode_ != null) { + bitField0_ |= 0x00002000; + onChanged(); } + return this; } /** * * *
-     * The Compute Engine zone that the instance should serve from, per
-     * https://cloud.google.com/compute/docs/regions-zones
-     * This can ONLY be specified for ZONAL instances.
-     * If present for a REGIONAL instance, an error will be thrown.
-     * If this is absent for a ZONAL instance, instance is created in a random
-     * zone with available capacity.
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* - * string gce_zone = 12; - * - * @param value The gceZone to set. - * @return This builder for chaining. + * + * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setGceZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearWritableNode() { + bitField0_ = (bitField0_ & ~0x00002000); + writableNode_ = null; + if (writableNodeBuilder_ != null) { + writableNodeBuilder_.dispose(); + writableNodeBuilder_ = null; } - gceZone_ = value; - bitField0_ |= 0x00000800; onChanged(); return this; } @@ -24456,300 +27775,194 @@ public Builder setGceZone(java.lang.String value) { * * *
-     * The Compute Engine zone that the instance should serve from, per
-     * https://cloud.google.com/compute/docs/regions-zones
-     * This can ONLY be specified for ZONAL instances.
-     * If present for a REGIONAL instance, an error will be thrown.
-     * If this is absent for a ZONAL instance, instance is created in a random
-     * zone with available capacity.
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* - * string gce_zone = 12; - * - * @return This builder for chaining. + * + * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearGceZone() { - gceZone_ = getDefaultInstance().getGceZone(); - bitField0_ = (bitField0_ & ~0x00000800); + public com.google.cloud.alloydb.v1alpha.Instance.Node.Builder getWritableNodeBuilder() { + bitField0_ |= 0x00002000; onChanged(); - return this; + return internalGetWritableNodeFieldBuilder().getBuilder(); } /** * * *
-     * The Compute Engine zone that the instance should serve from, per
-     * https://cloud.google.com/compute/docs/regions-zones
-     * This can ONLY be specified for ZONAL instances.
-     * If present for a REGIONAL instance, an error will be thrown.
-     * If this is absent for a ZONAL instance, instance is created in a random
-     * zone with available capacity.
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* - * string gce_zone = 12; - * - * @param value The bytes for gceZone to set. - * @return This builder for chaining. + * + * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setGceZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - gceZone_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - - private com.google.protobuf.MapField databaseFlags_; - - private com.google.protobuf.MapField - internalGetDatabaseFlags() { - if (databaseFlags_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DatabaseFlagsDefaultEntryHolder.defaultEntry); - } - return databaseFlags_; - } - - private com.google.protobuf.MapField - internalGetMutableDatabaseFlags() { - if (databaseFlags_ == null) { - databaseFlags_ = - com.google.protobuf.MapField.newMapField(DatabaseFlagsDefaultEntryHolder.defaultEntry); - } - if (!databaseFlags_.isMutable()) { - databaseFlags_ = databaseFlags_.copy(); + public com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder getWritableNodeOrBuilder() { + if (writableNodeBuilder_ != null) { + return writableNodeBuilder_.getMessageOrBuilder(); + } else { + return writableNode_ == null + ? com.google.cloud.alloydb.v1alpha.Instance.Node.getDefaultInstance() + : writableNode_; } - bitField0_ |= 0x00001000; - onChanged(); - return databaseFlags_; - } - - public int getDatabaseFlagsCount() { - return internalGetDatabaseFlags().getMap().size(); } /** * * *
-     * Database flags. Set at the instance level.
-     * They are copied from the primary instance on secondary instance creation.
-     * Flags that have restrictions default to the value at primary
-     * instance on read instances during creation. Read instances can set new
-     * flags or override existing flags that are relevant for reads, for example,
-     * for enabling columnar cache on a read instance. Flags set on read instance
-     * might or might not be present on the primary instance.
-     *
-     *
-     * This is a list of "key": "value" pairs.
-     * "key": The name of the flag. These flags are passed at instance setup time,
-     * so include both server options and system variables for Postgres. Flags are
-     * specified with underscores, not hyphens.
-     * "value": The value of the flag. Booleans are set to **on** for true
-     * and **off** for false. This field must be omitted if the flag
-     * doesn't take a value.
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* - * map<string, string> database_flags = 13; + * + * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsDatabaseFlags(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1alpha.Instance.Node, + com.google.cloud.alloydb.v1alpha.Instance.Node.Builder, + com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder> + internalGetWritableNodeFieldBuilder() { + if (writableNodeBuilder_ == null) { + writableNodeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1alpha.Instance.Node, + com.google.cloud.alloydb.v1alpha.Instance.Node.Builder, + com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder>( + getWritableNode(), getParentForChildren(), isClean()); + writableNode_ = null; } - return internalGetDatabaseFlags().getMap().containsKey(key); + return writableNodeBuilder_; } - /** Use {@link #getDatabaseFlagsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getDatabaseFlags() { - return getDatabaseFlagsMap(); + private java.util.List nodes_ = + java.util.Collections.emptyList(); + + private void ensureNodesIsMutable() { + if (!((bitField0_ & 0x00004000) != 0)) { + nodes_ = new java.util.ArrayList(nodes_); + bitField0_ |= 0x00004000; + } } + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.alloydb.v1alpha.Instance.Node, + com.google.cloud.alloydb.v1alpha.Instance.Node.Builder, + com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder> + nodesBuilder_; + /** * * *
-     * Database flags. Set at the instance level.
-     * They are copied from the primary instance on secondary instance creation.
-     * Flags that have restrictions default to the value at primary
-     * instance on read instances during creation. Read instances can set new
-     * flags or override existing flags that are relevant for reads, for example,
-     * for enabling columnar cache on a read instance. Flags set on read instance
-     * might or might not be present on the primary instance.
-     *
-     *
-     * This is a list of "key": "value" pairs.
-     * "key": The name of the flag. These flags are passed at instance setup time,
-     * so include both server options and system variables for Postgres. Flags are
-     * specified with underscores, not hyphens.
-     * "value": The value of the flag. Booleans are set to **on** for true
-     * and **off** for false. This field must be omitted if the flag
-     * doesn't take a value.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * map<string, string> database_flags = 13; + * + * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public java.util.Map getDatabaseFlagsMap() { - return internalGetDatabaseFlags().getMap(); + public java.util.List getNodesList() { + if (nodesBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodes_); + } else { + return nodesBuilder_.getMessageList(); + } } /** * * *
-     * Database flags. Set at the instance level.
-     * They are copied from the primary instance on secondary instance creation.
-     * Flags that have restrictions default to the value at primary
-     * instance on read instances during creation. Read instances can set new
-     * flags or override existing flags that are relevant for reads, for example,
-     * for enabling columnar cache on a read instance. Flags set on read instance
-     * might or might not be present on the primary instance.
-     *
-     *
-     * This is a list of "key": "value" pairs.
-     * "key": The name of the flag. These flags are passed at instance setup time,
-     * so include both server options and system variables for Postgres. Flags are
-     * specified with underscores, not hyphens.
-     * "value": The value of the flag. Booleans are set to **on** for true
-     * and **off** for false. This field must be omitted if the flag
-     * doesn't take a value.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * map<string, string> database_flags = 13; + * + * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public /* nullable */ java.lang.String getDatabaseFlagsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public int getNodesCount() { + if (nodesBuilder_ == null) { + return nodes_.size(); + } else { + return nodesBuilder_.getCount(); } - java.util.Map map = internalGetDatabaseFlags().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
-     * Database flags. Set at the instance level.
-     * They are copied from the primary instance on secondary instance creation.
-     * Flags that have restrictions default to the value at primary
-     * instance on read instances during creation. Read instances can set new
-     * flags or override existing flags that are relevant for reads, for example,
-     * for enabling columnar cache on a read instance. Flags set on read instance
-     * might or might not be present on the primary instance.
-     *
-     *
-     * This is a list of "key": "value" pairs.
-     * "key": The name of the flag. These flags are passed at instance setup time,
-     * so include both server options and system variables for Postgres. Flags are
-     * specified with underscores, not hyphens.
-     * "value": The value of the flag. Booleans are set to **on** for true
-     * and **off** for false. This field must be omitted if the flag
-     * doesn't take a value.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * map<string, string> database_flags = 13; + * + * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public java.lang.String getDatabaseFlagsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetDatabaseFlags().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + public com.google.cloud.alloydb.v1alpha.Instance.Node getNodes(int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); + } else { + return nodesBuilder_.getMessage(index); } - return map.get(key); - } - - public Builder clearDatabaseFlags() { - bitField0_ = (bitField0_ & ~0x00001000); - internalGetMutableDatabaseFlags().getMutableMap().clear(); - return this; } /** * * *
-     * Database flags. Set at the instance level.
-     * They are copied from the primary instance on secondary instance creation.
-     * Flags that have restrictions default to the value at primary
-     * instance on read instances during creation. Read instances can set new
-     * flags or override existing flags that are relevant for reads, for example,
-     * for enabling columnar cache on a read instance. Flags set on read instance
-     * might or might not be present on the primary instance.
-     *
-     *
-     * This is a list of "key": "value" pairs.
-     * "key": The name of the flag. These flags are passed at instance setup time,
-     * so include both server options and system variables for Postgres. Flags are
-     * specified with underscores, not hyphens.
-     * "value": The value of the flag. Booleans are set to **on** for true
-     * and **off** for false. This field must be omitted if the flag
-     * doesn't take a value.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * map<string, string> database_flags = 13; + * + * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder removeDatabaseFlags(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setNodes(int index, com.google.cloud.alloydb.v1alpha.Instance.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.set(index, value); + onChanged(); + } else { + nodesBuilder_.setMessage(index, value); } - internalGetMutableDatabaseFlags().getMutableMap().remove(key); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableDatabaseFlags() { - bitField0_ |= 0x00001000; - return internalGetMutableDatabaseFlags().getMutableMap(); - } - /** * * *
-     * Database flags. Set at the instance level.
-     * They are copied from the primary instance on secondary instance creation.
-     * Flags that have restrictions default to the value at primary
-     * instance on read instances during creation. Read instances can set new
-     * flags or override existing flags that are relevant for reads, for example,
-     * for enabling columnar cache on a read instance. Flags set on read instance
-     * might or might not be present on the primary instance.
-     *
-     *
-     * This is a list of "key": "value" pairs.
-     * "key": The name of the flag. These flags are passed at instance setup time,
-     * so include both server options and system variables for Postgres. Flags are
-     * specified with underscores, not hyphens.
-     * "value": The value of the flag. Booleans are set to **on** for true
-     * and **off** for false. This field must be omitted if the flag
-     * doesn't take a value.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * map<string, string> database_flags = 13; + * + * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder putDatabaseFlags(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); + public Builder setNodes( + int index, com.google.cloud.alloydb.v1alpha.Instance.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.set(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.setMessage(index, builderForValue.build()); } - internalGetMutableDatabaseFlags().getMutableMap().put(key, value); - bitField0_ |= 0x00001000; return this; } @@ -24757,104 +27970,99 @@ public Builder putDatabaseFlags(java.lang.String key, java.lang.String value) { * * *
-     * Database flags. Set at the instance level.
-     * They are copied from the primary instance on secondary instance creation.
-     * Flags that have restrictions default to the value at primary
-     * instance on read instances during creation. Read instances can set new
-     * flags or override existing flags that are relevant for reads, for example,
-     * for enabling columnar cache on a read instance. Flags set on read instance
-     * might or might not be present on the primary instance.
-     *
-     *
-     * This is a list of "key": "value" pairs.
-     * "key": The name of the flag. These flags are passed at instance setup time,
-     * so include both server options and system variables for Postgres. Flags are
-     * specified with underscores, not hyphens.
-     * "value": The value of the flag. Booleans are set to **on** for true
-     * and **off** for false. This field must be omitted if the flag
-     * doesn't take a value.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * map<string, string> database_flags = 13; + * + * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder putAllDatabaseFlags(java.util.Map values) { - internalGetMutableDatabaseFlags().getMutableMap().putAll(values); - bitField0_ |= 0x00001000; + public Builder addNodes(com.google.cloud.alloydb.v1alpha.Instance.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(value); + onChanged(); + } else { + nodesBuilder_.addMessage(value); + } return this; } - private com.google.cloud.alloydb.v1alpha.Instance.Node writableNode_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1alpha.Instance.Node, - com.google.cloud.alloydb.v1alpha.Instance.Node.Builder, - com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder> - writableNodeBuilder_; - /** * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the writableNode field is set. */ - public boolean hasWritableNode() { - return ((bitField0_ & 0x00002000) != 0); + public Builder addNodes(int index, com.google.cloud.alloydb.v1alpha.Instance.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(index, value); + onChanged(); + } else { + nodesBuilder_.addMessage(index, value); + } + return this; } /** * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The writableNode. */ - public com.google.cloud.alloydb.v1alpha.Instance.Node getWritableNode() { - if (writableNodeBuilder_ == null) { - return writableNode_ == null - ? com.google.cloud.alloydb.v1alpha.Instance.Node.getDefaultInstance() - : writableNode_; + public Builder addNodes( + com.google.cloud.alloydb.v1alpha.Instance.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(builderForValue.build()); + onChanged(); } else { - return writableNodeBuilder_.getMessage(); + nodesBuilder_.addMessage(builderForValue.build()); } + return this; } /** * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setWritableNode(com.google.cloud.alloydb.v1alpha.Instance.Node value) { - if (writableNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - writableNode_ = value; + public Builder addNodes( + int index, com.google.cloud.alloydb.v1alpha.Instance.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(index, builderForValue.build()); + onChanged(); } else { - writableNodeBuilder_.setMessage(value); + nodesBuilder_.addMessage(index, builderForValue.build()); } - bitField0_ |= 0x00002000; - onChanged(); return this; } @@ -24862,23 +28070,23 @@ public Builder setWritableNode(com.google.cloud.alloydb.v1alpha.Instance.Node va * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setWritableNode( - com.google.cloud.alloydb.v1alpha.Instance.Node.Builder builderForValue) { - if (writableNodeBuilder_ == null) { - writableNode_ = builderForValue.build(); + public Builder addAllNodes( + java.lang.Iterable values) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_); + onChanged(); } else { - writableNodeBuilder_.setMessage(builderForValue.build()); + nodesBuilder_.addAllMessages(values); } - bitField0_ |= 0x00002000; - onChanged(); return this; } @@ -24886,30 +28094,21 @@ public Builder setWritableNode( * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeWritableNode(com.google.cloud.alloydb.v1alpha.Instance.Node value) { - if (writableNodeBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) - && writableNode_ != null - && writableNode_ - != com.google.cloud.alloydb.v1alpha.Instance.Node.getDefaultInstance()) { - getWritableNodeBuilder().mergeFrom(value); - } else { - writableNode_ = value; - } - } else { - writableNodeBuilder_.mergeFrom(value); - } - if (writableNode_ != null) { - bitField0_ |= 0x00002000; + public Builder clearNodes() { + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); + } else { + nodesBuilder_.clear(); } return this; } @@ -24918,22 +28117,22 @@ public Builder mergeWritableNode(com.google.cloud.alloydb.v1alpha.Instance.Node * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearWritableNode() { - bitField0_ = (bitField0_ & ~0x00002000); - writableNode_ = null; - if (writableNodeBuilder_ != null) { - writableNodeBuilder_.dispose(); - writableNodeBuilder_ = null; + public Builder removeNodes(int index) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.remove(index); + onChanged(); + } else { + nodesBuilder_.remove(index); } - onChanged(); return this; } @@ -24941,39 +28140,35 @@ public Builder clearWritableNode() { * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.alloydb.v1alpha.Instance.Node.Builder getWritableNodeBuilder() { - bitField0_ |= 0x00002000; - onChanged(); - return internalGetWritableNodeFieldBuilder().getBuilder(); + public com.google.cloud.alloydb.v1alpha.Instance.Node.Builder getNodesBuilder(int index) { + return internalGetNodesFieldBuilder().getBuilder(index); } /** * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder getWritableNodeOrBuilder() { - if (writableNodeBuilder_ != null) { - return writableNodeBuilder_.getMessageOrBuilder(); + public com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder getNodesOrBuilder(int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); } else { - return writableNode_ == null - ? com.google.cloud.alloydb.v1alpha.Instance.Node.getDefaultInstance() - : writableNode_; + return nodesBuilder_.getMessageOrBuilder(index); } } @@ -24981,47 +28176,40 @@ public com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder getWritableNodeOr * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1alpha.Instance.Node, - com.google.cloud.alloydb.v1alpha.Instance.Node.Builder, - com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder> - internalGetWritableNodeFieldBuilder() { - if (writableNodeBuilder_ == null) { - writableNodeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1alpha.Instance.Node, - com.google.cloud.alloydb.v1alpha.Instance.Node.Builder, - com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder>( - getWritableNode(), getParentForChildren(), isClean()); - writableNode_ = null; + public java.util.List + getNodesOrBuilderList() { + if (nodesBuilder_ != null) { + return nodesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodes_); } - return writableNodeBuilder_; } - private java.util.List nodes_ = - java.util.Collections.emptyList(); - - private void ensureNodesIsMutable() { - if (!((bitField0_ & 0x00004000) != 0)) { - nodes_ = new java.util.ArrayList(nodes_); - bitField0_ |= 0x00004000; - } + /** + * + * + *
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.alloydb.v1alpha.Instance.Node.Builder addNodesBuilder() { + return internalGetNodesFieldBuilder() + .addBuilder(com.google.cloud.alloydb.v1alpha.Instance.Node.getDefaultInstance()); } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.alloydb.v1alpha.Instance.Node, - com.google.cloud.alloydb.v1alpha.Instance.Node.Builder, - com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder> - nodesBuilder_; - /** * * @@ -25034,12 +28222,9 @@ private void ensureNodesIsMutable() { * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List getNodesList() { - if (nodesBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodes_); - } else { - return nodesBuilder_.getMessageList(); - } + public com.google.cloud.alloydb.v1alpha.Instance.Node.Builder addNodesBuilder(int index) { + return internalGetNodesFieldBuilder() + .addBuilder(index, com.google.cloud.alloydb.v1alpha.Instance.Node.getDefaultInstance()); } /** @@ -25054,31 +28239,75 @@ public java.util.List getNodesLi * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public int getNodesCount() { + public java.util.List + getNodesBuilderList() { + return internalGetNodesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.alloydb.v1alpha.Instance.Node, + com.google.cloud.alloydb.v1alpha.Instance.Node.Builder, + com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder> + internalGetNodesFieldBuilder() { if (nodesBuilder_ == null) { - return nodes_.size(); - } else { - return nodesBuilder_.getCount(); + nodesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.alloydb.v1alpha.Instance.Node, + com.google.cloud.alloydb.v1alpha.Instance.Node.Builder, + com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder>( + nodes_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); + nodes_ = null; } + return nodesBuilder_; } + private com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig + queryInsightsConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig, + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig.Builder, + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfigOrBuilder> + queryInsightsConfigBuilder_; + /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Configuration for query insights.
      * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21; * + * + * @return Whether the queryInsightsConfig field is set. */ - public com.google.cloud.alloydb.v1alpha.Instance.Node getNodes(int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); + public boolean hasQueryInsightsConfig() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
+     * Configuration for query insights.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * + * + * @return The queryInsightsConfig. + */ + public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig + getQueryInsightsConfig() { + if (queryInsightsConfigBuilder_ == null) { + return queryInsightsConfig_ == null + ? com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig + .getDefaultInstance() + : queryInsightsConfig_; } else { - return nodesBuilder_.getMessage(index); + return queryInsightsConfigBuilder_.getMessage(); } } @@ -25086,25 +28315,25 @@ public com.google.cloud.alloydb.v1alpha.Instance.Node getNodes(int index) { * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Configuration for query insights.
      * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21; * */ - public Builder setNodes(int index, com.google.cloud.alloydb.v1alpha.Instance.Node value) { - if (nodesBuilder_ == null) { + public Builder setQueryInsightsConfig( + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig value) { + if (queryInsightsConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureNodesIsMutable(); - nodes_.set(index, value); - onChanged(); + queryInsightsConfig_ = value; } else { - nodesBuilder_.setMessage(index, value); + queryInsightsConfigBuilder_.setMessage(value); } + bitField0_ |= 0x00008000; + onChanged(); return this; } @@ -25112,23 +28341,23 @@ public Builder setNodes(int index, com.google.cloud.alloydb.v1alpha.Instance.Nod * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Configuration for query insights.
      * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21; * */ - public Builder setNodes( - int index, com.google.cloud.alloydb.v1alpha.Instance.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.set(index, builderForValue.build()); - onChanged(); + public Builder setQueryInsightsConfig( + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig.Builder + builderForValue) { + if (queryInsightsConfigBuilder_ == null) { + queryInsightsConfig_ = builderForValue.build(); } else { - nodesBuilder_.setMessage(index, builderForValue.build()); + queryInsightsConfigBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00008000; + onChanged(); return this; } @@ -25136,24 +28365,31 @@ public Builder setNodes( * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Configuration for query insights.
      * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21; * */ - public Builder addNodes(com.google.cloud.alloydb.v1alpha.Instance.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeQueryInsightsConfig( + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig value) { + if (queryInsightsConfigBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && queryInsightsConfig_ != null + && queryInsightsConfig_ + != com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig + .getDefaultInstance()) { + getQueryInsightsConfigBuilder().mergeFrom(value); + } else { + queryInsightsConfig_ = value; } - ensureNodesIsMutable(); - nodes_.add(value); - onChanged(); } else { - nodesBuilder_.addMessage(value); + queryInsightsConfigBuilder_.mergeFrom(value); + } + if (queryInsightsConfig_ != null) { + bitField0_ |= 0x00008000; + onChanged(); } return this; } @@ -25162,25 +28398,21 @@ public Builder addNodes(com.google.cloud.alloydb.v1alpha.Instance.Node value) { * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Configuration for query insights.
      * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21; * */ - public Builder addNodes(int index, com.google.cloud.alloydb.v1alpha.Instance.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(index, value); - onChanged(); - } else { - nodesBuilder_.addMessage(index, value); + public Builder clearQueryInsightsConfig() { + bitField0_ = (bitField0_ & ~0x00008000); + queryInsightsConfig_ = null; + if (queryInsightsConfigBuilder_ != null) { + queryInsightsConfigBuilder_.dispose(); + queryInsightsConfigBuilder_ = null; } + onChanged(); return this; } @@ -25188,117 +28420,152 @@ public Builder addNodes(int index, com.google.cloud.alloydb.v1alpha.Instance.Nod * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Configuration for query insights.
      * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21; * */ - public Builder addNodes( - com.google.cloud.alloydb.v1alpha.Instance.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(builderForValue.build()); - } - return this; + public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig.Builder + getQueryInsightsConfigBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return internalGetQueryInsightsConfigFieldBuilder().getBuilder(); } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Configuration for query insights.
      * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21; * */ - public Builder addNodes( - int index, com.google.cloud.alloydb.v1alpha.Instance.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(index, builderForValue.build()); - onChanged(); + public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfigOrBuilder + getQueryInsightsConfigOrBuilder() { + if (queryInsightsConfigBuilder_ != null) { + return queryInsightsConfigBuilder_.getMessageOrBuilder(); } else { - nodesBuilder_.addMessage(index, builderForValue.build()); + return queryInsightsConfig_ == null + ? com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig + .getDefaultInstance() + : queryInsightsConfig_; } - return this; } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Configuration for query insights.
      * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21; * */ - public Builder addAllNodes( - java.lang.Iterable values) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_); - onChanged(); - } else { - nodesBuilder_.addAllMessages(values); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig, + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig.Builder, + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfigOrBuilder> + internalGetQueryInsightsConfigFieldBuilder() { + if (queryInsightsConfigBuilder_ == null) { + queryInsightsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig, + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig.Builder, + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfigOrBuilder>( + getQueryInsightsConfig(), getParentForChildren(), isClean()); + queryInsightsConfig_ = null; } - return this; + return queryInsightsConfigBuilder_; } + private com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo queryInsightsInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo, + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo.Builder, + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfoOrBuilder> + queryInsightsInfoBuilder_; + /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the queryInsightsInfo field is set. + */ + public boolean hasQueryInsightsInfo() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
      * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The queryInsightsInfo. */ - public Builder clearNodes() { - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); - onChanged(); + public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo + getQueryInsightsInfo() { + if (queryInsightsInfoBuilder_ == null) { + return queryInsightsInfo_ == null + ? com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo + .getDefaultInstance() + : queryInsightsInfo_; } else { - nodesBuilder_.clear(); + return queryInsightsInfoBuilder_.getMessage(); } - return this; } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
      * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder removeNodes(int index) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.remove(index); - onChanged(); + public Builder setQueryInsightsInfo( + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo value) { + if (queryInsightsInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queryInsightsInfo_ = value; } else { - nodesBuilder_.remove(index); + queryInsightsInfoBuilder_.setMessage(value); } + bitField0_ |= 0x00010000; + onChanged(); return this; } @@ -25306,174 +28573,215 @@ public Builder removeNodes(int index) { * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
      * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.alloydb.v1alpha.Instance.Node.Builder getNodesBuilder(int index) { - return internalGetNodesFieldBuilder().getBuilder(index); + public Builder setQueryInsightsInfo( + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo.Builder + builderForValue) { + if (queryInsightsInfoBuilder_ == null) { + queryInsightsInfo_ = builderForValue.build(); + } else { + queryInsightsInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
      * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder getNodesOrBuilder(int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); + public Builder mergeQueryInsightsInfo( + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo value) { + if (queryInsightsInfoBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && queryInsightsInfo_ != null + && queryInsightsInfo_ + != com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo + .getDefaultInstance()) { + getQueryInsightsInfoBuilder().mergeFrom(value); + } else { + queryInsightsInfo_ = value; + } } else { - return nodesBuilder_.getMessageOrBuilder(index); + queryInsightsInfoBuilder_.mergeFrom(value); + } + if (queryInsightsInfo_ != null) { + bitField0_ |= 0x00010000; + onChanged(); } + return this; } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
      * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List - getNodesOrBuilderList() { - if (nodesBuilder_ != null) { - return nodesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodes_); + public Builder clearQueryInsightsInfo() { + bitField0_ = (bitField0_ & ~0x00010000); + queryInsightsInfo_ = null; + if (queryInsightsInfoBuilder_ != null) { + queryInsightsInfoBuilder_.dispose(); + queryInsightsInfoBuilder_ = null; } + onChanged(); + return this; } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
      * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.alloydb.v1alpha.Instance.Node.Builder addNodesBuilder() { - return internalGetNodesFieldBuilder() - .addBuilder(com.google.cloud.alloydb.v1alpha.Instance.Node.getDefaultInstance()); + public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo.Builder + getQueryInsightsInfoBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return internalGetQueryInsightsInfoFieldBuilder().getBuilder(); } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
      * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.alloydb.v1alpha.Instance.Node.Builder addNodesBuilder(int index) { - return internalGetNodesFieldBuilder() - .addBuilder(index, com.google.cloud.alloydb.v1alpha.Instance.Node.getDefaultInstance()); + public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfoOrBuilder + getQueryInsightsInfoOrBuilder() { + if (queryInsightsInfoBuilder_ != null) { + return queryInsightsInfoBuilder_.getMessageOrBuilder(); + } else { + return queryInsightsInfo_ == null + ? com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo + .getDefaultInstance() + : queryInsightsInfo_; + } } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
      * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List - getNodesBuilderList() { - return internalGetNodesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.alloydb.v1alpha.Instance.Node, - com.google.cloud.alloydb.v1alpha.Instance.Node.Builder, - com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder> - internalGetNodesFieldBuilder() { - if (nodesBuilder_ == null) { - nodesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.alloydb.v1alpha.Instance.Node, - com.google.cloud.alloydb.v1alpha.Instance.Node.Builder, - com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder>( - nodes_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); - nodes_ = null; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo, + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo.Builder, + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfoOrBuilder> + internalGetQueryInsightsInfoFieldBuilder() { + if (queryInsightsInfoBuilder_ == null) { + queryInsightsInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo, + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo.Builder, + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfoOrBuilder>( + getQueryInsightsInfo(), getParentForChildren(), isClean()); + queryInsightsInfo_ = null; } - return nodesBuilder_; + return queryInsightsInfoBuilder_; } - private com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig - queryInsightsConfig_; + private com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig + observabilityConfig_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig, - com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig.Builder, - com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfigOrBuilder> - queryInsightsConfigBuilder_; + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig, + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.Builder, + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfigOrBuilder> + observabilityConfigBuilder_; /** * * *
-     * Configuration for query insights.
+     * Configuration for observability.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26; * * - * @return Whether the queryInsightsConfig field is set. + * @return Whether the observabilityConfig field is set. */ - public boolean hasQueryInsightsConfig() { - return ((bitField0_ & 0x00008000) != 0); + public boolean hasObservabilityConfig() { + return ((bitField0_ & 0x00020000) != 0); } /** * * *
-     * Configuration for query insights.
+     * Configuration for observability.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26; * * - * @return The queryInsightsConfig. + * @return The observabilityConfig. */ - public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig - getQueryInsightsConfig() { - if (queryInsightsConfigBuilder_ == null) { - return queryInsightsConfig_ == null - ? com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig + public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig + getObservabilityConfig() { + if (observabilityConfigBuilder_ == null) { + return observabilityConfig_ == null + ? com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig .getDefaultInstance() - : queryInsightsConfig_; + : observabilityConfig_; } else { - return queryInsightsConfigBuilder_.getMessage(); + return observabilityConfigBuilder_.getMessage(); } } @@ -25481,24 +28789,24 @@ public boolean hasQueryInsightsConfig() { * * *
-     * Configuration for query insights.
+     * Configuration for observability.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26; * */ - public Builder setQueryInsightsConfig( - com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig value) { - if (queryInsightsConfigBuilder_ == null) { + public Builder setObservabilityConfig( + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig value) { + if (observabilityConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - queryInsightsConfig_ = value; + observabilityConfig_ = value; } else { - queryInsightsConfigBuilder_.setMessage(value); + observabilityConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -25507,22 +28815,22 @@ public Builder setQueryInsightsConfig( * * *
-     * Configuration for query insights.
+     * Configuration for observability.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26; * */ - public Builder setQueryInsightsConfig( - com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig.Builder + public Builder setObservabilityConfig( + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.Builder builderForValue) { - if (queryInsightsConfigBuilder_ == null) { - queryInsightsConfig_ = builderForValue.build(); + if (observabilityConfigBuilder_ == null) { + observabilityConfig_ = builderForValue.build(); } else { - queryInsightsConfigBuilder_.setMessage(builderForValue.build()); + observabilityConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -25531,30 +28839,30 @@ public Builder setQueryInsightsConfig( * * *
-     * Configuration for query insights.
+     * Configuration for observability.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26; * */ - public Builder mergeQueryInsightsConfig( - com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig value) { - if (queryInsightsConfigBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) - && queryInsightsConfig_ != null - && queryInsightsConfig_ - != com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig + public Builder mergeObservabilityConfig( + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig value) { + if (observabilityConfigBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && observabilityConfig_ != null + && observabilityConfig_ + != com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig .getDefaultInstance()) { - getQueryInsightsConfigBuilder().mergeFrom(value); + getObservabilityConfigBuilder().mergeFrom(value); } else { - queryInsightsConfig_ = value; + observabilityConfig_ = value; } } else { - queryInsightsConfigBuilder_.mergeFrom(value); + observabilityConfigBuilder_.mergeFrom(value); } - if (queryInsightsConfig_ != null) { - bitField0_ |= 0x00008000; + if (observabilityConfig_ != null) { + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -25564,19 +28872,19 @@ public Builder mergeQueryInsightsConfig( * * *
-     * Configuration for query insights.
+     * Configuration for observability.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26; * */ - public Builder clearQueryInsightsConfig() { - bitField0_ = (bitField0_ & ~0x00008000); - queryInsightsConfig_ = null; - if (queryInsightsConfigBuilder_ != null) { - queryInsightsConfigBuilder_.dispose(); - queryInsightsConfigBuilder_ = null; + public Builder clearObservabilityConfig() { + bitField0_ = (bitField0_ & ~0x00020000); + observabilityConfig_ = null; + if (observabilityConfigBuilder_ != null) { + observabilityConfigBuilder_.dispose(); + observabilityConfigBuilder_ = null; } onChanged(); return this; @@ -25586,40 +28894,40 @@ public Builder clearQueryInsightsConfig() { * * *
-     * Configuration for query insights.
+     * Configuration for observability.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26; * */ - public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig.Builder - getQueryInsightsConfigBuilder() { - bitField0_ |= 0x00008000; + public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.Builder + getObservabilityConfigBuilder() { + bitField0_ |= 0x00020000; onChanged(); - return internalGetQueryInsightsConfigFieldBuilder().getBuilder(); + return internalGetObservabilityConfigFieldBuilder().getBuilder(); } /** * * *
-     * Configuration for query insights.
+     * Configuration for observability.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26; * */ - public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfigOrBuilder - getQueryInsightsConfigOrBuilder() { - if (queryInsightsConfigBuilder_ != null) { - return queryInsightsConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfigOrBuilder + getObservabilityConfigOrBuilder() { + if (observabilityConfigBuilder_ != null) { + return observabilityConfigBuilder_.getMessageOrBuilder(); } else { - return queryInsightsConfig_ == null - ? com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig + return observabilityConfig_ == null + ? com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig .getDefaultInstance() - : queryInsightsConfig_; + : observabilityConfig_; } } @@ -25627,77 +28935,83 @@ public Builder clearQueryInsightsConfig() { * * *
-     * Configuration for query insights.
+     * Configuration for observability.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig, - com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig.Builder, - com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfigOrBuilder> - internalGetQueryInsightsConfigFieldBuilder() { - if (queryInsightsConfigBuilder_ == null) { - queryInsightsConfigBuilder_ = + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig, + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.Builder, + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfigOrBuilder> + internalGetObservabilityConfigFieldBuilder() { + if (observabilityConfigBuilder_ == null) { + observabilityConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig, - com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig.Builder, - com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfigOrBuilder>( - getQueryInsightsConfig(), getParentForChildren(), isClean()); - queryInsightsConfig_ = null; + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig, + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.Builder, + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfigOrBuilder>( + getObservabilityConfig(), getParentForChildren(), isClean()); + observabilityConfig_ = null; } - return queryInsightsConfigBuilder_; + return observabilityConfigBuilder_; } - private com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig - observabilityConfig_; + private com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo + observabilityInstanceInfo_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig, - com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.Builder, - com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfigOrBuilder> - observabilityConfigBuilder_; + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo, + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.Builder, + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfoOrBuilder> + observabilityInstanceInfoBuilder_; /** * * *
-     * Configuration for observability.
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the observabilityConfig field is set. + * @return Whether the observabilityInstanceInfo field is set. */ - public boolean hasObservabilityConfig() { - return ((bitField0_ & 0x00010000) != 0); + public boolean hasObservabilityInstanceInfo() { + return ((bitField0_ & 0x00040000) != 0); } /** * * *
-     * Configuration for observability.
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The observabilityConfig. + * @return The observabilityInstanceInfo. */ - public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig - getObservabilityConfig() { - if (observabilityConfigBuilder_ == null) { - return observabilityConfig_ == null - ? com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig + public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo + getObservabilityInstanceInfo() { + if (observabilityInstanceInfoBuilder_ == null) { + return observabilityInstanceInfo_ == null + ? com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo .getDefaultInstance() - : observabilityConfig_; + : observabilityInstanceInfo_; } else { - return observabilityConfigBuilder_.getMessage(); + return observabilityInstanceInfoBuilder_.getMessage(); } } @@ -25705,24 +29019,27 @@ public boolean hasObservabilityConfig() { * * *
-     * Configuration for observability.
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setObservabilityConfig( - com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig value) { - if (observabilityConfigBuilder_ == null) { + public Builder setObservabilityInstanceInfo( + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo value) { + if (observabilityInstanceInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - observabilityConfig_ = value; + observabilityInstanceInfo_ = value; } else { - observabilityConfigBuilder_.setMessage(value); + observabilityInstanceInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -25731,22 +29048,25 @@ public Builder setObservabilityConfig( * * *
-     * Configuration for observability.
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setObservabilityConfig( - com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.Builder + public Builder setObservabilityInstanceInfo( + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.Builder builderForValue) { - if (observabilityConfigBuilder_ == null) { - observabilityConfig_ = builderForValue.build(); + if (observabilityInstanceInfoBuilder_ == null) { + observabilityInstanceInfo_ = builderForValue.build(); } else { - observabilityConfigBuilder_.setMessage(builderForValue.build()); + observabilityInstanceInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -25755,30 +29075,33 @@ public Builder setObservabilityConfig( * * *
-     * Configuration for observability.
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeObservabilityConfig( - com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig value) { - if (observabilityConfigBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) - && observabilityConfig_ != null - && observabilityConfig_ - != com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig + public Builder mergeObservabilityInstanceInfo( + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo value) { + if (observabilityInstanceInfoBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) + && observabilityInstanceInfo_ != null + && observabilityInstanceInfo_ + != com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo .getDefaultInstance()) { - getObservabilityConfigBuilder().mergeFrom(value); + getObservabilityInstanceInfoBuilder().mergeFrom(value); } else { - observabilityConfig_ = value; + observabilityInstanceInfo_ = value; } } else { - observabilityConfigBuilder_.mergeFrom(value); + observabilityInstanceInfoBuilder_.mergeFrom(value); } - if (observabilityConfig_ != null) { - bitField0_ |= 0x00010000; + if (observabilityInstanceInfo_ != null) { + bitField0_ |= 0x00040000; onChanged(); } return this; @@ -25788,19 +29111,22 @@ public Builder mergeObservabilityConfig( * * *
-     * Configuration for observability.
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearObservabilityConfig() { - bitField0_ = (bitField0_ & ~0x00010000); - observabilityConfig_ = null; - if (observabilityConfigBuilder_ != null) { - observabilityConfigBuilder_.dispose(); - observabilityConfigBuilder_ = null; + public Builder clearObservabilityInstanceInfo() { + bitField0_ = (bitField0_ & ~0x00040000); + observabilityInstanceInfo_ = null; + if (observabilityInstanceInfoBuilder_ != null) { + observabilityInstanceInfoBuilder_.dispose(); + observabilityInstanceInfoBuilder_ = null; } onChanged(); return this; @@ -25810,40 +29136,46 @@ public Builder clearObservabilityConfig() { * * *
-     * Configuration for observability.
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.Builder - getObservabilityConfigBuilder() { - bitField0_ |= 0x00010000; + public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.Builder + getObservabilityInstanceInfoBuilder() { + bitField0_ |= 0x00040000; onChanged(); - return internalGetObservabilityConfigFieldBuilder().getBuilder(); + return internalGetObservabilityInstanceInfoFieldBuilder().getBuilder(); } /** * * *
-     * Configuration for observability.
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfigOrBuilder - getObservabilityConfigOrBuilder() { - if (observabilityConfigBuilder_ != null) { - return observabilityConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfoOrBuilder + getObservabilityInstanceInfoOrBuilder() { + if (observabilityInstanceInfoBuilder_ != null) { + return observabilityInstanceInfoBuilder_.getMessageOrBuilder(); } else { - return observabilityConfig_ == null - ? com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig + return observabilityInstanceInfo_ == null + ? com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo .getDefaultInstance() - : observabilityConfig_; + : observabilityInstanceInfo_; } } @@ -25851,28 +29183,31 @@ public Builder clearObservabilityConfig() { * * *
-     * Configuration for observability.
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
      * 
* * - * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig, - com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.Builder, - com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfigOrBuilder> - internalGetObservabilityConfigFieldBuilder() { - if (observabilityConfigBuilder_ == null) { - observabilityConfigBuilder_ = + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo, + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.Builder, + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfoOrBuilder> + internalGetObservabilityInstanceInfoFieldBuilder() { + if (observabilityInstanceInfoBuilder_ == null) { + observabilityInstanceInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig, - com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.Builder, - com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfigOrBuilder>( - getObservabilityConfig(), getParentForChildren(), isClean()); - observabilityConfig_ = null; + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo, + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.Builder, + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfoOrBuilder>( + getObservabilityInstanceInfo(), getParentForChildren(), isClean()); + observabilityInstanceInfo_ = null; } - return observabilityConfigBuilder_; + return observabilityInstanceInfoBuilder_; } private com.google.cloud.alloydb.v1alpha.Instance.ReadPoolConfig readPoolConfig_; @@ -25895,7 +29230,7 @@ public Builder clearObservabilityConfig() { * @return Whether the readPoolConfig field is set. */ public boolean hasReadPoolConfig() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -25940,7 +29275,7 @@ public Builder setReadPoolConfig( } else { readPoolConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -25962,7 +29297,7 @@ public Builder setReadPoolConfig( } else { readPoolConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -25980,7 +29315,7 @@ public Builder setReadPoolConfig( public Builder mergeReadPoolConfig( com.google.cloud.alloydb.v1alpha.Instance.ReadPoolConfig value) { if (readPoolConfigBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) + if (((bitField0_ & 0x00080000) != 0) && readPoolConfig_ != null && readPoolConfig_ != com.google.cloud.alloydb.v1alpha.Instance.ReadPoolConfig.getDefaultInstance()) { @@ -25992,7 +29327,7 @@ public Builder mergeReadPoolConfig( readPoolConfigBuilder_.mergeFrom(value); } if (readPoolConfig_ != null) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); } return this; @@ -26009,7 +29344,7 @@ public Builder mergeReadPoolConfig( * .google.cloud.alloydb.v1alpha.Instance.ReadPoolConfig read_pool_config = 14; */ public Builder clearReadPoolConfig() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00080000); readPoolConfig_ = null; if (readPoolConfigBuilder_ != null) { readPoolConfigBuilder_.dispose(); @@ -26031,7 +29366,7 @@ public Builder clearReadPoolConfig() { */ public com.google.cloud.alloydb.v1alpha.Instance.ReadPoolConfig.Builder getReadPoolConfigBuilder() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); return internalGetReadPoolConfigFieldBuilder().getBuilder(); } @@ -26152,7 +29487,7 @@ public Builder setIpAddress(java.lang.String value) { throw new NullPointerException(); } ipAddress_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -26171,7 +29506,7 @@ public Builder setIpAddress(java.lang.String value) { */ public Builder clearIpAddress() { ipAddress_ = getDefaultInstance().getIpAddress(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00100000); onChanged(); return this; } @@ -26195,7 +29530,7 @@ public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); ipAddress_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -26277,7 +29612,7 @@ public Builder setPublicIpAddress(java.lang.String value) { throw new NullPointerException(); } publicIpAddress_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -26299,7 +29634,7 @@ public Builder setPublicIpAddress(java.lang.String value) { */ public Builder clearPublicIpAddress() { publicIpAddress_ = getDefaultInstance().getPublicIpAddress(); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } @@ -26326,7 +29661,7 @@ public Builder setPublicIpAddressBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); publicIpAddress_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -26372,7 +29707,7 @@ public boolean getReconciling() { public Builder setReconciling(boolean value) { reconciling_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -26393,7 +29728,7 @@ public Builder setReconciling(boolean value) { * @return This builder for chaining. */ public Builder clearReconciling() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00400000); reconciling_ = false; onChanged(); return this; @@ -26464,7 +29799,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -26482,7 +29817,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00800000); onChanged(); return this; } @@ -26505,7 +29840,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -26530,7 +29865,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; onChanged(); return annotations_; } @@ -26628,7 +29963,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { } public Builder clearAnnotations() { - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x01000000); internalGetMutableAnnotations().getMutableMap().clear(); return this; } @@ -26655,7 +29990,7 @@ public Builder removeAnnotations(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAnnotations() { - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; return internalGetMutableAnnotations().getMutableMap(); } @@ -26678,7 +30013,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableAnnotations().getMutableMap().put(key, value); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; return this; } @@ -26695,7 +30030,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { */ public Builder putAllAnnotations(java.util.Map values) { internalGetMutableAnnotations().getMutableMap().putAll(values); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; return this; } @@ -26721,7 +30056,7 @@ public Builder putAllAnnotations(java.util.Map.google.cloud.alloydb.v1alpha.Instance.UpdatePolicy update_policy = 22; */ public Builder clearUpdatePolicy() { - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x02000000); updatePolicy_ = null; if (updatePolicyBuilder_ != null) { updatePolicyBuilder_.dispose(); @@ -26866,7 +30201,7 @@ public Builder clearUpdatePolicy() { * .google.cloud.alloydb.v1alpha.Instance.UpdatePolicy update_policy = 22; */ public com.google.cloud.alloydb.v1alpha.Instance.UpdatePolicy.Builder getUpdatePolicyBuilder() { - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; onChanged(); return internalGetUpdatePolicyFieldBuilder().getBuilder(); } @@ -26945,7 +30280,7 @@ public com.google.cloud.alloydb.v1alpha.Instance.UpdatePolicy.Builder getUpdateP * @return Whether the clientConnectionConfig field is set. */ public boolean hasClientConnectionConfig() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x04000000) != 0); } /** @@ -26993,7 +30328,7 @@ public Builder setClientConnectionConfig( } else { clientConnectionConfigBuilder_.setMessage(value); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -27016,7 +30351,7 @@ public Builder setClientConnectionConfig( } else { clientConnectionConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -27035,7 +30370,7 @@ public Builder setClientConnectionConfig( public Builder mergeClientConnectionConfig( com.google.cloud.alloydb.v1alpha.Instance.ClientConnectionConfig value) { if (clientConnectionConfigBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0) + if (((bitField0_ & 0x04000000) != 0) && clientConnectionConfig_ != null && clientConnectionConfig_ != com.google.cloud.alloydb.v1alpha.Instance.ClientConnectionConfig @@ -27048,7 +30383,7 @@ public Builder mergeClientConnectionConfig( clientConnectionConfigBuilder_.mergeFrom(value); } if (clientConnectionConfig_ != null) { - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; onChanged(); } return this; @@ -27066,7 +30401,7 @@ public Builder mergeClientConnectionConfig( * */ public Builder clearClientConnectionConfig() { - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x04000000); clientConnectionConfig_ = null; if (clientConnectionConfigBuilder_ != null) { clientConnectionConfigBuilder_.dispose(); @@ -27089,7 +30424,7 @@ public Builder clearClientConnectionConfig() { */ public com.google.cloud.alloydb.v1alpha.Instance.ClientConnectionConfig.Builder getClientConnectionConfigBuilder() { - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; onChanged(); return internalGetClientConnectionConfigFieldBuilder().getBuilder(); } @@ -27177,7 +30512,7 @@ public boolean getSatisfiesPzi() { public Builder setSatisfiesPzi(boolean value) { satisfiesPzi_ = value; - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -27194,7 +30529,7 @@ public Builder setSatisfiesPzi(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzi() { - bitField0_ = (bitField0_ & ~0x02000000); + bitField0_ = (bitField0_ & ~0x08000000); satisfiesPzi_ = false; onChanged(); return this; @@ -27233,7 +30568,7 @@ public boolean getSatisfiesPzs() { public Builder setSatisfiesPzs(boolean value) { satisfiesPzs_ = value; - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -27250,7 +30585,7 @@ public Builder setSatisfiesPzs(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x10000000); satisfiesPzs_ = false; onChanged(); return this; @@ -27278,7 +30613,7 @@ public Builder clearSatisfiesPzs() { * @return Whether the pscInstanceConfig field is set. */ public boolean hasPscInstanceConfig() { - return ((bitField0_ & 0x08000000) != 0); + return ((bitField0_ & 0x20000000) != 0); } /** @@ -27327,7 +30662,7 @@ public Builder setPscInstanceConfig( } else { pscInstanceConfigBuilder_.setMessage(value); } - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -27351,7 +30686,7 @@ public Builder setPscInstanceConfig( } else { pscInstanceConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -27371,7 +30706,7 @@ public Builder setPscInstanceConfig( public Builder mergePscInstanceConfig( com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig value) { if (pscInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x08000000) != 0) + if (((bitField0_ & 0x20000000) != 0) && pscInstanceConfig_ != null && pscInstanceConfig_ != com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig @@ -27384,7 +30719,7 @@ public Builder mergePscInstanceConfig( pscInstanceConfigBuilder_.mergeFrom(value); } if (pscInstanceConfig_ != null) { - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; onChanged(); } return this; @@ -27403,7 +30738,7 @@ public Builder mergePscInstanceConfig( * */ public Builder clearPscInstanceConfig() { - bitField0_ = (bitField0_ & ~0x08000000); + bitField0_ = (bitField0_ & ~0x20000000); pscInstanceConfig_ = null; if (pscInstanceConfigBuilder_ != null) { pscInstanceConfigBuilder_.dispose(); @@ -27427,7 +30762,7 @@ public Builder clearPscInstanceConfig() { */ public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.Builder getPscInstanceConfigBuilder() { - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; onChanged(); return internalGetPscInstanceConfigFieldBuilder().getBuilder(); } @@ -27506,7 +30841,7 @@ public Builder clearPscInstanceConfig() { * @return Whether the pscInstanceInfo field is set. */ public boolean hasPscInstanceInfo() { - return ((bitField0_ & 0x10000000) != 0); + return ((bitField0_ & 0x40000000) != 0); } /** @@ -27555,7 +30890,7 @@ public Builder setPscInstanceInfo( } else { pscInstanceInfoBuilder_.setMessage(value); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -27579,7 +30914,7 @@ public Builder setPscInstanceInfo( } else { pscInstanceInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -27599,7 +30934,7 @@ public Builder setPscInstanceInfo( public Builder mergePscInstanceInfo( com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo value) { if (pscInstanceInfoBuilder_ == null) { - if (((bitField0_ & 0x10000000) != 0) + if (((bitField0_ & 0x40000000) != 0) && pscInstanceInfo_ != null && pscInstanceInfo_ != com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo.getDefaultInstance()) { @@ -27611,7 +30946,7 @@ public Builder mergePscInstanceInfo( pscInstanceInfoBuilder_.mergeFrom(value); } if (pscInstanceInfo_ != null) { - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); } return this; @@ -27630,7 +30965,7 @@ public Builder mergePscInstanceInfo( * */ public Builder clearPscInstanceInfo() { - bitField0_ = (bitField0_ & ~0x10000000); + bitField0_ = (bitField0_ & ~0x40000000); pscInstanceInfo_ = null; if (pscInstanceInfoBuilder_ != null) { pscInstanceInfoBuilder_.dispose(); @@ -27654,7 +30989,7 @@ public Builder clearPscInstanceInfo() { */ public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo.Builder getPscInstanceInfoBuilder() { - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); return internalGetPscInstanceInfoFieldBuilder().getBuilder(); } @@ -27732,7 +31067,7 @@ public Builder clearPscInstanceInfo() { * @return Whether the networkConfig field is set. */ public boolean hasNetworkConfig() { - return ((bitField0_ & 0x20000000) != 0); + return ((bitField0_ & 0x80000000) != 0); } /** @@ -27779,7 +31114,7 @@ public Builder setNetworkConfig( } else { networkConfigBuilder_.setMessage(value); } - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -27802,7 +31137,7 @@ public Builder setNetworkConfig( } else { networkConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -27821,7 +31156,7 @@ public Builder setNetworkConfig( public Builder mergeNetworkConfig( com.google.cloud.alloydb.v1alpha.Instance.InstanceNetworkConfig value) { if (networkConfigBuilder_ == null) { - if (((bitField0_ & 0x20000000) != 0) + if (((bitField0_ & 0x80000000) != 0) && networkConfig_ != null && networkConfig_ != com.google.cloud.alloydb.v1alpha.Instance.InstanceNetworkConfig @@ -27834,7 +31169,7 @@ public Builder mergeNetworkConfig( networkConfigBuilder_.mergeFrom(value); } if (networkConfig_ != null) { - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; onChanged(); } return this; @@ -27852,7 +31187,7 @@ public Builder mergeNetworkConfig( * */ public Builder clearNetworkConfig() { - bitField0_ = (bitField0_ & ~0x20000000); + bitField0_ = (bitField0_ & ~0x80000000); networkConfig_ = null; if (networkConfigBuilder_ != null) { networkConfigBuilder_.dispose(); @@ -27875,7 +31210,7 @@ public Builder clearNetworkConfig() { */ public com.google.cloud.alloydb.v1alpha.Instance.InstanceNetworkConfig.Builder getNetworkConfigBuilder() { - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; onChanged(); return internalGetNetworkConfigFieldBuilder().getBuilder(); } @@ -27950,12 +31285,12 @@ public Builder clearNetworkConfig() { * * * @deprecated google.cloud.alloydb.v1alpha.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=1399 + * google/cloud/alloydb/v1alpha/resources.proto;l=1478 * @return Whether the geminiConfig field is set. */ @java.lang.Deprecated public boolean hasGeminiConfig() { - return ((bitField0_ & 0x40000000) != 0); + return ((bitField1_ & 0x00000001) != 0); } /** @@ -27971,7 +31306,7 @@ public boolean hasGeminiConfig() { * * * @deprecated google.cloud.alloydb.v1alpha.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=1399 + * google/cloud/alloydb/v1alpha/resources.proto;l=1478 * @return The geminiConfig. */ @java.lang.Deprecated @@ -28007,7 +31342,7 @@ public Builder setGeminiConfig(com.google.cloud.alloydb.v1alpha.GeminiInstanceCo } else { geminiConfigBuilder_.setMessage(value); } - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; onChanged(); return this; } @@ -28032,7 +31367,7 @@ public Builder setGeminiConfig( } else { geminiConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; onChanged(); return this; } @@ -28052,7 +31387,7 @@ public Builder setGeminiConfig( @java.lang.Deprecated public Builder mergeGeminiConfig(com.google.cloud.alloydb.v1alpha.GeminiInstanceConfig value) { if (geminiConfigBuilder_ == null) { - if (((bitField0_ & 0x40000000) != 0) + if (((bitField1_ & 0x00000001) != 0) && geminiConfig_ != null && geminiConfig_ != com.google.cloud.alloydb.v1alpha.GeminiInstanceConfig.getDefaultInstance()) { @@ -28064,7 +31399,7 @@ public Builder mergeGeminiConfig(com.google.cloud.alloydb.v1alpha.GeminiInstance geminiConfigBuilder_.mergeFrom(value); } if (geminiConfig_ != null) { - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; onChanged(); } return this; @@ -28084,7 +31419,7 @@ public Builder mergeGeminiConfig(com.google.cloud.alloydb.v1alpha.GeminiInstance */ @java.lang.Deprecated public Builder clearGeminiConfig() { - bitField0_ = (bitField0_ & ~0x40000000); + bitField1_ = (bitField1_ & ~0x00000001); geminiConfig_ = null; if (geminiConfigBuilder_ != null) { geminiConfigBuilder_.dispose(); @@ -28108,7 +31443,7 @@ public Builder clearGeminiConfig() { */ @java.lang.Deprecated public com.google.cloud.alloydb.v1alpha.GeminiInstanceConfig.Builder getGeminiConfigBuilder() { - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; onChanged(); return internalGetGeminiConfigFieldBuilder().getBuilder(); } @@ -28174,7 +31509,7 @@ private void ensureOutboundPublicIpAddressesIsMutable() { outboundPublicIpAddresses_ = new com.google.protobuf.LazyStringArrayList(outboundPublicIpAddresses_); } - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; } /** @@ -28269,7 +31604,7 @@ public Builder setOutboundPublicIpAddresses(int index, java.lang.String value) { } ensureOutboundPublicIpAddressesIsMutable(); outboundPublicIpAddresses_.set(index, value); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; onChanged(); return this; } @@ -28294,7 +31629,7 @@ public Builder addOutboundPublicIpAddresses(java.lang.String value) { } ensureOutboundPublicIpAddressesIsMutable(); outboundPublicIpAddresses_.add(value); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; onChanged(); return this; } @@ -28316,7 +31651,7 @@ public Builder addOutboundPublicIpAddresses(java.lang.String value) { public Builder addAllOutboundPublicIpAddresses(java.lang.Iterable values) { ensureOutboundPublicIpAddressesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, outboundPublicIpAddresses_); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; onChanged(); return this; } @@ -28336,7 +31671,7 @@ public Builder addAllOutboundPublicIpAddresses(java.lang.Iterable */ public Builder clearConnectionPoolConfig() { - bitField1_ = (bitField1_ & ~0x00000002); + bitField1_ = (bitField1_ & ~0x00000008); connectionPoolConfig_ = null; if (connectionPoolConfigBuilder_ != null) { connectionPoolConfigBuilder_.dispose(); @@ -28671,7 +32006,7 @@ public Builder clearConnectionPoolConfig() { */ public com.google.cloud.alloydb.v1alpha.Instance.ConnectionPoolConfig.Builder getConnectionPoolConfigBuilder() { - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; onChanged(); return internalGetConnectionPoolConfigFieldBuilder().getBuilder(); } @@ -28747,7 +32082,7 @@ public Builder clearConnectionPoolConfig() { * @return Whether the gcaConfig field is set. */ public boolean hasGcaConfig() { - return ((bitField1_ & 0x00000004) != 0); + return ((bitField1_ & 0x00000010) != 0); } /** @@ -28793,7 +32128,7 @@ public Builder setGcaConfig(com.google.cloud.alloydb.v1alpha.GCAInstanceConfig v } else { gcaConfigBuilder_.setMessage(value); } - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; onChanged(); return this; } @@ -28816,7 +32151,7 @@ public Builder setGcaConfig( } else { gcaConfigBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; onChanged(); return this; } @@ -28834,7 +32169,7 @@ public Builder setGcaConfig( */ public Builder mergeGcaConfig(com.google.cloud.alloydb.v1alpha.GCAInstanceConfig value) { if (gcaConfigBuilder_ == null) { - if (((bitField1_ & 0x00000004) != 0) + if (((bitField1_ & 0x00000010) != 0) && gcaConfig_ != null && gcaConfig_ != com.google.cloud.alloydb.v1alpha.GCAInstanceConfig.getDefaultInstance()) { @@ -28846,7 +32181,7 @@ public Builder mergeGcaConfig(com.google.cloud.alloydb.v1alpha.GCAInstanceConfig gcaConfigBuilder_.mergeFrom(value); } if (gcaConfig_ != null) { - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; onChanged(); } return this; @@ -28864,7 +32199,7 @@ public Builder mergeGcaConfig(com.google.cloud.alloydb.v1alpha.GCAInstanceConfig * */ public Builder clearGcaConfig() { - bitField1_ = (bitField1_ & ~0x00000004); + bitField1_ = (bitField1_ & ~0x00000010); gcaConfig_ = null; if (gcaConfigBuilder_ != null) { gcaConfigBuilder_.dispose(); @@ -28886,7 +32221,7 @@ public Builder clearGcaConfig() { * */ public com.google.cloud.alloydb.v1alpha.GCAInstanceConfig.Builder getGcaConfigBuilder() { - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; onChanged(); return internalGetGcaConfigFieldBuilder().getBuilder(); } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/InstanceOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/InstanceOrBuilder.java index ed79dbc22b00..4c0a23355c7e 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/InstanceOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/InstanceOrBuilder.java @@ -776,6 +776,59 @@ java.lang.String getDatabaseFlagsOrDefault( com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfigOrBuilder getQueryInsightsConfigOrBuilder(); + /** + * + * + *
+   * Output only. Instance level Query Insights information, which is read-only
+   * and available in the output only. Contains the effective query insights
+   * settings for this instance, by merging customer's provided
+   * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the queryInsightsInfo field is set. + */ + boolean hasQueryInsightsInfo(); + + /** + * + * + *
+   * Output only. Instance level Query Insights information, which is read-only
+   * and available in the output only. Contains the effective query insights
+   * settings for this instance, by merging customer's provided
+   * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The queryInsightsInfo. + */ + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo getQueryInsightsInfo(); + + /** + * + * + *
+   * Output only. Instance level Query Insights information, which is read-only
+   * and available in the output only. Contains the effective query insights
+   * settings for this instance, by merging customer's provided
+   * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfoOrBuilder + getQueryInsightsInfoOrBuilder(); + /** * * @@ -820,6 +873,60 @@ java.lang.String getDatabaseFlagsOrDefault( com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfigOrBuilder getObservabilityConfigOrBuilder(); + /** + * + * + *
+   * Output only. Instance level observability information, contains the
+   * effective values of observability settings for this instance, by merging
+   * customer's provided `ObservabilityInstanceConfig` with the
+   * Observability defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the observabilityInstanceInfo field is set. + */ + boolean hasObservabilityInstanceInfo(); + + /** + * + * + *
+   * Output only. Instance level observability information, contains the
+   * effective values of observability settings for this instance, by merging
+   * customer's provided `ObservabilityInstanceConfig` with the
+   * Observability defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The observabilityInstanceInfo. + */ + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo + getObservabilityInstanceInfo(); + + /** + * + * + *
+   * Output only. Instance level observability information, contains the
+   * effective values of observability settings for this instance, by merging
+   * customer's provided `ObservabilityInstanceConfig` with the
+   * Observability defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfoOrBuilder + getObservabilityInstanceInfoOrBuilder(); + /** * * @@ -1304,7 +1411,7 @@ java.lang.String getAnnotationsOrDefault( * * * @deprecated google.cloud.alloydb.v1alpha.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=1399 + * google/cloud/alloydb/v1alpha/resources.proto;l=1478 * @return Whether the geminiConfig field is set. */ @java.lang.Deprecated @@ -1323,7 +1430,7 @@ java.lang.String getAnnotationsOrDefault( * * * @deprecated google.cloud.alloydb.v1alpha.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=1399 + * google/cloud/alloydb/v1alpha/resources.proto;l=1478 * @return The geminiConfig. */ @java.lang.Deprecated diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ResourcesProto.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ResourcesProto.java index b153392295d4..11d91a5469b9 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ResourcesProto.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ResourcesProto.java @@ -168,10 +168,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1alpha_Instance_QueryInsightsInstanceConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_alloydb_v1alpha_Instance_QueryInsightsInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1alpha_Instance_QueryInsightsInstanceInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_alloydb_v1alpha_Instance_QueryInsightsInstanceInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1alpha_Instance_ReadPoolConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -505,7 +513,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tSECONDARY\020\002:u\352Ar\n" + "\036alloydb.googleapis.com/Cluster\022:projects/{project}/locat" + "ions/{location}/clusters/{cluster}*\010clusters2\007clusterR\001\001B\010\n" - + "\006source\"\262/\n" + + "\006source\"\3535\n" + "\010Instance\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022\020\n" @@ -531,40 +539,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005nodes\030\024" + " \003(\0132+.google.cloud.alloydb.v1alpha.Instance.NodeB\003\340A\003\022a\n" + "\025query_insights_config\030\025 \001(\0132B.google.clo" - + "ud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig\022`\n" - + "\024observability_config\030\032" - + " \001(\0132B.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig\022O\n" - + "\020read_pool_config\030\016" - + " \001(\01325.google.cloud.alloydb.v1alpha.Instance.ReadPoolConfig\022\027\n\n" + + "ud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig\022b\n" + + "\023query_insights_info\030/" + + " \001(\0132@.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfoB\003\340A\003\022`\n" + + "\024observability_config\030\032 \001(\0132B.google.cloud" + + ".alloydb.v1alpha.Instance.ObservabilityInstanceConfig\022j\n" + + "\033observability_instance_info\030, \001(\0132@.google.cloud.alloydb.v1alph" + + "a.Instance.ObservabilityInstanceInfoB\003\340A\003\022O\n" + + "\020read_pool_config\030\016 \001(\01325.google.clo" + + "ud.alloydb.v1alpha.Instance.ReadPoolConfig\022\027\n\n" + "ip_address\030\017 \001(\tB\003\340A\003\022&\n" + "\021public_ip_address\030\033 \001(" + "\tB\013\340A\003\342\214\317\327\010\002\010\002\022\030\n" + "\013reconciling\030\020 \001(\010B\003\340A\003\022\014\n" + "\004etag\030\021 \001(\t\022L\n" - + "\013annotations\030\022 \003(\013" - + "27.google.cloud.alloydb.v1alpha.Instance.AnnotationsEntry\022J\n\r" - + "update_policy\030\026 \001(\013" - + "23.google.cloud.alloydb.v1alpha.Instance.UpdatePolicy\022d\n" - + "\030client_connection_config\030\027" - + " \001(\0132=.google.cloud.alloydb.v1alpha.Instance.ClientConnectionConfigB\003\340A\001\022\032\n\r" + + "\013annotations\030\022" + + " \003(\01327.google.cloud.alloydb.v1alpha.Instance.AnnotationsEntry\022J\n\r" + + "update_policy\030\026" + + " \001(\01323.google.cloud.alloydb.v1alpha.Instance.UpdatePolicy\022d\n" + + "\030client_connection_config\030\027 \001(\0132=.google.cloud.alloydb.v" + + "1alpha.Instance.ClientConnectionConfigB\003\340A\001\022\032\n\r" + "satisfies_pzi\030\036 \001(\010B\003\340A\003\022\032\n\r" + "satisfies_pzs\030\030 \001(\010B\003\340A\003\022Z\n" - + "\023psc_instance_config\030\034 \001(\013" - + "28.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfigB\003\340A\001\022V\n" - + "\021psc_instance_info\030." - + " \001(\01326.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfoB\003\340A\003\022Y\n" - + "\016network_config\030\035 \001(\0132<.google.cloud.alloydb.v" - + "1alpha.Instance.InstanceNetworkConfigB\003\340A\001\022P\n\r" - + "gemini_config\030! \001(\01322.google.cloud" - + ".alloydb.v1alpha.GeminiInstanceConfigB\005\030\001\340A\001\0221\n" + + "\023psc_instance_config\030\034" + + " \001(\01328.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfigB\003\340A\001\022V\n" + + "\021psc_instance_info\030. \001(\01326.google.cloud.alloyd" + + "b.v1alpha.Instance.PscInstanceInfoB\003\340A\003\022Y\n" + + "\016network_config\030\035 \001(\0132<.google.cloud.a" + + "lloydb.v1alpha.Instance.InstanceNetworkConfigB\003\340A\001\022P\n\r" + + "gemini_config\030! \001(\01322.goog" + + "le.cloud.alloydb.v1alpha.GeminiInstanceConfigB\005\030\001\340A\001\0221\n" + "\034outbound_public_ip_addresses\030\" \003(" + "\tB\013\340A\003\342\214\317\327\010\002\010\002\022W\n" - + "\021activation_policy\030# \001" - + "(\01627.google.cloud.alloydb.v1alpha.Instance.ActivationPolicyB\003\340A\001\022`\n" - + "\026connection_pool_config\030% \001(\0132;.google.cloud.alloydb." - + "v1alpha.Instance.ConnectionPoolConfigB\003\340A\001\022H\n\n" - + "gca_config\030&" - + " \001(\0132/.google.cloud.alloydb.v1alpha.GCAInstanceConfigB\003\340A\003\0328\n\r" + + "\021activation_policy\030#" + + " \001(\01627.google.cloud.alloydb.v1alpha.Instance.ActivationPolicyB\003\340A\001\022`\n" + + "\026connection_pool_config\030% \001(\0132;.google.cloud." + + "alloydb.v1alpha.Instance.ConnectionPoolConfigB\003\340A\001\022H\n\n" + + "gca_config\030& \001(\0132/.google." + + "cloud.alloydb.v1alpha.GCAInstanceConfigB\003\340A\003\0328\n\r" + "MachineConfig\022\021\n" + "\tcpu_count\030\001 \001(\005\022\024\n" + "\014machine_type\030\004 \001(\t\032R\n" @@ -582,7 +594,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "H\002\210\001\001B\032\n" + "\030_record_application_tagsB\030\n" + "\026_record_client_addressB\031\n" - + "\027_query_plans_per_minute\032\372\004\n" + + "\027_query_plans_per_minute\032\302\001\n" + + "\031QueryInsightsInstanceInfo\022\024\n" + + "\007enabled\030\001 \001(\010B\003\340A\003\022$\n" + + "\027record_application_tags\030\002 \001(\010B\003\340A\003\022\"\n" + + "\025record_client_address\030\003 \001(\010B\003\340A\003\022 \n" + + "\023query_string_length\030\004 \001(\r" + + "B\003\340A\003\022#\n" + + "\026query_plans_per_minute\030\005 \001(\r" + + "B\003\340A\003\032\372\004\n" + "\033ObservabilityInstanceConfig\022\024\n" + "\007enabled\030\001 \001(\010H\000\210\001\001\022\036\n" + "\021preserve_comments\030\002 \001(\010H\001\210\001\001\022\036\n" @@ -604,20 +624,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027_query_plans_per_minuteB\027\n" + "\025_track_active_queriesB\027\n" + "\025_track_client_addressB \n" - + "\036_assistive_experiences_enabled\032$\n" + + "\036_assistive_experiences_enabled\032\241\003\n" + + "\031ObservabilityInstanceInfo\022\024\n" + + "\007enabled\030\002 \001(\010B\003\340A\003\022\036\n" + + "\021preserve_comments\030\003 \001(\010B\003\340A\003\022\036\n" + + "\021track_wait_events\030\004 \001(\010B\003\340A\003\022#\n" + + "\026track_wait_event_types\030\005 \001(\010B\003\340A\003\022$\n" + + "\027max_query_string_length\030\006 \001(\005B\003\340A\003\022$\n" + + "\027record_application_tags\030\007 \001(\010B\003\340A\003\022#\n" + + "\026query_plans_per_minute\030\010 \001(\005B\003\340A\003\022!\n" + + "\024track_active_queries\030\t \001(\010B\003\340A\003\022!\n" + + "\024track_client_address\030\n" + + " \001(\010B\003\340A\003\022*\n" + + "\035assistive_experiences_enabled\030\013 \001(\010B\003\340A\003\022&\n" + + "\027track_active_query_plan\030\r" + + " \001(\010B\005\030\001\340A\003\032$\n" + "\016ReadPoolConfig\022\022\n\n" + "node_count\030\001 \001(\005\032\222\001\n" + "\014UpdatePolicy\022F\n" - + "\004mode\030\001" - + " \001(\01628.google.cloud.alloydb.v1alpha.Instance.UpdatePolicy.Mode\":\n" + + "\004mode\030\001 \001" + + "(\01628.google.cloud.alloydb.v1alpha.Instance.UpdatePolicy.Mode\":\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\013\n" + "\007DEFAULT\020\001\022\017\n" + "\013FORCE_APPLY\020\002\032{\n" + "\026ClientConnectionConfig\022\037\n" + "\022require_connectors\030\001 \001(\010B\003\340A\001\022@\n\n" - + "ssl_config\030\002" - + " \001(\0132\'.google.cloud.alloydb.v1alpha.SslConfigB\003\340A\001\0329\n" + + "ssl_config\030\002 \001(\0132" + + "\'.google.cloud.alloydb.v1alpha.SslConfigB\003\340A\001\0329\n" + "\022PscInterfaceConfig\022#\n" + "\033network_attachment_resource\030\001 \001(\t\032\251\001\n" + "\027PscAutoConnectionConfig\022\030\n" @@ -631,15 +665,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(compute.googleapis.com/ServiceAttachment\022&\n" + "\031allowed_consumer_projects\030\002 \003(\tB\003\340A\001\022\031\n" + "\014psc_dns_name\030\007 \001(\tB\003\340A\003\022]\n" - + "\025psc_interface_configs\030\010 \003(\01329.google.cloud.alloydb.v1" - + "alpha.Instance.PscInterfaceConfigB\003\340A\001\022a\n" - + "\024psc_auto_connections\030\t \003(\0132>.google.cl" - + "oud.alloydb.v1alpha.Instance.PscAutoConnectionConfigB\003\340A\001\022W\n" - + "\022psc_auto_dns_state\030\013" - + " \001(\01626.google.cloud.alloydb.v1alpha.Instance.PscAutoDnsStateB\003\340A\001\022\204\001\n" + + "\025psc_interface_configs\030\010 \003(\0132" + + "9.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfigB\003\340A\001\022a\n" + + "\024psc_auto_connections\030\t \003(\0132>.google.cloud.alloydb.v1a" + + "lpha.Instance.PscAutoConnectionConfigB\003\340A\001\022W\n" + + "\022psc_auto_dns_state\030\013 \001(\01626.google." + + "cloud.alloydb.v1alpha.Instance.PscAutoDnsStateB\003\340A\001\022\204\001\n" + " psc_auto_connection_policy_state\030\r" - + " \001(\0162U.google.cloud.alloydb.v1alpha.Instance.PscInstanc" - + "eConfig.PscAutoConnectionPolicyStateB\003\340A\001\"k\n" + + " \001(\0162U.google.cloud.alloydb.v1" + + "alpha.Instance.PscInstanceConfig.PscAutoConnectionPolicyStateB\003\340A\001\"k\n" + "\034PscAutoConnectionPolicyState\0220\n" + ",PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED\020\000\022\013\n" + "\007ENABLED\020\001\022\014\n" @@ -650,9 +684,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$effective_psc_auto_connection_policy\030\003 \001(\010B\003\340A\003\022&\n" + "\031service_connection_policy\030\004 \001(\tB\003\340A\003\032\357\002\n" + "\025InstanceNetworkConfig\022y\n" - + "\034authorized_external_networks\030\001 " - + "\003(\0132N.google.cloud.alloydb.v1alpha.Insta" - + "nce.InstanceNetworkConfig.AuthorizedNetworkB\003\340A\001\022\035\n" + + "\034authorized_external_networks\030\001 \003(\0132N.google.cl" + + "oud.alloydb.v1alpha.Instance.InstanceNetworkConfig.AuthorizedNetworkB\003\340A\001\022\035\n" + "\020enable_public_ip\030\002 \001(\010B\003\340A\001\022&\n" + "\031enable_outbound_public_ip\030\003 \001(\010B\003\340A\001\0227\n" + "\007network\030\004 \001(\tB&\340A\003\372A \n" @@ -663,8 +696,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024ConnectionPoolConfig\022\024\n" + "\007enabled\030\014 \001(\010B\003\340A\001\022Z\n" + "\005flags\030\r" - + " \003(\0132F.google.cloud.alloydb.v1alp" - + "ha.Instance.ConnectionPoolConfig.FlagsEntryB\003\340A\001\022\031\n" + + " \003(\0132F.g" + + "oogle.cloud.alloydb.v1alpha.Instance.ConnectionPoolConfig.FlagsEntryB\003\340A\001\022\031\n" + "\014pooler_count\030\016 \001(\005B\003\340A\003\032,\n\n" + "FlagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -705,8 +738,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035ACTIVATION_POLICY_UNSPECIFIED\020\000\022\n\n" + "\006ALWAYS\020\001\022\t\n" + "\005NEVER\020\002:\216\001\352A\212\001\n" - + "\037alloydb.googleapis.com/Instance\022Oprojects" - + "/{project}/locations/{location}/clusters/{cluster}/instances/{instance}*" + + "\037alloydb.googleapis.com/Instance\022Oprojects/{project}/loca" + + "tions/{location}/clusters/{cluster}/instances/{instance}*" + "\tinstances2\010instanceR\001\001\"\212\003\n" + "\016ConnectionInfo\022\014\n" + "\004name\030\001 \001(\t\022\027\n\n" @@ -717,9 +750,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014instance_uid\030\004 \001(\tB\003\340A\003\022\031\n" + "\014psc_dns_name\030\006 \001(\tB\003\340A\003\022\036\n" + "\021psc_auto_dns_name\030\t \001(\tB\003\340A\003:\254\001\352A\250\001\n" - + "%alloydb.googleapis.com/ConnectionInfo\022^projects/{project}/locations/{locat" - + "ion}/clusters/{cluster}/instances/{insta" - + "nce}/connectionInfo*\017connectionInfos2\016connectionInfo\"\316\r\n" + + "%alloydb.googleapis.com/ConnectionInfo\022^projects/{" + + "project}/locations/{location}/clusters/{" + + "cluster}/instances/{instance}/connectionInfo*\017connectionInfos2\016connectionInfo\"\316\r" + + "\n" + "\006Backup\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022\020\n" @@ -730,8 +764,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026create_completion_time\030\032" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022@\n" + "\006labels\030\006 \003(\01320.google.cloud.alloydb.v1alpha.Backup.LabelsEntry\022>\n" - + "\005state\030\007 \001(\0162*.google." - + "cloud.alloydb.v1alpha.Backup.StateB\003\340A\003\0227\n" + + "\005state\030\007" + + " \001(\0162*.google.cloud.alloydb.v1alpha.Backup.StateB\003\340A\003\0227\n" + "\004type\030\010 \001(\0162).google.cloud.alloydb.v1alpha.Backup.Type\022\023\n" + "\013description\030\t \001(\t\022\030\n" + "\013cluster_uid\030\022 \001(\tB\003\340A\003\022<\n" @@ -739,22 +773,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\tB&\340A\002\372A \n" + "\036alloydb.googleapis.com/Cluster\022\030\n" + "\013reconciling\030\013 \001(\010B\003\340A\003\022N\n" - + "\021encryption_config\030\014" - + " \001(\0132..google.cloud.alloydb.v1alpha.EncryptionConfigB\003\340A\001\022J\n" + + "\021encryption_config\030\014 " + + "\001(\0132..google.cloud.alloydb.v1alpha.EncryptionConfigB\003\340A\001\022J\n" + "\017encryption_info\030\r" + " \001(\0132,.google.cloud.alloydb.v1alpha.EncryptionInfoB\003\340A\003\022\014\n" + "\004etag\030\016 \001(\t\022J\n" + "\013annotations\030\020" - + " \003(\01325.google.cloud.alloydb.v1alpha.Backup.AnnotationsEntry\022\027\n" - + "\n" + + " \003(\01325.google.cloud.alloydb.v1alpha.Backup.AnnotationsEntry\022\027\n\n" + "size_bytes\030\021 \001(\003B\003\340A\003\0224\n" + "\013expiry_time\030\023 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022V\n" - + "\017expiry_quantity\030\024 \001(\01328.google.cloud.all" - + "oydb.v1alpha.Backup.QuantityBasedExpiryB\003\340A\003\022\032\n\r" + + "\017expiry_quantity\030\024" + + " \001(\01328.google.cloud.alloydb.v1alpha.Backup.QuantityBasedExpiryB\003\340A\003\022\032\n\r" + "satisfies_pzi\030\027 \001(\010B\003\340A\003\022\032\n\r" + "satisfies_pzs\030\025 \001(\010B\003\340A\003\022L\n" - + "\020database_version\030\026" - + " \001(\0162-.google.cloud.alloydb.v1alpha.DatabaseVersionB\003\340A\003\022G\n" + + "\020database_version\030\026 \001(\0162-.google" + + ".cloud.alloydb.v1alpha.DatabaseVersionB\003\340A\003\022G\n" + "\004tags\030\031 \003(\0132..google.cloud.alloydb.v1alpha.Backup.TagsEntryB" + "\t\340A\004\340A\005\340A\001\032W\n" + "\023QuantityBasedExpiry\022\034\n" @@ -772,7 +805,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\t\n" + "\005READY\020\001\022\014\n" - + "\010CREATING\020\002\022\n\n" + + "\010CREA", + "TING\020\002\022\n\n" + "\006FAILED\020\003\022\014\n" + "\010DELETING\020\004\"J\n" + "\004Type\022\024\n" @@ -780,28 +814,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tON_DEMAND\020\001\022\r\n" + "\tAUTOMATED\020\002\022\016\n\n" + "CONTINUOUS\020\003:p\352Am\n" - + "\035alloydb.googleapis.com/Backup\022" - + "8projects/{project}/locations/{location}/backups/{backup}*\007backups2\006backupR\001\001\"\225" - + "\t\n" + + "\035alloydb.googleapis.com/Backup\0228projects/{proj" + + "ect}/locations/{location}/backups/{backup}*\007backups2\006backupR\001\001\"\225\t\n" + "\025SupportedDatabaseFlag\022e\n" - + "\023string_restrictions\030\007 \001(\0132F.google.cloud.alloydb.v1al" - + "pha.SupportedDatabaseFlag.StringRestrictionsH\000\022g\n" - + "\024integer_restrictions\030\010 \001(\0132G.g" - + "oogle.cloud.alloydb.v1alpha.SupportedDatabaseFlag.IntegerRestrictionsH\000\022\"\n" + + "\023string_restrictions\030\007 \001(\0132F." + + "google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.StringRestrictionsH\000\022g\n" + + "\024integer_restrictions\030\010 \001(\0132G.google.cloud.all" + + "oydb.v1alpha.SupportedDatabaseFlag.IntegerRestrictionsH\000\022\"\n" + "\030recommended_string_value\030\n" + " \001(\tH\001\022@\n" + "\031recommended_integer_value\030\013" + " \001(\0132\033.google.protobuf.Int64ValueH\001\022\014\n" + "\004name\030\001 \001(\t\022\021\n" + "\tflag_name\030\002 \001(\t\022Q\n\n" - + "value_type\030\003 \001(\0162=.google.clou" - + "d.alloydb.v1alpha.SupportedDatabaseFlag.ValueType\022\037\n" + + "value_type\030\003" + + " \001(\0162=.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.ValueType\022\037\n" + "\027accepts_multiple_values\030\004 \001(\010\022L\n" - + "\025supported_db_versions\030\005 \003(\0162-.goog" - + "le.cloud.alloydb.v1alpha.DatabaseVersion\022\033\n" + + "\025supported_db_versions\030\005" + + " \003(\0162-.google.cloud.alloydb.v1alpha.DatabaseVersion\022\033\n" + "\023requires_db_restart\030\006 \001(\010\022H\n" - + "\005scope\030\t", - " \001(\01629.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope\032,\n" + + "\005scope\030\t \001(\01629.google.c" + + "loud.alloydb.v1alpha.SupportedDatabaseFlag.Scope\032,\n" + "\022StringRestrictions\022\026\n" + "\016allowed_values\030\001 \003(\t\032u\n" + "\023IntegerRestrictions\022.\n" @@ -817,24 +850,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021SCOPE_UNSPECIFIED\020\000\022\014\n" + "\010DATABASE\020\001\022\023\n" + "\017CONNECTION_POOL\020\002:\227\001\352A\223\001\n" - + ",alloydb.googleapis.com/SupportedDatabaseFlag\0224pro" - + "jects/{project}/locations/{location}/fla" - + "gs/{flag}*\026supportedDatabaseFlags2\025supportedDatabaseFlagB\016\n" + + ",alloydb.googleapis.com/SupportedDatabaseFlag\0224projects/{project}" + + "/locations/{location}/flags/{flag}*\026supp" + + "ortedDatabaseFlags2\025supportedDatabaseFlagB\016\n" + "\014restrictionsB\023\n" + "\021recommended_value\"\377\002\n" + "\004User\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\025\n" + "\010password\030\002 \001(\tB\003\340A\004\022\033\n" + "\016database_roles\030\004 \003(\tB\003\340A\001\022C\n" - + "\tuser_type\030\005 \001(\0162+.googl" - + "e.cloud.alloydb.v1alpha.User.UserTypeB\003\340A\001\022\035\n" + + "\tuser_type\030\005" + + " \001(\0162+.google.cloud.alloydb.v1alpha.User.UserTypeB\003\340A\001\022\035\n" + "\020keep_extra_roles\030\006 \001(\010B\003\340A\004\"Q\n" + "\010UserType\022\031\n" + "\025USER_TYPE_UNSPECIFIED\020\000\022\024\n" + "\020ALLOYDB_BUILT_IN\020\001\022\024\n" + "\020ALLOYDB_IAM_USER\020\002:y\352Av\n" - + "\033alloydb.googleapis.com/User\022Gprojects/{project}/locations/{location}/clusters" - + "/{cluster}/users/{user}*\005users2\004userR\001\001\"\202\003\n" + + "\033alloydb.googleapis.com/User\022Gprojects/{project}/loca" + + "tions/{location}/clusters/{cluster}/users/{user}*\005users2\004userR\001\001\"\202\003\n" + "\010Database\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\027\n" + "\007charset\030\002 \001(\tB\006\340A\001\340A\005\022\031\n" @@ -844,9 +877,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021database_template\030\006 \001(\tB\006\340A\004\340A\005\022&\n" + "\024is_template_database\030\007" + " \001(\010B\003\340A\001H\000\210\001\001:\216\001\352A\212\001\n" - + "\037alloydb.googleapis.com/Database\022Oprojects/{project}/l" - + "ocations/{location}/clusters/{cluster}/databases/{database}*" - + "\tdatabases2\010databaseR\001\001B\027\n" + + "\037alloydb.googleapis.com/Database\022Oprojects/{project}/locations/{locat" + + "ion}/clusters/{cluster}/databases/{database}*\tdatabases2\010databaseR\001\001B\027\n" + "\025_is_template_database*^\n" + "\014InstanceView\022\035\n" + "\031INSTANCE_VIEW_UNSPECIFIED\020\000\022\027\n" @@ -869,19 +901,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035SUBSCRIPTION_TYPE_UNSPECIFIED\020\000\022\014\n" + "\010STANDARD\020\001\022\t\n" + "\005TRIAL\020\002B\300\005\n" - + " com.google.cloud.alloydb.v1alphaB\016ResourcesProtoP\001Z:cloud.google.com/" - + "go/alloydb/apiv1alpha/alloydbpb;alloydbp" - + "b\252\002\034Google.Cloud.AlloyDb.V1Alpha\312\002\034Googl" - + "e\\Cloud\\AlloyDb\\V1alpha\352\002\037Google::Cloud::AlloyDB::V1alpha\352A\246\001\n" - + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects/{proje" - + "ct}/locations/{location}/keyRings/{key_r" - + "ing}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}\352AN\n" - + "\036compute." - + "googleapis.com/Network\022,projects/{project}/global/networks/{network}\352Ax\n" - + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{pr" - + "oject}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352Aw\n" - + "(compute.googleapis.com/ServiceAttachment\022Kpr" - + "ojects/{project}/regions/{region}/serviceAttachments/{service_attachment}b\006proto3" + + " com.google.cloud.alloydb.v1alphaB\016ResourcesP" + + "rotoP\001Z:cloud.google.com/go/alloydb/apiv" + + "1alpha/alloydbpb;alloydbpb\252\002\034Google.Clou" + + "d.AlloyDb.V1Alpha\312\002\034Google\\Cloud\\AlloyDb" + + "\\V1alpha\352\002\037Google::Cloud::AlloyDB::V1alpha\352A\246\001\n" + + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects/{project}/locations/{" + + "location}/keyRings/{key_ring}/cryptoKeys" + + "/{crypto_key}/cryptoKeyVersions/{crypto_key_version}\352AN\n" + + "\036compute.googleapis.com/" + + "Network\022,projects/{project}/global/networks/{network}\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project}/location" + + "s/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352Aw\n" + + "(compute.googleapis.com/ServiceAttachment\022Kprojects/{project" + + "}/regions/{region}/serviceAttachments/{service_attachment}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1198,7 +1231,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WritableNode", "Nodes", "QueryInsightsConfig", + "QueryInsightsInfo", "ObservabilityConfig", + "ObservabilityInstanceInfo", "ReadPoolConfig", "IpAddress", "PublicIpAddress", @@ -1245,8 +1280,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "QueryStringLength", "QueryPlansPerMinute", }); - internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceConfig_descriptor = + internal_static_google_cloud_alloydb_v1alpha_Instance_QueryInsightsInstanceInfo_descriptor = internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(3); + internal_static_google_cloud_alloydb_v1alpha_Instance_QueryInsightsInstanceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1alpha_Instance_QueryInsightsInstanceInfo_descriptor, + new java.lang.String[] { + "Enabled", + "RecordApplicationTags", + "RecordClientAddress", + "QueryStringLength", + "QueryPlansPerMinute", + }); + internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceConfig_descriptor = + internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(4); internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceConfig_descriptor, @@ -1262,8 +1309,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TrackClientAddress", "AssistiveExperiencesEnabled", }); + internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceInfo_descriptor = + internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(5); + internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceInfo_descriptor, + new java.lang.String[] { + "Enabled", + "PreserveComments", + "TrackWaitEvents", + "TrackWaitEventTypes", + "MaxQueryStringLength", + "RecordApplicationTags", + "QueryPlansPerMinute", + "TrackActiveQueries", + "TrackClientAddress", + "AssistiveExperiencesEnabled", + "TrackActiveQueryPlan", + }); internal_static_google_cloud_alloydb_v1alpha_Instance_ReadPoolConfig_descriptor = - internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(4); + internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(6); internal_static_google_cloud_alloydb_v1alpha_Instance_ReadPoolConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_Instance_ReadPoolConfig_descriptor, @@ -1271,7 +1336,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeCount", }); internal_static_google_cloud_alloydb_v1alpha_Instance_UpdatePolicy_descriptor = - internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(5); + internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(7); internal_static_google_cloud_alloydb_v1alpha_Instance_UpdatePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_Instance_UpdatePolicy_descriptor, @@ -1279,7 +1344,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Mode", }); internal_static_google_cloud_alloydb_v1alpha_Instance_ClientConnectionConfig_descriptor = - internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(6); + internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(8); internal_static_google_cloud_alloydb_v1alpha_Instance_ClientConnectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_Instance_ClientConnectionConfig_descriptor, @@ -1287,7 +1352,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequireConnectors", "SslConfig", }); internal_static_google_cloud_alloydb_v1alpha_Instance_PscInterfaceConfig_descriptor = - internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(7); + internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(9); internal_static_google_cloud_alloydb_v1alpha_Instance_PscInterfaceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_Instance_PscInterfaceConfig_descriptor, @@ -1295,7 +1360,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkAttachmentResource", }); internal_static_google_cloud_alloydb_v1alpha_Instance_PscAutoConnectionConfig_descriptor = - internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(8); + internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(10); internal_static_google_cloud_alloydb_v1alpha_Instance_PscAutoConnectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_Instance_PscAutoConnectionConfig_descriptor, @@ -1303,7 +1368,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConsumerProject", "ConsumerNetwork", "IpAddress", "Status", "ConsumerNetworkStatus", }); internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceConfig_descriptor = - internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(9); + internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(11); internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceConfig_descriptor, @@ -1317,7 +1382,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PscAutoConnectionPolicyState", }); internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceInfo_descriptor = - internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(10); + internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(12); internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceInfo_descriptor, @@ -1328,7 +1393,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceConnectionPolicy", }); internal_static_google_cloud_alloydb_v1alpha_Instance_InstanceNetworkConfig_descriptor = - internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(11); + internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(13); internal_static_google_cloud_alloydb_v1alpha_Instance_InstanceNetworkConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_Instance_InstanceNetworkConfig_descriptor, @@ -1349,7 +1414,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CidrRange", }); internal_static_google_cloud_alloydb_v1alpha_Instance_ConnectionPoolConfig_descriptor = - internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(12); + internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(14); internal_static_google_cloud_alloydb_v1alpha_Instance_ConnectionPoolConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_Instance_ConnectionPoolConfig_descriptor, @@ -1366,7 +1431,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1alpha_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(13); + internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(15); internal_static_google_cloud_alloydb_v1alpha_Instance_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_Instance_LabelsEntry_descriptor, @@ -1374,7 +1439,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1alpha_Instance_DatabaseFlagsEntry_descriptor = - internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(14); + internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(16); internal_static_google_cloud_alloydb_v1alpha_Instance_DatabaseFlagsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_Instance_DatabaseFlagsEntry_descriptor, @@ -1382,7 +1447,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1alpha_Instance_AnnotationsEntry_descriptor = - internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(15); + internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(17); internal_static_google_cloud_alloydb_v1alpha_Instance_AnnotationsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_Instance_AnnotationsEntry_descriptor, diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/proto/google/cloud/alloydb/v1alpha/resources.proto b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/proto/google/cloud/alloydb/v1alpha/resources.proto index e315ef47b6d2..946f937c3bf9 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/proto/google/cloud/alloydb/v1alpha/resources.proto +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/proto/google/cloud/alloydb/v1alpha/resources.proto @@ -867,6 +867,27 @@ message Instance { optional uint32 query_plans_per_minute = 5; } + // Instance level Query Insights information, which is read-only and available + // in the output only. + message QueryInsightsInstanceInfo { + // Output only. Whether Query Insights is enabled. + bool enabled = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether to record application tags. + bool record_application_tags = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether to record client address. + bool record_client_address = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Maximum query string length. + uint32 query_string_length = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of query execution plans captured per minute. + uint32 query_plans_per_minute = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // Observability Instance specific configuration. message ObservabilityInstanceConfig { // Observability feature status for an instance. @@ -913,6 +934,50 @@ message Instance { optional bool assistive_experiences_enabled = 10; } + message ObservabilityInstanceInfo { + // Output only. Observability feature status for an instance. + bool enabled = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Preserve comments in query string for an instance. + bool preserve_comments = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Track wait events during query execution for an instance. + bool track_wait_events = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Track wait event types during query execution for an + // instance. + bool track_wait_event_types = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Query string length. The default value is 10k. + int32 max_query_string_length = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Record application tags for an instance. + bool record_application_tags = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of query execution plans captured by Insights per + // minute for all queries combined. + int32 query_plans_per_minute = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Track actively running queries on the instance. + bool track_active_queries = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Track client address for an instance. + bool track_client_address = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether assistive experiences are enabled for this AlloyDB + // instance. + bool assistive_experiences_enabled = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates whether to track active query plans for an + // instance. Deprecated: Use track_active_queries instead. + bool track_active_query_plan = 13 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; + } + // Configuration for a read pool instance. message ReadPoolConfig { // Read capacity, i.e. number of nodes in a read pool instance. @@ -1331,9 +1396,23 @@ message Instance { // Configuration for query insights. QueryInsightsInstanceConfig query_insights_config = 21; + // Output only. Instance level Query Insights information, which is read-only + // and available in the output only. Contains the effective query insights + // settings for this instance, by merging customer's provided + // `QueryInsightsInstanceConfig` with the Query Insights defaults. + QueryInsightsInstanceInfo query_insights_info = 47 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Configuration for observability. ObservabilityInstanceConfig observability_config = 26; + // Output only. Instance level observability information, contains the + // effective values of observability settings for this instance, by merging + // customer's provided `ObservabilityInstanceConfig` with the + // Observability defaults. + ObservabilityInstanceInfo observability_instance_info = 44 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Read pool instance configuration. // This is required if the value of instanceType is READ_POOL. ReadPoolConfig read_pool_config = 14; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfo.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfo.java index 3444631b4d67..d5fdc0ab7bf2 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfo.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfo.java @@ -271,7 +271,7 @@ public com.google.protobuf.ByteString getPublicIpAddressBytes() { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1450 + * google/cloud/alloydb/v1beta/resources.proto;l=1529 * @return A list containing the pemCertificateChain. */ @java.lang.Deprecated @@ -292,7 +292,7 @@ public com.google.protobuf.ProtocolStringList getPemCertificateChainList() { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1450 + * google/cloud/alloydb/v1beta/resources.proto;l=1529 * @return The count of pemCertificateChain. */ @java.lang.Deprecated @@ -313,7 +313,7 @@ public int getPemCertificateChainCount() { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1450 + * google/cloud/alloydb/v1beta/resources.proto;l=1529 * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -335,7 +335,7 @@ public java.lang.String getPemCertificateChain(int index) { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1450 + * google/cloud/alloydb/v1beta/resources.proto;l=1529 * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ @@ -1369,7 +1369,7 @@ private void ensurePemCertificateChainIsMutable() { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1450 + * See google/cloud/alloydb/v1beta/resources.proto;l=1529 * @return A list containing the pemCertificateChain. */ @java.lang.Deprecated @@ -1391,7 +1391,7 @@ public com.google.protobuf.ProtocolStringList getPemCertificateChainList() { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1450 + * See google/cloud/alloydb/v1beta/resources.proto;l=1529 * @return The count of pemCertificateChain. */ @java.lang.Deprecated @@ -1412,7 +1412,7 @@ public int getPemCertificateChainCount() { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1450 + * See google/cloud/alloydb/v1beta/resources.proto;l=1529 * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -1434,7 +1434,7 @@ public java.lang.String getPemCertificateChain(int index) { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1450 + * See google/cloud/alloydb/v1beta/resources.proto;l=1529 * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ @@ -1456,7 +1456,7 @@ public com.google.protobuf.ByteString getPemCertificateChainBytes(int index) { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1450 + * See google/cloud/alloydb/v1beta/resources.proto;l=1529 * @param index The index to set the value at. * @param value The pemCertificateChain to set. * @return This builder for chaining. @@ -1486,7 +1486,7 @@ public Builder setPemCertificateChain(int index, java.lang.String value) { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1450 + * See google/cloud/alloydb/v1beta/resources.proto;l=1529 * @param value The pemCertificateChain to add. * @return This builder for chaining. */ @@ -1515,7 +1515,7 @@ public Builder addPemCertificateChain(java.lang.String value) { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1450 + * See google/cloud/alloydb/v1beta/resources.proto;l=1529 * @param values The pemCertificateChain to add. * @return This builder for chaining. */ @@ -1541,7 +1541,7 @@ public Builder addAllPemCertificateChain(java.lang.Iterable va * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1450 + * See google/cloud/alloydb/v1beta/resources.proto;l=1529 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1566,7 +1566,7 @@ public Builder clearPemCertificateChain() { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1450 + * See google/cloud/alloydb/v1beta/resources.proto;l=1529 * @param value The bytes of the pemCertificateChain to add. * @return This builder for chaining. */ diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfoOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfoOrBuilder.java index d8137949889c..ee4ea7c5ac05 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfoOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfoOrBuilder.java @@ -133,7 +133,7 @@ public interface ConnectionInfoOrBuilder * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1450 + * google/cloud/alloydb/v1beta/resources.proto;l=1529 * @return A list containing the pemCertificateChain. */ @java.lang.Deprecated @@ -152,7 +152,7 @@ public interface ConnectionInfoOrBuilder * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1450 + * google/cloud/alloydb/v1beta/resources.proto;l=1529 * @return The count of pemCertificateChain. */ @java.lang.Deprecated @@ -171,7 +171,7 @@ public interface ConnectionInfoOrBuilder * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1450 + * google/cloud/alloydb/v1beta/resources.proto;l=1529 * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -191,7 +191,7 @@ public interface ConnectionInfoOrBuilder * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1450 + * google/cloud/alloydb/v1beta/resources.proto;l=1529 * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Database.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Database.java index c70d3134f8ed..38578a534130 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Database.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Database.java @@ -327,7 +327,7 @@ public com.google.protobuf.ByteString getCharacterTypeBytes() { * bool is_template = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.alloydb.v1beta.Database.is_template is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1844 + * google/cloud/alloydb/v1beta/resources.proto;l=1923 * @return The isTemplate. */ @java.lang.Override @@ -1409,7 +1409,7 @@ public Builder setCharacterTypeBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.alloydb.v1beta.Database.is_template is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1844 + * google/cloud/alloydb/v1beta/resources.proto;l=1923 * @return The isTemplate. */ @java.lang.Override @@ -1430,7 +1430,7 @@ public boolean getIsTemplate() { * * * @deprecated google.cloud.alloydb.v1beta.Database.is_template is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1844 + * google/cloud/alloydb/v1beta/resources.proto;l=1923 * @param value The isTemplate to set. * @return This builder for chaining. */ @@ -1455,7 +1455,7 @@ public Builder setIsTemplate(boolean value) { * * * @deprecated google.cloud.alloydb.v1beta.Database.is_template is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1844 + * google/cloud/alloydb/v1beta/resources.proto;l=1923 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/DatabaseOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/DatabaseOrBuilder.java index e6e062a0c89b..e0614b62e473 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/DatabaseOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/DatabaseOrBuilder.java @@ -167,7 +167,7 @@ public interface DatabaseOrBuilder * bool is_template = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.alloydb.v1beta.Database.is_template is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1844 + * google/cloud/alloydb/v1beta/resources.proto;l=1923 * @return The isTemplate. */ @java.lang.Deprecated diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Instance.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Instance.java index f818f1cb6200..c9e10b5d5843 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Instance.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Instance.java @@ -4209,34 +4209,19 @@ public com.google.protobuf.Parser getParserForType( } } - public interface ObservabilityInstanceConfigOrBuilder + public interface QueryInsightsInstanceInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig) + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo) com.google.protobuf.MessageOrBuilder { /** * * *
-     * Observability feature status for an instance.
-     * This flag is turned "off" by default.
-     * 
- * - * optional bool enabled = 1; - * - * @return Whether the enabled field is set. - */ - boolean hasEnabled(); - - /** - * - * - *
-     * Observability feature status for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Whether Query Insights is enabled.
      * 
* - * optional bool enabled = 1; + * bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The enabled. */ @@ -4246,605 +4231,3416 @@ public interface ObservabilityInstanceConfigOrBuilder * * *
-     * Preserve comments in query string for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Whether to record application tags.
      * 
* - * optional bool preserve_comments = 2; + * bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the preserveComments field is set. + * @return The recordApplicationTags. */ - boolean hasPreserveComments(); + boolean getRecordApplicationTags(); /** * * *
-     * Preserve comments in query string for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Whether to record client address.
      * 
* - * optional bool preserve_comments = 2; + * bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The preserveComments. + * @return The recordClientAddress. */ - boolean getPreserveComments(); + boolean getRecordClientAddress(); /** * * *
-     * Track wait events during query execution for an instance.
-     * This flag is turned "on" by default but tracking is enabled only after
-     * observability enabled flag is also turned on.
+     * Output only. Maximum query string length.
      * 
* - * optional bool track_wait_events = 3; + * uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the trackWaitEvents field is set. + * @return The queryStringLength. */ - boolean hasTrackWaitEvents(); + int getQueryStringLength(); /** * * *
-     * Track wait events during query execution for an instance.
-     * This flag is turned "on" by default but tracking is enabled only after
-     * observability enabled flag is also turned on.
+     * Output only. Number of query execution plans captured per minute.
      * 
* - * optional bool track_wait_events = 3; + * uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The trackWaitEvents. + * @return The queryPlansPerMinute. */ - boolean getTrackWaitEvents(); + int getQueryPlansPerMinute(); + } - /** - * - * - *
-     * Output only. Track wait event types during query execution for an
-     * instance. This flag is turned "on" by default but tracking is enabled
-     * only after observability enabled flag is also turned on. This is
-     * read-only flag and only modifiable by internal API.
-     * 
- * - * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the trackWaitEventTypes field is set. - */ - boolean hasTrackWaitEventTypes(); + /** + * + * + *
+   * Instance level Query Insights information, which is read-only and available
+   * in the output only.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo} + */ + public static final class QueryInsightsInstanceInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo) + QueryInsightsInstanceInfoOrBuilder { + private static final long serialVersionUID = 0L; - /** - * - * - *
-     * Output only. Track wait event types during query execution for an
-     * instance. This flag is turned "on" by default but tracking is enabled
-     * only after observability enabled flag is also turned on. This is
-     * read-only flag and only modifiable by internal API.
-     * 
- * - * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The trackWaitEventTypes. - */ - boolean getTrackWaitEventTypes(); + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "QueryInsightsInstanceInfo"); + } - /** - * - * - *
-     * Query string length. The default value is 10k.
-     * 
- * - * optional int32 max_query_string_length = 5; - * - * @return Whether the maxQueryStringLength field is set. - */ - boolean hasMaxQueryStringLength(); + // Use QueryInsightsInstanceInfo.newBuilder() to construct. + private QueryInsightsInstanceInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - /** - * - * - *
-     * Query string length. The default value is 10k.
-     * 
- * - * optional int32 max_query_string_length = 5; - * - * @return The maxQueryStringLength. - */ - int getMaxQueryStringLength(); + private QueryInsightsInstanceInfo() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_QueryInsightsInstanceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_QueryInsightsInstanceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo.class, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; /** * * *
-     * Record application tags for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Whether Query Insights is enabled.
      * 
* - * optional bool record_application_tags = 6; + * bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the recordApplicationTags field is set. + * @return The enabled. */ - boolean hasRecordApplicationTags(); + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 2; + private boolean recordApplicationTags_ = false; /** * * *
-     * Record application tags for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Whether to record application tags.
      * 
* - * optional bool record_application_tags = 6; + * bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The recordApplicationTags. */ - boolean getRecordApplicationTags(); + @java.lang.Override + public boolean getRecordApplicationTags() { + return recordApplicationTags_; + } - /** - * - * - *
-     * Number of query execution plans captured by Insights per minute
-     * for all queries combined. The default value is 200.
-     * Any integer between 0 to 200 is considered valid.
-     * 
- * - * optional int32 query_plans_per_minute = 7; - * - * @return Whether the queryPlansPerMinute field is set. - */ - boolean hasQueryPlansPerMinute(); + public static final int RECORD_CLIENT_ADDRESS_FIELD_NUMBER = 3; + private boolean recordClientAddress_ = false; /** * * *
-     * Number of query execution plans captured by Insights per minute
-     * for all queries combined. The default value is 200.
-     * Any integer between 0 to 200 is considered valid.
+     * Output only. Whether to record client address.
      * 
* - * optional int32 query_plans_per_minute = 7; + * bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The queryPlansPerMinute. + * @return The recordClientAddress. */ - int getQueryPlansPerMinute(); + @java.lang.Override + public boolean getRecordClientAddress() { + return recordClientAddress_; + } - /** - * - * - *
-     * Track actively running queries on the instance.
-     * If not set, this flag is "off" by default.
-     * 
- * - * optional bool track_active_queries = 8; - * - * @return Whether the trackActiveQueries field is set. - */ - boolean hasTrackActiveQueries(); + public static final int QUERY_STRING_LENGTH_FIELD_NUMBER = 4; + private int queryStringLength_ = 0; /** * * *
-     * Track actively running queries on the instance.
-     * If not set, this flag is "off" by default.
+     * Output only. Maximum query string length.
      * 
* - * optional bool track_active_queries = 8; + * uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The trackActiveQueries. + * @return The queryStringLength. */ - boolean getTrackActiveQueries(); + @java.lang.Override + public int getQueryStringLength() { + return queryStringLength_; + } - /** - * - * - *
-     * Track client address for an instance.
-     * If not set, default value is "off".
-     * 
- * - * optional bool track_client_address = 9; - * - * @return Whether the trackClientAddress field is set. - */ - boolean hasTrackClientAddress(); + public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 5; + private int queryPlansPerMinute_ = 0; /** * * *
-     * Track client address for an instance.
-     * If not set, default value is "off".
+     * Output only. Number of query execution plans captured per minute.
      * 
* - * optional bool track_client_address = 9; + * uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The trackClientAddress. + * @return The queryPlansPerMinute. */ - boolean getTrackClientAddress(); + @java.lang.Override + public int getQueryPlansPerMinute() { + return queryPlansPerMinute_; + } - /** - * - * - *
-     * Whether assistive experiences are enabled for this AlloyDB instance.
-     * 
- * - * optional bool assistive_experiences_enabled = 10; - * - * @return Whether the assistiveExperiencesEnabled field is set. - */ - boolean hasAssistiveExperiencesEnabled(); + private byte memoizedIsInitialized = -1; - /** - * - * - *
-     * Whether assistive experiences are enabled for this AlloyDB instance.
-     * 
+ @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (recordApplicationTags_ != false) { + output.writeBool(2, recordApplicationTags_); + } + if (recordClientAddress_ != false) { + output.writeBool(3, recordClientAddress_); + } + if (queryStringLength_ != 0) { + output.writeUInt32(4, queryStringLength_); + } + if (queryPlansPerMinute_ != 0) { + output.writeUInt32(5, queryPlansPerMinute_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + if (recordApplicationTags_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, recordApplicationTags_); + } + if (recordClientAddress_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, recordClientAddress_); + } + if (queryStringLength_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(4, queryStringLength_); + } + if (queryPlansPerMinute_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(5, queryPlansPerMinute_); + } + 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.alloydb.v1beta.Instance.QueryInsightsInstanceInfo)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo other = + (com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false; + if (getRecordClientAddress() != other.getRecordClientAddress()) return false; + if (getQueryStringLength() != other.getQueryStringLength()) return false; + if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) 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) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags()); + hash = (37 * hash) + RECORD_CLIENT_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordClientAddress()); + hash = (37 * hash) + QUERY_STRING_LENGTH_FIELD_NUMBER; + hash = (53 * hash) + getQueryStringLength(); + hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER; + hash = (53 * hash) + getQueryPlansPerMinute(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo 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.alloydb.v1beta.Instance.QueryInsightsInstanceInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo 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.alloydb.v1beta.Instance.QueryInsightsInstanceInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo 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.alloydb.v1beta.Instance.QueryInsightsInstanceInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo + 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.alloydb.v1beta.Instance.QueryInsightsInstanceInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo 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.alloydb.v1beta.Instance.QueryInsightsInstanceInfo 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; + } + + /** * - * optional bool assistive_experiences_enabled = 10; * - * @return The assistiveExperiencesEnabled. + *
+     * Instance level Query Insights information, which is read-only and available
+     * in the output only.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo} */ - boolean getAssistiveExperiencesEnabled(); - } + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo) + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_QueryInsightsInstanceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_QueryInsightsInstanceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo.class, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo.Builder.class); + } + + // Construct using + // com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + recordApplicationTags_ = false; + recordClientAddress_ = false; + queryStringLength_ = 0; + queryPlansPerMinute_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_QueryInsightsInstanceInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo build() { + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo buildPartial() { + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo result = + new com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.recordApplicationTags_ = recordApplicationTags_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.recordClientAddress_ = recordClientAddress_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.queryStringLength_ = queryStringLength_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.queryPlansPerMinute_ = queryPlansPerMinute_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo) { + return mergeFrom( + (com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo other) { + if (other + == com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo + .getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (other.getRecordApplicationTags() != false) { + setRecordApplicationTags(other.getRecordApplicationTags()); + } + if (other.getRecordClientAddress() != false) { + setRecordClientAddress(other.getRecordClientAddress()); + } + if (other.getQueryStringLength() != 0) { + setQueryStringLength(other.getQueryStringLength()); + } + if (other.getQueryPlansPerMinute() != 0) { + setQueryPlansPerMinute(other.getQueryPlansPerMinute()); + } + 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 8: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + recordApplicationTags_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + recordClientAddress_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + queryStringLength_ = input.readUInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + queryPlansPerMinute_ = input.readUInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + 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 boolean enabled_; + + /** + * + * + *
+       * Output only. Whether Query Insights is enabled.
+       * 
+ * + * bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + /** + * + * + *
+       * Output only. Whether Query Insights is enabled.
+       * 
+ * + * bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Whether Query Insights is enabled.
+       * 
+ * + * bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private boolean recordApplicationTags_; + + /** + * + * + *
+       * Output only. Whether to record application tags.
+       * 
+ * + * bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The recordApplicationTags. + */ + @java.lang.Override + public boolean getRecordApplicationTags() { + return recordApplicationTags_; + } + + /** + * + * + *
+       * Output only. Whether to record application tags.
+       * 
+ * + * bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The recordApplicationTags to set. + * @return This builder for chaining. + */ + public Builder setRecordApplicationTags(boolean value) { + + recordApplicationTags_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Whether to record application tags.
+       * 
+ * + * bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRecordApplicationTags() { + bitField0_ = (bitField0_ & ~0x00000002); + recordApplicationTags_ = false; + onChanged(); + return this; + } + + private boolean recordClientAddress_; + + /** + * + * + *
+       * Output only. Whether to record client address.
+       * 
+ * + * bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The recordClientAddress. + */ + @java.lang.Override + public boolean getRecordClientAddress() { + return recordClientAddress_; + } + + /** + * + * + *
+       * Output only. Whether to record client address.
+       * 
+ * + * bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The recordClientAddress to set. + * @return This builder for chaining. + */ + public Builder setRecordClientAddress(boolean value) { + + recordClientAddress_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Whether to record client address.
+       * 
+ * + * bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRecordClientAddress() { + bitField0_ = (bitField0_ & ~0x00000004); + recordClientAddress_ = false; + onChanged(); + return this; + } + + private int queryStringLength_; + + /** + * + * + *
+       * Output only. Maximum query string length.
+       * 
+ * + * uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The queryStringLength. + */ + @java.lang.Override + public int getQueryStringLength() { + return queryStringLength_; + } + + /** + * + * + *
+       * Output only. Maximum query string length.
+       * 
+ * + * uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The queryStringLength to set. + * @return This builder for chaining. + */ + public Builder setQueryStringLength(int value) { + + queryStringLength_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Maximum query string length.
+       * 
+ * + * uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearQueryStringLength() { + bitField0_ = (bitField0_ & ~0x00000008); + queryStringLength_ = 0; + onChanged(); + return this; + } + + private int queryPlansPerMinute_; + + /** + * + * + *
+       * Output only. Number of query execution plans captured per minute.
+       * 
+ * + * uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The queryPlansPerMinute. + */ + @java.lang.Override + public int getQueryPlansPerMinute() { + return queryPlansPerMinute_; + } + + /** + * + * + *
+       * Output only. Number of query execution plans captured per minute.
+       * 
+ * + * uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The queryPlansPerMinute to set. + * @return This builder for chaining. + */ + public Builder setQueryPlansPerMinute(int value) { + + queryPlansPerMinute_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Number of query execution plans captured per minute.
+       * 
+ * + * uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearQueryPlansPerMinute() { + bitField0_ = (bitField0_ & ~0x00000010); + queryPlansPerMinute_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo) + private static final com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo(); + } + + public static com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryInsightsInstanceInfo 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.alloydb.v1beta.Instance.QueryInsightsInstanceInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ObservabilityInstanceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Observability feature status for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ + boolean hasEnabled(); + + /** + * + * + *
+     * Observability feature status for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
+     * Preserve comments in query string for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool preserve_comments = 2; + * + * @return Whether the preserveComments field is set. + */ + boolean hasPreserveComments(); + + /** + * + * + *
+     * Preserve comments in query string for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool preserve_comments = 2; + * + * @return The preserveComments. + */ + boolean getPreserveComments(); + + /** + * + * + *
+     * Track wait events during query execution for an instance.
+     * This flag is turned "on" by default but tracking is enabled only after
+     * observability enabled flag is also turned on.
+     * 
+ * + * optional bool track_wait_events = 3; + * + * @return Whether the trackWaitEvents field is set. + */ + boolean hasTrackWaitEvents(); + + /** + * + * + *
+     * Track wait events during query execution for an instance.
+     * This flag is turned "on" by default but tracking is enabled only after
+     * observability enabled flag is also turned on.
+     * 
+ * + * optional bool track_wait_events = 3; + * + * @return The trackWaitEvents. + */ + boolean getTrackWaitEvents(); + + /** + * + * + *
+     * Output only. Track wait event types during query execution for an
+     * instance. This flag is turned "on" by default but tracking is enabled
+     * only after observability enabled flag is also turned on. This is
+     * read-only flag and only modifiable by internal API.
+     * 
+ * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the trackWaitEventTypes field is set. + */ + boolean hasTrackWaitEventTypes(); + + /** + * + * + *
+     * Output only. Track wait event types during query execution for an
+     * instance. This flag is turned "on" by default but tracking is enabled
+     * only after observability enabled flag is also turned on. This is
+     * read-only flag and only modifiable by internal API.
+     * 
+ * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The trackWaitEventTypes. + */ + boolean getTrackWaitEventTypes(); + + /** + * + * + *
+     * Query string length. The default value is 10k.
+     * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return Whether the maxQueryStringLength field is set. + */ + boolean hasMaxQueryStringLength(); + + /** + * + * + *
+     * Query string length. The default value is 10k.
+     * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return The maxQueryStringLength. + */ + int getMaxQueryStringLength(); + + /** + * + * + *
+     * Record application tags for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool record_application_tags = 6; + * + * @return Whether the recordApplicationTags field is set. + */ + boolean hasRecordApplicationTags(); + + /** + * + * + *
+     * Record application tags for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool record_application_tags = 6; + * + * @return The recordApplicationTags. + */ + boolean getRecordApplicationTags(); + + /** + * + * + *
+     * Number of query execution plans captured by Insights per minute
+     * for all queries combined. The default value is 200.
+     * Any integer between 0 to 200 is considered valid.
+     * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return Whether the queryPlansPerMinute field is set. + */ + boolean hasQueryPlansPerMinute(); + + /** + * + * + *
+     * Number of query execution plans captured by Insights per minute
+     * for all queries combined. The default value is 200.
+     * Any integer between 0 to 200 is considered valid.
+     * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return The queryPlansPerMinute. + */ + int getQueryPlansPerMinute(); + + /** + * + * + *
+     * Track actively running queries on the instance.
+     * If not set, this flag is "off" by default.
+     * 
+ * + * optional bool track_active_queries = 8; + * + * @return Whether the trackActiveQueries field is set. + */ + boolean hasTrackActiveQueries(); + + /** + * + * + *
+     * Track actively running queries on the instance.
+     * If not set, this flag is "off" by default.
+     * 
+ * + * optional bool track_active_queries = 8; + * + * @return The trackActiveQueries. + */ + boolean getTrackActiveQueries(); + + /** + * + * + *
+     * Track client address for an instance.
+     * If not set, default value is "off".
+     * 
+ * + * optional bool track_client_address = 9; + * + * @return Whether the trackClientAddress field is set. + */ + boolean hasTrackClientAddress(); + + /** + * + * + *
+     * Track client address for an instance.
+     * If not set, default value is "off".
+     * 
+ * + * optional bool track_client_address = 9; + * + * @return The trackClientAddress. + */ + boolean getTrackClientAddress(); + + /** + * + * + *
+     * Whether assistive experiences are enabled for this AlloyDB instance.
+     * 
+ * + * optional bool assistive_experiences_enabled = 10; + * + * @return Whether the assistiveExperiencesEnabled field is set. + */ + boolean hasAssistiveExperiencesEnabled(); + + /** + * + * + *
+     * Whether assistive experiences are enabled for this AlloyDB instance.
+     * 
+ * + * optional bool assistive_experiences_enabled = 10; + * + * @return The assistiveExperiencesEnabled. + */ + boolean getAssistiveExperiencesEnabled(); + } + + /** + * + * + *
+   * Observability Instance specific configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig} + */ + public static final class ObservabilityInstanceConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig) + ObservabilityInstanceConfigOrBuilder { + 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= */ "", + "ObservabilityInstanceConfig"); + } + + // Use ObservabilityInstanceConfig.newBuilder() to construct. + private ObservabilityInstanceConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ObservabilityInstanceConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.class, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.Builder.class); + } + + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + + /** + * + * + *
+     * Observability feature status for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ + @java.lang.Override + public boolean hasEnabled() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Observability feature status for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int PRESERVE_COMMENTS_FIELD_NUMBER = 2; + private boolean preserveComments_ = false; + + /** + * + * + *
+     * Preserve comments in query string for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool preserve_comments = 2; + * + * @return Whether the preserveComments field is set. + */ + @java.lang.Override + public boolean hasPreserveComments() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Preserve comments in query string for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool preserve_comments = 2; + * + * @return The preserveComments. + */ + @java.lang.Override + public boolean getPreserveComments() { + return preserveComments_; + } + + public static final int TRACK_WAIT_EVENTS_FIELD_NUMBER = 3; + private boolean trackWaitEvents_ = false; + + /** + * + * + *
+     * Track wait events during query execution for an instance.
+     * This flag is turned "on" by default but tracking is enabled only after
+     * observability enabled flag is also turned on.
+     * 
+ * + * optional bool track_wait_events = 3; + * + * @return Whether the trackWaitEvents field is set. + */ + @java.lang.Override + public boolean hasTrackWaitEvents() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Track wait events during query execution for an instance.
+     * This flag is turned "on" by default but tracking is enabled only after
+     * observability enabled flag is also turned on.
+     * 
+ * + * optional bool track_wait_events = 3; + * + * @return The trackWaitEvents. + */ + @java.lang.Override + public boolean getTrackWaitEvents() { + return trackWaitEvents_; + } + + public static final int TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER = 4; + private boolean trackWaitEventTypes_ = false; + + /** + * + * + *
+     * Output only. Track wait event types during query execution for an
+     * instance. This flag is turned "on" by default but tracking is enabled
+     * only after observability enabled flag is also turned on. This is
+     * read-only flag and only modifiable by internal API.
+     * 
+ * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the trackWaitEventTypes field is set. + */ + @java.lang.Override + public boolean hasTrackWaitEventTypes() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. Track wait event types during query execution for an
+     * instance. This flag is turned "on" by default but tracking is enabled
+     * only after observability enabled flag is also turned on. This is
+     * read-only flag and only modifiable by internal API.
+     * 
+ * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The trackWaitEventTypes. + */ + @java.lang.Override + public boolean getTrackWaitEventTypes() { + return trackWaitEventTypes_; + } + + public static final int MAX_QUERY_STRING_LENGTH_FIELD_NUMBER = 5; + private int maxQueryStringLength_ = 0; + + /** + * + * + *
+     * Query string length. The default value is 10k.
+     * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return Whether the maxQueryStringLength field is set. + */ + @java.lang.Override + public boolean hasMaxQueryStringLength() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Query string length. The default value is 10k.
+     * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return The maxQueryStringLength. + */ + @java.lang.Override + public int getMaxQueryStringLength() { + return maxQueryStringLength_; + } + + public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 6; + private boolean recordApplicationTags_ = false; + + /** + * + * + *
+     * Record application tags for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool record_application_tags = 6; + * + * @return Whether the recordApplicationTags field is set. + */ + @java.lang.Override + public boolean hasRecordApplicationTags() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Record application tags for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool record_application_tags = 6; + * + * @return The recordApplicationTags. + */ + @java.lang.Override + public boolean getRecordApplicationTags() { + return recordApplicationTags_; + } + + public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 7; + private int queryPlansPerMinute_ = 0; + + /** + * + * + *
+     * Number of query execution plans captured by Insights per minute
+     * for all queries combined. The default value is 200.
+     * Any integer between 0 to 200 is considered valid.
+     * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return Whether the queryPlansPerMinute field is set. + */ + @java.lang.Override + public boolean hasQueryPlansPerMinute() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Number of query execution plans captured by Insights per minute
+     * for all queries combined. The default value is 200.
+     * Any integer between 0 to 200 is considered valid.
+     * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return The queryPlansPerMinute. + */ + @java.lang.Override + public int getQueryPlansPerMinute() { + return queryPlansPerMinute_; + } + + public static final int TRACK_ACTIVE_QUERIES_FIELD_NUMBER = 8; + private boolean trackActiveQueries_ = false; + + /** + * + * + *
+     * Track actively running queries on the instance.
+     * If not set, this flag is "off" by default.
+     * 
+ * + * optional bool track_active_queries = 8; + * + * @return Whether the trackActiveQueries field is set. + */ + @java.lang.Override + public boolean hasTrackActiveQueries() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Track actively running queries on the instance.
+     * If not set, this flag is "off" by default.
+     * 
+ * + * optional bool track_active_queries = 8; + * + * @return The trackActiveQueries. + */ + @java.lang.Override + public boolean getTrackActiveQueries() { + return trackActiveQueries_; + } + + public static final int TRACK_CLIENT_ADDRESS_FIELD_NUMBER = 9; + private boolean trackClientAddress_ = false; + + /** + * + * + *
+     * Track client address for an instance.
+     * If not set, default value is "off".
+     * 
+ * + * optional bool track_client_address = 9; + * + * @return Whether the trackClientAddress field is set. + */ + @java.lang.Override + public boolean hasTrackClientAddress() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Track client address for an instance.
+     * If not set, default value is "off".
+     * 
+ * + * optional bool track_client_address = 9; + * + * @return The trackClientAddress. + */ + @java.lang.Override + public boolean getTrackClientAddress() { + return trackClientAddress_; + } + + public static final int ASSISTIVE_EXPERIENCES_ENABLED_FIELD_NUMBER = 10; + private boolean assistiveExperiencesEnabled_ = false; + + /** + * + * + *
+     * Whether assistive experiences are enabled for this AlloyDB instance.
+     * 
+ * + * optional bool assistive_experiences_enabled = 10; + * + * @return Whether the assistiveExperiencesEnabled field is set. + */ + @java.lang.Override + public boolean hasAssistiveExperiencesEnabled() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Whether assistive experiences are enabled for this AlloyDB instance.
+     * 
+ * + * optional bool assistive_experiences_enabled = 10; + * + * @return The assistiveExperiencesEnabled. + */ + @java.lang.Override + public boolean getAssistiveExperiencesEnabled() { + return assistiveExperiencesEnabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(1, enabled_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(2, preserveComments_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(3, trackWaitEvents_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(4, trackWaitEventTypes_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt32(5, maxQueryStringLength_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeBool(6, recordApplicationTags_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeInt32(7, queryPlansPerMinute_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeBool(8, trackActiveQueries_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeBool(9, trackClientAddress_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeBool(10, assistiveExperiencesEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, preserveComments_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, trackWaitEvents_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, trackWaitEventTypes_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxQueryStringLength_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, recordApplicationTags_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, queryPlansPerMinute_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, trackActiveQueries_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, trackClientAddress_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(10, assistiveExperiencesEnabled_); + } + 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.alloydb.v1beta.Instance.ObservabilityInstanceConfig)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig other = + (com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig) obj; + + if (hasEnabled() != other.hasEnabled()) return false; + if (hasEnabled()) { + if (getEnabled() != other.getEnabled()) return false; + } + if (hasPreserveComments() != other.hasPreserveComments()) return false; + if (hasPreserveComments()) { + if (getPreserveComments() != other.getPreserveComments()) return false; + } + if (hasTrackWaitEvents() != other.hasTrackWaitEvents()) return false; + if (hasTrackWaitEvents()) { + if (getTrackWaitEvents() != other.getTrackWaitEvents()) return false; + } + if (hasTrackWaitEventTypes() != other.hasTrackWaitEventTypes()) return false; + if (hasTrackWaitEventTypes()) { + if (getTrackWaitEventTypes() != other.getTrackWaitEventTypes()) return false; + } + if (hasMaxQueryStringLength() != other.hasMaxQueryStringLength()) return false; + if (hasMaxQueryStringLength()) { + if (getMaxQueryStringLength() != other.getMaxQueryStringLength()) return false; + } + if (hasRecordApplicationTags() != other.hasRecordApplicationTags()) return false; + if (hasRecordApplicationTags()) { + if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false; + } + if (hasQueryPlansPerMinute() != other.hasQueryPlansPerMinute()) return false; + if (hasQueryPlansPerMinute()) { + if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) return false; + } + if (hasTrackActiveQueries() != other.hasTrackActiveQueries()) return false; + if (hasTrackActiveQueries()) { + if (getTrackActiveQueries() != other.getTrackActiveQueries()) return false; + } + if (hasTrackClientAddress() != other.hasTrackClientAddress()) return false; + if (hasTrackClientAddress()) { + if (getTrackClientAddress() != other.getTrackClientAddress()) return false; + } + if (hasAssistiveExperiencesEnabled() != other.hasAssistiveExperiencesEnabled()) return false; + if (hasAssistiveExperiencesEnabled()) { + if (getAssistiveExperiencesEnabled() != other.getAssistiveExperiencesEnabled()) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEnabled()) { + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + } + if (hasPreserveComments()) { + hash = (37 * hash) + PRESERVE_COMMENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreserveComments()); + } + if (hasTrackWaitEvents()) { + hash = (37 * hash) + TRACK_WAIT_EVENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEvents()); + } + if (hasTrackWaitEventTypes()) { + hash = (37 * hash) + TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEventTypes()); + } + if (hasMaxQueryStringLength()) { + hash = (37 * hash) + MAX_QUERY_STRING_LENGTH_FIELD_NUMBER; + hash = (53 * hash) + getMaxQueryStringLength(); + } + if (hasRecordApplicationTags()) { + hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags()); + } + if (hasQueryPlansPerMinute()) { + hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER; + hash = (53 * hash) + getQueryPlansPerMinute(); + } + if (hasTrackActiveQueries()) { + hash = (37 * hash) + TRACK_ACTIVE_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackActiveQueries()); + } + if (hasTrackClientAddress()) { + hash = (37 * hash) + TRACK_CLIENT_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackClientAddress()); + } + if (hasAssistiveExperiencesEnabled()) { + hash = (37 * hash) + ASSISTIVE_EXPERIENCES_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getAssistiveExperiencesEnabled()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig 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.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig 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.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig 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.alloydb.v1beta.Instance.ObservabilityInstanceConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig + 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.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig 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.alloydb.v1beta.Instance.ObservabilityInstanceConfig 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; + } + + /** + * + * + *
+     * Observability Instance specific configuration.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig) + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.class, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.Builder.class); + } + + // Construct using + // com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + preserveComments_ = false; + trackWaitEvents_ = false; + trackWaitEventTypes_ = false; + maxQueryStringLength_ = 0; + recordApplicationTags_ = false; + queryPlansPerMinute_ = 0; + trackActiveQueries_ = false; + trackClientAddress_ = false; + assistiveExperiencesEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig build() { + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig buildPartial() { + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig result = + new com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.preserveComments_ = preserveComments_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.trackWaitEvents_ = trackWaitEvents_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.trackWaitEventTypes_ = trackWaitEventTypes_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.maxQueryStringLength_ = maxQueryStringLength_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.recordApplicationTags_ = recordApplicationTags_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.queryPlansPerMinute_ = queryPlansPerMinute_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.trackActiveQueries_ = trackActiveQueries_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.trackClientAddress_ = trackClientAddress_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.assistiveExperiencesEnabled_ = assistiveExperiencesEnabled_; + to_bitField0_ |= 0x00000200; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig) { + return mergeFrom( + (com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig other) { + if (other + == com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig + .getDefaultInstance()) return this; + if (other.hasEnabled()) { + setEnabled(other.getEnabled()); + } + if (other.hasPreserveComments()) { + setPreserveComments(other.getPreserveComments()); + } + if (other.hasTrackWaitEvents()) { + setTrackWaitEvents(other.getTrackWaitEvents()); + } + if (other.hasTrackWaitEventTypes()) { + setTrackWaitEventTypes(other.getTrackWaitEventTypes()); + } + if (other.hasMaxQueryStringLength()) { + setMaxQueryStringLength(other.getMaxQueryStringLength()); + } + if (other.hasRecordApplicationTags()) { + setRecordApplicationTags(other.getRecordApplicationTags()); + } + if (other.hasQueryPlansPerMinute()) { + setQueryPlansPerMinute(other.getQueryPlansPerMinute()); + } + if (other.hasTrackActiveQueries()) { + setTrackActiveQueries(other.getTrackActiveQueries()); + } + if (other.hasTrackClientAddress()) { + setTrackClientAddress(other.getTrackClientAddress()); + } + if (other.hasAssistiveExperiencesEnabled()) { + setAssistiveExperiencesEnabled(other.getAssistiveExperiencesEnabled()); + } + 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 8: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + preserveComments_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + trackWaitEvents_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + trackWaitEventTypes_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + maxQueryStringLength_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + recordApplicationTags_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + queryPlansPerMinute_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + trackActiveQueries_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + trackClientAddress_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: + { + assistiveExperiencesEnabled_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + 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 boolean enabled_; + + /** + * + * + *
+       * Observability feature status for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ + @java.lang.Override + public boolean hasEnabled() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Observability feature status for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + /** + * + * + *
+       * Observability feature status for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Observability feature status for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private boolean preserveComments_; + + /** + * + * + *
+       * Preserve comments in query string for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool preserve_comments = 2; + * + * @return Whether the preserveComments field is set. + */ + @java.lang.Override + public boolean hasPreserveComments() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Preserve comments in query string for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool preserve_comments = 2; + * + * @return The preserveComments. + */ + @java.lang.Override + public boolean getPreserveComments() { + return preserveComments_; + } + + /** + * + * + *
+       * Preserve comments in query string for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool preserve_comments = 2; + * + * @param value The preserveComments to set. + * @return This builder for chaining. + */ + public Builder setPreserveComments(boolean value) { + + preserveComments_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Preserve comments in query string for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool preserve_comments = 2; + * + * @return This builder for chaining. + */ + public Builder clearPreserveComments() { + bitField0_ = (bitField0_ & ~0x00000002); + preserveComments_ = false; + onChanged(); + return this; + } + + private boolean trackWaitEvents_; + + /** + * + * + *
+       * Track wait events during query execution for an instance.
+       * This flag is turned "on" by default but tracking is enabled only after
+       * observability enabled flag is also turned on.
+       * 
+ * + * optional bool track_wait_events = 3; + * + * @return Whether the trackWaitEvents field is set. + */ + @java.lang.Override + public boolean hasTrackWaitEvents() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * Track wait events during query execution for an instance.
+       * This flag is turned "on" by default but tracking is enabled only after
+       * observability enabled flag is also turned on.
+       * 
+ * + * optional bool track_wait_events = 3; + * + * @return The trackWaitEvents. + */ + @java.lang.Override + public boolean getTrackWaitEvents() { + return trackWaitEvents_; + } + + /** + * + * + *
+       * Track wait events during query execution for an instance.
+       * This flag is turned "on" by default but tracking is enabled only after
+       * observability enabled flag is also turned on.
+       * 
+ * + * optional bool track_wait_events = 3; + * + * @param value The trackWaitEvents to set. + * @return This builder for chaining. + */ + public Builder setTrackWaitEvents(boolean value) { + + trackWaitEvents_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Track wait events during query execution for an instance.
+       * This flag is turned "on" by default but tracking is enabled only after
+       * observability enabled flag is also turned on.
+       * 
+ * + * optional bool track_wait_events = 3; + * + * @return This builder for chaining. + */ + public Builder clearTrackWaitEvents() { + bitField0_ = (bitField0_ & ~0x00000004); + trackWaitEvents_ = false; + onChanged(); + return this; + } + + private boolean trackWaitEventTypes_; + + /** + * + * + *
+       * Output only. Track wait event types during query execution for an
+       * instance. This flag is turned "on" by default but tracking is enabled
+       * only after observability enabled flag is also turned on. This is
+       * read-only flag and only modifiable by internal API.
+       * 
+ * + * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the trackWaitEventTypes field is set. + */ + @java.lang.Override + public boolean hasTrackWaitEventTypes() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+       * Output only. Track wait event types during query execution for an
+       * instance. This flag is turned "on" by default but tracking is enabled
+       * only after observability enabled flag is also turned on. This is
+       * read-only flag and only modifiable by internal API.
+       * 
+ * + * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The trackWaitEventTypes. + */ + @java.lang.Override + public boolean getTrackWaitEventTypes() { + return trackWaitEventTypes_; + } + + /** + * + * + *
+       * Output only. Track wait event types during query execution for an
+       * instance. This flag is turned "on" by default but tracking is enabled
+       * only after observability enabled flag is also turned on. This is
+       * read-only flag and only modifiable by internal API.
+       * 
+ * + * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The trackWaitEventTypes to set. + * @return This builder for chaining. + */ + public Builder setTrackWaitEventTypes(boolean value) { + + trackWaitEventTypes_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Track wait event types during query execution for an
+       * instance. This flag is turned "on" by default but tracking is enabled
+       * only after observability enabled flag is also turned on. This is
+       * read-only flag and only modifiable by internal API.
+       * 
+ * + * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTrackWaitEventTypes() { + bitField0_ = (bitField0_ & ~0x00000008); + trackWaitEventTypes_ = false; + onChanged(); + return this; + } + + private int maxQueryStringLength_; + + /** + * + * + *
+       * Query string length. The default value is 10k.
+       * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return Whether the maxQueryStringLength field is set. + */ + @java.lang.Override + public boolean hasMaxQueryStringLength() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+       * Query string length. The default value is 10k.
+       * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return The maxQueryStringLength. + */ + @java.lang.Override + public int getMaxQueryStringLength() { + return maxQueryStringLength_; + } + + /** + * + * + *
+       * Query string length. The default value is 10k.
+       * 
+ * + * optional int32 max_query_string_length = 5; + * + * @param value The maxQueryStringLength to set. + * @return This builder for chaining. + */ + public Builder setMaxQueryStringLength(int value) { + + maxQueryStringLength_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Query string length. The default value is 10k.
+       * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return This builder for chaining. + */ + public Builder clearMaxQueryStringLength() { + bitField0_ = (bitField0_ & ~0x00000010); + maxQueryStringLength_ = 0; + onChanged(); + return this; + } + + private boolean recordApplicationTags_; + + /** + * + * + *
+       * Record application tags for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool record_application_tags = 6; + * + * @return Whether the recordApplicationTags field is set. + */ + @java.lang.Override + public boolean hasRecordApplicationTags() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+       * Record application tags for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool record_application_tags = 6; + * + * @return The recordApplicationTags. + */ + @java.lang.Override + public boolean getRecordApplicationTags() { + return recordApplicationTags_; + } + + /** + * + * + *
+       * Record application tags for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool record_application_tags = 6; + * + * @param value The recordApplicationTags to set. + * @return This builder for chaining. + */ + public Builder setRecordApplicationTags(boolean value) { + + recordApplicationTags_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Record application tags for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool record_application_tags = 6; + * + * @return This builder for chaining. + */ + public Builder clearRecordApplicationTags() { + bitField0_ = (bitField0_ & ~0x00000020); + recordApplicationTags_ = false; + onChanged(); + return this; + } + + private int queryPlansPerMinute_; + + /** + * + * + *
+       * Number of query execution plans captured by Insights per minute
+       * for all queries combined. The default value is 200.
+       * Any integer between 0 to 200 is considered valid.
+       * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return Whether the queryPlansPerMinute field is set. + */ + @java.lang.Override + public boolean hasQueryPlansPerMinute() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+       * Number of query execution plans captured by Insights per minute
+       * for all queries combined. The default value is 200.
+       * Any integer between 0 to 200 is considered valid.
+       * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return The queryPlansPerMinute. + */ + @java.lang.Override + public int getQueryPlansPerMinute() { + return queryPlansPerMinute_; + } + + /** + * + * + *
+       * Number of query execution plans captured by Insights per minute
+       * for all queries combined. The default value is 200.
+       * Any integer between 0 to 200 is considered valid.
+       * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @param value The queryPlansPerMinute to set. + * @return This builder for chaining. + */ + public Builder setQueryPlansPerMinute(int value) { + + queryPlansPerMinute_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+       * Number of query execution plans captured by Insights per minute
+       * for all queries combined. The default value is 200.
+       * Any integer between 0 to 200 is considered valid.
+       * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return This builder for chaining. + */ + public Builder clearQueryPlansPerMinute() { + bitField0_ = (bitField0_ & ~0x00000040); + queryPlansPerMinute_ = 0; + onChanged(); + return this; + } + + private boolean trackActiveQueries_; + + /** + * + * + *
+       * Track actively running queries on the instance.
+       * If not set, this flag is "off" by default.
+       * 
+ * + * optional bool track_active_queries = 8; + * + * @return Whether the trackActiveQueries field is set. + */ + @java.lang.Override + public boolean hasTrackActiveQueries() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+       * Track actively running queries on the instance.
+       * If not set, this flag is "off" by default.
+       * 
+ * + * optional bool track_active_queries = 8; + * + * @return The trackActiveQueries. + */ + @java.lang.Override + public boolean getTrackActiveQueries() { + return trackActiveQueries_; + } + + /** + * + * + *
+       * Track actively running queries on the instance.
+       * If not set, this flag is "off" by default.
+       * 
+ * + * optional bool track_active_queries = 8; + * + * @param value The trackActiveQueries to set. + * @return This builder for chaining. + */ + public Builder setTrackActiveQueries(boolean value) { + + trackActiveQueries_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+       * Track actively running queries on the instance.
+       * If not set, this flag is "off" by default.
+       * 
+ * + * optional bool track_active_queries = 8; + * + * @return This builder for chaining. + */ + public Builder clearTrackActiveQueries() { + bitField0_ = (bitField0_ & ~0x00000080); + trackActiveQueries_ = false; + onChanged(); + return this; + } + + private boolean trackClientAddress_; + + /** + * + * + *
+       * Track client address for an instance.
+       * If not set, default value is "off".
+       * 
+ * + * optional bool track_client_address = 9; + * + * @return Whether the trackClientAddress field is set. + */ + @java.lang.Override + public boolean hasTrackClientAddress() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+       * Track client address for an instance.
+       * If not set, default value is "off".
+       * 
+ * + * optional bool track_client_address = 9; + * + * @return The trackClientAddress. + */ + @java.lang.Override + public boolean getTrackClientAddress() { + return trackClientAddress_; + } + + /** + * + * + *
+       * Track client address for an instance.
+       * If not set, default value is "off".
+       * 
+ * + * optional bool track_client_address = 9; + * + * @param value The trackClientAddress to set. + * @return This builder for chaining. + */ + public Builder setTrackClientAddress(boolean value) { - /** - * - * - *
-   * Observability Instance specific configuration.
-   * 
- * - * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig} - */ - public static final class ObservabilityInstanceConfig extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig) - ObservabilityInstanceConfigOrBuilder { - private static final long serialVersionUID = 0L; + trackClientAddress_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+       * Track client address for an instance.
+       * If not set, default value is "off".
+       * 
+ * + * optional bool track_client_address = 9; + * + * @return This builder for chaining. + */ + public Builder clearTrackClientAddress() { + bitField0_ = (bitField0_ & ~0x00000100); + trackClientAddress_ = false; + onChanged(); + return this; + } + + private boolean assistiveExperiencesEnabled_; + + /** + * + * + *
+       * Whether assistive experiences are enabled for this AlloyDB instance.
+       * 
+ * + * optional bool assistive_experiences_enabled = 10; + * + * @return Whether the assistiveExperiencesEnabled field is set. + */ + @java.lang.Override + public boolean hasAssistiveExperiencesEnabled() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+       * Whether assistive experiences are enabled for this AlloyDB instance.
+       * 
+ * + * optional bool assistive_experiences_enabled = 10; + * + * @return The assistiveExperiencesEnabled. + */ + @java.lang.Override + public boolean getAssistiveExperiencesEnabled() { + return assistiveExperiencesEnabled_; + } + + /** + * + * + *
+       * Whether assistive experiences are enabled for this AlloyDB instance.
+       * 
+ * + * optional bool assistive_experiences_enabled = 10; + * + * @param value The assistiveExperiencesEnabled to set. + * @return This builder for chaining. + */ + public Builder setAssistiveExperiencesEnabled(boolean value) { + + assistiveExperiencesEnabled_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+       * Whether assistive experiences are enabled for this AlloyDB instance.
+       * 
+ * + * optional bool assistive_experiences_enabled = 10; + * + * @return This builder for chaining. + */ + public Builder clearAssistiveExperiencesEnabled() { + bitField0_ = (bitField0_ & ~0x00000200); + assistiveExperiencesEnabled_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig) + private static final com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig + DEFAULT_INSTANCE; static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ObservabilityInstanceConfig"); + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig(); } - // Use ObservabilityInstanceConfig.newBuilder() to construct. - private ObservabilityInstanceConfig(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); + public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; } - private ObservabilityInstanceConfig() {} + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObservabilityInstanceConfig 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 final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.alloydb.v1beta.ResourcesProto - .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_descriptor; + public static com.google.protobuf.Parser parser() { + return PARSER; } @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.alloydb.v1beta.ResourcesProto - .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.class, - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.Builder.class); + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - private int bitField0_; - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ObservabilityInstanceInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo) + com.google.protobuf.MessageOrBuilder { /** * * *
-     * Observability feature status for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Observability feature status for an instance.
      * 
* - * optional bool enabled = 1; + * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the enabled field is set. + * @return The enabled. */ - @java.lang.Override - public boolean hasEnabled() { - return ((bitField0_ & 0x00000001) != 0); - } + boolean getEnabled(); /** * * *
-     * Observability feature status for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Preserve comments in query string for an instance.
      * 
* - * optional bool enabled = 1; + * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The enabled. + * @return The preserveComments. */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } + boolean getPreserveComments(); - public static final int PRESERVE_COMMENTS_FIELD_NUMBER = 2; - private boolean preserveComments_ = false; + /** + * + * + *
+     * Output only. Track wait events during query execution for an instance.
+     * 
+ * + * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The trackWaitEvents. + */ + boolean getTrackWaitEvents(); /** * * *
-     * Preserve comments in query string for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Track wait event types during query execution for an
+     * instance.
      * 
* - * optional bool preserve_comments = 2; + * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the preserveComments field is set. + * @return The trackWaitEventTypes. */ - @java.lang.Override - public boolean hasPreserveComments() { - return ((bitField0_ & 0x00000002) != 0); - } + boolean getTrackWaitEventTypes(); + + /** + * + * + *
+     * Output only. Query string length. The default value is 10k.
+     * 
+ * + * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The maxQueryStringLength. + */ + int getMaxQueryStringLength(); + + /** + * + * + *
+     * Output only. Record application tags for an instance.
+     * 
+ * + * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The recordApplicationTags. + */ + boolean getRecordApplicationTags(); /** * * *
-     * Preserve comments in query string for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Number of query execution plans captured by Insights per
+     * minute for all queries combined.
      * 
* - * optional bool preserve_comments = 2; + * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The preserveComments. + * @return The queryPlansPerMinute. */ - @java.lang.Override - public boolean getPreserveComments() { - return preserveComments_; - } - - public static final int TRACK_WAIT_EVENTS_FIELD_NUMBER = 3; - private boolean trackWaitEvents_ = false; + int getQueryPlansPerMinute(); /** * * *
-     * Track wait events during query execution for an instance.
-     * This flag is turned "on" by default but tracking is enabled only after
-     * observability enabled flag is also turned on.
+     * Output only. Track actively running queries on the instance.
      * 
* - * optional bool track_wait_events = 3; + * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the trackWaitEvents field is set. + * @return The trackActiveQueries. */ - @java.lang.Override - public boolean hasTrackWaitEvents() { - return ((bitField0_ & 0x00000004) != 0); - } + boolean getTrackActiveQueries(); /** * * *
-     * Track wait events during query execution for an instance.
-     * This flag is turned "on" by default but tracking is enabled only after
-     * observability enabled flag is also turned on.
+     * Output only. Track client address for an instance.
      * 
* - * optional bool track_wait_events = 3; + * bool track_client_address = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The trackWaitEvents. + * @return The trackClientAddress. */ - @java.lang.Override - public boolean getTrackWaitEvents() { - return trackWaitEvents_; - } - - public static final int TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER = 4; - private boolean trackWaitEventTypes_ = false; + boolean getTrackClientAddress(); /** * * *
-     * Output only. Track wait event types during query execution for an
-     * instance. This flag is turned "on" by default but tracking is enabled
-     * only after observability enabled flag is also turned on. This is
-     * read-only flag and only modifiable by internal API.
+     * Output only. Whether assistive experiences are enabled for this AlloyDB
+     * instance.
      * 
* - * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool assistive_experiences_enabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the trackWaitEventTypes field is set. + * @return The assistiveExperiencesEnabled. */ - @java.lang.Override - public boolean hasTrackWaitEventTypes() { - return ((bitField0_ & 0x00000008) != 0); - } + boolean getAssistiveExperiencesEnabled(); /** * * *
-     * Output only. Track wait event types during query execution for an
-     * instance. This flag is turned "on" by default but tracking is enabled
-     * only after observability enabled flag is also turned on. This is
-     * read-only flag and only modifiable by internal API.
+     * Output only. Indicates whether to track active query plans for an
+     * instance. Deprecated: Use track_active_queries instead.
      * 
* - * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bool track_active_query_plan = 13 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The trackWaitEventTypes. + * @deprecated + * google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.track_active_query_plan is + * deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=973 + * @return The trackActiveQueryPlan. */ + @java.lang.Deprecated + boolean getTrackActiveQueryPlan(); + } + + /** Protobuf type {@code google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo} */ + public static final class ObservabilityInstanceInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo) + ObservabilityInstanceInfoOrBuilder { + 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= */ "", + "ObservabilityInstanceInfo"); + } + + // Use ObservabilityInstanceInfo.newBuilder() to construct. + private ObservabilityInstanceInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ObservabilityInstanceInfo() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceInfo_descriptor; + } + @java.lang.Override - public boolean getTrackWaitEventTypes() { - return trackWaitEventTypes_; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.class, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.Builder.class); } - public static final int MAX_QUERY_STRING_LENGTH_FIELD_NUMBER = 5; - private int maxQueryStringLength_ = 0; + public static final int ENABLED_FIELD_NUMBER = 2; + private boolean enabled_ = false; /** * * *
-     * Query string length. The default value is 10k.
+     * Output only. Observability feature status for an instance.
      * 
* - * optional int32 max_query_string_length = 5; + * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the maxQueryStringLength field is set. + * @return The enabled. */ @java.lang.Override - public boolean hasMaxQueryStringLength() { - return ((bitField0_ & 0x00000010) != 0); + public boolean getEnabled() { + return enabled_; } + public static final int PRESERVE_COMMENTS_FIELD_NUMBER = 3; + private boolean preserveComments_ = false; + /** * * *
-     * Query string length. The default value is 10k.
+     * Output only. Preserve comments in query string for an instance.
      * 
* - * optional int32 max_query_string_length = 5; + * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The maxQueryStringLength. + * @return The preserveComments. */ @java.lang.Override - public int getMaxQueryStringLength() { - return maxQueryStringLength_; + public boolean getPreserveComments() { + return preserveComments_; } - public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 6; - private boolean recordApplicationTags_ = false; + public static final int TRACK_WAIT_EVENTS_FIELD_NUMBER = 4; + private boolean trackWaitEvents_ = false; /** * * *
-     * Record application tags for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Track wait events during query execution for an instance.
      * 
* - * optional bool record_application_tags = 6; + * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the recordApplicationTags field is set. + * @return The trackWaitEvents. */ @java.lang.Override - public boolean hasRecordApplicationTags() { - return ((bitField0_ & 0x00000020) != 0); + public boolean getTrackWaitEvents() { + return trackWaitEvents_; } + public static final int TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER = 5; + private boolean trackWaitEventTypes_ = false; + /** * * *
-     * Record application tags for an instance.
-     * This flag is turned "off" by default.
+     * Output only. Track wait event types during query execution for an
+     * instance.
      * 
* - * optional bool record_application_tags = 6; + * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The recordApplicationTags. + * @return The trackWaitEventTypes. */ @java.lang.Override - public boolean getRecordApplicationTags() { - return recordApplicationTags_; + public boolean getTrackWaitEventTypes() { + return trackWaitEventTypes_; } - public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 7; - private int queryPlansPerMinute_ = 0; + public static final int MAX_QUERY_STRING_LENGTH_FIELD_NUMBER = 6; + private int maxQueryStringLength_ = 0; /** * * *
-     * Number of query execution plans captured by Insights per minute
-     * for all queries combined. The default value is 200.
-     * Any integer between 0 to 200 is considered valid.
+     * Output only. Query string length. The default value is 10k.
      * 
* - * optional int32 query_plans_per_minute = 7; + * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the queryPlansPerMinute field is set. + * @return The maxQueryStringLength. */ @java.lang.Override - public boolean hasQueryPlansPerMinute() { - return ((bitField0_ & 0x00000040) != 0); + public int getMaxQueryStringLength() { + return maxQueryStringLength_; } + public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 7; + private boolean recordApplicationTags_ = false; + /** * * *
-     * Number of query execution plans captured by Insights per minute
-     * for all queries combined. The default value is 200.
-     * Any integer between 0 to 200 is considered valid.
+     * Output only. Record application tags for an instance.
      * 
* - * optional int32 query_plans_per_minute = 7; + * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The queryPlansPerMinute. + * @return The recordApplicationTags. */ @java.lang.Override - public int getQueryPlansPerMinute() { - return queryPlansPerMinute_; + public boolean getRecordApplicationTags() { + return recordApplicationTags_; } - public static final int TRACK_ACTIVE_QUERIES_FIELD_NUMBER = 8; - private boolean trackActiveQueries_ = false; + public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 8; + private int queryPlansPerMinute_ = 0; /** * * *
-     * Track actively running queries on the instance.
-     * If not set, this flag is "off" by default.
+     * Output only. Number of query execution plans captured by Insights per
+     * minute for all queries combined.
      * 
* - * optional bool track_active_queries = 8; + * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the trackActiveQueries field is set. + * @return The queryPlansPerMinute. */ @java.lang.Override - public boolean hasTrackActiveQueries() { - return ((bitField0_ & 0x00000080) != 0); + public int getQueryPlansPerMinute() { + return queryPlansPerMinute_; } + public static final int TRACK_ACTIVE_QUERIES_FIELD_NUMBER = 9; + private boolean trackActiveQueries_ = false; + /** * * *
-     * Track actively running queries on the instance.
-     * If not set, this flag is "off" by default.
+     * Output only. Track actively running queries on the instance.
      * 
* - * optional bool track_active_queries = 8; + * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The trackActiveQueries. */ @@ -4853,35 +7649,17 @@ public boolean getTrackActiveQueries() { return trackActiveQueries_; } - public static final int TRACK_CLIENT_ADDRESS_FIELD_NUMBER = 9; + public static final int TRACK_CLIENT_ADDRESS_FIELD_NUMBER = 10; private boolean trackClientAddress_ = false; /** * * *
-     * Track client address for an instance.
-     * If not set, default value is "off".
-     * 
- * - * optional bool track_client_address = 9; - * - * @return Whether the trackClientAddress field is set. - */ - @java.lang.Override - public boolean hasTrackClientAddress() { - return ((bitField0_ & 0x00000100) != 0); - } - - /** - * - * - *
-     * Track client address for an instance.
-     * If not set, default value is "off".
+     * Output only. Track client address for an instance.
      * 
* - * optional bool track_client_address = 9; + * bool track_client_address = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The trackClientAddress. */ @@ -4890,39 +7668,51 @@ public boolean getTrackClientAddress() { return trackClientAddress_; } - public static final int ASSISTIVE_EXPERIENCES_ENABLED_FIELD_NUMBER = 10; + public static final int ASSISTIVE_EXPERIENCES_ENABLED_FIELD_NUMBER = 11; private boolean assistiveExperiencesEnabled_ = false; /** * * *
-     * Whether assistive experiences are enabled for this AlloyDB instance.
+     * Output only. Whether assistive experiences are enabled for this AlloyDB
+     * instance.
      * 
* - * optional bool assistive_experiences_enabled = 10; + * bool assistive_experiences_enabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return Whether the assistiveExperiencesEnabled field is set. + * @return The assistiveExperiencesEnabled. */ @java.lang.Override - public boolean hasAssistiveExperiencesEnabled() { - return ((bitField0_ & 0x00000200) != 0); + public boolean getAssistiveExperiencesEnabled() { + return assistiveExperiencesEnabled_; } + public static final int TRACK_ACTIVE_QUERY_PLAN_FIELD_NUMBER = 13; + private boolean trackActiveQueryPlan_ = false; + /** * * *
-     * Whether assistive experiences are enabled for this AlloyDB instance.
+     * Output only. Indicates whether to track active query plans for an
+     * instance. Deprecated: Use track_active_queries instead.
      * 
* - * optional bool assistive_experiences_enabled = 10; + * + * bool track_active_query_plan = 13 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The assistiveExperiencesEnabled. + * @deprecated + * google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.track_active_query_plan is + * deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=973 + * @return The trackActiveQueryPlan. */ @java.lang.Override - public boolean getAssistiveExperiencesEnabled() { - return assistiveExperiencesEnabled_; + @java.lang.Deprecated + public boolean getTrackActiveQueryPlan() { + return trackActiveQueryPlan_; } private byte memoizedIsInitialized = -1; @@ -4939,35 +7729,38 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeBool(1, enabled_); + if (enabled_ != false) { + output.writeBool(2, enabled_); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeBool(2, preserveComments_); + if (preserveComments_ != false) { + output.writeBool(3, preserveComments_); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeBool(3, trackWaitEvents_); + if (trackWaitEvents_ != false) { + output.writeBool(4, trackWaitEvents_); } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeBool(4, trackWaitEventTypes_); + if (trackWaitEventTypes_ != false) { + output.writeBool(5, trackWaitEventTypes_); } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeInt32(5, maxQueryStringLength_); + if (maxQueryStringLength_ != 0) { + output.writeInt32(6, maxQueryStringLength_); } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeBool(6, recordApplicationTags_); + if (recordApplicationTags_ != false) { + output.writeBool(7, recordApplicationTags_); } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeInt32(7, queryPlansPerMinute_); + if (queryPlansPerMinute_ != 0) { + output.writeInt32(8, queryPlansPerMinute_); } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeBool(8, trackActiveQueries_); + if (trackActiveQueries_ != false) { + output.writeBool(9, trackActiveQueries_); } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeBool(9, trackClientAddress_); + if (trackClientAddress_ != false) { + output.writeBool(10, trackClientAddress_); } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeBool(10, assistiveExperiencesEnabled_); + if (assistiveExperiencesEnabled_ != false) { + output.writeBool(11, assistiveExperiencesEnabled_); + } + if (trackActiveQueryPlan_ != false) { + output.writeBool(13, trackActiveQueryPlan_); } getUnknownFields().writeTo(output); } @@ -4978,36 +7771,39 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enabled_); } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, preserveComments_); + if (preserveComments_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, preserveComments_); } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, trackWaitEvents_); + if (trackWaitEvents_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, trackWaitEvents_); } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, trackWaitEventTypes_); + if (trackWaitEventTypes_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, trackWaitEventTypes_); } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxQueryStringLength_); + if (maxQueryStringLength_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, maxQueryStringLength_); } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, recordApplicationTags_); + if (recordApplicationTags_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, recordApplicationTags_); } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, queryPlansPerMinute_); + if (queryPlansPerMinute_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, queryPlansPerMinute_); } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, trackActiveQueries_); + if (trackActiveQueries_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, trackActiveQueries_); } - if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, trackClientAddress_); + if (trackClientAddress_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, trackClientAddress_); } - if (((bitField0_ & 0x00000200) != 0)) { + if (assistiveExperiencesEnabled_ != false) { size += - com.google.protobuf.CodedOutputStream.computeBoolSize(10, assistiveExperiencesEnabled_); + com.google.protobuf.CodedOutputStream.computeBoolSize(11, assistiveExperiencesEnabled_); + } + if (trackActiveQueryPlan_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, trackActiveQueryPlan_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -5019,53 +7815,23 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig)) { + if (!(obj instanceof com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo)) { return super.equals(obj); } - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig other = - (com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig) obj; + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo other = + (com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo) obj; - if (hasEnabled() != other.hasEnabled()) return false; - if (hasEnabled()) { - if (getEnabled() != other.getEnabled()) return false; - } - if (hasPreserveComments() != other.hasPreserveComments()) return false; - if (hasPreserveComments()) { - if (getPreserveComments() != other.getPreserveComments()) return false; - } - if (hasTrackWaitEvents() != other.hasTrackWaitEvents()) return false; - if (hasTrackWaitEvents()) { - if (getTrackWaitEvents() != other.getTrackWaitEvents()) return false; - } - if (hasTrackWaitEventTypes() != other.hasTrackWaitEventTypes()) return false; - if (hasTrackWaitEventTypes()) { - if (getTrackWaitEventTypes() != other.getTrackWaitEventTypes()) return false; - } - if (hasMaxQueryStringLength() != other.hasMaxQueryStringLength()) return false; - if (hasMaxQueryStringLength()) { - if (getMaxQueryStringLength() != other.getMaxQueryStringLength()) return false; - } - if (hasRecordApplicationTags() != other.hasRecordApplicationTags()) return false; - if (hasRecordApplicationTags()) { - if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false; - } - if (hasQueryPlansPerMinute() != other.hasQueryPlansPerMinute()) return false; - if (hasQueryPlansPerMinute()) { - if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) return false; - } - if (hasTrackActiveQueries() != other.hasTrackActiveQueries()) return false; - if (hasTrackActiveQueries()) { - if (getTrackActiveQueries() != other.getTrackActiveQueries()) return false; - } - if (hasTrackClientAddress() != other.hasTrackClientAddress()) return false; - if (hasTrackClientAddress()) { - if (getTrackClientAddress() != other.getTrackClientAddress()) return false; - } - if (hasAssistiveExperiencesEnabled() != other.hasAssistiveExperiencesEnabled()) return false; - if (hasAssistiveExperiencesEnabled()) { - if (getAssistiveExperiencesEnabled() != other.getAssistiveExperiencesEnabled()) - return false; - } + if (getEnabled() != other.getEnabled()) return false; + if (getPreserveComments() != other.getPreserveComments()) return false; + if (getTrackWaitEvents() != other.getTrackWaitEvents()) return false; + if (getTrackWaitEventTypes() != other.getTrackWaitEventTypes()) return false; + if (getMaxQueryStringLength() != other.getMaxQueryStringLength()) return false; + if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false; + if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) return false; + if (getTrackActiveQueries() != other.getTrackActiveQueries()) return false; + if (getTrackClientAddress() != other.getTrackClientAddress()) return false; + if (getAssistiveExperiencesEnabled() != other.getAssistiveExperiencesEnabled()) return false; + if (getTrackActiveQueryPlan() != other.getTrackActiveQueryPlan()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5077,106 +7843,87 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasEnabled()) { - hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); - } - if (hasPreserveComments()) { - hash = (37 * hash) + PRESERVE_COMMENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreserveComments()); - } - if (hasTrackWaitEvents()) { - hash = (37 * hash) + TRACK_WAIT_EVENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEvents()); - } - if (hasTrackWaitEventTypes()) { - hash = (37 * hash) + TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEventTypes()); - } - if (hasMaxQueryStringLength()) { - hash = (37 * hash) + MAX_QUERY_STRING_LENGTH_FIELD_NUMBER; - hash = (53 * hash) + getMaxQueryStringLength(); - } - if (hasRecordApplicationTags()) { - hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags()); - } - if (hasQueryPlansPerMinute()) { - hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER; - hash = (53 * hash) + getQueryPlansPerMinute(); - } - if (hasTrackActiveQueries()) { - hash = (37 * hash) + TRACK_ACTIVE_QUERIES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackActiveQueries()); - } - if (hasTrackClientAddress()) { - hash = (37 * hash) + TRACK_CLIENT_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackClientAddress()); - } - if (hasAssistiveExperiencesEnabled()) { - hash = (37 * hash) + ASSISTIVE_EXPERIENCES_ENABLED_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getAssistiveExperiencesEnabled()); - } + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (37 * hash) + PRESERVE_COMMENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreserveComments()); + hash = (37 * hash) + TRACK_WAIT_EVENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEvents()); + hash = (37 * hash) + TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEventTypes()); + hash = (37 * hash) + MAX_QUERY_STRING_LENGTH_FIELD_NUMBER; + hash = (53 * hash) + getMaxQueryStringLength(); + hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags()); + hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER; + hash = (53 * hash) + getQueryPlansPerMinute(); + hash = (37 * hash) + TRACK_ACTIVE_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackActiveQueries()); + hash = (37 * hash) + TRACK_CLIENT_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackClientAddress()); + hash = (37 * hash) + ASSISTIVE_EXPERIENCES_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAssistiveExperiencesEnabled()); + hash = (37 * hash) + TRACK_ACTIVE_QUERY_PLAN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackActiveQueryPlan()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo 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.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo 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.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo 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.alloydb.v1beta.Instance.ObservabilityInstanceConfig + public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig + public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -5184,12 +7931,12 @@ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConf PARSER, input, extensionRegistry); } - public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -5207,7 +7954,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig prototype) { + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -5222,36 +7969,28 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder return builder; } - /** - * - * - *
-     * Observability Instance specific configuration.
-     * 
- * - * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig} - */ + /** Protobuf type {@code google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig) - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfigOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo) + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.alloydb.v1beta.ResourcesProto - .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_descriptor; + .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.alloydb.v1beta.ResourcesProto - .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_fieldAccessorTable + .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.class, - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.Builder.class); + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.class, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.Builder.class); } // Construct using - // com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.newBuilder() + // com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -5272,26 +8011,26 @@ public Builder clear() { trackActiveQueries_ = false; trackClientAddress_ = false; assistiveExperiencesEnabled_ = false; + trackActiveQueryPlan_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.alloydb.v1beta.ResourcesProto - .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_descriptor; + .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceInfo_descriptor; } @java.lang.Override - public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig + public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo getDefaultInstanceForType() { - return com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig + return com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig build() { - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig result = - buildPartial(); + public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo build() { + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5299,9 +8038,9 @@ public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig buil } @java.lang.Override - public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig buildPartial() { - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig result = - new com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig(this); + public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo buildPartial() { + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo result = + new com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -5310,57 +8049,48 @@ public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig buil } private void buildPartial0( - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig result) { + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo result) { int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.enabled_ = enabled_; - to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.preserveComments_ = preserveComments_; - to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.trackWaitEvents_ = trackWaitEvents_; - to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.trackWaitEventTypes_ = trackWaitEventTypes_; - to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.maxQueryStringLength_ = maxQueryStringLength_; - to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.recordApplicationTags_ = recordApplicationTags_; - to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.queryPlansPerMinute_ = queryPlansPerMinute_; - to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { result.trackActiveQueries_ = trackActiveQueries_; - to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000100) != 0)) { result.trackClientAddress_ = trackClientAddress_; - to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000200) != 0)) { result.assistiveExperiencesEnabled_ = assistiveExperiencesEnabled_; - to_bitField0_ |= 0x00000200; } - result.bitField0_ |= to_bitField0_; + if (((from_bitField0_ & 0x00000400) != 0)) { + result.trackActiveQueryPlan_ = trackActiveQueryPlan_; + } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig) { + if (other instanceof com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo) { return mergeFrom( - (com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig) other); + (com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo) other); } else { super.mergeFrom(other); return this; @@ -5368,40 +8098,43 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig other) { + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo other) { if (other - == com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig + == com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo .getDefaultInstance()) return this; - if (other.hasEnabled()) { + if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } - if (other.hasPreserveComments()) { + if (other.getPreserveComments() != false) { setPreserveComments(other.getPreserveComments()); } - if (other.hasTrackWaitEvents()) { + if (other.getTrackWaitEvents() != false) { setTrackWaitEvents(other.getTrackWaitEvents()); } - if (other.hasTrackWaitEventTypes()) { + if (other.getTrackWaitEventTypes() != false) { setTrackWaitEventTypes(other.getTrackWaitEventTypes()); } - if (other.hasMaxQueryStringLength()) { + if (other.getMaxQueryStringLength() != 0) { setMaxQueryStringLength(other.getMaxQueryStringLength()); } - if (other.hasRecordApplicationTags()) { + if (other.getRecordApplicationTags() != false) { setRecordApplicationTags(other.getRecordApplicationTags()); } - if (other.hasQueryPlansPerMinute()) { + if (other.getQueryPlansPerMinute() != 0) { setQueryPlansPerMinute(other.getQueryPlansPerMinute()); } - if (other.hasTrackActiveQueries()) { + if (other.getTrackActiveQueries() != false) { setTrackActiveQueries(other.getTrackActiveQueries()); } - if (other.hasTrackClientAddress()) { + if (other.getTrackClientAddress() != false) { setTrackClientAddress(other.getTrackClientAddress()); } - if (other.hasAssistiveExperiencesEnabled()) { + if (other.getAssistiveExperiencesEnabled() != false) { setAssistiveExperiencesEnabled(other.getAssistiveExperiencesEnabled()); } + if (other.getTrackActiveQueryPlan() != false) { + setTrackActiveQueryPlan(other.getTrackActiveQueryPlan()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -5428,66 +8161,72 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: + case 16: { enabled_ = input.readBool(); bitField0_ |= 0x00000001; break; - } // case 8 - case 16: + } // case 16 + case 24: { preserveComments_ = input.readBool(); bitField0_ |= 0x00000002; break; - } // case 16 - case 24: + } // case 24 + case 32: { trackWaitEvents_ = input.readBool(); bitField0_ |= 0x00000004; break; - } // case 24 - case 32: + } // case 32 + case 40: { trackWaitEventTypes_ = input.readBool(); bitField0_ |= 0x00000008; break; - } // case 32 - case 40: + } // case 40 + case 48: { maxQueryStringLength_ = input.readInt32(); bitField0_ |= 0x00000010; break; - } // case 40 - case 48: + } // case 48 + case 56: { recordApplicationTags_ = input.readBool(); bitField0_ |= 0x00000020; break; - } // case 48 - case 56: + } // case 56 + case 64: { queryPlansPerMinute_ = input.readInt32(); bitField0_ |= 0x00000040; break; - } // case 56 - case 64: + } // case 64 + case 72: { trackActiveQueries_ = input.readBool(); bitField0_ |= 0x00000080; break; - } // case 64 - case 72: + } // case 72 + case 80: { trackClientAddress_ = input.readBool(); bitField0_ |= 0x00000100; break; - } // case 72 - case 80: + } // case 80 + case 88: { assistiveExperiencesEnabled_ = input.readBool(); bitField0_ |= 0x00000200; break; - } // case 80 + } // case 88 + case 104: + { + trackActiveQueryPlan_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 104 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5513,28 +8252,10 @@ public Builder mergeFrom( * * *
-       * Observability feature status for an instance.
-       * This flag is turned "off" by default.
-       * 
- * - * optional bool enabled = 1; - * - * @return Whether the enabled field is set. - */ - @java.lang.Override - public boolean hasEnabled() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-       * Observability feature status for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Observability feature status for an instance.
        * 
* - * optional bool enabled = 1; + * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The enabled. */ @@ -5547,11 +8268,10 @@ public boolean getEnabled() { * * *
-       * Observability feature status for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Observability feature status for an instance.
        * 
* - * optional bool enabled = 1; + * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The enabled to set. * @return This builder for chaining. @@ -5568,11 +8288,10 @@ public Builder setEnabled(boolean value) { * * *
-       * Observability feature status for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Observability feature status for an instance.
        * 
* - * optional bool enabled = 1; + * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -5589,28 +8308,10 @@ public Builder clearEnabled() { * * *
-       * Preserve comments in query string for an instance.
-       * This flag is turned "off" by default.
-       * 
- * - * optional bool preserve_comments = 2; - * - * @return Whether the preserveComments field is set. - */ - @java.lang.Override - public boolean hasPreserveComments() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-       * Preserve comments in query string for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Preserve comments in query string for an instance.
        * 
* - * optional bool preserve_comments = 2; + * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The preserveComments. */ @@ -5622,12 +8323,11 @@ public boolean getPreserveComments() { /** * * - *
-       * Preserve comments in query string for an instance.
-       * This flag is turned "off" by default.
+       * 
+       * Output only. Preserve comments in query string for an instance.
        * 
* - * optional bool preserve_comments = 2; + * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The preserveComments to set. * @return This builder for chaining. @@ -5644,11 +8344,10 @@ public Builder setPreserveComments(boolean value) { * * *
-       * Preserve comments in query string for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Preserve comments in query string for an instance.
        * 
* - * optional bool preserve_comments = 2; + * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -5665,30 +8364,10 @@ public Builder clearPreserveComments() { * * *
-       * Track wait events during query execution for an instance.
-       * This flag is turned "on" by default but tracking is enabled only after
-       * observability enabled flag is also turned on.
-       * 
- * - * optional bool track_wait_events = 3; - * - * @return Whether the trackWaitEvents field is set. - */ - @java.lang.Override - public boolean hasTrackWaitEvents() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-       * Track wait events during query execution for an instance.
-       * This flag is turned "on" by default but tracking is enabled only after
-       * observability enabled flag is also turned on.
+       * Output only. Track wait events during query execution for an instance.
        * 
* - * optional bool track_wait_events = 3; + * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The trackWaitEvents. */ @@ -5701,12 +8380,10 @@ public boolean getTrackWaitEvents() { * * *
-       * Track wait events during query execution for an instance.
-       * This flag is turned "on" by default but tracking is enabled only after
-       * observability enabled flag is also turned on.
+       * Output only. Track wait events during query execution for an instance.
        * 
* - * optional bool track_wait_events = 3; + * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The trackWaitEvents to set. * @return This builder for chaining. @@ -5723,12 +8400,10 @@ public Builder setTrackWaitEvents(boolean value) { * * *
-       * Track wait events during query execution for an instance.
-       * This flag is turned "on" by default but tracking is enabled only after
-       * observability enabled flag is also turned on.
+       * Output only. Track wait events during query execution for an instance.
        * 
* - * optional bool track_wait_events = 3; + * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -5746,35 +8421,10 @@ public Builder clearTrackWaitEvents() { * *
        * Output only. Track wait event types during query execution for an
-       * instance. This flag is turned "on" by default but tracking is enabled
-       * only after observability enabled flag is also turned on. This is
-       * read-only flag and only modifiable by internal API.
-       * 
- * - * - * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the trackWaitEventTypes field is set. - */ - @java.lang.Override - public boolean hasTrackWaitEventTypes() { - return ((bitField0_ & 0x00000008) != 0); - } - - /** - * - * - *
-       * Output only. Track wait event types during query execution for an
-       * instance. This flag is turned "on" by default but tracking is enabled
-       * only after observability enabled flag is also turned on. This is
-       * read-only flag and only modifiable by internal API.
+       * instance.
        * 
* - * - * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The trackWaitEventTypes. */ @@ -5788,14 +8438,10 @@ public boolean getTrackWaitEventTypes() { * *
        * Output only. Track wait event types during query execution for an
-       * instance. This flag is turned "on" by default but tracking is enabled
-       * only after observability enabled flag is also turned on. This is
-       * read-only flag and only modifiable by internal API.
+       * instance.
        * 
* - * - * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The trackWaitEventTypes to set. * @return This builder for chaining. @@ -5813,14 +8459,10 @@ public Builder setTrackWaitEventTypes(boolean value) { * *
        * Output only. Track wait event types during query execution for an
-       * instance. This flag is turned "on" by default but tracking is enabled
-       * only after observability enabled flag is also turned on. This is
-       * read-only flag and only modifiable by internal API.
+       * instance.
        * 
* - * - * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -5837,26 +8479,11 @@ public Builder clearTrackWaitEventTypes() { * * *
-       * Query string length. The default value is 10k.
-       * 
- * - * optional int32 max_query_string_length = 5; - * - * @return Whether the maxQueryStringLength field is set. - */ - @java.lang.Override - public boolean hasMaxQueryStringLength() { - return ((bitField0_ & 0x00000010) != 0); - } - - /** - * - * - *
-       * Query string length. The default value is 10k.
+       * Output only. Query string length. The default value is 10k.
        * 
* - * optional int32 max_query_string_length = 5; + * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The maxQueryStringLength. */ @@ -5869,10 +8496,11 @@ public int getMaxQueryStringLength() { * * *
-       * Query string length. The default value is 10k.
+       * Output only. Query string length. The default value is 10k.
        * 
* - * optional int32 max_query_string_length = 5; + * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The maxQueryStringLength to set. * @return This builder for chaining. @@ -5889,10 +8517,11 @@ public Builder setMaxQueryStringLength(int value) { * * *
-       * Query string length. The default value is 10k.
+       * Output only. Query string length. The default value is 10k.
        * 
* - * optional int32 max_query_string_length = 5; + * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -5909,28 +8538,10 @@ public Builder clearMaxQueryStringLength() { * * *
-       * Record application tags for an instance.
-       * This flag is turned "off" by default.
-       * 
- * - * optional bool record_application_tags = 6; - * - * @return Whether the recordApplicationTags field is set. - */ - @java.lang.Override - public boolean hasRecordApplicationTags() { - return ((bitField0_ & 0x00000020) != 0); - } - - /** - * - * - *
-       * Record application tags for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Record application tags for an instance.
        * 
* - * optional bool record_application_tags = 6; + * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The recordApplicationTags. */ @@ -5943,11 +8554,10 @@ public boolean getRecordApplicationTags() { * * *
-       * Record application tags for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Record application tags for an instance.
        * 
* - * optional bool record_application_tags = 6; + * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The recordApplicationTags to set. * @return This builder for chaining. @@ -5964,11 +8574,10 @@ public Builder setRecordApplicationTags(boolean value) { * * *
-       * Record application tags for an instance.
-       * This flag is turned "off" by default.
+       * Output only. Record application tags for an instance.
        * 
* - * optional bool record_application_tags = 6; + * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -5985,30 +8594,11 @@ public Builder clearRecordApplicationTags() { * * *
-       * Number of query execution plans captured by Insights per minute
-       * for all queries combined. The default value is 200.
-       * Any integer between 0 to 200 is considered valid.
-       * 
- * - * optional int32 query_plans_per_minute = 7; - * - * @return Whether the queryPlansPerMinute field is set. - */ - @java.lang.Override - public boolean hasQueryPlansPerMinute() { - return ((bitField0_ & 0x00000040) != 0); - } - - /** - * - * - *
-       * Number of query execution plans captured by Insights per minute
-       * for all queries combined. The default value is 200.
-       * Any integer between 0 to 200 is considered valid.
+       * Output only. Number of query execution plans captured by Insights per
+       * minute for all queries combined.
        * 
* - * optional int32 query_plans_per_minute = 7; + * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The queryPlansPerMinute. */ @@ -6021,12 +8611,11 @@ public int getQueryPlansPerMinute() { * * *
-       * Number of query execution plans captured by Insights per minute
-       * for all queries combined. The default value is 200.
-       * Any integer between 0 to 200 is considered valid.
+       * Output only. Number of query execution plans captured by Insights per
+       * minute for all queries combined.
        * 
* - * optional int32 query_plans_per_minute = 7; + * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The queryPlansPerMinute to set. * @return This builder for chaining. @@ -6043,12 +8632,11 @@ public Builder setQueryPlansPerMinute(int value) { * * *
-       * Number of query execution plans captured by Insights per minute
-       * for all queries combined. The default value is 200.
-       * Any integer between 0 to 200 is considered valid.
+       * Output only. Number of query execution plans captured by Insights per
+       * minute for all queries combined.
        * 
* - * optional int32 query_plans_per_minute = 7; + * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -6065,28 +8653,10 @@ public Builder clearQueryPlansPerMinute() { * * *
-       * Track actively running queries on the instance.
-       * If not set, this flag is "off" by default.
-       * 
- * - * optional bool track_active_queries = 8; - * - * @return Whether the trackActiveQueries field is set. - */ - @java.lang.Override - public boolean hasTrackActiveQueries() { - return ((bitField0_ & 0x00000080) != 0); - } - - /** - * - * - *
-       * Track actively running queries on the instance.
-       * If not set, this flag is "off" by default.
+       * Output only. Track actively running queries on the instance.
        * 
* - * optional bool track_active_queries = 8; + * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The trackActiveQueries. */ @@ -6099,11 +8669,10 @@ public boolean getTrackActiveQueries() { * * *
-       * Track actively running queries on the instance.
-       * If not set, this flag is "off" by default.
+       * Output only. Track actively running queries on the instance.
        * 
* - * optional bool track_active_queries = 8; + * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The trackActiveQueries to set. * @return This builder for chaining. @@ -6120,11 +8689,10 @@ public Builder setTrackActiveQueries(boolean value) { * * *
-       * Track actively running queries on the instance.
-       * If not set, this flag is "off" by default.
+       * Output only. Track actively running queries on the instance.
        * 
* - * optional bool track_active_queries = 8; + * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -6141,28 +8709,10 @@ public Builder clearTrackActiveQueries() { * * *
-       * Track client address for an instance.
-       * If not set, default value is "off".
-       * 
- * - * optional bool track_client_address = 9; - * - * @return Whether the trackClientAddress field is set. - */ - @java.lang.Override - public boolean hasTrackClientAddress() { - return ((bitField0_ & 0x00000100) != 0); - } - - /** - * - * - *
-       * Track client address for an instance.
-       * If not set, default value is "off".
+       * Output only. Track client address for an instance.
        * 
* - * optional bool track_client_address = 9; + * bool track_client_address = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The trackClientAddress. */ @@ -6175,11 +8725,10 @@ public boolean getTrackClientAddress() { * * *
-       * Track client address for an instance.
-       * If not set, default value is "off".
+       * Output only. Track client address for an instance.
        * 
* - * optional bool track_client_address = 9; + * bool track_client_address = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The trackClientAddress to set. * @return This builder for chaining. @@ -6196,11 +8745,10 @@ public Builder setTrackClientAddress(boolean value) { * * *
-       * Track client address for an instance.
-       * If not set, default value is "off".
+       * Output only. Track client address for an instance.
        * 
* - * optional bool track_client_address = 9; + * bool track_client_address = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -6217,50 +8765,110 @@ public Builder clearTrackClientAddress() { * * *
-       * Whether assistive experiences are enabled for this AlloyDB instance.
+       * Output only. Whether assistive experiences are enabled for this AlloyDB
+       * instance.
        * 
* - * optional bool assistive_experiences_enabled = 10; + * bool assistive_experiences_enabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return Whether the assistiveExperiencesEnabled field is set. + * @return The assistiveExperiencesEnabled. */ @java.lang.Override - public boolean hasAssistiveExperiencesEnabled() { - return ((bitField0_ & 0x00000200) != 0); + public boolean getAssistiveExperiencesEnabled() { + return assistiveExperiencesEnabled_; + } + + /** + * + * + *
+       * Output only. Whether assistive experiences are enabled for this AlloyDB
+       * instance.
+       * 
+ * + * bool assistive_experiences_enabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The assistiveExperiencesEnabled to set. + * @return This builder for chaining. + */ + public Builder setAssistiveExperiencesEnabled(boolean value) { + + assistiveExperiencesEnabled_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Whether assistive experiences are enabled for this AlloyDB
+       * instance.
+       * 
+ * + * bool assistive_experiences_enabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAssistiveExperiencesEnabled() { + bitField0_ = (bitField0_ & ~0x00000200); + assistiveExperiencesEnabled_ = false; + onChanged(); + return this; } + private boolean trackActiveQueryPlan_; + /** * * *
-       * Whether assistive experiences are enabled for this AlloyDB instance.
+       * Output only. Indicates whether to track active query plans for an
+       * instance. Deprecated: Use track_active_queries instead.
        * 
* - * optional bool assistive_experiences_enabled = 10; + * + * bool track_active_query_plan = 13 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The assistiveExperiencesEnabled. + * @deprecated + * google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.track_active_query_plan + * is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=973 + * @return The trackActiveQueryPlan. */ @java.lang.Override - public boolean getAssistiveExperiencesEnabled() { - return assistiveExperiencesEnabled_; + @java.lang.Deprecated + public boolean getTrackActiveQueryPlan() { + return trackActiveQueryPlan_; } /** * * *
-       * Whether assistive experiences are enabled for this AlloyDB instance.
+       * Output only. Indicates whether to track active query plans for an
+       * instance. Deprecated: Use track_active_queries instead.
        * 
* - * optional bool assistive_experiences_enabled = 10; + * + * bool track_active_query_plan = 13 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The assistiveExperiencesEnabled to set. + * @deprecated + * google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.track_active_query_plan + * is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=973 + * @param value The trackActiveQueryPlan to set. * @return This builder for chaining. */ - public Builder setAssistiveExperiencesEnabled(boolean value) { + @java.lang.Deprecated + public Builder setTrackActiveQueryPlan(boolean value) { - assistiveExperiencesEnabled_ = value; - bitField0_ |= 0x00000200; + trackActiveQueryPlan_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -6269,40 +8877,47 @@ public Builder setAssistiveExperiencesEnabled(boolean value) { * * *
-       * Whether assistive experiences are enabled for this AlloyDB instance.
+       * Output only. Indicates whether to track active query plans for an
+       * instance. Deprecated: Use track_active_queries instead.
        * 
* - * optional bool assistive_experiences_enabled = 10; + * + * bool track_active_query_plan = 13 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated + * google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.track_active_query_plan + * is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=973 * @return This builder for chaining. */ - public Builder clearAssistiveExperiencesEnabled() { - bitField0_ = (bitField0_ & ~0x00000200); - assistiveExperiencesEnabled_ = false; + @java.lang.Deprecated + public Builder clearTrackActiveQueryPlan() { + bitField0_ = (bitField0_ & ~0x00000400); + trackActiveQueryPlan_ = false; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig) + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo) } - // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig) - private static final com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo) + private static final com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig(); + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo(); } - public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig + public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public ObservabilityInstanceConfig parsePartialFrom( + public ObservabilityInstanceInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -6322,17 +8937,17 @@ public ObservabilityInstanceConfig parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig + public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -20050,6 +22665,75 @@ public boolean hasQueryInsightsConfig() { : queryInsightsConfig_; } + public static final int QUERY_INSIGHTS_INFO_FIELD_NUMBER = 47; + private com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo queryInsightsInfo_; + + /** + * + * + *
+   * Output only. Instance level Query Insights information, which is read-only
+   * and available in the output only. Contains the effective query insights
+   * settings for this instance, by merging customer's provided
+   * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the queryInsightsInfo field is set. + */ + @java.lang.Override + public boolean hasQueryInsightsInfo() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Output only. Instance level Query Insights information, which is read-only
+   * and available in the output only. Contains the effective query insights
+   * settings for this instance, by merging customer's provided
+   * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The queryInsightsInfo. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo getQueryInsightsInfo() { + return queryInsightsInfo_ == null + ? com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo.getDefaultInstance() + : queryInsightsInfo_; + } + + /** + * + * + *
+   * Output only. Instance level Query Insights information, which is read-only
+   * and available in the output only. Contains the effective query insights
+   * settings for this instance, by merging customer's provided
+   * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfoOrBuilder + getQueryInsightsInfoOrBuilder() { + return queryInsightsInfo_ == null + ? com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo.getDefaultInstance() + : queryInsightsInfo_; + } + public static final int OBSERVABILITY_CONFIG_FIELD_NUMBER = 26; private com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observabilityConfig_; @@ -20068,7 +22752,7 @@ public boolean hasQueryInsightsConfig() { */ @java.lang.Override public boolean hasObservabilityConfig() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -20111,6 +22795,77 @@ public boolean hasObservabilityConfig() { : observabilityConfig_; } + public static final int OBSERVABILITY_INSTANCE_INFO_FIELD_NUMBER = 44; + private com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo + observabilityInstanceInfo_; + + /** + * + * + *
+   * Output only. Instance level observability information, contains the
+   * effective values of observability settings for this instance, by merging
+   * customer's provided `ObservabilityInstanceConfig` with the
+   * Observability defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the observabilityInstanceInfo field is set. + */ + @java.lang.Override + public boolean hasObservabilityInstanceInfo() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+   * Output only. Instance level observability information, contains the
+   * effective values of observability settings for this instance, by merging
+   * customer's provided `ObservabilityInstanceConfig` with the
+   * Observability defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The observabilityInstanceInfo. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo + getObservabilityInstanceInfo() { + return observabilityInstanceInfo_ == null + ? com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.getDefaultInstance() + : observabilityInstanceInfo_; + } + + /** + * + * + *
+   * Output only. Instance level observability information, contains the
+   * effective values of observability settings for this instance, by merging
+   * customer's provided `ObservabilityInstanceConfig` with the
+   * Observability defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfoOrBuilder + getObservabilityInstanceInfoOrBuilder() { + return observabilityInstanceInfo_ == null + ? com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.getDefaultInstance() + : observabilityInstanceInfo_; + } + public static final int READ_POOL_CONFIG_FIELD_NUMBER = 14; private com.google.cloud.alloydb.v1beta.Instance.ReadPoolConfig readPoolConfig_; @@ -20128,7 +22883,7 @@ public boolean hasObservabilityConfig() { */ @java.lang.Override public boolean hasReadPoolConfig() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -20495,7 +23250,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { */ @java.lang.Override public boolean hasUpdatePolicy() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -20556,7 +23311,7 @@ public com.google.cloud.alloydb.v1beta.Instance.UpdatePolicyOrBuilder getUpdateP */ @java.lang.Override public boolean hasClientConnectionConfig() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -20637,7 +23392,7 @@ public boolean getSatisfiesPzs() { */ @java.lang.Override public boolean hasPscInstanceConfig() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -20700,7 +23455,7 @@ public com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig getPscInstance */ @java.lang.Override public boolean hasPscInstanceInfo() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -20762,7 +23517,7 @@ public com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo getPscInstanceIn */ @java.lang.Override public boolean hasNetworkConfig() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -20820,13 +23575,13 @@ public com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig getNetwork *
* * @deprecated google.cloud.alloydb.v1beta.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1393 + * google/cloud/alloydb/v1beta/resources.proto;l=1472 * @return Whether the geminiConfig field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasGeminiConfig() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -20842,7 +23597,7 @@ public boolean hasGeminiConfig() { *
* * @deprecated google.cloud.alloydb.v1beta.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1393 + * google/cloud/alloydb/v1beta/resources.proto;l=1472 * @return The geminiConfig. */ @java.lang.Override @@ -21022,7 +23777,7 @@ public com.google.cloud.alloydb.v1beta.Instance.ActivationPolicy getActivationPo */ @java.lang.Override public boolean hasConnectionPoolConfig() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -21082,7 +23837,7 @@ public com.google.cloud.alloydb.v1beta.Instance.ConnectionPoolConfig getConnecti */ @java.lang.Override public boolean hasGcaConfig() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -21178,7 +23933,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetDatabaseFlags(), DatabaseFlagsDefaultEntryHolder.defaultEntry, 13); - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(14, getReadPoolConfig()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ipAddress_)) { @@ -21201,28 +23956,28 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(21, getQueryInsightsConfig()); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { output.writeMessage(22, getUpdatePolicy()); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { output.writeMessage(23, getClientConnectionConfig()); } if (satisfiesPzs_ != false) { output.writeBool(24, satisfiesPzs_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(26, getObservabilityConfig()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(publicIpAddress_)) { com.google.protobuf.GeneratedMessage.writeString(output, 27, publicIpAddress_); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { output.writeMessage(28, getPscInstanceConfig()); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { output.writeMessage(29, getNetworkConfig()); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { output.writeMessage(33, getGeminiConfig()); } for (int i = 0; i < outboundPublicIpAddresses_.size(); i++) { @@ -21234,15 +23989,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(35, activationPolicy_); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { output.writeMessage(37, getConnectionPoolConfig()); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { output.writeMessage(38, getGcaConfig()); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(44, getObservabilityInstanceInfo()); + } + if (((bitField0_ & 0x00002000) != 0)) { output.writeMessage(46, getPscInstanceInfo()); } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(47, getQueryInsightsInfo()); + } getUnknownFields().writeTo(output); } @@ -21309,7 +24070,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, databaseFlags__); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getReadPoolConfig()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ipAddress_)) { @@ -21341,30 +24102,30 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getQueryInsightsConfig()); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getUpdatePolicy()); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getClientConnectionConfig()); } if (satisfiesPzs_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, satisfiesPzs_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getObservabilityConfig()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(publicIpAddress_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(27, publicIpAddress_); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getPscInstanceConfig()); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getNetworkConfig()); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(33, getGeminiConfig()); } { @@ -21380,16 +24141,24 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(35, activationPolicy_); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, getConnectionPoolConfig()); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getGcaConfig()); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 44, getObservabilityInstanceInfo()); + } + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(46, getPscInstanceInfo()); } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(47, getQueryInsightsInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -21439,10 +24208,19 @@ public boolean equals(final java.lang.Object obj) { if (hasQueryInsightsConfig()) { if (!getQueryInsightsConfig().equals(other.getQueryInsightsConfig())) return false; } + if (hasQueryInsightsInfo() != other.hasQueryInsightsInfo()) return false; + if (hasQueryInsightsInfo()) { + if (!getQueryInsightsInfo().equals(other.getQueryInsightsInfo())) return false; + } if (hasObservabilityConfig() != other.hasObservabilityConfig()) return false; if (hasObservabilityConfig()) { if (!getObservabilityConfig().equals(other.getObservabilityConfig())) return false; } + if (hasObservabilityInstanceInfo() != other.hasObservabilityInstanceInfo()) return false; + if (hasObservabilityInstanceInfo()) { + if (!getObservabilityInstanceInfo().equals(other.getObservabilityInstanceInfo())) + return false; + } if (hasReadPoolConfig() != other.hasReadPoolConfig()) return false; if (hasReadPoolConfig()) { if (!getReadPoolConfig().equals(other.getReadPoolConfig())) return false; @@ -21549,10 +24327,18 @@ public int hashCode() { hash = (37 * hash) + QUERY_INSIGHTS_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getQueryInsightsConfig().hashCode(); } + if (hasQueryInsightsInfo()) { + hash = (37 * hash) + QUERY_INSIGHTS_INFO_FIELD_NUMBER; + hash = (53 * hash) + getQueryInsightsInfo().hashCode(); + } if (hasObservabilityConfig()) { hash = (37 * hash) + OBSERVABILITY_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getObservabilityConfig().hashCode(); } + if (hasObservabilityInstanceInfo()) { + hash = (37 * hash) + OBSERVABILITY_INSTANCE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getObservabilityInstanceInfo().hashCode(); + } if (hasReadPoolConfig()) { hash = (37 * hash) + READ_POOL_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getReadPoolConfig().hashCode(); @@ -21788,7 +24574,9 @@ private void maybeForceBuilderInitialization() { internalGetWritableNodeFieldBuilder(); internalGetNodesFieldBuilder(); internalGetQueryInsightsConfigFieldBuilder(); + internalGetQueryInsightsInfoFieldBuilder(); internalGetObservabilityConfigFieldBuilder(); + internalGetObservabilityInstanceInfoFieldBuilder(); internalGetReadPoolConfigFieldBuilder(); internalGetUpdatePolicyFieldBuilder(); internalGetClientConnectionConfigFieldBuilder(); @@ -21852,11 +24640,21 @@ public Builder clear() { queryInsightsConfigBuilder_.dispose(); queryInsightsConfigBuilder_ = null; } + queryInsightsInfo_ = null; + if (queryInsightsInfoBuilder_ != null) { + queryInsightsInfoBuilder_.dispose(); + queryInsightsInfoBuilder_ = null; + } observabilityConfig_ = null; if (observabilityConfigBuilder_ != null) { observabilityConfigBuilder_.dispose(); observabilityConfigBuilder_ = null; } + observabilityInstanceInfo_ = null; + if (observabilityInstanceInfoBuilder_ != null) { + observabilityInstanceInfoBuilder_.dispose(); + observabilityInstanceInfoBuilder_ = null; + } readPoolConfig_ = null; if (readPoolConfigBuilder_ != null) { readPoolConfigBuilder_.dispose(); @@ -22022,93 +24820,107 @@ private void buildPartial0(com.google.cloud.alloydb.v1beta.Instance result) { to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00010000) != 0)) { + result.queryInsightsInfo_ = + queryInsightsInfoBuilder_ == null + ? queryInsightsInfo_ + : queryInsightsInfoBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00020000) != 0)) { result.observabilityConfig_ = observabilityConfigBuilder_ == null ? observabilityConfig_ : observabilityConfigBuilder_.build(); - to_bitField0_ |= 0x00000040; + to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { + result.observabilityInstanceInfo_ = + observabilityInstanceInfoBuilder_ == null + ? observabilityInstanceInfo_ + : observabilityInstanceInfoBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00080000) != 0)) { result.readPoolConfig_ = readPoolConfigBuilder_ == null ? readPoolConfig_ : readPoolConfigBuilder_.build(); - to_bitField0_ |= 0x00000080; + to_bitField0_ |= 0x00000200; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.ipAddress_ = ipAddress_; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.publicIpAddress_ = publicIpAddress_; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00400000) != 0)) { result.reconciling_ = reconciling_; } - if (((from_bitField0_ & 0x00200000) != 0)) { + if (((from_bitField0_ & 0x00800000) != 0)) { result.etag_ = etag_; } - if (((from_bitField0_ & 0x00400000) != 0)) { + if (((from_bitField0_ & 0x01000000) != 0)) { result.annotations_ = internalGetAnnotations(); result.annotations_.makeImmutable(); } - if (((from_bitField0_ & 0x00800000) != 0)) { + if (((from_bitField0_ & 0x02000000) != 0)) { result.updatePolicy_ = updatePolicyBuilder_ == null ? updatePolicy_ : updatePolicyBuilder_.build(); - to_bitField0_ |= 0x00000100; + to_bitField0_ |= 0x00000400; } - if (((from_bitField0_ & 0x01000000) != 0)) { + if (((from_bitField0_ & 0x04000000) != 0)) { result.clientConnectionConfig_ = clientConnectionConfigBuilder_ == null ? clientConnectionConfig_ : clientConnectionConfigBuilder_.build(); - to_bitField0_ |= 0x00000200; + to_bitField0_ |= 0x00000800; } - if (((from_bitField0_ & 0x02000000) != 0)) { + if (((from_bitField0_ & 0x08000000) != 0)) { result.satisfiesPzs_ = satisfiesPzs_; } - if (((from_bitField0_ & 0x04000000) != 0)) { + if (((from_bitField0_ & 0x10000000) != 0)) { result.pscInstanceConfig_ = pscInstanceConfigBuilder_ == null ? pscInstanceConfig_ : pscInstanceConfigBuilder_.build(); - to_bitField0_ |= 0x00000400; + to_bitField0_ |= 0x00001000; } - if (((from_bitField0_ & 0x08000000) != 0)) { + if (((from_bitField0_ & 0x20000000) != 0)) { result.pscInstanceInfo_ = pscInstanceInfoBuilder_ == null ? pscInstanceInfo_ : pscInstanceInfoBuilder_.build(); - to_bitField0_ |= 0x00000800; + to_bitField0_ |= 0x00002000; } - if (((from_bitField0_ & 0x10000000) != 0)) { + if (((from_bitField0_ & 0x40000000) != 0)) { result.networkConfig_ = networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); - to_bitField0_ |= 0x00001000; + to_bitField0_ |= 0x00004000; } - if (((from_bitField0_ & 0x20000000) != 0)) { + if (((from_bitField0_ & 0x80000000) != 0)) { result.geminiConfig_ = geminiConfigBuilder_ == null ? geminiConfig_ : geminiConfigBuilder_.build(); - to_bitField0_ |= 0x00002000; - } - if (((from_bitField0_ & 0x40000000) != 0)) { - outboundPublicIpAddresses_.makeImmutable(); - result.outboundPublicIpAddresses_ = outboundPublicIpAddresses_; - } - if (((from_bitField0_ & 0x80000000) != 0)) { - result.activationPolicy_ = activationPolicy_; + to_bitField0_ |= 0x00008000; } result.bitField0_ |= to_bitField0_; } private void buildPartial1(com.google.cloud.alloydb.v1beta.Instance result) { int from_bitField1_ = bitField1_; - int to_bitField0_ = 0; if (((from_bitField1_ & 0x00000001) != 0)) { + outboundPublicIpAddresses_.makeImmutable(); + result.outboundPublicIpAddresses_ = outboundPublicIpAddresses_; + } + if (((from_bitField1_ & 0x00000002) != 0)) { + result.activationPolicy_ = activationPolicy_; + } + int to_bitField0_ = 0; + if (((from_bitField1_ & 0x00000004) != 0)) { result.connectionPoolConfig_ = connectionPoolConfigBuilder_ == null ? connectionPoolConfig_ : connectionPoolConfigBuilder_.build(); - to_bitField0_ |= 0x00004000; + to_bitField0_ |= 0x00010000; } - if (((from_bitField1_ & 0x00000002) != 0)) { + if (((from_bitField1_ & 0x00000008) != 0)) { result.gcaConfig_ = gcaConfigBuilder_ == null ? gcaConfig_ : gcaConfigBuilder_.build(); - to_bitField0_ |= 0x00008000; + to_bitField0_ |= 0x00020000; } result.bitField0_ |= to_bitField0_; } @@ -22203,20 +25015,26 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.Instance other) { if (other.hasQueryInsightsConfig()) { mergeQueryInsightsConfig(other.getQueryInsightsConfig()); } + if (other.hasQueryInsightsInfo()) { + mergeQueryInsightsInfo(other.getQueryInsightsInfo()); + } if (other.hasObservabilityConfig()) { mergeObservabilityConfig(other.getObservabilityConfig()); } + if (other.hasObservabilityInstanceInfo()) { + mergeObservabilityInstanceInfo(other.getObservabilityInstanceInfo()); + } if (other.hasReadPoolConfig()) { mergeReadPoolConfig(other.getReadPoolConfig()); } if (!other.getIpAddress().isEmpty()) { ipAddress_ = other.ipAddress_; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); } if (!other.getPublicIpAddress().isEmpty()) { publicIpAddress_ = other.publicIpAddress_; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; onChanged(); } if (other.getReconciling() != false) { @@ -22224,11 +25042,11 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.Instance other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; onChanged(); } internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; if (other.hasUpdatePolicy()) { mergeUpdatePolicy(other.getUpdatePolicy()); } @@ -22253,7 +25071,7 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.Instance other) { if (!other.outboundPublicIpAddresses_.isEmpty()) { if (outboundPublicIpAddresses_.isEmpty()) { outboundPublicIpAddresses_ = other.outboundPublicIpAddresses_; - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; } else { ensureOutboundPublicIpAddressesIsMutable(); outboundPublicIpAddresses_.addAll(other.outboundPublicIpAddresses_); @@ -22393,25 +25211,25 @@ public Builder mergeFrom( { input.readMessage( internalGetReadPoolConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; break; } // case 114 case 122: { ipAddress_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; break; } // case 122 case 128: { reconciling_ = input.readBool(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00400000; break; } // case 128 case 138: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; break; } // case 138 case 146: @@ -22423,7 +25241,7 @@ public Builder mergeFrom( internalGetMutableAnnotations() .getMutableMap() .put(annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; break; } // case 146 case 154: @@ -22457,7 +25275,7 @@ public Builder mergeFrom( { input.readMessage( internalGetUpdatePolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; break; } // case 178 case 186: @@ -22465,47 +25283,47 @@ public Builder mergeFrom( input.readMessage( internalGetClientConnectionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; break; } // case 186 case 192: { satisfiesPzs_ = input.readBool(); - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; break; } // case 192 case 210: { input.readMessage( internalGetObservabilityConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 210 case 218: { publicIpAddress_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; break; } // case 218 case 226: { input.readMessage( internalGetPscInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; break; } // case 226 case 234: { input.readMessage( internalGetNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; break; } // case 234 case 266: { input.readMessage( internalGetGeminiConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; break; } // case 266 case 274: @@ -22518,30 +25336,45 @@ public Builder mergeFrom( case 280: { activationPolicy_ = input.readEnum(); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; break; } // case 280 case 298: { input.readMessage( internalGetConnectionPoolConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; break; } // case 298 case 306: { input.readMessage( internalGetGcaConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; break; } // case 306 + case 354: + { + input.readMessage( + internalGetObservabilityInstanceInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 354 case 370: { input.readMessage( internalGetPscInstanceInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; break; } // case 370 + case 378: + { + input.readMessage( + internalGetQueryInsightsInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 378 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -23264,13 +26097,225 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { - updateTime_ = value; + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; + + /** + * + * + *
+     * Output only. Delete time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. Delete time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Delete time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + } else { + deleteTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Delete time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Delete time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); + } else { + deleteTime_ = value; } } else { - updateTimeBuilder_.mergeFrom(value); + deleteTimeBuilder_.mergeFrom(value); } - if (updateTime_ != null) { - bitField0_ |= 0x00000010; + if (deleteTime_ != null) { + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -23280,19 +26325,19 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Update time stamp
+     * Output only. Delete time stamp
      * 
* * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000010); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; + public Builder clearDeleteTime() { + bitField0_ = (bitField0_ & ~0x00000020); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; } onChanged(); return this; @@ -23302,37 +26347,37 @@ public Builder clearUpdateTime() { * * *
-     * Output only. Update time stamp
+     * Output only. Delete time stamp
      * 
* * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000010; + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { + bitField0_ |= 0x00000020; onChanged(); - return internalGetUpdateTimeFieldBuilder().getBuilder(); + return internalGetDeleteTimeFieldBuilder().getBuilder(); } /** * * *
-     * Output only. Update time stamp
+     * Output only. Delete time stamp
      * 
* * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + : deleteTime_; } } @@ -23340,120 +26385,239 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-     * Output only. Update time stamp
+     * Output only. Delete time stamp
      * 
* * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = + internalGetDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; + getDeleteTime(), getParentForChildren(), isClean()); + deleteTime_ = null; } - return updateTimeBuilder_; + return deleteTimeBuilder_; } - private com.google.protobuf.Timestamp deleteTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000040; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } /** * * *
-     * Output only. Delete time stamp
+     * Labels as key value pairs
      * 
* - * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 7; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** * - * @return Whether the deleteTime field is set. + * + *
+     * Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 7; */ - public boolean hasDeleteTime() { - return ((bitField0_ & 0x00000020) != 0); + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); } /** * * *
-     * Output only. Delete time stamp
+     * Labels as key value pairs
      * 
* - * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 7; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** * - * @return The deleteTime. + * + *
+     * Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 7; */ - public com.google.protobuf.Timestamp getDeleteTime() { - if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; - } else { - return deleteTimeBuilder_.getMessage(); + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableLabels().getMutableMap().clear(); + return this; } /** * * *
-     * Output only. Delete time stamp
+     * Labels as key value pairs
      * 
* - * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 7; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp value) { - if (deleteTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deleteTime_ = value; - } else { - deleteTimeBuilder_.setMessage(value); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000020; - onChanged(); + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000040; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
+     * Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 7; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000040; + return this; + } + + /** + * + * + *
+     * Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 7; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000040; return this; } + private int state_ = 0; + + /** + * + * + *
+     * Output only. The current serving state of the instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** * * *
-     * Output only. Delete time stamp
+     * Output only. The current serving state of the instance.
      * 
* * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (deleteTimeBuilder_ == null) { - deleteTime_ = builderForValue.build(); - } else { - deleteTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -23462,50 +26626,42 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. Delete time stamp
+     * Output only. The current serving state of the instance.
      * 
* * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The state. */ - public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { - if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && deleteTime_ != null - && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getDeleteTimeBuilder().mergeFrom(value); - } else { - deleteTime_ = value; - } - } else { - deleteTimeBuilder_.mergeFrom(value); - } - if (deleteTime_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } - return this; + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.State getState() { + com.google.cloud.alloydb.v1beta.Instance.State result = + com.google.cloud.alloydb.v1beta.Instance.State.forNumber(state_); + return result == null ? com.google.cloud.alloydb.v1beta.Instance.State.UNRECOGNIZED : result; } /** * * *
-     * Output only. Delete time stamp
+     * Output only. The current serving state of the instance.
      * 
* * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The state to set. + * @return This builder for chaining. */ - public Builder clearDeleteTime() { - bitField0_ = (bitField0_ & ~0x00000020); - deleteTime_ = null; - if (deleteTimeBuilder_ != null) { - deleteTimeBuilder_.dispose(); - deleteTimeBuilder_ = null; + public Builder setState(com.google.cloud.alloydb.v1beta.Instance.State value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000080; + state_ = value.getNumber(); onChanged(); return this; } @@ -23514,222 +26670,195 @@ public Builder clearDeleteTime() { * * *
-     * Output only. Delete time stamp
+     * Output only. The current serving state of the instance.
      * 
* * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return This builder for chaining. */ - public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - bitField0_ |= 0x00000020; + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000080); + state_ = 0; onChanged(); - return internalGetDeleteTimeFieldBuilder().getBuilder(); + return this; } + private int instanceType_ = 0; + /** * * *
-     * Output only. Delete time stamp
+     * Required. The type of the instance. Specified at creation time.
      * 
* * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The enum numeric value on the wire for instanceType. */ - public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { - if (deleteTimeBuilder_ != null) { - return deleteTimeBuilder_.getMessageOrBuilder(); - } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; - } + @java.lang.Override + public int getInstanceTypeValue() { + return instanceType_; } /** * * *
-     * Output only. Delete time stamp
+     * Required. The type of the instance. Specified at creation time.
      * 
* * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param value The enum numeric value on the wire for instanceType to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetDeleteTimeFieldBuilder() { - if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); - deleteTime_ = null; - } - return deleteTimeBuilder_; - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - private com.google.protobuf.MapField - internalGetMutableLabels() { - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - bitField0_ |= 0x00000040; + public Builder setInstanceTypeValue(int value) { + instanceType_ = value; + bitField0_ |= 0x00000100; onChanged(); - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); + return this; } /** * * *
-     * Labels as key value pairs
+     * Required. The type of the instance. Specified at creation time.
      * 
* - * map<string, string> labels = 7; + * + * .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceType. */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); + public com.google.cloud.alloydb.v1beta.Instance.InstanceType getInstanceType() { + com.google.cloud.alloydb.v1beta.Instance.InstanceType result = + com.google.cloud.alloydb.v1beta.Instance.InstanceType.forNumber(instanceType_); + return result == null + ? com.google.cloud.alloydb.v1beta.Instance.InstanceType.UNRECOGNIZED + : result; } /** * * *
-     * Labels as key value pairs
+     * Required. The type of the instance. Specified at creation time.
      * 
* - * map<string, string> labels = 7; + * + * .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The instanceType to set. + * @return This builder for chaining. */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); + public Builder setInstanceType(com.google.cloud.alloydb.v1beta.Instance.InstanceType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + instanceType_ = value.getNumber(); + onChanged(); + return this; } /** * * *
-     * Labels as key value pairs
+     * Required. The type of the instance. Specified at creation time.
      * 
* - * map<string, string> labels = 7; + * + * .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; + public Builder clearInstanceType() { + bitField0_ = (bitField0_ & ~0x00000100); + instanceType_ = 0; + onChanged(); + return this; } + private com.google.cloud.alloydb.v1beta.Instance.MachineConfig machineConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.MachineConfig, + com.google.cloud.alloydb.v1beta.Instance.MachineConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.MachineConfigOrBuilder> + machineConfigBuilder_; + /** * * *
-     * Labels as key value pairs
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * map<string, string> labels = 7; + * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10; + * + * @return Whether the machineConfig field is set. */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableLabels().getMutableMap().clear(); - return this; + public boolean hasMachineConfig() { + return ((bitField0_ & 0x00000200) != 0); } /** * * *
-     * Labels as key value pairs
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * map<string, string> labels = 7; + * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10; + * + * @return The machineConfig. */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public com.google.cloud.alloydb.v1beta.Instance.MachineConfig getMachineConfig() { + if (machineConfigBuilder_ == null) { + return machineConfig_ == null + ? com.google.cloud.alloydb.v1beta.Instance.MachineConfig.getDefaultInstance() + : machineConfig_; + } else { + return machineConfigBuilder_.getMessage(); } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000040; - return internalGetMutableLabels().getMutableMap(); } /** * * *
-     * Labels as key value pairs
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * map<string, string> labels = 7; + * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); + public Builder setMachineConfig(com.google.cloud.alloydb.v1beta.Instance.MachineConfig value) { + if (machineConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + machineConfig_ = value; + } else { + machineConfigBuilder_.setMessage(value); } - internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; + onChanged(); return this; } @@ -23737,54 +26866,72 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
-     * Labels as key value pairs
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * map<string, string> labels = 7; + * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000040; + public Builder setMachineConfig( + com.google.cloud.alloydb.v1beta.Instance.MachineConfig.Builder builderForValue) { + if (machineConfigBuilder_ == null) { + machineConfig_ = builderForValue.build(); + } else { + machineConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); return this; } - private int state_ = 0; - /** * * *
-     * Output only. The current serving state of the instance.
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * - * .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. + * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10; */ - @java.lang.Override - public int getStateValue() { - return state_; + public Builder mergeMachineConfig( + com.google.cloud.alloydb.v1beta.Instance.MachineConfig value) { + if (machineConfigBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && machineConfig_ != null + && machineConfig_ + != com.google.cloud.alloydb.v1beta.Instance.MachineConfig.getDefaultInstance()) { + getMachineConfigBuilder().mergeFrom(value); + } else { + machineConfig_ = value; + } + } else { + machineConfigBuilder_.mergeFrom(value); + } + if (machineConfig_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; } /** * * *
-     * Output only. The current serving state of the instance.
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * - * .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. + * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10; */ - public Builder setStateValue(int value) { - state_ = value; - bitField0_ |= 0x00000080; + public Builder clearMachineConfig() { + bitField0_ = (bitField0_ & ~0x00000200); + machineConfig_ = null; + if (machineConfigBuilder_ != null) { + machineConfigBuilder_.dispose(); + machineConfigBuilder_ = null; + } onChanged(); return this; } @@ -23793,103 +26940,110 @@ public Builder setStateValue(int value) { * * *
-     * Output only. The current serving state of the instance.
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * - * .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. + * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10; */ - @java.lang.Override - public com.google.cloud.alloydb.v1beta.Instance.State getState() { - com.google.cloud.alloydb.v1beta.Instance.State result = - com.google.cloud.alloydb.v1beta.Instance.State.forNumber(state_); - return result == null ? com.google.cloud.alloydb.v1beta.Instance.State.UNRECOGNIZED : result; + public com.google.cloud.alloydb.v1beta.Instance.MachineConfig.Builder + getMachineConfigBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetMachineConfigFieldBuilder().getBuilder(); } /** * * *
-     * Output only. The current serving state of the instance.
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * - * .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The state to set. - * @return This builder for chaining. + * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10; */ - public Builder setState(com.google.cloud.alloydb.v1beta.Instance.State value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.alloydb.v1beta.Instance.MachineConfigOrBuilder + getMachineConfigOrBuilder() { + if (machineConfigBuilder_ != null) { + return machineConfigBuilder_.getMessageOrBuilder(); + } else { + return machineConfig_ == null + ? com.google.cloud.alloydb.v1beta.Instance.MachineConfig.getDefaultInstance() + : machineConfig_; } - bitField0_ |= 0x00000080; - state_ = value.getNumber(); - onChanged(); - return this; } /** * * *
-     * Output only. The current serving state of the instance.
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * - * .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. + * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10; */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000080); - state_ = 0; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.MachineConfig, + com.google.cloud.alloydb.v1beta.Instance.MachineConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.MachineConfigOrBuilder> + internalGetMachineConfigFieldBuilder() { + if (machineConfigBuilder_ == null) { + machineConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.MachineConfig, + com.google.cloud.alloydb.v1beta.Instance.MachineConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.MachineConfigOrBuilder>( + getMachineConfig(), getParentForChildren(), isClean()); + machineConfig_ = null; + } + return machineConfigBuilder_; } - private int instanceType_ = 0; + private int availabilityType_ = 0; /** * * *
-     * Required. The type of the instance. Specified at creation time.
+     * Availability type of an Instance.
+     * If empty, defaults to REGIONAL for primary instances.
+     * For read pools, availability_type is always UNSPECIFIED. Instances in the
+     * read pools are evenly distributed across available zones within the region
+     * (i.e. read pools with more than one node will have a node in at
+     * least two zones).
      * 
* - * - * .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.alloydb.v1beta.Instance.AvailabilityType availability_type = 11; * - * @return The enum numeric value on the wire for instanceType. + * @return The enum numeric value on the wire for availabilityType. */ @java.lang.Override - public int getInstanceTypeValue() { - return instanceType_; + public int getAvailabilityTypeValue() { + return availabilityType_; } /** * * *
-     * Required. The type of the instance. Specified at creation time.
+     * Availability type of an Instance.
+     * If empty, defaults to REGIONAL for primary instances.
+     * For read pools, availability_type is always UNSPECIFIED. Instances in the
+     * read pools are evenly distributed across available zones within the region
+     * (i.e. read pools with more than one node will have a node in at
+     * least two zones).
      * 
* - * - * .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.alloydb.v1beta.Instance.AvailabilityType availability_type = 11; * - * @param value The enum numeric value on the wire for instanceType to set. + * @param value The enum numeric value on the wire for availabilityType to set. * @return This builder for chaining. */ - public Builder setInstanceTypeValue(int value) { - instanceType_ = value; - bitField0_ |= 0x00000100; + public Builder setAvailabilityTypeValue(int value) { + availabilityType_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -23898,21 +27052,24 @@ public Builder setInstanceTypeValue(int value) { * * *
-     * Required. The type of the instance. Specified at creation time.
+     * Availability type of an Instance.
+     * If empty, defaults to REGIONAL for primary instances.
+     * For read pools, availability_type is always UNSPECIFIED. Instances in the
+     * read pools are evenly distributed across available zones within the region
+     * (i.e. read pools with more than one node will have a node in at
+     * least two zones).
      * 
* - * - * .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.alloydb.v1beta.Instance.AvailabilityType availability_type = 11; * - * @return The instanceType. + * @return The availabilityType. */ @java.lang.Override - public com.google.cloud.alloydb.v1beta.Instance.InstanceType getInstanceType() { - com.google.cloud.alloydb.v1beta.Instance.InstanceType result = - com.google.cloud.alloydb.v1beta.Instance.InstanceType.forNumber(instanceType_); + public com.google.cloud.alloydb.v1beta.Instance.AvailabilityType getAvailabilityType() { + com.google.cloud.alloydb.v1beta.Instance.AvailabilityType result = + com.google.cloud.alloydb.v1beta.Instance.AvailabilityType.forNumber(availabilityType_); return result == null - ? com.google.cloud.alloydb.v1beta.Instance.InstanceType.UNRECOGNIZED + ? com.google.cloud.alloydb.v1beta.Instance.AvailabilityType.UNRECOGNIZED : result; } @@ -23920,22 +27077,26 @@ public com.google.cloud.alloydb.v1beta.Instance.InstanceType getInstanceType() { * * *
-     * Required. The type of the instance. Specified at creation time.
+     * Availability type of an Instance.
+     * If empty, defaults to REGIONAL for primary instances.
+     * For read pools, availability_type is always UNSPECIFIED. Instances in the
+     * read pools are evenly distributed across available zones within the region
+     * (i.e. read pools with more than one node will have a node in at
+     * least two zones).
      * 
* - * - * .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.alloydb.v1beta.Instance.AvailabilityType availability_type = 11; * - * @param value The instanceType to set. + * @param value The availabilityType to set. * @return This builder for chaining. */ - public Builder setInstanceType(com.google.cloud.alloydb.v1beta.Instance.InstanceType value) { + public Builder setAvailabilityType( + com.google.cloud.alloydb.v1beta.Instance.AvailabilityType value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000100; - instanceType_ = value.getNumber(); + bitField0_ |= 0x00000400; + availabilityType_ = value.getNumber(); onChanged(); return this; } @@ -23944,64 +27105,80 @@ public Builder setInstanceType(com.google.cloud.alloydb.v1beta.Instance.Instance * * *
-     * Required. The type of the instance. Specified at creation time.
+     * Availability type of an Instance.
+     * If empty, defaults to REGIONAL for primary instances.
+     * For read pools, availability_type is always UNSPECIFIED. Instances in the
+     * read pools are evenly distributed across available zones within the region
+     * (i.e. read pools with more than one node will have a node in at
+     * least two zones).
      * 
* - * - * .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.alloydb.v1beta.Instance.AvailabilityType availability_type = 11; * * @return This builder for chaining. */ - public Builder clearInstanceType() { - bitField0_ = (bitField0_ & ~0x00000100); - instanceType_ = 0; + public Builder clearAvailabilityType() { + bitField0_ = (bitField0_ & ~0x00000400); + availabilityType_ = 0; onChanged(); return this; } - private com.google.cloud.alloydb.v1beta.Instance.MachineConfig machineConfig_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.MachineConfig, - com.google.cloud.alloydb.v1beta.Instance.MachineConfig.Builder, - com.google.cloud.alloydb.v1beta.Instance.MachineConfigOrBuilder> - machineConfigBuilder_; + private java.lang.Object gceZone_ = ""; /** * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * The Compute Engine zone that the instance should serve from, per
+     * https://cloud.google.com/compute/docs/regions-zones
+     * This can ONLY be specified for ZONAL instances.
+     * If present for a REGIONAL instance, an error will be thrown.
+     * If this is absent for a ZONAL instance, instance is created in a random
+     * zone with available capacity.
      * 
* - * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10; + * string gce_zone = 12; * - * @return Whether the machineConfig field is set. + * @return The gceZone. */ - public boolean hasMachineConfig() { - return ((bitField0_ & 0x00000200) != 0); + public java.lang.String getGceZone() { + java.lang.Object ref = gceZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gceZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * The Compute Engine zone that the instance should serve from, per
+     * https://cloud.google.com/compute/docs/regions-zones
+     * This can ONLY be specified for ZONAL instances.
+     * If present for a REGIONAL instance, an error will be thrown.
+     * If this is absent for a ZONAL instance, instance is created in a random
+     * zone with available capacity.
      * 
* - * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10; + * string gce_zone = 12; * - * @return The machineConfig. + * @return The bytes for gceZone. */ - public com.google.cloud.alloydb.v1beta.Instance.MachineConfig getMachineConfig() { - if (machineConfigBuilder_ == null) { - return machineConfig_ == null - ? com.google.cloud.alloydb.v1beta.Instance.MachineConfig.getDefaultInstance() - : machineConfig_; + public com.google.protobuf.ByteString getGceZoneBytes() { + java.lang.Object ref = gceZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gceZone_ = b; + return b; } else { - return machineConfigBuilder_.getMessage(); + return (com.google.protobuf.ByteString) ref; } } @@ -24009,22 +27186,25 @@ public com.google.cloud.alloydb.v1beta.Instance.MachineConfig getMachineConfig() * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * The Compute Engine zone that the instance should serve from, per
+     * https://cloud.google.com/compute/docs/regions-zones
+     * This can ONLY be specified for ZONAL instances.
+     * If present for a REGIONAL instance, an error will be thrown.
+     * If this is absent for a ZONAL instance, instance is created in a random
+     * zone with available capacity.
      * 
* - * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10; + * string gce_zone = 12; + * + * @param value The gceZone to set. + * @return This builder for chaining. */ - public Builder setMachineConfig(com.google.cloud.alloydb.v1beta.Instance.MachineConfig value) { - if (machineConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - machineConfig_ = value; - } else { - machineConfigBuilder_.setMessage(value); + public Builder setGceZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00000200; + gceZone_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -24033,20 +27213,21 @@ public Builder setMachineConfig(com.google.cloud.alloydb.v1beta.Instance.Machine * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * The Compute Engine zone that the instance should serve from, per
+     * https://cloud.google.com/compute/docs/regions-zones
+     * This can ONLY be specified for ZONAL instances.
+     * If present for a REGIONAL instance, an error will be thrown.
+     * If this is absent for a ZONAL instance, instance is created in a random
+     * zone with available capacity.
      * 
* - * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10; + * string gce_zone = 12; + * + * @return This builder for chaining. */ - public Builder setMachineConfig( - com.google.cloud.alloydb.v1beta.Instance.MachineConfig.Builder builderForValue) { - if (machineConfigBuilder_ == null) { - machineConfig_ = builderForValue.build(); - } else { - machineConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; + public Builder clearGceZone() { + gceZone_ = getDefaultInstance().getGceZone(); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -24055,323 +27236,460 @@ public Builder setMachineConfig( * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * The Compute Engine zone that the instance should serve from, per
+     * https://cloud.google.com/compute/docs/regions-zones
+     * This can ONLY be specified for ZONAL instances.
+     * If present for a REGIONAL instance, an error will be thrown.
+     * If this is absent for a ZONAL instance, instance is created in a random
+     * zone with available capacity.
      * 
* - * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10; + * string gce_zone = 12; + * + * @param value The bytes for gceZone to set. + * @return This builder for chaining. */ - public Builder mergeMachineConfig( - com.google.cloud.alloydb.v1beta.Instance.MachineConfig value) { - if (machineConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && machineConfig_ != null - && machineConfig_ - != com.google.cloud.alloydb.v1beta.Instance.MachineConfig.getDefaultInstance()) { - getMachineConfigBuilder().mergeFrom(value); - } else { - machineConfig_ = value; - } - } else { - machineConfigBuilder_.mergeFrom(value); - } - if (machineConfig_ != null) { - bitField0_ |= 0x00000200; - onChanged(); + public Builder setGceZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + gceZone_ = value; + bitField0_ |= 0x00000800; + onChanged(); return this; } + private com.google.protobuf.MapField databaseFlags_; + + private com.google.protobuf.MapField + internalGetDatabaseFlags() { + if (databaseFlags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DatabaseFlagsDefaultEntryHolder.defaultEntry); + } + return databaseFlags_; + } + + private com.google.protobuf.MapField + internalGetMutableDatabaseFlags() { + if (databaseFlags_ == null) { + databaseFlags_ = + com.google.protobuf.MapField.newMapField(DatabaseFlagsDefaultEntryHolder.defaultEntry); + } + if (!databaseFlags_.isMutable()) { + databaseFlags_ = databaseFlags_.copy(); + } + bitField0_ |= 0x00001000; + onChanged(); + return databaseFlags_; + } + + public int getDatabaseFlagsCount() { + return internalGetDatabaseFlags().getMap().size(); + } + /** * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * Database flags. Set at the instance level.
+     * They are copied from the primary instance on secondary instance creation.
+     * Flags that have restrictions default to the value at primary
+     * instance on read instances during creation. Read instances can set new
+     * flags or override existing flags that are relevant for reads, for example,
+     * for enabling columnar cache on a read instance. Flags set on read instance
+     * might or might not be present on the primary instance.
+     *
+     *
+     * This is a list of "key": "value" pairs.
+     * "key": The name of the flag. These flags are passed at instance setup time,
+     * so include both server options and system variables for Postgres. Flags are
+     * specified with underscores, not hyphens.
+     * "value": The value of the flag. Booleans are set to **on** for true
+     * and **off** for false. This field must be omitted if the flag
+     * doesn't take a value.
+     * 
+ * + * map<string, string> database_flags = 13; + */ + @java.lang.Override + public boolean containsDatabaseFlags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetDatabaseFlags().getMap().containsKey(key); + } + + /** Use {@link #getDatabaseFlagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDatabaseFlags() { + return getDatabaseFlagsMap(); + } + + /** + * + * + *
+     * Database flags. Set at the instance level.
+     * They are copied from the primary instance on secondary instance creation.
+     * Flags that have restrictions default to the value at primary
+     * instance on read instances during creation. Read instances can set new
+     * flags or override existing flags that are relevant for reads, for example,
+     * for enabling columnar cache on a read instance. Flags set on read instance
+     * might or might not be present on the primary instance.
+     *
+     *
+     * This is a list of "key": "value" pairs.
+     * "key": The name of the flag. These flags are passed at instance setup time,
+     * so include both server options and system variables for Postgres. Flags are
+     * specified with underscores, not hyphens.
+     * "value": The value of the flag. Booleans are set to **on** for true
+     * and **off** for false. This field must be omitted if the flag
+     * doesn't take a value.
      * 
* - * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10; + * map<string, string> database_flags = 13; */ - public Builder clearMachineConfig() { - bitField0_ = (bitField0_ & ~0x00000200); - machineConfig_ = null; - if (machineConfigBuilder_ != null) { - machineConfigBuilder_.dispose(); - machineConfigBuilder_ = null; - } - onChanged(); - return this; + @java.lang.Override + public java.util.Map getDatabaseFlagsMap() { + return internalGetDatabaseFlags().getMap(); } /** * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * Database flags. Set at the instance level.
+     * They are copied from the primary instance on secondary instance creation.
+     * Flags that have restrictions default to the value at primary
+     * instance on read instances during creation. Read instances can set new
+     * flags or override existing flags that are relevant for reads, for example,
+     * for enabling columnar cache on a read instance. Flags set on read instance
+     * might or might not be present on the primary instance.
+     *
+     *
+     * This is a list of "key": "value" pairs.
+     * "key": The name of the flag. These flags are passed at instance setup time,
+     * so include both server options and system variables for Postgres. Flags are
+     * specified with underscores, not hyphens.
+     * "value": The value of the flag. Booleans are set to **on** for true
+     * and **off** for false. This field must be omitted if the flag
+     * doesn't take a value.
      * 
* - * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10; + * map<string, string> database_flags = 13; */ - public com.google.cloud.alloydb.v1beta.Instance.MachineConfig.Builder - getMachineConfigBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return internalGetMachineConfigFieldBuilder().getBuilder(); + @java.lang.Override + public /* nullable */ java.lang.String getDatabaseFlagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDatabaseFlags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * Database flags. Set at the instance level.
+     * They are copied from the primary instance on secondary instance creation.
+     * Flags that have restrictions default to the value at primary
+     * instance on read instances during creation. Read instances can set new
+     * flags or override existing flags that are relevant for reads, for example,
+     * for enabling columnar cache on a read instance. Flags set on read instance
+     * might or might not be present on the primary instance.
+     *
+     *
+     * This is a list of "key": "value" pairs.
+     * "key": The name of the flag. These flags are passed at instance setup time,
+     * so include both server options and system variables for Postgres. Flags are
+     * specified with underscores, not hyphens.
+     * "value": The value of the flag. Booleans are set to **on** for true
+     * and **off** for false. This field must be omitted if the flag
+     * doesn't take a value.
      * 
* - * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10; + * map<string, string> database_flags = 13; */ - public com.google.cloud.alloydb.v1beta.Instance.MachineConfigOrBuilder - getMachineConfigOrBuilder() { - if (machineConfigBuilder_ != null) { - return machineConfigBuilder_.getMessageOrBuilder(); - } else { - return machineConfig_ == null - ? com.google.cloud.alloydb.v1beta.Instance.MachineConfig.getDefaultInstance() - : machineConfig_; + @java.lang.Override + public java.lang.String getDatabaseFlagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDatabaseFlags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return map.get(key); + } + + public Builder clearDatabaseFlags() { + bitField0_ = (bitField0_ & ~0x00001000); + internalGetMutableDatabaseFlags().getMutableMap().clear(); + return this; } /** * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * Database flags. Set at the instance level.
+     * They are copied from the primary instance on secondary instance creation.
+     * Flags that have restrictions default to the value at primary
+     * instance on read instances during creation. Read instances can set new
+     * flags or override existing flags that are relevant for reads, for example,
+     * for enabling columnar cache on a read instance. Flags set on read instance
+     * might or might not be present on the primary instance.
+     *
+     *
+     * This is a list of "key": "value" pairs.
+     * "key": The name of the flag. These flags are passed at instance setup time,
+     * so include both server options and system variables for Postgres. Flags are
+     * specified with underscores, not hyphens.
+     * "value": The value of the flag. Booleans are set to **on** for true
+     * and **off** for false. This field must be omitted if the flag
+     * doesn't take a value.
      * 
* - * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10; + * map<string, string> database_flags = 13; */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.MachineConfig, - com.google.cloud.alloydb.v1beta.Instance.MachineConfig.Builder, - com.google.cloud.alloydb.v1beta.Instance.MachineConfigOrBuilder> - internalGetMachineConfigFieldBuilder() { - if (machineConfigBuilder_ == null) { - machineConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.MachineConfig, - com.google.cloud.alloydb.v1beta.Instance.MachineConfig.Builder, - com.google.cloud.alloydb.v1beta.Instance.MachineConfigOrBuilder>( - getMachineConfig(), getParentForChildren(), isClean()); - machineConfig_ = null; + public Builder removeDatabaseFlags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - return machineConfigBuilder_; + internalGetMutableDatabaseFlags().getMutableMap().remove(key); + return this; } - private int availabilityType_ = 0; + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableDatabaseFlags() { + bitField0_ |= 0x00001000; + return internalGetMutableDatabaseFlags().getMutableMap(); + } /** * * *
-     * Availability type of an Instance.
-     * If empty, defaults to REGIONAL for primary instances.
-     * For read pools, availability_type is always UNSPECIFIED. Instances in the
-     * read pools are evenly distributed across available zones within the region
-     * (i.e. read pools with more than one node will have a node in at
-     * least two zones).
-     * 
+ * Database flags. Set at the instance level. + * They are copied from the primary instance on secondary instance creation. + * Flags that have restrictions default to the value at primary + * instance on read instances during creation. Read instances can set new + * flags or override existing flags that are relevant for reads, for example, + * for enabling columnar cache on a read instance. Flags set on read instance + * might or might not be present on the primary instance. * - * .google.cloud.alloydb.v1beta.Instance.AvailabilityType availability_type = 11; * - * @return The enum numeric value on the wire for availabilityType. + * This is a list of "key": "value" pairs. + * "key": The name of the flag. These flags are passed at instance setup time, + * so include both server options and system variables for Postgres. Flags are + * specified with underscores, not hyphens. + * "value": The value of the flag. Booleans are set to **on** for true + * and **off** for false. This field must be omitted if the flag + * doesn't take a value. + *
+ * + * map<string, string> database_flags = 13; */ - @java.lang.Override - public int getAvailabilityTypeValue() { - return availabilityType_; + public Builder putDatabaseFlags(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableDatabaseFlags().getMutableMap().put(key, value); + bitField0_ |= 0x00001000; + return this; } /** * * *
-     * Availability type of an Instance.
-     * If empty, defaults to REGIONAL for primary instances.
-     * For read pools, availability_type is always UNSPECIFIED. Instances in the
-     * read pools are evenly distributed across available zones within the region
-     * (i.e. read pools with more than one node will have a node in at
-     * least two zones).
-     * 
+ * Database flags. Set at the instance level. + * They are copied from the primary instance on secondary instance creation. + * Flags that have restrictions default to the value at primary + * instance on read instances during creation. Read instances can set new + * flags or override existing flags that are relevant for reads, for example, + * for enabling columnar cache on a read instance. Flags set on read instance + * might or might not be present on the primary instance. * - * .google.cloud.alloydb.v1beta.Instance.AvailabilityType availability_type = 11; * - * @param value The enum numeric value on the wire for availabilityType to set. - * @return This builder for chaining. + * This is a list of "key": "value" pairs. + * "key": The name of the flag. These flags are passed at instance setup time, + * so include both server options and system variables for Postgres. Flags are + * specified with underscores, not hyphens. + * "value": The value of the flag. Booleans are set to **on** for true + * and **off** for false. This field must be omitted if the flag + * doesn't take a value. + * + * + * map<string, string> database_flags = 13; */ - public Builder setAvailabilityTypeValue(int value) { - availabilityType_ = value; - bitField0_ |= 0x00000400; - onChanged(); + public Builder putAllDatabaseFlags(java.util.Map values) { + internalGetMutableDatabaseFlags().getMutableMap().putAll(values); + bitField0_ |= 0x00001000; return this; } + private com.google.cloud.alloydb.v1beta.Instance.Node writableNode_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.Node, + com.google.cloud.alloydb.v1beta.Instance.Node.Builder, + com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder> + writableNodeBuilder_; + /** * * *
-     * Availability type of an Instance.
-     * If empty, defaults to REGIONAL for primary instances.
-     * For read pools, availability_type is always UNSPECIFIED. Instances in the
-     * read pools are evenly distributed across available zones within the region
-     * (i.e. read pools with more than one node will have a node in at
-     * least two zones).
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* - * .google.cloud.alloydb.v1beta.Instance.AvailabilityType availability_type = 11; + * + * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The availabilityType. + * @return Whether the writableNode field is set. */ - @java.lang.Override - public com.google.cloud.alloydb.v1beta.Instance.AvailabilityType getAvailabilityType() { - com.google.cloud.alloydb.v1beta.Instance.AvailabilityType result = - com.google.cloud.alloydb.v1beta.Instance.AvailabilityType.forNumber(availabilityType_); - return result == null - ? com.google.cloud.alloydb.v1beta.Instance.AvailabilityType.UNRECOGNIZED - : result; + public boolean hasWritableNode() { + return ((bitField0_ & 0x00002000) != 0); } /** - * - * - *
-     * Availability type of an Instance.
-     * If empty, defaults to REGIONAL for primary instances.
-     * For read pools, availability_type is always UNSPECIFIED. Instances in the
-     * read pools are evenly distributed across available zones within the region
-     * (i.e. read pools with more than one node will have a node in at
-     * least two zones).
+     *
+     *
+     * 
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* - * .google.cloud.alloydb.v1beta.Instance.AvailabilityType availability_type = 11; + * + * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The availabilityType to set. - * @return This builder for chaining. + * @return The writableNode. */ - public Builder setAvailabilityType( - com.google.cloud.alloydb.v1beta.Instance.AvailabilityType value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.alloydb.v1beta.Instance.Node getWritableNode() { + if (writableNodeBuilder_ == null) { + return writableNode_ == null + ? com.google.cloud.alloydb.v1beta.Instance.Node.getDefaultInstance() + : writableNode_; + } else { + return writableNodeBuilder_.getMessage(); } - bitField0_ |= 0x00000400; - availabilityType_ = value.getNumber(); - onChanged(); - return this; } /** * * *
-     * Availability type of an Instance.
-     * If empty, defaults to REGIONAL for primary instances.
-     * For read pools, availability_type is always UNSPECIFIED. Instances in the
-     * read pools are evenly distributed across available zones within the region
-     * (i.e. read pools with more than one node will have a node in at
-     * least two zones).
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* - * .google.cloud.alloydb.v1beta.Instance.AvailabilityType availability_type = 11; - * - * @return This builder for chaining. + * + * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearAvailabilityType() { - bitField0_ = (bitField0_ & ~0x00000400); - availabilityType_ = 0; + public Builder setWritableNode(com.google.cloud.alloydb.v1beta.Instance.Node value) { + if (writableNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + writableNode_ = value; + } else { + writableNodeBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; onChanged(); return this; } - private java.lang.Object gceZone_ = ""; - /** * * *
-     * The Compute Engine zone that the instance should serve from, per
-     * https://cloud.google.com/compute/docs/regions-zones
-     * This can ONLY be specified for ZONAL instances.
-     * If present for a REGIONAL instance, an error will be thrown.
-     * If this is absent for a ZONAL instance, instance is created in a random
-     * zone with available capacity.
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* - * string gce_zone = 12; - * - * @return The gceZone. + * + * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.lang.String getGceZone() { - java.lang.Object ref = gceZone_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gceZone_ = s; - return s; + public Builder setWritableNode( + com.google.cloud.alloydb.v1beta.Instance.Node.Builder builderForValue) { + if (writableNodeBuilder_ == null) { + writableNode_ = builderForValue.build(); } else { - return (java.lang.String) ref; + writableNodeBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00002000; + onChanged(); + return this; } /** * * *
-     * The Compute Engine zone that the instance should serve from, per
-     * https://cloud.google.com/compute/docs/regions-zones
-     * This can ONLY be specified for ZONAL instances.
-     * If present for a REGIONAL instance, an error will be thrown.
-     * If this is absent for a ZONAL instance, instance is created in a random
-     * zone with available capacity.
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* - * string gce_zone = 12; - * - * @return The bytes for gceZone. + * + * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.protobuf.ByteString getGceZoneBytes() { - java.lang.Object ref = gceZone_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gceZone_ = b; - return b; + public Builder mergeWritableNode(com.google.cloud.alloydb.v1beta.Instance.Node value) { + if (writableNodeBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && writableNode_ != null + && writableNode_ + != com.google.cloud.alloydb.v1beta.Instance.Node.getDefaultInstance()) { + getWritableNodeBuilder().mergeFrom(value); + } else { + writableNode_ = value; + } } else { - return (com.google.protobuf.ByteString) ref; + writableNodeBuilder_.mergeFrom(value); + } + if (writableNode_ != null) { + bitField0_ |= 0x00002000; + onChanged(); } + return this; } /** * * *
-     * The Compute Engine zone that the instance should serve from, per
-     * https://cloud.google.com/compute/docs/regions-zones
-     * This can ONLY be specified for ZONAL instances.
-     * If present for a REGIONAL instance, an error will be thrown.
-     * If this is absent for a ZONAL instance, instance is created in a random
-     * zone with available capacity.
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* - * string gce_zone = 12; - * - * @param value The gceZone to set. - * @return This builder for chaining. + * + * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setGceZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearWritableNode() { + bitField0_ = (bitField0_ & ~0x00002000); + writableNode_ = null; + if (writableNodeBuilder_ != null) { + writableNodeBuilder_.dispose(); + writableNodeBuilder_ = null; } - gceZone_ = value; - bitField0_ |= 0x00000800; onChanged(); return this; } @@ -24380,225 +27698,170 @@ public Builder setGceZone(java.lang.String value) { * * *
-     * The Compute Engine zone that the instance should serve from, per
-     * https://cloud.google.com/compute/docs/regions-zones
-     * This can ONLY be specified for ZONAL instances.
-     * If present for a REGIONAL instance, an error will be thrown.
-     * If this is absent for a ZONAL instance, instance is created in a random
-     * zone with available capacity.
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* - * string gce_zone = 12; - * - * @return This builder for chaining. + * + * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearGceZone() { - gceZone_ = getDefaultInstance().getGceZone(); - bitField0_ = (bitField0_ & ~0x00000800); + public com.google.cloud.alloydb.v1beta.Instance.Node.Builder getWritableNodeBuilder() { + bitField0_ |= 0x00002000; onChanged(); - return this; + return internalGetWritableNodeFieldBuilder().getBuilder(); } /** * * *
-     * The Compute Engine zone that the instance should serve from, per
-     * https://cloud.google.com/compute/docs/regions-zones
-     * This can ONLY be specified for ZONAL instances.
-     * If present for a REGIONAL instance, an error will be thrown.
-     * If this is absent for a ZONAL instance, instance is created in a random
-     * zone with available capacity.
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* - * string gce_zone = 12; - * - * @param value The bytes for gceZone to set. - * @return This builder for chaining. + * + * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setGceZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder getWritableNodeOrBuilder() { + if (writableNodeBuilder_ != null) { + return writableNodeBuilder_.getMessageOrBuilder(); + } else { + return writableNode_ == null + ? com.google.cloud.alloydb.v1beta.Instance.Node.getDefaultInstance() + : writableNode_; } - checkByteStringIsUtf8(value); - gceZone_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; } - private com.google.protobuf.MapField databaseFlags_; - - private com.google.protobuf.MapField - internalGetDatabaseFlags() { - if (databaseFlags_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DatabaseFlagsDefaultEntryHolder.defaultEntry); + /** + * + * + *
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.Node, + com.google.cloud.alloydb.v1beta.Instance.Node.Builder, + com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder> + internalGetWritableNodeFieldBuilder() { + if (writableNodeBuilder_ == null) { + writableNodeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.Node, + com.google.cloud.alloydb.v1beta.Instance.Node.Builder, + com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder>( + getWritableNode(), getParentForChildren(), isClean()); + writableNode_ = null; } - return databaseFlags_; + return writableNodeBuilder_; } - private com.google.protobuf.MapField - internalGetMutableDatabaseFlags() { - if (databaseFlags_ == null) { - databaseFlags_ = - com.google.protobuf.MapField.newMapField(DatabaseFlagsDefaultEntryHolder.defaultEntry); - } - if (!databaseFlags_.isMutable()) { - databaseFlags_ = databaseFlags_.copy(); - } - bitField0_ |= 0x00001000; - onChanged(); - return databaseFlags_; - } + private java.util.List nodes_ = + java.util.Collections.emptyList(); - public int getDatabaseFlagsCount() { - return internalGetDatabaseFlags().getMap().size(); + private void ensureNodesIsMutable() { + if (!((bitField0_ & 0x00004000) != 0)) { + nodes_ = new java.util.ArrayList(nodes_); + bitField0_ |= 0x00004000; + } } + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.Node, + com.google.cloud.alloydb.v1beta.Instance.Node.Builder, + com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder> + nodesBuilder_; + /** * * *
-     * Database flags. Set at the instance level.
-     * They are copied from the primary instance on secondary instance creation.
-     * Flags that have restrictions default to the value at primary
-     * instance on read instances during creation. Read instances can set new
-     * flags or override existing flags that are relevant for reads, for example,
-     * for enabling columnar cache on a read instance. Flags set on read instance
-     * might or might not be present on the primary instance.
-     *
-     *
-     * This is a list of "key": "value" pairs.
-     * "key": The name of the flag. These flags are passed at instance setup time,
-     * so include both server options and system variables for Postgres. Flags are
-     * specified with underscores, not hyphens.
-     * "value": The value of the flag. Booleans are set to **on** for true
-     * and **off** for false. This field must be omitted if the flag
-     * doesn't take a value.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * map<string, string> database_flags = 13; + * + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsDatabaseFlags(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public java.util.List getNodesList() { + if (nodesBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodes_); + } else { + return nodesBuilder_.getMessageList(); } - return internalGetDatabaseFlags().getMap().containsKey(key); - } - - /** Use {@link #getDatabaseFlagsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getDatabaseFlags() { - return getDatabaseFlagsMap(); } /** * * *
-     * Database flags. Set at the instance level.
-     * They are copied from the primary instance on secondary instance creation.
-     * Flags that have restrictions default to the value at primary
-     * instance on read instances during creation. Read instances can set new
-     * flags or override existing flags that are relevant for reads, for example,
-     * for enabling columnar cache on a read instance. Flags set on read instance
-     * might or might not be present on the primary instance.
-     *
-     *
-     * This is a list of "key": "value" pairs.
-     * "key": The name of the flag. These flags are passed at instance setup time,
-     * so include both server options and system variables for Postgres. Flags are
-     * specified with underscores, not hyphens.
-     * "value": The value of the flag. Booleans are set to **on** for true
-     * and **off** for false. This field must be omitted if the flag
-     * doesn't take a value.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * map<string, string> database_flags = 13; + * + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public java.util.Map getDatabaseFlagsMap() { - return internalGetDatabaseFlags().getMap(); + public int getNodesCount() { + if (nodesBuilder_ == null) { + return nodes_.size(); + } else { + return nodesBuilder_.getCount(); + } } /** * * *
-     * Database flags. Set at the instance level.
-     * They are copied from the primary instance on secondary instance creation.
-     * Flags that have restrictions default to the value at primary
-     * instance on read instances during creation. Read instances can set new
-     * flags or override existing flags that are relevant for reads, for example,
-     * for enabling columnar cache on a read instance. Flags set on read instance
-     * might or might not be present on the primary instance.
-     *
-     *
-     * This is a list of "key": "value" pairs.
-     * "key": The name of the flag. These flags are passed at instance setup time,
-     * so include both server options and system variables for Postgres. Flags are
-     * specified with underscores, not hyphens.
-     * "value": The value of the flag. Booleans are set to **on** for true
-     * and **off** for false. This field must be omitted if the flag
-     * doesn't take a value.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * map<string, string> database_flags = 13; + * + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public /* nullable */ java.lang.String getDatabaseFlagsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public com.google.cloud.alloydb.v1beta.Instance.Node getNodes(int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); + } else { + return nodesBuilder_.getMessage(index); } - java.util.Map map = internalGetDatabaseFlags().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
-     * Database flags. Set at the instance level.
-     * They are copied from the primary instance on secondary instance creation.
-     * Flags that have restrictions default to the value at primary
-     * instance on read instances during creation. Read instances can set new
-     * flags or override existing flags that are relevant for reads, for example,
-     * for enabling columnar cache on a read instance. Flags set on read instance
-     * might or might not be present on the primary instance.
-     *
-     *
-     * This is a list of "key": "value" pairs.
-     * "key": The name of the flag. These flags are passed at instance setup time,
-     * so include both server options and system variables for Postgres. Flags are
-     * specified with underscores, not hyphens.
-     * "value": The value of the flag. Booleans are set to **on** for true
-     * and **off** for false. This field must be omitted if the flag
-     * doesn't take a value.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * map<string, string> database_flags = 13; + * + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public java.lang.String getDatabaseFlagsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetDatabaseFlags().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + public Builder setNodes(int index, com.google.cloud.alloydb.v1beta.Instance.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.set(index, value); + onChanged(); + } else { + nodesBuilder_.setMessage(index, value); } - return map.get(key); - } - - public Builder clearDatabaseFlags() { - bitField0_ = (bitField0_ & ~0x00001000); - internalGetMutableDatabaseFlags().getMutableMap().clear(); return this; } @@ -24606,74 +27869,75 @@ public Builder clearDatabaseFlags() { * * *
-     * Database flags. Set at the instance level.
-     * They are copied from the primary instance on secondary instance creation.
-     * Flags that have restrictions default to the value at primary
-     * instance on read instances during creation. Read instances can set new
-     * flags or override existing flags that are relevant for reads, for example,
-     * for enabling columnar cache on a read instance. Flags set on read instance
-     * might or might not be present on the primary instance.
-     *
-     *
-     * This is a list of "key": "value" pairs.
-     * "key": The name of the flag. These flags are passed at instance setup time,
-     * so include both server options and system variables for Postgres. Flags are
-     * specified with underscores, not hyphens.
-     * "value": The value of the flag. Booleans are set to **on** for true
-     * and **off** for false. This field must be omitted if the flag
-     * doesn't take a value.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * map<string, string> database_flags = 13; + * + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder removeDatabaseFlags(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setNodes( + int index, com.google.cloud.alloydb.v1beta.Instance.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.set(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.setMessage(index, builderForValue.build()); } - internalGetMutableDatabaseFlags().getMutableMap().remove(key); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableDatabaseFlags() { - bitField0_ |= 0x00001000; - return internalGetMutableDatabaseFlags().getMutableMap(); - } - /** * * *
-     * Database flags. Set at the instance level.
-     * They are copied from the primary instance on secondary instance creation.
-     * Flags that have restrictions default to the value at primary
-     * instance on read instances during creation. Read instances can set new
-     * flags or override existing flags that are relevant for reads, for example,
-     * for enabling columnar cache on a read instance. Flags set on read instance
-     * might or might not be present on the primary instance.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addNodes(com.google.cloud.alloydb.v1beta.Instance.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(value); + onChanged(); + } else { + nodesBuilder_.addMessage(value); + } + return this; + } + + /** * * - * This is a list of "key": "value" pairs. - * "key": The name of the flag. These flags are passed at instance setup time, - * so include both server options and system variables for Postgres. Flags are - * specified with underscores, not hyphens. - * "value": The value of the flag. Booleans are set to **on** for true - * and **off** for false. This field must be omitted if the flag - * doesn't take a value. + *
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * map<string, string> database_flags = 13; + * + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder putDatabaseFlags(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); + public Builder addNodes(int index, com.google.cloud.alloydb.v1beta.Instance.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(index, value); + onChanged(); + } else { + nodesBuilder_.addMessage(index, value); } - internalGetMutableDatabaseFlags().getMutableMap().put(key, value); - bitField0_ |= 0x00001000; return this; } @@ -24681,104 +27945,93 @@ public Builder putDatabaseFlags(java.lang.String key, java.lang.String value) { * * *
-     * Database flags. Set at the instance level.
-     * They are copied from the primary instance on secondary instance creation.
-     * Flags that have restrictions default to the value at primary
-     * instance on read instances during creation. Read instances can set new
-     * flags or override existing flags that are relevant for reads, for example,
-     * for enabling columnar cache on a read instance. Flags set on read instance
-     * might or might not be present on the primary instance.
-     *
-     *
-     * This is a list of "key": "value" pairs.
-     * "key": The name of the flag. These flags are passed at instance setup time,
-     * so include both server options and system variables for Postgres. Flags are
-     * specified with underscores, not hyphens.
-     * "value": The value of the flag. Booleans are set to **on** for true
-     * and **off** for false. This field must be omitted if the flag
-     * doesn't take a value.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * map<string, string> database_flags = 13; + * + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder putAllDatabaseFlags(java.util.Map values) { - internalGetMutableDatabaseFlags().getMutableMap().putAll(values); - bitField0_ |= 0x00001000; + public Builder addNodes(com.google.cloud.alloydb.v1beta.Instance.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(builderForValue.build()); + } return this; } - private com.google.cloud.alloydb.v1beta.Instance.Node writableNode_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.Node, - com.google.cloud.alloydb.v1beta.Instance.Node.Builder, - com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder> - writableNodeBuilder_; - /** * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the writableNode field is set. */ - public boolean hasWritableNode() { - return ((bitField0_ & 0x00002000) != 0); + public Builder addNodes( + int index, com.google.cloud.alloydb.v1beta.Instance.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(index, builderForValue.build()); + } + return this; } /** * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The writableNode. */ - public com.google.cloud.alloydb.v1beta.Instance.Node getWritableNode() { - if (writableNodeBuilder_ == null) { - return writableNode_ == null - ? com.google.cloud.alloydb.v1beta.Instance.Node.getDefaultInstance() - : writableNode_; + public Builder addAllNodes( + java.lang.Iterable values) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_); + onChanged(); } else { - return writableNodeBuilder_.getMessage(); + nodesBuilder_.addAllMessages(values); } + return this; } /** * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setWritableNode(com.google.cloud.alloydb.v1beta.Instance.Node value) { - if (writableNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - writableNode_ = value; + public Builder clearNodes() { + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); } else { - writableNodeBuilder_.setMessage(value); + nodesBuilder_.clear(); } - bitField0_ |= 0x00002000; - onChanged(); return this; } @@ -24786,23 +28039,22 @@ public Builder setWritableNode(com.google.cloud.alloydb.v1beta.Instance.Node val * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setWritableNode( - com.google.cloud.alloydb.v1beta.Instance.Node.Builder builderForValue) { - if (writableNodeBuilder_ == null) { - writableNode_ = builderForValue.build(); + public Builder removeNodes(int index) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.remove(index); + onChanged(); } else { - writableNodeBuilder_.setMessage(builderForValue.build()); + nodesBuilder_.remove(index); } - bitField0_ |= 0x00002000; - onChanged(); return this; } @@ -24810,179 +28062,174 @@ public Builder setWritableNode( * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeWritableNode(com.google.cloud.alloydb.v1beta.Instance.Node value) { - if (writableNodeBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) - && writableNode_ != null - && writableNode_ - != com.google.cloud.alloydb.v1beta.Instance.Node.getDefaultInstance()) { - getWritableNodeBuilder().mergeFrom(value); - } else { - writableNode_ = value; - } + public com.google.cloud.alloydb.v1beta.Instance.Node.Builder getNodesBuilder(int index) { + return internalGetNodesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder getNodesOrBuilder(int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); } else { - writableNodeBuilder_.mergeFrom(value); - } - if (writableNode_ != null) { - bitField0_ |= 0x00002000; - onChanged(); + return nodesBuilder_.getMessageOrBuilder(index); } - return this; } /** * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearWritableNode() { - bitField0_ = (bitField0_ & ~0x00002000); - writableNode_ = null; - if (writableNodeBuilder_ != null) { - writableNodeBuilder_.dispose(); - writableNodeBuilder_ = null; + public java.util.List + getNodesOrBuilderList() { + if (nodesBuilder_ != null) { + return nodesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodes_); } - onChanged(); - return this; } /** * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.alloydb.v1beta.Instance.Node.Builder getWritableNodeBuilder() { - bitField0_ |= 0x00002000; - onChanged(); - return internalGetWritableNodeFieldBuilder().getBuilder(); + public com.google.cloud.alloydb.v1beta.Instance.Node.Builder addNodesBuilder() { + return internalGetNodesFieldBuilder() + .addBuilder(com.google.cloud.alloydb.v1beta.Instance.Node.getDefaultInstance()); } /** * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder getWritableNodeOrBuilder() { - if (writableNodeBuilder_ != null) { - return writableNodeBuilder_.getMessageOrBuilder(); - } else { - return writableNode_ == null - ? com.google.cloud.alloydb.v1beta.Instance.Node.getDefaultInstance() - : writableNode_; - } + public com.google.cloud.alloydb.v1beta.Instance.Node.Builder addNodesBuilder(int index) { + return internalGetNodesFieldBuilder() + .addBuilder(index, com.google.cloud.alloydb.v1beta.Instance.Node.getDefaultInstance()); } /** * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - private com.google.protobuf.SingleFieldBuilder< + public java.util.List + getNodesBuilderList() { + return internalGetNodesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.alloydb.v1beta.Instance.Node, com.google.cloud.alloydb.v1beta.Instance.Node.Builder, com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder> - internalGetWritableNodeFieldBuilder() { - if (writableNodeBuilder_ == null) { - writableNodeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< + internalGetNodesFieldBuilder() { + if (nodesBuilder_ == null) { + nodesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.alloydb.v1beta.Instance.Node, - com.google.cloud.alloydb.v1beta.Instance.Node.Builder, - com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder>( - getWritableNode(), getParentForChildren(), isClean()); - writableNode_ = null; - } - return writableNodeBuilder_; - } - - private java.util.List nodes_ = - java.util.Collections.emptyList(); - - private void ensureNodesIsMutable() { - if (!((bitField0_ & 0x00004000) != 0)) { - nodes_ = new java.util.ArrayList(nodes_); - bitField0_ |= 0x00004000; + com.google.cloud.alloydb.v1beta.Instance.Node.Builder, + com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder>( + nodes_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); + nodes_ = null; } + return nodesBuilder_; } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.Node, - com.google.cloud.alloydb.v1beta.Instance.Node.Builder, - com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder> - nodesBuilder_; + private com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig + queryInsightsConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfigOrBuilder> + queryInsightsConfigBuilder_; /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Configuration for query insights.
      * 
* * - * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; * + * + * @return Whether the queryInsightsConfig field is set. */ - public java.util.List getNodesList() { - if (nodesBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodes_); - } else { - return nodesBuilder_.getMessageList(); - } + public boolean hasQueryInsightsConfig() { + return ((bitField0_ & 0x00008000) != 0); } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Configuration for query insights.
      * 
* * - * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; * + * + * @return The queryInsightsConfig. */ - public int getNodesCount() { - if (nodesBuilder_ == null) { - return nodes_.size(); + public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig + getQueryInsightsConfig() { + if (queryInsightsConfigBuilder_ == null) { + return queryInsightsConfig_ == null + ? com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig + .getDefaultInstance() + : queryInsightsConfig_; } else { - return nodesBuilder_.getCount(); + return queryInsightsConfigBuilder_.getMessage(); } } @@ -24990,45 +28237,49 @@ public int getNodesCount() { * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Configuration for query insights.
      * 
* * - * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; * */ - public com.google.cloud.alloydb.v1beta.Instance.Node getNodes(int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); + public Builder setQueryInsightsConfig( + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig value) { + if (queryInsightsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queryInsightsConfig_ = value; } else { - return nodesBuilder_.getMessage(index); + queryInsightsConfigBuilder_.setMessage(value); } + bitField0_ |= 0x00008000; + onChanged(); + return this; } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Configuration for query insights.
      * 
* * - * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; * */ - public Builder setNodes(int index, com.google.cloud.alloydb.v1beta.Instance.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.set(index, value); - onChanged(); + public Builder setQueryInsightsConfig( + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig.Builder + builderForValue) { + if (queryInsightsConfigBuilder_ == null) { + queryInsightsConfig_ = builderForValue.build(); } else { - nodesBuilder_.setMessage(index, value); + queryInsightsConfigBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00008000; + onChanged(); return this; } @@ -25036,22 +28287,31 @@ public Builder setNodes(int index, com.google.cloud.alloydb.v1beta.Instance.Node * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Configuration for query insights.
      * 
* * - * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; * */ - public Builder setNodes( - int index, com.google.cloud.alloydb.v1beta.Instance.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.set(index, builderForValue.build()); - onChanged(); + public Builder mergeQueryInsightsConfig( + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig value) { + if (queryInsightsConfigBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && queryInsightsConfig_ != null + && queryInsightsConfig_ + != com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig + .getDefaultInstance()) { + getQueryInsightsConfigBuilder().mergeFrom(value); + } else { + queryInsightsConfig_ = value; + } } else { - nodesBuilder_.setMessage(index, builderForValue.build()); + queryInsightsConfigBuilder_.mergeFrom(value); + } + if (queryInsightsConfig_ != null) { + bitField0_ |= 0x00008000; + onChanged(); } return this; } @@ -25060,25 +28320,21 @@ public Builder setNodes( * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Configuration for query insights.
      * 
* * - * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; * */ - public Builder addNodes(com.google.cloud.alloydb.v1beta.Instance.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(value); - onChanged(); - } else { - nodesBuilder_.addMessage(value); + public Builder clearQueryInsightsConfig() { + bitField0_ = (bitField0_ & ~0x00008000); + queryInsightsConfig_ = null; + if (queryInsightsConfigBuilder_ != null) { + queryInsightsConfigBuilder_.dispose(); + queryInsightsConfigBuilder_ = null; } + onChanged(); return this; } @@ -25086,142 +28342,152 @@ public Builder addNodes(com.google.cloud.alloydb.v1beta.Instance.Node value) { * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Configuration for query insights.
      * 
* * - * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; * */ - public Builder addNodes(int index, com.google.cloud.alloydb.v1beta.Instance.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(index, value); - onChanged(); - } else { - nodesBuilder_.addMessage(index, value); - } - return this; + public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig.Builder + getQueryInsightsConfigBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return internalGetQueryInsightsConfigFieldBuilder().getBuilder(); } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Configuration for query insights.
      * 
* * - * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; * */ - public Builder addNodes(com.google.cloud.alloydb.v1beta.Instance.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(builderForValue.build()); - onChanged(); + public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfigOrBuilder + getQueryInsightsConfigOrBuilder() { + if (queryInsightsConfigBuilder_ != null) { + return queryInsightsConfigBuilder_.getMessageOrBuilder(); } else { - nodesBuilder_.addMessage(builderForValue.build()); + return queryInsightsConfig_ == null + ? com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig + .getDefaultInstance() + : queryInsightsConfig_; } - return this; } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Configuration for query insights.
      * 
* * - * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; * */ - public Builder addNodes( - int index, com.google.cloud.alloydb.v1beta.Instance.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(index, builderForValue.build()); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfigOrBuilder> + internalGetQueryInsightsConfigFieldBuilder() { + if (queryInsightsConfigBuilder_ == null) { + queryInsightsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfigOrBuilder>( + getQueryInsightsConfig(), getParentForChildren(), isClean()); + queryInsightsConfig_ = null; } - return this; + return queryInsightsConfigBuilder_; } + private com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo queryInsightsInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo.Builder, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfoOrBuilder> + queryInsightsInfoBuilder_; + /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
      * 
* * - * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return Whether the queryInsightsInfo field is set. */ - public Builder addAllNodes( - java.lang.Iterable values) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_); - onChanged(); - } else { - nodesBuilder_.addAllMessages(values); - } - return this; + public boolean hasQueryInsightsInfo() { + return ((bitField0_ & 0x00010000) != 0); } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
      * 
* * - * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The queryInsightsInfo. */ - public Builder clearNodes() { - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); - onChanged(); + public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo + getQueryInsightsInfo() { + if (queryInsightsInfoBuilder_ == null) { + return queryInsightsInfo_ == null + ? com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo + .getDefaultInstance() + : queryInsightsInfo_; } else { - nodesBuilder_.clear(); + return queryInsightsInfoBuilder_.getMessage(); } - return this; } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
      * 
* * - * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder removeNodes(int index) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.remove(index); - onChanged(); + public Builder setQueryInsightsInfo( + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo value) { + if (queryInsightsInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queryInsightsInfo_ = value; } else { - nodesBuilder_.remove(index); + queryInsightsInfoBuilder_.setMessage(value); } + bitField0_ |= 0x00010000; + onChanged(); return this; } @@ -25229,174 +28495,215 @@ public Builder removeNodes(int index) { * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
      * 
* * - * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.alloydb.v1beta.Instance.Node.Builder getNodesBuilder(int index) { - return internalGetNodesFieldBuilder().getBuilder(index); + public Builder setQueryInsightsInfo( + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo.Builder + builderForValue) { + if (queryInsightsInfoBuilder_ == null) { + queryInsightsInfo_ = builderForValue.build(); + } else { + queryInsightsInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
      * 
* * - * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder getNodesOrBuilder(int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); + public Builder mergeQueryInsightsInfo( + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo value) { + if (queryInsightsInfoBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && queryInsightsInfo_ != null + && queryInsightsInfo_ + != com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo + .getDefaultInstance()) { + getQueryInsightsInfoBuilder().mergeFrom(value); + } else { + queryInsightsInfo_ = value; + } } else { - return nodesBuilder_.getMessageOrBuilder(index); + queryInsightsInfoBuilder_.mergeFrom(value); + } + if (queryInsightsInfo_ != null) { + bitField0_ |= 0x00010000; + onChanged(); } + return this; } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
      * 
* * - * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List - getNodesOrBuilderList() { - if (nodesBuilder_ != null) { - return nodesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodes_); + public Builder clearQueryInsightsInfo() { + bitField0_ = (bitField0_ & ~0x00010000); + queryInsightsInfo_ = null; + if (queryInsightsInfoBuilder_ != null) { + queryInsightsInfoBuilder_.dispose(); + queryInsightsInfoBuilder_ = null; } + onChanged(); + return this; } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
      * 
* * - * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.alloydb.v1beta.Instance.Node.Builder addNodesBuilder() { - return internalGetNodesFieldBuilder() - .addBuilder(com.google.cloud.alloydb.v1beta.Instance.Node.getDefaultInstance()); + public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo.Builder + getQueryInsightsInfoBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return internalGetQueryInsightsInfoFieldBuilder().getBuilder(); } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
      * 
* * - * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.alloydb.v1beta.Instance.Node.Builder addNodesBuilder(int index) { - return internalGetNodesFieldBuilder() - .addBuilder(index, com.google.cloud.alloydb.v1beta.Instance.Node.getDefaultInstance()); + public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfoOrBuilder + getQueryInsightsInfoOrBuilder() { + if (queryInsightsInfoBuilder_ != null) { + return queryInsightsInfoBuilder_.getMessageOrBuilder(); + } else { + return queryInsightsInfo_ == null + ? com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo + .getDefaultInstance() + : queryInsightsInfo_; + } } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. Instance level Query Insights information, which is read-only
+     * and available in the output only. Contains the effective query insights
+     * settings for this instance, by merging customer's provided
+     * `QueryInsightsInstanceConfig` with the Query Insights defaults.
      * 
* * - * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List - getNodesBuilderList() { - return internalGetNodesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.Node, - com.google.cloud.alloydb.v1beta.Instance.Node.Builder, - com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder> - internalGetNodesFieldBuilder() { - if (nodesBuilder_ == null) { - nodesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.Node, - com.google.cloud.alloydb.v1beta.Instance.Node.Builder, - com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder>( - nodes_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); - nodes_ = null; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo.Builder, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfoOrBuilder> + internalGetQueryInsightsInfoFieldBuilder() { + if (queryInsightsInfoBuilder_ == null) { + queryInsightsInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo.Builder, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfoOrBuilder>( + getQueryInsightsInfo(), getParentForChildren(), isClean()); + queryInsightsInfo_ = null; } - return nodesBuilder_; + return queryInsightsInfoBuilder_; } - private com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig - queryInsightsConfig_; + private com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig + observabilityConfig_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig, - com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig.Builder, - com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfigOrBuilder> - queryInsightsConfigBuilder_; + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfigOrBuilder> + observabilityConfigBuilder_; /** * * *
-     * Configuration for query insights.
+     * Configuration for observability.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; * * - * @return Whether the queryInsightsConfig field is set. + * @return Whether the observabilityConfig field is set. */ - public boolean hasQueryInsightsConfig() { - return ((bitField0_ & 0x00008000) != 0); + public boolean hasObservabilityConfig() { + return ((bitField0_ & 0x00020000) != 0); } /** * * *
-     * Configuration for query insights.
+     * Configuration for observability.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; * * - * @return The queryInsightsConfig. + * @return The observabilityConfig. */ - public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig - getQueryInsightsConfig() { - if (queryInsightsConfigBuilder_ == null) { - return queryInsightsConfig_ == null - ? com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig + public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig + getObservabilityConfig() { + if (observabilityConfigBuilder_ == null) { + return observabilityConfig_ == null + ? com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig .getDefaultInstance() - : queryInsightsConfig_; + : observabilityConfig_; } else { - return queryInsightsConfigBuilder_.getMessage(); + return observabilityConfigBuilder_.getMessage(); } } @@ -25404,24 +28711,24 @@ public boolean hasQueryInsightsConfig() { * * *
-     * Configuration for query insights.
+     * Configuration for observability.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; * */ - public Builder setQueryInsightsConfig( - com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig value) { - if (queryInsightsConfigBuilder_ == null) { + public Builder setObservabilityConfig( + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig value) { + if (observabilityConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - queryInsightsConfig_ = value; + observabilityConfig_ = value; } else { - queryInsightsConfigBuilder_.setMessage(value); + observabilityConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -25430,22 +28737,22 @@ public Builder setQueryInsightsConfig( * * *
-     * Configuration for query insights.
+     * Configuration for observability.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; * */ - public Builder setQueryInsightsConfig( - com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig.Builder + public Builder setObservabilityConfig( + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.Builder builderForValue) { - if (queryInsightsConfigBuilder_ == null) { - queryInsightsConfig_ = builderForValue.build(); + if (observabilityConfigBuilder_ == null) { + observabilityConfig_ = builderForValue.build(); } else { - queryInsightsConfigBuilder_.setMessage(builderForValue.build()); + observabilityConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -25454,30 +28761,30 @@ public Builder setQueryInsightsConfig( * * *
-     * Configuration for query insights.
+     * Configuration for observability.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; * */ - public Builder mergeQueryInsightsConfig( - com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig value) { - if (queryInsightsConfigBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) - && queryInsightsConfig_ != null - && queryInsightsConfig_ - != com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig + public Builder mergeObservabilityConfig( + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig value) { + if (observabilityConfigBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && observabilityConfig_ != null + && observabilityConfig_ + != com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig .getDefaultInstance()) { - getQueryInsightsConfigBuilder().mergeFrom(value); + getObservabilityConfigBuilder().mergeFrom(value); } else { - queryInsightsConfig_ = value; + observabilityConfig_ = value; } } else { - queryInsightsConfigBuilder_.mergeFrom(value); + observabilityConfigBuilder_.mergeFrom(value); } - if (queryInsightsConfig_ != null) { - bitField0_ |= 0x00008000; + if (observabilityConfig_ != null) { + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -25487,19 +28794,19 @@ public Builder mergeQueryInsightsConfig( * * *
-     * Configuration for query insights.
+     * Configuration for observability.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; * */ - public Builder clearQueryInsightsConfig() { - bitField0_ = (bitField0_ & ~0x00008000); - queryInsightsConfig_ = null; - if (queryInsightsConfigBuilder_ != null) { - queryInsightsConfigBuilder_.dispose(); - queryInsightsConfigBuilder_ = null; + public Builder clearObservabilityConfig() { + bitField0_ = (bitField0_ & ~0x00020000); + observabilityConfig_ = null; + if (observabilityConfigBuilder_ != null) { + observabilityConfigBuilder_.dispose(); + observabilityConfigBuilder_ = null; } onChanged(); return this; @@ -25509,118 +28816,124 @@ public Builder clearQueryInsightsConfig() { * * *
-     * Configuration for query insights.
+     * Configuration for observability.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; * */ - public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig.Builder - getQueryInsightsConfigBuilder() { - bitField0_ |= 0x00008000; + public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.Builder + getObservabilityConfigBuilder() { + bitField0_ |= 0x00020000; onChanged(); - return internalGetQueryInsightsConfigFieldBuilder().getBuilder(); + return internalGetObservabilityConfigFieldBuilder().getBuilder(); } /** * * *
-     * Configuration for query insights.
+     * Configuration for observability.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; * */ - public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfigOrBuilder - getQueryInsightsConfigOrBuilder() { - if (queryInsightsConfigBuilder_ != null) { - return queryInsightsConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfigOrBuilder + getObservabilityConfigOrBuilder() { + if (observabilityConfigBuilder_ != null) { + return observabilityConfigBuilder_.getMessageOrBuilder(); } else { - return queryInsightsConfig_ == null - ? com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig + return observabilityConfig_ == null + ? com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig .getDefaultInstance() - : queryInsightsConfig_; - } - } - - /** - * - * - *
-     * Configuration for query insights.
-     * 
- * - * - * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig, - com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig.Builder, - com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfigOrBuilder> - internalGetQueryInsightsConfigFieldBuilder() { - if (queryInsightsConfigBuilder_ == null) { - queryInsightsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig, - com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig.Builder, - com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfigOrBuilder>( - getQueryInsightsConfig(), getParentForChildren(), isClean()); - queryInsightsConfig_ = null; + : observabilityConfig_; } - return queryInsightsConfigBuilder_; } - private com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig - observabilityConfig_; + /** + * + * + *
+     * Configuration for observability.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; + * + */ private com.google.protobuf.SingleFieldBuilder< com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig, com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.Builder, com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfigOrBuilder> - observabilityConfigBuilder_; + internalGetObservabilityConfigFieldBuilder() { + if (observabilityConfigBuilder_ == null) { + observabilityConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfigOrBuilder>( + getObservabilityConfig(), getParentForChildren(), isClean()); + observabilityConfig_ = null; + } + return observabilityConfigBuilder_; + } + + private com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo + observabilityInstanceInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.Builder, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfoOrBuilder> + observabilityInstanceInfoBuilder_; /** * * *
-     * Configuration for observability.
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the observabilityConfig field is set. + * @return Whether the observabilityInstanceInfo field is set. */ - public boolean hasObservabilityConfig() { - return ((bitField0_ & 0x00010000) != 0); + public boolean hasObservabilityInstanceInfo() { + return ((bitField0_ & 0x00040000) != 0); } /** * * *
-     * Configuration for observability.
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The observabilityConfig. + * @return The observabilityInstanceInfo. */ - public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig - getObservabilityConfig() { - if (observabilityConfigBuilder_ == null) { - return observabilityConfig_ == null - ? com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig + public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo + getObservabilityInstanceInfo() { + if (observabilityInstanceInfoBuilder_ == null) { + return observabilityInstanceInfo_ == null + ? com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo .getDefaultInstance() - : observabilityConfig_; + : observabilityInstanceInfo_; } else { - return observabilityConfigBuilder_.getMessage(); + return observabilityInstanceInfoBuilder_.getMessage(); } } @@ -25628,24 +28941,27 @@ public boolean hasObservabilityConfig() { * * *
-     * Configuration for observability.
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setObservabilityConfig( - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig value) { - if (observabilityConfigBuilder_ == null) { + public Builder setObservabilityInstanceInfo( + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo value) { + if (observabilityInstanceInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - observabilityConfig_ = value; + observabilityInstanceInfo_ = value; } else { - observabilityConfigBuilder_.setMessage(value); + observabilityInstanceInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -25654,22 +28970,25 @@ public Builder setObservabilityConfig( * * *
-     * Configuration for observability.
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setObservabilityConfig( - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.Builder + public Builder setObservabilityInstanceInfo( + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.Builder builderForValue) { - if (observabilityConfigBuilder_ == null) { - observabilityConfig_ = builderForValue.build(); + if (observabilityInstanceInfoBuilder_ == null) { + observabilityInstanceInfo_ = builderForValue.build(); } else { - observabilityConfigBuilder_.setMessage(builderForValue.build()); + observabilityInstanceInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -25678,30 +28997,33 @@ public Builder setObservabilityConfig( * * *
-     * Configuration for observability.
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeObservabilityConfig( - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig value) { - if (observabilityConfigBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) - && observabilityConfig_ != null - && observabilityConfig_ - != com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig + public Builder mergeObservabilityInstanceInfo( + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo value) { + if (observabilityInstanceInfoBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) + && observabilityInstanceInfo_ != null + && observabilityInstanceInfo_ + != com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo .getDefaultInstance()) { - getObservabilityConfigBuilder().mergeFrom(value); + getObservabilityInstanceInfoBuilder().mergeFrom(value); } else { - observabilityConfig_ = value; + observabilityInstanceInfo_ = value; } } else { - observabilityConfigBuilder_.mergeFrom(value); + observabilityInstanceInfoBuilder_.mergeFrom(value); } - if (observabilityConfig_ != null) { - bitField0_ |= 0x00010000; + if (observabilityInstanceInfo_ != null) { + bitField0_ |= 0x00040000; onChanged(); } return this; @@ -25711,19 +29033,22 @@ public Builder mergeObservabilityConfig( * * *
-     * Configuration for observability.
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearObservabilityConfig() { - bitField0_ = (bitField0_ & ~0x00010000); - observabilityConfig_ = null; - if (observabilityConfigBuilder_ != null) { - observabilityConfigBuilder_.dispose(); - observabilityConfigBuilder_ = null; + public Builder clearObservabilityInstanceInfo() { + bitField0_ = (bitField0_ & ~0x00040000); + observabilityInstanceInfo_ = null; + if (observabilityInstanceInfoBuilder_ != null) { + observabilityInstanceInfoBuilder_.dispose(); + observabilityInstanceInfoBuilder_ = null; } onChanged(); return this; @@ -25733,40 +29058,46 @@ public Builder clearObservabilityConfig() { * * *
-     * Configuration for observability.
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.Builder - getObservabilityConfigBuilder() { - bitField0_ |= 0x00010000; + public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.Builder + getObservabilityInstanceInfoBuilder() { + bitField0_ |= 0x00040000; onChanged(); - return internalGetObservabilityConfigFieldBuilder().getBuilder(); + return internalGetObservabilityInstanceInfoFieldBuilder().getBuilder(); } /** * * *
-     * Configuration for observability.
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfigOrBuilder - getObservabilityConfigOrBuilder() { - if (observabilityConfigBuilder_ != null) { - return observabilityConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfoOrBuilder + getObservabilityInstanceInfoOrBuilder() { + if (observabilityInstanceInfoBuilder_ != null) { + return observabilityInstanceInfoBuilder_.getMessageOrBuilder(); } else { - return observabilityConfig_ == null - ? com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig + return observabilityInstanceInfo_ == null + ? com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo .getDefaultInstance() - : observabilityConfig_; + : observabilityInstanceInfo_; } } @@ -25774,28 +29105,31 @@ public Builder clearObservabilityConfig() { * * *
-     * Configuration for observability.
+     * Output only. Instance level observability information, contains the
+     * effective values of observability settings for this instance, by merging
+     * customer's provided `ObservabilityInstanceConfig` with the
+     * Observability defaults.
      * 
* * - * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig, - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.Builder, - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfigOrBuilder> - internalGetObservabilityConfigFieldBuilder() { - if (observabilityConfigBuilder_ == null) { - observabilityConfigBuilder_ = + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.Builder, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfoOrBuilder> + internalGetObservabilityInstanceInfoFieldBuilder() { + if (observabilityInstanceInfoBuilder_ == null) { + observabilityInstanceInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig, - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.Builder, - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfigOrBuilder>( - getObservabilityConfig(), getParentForChildren(), isClean()); - observabilityConfig_ = null; + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.Builder, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfoOrBuilder>( + getObservabilityInstanceInfo(), getParentForChildren(), isClean()); + observabilityInstanceInfo_ = null; } - return observabilityConfigBuilder_; + return observabilityInstanceInfoBuilder_; } private com.google.cloud.alloydb.v1beta.Instance.ReadPoolConfig readPoolConfig_; @@ -25818,7 +29152,7 @@ public Builder clearObservabilityConfig() { * @return Whether the readPoolConfig field is set. */ public boolean hasReadPoolConfig() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -25863,7 +29197,7 @@ public Builder setReadPoolConfig( } else { readPoolConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -25885,7 +29219,7 @@ public Builder setReadPoolConfig( } else { readPoolConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -25903,7 +29237,7 @@ public Builder setReadPoolConfig( public Builder mergeReadPoolConfig( com.google.cloud.alloydb.v1beta.Instance.ReadPoolConfig value) { if (readPoolConfigBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) + if (((bitField0_ & 0x00080000) != 0) && readPoolConfig_ != null && readPoolConfig_ != com.google.cloud.alloydb.v1beta.Instance.ReadPoolConfig.getDefaultInstance()) { @@ -25915,7 +29249,7 @@ public Builder mergeReadPoolConfig( readPoolConfigBuilder_.mergeFrom(value); } if (readPoolConfig_ != null) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); } return this; @@ -25932,7 +29266,7 @@ public Builder mergeReadPoolConfig( * .google.cloud.alloydb.v1beta.Instance.ReadPoolConfig read_pool_config = 14; */ public Builder clearReadPoolConfig() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00080000); readPoolConfig_ = null; if (readPoolConfigBuilder_ != null) { readPoolConfigBuilder_.dispose(); @@ -25954,7 +29288,7 @@ public Builder clearReadPoolConfig() { */ public com.google.cloud.alloydb.v1beta.Instance.ReadPoolConfig.Builder getReadPoolConfigBuilder() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); return internalGetReadPoolConfigFieldBuilder().getBuilder(); } @@ -26075,7 +29409,7 @@ public Builder setIpAddress(java.lang.String value) { throw new NullPointerException(); } ipAddress_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -26094,7 +29428,7 @@ public Builder setIpAddress(java.lang.String value) { */ public Builder clearIpAddress() { ipAddress_ = getDefaultInstance().getIpAddress(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00100000); onChanged(); return this; } @@ -26118,7 +29452,7 @@ public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); ipAddress_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -26200,7 +29534,7 @@ public Builder setPublicIpAddress(java.lang.String value) { throw new NullPointerException(); } publicIpAddress_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -26222,7 +29556,7 @@ public Builder setPublicIpAddress(java.lang.String value) { */ public Builder clearPublicIpAddress() { publicIpAddress_ = getDefaultInstance().getPublicIpAddress(); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } @@ -26249,7 +29583,7 @@ public Builder setPublicIpAddressBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); publicIpAddress_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -26295,7 +29629,7 @@ public boolean getReconciling() { public Builder setReconciling(boolean value) { reconciling_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -26316,7 +29650,7 @@ public Builder setReconciling(boolean value) { * @return This builder for chaining. */ public Builder clearReconciling() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00400000); reconciling_ = false; onChanged(); return this; @@ -26387,7 +29721,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -26405,7 +29739,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00800000); onChanged(); return this; } @@ -26428,7 +29762,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -26453,7 +29787,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; onChanged(); return annotations_; } @@ -26551,7 +29885,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { } public Builder clearAnnotations() { - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x01000000); internalGetMutableAnnotations().getMutableMap().clear(); return this; } @@ -26578,7 +29912,7 @@ public Builder removeAnnotations(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAnnotations() { - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; return internalGetMutableAnnotations().getMutableMap(); } @@ -26601,7 +29935,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableAnnotations().getMutableMap().put(key, value); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; return this; } @@ -26618,7 +29952,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { */ public Builder putAllAnnotations(java.util.Map values) { internalGetMutableAnnotations().getMutableMap().putAll(values); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; return this; } @@ -26644,7 +29978,7 @@ public Builder putAllAnnotations(java.util.Map.google.cloud.alloydb.v1beta.Instance.UpdatePolicy update_policy = 22; */ public Builder clearUpdatePolicy() { - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x02000000); updatePolicy_ = null; if (updatePolicyBuilder_ != null) { updatePolicyBuilder_.dispose(); @@ -26789,7 +30123,7 @@ public Builder clearUpdatePolicy() { * .google.cloud.alloydb.v1beta.Instance.UpdatePolicy update_policy = 22; */ public com.google.cloud.alloydb.v1beta.Instance.UpdatePolicy.Builder getUpdatePolicyBuilder() { - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; onChanged(); return internalGetUpdatePolicyFieldBuilder().getBuilder(); } @@ -26867,7 +30201,7 @@ public com.google.cloud.alloydb.v1beta.Instance.UpdatePolicy.Builder getUpdatePo * @return Whether the clientConnectionConfig field is set. */ public boolean hasClientConnectionConfig() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x04000000) != 0); } /** @@ -26915,7 +30249,7 @@ public Builder setClientConnectionConfig( } else { clientConnectionConfigBuilder_.setMessage(value); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -26938,7 +30272,7 @@ public Builder setClientConnectionConfig( } else { clientConnectionConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -26957,7 +30291,7 @@ public Builder setClientConnectionConfig( public Builder mergeClientConnectionConfig( com.google.cloud.alloydb.v1beta.Instance.ClientConnectionConfig value) { if (clientConnectionConfigBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0) + if (((bitField0_ & 0x04000000) != 0) && clientConnectionConfig_ != null && clientConnectionConfig_ != com.google.cloud.alloydb.v1beta.Instance.ClientConnectionConfig @@ -26970,7 +30304,7 @@ public Builder mergeClientConnectionConfig( clientConnectionConfigBuilder_.mergeFrom(value); } if (clientConnectionConfig_ != null) { - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; onChanged(); } return this; @@ -26988,7 +30322,7 @@ public Builder mergeClientConnectionConfig( * */ public Builder clearClientConnectionConfig() { - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x04000000); clientConnectionConfig_ = null; if (clientConnectionConfigBuilder_ != null) { clientConnectionConfigBuilder_.dispose(); @@ -27011,7 +30345,7 @@ public Builder clearClientConnectionConfig() { */ public com.google.cloud.alloydb.v1beta.Instance.ClientConnectionConfig.Builder getClientConnectionConfigBuilder() { - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; onChanged(); return internalGetClientConnectionConfigFieldBuilder().getBuilder(); } @@ -27099,7 +30433,7 @@ public boolean getSatisfiesPzs() { public Builder setSatisfiesPzs(boolean value) { satisfiesPzs_ = value; - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -27116,7 +30450,7 @@ public Builder setSatisfiesPzs(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { - bitField0_ = (bitField0_ & ~0x02000000); + bitField0_ = (bitField0_ & ~0x08000000); satisfiesPzs_ = false; onChanged(); return this; @@ -27144,7 +30478,7 @@ public Builder clearSatisfiesPzs() { * @return Whether the pscInstanceConfig field is set. */ public boolean hasPscInstanceConfig() { - return ((bitField0_ & 0x04000000) != 0); + return ((bitField0_ & 0x10000000) != 0); } /** @@ -27193,7 +30527,7 @@ public Builder setPscInstanceConfig( } else { pscInstanceConfigBuilder_.setMessage(value); } - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -27217,7 +30551,7 @@ public Builder setPscInstanceConfig( } else { pscInstanceConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -27237,7 +30571,7 @@ public Builder setPscInstanceConfig( public Builder mergePscInstanceConfig( com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig value) { if (pscInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x04000000) != 0) + if (((bitField0_ & 0x10000000) != 0) && pscInstanceConfig_ != null && pscInstanceConfig_ != com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig @@ -27250,7 +30584,7 @@ public Builder mergePscInstanceConfig( pscInstanceConfigBuilder_.mergeFrom(value); } if (pscInstanceConfig_ != null) { - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; onChanged(); } return this; @@ -27269,7 +30603,7 @@ public Builder mergePscInstanceConfig( * */ public Builder clearPscInstanceConfig() { - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x10000000); pscInstanceConfig_ = null; if (pscInstanceConfigBuilder_ != null) { pscInstanceConfigBuilder_.dispose(); @@ -27293,7 +30627,7 @@ public Builder clearPscInstanceConfig() { */ public com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.Builder getPscInstanceConfigBuilder() { - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; onChanged(); return internalGetPscInstanceConfigFieldBuilder().getBuilder(); } @@ -27372,7 +30706,7 @@ public Builder clearPscInstanceConfig() { * @return Whether the pscInstanceInfo field is set. */ public boolean hasPscInstanceInfo() { - return ((bitField0_ & 0x08000000) != 0); + return ((bitField0_ & 0x20000000) != 0); } /** @@ -27421,7 +30755,7 @@ public Builder setPscInstanceInfo( } else { pscInstanceInfoBuilder_.setMessage(value); } - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -27445,7 +30779,7 @@ public Builder setPscInstanceInfo( } else { pscInstanceInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -27465,7 +30799,7 @@ public Builder setPscInstanceInfo( public Builder mergePscInstanceInfo( com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo value) { if (pscInstanceInfoBuilder_ == null) { - if (((bitField0_ & 0x08000000) != 0) + if (((bitField0_ & 0x20000000) != 0) && pscInstanceInfo_ != null && pscInstanceInfo_ != com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.getDefaultInstance()) { @@ -27477,7 +30811,7 @@ public Builder mergePscInstanceInfo( pscInstanceInfoBuilder_.mergeFrom(value); } if (pscInstanceInfo_ != null) { - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; onChanged(); } return this; @@ -27496,7 +30830,7 @@ public Builder mergePscInstanceInfo( * */ public Builder clearPscInstanceInfo() { - bitField0_ = (bitField0_ & ~0x08000000); + bitField0_ = (bitField0_ & ~0x20000000); pscInstanceInfo_ = null; if (pscInstanceInfoBuilder_ != null) { pscInstanceInfoBuilder_.dispose(); @@ -27520,7 +30854,7 @@ public Builder clearPscInstanceInfo() { */ public com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.Builder getPscInstanceInfoBuilder() { - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; onChanged(); return internalGetPscInstanceInfoFieldBuilder().getBuilder(); } @@ -27598,7 +30932,7 @@ public Builder clearPscInstanceInfo() { * @return Whether the networkConfig field is set. */ public boolean hasNetworkConfig() { - return ((bitField0_ & 0x10000000) != 0); + return ((bitField0_ & 0x40000000) != 0); } /** @@ -27645,7 +30979,7 @@ public Builder setNetworkConfig( } else { networkConfigBuilder_.setMessage(value); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -27668,7 +31002,7 @@ public Builder setNetworkConfig( } else { networkConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -27687,7 +31021,7 @@ public Builder setNetworkConfig( public Builder mergeNetworkConfig( com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig value) { if (networkConfigBuilder_ == null) { - if (((bitField0_ & 0x10000000) != 0) + if (((bitField0_ & 0x40000000) != 0) && networkConfig_ != null && networkConfig_ != com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig @@ -27700,7 +31034,7 @@ public Builder mergeNetworkConfig( networkConfigBuilder_.mergeFrom(value); } if (networkConfig_ != null) { - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); } return this; @@ -27718,7 +31052,7 @@ public Builder mergeNetworkConfig( * */ public Builder clearNetworkConfig() { - bitField0_ = (bitField0_ & ~0x10000000); + bitField0_ = (bitField0_ & ~0x40000000); networkConfig_ = null; if (networkConfigBuilder_ != null) { networkConfigBuilder_.dispose(); @@ -27741,7 +31075,7 @@ public Builder clearNetworkConfig() { */ public com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.Builder getNetworkConfigBuilder() { - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); return internalGetNetworkConfigFieldBuilder().getBuilder(); } @@ -27816,12 +31150,12 @@ public Builder clearNetworkConfig() { * * * @deprecated google.cloud.alloydb.v1beta.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1393 + * google/cloud/alloydb/v1beta/resources.proto;l=1472 * @return Whether the geminiConfig field is set. */ @java.lang.Deprecated public boolean hasGeminiConfig() { - return ((bitField0_ & 0x20000000) != 0); + return ((bitField0_ & 0x80000000) != 0); } /** @@ -27837,7 +31171,7 @@ public boolean hasGeminiConfig() { * * * @deprecated google.cloud.alloydb.v1beta.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1393 + * google/cloud/alloydb/v1beta/resources.proto;l=1472 * @return The geminiConfig. */ @java.lang.Deprecated @@ -27873,7 +31207,7 @@ public Builder setGeminiConfig(com.google.cloud.alloydb.v1beta.GeminiInstanceCon } else { geminiConfigBuilder_.setMessage(value); } - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -27898,7 +31232,7 @@ public Builder setGeminiConfig( } else { geminiConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -27918,7 +31252,7 @@ public Builder setGeminiConfig( @java.lang.Deprecated public Builder mergeGeminiConfig(com.google.cloud.alloydb.v1beta.GeminiInstanceConfig value) { if (geminiConfigBuilder_ == null) { - if (((bitField0_ & 0x20000000) != 0) + if (((bitField0_ & 0x80000000) != 0) && geminiConfig_ != null && geminiConfig_ != com.google.cloud.alloydb.v1beta.GeminiInstanceConfig.getDefaultInstance()) { @@ -27930,7 +31264,7 @@ public Builder mergeGeminiConfig(com.google.cloud.alloydb.v1beta.GeminiInstanceC geminiConfigBuilder_.mergeFrom(value); } if (geminiConfig_ != null) { - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; onChanged(); } return this; @@ -27950,7 +31284,7 @@ public Builder mergeGeminiConfig(com.google.cloud.alloydb.v1beta.GeminiInstanceC */ @java.lang.Deprecated public Builder clearGeminiConfig() { - bitField0_ = (bitField0_ & ~0x20000000); + bitField0_ = (bitField0_ & ~0x80000000); geminiConfig_ = null; if (geminiConfigBuilder_ != null) { geminiConfigBuilder_.dispose(); @@ -27974,7 +31308,7 @@ public Builder clearGeminiConfig() { */ @java.lang.Deprecated public com.google.cloud.alloydb.v1beta.GeminiInstanceConfig.Builder getGeminiConfigBuilder() { - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; onChanged(); return internalGetGeminiConfigFieldBuilder().getBuilder(); } @@ -28040,7 +31374,7 @@ private void ensureOutboundPublicIpAddressesIsMutable() { outboundPublicIpAddresses_ = new com.google.protobuf.LazyStringArrayList(outboundPublicIpAddresses_); } - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; } /** @@ -28135,7 +31469,7 @@ public Builder setOutboundPublicIpAddresses(int index, java.lang.String value) { } ensureOutboundPublicIpAddressesIsMutable(); outboundPublicIpAddresses_.set(index, value); - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; onChanged(); return this; } @@ -28160,7 +31494,7 @@ public Builder addOutboundPublicIpAddresses(java.lang.String value) { } ensureOutboundPublicIpAddressesIsMutable(); outboundPublicIpAddresses_.add(value); - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; onChanged(); return this; } @@ -28182,7 +31516,7 @@ public Builder addOutboundPublicIpAddresses(java.lang.String value) { public Builder addAllOutboundPublicIpAddresses(java.lang.Iterable values) { ensureOutboundPublicIpAddressesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, outboundPublicIpAddresses_); - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; onChanged(); return this; } @@ -28202,7 +31536,7 @@ public Builder addAllOutboundPublicIpAddresses(java.lang.Iterable */ public Builder clearConnectionPoolConfig() { - bitField1_ = (bitField1_ & ~0x00000001); + bitField1_ = (bitField1_ & ~0x00000004); connectionPoolConfig_ = null; if (connectionPoolConfigBuilder_ != null) { connectionPoolConfigBuilder_.dispose(); @@ -28536,7 +31870,7 @@ public Builder clearConnectionPoolConfig() { */ public com.google.cloud.alloydb.v1beta.Instance.ConnectionPoolConfig.Builder getConnectionPoolConfigBuilder() { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; onChanged(); return internalGetConnectionPoolConfigFieldBuilder().getBuilder(); } @@ -28612,7 +31946,7 @@ public Builder clearConnectionPoolConfig() { * @return Whether the gcaConfig field is set. */ public boolean hasGcaConfig() { - return ((bitField1_ & 0x00000002) != 0); + return ((bitField1_ & 0x00000008) != 0); } /** @@ -28658,7 +31992,7 @@ public Builder setGcaConfig(com.google.cloud.alloydb.v1beta.GCAInstanceConfig va } else { gcaConfigBuilder_.setMessage(value); } - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; onChanged(); return this; } @@ -28681,7 +32015,7 @@ public Builder setGcaConfig( } else { gcaConfigBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; onChanged(); return this; } @@ -28699,7 +32033,7 @@ public Builder setGcaConfig( */ public Builder mergeGcaConfig(com.google.cloud.alloydb.v1beta.GCAInstanceConfig value) { if (gcaConfigBuilder_ == null) { - if (((bitField1_ & 0x00000002) != 0) + if (((bitField1_ & 0x00000008) != 0) && gcaConfig_ != null && gcaConfig_ != com.google.cloud.alloydb.v1beta.GCAInstanceConfig.getDefaultInstance()) { @@ -28711,7 +32045,7 @@ public Builder mergeGcaConfig(com.google.cloud.alloydb.v1beta.GCAInstanceConfig gcaConfigBuilder_.mergeFrom(value); } if (gcaConfig_ != null) { - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; onChanged(); } return this; @@ -28729,7 +32063,7 @@ public Builder mergeGcaConfig(com.google.cloud.alloydb.v1beta.GCAInstanceConfig * */ public Builder clearGcaConfig() { - bitField1_ = (bitField1_ & ~0x00000002); + bitField1_ = (bitField1_ & ~0x00000008); gcaConfig_ = null; if (gcaConfigBuilder_ != null) { gcaConfigBuilder_.dispose(); @@ -28751,7 +32085,7 @@ public Builder clearGcaConfig() { * */ public com.google.cloud.alloydb.v1beta.GCAInstanceConfig.Builder getGcaConfigBuilder() { - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; onChanged(); return internalGetGcaConfigFieldBuilder().getBuilder(); } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/InstanceOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/InstanceOrBuilder.java index 2180c542d45f..ea7da9109437 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/InstanceOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/InstanceOrBuilder.java @@ -776,6 +776,59 @@ java.lang.String getDatabaseFlagsOrDefault( com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfigOrBuilder getQueryInsightsConfigOrBuilder(); + /** + * + * + *
+   * Output only. Instance level Query Insights information, which is read-only
+   * and available in the output only. Contains the effective query insights
+   * settings for this instance, by merging customer's provided
+   * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the queryInsightsInfo field is set. + */ + boolean hasQueryInsightsInfo(); + + /** + * + * + *
+   * Output only. Instance level Query Insights information, which is read-only
+   * and available in the output only. Contains the effective query insights
+   * settings for this instance, by merging customer's provided
+   * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The queryInsightsInfo. + */ + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo getQueryInsightsInfo(); + + /** + * + * + *
+   * Output only. Instance level Query Insights information, which is read-only
+   * and available in the output only. Contains the effective query insights
+   * settings for this instance, by merging customer's provided
+   * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfoOrBuilder + getQueryInsightsInfoOrBuilder(); + /** * * @@ -820,6 +873,59 @@ java.lang.String getDatabaseFlagsOrDefault( com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfigOrBuilder getObservabilityConfigOrBuilder(); + /** + * + * + *
+   * Output only. Instance level observability information, contains the
+   * effective values of observability settings for this instance, by merging
+   * customer's provided `ObservabilityInstanceConfig` with the
+   * Observability defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the observabilityInstanceInfo field is set. + */ + boolean hasObservabilityInstanceInfo(); + + /** + * + * + *
+   * Output only. Instance level observability information, contains the
+   * effective values of observability settings for this instance, by merging
+   * customer's provided `ObservabilityInstanceConfig` with the
+   * Observability defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The observabilityInstanceInfo. + */ + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo getObservabilityInstanceInfo(); + + /** + * + * + *
+   * Output only. Instance level observability information, contains the
+   * effective values of observability settings for this instance, by merging
+   * customer's provided `ObservabilityInstanceConfig` with the
+   * Observability defaults.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfoOrBuilder + getObservabilityInstanceInfoOrBuilder(); + /** * * @@ -1291,7 +1397,7 @@ java.lang.String getAnnotationsOrDefault( * * * @deprecated google.cloud.alloydb.v1beta.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1393 + * google/cloud/alloydb/v1beta/resources.proto;l=1472 * @return Whether the geminiConfig field is set. */ @java.lang.Deprecated @@ -1310,7 +1416,7 @@ java.lang.String getAnnotationsOrDefault( * * * @deprecated google.cloud.alloydb.v1beta.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1393 + * google/cloud/alloydb/v1beta/resources.proto;l=1472 * @return The geminiConfig. */ @java.lang.Deprecated diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ResourcesProto.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ResourcesProto.java index 0e99b0e985ba..b3ac9ba41276 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ResourcesProto.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ResourcesProto.java @@ -168,10 +168,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1beta_Instance_QueryInsightsInstanceConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_alloydb_v1beta_Instance_QueryInsightsInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1beta_Instance_QueryInsightsInstanceInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_alloydb_v1beta_Instance_QueryInsightsInstanceInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1beta_Instance_ReadPoolConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -504,7 +512,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tSECONDARY\020\002:u\352Ar\n" + "\036alloydb.googleapis.com/Cluster\022:projects/{proje" + "ct}/locations/{location}/clusters/{cluster}*\010clusters2\007clusterR\001\001B\010\n" - + "\006source\"\371.\n" + + "\006source\"\2605\n" + "\010Instance\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022\020\n" @@ -529,39 +537,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005nodes\030\024" + " \003(\0132*.google.cloud.alloydb.v1beta.Instance.NodeB\003\340A\003\022`\n" + "\025query_insights_config\030\025 \001(\0132A.google.cl" - + "oud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig\022_\n" - + "\024observability_config\030\032" - + " \001(\0132A.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig\022N\n" - + "\020read_pool_config\030\016" - + " \001(\01324.google.cloud.alloydb.v1beta.Instance.ReadPoolConfig\022\027\n\n" + + "oud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig\022a\n" + + "\023query_insights_info\030/" + + " \001(\0132?.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfoB\003\340A\003\022_\n" + + "\024observability_config\030\032 \001(\0132A.google.cloud." + + "alloydb.v1beta.Instance.ObservabilityInstanceConfig\022i\n" + + "\033observability_instance_info\030, \001(\0132?.google.cloud.alloydb.v1beta.I" + + "nstance.ObservabilityInstanceInfoB\003\340A\003\022N\n" + + "\020read_pool_config\030\016 \001(\01324.google.cloud." + + "alloydb.v1beta.Instance.ReadPoolConfig\022\027\n\n" + "ip_address\030\017 \001(\tB\003\340A\003\022&\n" + "\021public_ip_address\030\033 \001(" + "\tB\013\340A\003\342\214\317\327\010\002\010\002\022\030\n" + "\013reconciling\030\020 \001(\010B\003\340A\003\022\014\n" + "\004etag\030\021 \001(\t\022K\n" - + "\013annotations\030\022 \003(\01326" - + ".google.cloud.alloydb.v1beta.Instance.AnnotationsEntry\022I\n\r" - + "update_policy\030\026 \001(\01322." - + "google.cloud.alloydb.v1beta.Instance.UpdatePolicy\022c\n" - + "\030client_connection_config\030\027 " - + "\001(\0132<.google.cloud.alloydb.v1beta.Instance.ClientConnectionConfigB\003\340A\001\022\032\n\r" + + "\013annotations\030\022" + + " \003(\01326.google.cloud.alloydb.v1beta.Instance.AnnotationsEntry\022I\n\r" + + "update_policy\030\026 " + + "\001(\01322.google.cloud.alloydb.v1beta.Instance.UpdatePolicy\022c\n" + + "\030client_connection_config\030\027" + + " \001(\0132<.google.cloud.alloydb.v1beta.Instance.ClientConnectionConfigB\003\340A\001\022\032\n\r" + "satisfies_pzs\030\030 \001(\010B\003\340A\003\022Y\n" + "\023psc_instance_config\030\034" + " \001(\01327.google.cloud.alloydb.v1beta.Instance.PscInstanceConfigB\003\340A\001\022U\n" - + "\021psc_instance_info\030." - + " \001(\01325.google.cloud.alloydb.v1beta.Instance.PscInstanceInfoB\003\340A\003\022X\n" - + "\016network_config\030\035 \001(\0132;.google.cloud.allo" - + "ydb.v1beta.Instance.InstanceNetworkConfigB\003\340A\001\022O\n\r" - + "gemini_config\030! \001(\01321.google.c" - + "loud.alloydb.v1beta.GeminiInstanceConfigB\005\030\001\340A\001\0221\n" + + "\021psc_instance_info\030. \001(\01325.google.cloud.al" + + "loydb.v1beta.Instance.PscInstanceInfoB\003\340A\003\022X\n" + + "\016network_config\030\035 \001(\0132;.google.clou" + + "d.alloydb.v1beta.Instance.InstanceNetworkConfigB\003\340A\001\022O\n\r" + + "gemini_config\030! \001(\01321.go" + + "ogle.cloud.alloydb.v1beta.GeminiInstanceConfigB\005\030\001\340A\001\0221\n" + "\034outbound_public_ip_addresses\030\" \003(" + "\tB\013\340A\003\342\214\317\327\010\002\010\002\022V\n" + "\021activation_policy\030#" + " \001(\01626.google.cloud.alloydb.v1beta.Instance.ActivationPolicyB\003\340A\001\022_\n" - + "\026connection_pool_config\030% \001(\0132:.google.cloud.alloyd" - + "b.v1beta.Instance.ConnectionPoolConfigB\003\340A\001\022G\n\n" - + "gca_config\030&" - + " \001(\0132..google.cloud.alloydb.v1beta.GCAInstanceConfigB\003\340A\003\0328\n\r" + + "\026connection_pool_config\030% \001(\0132:.google.cloud." + + "alloydb.v1beta.Instance.ConnectionPoolConfigB\003\340A\001\022G\n\n" + + "gca_config\030& \001(\0132..google.c" + + "loud.alloydb.v1beta.GCAInstanceConfigB\003\340A\003\0328\n\r" + "MachineConfig\022\021\n" + "\tcpu_count\030\001 \001(\005\022\024\n" + "\014machine_type\030\004 \001(\t\032R\n" @@ -579,7 +591,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "H\002\210\001\001B\032\n" + "\030_record_application_tagsB\030\n" + "\026_record_client_addressB\031\n" - + "\027_query_plans_per_minute\032\372\004\n" + + "\027_query_plans_per_minute\032\302\001\n" + + "\031QueryInsightsInstanceInfo\022\024\n" + + "\007enabled\030\001 \001(\010B\003\340A\003\022$\n" + + "\027record_application_tags\030\002 \001(\010B\003\340A\003\022\"\n" + + "\025record_client_address\030\003 \001(\010B\003\340A\003\022 \n" + + "\023query_string_length\030\004 \001(\r" + + "B\003\340A\003\022#\n" + + "\026query_plans_per_minute\030\005 \001(\r" + + "B\003\340A\003\032\372\004\n" + "\033ObservabilityInstanceConfig\022\024\n" + "\007enabled\030\001 \001(\010H\000\210\001\001\022\036\n" + "\021preserve_comments\030\002 \001(\010H\001\210\001\001\022\036\n" @@ -601,26 +621,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027_query_plans_per_minuteB\027\n" + "\025_track_active_queriesB\027\n" + "\025_track_client_addressB \n" - + "\036_assistive_experiences_enabled\032$\n" + + "\036_assistive_experiences_enabled\032\241\003\n" + + "\031ObservabilityInstanceInfo\022\024\n" + + "\007enabled\030\002 \001(\010B\003\340A\003\022\036\n" + + "\021preserve_comments\030\003 \001(\010B\003\340A\003\022\036\n" + + "\021track_wait_events\030\004 \001(\010B\003\340A\003\022#\n" + + "\026track_wait_event_types\030\005 \001(\010B\003\340A\003\022$\n" + + "\027max_query_string_length\030\006 \001(\005B\003\340A\003\022$\n" + + "\027record_application_tags\030\007 \001(\010B\003\340A\003\022#\n" + + "\026query_plans_per_minute\030\010 \001(\005B\003\340A\003\022!\n" + + "\024track_active_queries\030\t \001(\010B\003\340A\003\022!\n" + + "\024track_client_address\030\n" + + " \001(\010B\003\340A\003\022*\n" + + "\035assistive_experiences_enabled\030\013 \001(\010B\003\340A\003\022&\n" + + "\027track_active_query_plan\030\r" + + " \001(\010B\005\030\001\340A\003\032$\n" + "\016ReadPoolConfig\022\022\n\n" + "node_count\030\001 \001(\005\032\221\001\n" + "\014UpdatePolicy\022E\n" - + "\004mode\030\001" - + " \001(\01627.google.cloud.alloydb.v1beta.Instance.UpdatePolicy.Mode\":\n" + + "\004mode\030\001 \001(\016" + + "27.google.cloud.alloydb.v1beta.Instance.UpdatePolicy.Mode\":\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\013\n" + "\007DEFAULT\020\001\022\017\n" + "\013FORCE_APPLY\020\002\032z\n" + "\026ClientConnectionConfig\022\037\n" + "\022require_connectors\030\001 \001(\010B\003\340A\001\022?\n\n" - + "ssl_config\030\002" - + " \001(\0132&.google.cloud.alloydb.v1beta.SslConfigB\003\340A\001\0329\n" + + "ssl_config\030\002 \001(\0132&.g" + + "oogle.cloud.alloydb.v1beta.SslConfigB\003\340A\001\0329\n" + "\022PscInterfaceConfig\022#\n" + "\033network_attachment_resource\030\001 \001(\t\032\251\001\n" + "\027PscAutoConnectionConfig\022\030\n" + "\020consumer_project\030\001 \001(\t\022\030\n" - + "\020consumer_network\030\002 \001(\t\022\037\n" - + "\n" + + "\020consumer_network\030\002 \001(\t\022\037\n\n" + "ip_address\030\003 \001(\tB\013\340A\003\342\214\317\327\010\002\010\002\022\023\n" + "\006status\030\004 \001(\tB\003\340A\003\022$\n" + "\027consumer_network_status\030\005 \001(\tB\003\340A\003\032\264\005\n" @@ -629,15 +662,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(compute.googleapis.com/ServiceAttachment\022&\n" + "\031allowed_consumer_projects\030\002 \003(\tB\003\340A\001\022\031\n" + "\014psc_dns_name\030\007 \001(\tB\003\340A\003\022\\\n" - + "\025psc_interface_configs\030\010" - + " \003(\01328.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfigB\003\340A\001\022`\n" - + "\024psc_auto_connections\030\t \003(\0132=.google.cloud" - + ".alloydb.v1beta.Instance.PscAutoConnectionConfigB\003\340A\001\022V\n" - + "\022psc_auto_dns_state\030\013 \001(" - + "\01625.google.cloud.alloydb.v1beta.Instance.PscAutoDnsStateB\003\340A\001\022\203\001\n" + + "\025psc_interface_configs\030\010 \003(\01328.go" + + "ogle.cloud.alloydb.v1beta.Instance.PscInterfaceConfigB\003\340A\001\022`\n" + + "\024psc_auto_connections\030\t" + + " \003(\0132=.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigB\003\340A\001\022V\n" + + "\022psc_auto_dns_state\030\013 \001(\01625.google.cloud." + + "alloydb.v1beta.Instance.PscAutoDnsStateB\003\340A\001\022\203\001\n" + " psc_auto_connection_policy_state\030\r" - + " \001(\0162T.google.cloud." - + "alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyStateB\003\340A\001\"k\n" + + " \001(\0162T.google.cloud.alloydb.v1beta.In" + + "stance.PscInstanceConfig.PscAutoConnectionPolicyStateB\003\340A\001\"k\n" + "\034PscAutoConnectionPolicyState\0220\n" + ",PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED\020\000\022\013\n" + "\007ENABLED\020\001\022\014\n" @@ -648,9 +681,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$effective_psc_auto_connection_policy\030\003 \001(\010B\003\340A\003\022&\n" + "\031service_connection_policy\030\004 \001(\tB\003\340A\003\032\356\002\n" + "\025InstanceNetworkConfig\022x\n" - + "\034authorized_external_networks\030\001 \003(\0132M." - + "google.cloud.alloydb.v1beta.Instance.Ins" - + "tanceNetworkConfig.AuthorizedNetworkB\003\340A\001\022\035\n" + + "\034authorized_external_networks\030\001 \003(\0132M.google.cloud.allo" + + "ydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetworkB\003\340A\001\022\035\n" + "\020enable_public_ip\030\002 \001(\010B\003\340A\001\022&\n" + "\031enable_outbound_public_ip\030\003 \001(\010B\003\340A\001\0227\n" + "\007network\030\004 \001(\tB&\340A\003\372A \n" @@ -661,8 +693,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024ConnectionPoolConfig\022\024\n" + "\007enabled\030\014 \001(\010B\003\340A\001\022Y\n" + "\005flags\030\r" - + " \003(\0132E.google.cloud.alloydb.v1beta.Insta" - + "nce.ConnectionPoolConfig.FlagsEntryB\003\340A\001\022\031\n" + + " \003(\0132E.google.clo" + + "ud.alloydb.v1beta.Instance.ConnectionPoolConfig.FlagsEntryB\003\340A\001\022\031\n" + "\014pooler_count\030\016 \001(\005B\003\340A\003\032,\n\n" + "FlagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -703,8 +735,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035ACTIVATION_POLICY_UNSPECIFIED\020\000\022\n\n" + "\006ALWAYS\020\001\022\t\n" + "\005NEVER\020\002:\216\001\352A\212\001\n" - + "\037alloydb.googleapis.com/Instance\022Oprojects/{projec" - + "t}/locations/{location}/clusters/{cluster}/instances/{instance}*" + + "\037alloydb.googleapis.com/Instance\022Oprojects/{project}/locations/{loc" + + "ation}/clusters/{cluster}/instances/{instance}*" + "\tinstances2\010instanceR\001\001\"\212\003\n" + "\016ConnectionInfo\022\014\n" + "\004name\030\001 \001(\t\022\027\n\n" @@ -715,9 +747,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014instance_uid\030\004 \001(\tB\003\340A\003\022\031\n" + "\014psc_dns_name\030\006 \001(\tB\003\340A\003\022\036\n" + "\021psc_auto_dns_name\030\t \001(\tB\003\340A\003:\254\001\352A\250\001\n" - + "%alloydb.googleapis.com/ConnectionInfo\022^projects/{project}/locations/{location}/clu" - + "sters/{cluster}/instances/{instance}/con" - + "nectionInfo*\017connectionInfos2\016connectionInfo\"\251\r\n" + + "%alloydb.googleapis.com/ConnectionInfo\022^projects/{project}/l" + + "ocations/{location}/clusters/{cluster}/i" + + "nstances/{instance}/connectionInfo*\017connectionInfos2\016connectionInfo\"\251\r\n" + "\006Backup\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022\020\n" @@ -737,20 +769,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\tB&\340A\002\372A \n" + "\036alloydb.googleapis.com/Cluster\022\030\n" + "\013reconciling\030\013 \001(\010B\003\340A\003\022M\n" - + "\021encryption_config\030\014" - + " \001(\0132-.google.cloud.alloydb.v1beta.EncryptionConfigB\003\340A\001\022I\n" + + "\021encryption_config\030\014 \001(\0132-.google." + + "cloud.alloydb.v1beta.EncryptionConfigB\003\340A\001\022I\n" + "\017encryption_info\030\r" + " \001(\0132+.google.cloud.alloydb.v1beta.EncryptionInfoB\003\340A\003\022\014\n" + "\004etag\030\016 \001(\t\022I\n" - + "\013annotations\030\020" - + " \003(\01324.google.cloud.alloydb.v1beta.Backup.AnnotationsEntry\022\027\n\n" + + "\013annotations\030\020 \003(\01324.googl" + + "e.cloud.alloydb.v1beta.Backup.AnnotationsEntry\022\027\n\n" + "size_bytes\030\021 \001(\003B\003\340A\003\0224\n" + "\013expiry_time\030\023 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022U\n" - + "\017expiry_quantity\030\024" - + " \001(\01327.google.cloud.alloydb.v1beta.Backup.QuantityBasedExpiryB\003\340A\003\022\032\n\r" + + "\017expiry_quantity\030\024 \001(\01327.google." + + "cloud.alloydb.v1beta.Backup.QuantityBasedExpiryB\003\340A\003\022\032\n\r" + "satisfies_pzs\030\025 \001(\010B\003\340A\003\022K\n" - + "\020database_version\030\026 " - + "\001(\0162,.google.cloud.alloydb.v1beta.DatabaseVersionB\003\340A\003\022F\n" + + "\020database_version\030\026" + + " \001(\0162,.google.cloud.alloydb.v1beta.DatabaseVersionB\003\340A\003\022F\n" + "\004tags\030\031 \003(\0132-.google.cloud.alloydb.v1beta.Backup.TagsEntryB" + "\t\340A\004\340A\005\340A\001\032W\n" + "\023QuantityBasedExpiry\022\034\n" @@ -760,7 +792,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\0322\n" + "\020AnnotationsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001\032+\n" + "\tTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -776,33 +809,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tON_DEMAND\020\001\022\r\n" + "\tAUTOMATED\020\002\022\016\n\n" + "CONTINUOUS\020\003:p\352Am\n" - + "\035alloydb.googleapis.com/Backup\0228proj" - + "ects/{project}/locations/{location}/backups/{backup}*\007backups2\006backupR\001\001\"\220" - + "\t\n" + + "\035alloydb.googleapis.com/Backup\0228projects/{project}/lo", + "cations/{location}/backups/{backup}*\007backups2\006backupR\001\001\"\220\t\n" + "\025SupportedDatabaseFlag\022d\n" - + "\023string_restrictions\030\007 \001(\0132E.google.cloud.alloydb.v1beta.Su" - + "pportedDatabaseFlag.StringRestrictionsH\000\022f\n" - + "\024integer_restrictions\030\010 \001(\0132F.google." - + "cloud.alloydb.v1beta.SupportedDatabaseFlag.IntegerRestrictionsH\000\022\"\n" + + "\023string_restrictions\030\007 \001(\0132E.google." + + "cloud.alloydb.v1beta.SupportedDatabaseFlag.StringRestrictionsH\000\022f\n" + + "\024integer_restrictions\030\010 \001(\0132F.google.cloud.alloydb.v1b" + + "eta.SupportedDatabaseFlag.IntegerRestrictionsH\000\022\"\n" + "\030recommended_string_value\030\n" + " \001(\tH\001\022@\n" + "\031recommended_integer_value\030\013" + " \001(\0132\033.google.protobuf.Int64ValueH\001\022\014\n" + "\004name\030\001 \001(\t\022\021\n" + "\tflag_name\030\002 \001(\t\022P\n\n" - + "value_type\030\003 \001(\0162<.google.cloud.alloy" - + "db.v1beta.SupportedDatabaseFlag.ValueType\022\037\n" + + "value_type\030\003 \001" + + "(\0162<.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.ValueType\022\037\n" + "\027accepts_multiple_values\030\004 \001(\010\022K\n" + "\025supported_db_versions\030\005" + " \003(\0162,.google.cloud.alloydb.v1beta.DatabaseVersion\022\033\n" + "\023requires_db_restart\030\006 \001(\010\022G\n" - + "\005scope\030\t \001(\01628.go" - + "ogle.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope\032,\n" + + "\005scope\030\t" + + " \001(\01628.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope\032,\n" + "\022StringRestrictions\022\026\n" + "\016allowed_values\030\001 \003(\t\032u\n" + "\023IntegerRestrictions\022.\n" - + "\tmin_value\030\001 \001(\0132\033.google.protobuf.", - "Int64Value\022.\n" + + "\tmin_value\030\001 \001(\0132\033.google.protobuf.Int64Value\022.\n" + "\tmax_value\030\002 \001(\0132\033.google.protobuf.Int64Value\"U\n" + "\tValueType\022\032\n" + "\026VALUE_TYPE_UNSPECIFIED\020\000\022\n\n" @@ -814,9 +845,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021SCOPE_UNSPECIFIED\020\000\022\014\n" + "\010DATABASE\020\001\022\023\n" + "\017CONNECTION_POOL\020\002:\227\001\352A\223\001\n" - + ",alloydb.googleapis.com/SupportedDatabaseFlag\0224projects/{pro" - + "ject}/locations/{location}/flags/{flag}*" - + "\026supportedDatabaseFlags2\025supportedDatabaseFlagB\016\n" + + ",alloydb.googleapis.com/SupportedDatabaseFlag\0224projects/{project}/locations/{" + + "location}/flags/{flag}*\026supportedDatabaseFlags2\025supportedDatabaseFlagB\016\n" + "\014restrictionsB\023\n" + "\021recommended_value\"\376\002\n" + "\004User\022\021\n" @@ -830,8 +860,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025USER_TYPE_UNSPECIFIED\020\000\022\024\n" + "\020ALLOYDB_BUILT_IN\020\001\022\024\n" + "\020ALLOYDB_IAM_USER\020\002:y\352Av\n" - + "\033alloydb.googleapis.com/User\022Gprojects/{project}/" - + "locations/{location}/clusters/{cluster}/users/{user}*\005users2\004userR\001\001\"\202\003\n" + + "\033alloydb.googleapis.com/User\022Gprojects/{project}/locations/{locati" + + "on}/clusters/{cluster}/users/{user}*\005users2\004userR\001\001\"\202\003\n" + "\010Database\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\027\n" + "\007charset\030\002 \001(\tB\006\340A\001\340A\005\022\031\n" @@ -841,8 +871,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021database_template\030\006 \001(\tB\006\340A\004\340A\005\022&\n" + "\024is_template_database\030\007" + " \001(\010B\003\340A\001H\000\210\001\001:\216\001\352A\212\001\n" - + "\037alloydb.googleapis.com/Database\022Oprojects/{project}/locations/{l" - + "ocation}/clusters/{cluster}/databases/{database}*" + + "\037alloydb.googleapis.com/Database\022Oprojects" + + "/{project}/locations/{location}/clusters/{cluster}/databases/{database}*" + "\tdatabases2\010databaseR\001\001B\027\n" + "\025_is_template_database*^\n" + "\014InstanceView\022\035\n" @@ -866,20 +896,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035SUBSCRIPTION_TYPE_UNSPECIFIED\020\000\022\014\n" + "\010STANDARD\020\001\022\t\n" + "\005TRIAL\020\002B\273\005\n" - + "\037com.google.cloud.alloydb.v1betaB\016Resourc" - + "esProtoP\001Z9cloud.google.com/go/alloydb/a" - + "piv1beta/alloydbpb;alloydbpb\252\002\033Google.Cl" - + "oud.AlloyDb.V1Beta\312\002\033Google\\Cloud\\AlloyD" - + "b\\V1beta\352\002\036Google::Cloud::AlloyDB::V1beta\352A\246\001\n" - + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects/{project}/locations/{l" - + "ocation}/keyRings/{key_ring}/cryptoKeys/" - + "{crypto_key}/cryptoKeyVersions/{crypto_key_version}\352AN\n" - + "\036compute.googleapis.com/N" - + "etwork\022,projects/{project}/global/networks/{network}\352Ax\n" - + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project}/locations" - + "/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352Aw\n" - + "(compute.googleapis.com/ServiceAttachment\022Kprojects/{project}" - + "/regions/{region}/serviceAttachments/{service_attachment}b\006proto3" + + "\037com.google.cloud.alloydb.v1betaB\016ResourcesProtoP\001Z9cloud." + + "google.com/go/alloydb/apiv1beta/alloydbp" + + "b;alloydbpb\252\002\033Google.Cloud.AlloyDb.V1Bet" + + "a\312\002\033Google\\Cloud\\AlloyDb\\V1beta\352\002\036Google::Cloud::AlloyDB::V1beta\352A\246\001\n" + + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects" + + "/{project}/locations/{location}/keyRings" + + "/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}\352AN\n" + + "\036c" + + "ompute.googleapis.com/Network\022,projects/{project}/global/networks/{network}\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project}/locations/{location}/keyRi" + + "ngs/{key_ring}/cryptoKeys/{crypto_key}\352Aw\n" + + "(compute.googleapis.com/ServiceAttachment\022Kprojects/{project}/regions/{region}" + + "/serviceAttachments/{service_attachment}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1195,7 +1224,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WritableNode", "Nodes", "QueryInsightsConfig", + "QueryInsightsInfo", "ObservabilityConfig", + "ObservabilityInstanceInfo", "ReadPoolConfig", "IpAddress", "PublicIpAddress", @@ -1241,8 +1272,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "QueryStringLength", "QueryPlansPerMinute", }); - internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_descriptor = + internal_static_google_cloud_alloydb_v1beta_Instance_QueryInsightsInstanceInfo_descriptor = internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(3); + internal_static_google_cloud_alloydb_v1beta_Instance_QueryInsightsInstanceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1beta_Instance_QueryInsightsInstanceInfo_descriptor, + new java.lang.String[] { + "Enabled", + "RecordApplicationTags", + "RecordClientAddress", + "QueryStringLength", + "QueryPlansPerMinute", + }); + internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_descriptor = + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(4); internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_descriptor, @@ -1258,8 +1301,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TrackClientAddress", "AssistiveExperiencesEnabled", }); + internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceInfo_descriptor = + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(5); + internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceInfo_descriptor, + new java.lang.String[] { + "Enabled", + "PreserveComments", + "TrackWaitEvents", + "TrackWaitEventTypes", + "MaxQueryStringLength", + "RecordApplicationTags", + "QueryPlansPerMinute", + "TrackActiveQueries", + "TrackClientAddress", + "AssistiveExperiencesEnabled", + "TrackActiveQueryPlan", + }); internal_static_google_cloud_alloydb_v1beta_Instance_ReadPoolConfig_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(4); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(6); internal_static_google_cloud_alloydb_v1beta_Instance_ReadPoolConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_ReadPoolConfig_descriptor, @@ -1267,7 +1328,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeCount", }); internal_static_google_cloud_alloydb_v1beta_Instance_UpdatePolicy_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(5); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(7); internal_static_google_cloud_alloydb_v1beta_Instance_UpdatePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_UpdatePolicy_descriptor, @@ -1275,7 +1336,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Mode", }); internal_static_google_cloud_alloydb_v1beta_Instance_ClientConnectionConfig_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(6); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(8); internal_static_google_cloud_alloydb_v1beta_Instance_ClientConnectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_ClientConnectionConfig_descriptor, @@ -1283,7 +1344,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequireConnectors", "SslConfig", }); internal_static_google_cloud_alloydb_v1beta_Instance_PscInterfaceConfig_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(7); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(9); internal_static_google_cloud_alloydb_v1beta_Instance_PscInterfaceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_PscInterfaceConfig_descriptor, @@ -1291,7 +1352,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkAttachmentResource", }); internal_static_google_cloud_alloydb_v1beta_Instance_PscAutoConnectionConfig_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(8); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(10); internal_static_google_cloud_alloydb_v1beta_Instance_PscAutoConnectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_PscAutoConnectionConfig_descriptor, @@ -1299,7 +1360,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConsumerProject", "ConsumerNetwork", "IpAddress", "Status", "ConsumerNetworkStatus", }); internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(9); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(11); internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_descriptor, @@ -1313,7 +1374,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PscAutoConnectionPolicyState", }); internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceInfo_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(10); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(12); internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceInfo_descriptor, @@ -1324,7 +1385,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceConnectionPolicy", }); internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(11); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(13); internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_descriptor, @@ -1345,7 +1406,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CidrRange", }); internal_static_google_cloud_alloydb_v1beta_Instance_ConnectionPoolConfig_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(12); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(14); internal_static_google_cloud_alloydb_v1beta_Instance_ConnectionPoolConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_ConnectionPoolConfig_descriptor, @@ -1362,7 +1423,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1beta_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(13); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(15); internal_static_google_cloud_alloydb_v1beta_Instance_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_LabelsEntry_descriptor, @@ -1370,7 +1431,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1beta_Instance_DatabaseFlagsEntry_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(14); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(16); internal_static_google_cloud_alloydb_v1beta_Instance_DatabaseFlagsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_DatabaseFlagsEntry_descriptor, @@ -1378,7 +1439,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1beta_Instance_AnnotationsEntry_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(15); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(17); internal_static_google_cloud_alloydb_v1beta_Instance_AnnotationsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_AnnotationsEntry_descriptor, diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/resources.proto b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/resources.proto index d9e11384472d..6d2caafa78c1 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/resources.proto +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/resources.proto @@ -864,6 +864,27 @@ message Instance { optional uint32 query_plans_per_minute = 5; } + // Instance level Query Insights information, which is read-only and available + // in the output only. + message QueryInsightsInstanceInfo { + // Output only. Whether Query Insights is enabled. + bool enabled = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether to record application tags. + bool record_application_tags = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether to record client address. + bool record_client_address = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Maximum query string length. + uint32 query_string_length = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of query execution plans captured per minute. + uint32 query_plans_per_minute = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // Observability Instance specific configuration. message ObservabilityInstanceConfig { // Observability feature status for an instance. @@ -910,6 +931,50 @@ message Instance { optional bool assistive_experiences_enabled = 10; } + message ObservabilityInstanceInfo { + // Output only. Observability feature status for an instance. + bool enabled = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Preserve comments in query string for an instance. + bool preserve_comments = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Track wait events during query execution for an instance. + bool track_wait_events = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Track wait event types during query execution for an + // instance. + bool track_wait_event_types = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Query string length. The default value is 10k. + int32 max_query_string_length = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Record application tags for an instance. + bool record_application_tags = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of query execution plans captured by Insights per + // minute for all queries combined. + int32 query_plans_per_minute = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Track actively running queries on the instance. + bool track_active_queries = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Track client address for an instance. + bool track_client_address = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether assistive experiences are enabled for this AlloyDB + // instance. + bool assistive_experiences_enabled = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates whether to track active query plans for an + // instance. Deprecated: Use track_active_queries instead. + bool track_active_query_plan = 13 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; + } + // Configuration for a read pool instance. message ReadPoolConfig { // Read capacity, i.e. number of nodes in a read pool instance. @@ -1328,9 +1393,23 @@ message Instance { // Configuration for query insights. QueryInsightsInstanceConfig query_insights_config = 21; + // Output only. Instance level Query Insights information, which is read-only + // and available in the output only. Contains the effective query insights + // settings for this instance, by merging customer's provided + // `QueryInsightsInstanceConfig` with the Query Insights defaults. + QueryInsightsInstanceInfo query_insights_info = 47 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Configuration for observability. ObservabilityInstanceConfig observability_config = 26; + // Output only. Instance level observability information, contains the + // effective values of observability settings for this instance, by merging + // customer's provided `ObservabilityInstanceConfig` with the + // Observability defaults. + ObservabilityInstanceInfo observability_instance_info = 44 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Read pool instance configuration. // This is required if the value of instanceType is READ_POOL. ReadPoolConfig read_pool_config = 14; diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java index bedb53d67b64..f13630ec44ce 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java @@ -63,6 +63,8 @@ private BuildOptions() { secretEnv_ = com.google.protobuf.LazyStringArrayList.emptyList(); volumes_ = java.util.Collections.emptyList(); defaultLogsBucketBehavior_ = 0; + workerRelease_ = ""; + resolvedWorkerRelease_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -1284,6 +1286,66 @@ public interface PoolOptionOrBuilder * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+     * Output only. OUTPUT_ONLY. The release or release channel used to run the
+     * Build. This is set to the same value as
+     * `PrivatePoolV1Config.WorkerConfig.worker_release` for the UI to easily
+     * access.
+     * 
+ * + * string worker_release = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The workerRelease. + */ + java.lang.String getWorkerRelease(); + + /** + * + * + *
+     * Output only. OUTPUT_ONLY. The release or release channel used to run the
+     * Build. This is set to the same value as
+     * `PrivatePoolV1Config.WorkerConfig.worker_release` for the UI to easily
+     * access.
+     * 
+ * + * string worker_release = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for workerRelease. + */ + com.google.protobuf.ByteString getWorkerReleaseBytes(); + + /** + * + * + *
+     * Output only. OUTPUT_ONLY. Worker release resolved from the release
+     * channel.
+     * 
+ * + * string resolved_worker_release = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resolvedWorkerRelease. + */ + java.lang.String getResolvedWorkerRelease(); + + /** + * + * + *
+     * Output only. OUTPUT_ONLY. Worker release resolved from the release
+     * channel.
+     * 
+ * + * string resolved_worker_release = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resolvedWorkerRelease. + */ + com.google.protobuf.ByteString getResolvedWorkerReleaseBytes(); } /** @@ -1322,6 +1384,8 @@ private PoolOption(com.google.protobuf.GeneratedMessage.Builder builder) { private PoolOption() { name_ = ""; + workerRelease_ = ""; + resolvedWorkerRelease_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -1400,6 +1464,120 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int WORKER_RELEASE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object workerRelease_ = ""; + + /** + * + * + *
+     * Output only. OUTPUT_ONLY. The release or release channel used to run the
+     * Build. This is set to the same value as
+     * `PrivatePoolV1Config.WorkerConfig.worker_release` for the UI to easily
+     * access.
+     * 
+ * + * string worker_release = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The workerRelease. + */ + @java.lang.Override + public java.lang.String getWorkerRelease() { + java.lang.Object ref = workerRelease_; + 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(); + workerRelease_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. OUTPUT_ONLY. The release or release channel used to run the
+     * Build. This is set to the same value as
+     * `PrivatePoolV1Config.WorkerConfig.worker_release` for the UI to easily
+     * access.
+     * 
+ * + * string worker_release = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for workerRelease. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkerReleaseBytes() { + java.lang.Object ref = workerRelease_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workerRelease_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOLVED_WORKER_RELEASE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object resolvedWorkerRelease_ = ""; + + /** + * + * + *
+     * Output only. OUTPUT_ONLY. Worker release resolved from the release
+     * channel.
+     * 
+ * + * string resolved_worker_release = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resolvedWorkerRelease. + */ + @java.lang.Override + public java.lang.String getResolvedWorkerRelease() { + java.lang.Object ref = resolvedWorkerRelease_; + 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(); + resolvedWorkerRelease_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. OUTPUT_ONLY. Worker release resolved from the release
+     * channel.
+     * 
+ * + * string resolved_worker_release = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resolvedWorkerRelease. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResolvedWorkerReleaseBytes() { + java.lang.Object ref = resolvedWorkerRelease_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resolvedWorkerRelease_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1417,6 +1595,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workerRelease_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, workerRelease_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resolvedWorkerRelease_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, resolvedWorkerRelease_); + } getUnknownFields().writeTo(output); } @@ -1429,6 +1613,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workerRelease_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, workerRelease_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resolvedWorkerRelease_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, resolvedWorkerRelease_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1446,6 +1636,8 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloudbuild.v1.BuildOptions.PoolOption) obj; if (!getName().equals(other.getName())) return false; + if (!getWorkerRelease().equals(other.getWorkerRelease())) return false; + if (!getResolvedWorkerRelease().equals(other.getResolvedWorkerRelease())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1459,6 +1651,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + WORKER_RELEASE_FIELD_NUMBER; + hash = (53 * hash) + getWorkerRelease().hashCode(); + hash = (37 * hash) + RESOLVED_WORKER_RELEASE_FIELD_NUMBER; + hash = (53 * hash) + getResolvedWorkerRelease().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1604,6 +1800,8 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + workerRelease_ = ""; + resolvedWorkerRelease_ = ""; return this; } @@ -1643,6 +1841,12 @@ private void buildPartial0(com.google.cloudbuild.v1.BuildOptions.PoolOption resu if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.workerRelease_ = workerRelease_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.resolvedWorkerRelease_ = resolvedWorkerRelease_; + } } @java.lang.Override @@ -1663,6 +1867,16 @@ public Builder mergeFrom(com.google.cloudbuild.v1.BuildOptions.PoolOption other) bitField0_ |= 0x00000001; onChanged(); } + if (!other.getWorkerRelease().isEmpty()) { + workerRelease_ = other.workerRelease_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getResolvedWorkerRelease().isEmpty()) { + resolvedWorkerRelease_ = other.resolvedWorkerRelease_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1695,6 +1909,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 34: + { + workerRelease_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: + { + resolvedWorkerRelease_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1845,6 +2071,253 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object workerRelease_ = ""; + + /** + * + * + *
+       * Output only. OUTPUT_ONLY. The release or release channel used to run the
+       * Build. This is set to the same value as
+       * `PrivatePoolV1Config.WorkerConfig.worker_release` for the UI to easily
+       * access.
+       * 
+ * + * string worker_release = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The workerRelease. + */ + public java.lang.String getWorkerRelease() { + java.lang.Object ref = workerRelease_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workerRelease_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. OUTPUT_ONLY. The release or release channel used to run the
+       * Build. This is set to the same value as
+       * `PrivatePoolV1Config.WorkerConfig.worker_release` for the UI to easily
+       * access.
+       * 
+ * + * string worker_release = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for workerRelease. + */ + public com.google.protobuf.ByteString getWorkerReleaseBytes() { + java.lang.Object ref = workerRelease_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workerRelease_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. OUTPUT_ONLY. The release or release channel used to run the
+       * Build. This is set to the same value as
+       * `PrivatePoolV1Config.WorkerConfig.worker_release` for the UI to easily
+       * access.
+       * 
+ * + * string worker_release = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The workerRelease to set. + * @return This builder for chaining. + */ + public Builder setWorkerRelease(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workerRelease_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. OUTPUT_ONLY. The release or release channel used to run the
+       * Build. This is set to the same value as
+       * `PrivatePoolV1Config.WorkerConfig.worker_release` for the UI to easily
+       * access.
+       * 
+ * + * string worker_release = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearWorkerRelease() { + workerRelease_ = getDefaultInstance().getWorkerRelease(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. OUTPUT_ONLY. The release or release channel used to run the
+       * Build. This is set to the same value as
+       * `PrivatePoolV1Config.WorkerConfig.worker_release` for the UI to easily
+       * access.
+       * 
+ * + * string worker_release = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for workerRelease to set. + * @return This builder for chaining. + */ + public Builder setWorkerReleaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workerRelease_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object resolvedWorkerRelease_ = ""; + + /** + * + * + *
+       * Output only. OUTPUT_ONLY. Worker release resolved from the release
+       * channel.
+       * 
+ * + * string resolved_worker_release = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resolvedWorkerRelease. + */ + public java.lang.String getResolvedWorkerRelease() { + java.lang.Object ref = resolvedWorkerRelease_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resolvedWorkerRelease_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. OUTPUT_ONLY. Worker release resolved from the release
+       * channel.
+       * 
+ * + * string resolved_worker_release = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for resolvedWorkerRelease. + */ + public com.google.protobuf.ByteString getResolvedWorkerReleaseBytes() { + java.lang.Object ref = resolvedWorkerRelease_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resolvedWorkerRelease_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. OUTPUT_ONLY. Worker release resolved from the release
+       * channel.
+       * 
+ * + * string resolved_worker_release = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The resolvedWorkerRelease to set. + * @return This builder for chaining. + */ + public Builder setResolvedWorkerRelease(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resolvedWorkerRelease_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. OUTPUT_ONLY. Worker release resolved from the release
+       * channel.
+       * 
+ * + * string resolved_worker_release = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearResolvedWorkerRelease() { + resolvedWorkerRelease_ = getDefaultInstance().getResolvedWorkerRelease(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. OUTPUT_ONLY. Worker release resolved from the release
+       * channel.
+       * 
+ * + * string resolved_worker_release = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for resolvedWorkerRelease to set. + * @return This builder for chaining. + */ + public Builder setResolvedWorkerReleaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resolvedWorkerRelease_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.devtools.cloudbuild.v1.BuildOptions.PoolOption) } @@ -2252,7 +2725,7 @@ public com.google.cloudbuild.v1.BuildOptions.LogStreamingOption getLogStreamingO * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2590 * @return The workerPool. */ @java.lang.Override @@ -2279,7 +2752,7 @@ public java.lang.String getWorkerPool() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2590 * @return The bytes for workerPool. */ @java.lang.Override @@ -2674,86 +3147,194 @@ public com.google.cloudbuild.v1.Volume getVolumes(int index) { *
    * Global list of volumes to mount for ALL build steps
    *
-   * Each volume is created as an empty volume prior to starting the build
-   * process. Upon completion of the build, volumes and their contents are
-   * discarded. Global volume names and paths cannot conflict with the volumes
-   * defined a build step.
+   * Each volume is created as an empty volume prior to starting the build
+   * process. Upon completion of the build, volumes and their contents are
+   * discarded. Global volume names and paths cannot conflict with the volumes
+   * defined a build step.
+   *
+   * Using a global volume in a build with only one step is not valid as
+   * it is indicative of a build request with an incorrect configuration.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.Volume volumes = 14; + */ + @java.lang.Override + public com.google.cloudbuild.v1.VolumeOrBuilder getVolumesOrBuilder(int index) { + return volumes_.get(index); + } + + public static final int DEFAULT_LOGS_BUCKET_BEHAVIOR_FIELD_NUMBER = 21; + private int defaultLogsBucketBehavior_ = 0; + + /** + * + * + *
+   * Optional. Option to specify how default logs buckets are setup.
+   * 
+ * + * + * .google.devtools.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior default_logs_bucket_behavior = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for defaultLogsBucketBehavior. + */ + @java.lang.Override + public int getDefaultLogsBucketBehaviorValue() { + return defaultLogsBucketBehavior_; + } + + /** + * + * + *
+   * Optional. Option to specify how default logs buckets are setup.
+   * 
+ * + * + * .google.devtools.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior default_logs_bucket_behavior = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultLogsBucketBehavior. + */ + @java.lang.Override + public com.google.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior + getDefaultLogsBucketBehavior() { + com.google.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior result = + com.google.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior.forNumber( + defaultLogsBucketBehavior_); + return result == null + ? com.google.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior.UNRECOGNIZED + : result; + } + + public static final int ENABLE_STRUCTURED_LOGGING_FIELD_NUMBER = 23; + private boolean enableStructuredLogging_ = false; + + /** + * + * + *
+   * Optional. Option to specify whether structured logging is enabled.
+   *
+   * If true, JSON-formatted logs are parsed as structured logs.
+   * 
+ * + * bool enable_structured_logging = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableStructuredLogging. + */ + @java.lang.Override + public boolean getEnableStructuredLogging() { + return enableStructuredLogging_; + } + + public static final int WORKER_RELEASE_FIELD_NUMBER = 25; + + @SuppressWarnings("serial") + private volatile java.lang.Object workerRelease_ = ""; + + /** + * * - * Using a global volume in a build with only one step is not valid as - * it is indicative of a build request with an incorrect configuration. + *
+   * Optional. Option to specify which release or release channel
+   * (rapid|regular|stable) to use to run this build.
    * 
* - * repeated .google.devtools.cloudbuild.v1.Volume volumes = 14; + * string worker_release = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The workerRelease. */ @java.lang.Override - public com.google.cloudbuild.v1.VolumeOrBuilder getVolumesOrBuilder(int index) { - return volumes_.get(index); + public java.lang.String getWorkerRelease() { + java.lang.Object ref = workerRelease_; + 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(); + workerRelease_ = s; + return s; + } } - public static final int DEFAULT_LOGS_BUCKET_BEHAVIOR_FIELD_NUMBER = 21; - private int defaultLogsBucketBehavior_ = 0; - /** * * *
-   * Optional. Option to specify how default logs buckets are setup.
+   * Optional. Option to specify which release or release channel
+   * (rapid|regular|stable) to use to run this build.
    * 
* - * - * .google.devtools.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior default_logs_bucket_behavior = 21 [(.google.api.field_behavior) = OPTIONAL]; - * + * string worker_release = 25 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The enum numeric value on the wire for defaultLogsBucketBehavior. + * @return The bytes for workerRelease. */ @java.lang.Override - public int getDefaultLogsBucketBehaviorValue() { - return defaultLogsBucketBehavior_; + public com.google.protobuf.ByteString getWorkerReleaseBytes() { + java.lang.Object ref = workerRelease_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workerRelease_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + public static final int RESOLVED_WORKER_RELEASE_FIELD_NUMBER = 26; + + @SuppressWarnings("serial") + private volatile java.lang.Object resolvedWorkerRelease_ = ""; + /** * * *
-   * Optional. Option to specify how default logs buckets are setup.
+   * Output only. Worker release resolved from the release channel.
    * 
* - * - * .google.devtools.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior default_logs_bucket_behavior = 21 [(.google.api.field_behavior) = OPTIONAL]; - * + * string resolved_worker_release = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The defaultLogsBucketBehavior. + * @return The resolvedWorkerRelease. */ @java.lang.Override - public com.google.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior - getDefaultLogsBucketBehavior() { - com.google.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior result = - com.google.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior.forNumber( - defaultLogsBucketBehavior_); - return result == null - ? com.google.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior.UNRECOGNIZED - : result; + public java.lang.String getResolvedWorkerRelease() { + java.lang.Object ref = resolvedWorkerRelease_; + 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(); + resolvedWorkerRelease_ = s; + return s; + } } - public static final int ENABLE_STRUCTURED_LOGGING_FIELD_NUMBER = 23; - private boolean enableStructuredLogging_ = false; - /** * * *
-   * Optional. Option to specify whether structured logging is enabled.
-   *
-   * If true, JSON-formatted logs are parsed as structured logs.
+   * Output only. Worker release resolved from the release channel.
    * 
* - * bool enable_structured_logging = 23 [(.google.api.field_behavior) = OPTIONAL]; + * string resolved_worker_release = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The enableStructuredLogging. + * @return The bytes for resolvedWorkerRelease. */ @java.lang.Override - public boolean getEnableStructuredLogging() { - return enableStructuredLogging_; + public com.google.protobuf.ByteString getResolvedWorkerReleaseBytes() { + java.lang.Object ref = resolvedWorkerRelease_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resolvedWorkerRelease_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -2830,6 +3411,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableStructuredLogging_ != false) { output.writeBool(23, enableStructuredLogging_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workerRelease_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 25, workerRelease_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resolvedWorkerRelease_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 26, resolvedWorkerRelease_); + } getUnknownFields().writeTo(output); } @@ -2915,6 +3502,12 @@ public int getSerializedSize() { if (enableStructuredLogging_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, enableStructuredLogging_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workerRelease_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(25, workerRelease_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resolvedWorkerRelease_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(26, resolvedWorkerRelease_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2949,6 +3542,8 @@ public boolean equals(final java.lang.Object obj) { if (!getVolumesList().equals(other.getVolumesList())) return false; if (defaultLogsBucketBehavior_ != other.defaultLogsBucketBehavior_) return false; if (getEnableStructuredLogging() != other.getEnableStructuredLogging()) return false; + if (!getWorkerRelease().equals(other.getWorkerRelease())) return false; + if (!getResolvedWorkerRelease().equals(other.getResolvedWorkerRelease())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3002,6 +3597,10 @@ public int hashCode() { hash = (53 * hash) + defaultLogsBucketBehavior_; hash = (37 * hash) + ENABLE_STRUCTURED_LOGGING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableStructuredLogging()); + hash = (37 * hash) + WORKER_RELEASE_FIELD_NUMBER; + hash = (53 * hash) + getWorkerRelease().hashCode(); + hash = (37 * hash) + RESOLVED_WORKER_RELEASE_FIELD_NUMBER; + hash = (53 * hash) + getResolvedWorkerRelease().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3177,6 +3776,8 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00002000); defaultLogsBucketBehavior_ = 0; enableStructuredLogging_ = false; + workerRelease_ = ""; + resolvedWorkerRelease_ = ""; return this; } @@ -3276,6 +3877,12 @@ private void buildPartial0(com.google.cloudbuild.v1.BuildOptions result) { if (((from_bitField0_ & 0x00008000) != 0)) { result.enableStructuredLogging_ = enableStructuredLogging_; } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.workerRelease_ = workerRelease_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.resolvedWorkerRelease_ = resolvedWorkerRelease_; + } result.bitField0_ |= to_bitField0_; } @@ -3387,6 +3994,16 @@ public Builder mergeFrom(com.google.cloudbuild.v1.BuildOptions other) { if (other.getEnableStructuredLogging() != false) { setEnableStructuredLogging(other.getEnableStructuredLogging()); } + if (!other.getWorkerRelease().isEmpty()) { + workerRelease_ = other.workerRelease_; + bitField0_ |= 0x00010000; + onChanged(); + } + if (!other.getResolvedWorkerRelease().isEmpty()) { + resolvedWorkerRelease_ = other.resolvedWorkerRelease_; + bitField0_ |= 0x00020000; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3529,6 +4146,18 @@ public Builder mergeFrom( bitField0_ |= 0x00008000; break; } // case 184 + case 202: + { + workerRelease_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 202 + case 210: + { + resolvedWorkerRelease_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00020000; + break; + } // case 210 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4441,7 +5070,7 @@ public Builder clearLogStreamingOption() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2590 * @return The workerPool. */ @java.lang.Deprecated @@ -4467,7 +5096,7 @@ public java.lang.String getWorkerPool() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2590 * @return The bytes for workerPool. */ @java.lang.Deprecated @@ -4493,7 +5122,7 @@ public com.google.protobuf.ByteString getWorkerPoolBytes() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2590 * @param value The workerPool to set. * @return This builder for chaining. */ @@ -4518,7 +5147,7 @@ public Builder setWorkerPool(java.lang.String value) { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2590 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4539,7 +5168,7 @@ public Builder clearWorkerPool() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2590 * @param value The bytes for workerPool to set. * @return This builder for chaining. */ @@ -6023,6 +6652,238 @@ public Builder clearEnableStructuredLogging() { return this; } + private java.lang.Object workerRelease_ = ""; + + /** + * + * + *
+     * Optional. Option to specify which release or release channel
+     * (rapid|regular|stable) to use to run this build.
+     * 
+ * + * string worker_release = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The workerRelease. + */ + public java.lang.String getWorkerRelease() { + java.lang.Object ref = workerRelease_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workerRelease_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Option to specify which release or release channel
+     * (rapid|regular|stable) to use to run this build.
+     * 
+ * + * string worker_release = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for workerRelease. + */ + public com.google.protobuf.ByteString getWorkerReleaseBytes() { + java.lang.Object ref = workerRelease_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workerRelease_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Option to specify which release or release channel
+     * (rapid|regular|stable) to use to run this build.
+     * 
+ * + * string worker_release = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The workerRelease to set. + * @return This builder for chaining. + */ + public Builder setWorkerRelease(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workerRelease_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Option to specify which release or release channel
+     * (rapid|regular|stable) to use to run this build.
+     * 
+ * + * string worker_release = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearWorkerRelease() { + workerRelease_ = getDefaultInstance().getWorkerRelease(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Option to specify which release or release channel
+     * (rapid|regular|stable) to use to run this build.
+     * 
+ * + * string worker_release = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for workerRelease to set. + * @return This builder for chaining. + */ + public Builder setWorkerReleaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workerRelease_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + private java.lang.Object resolvedWorkerRelease_ = ""; + + /** + * + * + *
+     * Output only. Worker release resolved from the release channel.
+     * 
+ * + * string resolved_worker_release = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resolvedWorkerRelease. + */ + public java.lang.String getResolvedWorkerRelease() { + java.lang.Object ref = resolvedWorkerRelease_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resolvedWorkerRelease_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Worker release resolved from the release channel.
+     * 
+ * + * string resolved_worker_release = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for resolvedWorkerRelease. + */ + public com.google.protobuf.ByteString getResolvedWorkerReleaseBytes() { + java.lang.Object ref = resolvedWorkerRelease_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resolvedWorkerRelease_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Worker release resolved from the release channel.
+     * 
+ * + * string resolved_worker_release = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The resolvedWorkerRelease to set. + * @return This builder for chaining. + */ + public Builder setResolvedWorkerRelease(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resolvedWorkerRelease_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Worker release resolved from the release channel.
+     * 
+ * + * string resolved_worker_release = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearResolvedWorkerRelease() { + resolvedWorkerRelease_ = getDefaultInstance().getResolvedWorkerRelease(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Worker release resolved from the release channel.
+     * 
+ * + * string resolved_worker_release = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for resolvedWorkerRelease to set. + * @return This builder for chaining. + */ + public Builder setResolvedWorkerReleaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resolvedWorkerRelease_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.devtools.cloudbuild.v1.BuildOptions) } diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java index 1a6152862333..52eee5c64e68 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java @@ -272,7 +272,7 @@ public interface BuildOptionsOrBuilder * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2590 * @return The workerPool. */ @java.lang.Deprecated @@ -288,7 +288,7 @@ public interface BuildOptionsOrBuilder * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2590 * @return The bytes for workerPool. */ @java.lang.Deprecated @@ -656,4 +656,58 @@ public interface BuildOptionsOrBuilder * @return The enableStructuredLogging. */ boolean getEnableStructuredLogging(); + + /** + * + * + *
+   * Optional. Option to specify which release or release channel
+   * (rapid|regular|stable) to use to run this build.
+   * 
+ * + * string worker_release = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The workerRelease. + */ + java.lang.String getWorkerRelease(); + + /** + * + * + *
+   * Optional. Option to specify which release or release channel
+   * (rapid|regular|stable) to use to run this build.
+   * 
+ * + * string worker_release = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for workerRelease. + */ + com.google.protobuf.ByteString getWorkerReleaseBytes(); + + /** + * + * + *
+   * Output only. Worker release resolved from the release channel.
+   * 
+ * + * string resolved_worker_release = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resolvedWorkerRelease. + */ + java.lang.String getResolvedWorkerRelease(); + + /** + * + * + *
+   * Output only. Worker release resolved from the release channel.
+   * 
+ * + * string resolved_worker_release = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resolvedWorkerRelease. + */ + com.google.protobuf.ByteString getResolvedWorkerReleaseBytes(); } diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java index ade37c0b4a34..4b3ded79bfb3 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java @@ -995,7 +995,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "trigger_id\030\002 \001(\tB\003\340A\002\022A\n" + "\007trigger\030\003 \001(\0132+.google.d" + "evtools.cloudbuild.v1.BuildTriggerB\003\340A\002\022/\n" - + "\013update_mask\030\005 \001(\0132\032.google.protobuf.FieldMask\"\276\014\n" + + "\013update_mask\030\005 \001(\0132\032.google.protobuf.FieldMask\"\305\r\n" + "\014BuildOptions\022L\n" + "\026source_provenance_hash\030\001" + " \003(\0162,.google.devtools.cloudbuild.v1.Hash.HashType\022Y\n" @@ -1021,10 +1021,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007volumes\030\016 \003(\0132%.google.devtools.cloudbuild.v1.Volume\022p\n" + "\034default_logs_bucket_behavior\030\025 \001(\0162E.google.devtools.cloudbuild.v1.Bu" + "ildOptions.DefaultLogsBucketBehaviorB\003\340A\001\022&\n" - + "\031enable_structured_logging\030\027 \001(\010B\003\340A\001\032E\n\n" + + "\031enable_structured_logging\030\027 \001(\010B\003\340A\001\022\033\n" + + "\016worker_release\030\031 \001(\tB\003\340A\001\022$\n" + + "\027resolved_worker_release\030\032 \001(\tB\003\340A\003\032\210\001\n\n" + "PoolOption\0227\n" + "\004name\030\001 \001(\tB)\372A&\n" - + "$cloudbuild.googleapis.com/WorkerPool\".\n" + + "$cloudbuild.googleapis.com/WorkerPool\022\033\n" + + "\016worker_release\030\004 \001(\tB\003\340A\003\022$\n" + + "\027resolved_worker_release\030\005 \001(\tB\003\340A\003\".\n" + "\014VerifyOption\022\020\n" + "\014NOT_VERIFIED\020\000\022\014\n" + "\010VERIFIED\020\001\"\222\001\n" @@ -1071,12 +1075,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016peered_network\030\t \001(\tB&\340A\001\372A \n" + "\036compute.googleapis.com/Network\022L\n" + "\007secrets\030\n" - + " \001(\01326.google.devtools.cloudbuild.v1.GitHubEnterpriseSecretsB\003\340A\001\022\031\n" + + " \001(\01326.google.d" + + "evtools.cloudbuild.v1.GitHubEnterpriseSecretsB\003\340A\001\022\031\n" + "\014display_name\030\013 \001(\tB\003\340A\001\022\023\n" + "\006ssl_ca\030\014 \001(\tB\003\340A\001:\265\001\352A\261\001\n" - + "0cloudbuild.googleapis.com/GithubEnterpriseConfig\0223projects/{project}" - + "/githubEnterpriseConfigs/{config}\022Hproje" - + "cts/{project}/locations/{location}/githubEnterpriseConfigs/{config}\"\355\002\n" + + "0cloudbuild.googleapis.com/GithubEnterpriseConfig\0223pro" + + "jects/{project}/githubEnterpriseConfigs/{config}\022Hprojects/{project}/locations/{" + + "location}/githubEnterpriseConfigs/{config}\"\355\002\n" + "\027GitHubEnterpriseSecrets\022Q\n" + "\030private_key_version_name\030\005 \001(\tB/\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\022T\n" @@ -1090,15 +1095,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022\020\n" + "\003uid\030\003 \001(\tB\003\340A\003\022O\n" - + "\013annotations\030\004" - + " \003(\0132:.google.devtools.cloudbuild.v1.WorkerPool.AnnotationsEntry\0224\n" + + "\013annotations\030\004 \003(\0132:.google.devto" + + "ols.cloudbuild.v1.WorkerPool.AnnotationsEntry\0224\n" + "\013create_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013delete_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022C\n" + "\005state\030\010" + " \001(\0162/.google.devtools.cloudbuild.v1.WorkerPool.StateB\003\340A\003\022T\n" - + "\026private_pool_v1_config\030\014" - + " \001(\01322.google.devtools.cloudbuild.v1.PrivatePoolV1ConfigH\000\022\021\n" + + "\026private_pool_v1_config\030\014 \001(\01322.google.de" + + "vtools.cloudbuild.v1.PrivatePoolV1ConfigH\000\022\021\n" + "\004etag\030\013 \001(\tB\003\340A\003\0322\n" + "\020AnnotationsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -1110,28 +1115,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010DELETING\020\003\022\013\n" + "\007DELETED\020\004\022\014\n" + "\010UPDATING\020\005:\211\001\352A\205\001\n" - + "$cloudbuild.googleapis.com/WorkerPool\022Aprojects/{project}/locations/{locat" - + "ion}/workerPools/{worker_pool}*\013workerPools2\n" + + "$cloudbuild.googleapis.com/WorkerPool\022Aprojects/{project}/l" + + "ocations/{location}/workerPools/{worker_pool}*\013workerPools2\n" + "workerPoolR\001\001B\010\n" - + "\006config\"\272\007\n" + + "\006config\"\327\007\n" + "\023PrivatePoolV1Config\022V\n\r" - + "worker_config\030\001 \001(\0132?.go" - + "ogle.devtools.cloudbuild.v1.PrivatePoolV1Config.WorkerConfig\022X\n" - + "\016network_config\030\002" - + " \001(\0132@.google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig\022n\n" - + "\027private_service_connect\030\005 \001(\0132H.google.devtool" - + "s.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnectB\003\340A\005\032\220\001\n" + + "worker_config\030\001" + + " \001(\0132?.google.devtools.cloudbuild.v1.PrivatePoolV1Config.WorkerConfig\022X\n" + + "\016network_config\030\002 \001(\0132@.google.devtools.cl" + + "oudbuild.v1.PrivatePoolV1Config.NetworkConfig\022n\n" + + "\027private_service_connect\030\005 \001(\0132H" + + ".google.devtools.cloudbuild.v1.PrivatePo" + + "olV1Config.PrivateServiceConnectB\003\340A\005\032\255\001\n" + "\014WorkerConfig\022\031\n" + "\014machine_type\030\001 \001(\tB\003\340A\001\022\024\n" + "\014disk_size_gb\030\002 \001(\003\022.\n" + "\034enable_nested_virtualization\030\003" - + " \001(\010B\003\340A\001H\000\210\001\001B\037\n" + + " \001(\010B\003\340A\001H\000\210\001\001\022\033\n" + + "\016worker_release\030\004 \001(\tB\003\340A\001B\037\n" + "\035_enable_nested_virtualization\032\266\002\n\r" + "NetworkConfig\022A\n" + "\016peered_network\030\001 \001(\tB)\340A\005\340A\002\372A \n" + "\036compute.googleapis.com/Network\022d\n\r" - + "egress_option\030\002 \001(\0162M." - + "google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption\022$\n" + + "egress_option\030\002 \001(\0162M.google.devtools.cloudbuild.v1.Privat" + + "ePoolV1Config.NetworkConfig.EgressOption\022$\n" + "\027peered_network_ip_range\030\003 \001(\tB\003\340A\005\"V\n" + "\014EgressOption\022\035\n" + "\031EGRESS_OPTION_UNSPECIFIED\020\000\022\024\n" @@ -1159,8 +1166,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "allow_missing\030\003 \001(\010\022\025\n\r" + "validate_only\030\004 \001(\010\"\253\001\n" + "\027UpdateWorkerPoolRequest\022C\n" - + "\013worker_pool\030\001 \001" - + "(\0132).google.devtools.cloudbuild.v1.WorkerPoolB\003\340A\002\0224\n" + + "\013worker_pool\030\001" + + " \001(\0132).google.devtools.cloudbuild.v1.WorkerPoolB\003\340A\002\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022\025\n\r" + "validate_only\030\004 \001(\010\"z\n" @@ -1189,147 +1196,147 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013create_time\030\002 \001(\0132\032.google.protobuf.Timestamp\0221\n\r" + "complete_time\030\003 \001(\0132\032.google.protobuf.Timestamp2\371-\n\n" + "CloudBuild\022\267\002\n" - + "\013CreateBuild\0221.google.devtools.cloudbuild.v1.Cr" - + "eateBuildRequest\032\035.google.longrunning.Operation\"\325\001\312A\037\n" - + "\005Build\022\026BuildOperationMetadata\332A\020project_id,build\332A\006parent\202\323\344\223\002^\"" - + " /v1/projects/{project_id}/builds:\005buildZ" - + "3\"*/v1/{parent=projects/*/locations/*}/builds:\005build\212\323\344\223\002-\022+\n" + + "\013CreateBuild\0221.google.devtools.cloudbuild.v" + + "1.CreateBuildRequest\032\035.google.longrunning.Operation\"\325\001\312A\037\n" + + "\005Build\022\026BuildOperation" + + "Metadata\332A\020project_id,build\332A\006parent\202\323\344\223\002^\"" + + " /v1/projects/{project_id}/builds:\005bu" + + "ildZ3\"*/v1/{parent=projects/*/locations/*}/builds:\005build\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\217\002\n" - + "\010GetBuild\022..google.devtools.cloudbuild.v1.GetBuildReq" - + "uest\032$.google.devtools.cloudbuild.v1.Build\"\254\001\332A\r" - + "project_id,id\332A\004name\202\323\344\223\002U\022%/v1/" - + "projects/{project_id}/builds/{id}Z,\022*/v1" - + "/{name=projects/*/locations/*/builds/*}\212\323\344\223\0024\0222\n" + + "\010GetBuild\022..google.devtools.cloudbuild.v1.GetBuil" + + "dRequest\032$.google.devtools.cloudbuild.v1.Build\"\254\001\332A\r" + + "project_id,id\332A\004name\202\323\344\223\002U\022%" + + "/v1/projects/{project_id}/builds/{id}Z,\022" + + "*/v1/{name=projects/*/locations/*/builds/*}\212\323\344\223\0024\0222\n" + "\004name\022*projects/*/locations/{location=*}/builds/*\022\221\002\n\n" - + "ListBuilds\0220.google.devtools.cloudbuild.v1.ListBuildsReque" - + "st\0321.google.devtools.cloudbuild.v1.ListB" - + "uildsResponse\"\235\001\332A\021project_id,filter\202\323\344\223\002P\022" - + " /v1/projects/{project_id}/buildsZ,\022*" - + "/v1/{parent=projects/*/locations/*}/builds\212\323\344\223\002-\022+\n" + + "ListBuilds\0220.google.devtools.cloudbuild.v1.ListBuildsR" + + "equest\0321.google.devtools.cloudbuild.v1.L" + + "istBuildsResponse\"\235\001\332A\021project_id,filter\202\323\344\223\002P\022" + + " /v1/projects/{project_id}/builds" + + "Z,\022*/v1/{parent=projects/*/locations/*}/builds\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\251\002\n" - + "\013CancelBuild\0221.google.devtools.cloudbuild.v1.CancelBuildRequest" - + "\032$.google.devtools.cloudbuild.v1.Build\"\300\001\332A\r" - + "project_id,id\332A\004name\202\323\344\223\002i\",/v1/proj" - + "ects/{project_id}/builds/{id}:cancel:\001*Z" - + "6\"1/v1/{name=projects/*/locations/*/builds/*}:cancel:\001*\212\323\344\223\0024\0222\n" + + "\013CancelBuild\0221.google.devtools.cloudbuild.v1.CancelBuildReq" + + "uest\032$.google.devtools.cloudbuild.v1.Build\"\300\001\332A\r" + + "project_id,id\332A\004name\202\323\344\223\002i\",/v1/" + + "projects/{project_id}/builds/{id}:cancel" + + ":\001*Z6\"1/v1/{name=projects/*/locations/*/builds/*}:cancel:\001*\212\323\344\223\0024\0222\n" + "\004name\022*projects/*/locations/{location=*}/builds/*\022\300\002\n\n" - + "RetryBuild\0220.google.devtools.cloudbuild.v1" - + ".RetryBuildRequest\032\035.google.longrunning.Operation\"\340\001\312A\037\n" + + "RetryBuild\0220.google.devtools.cloudbuil" + + "d.v1.RetryBuildRequest\032\035.google.longrunning.Operation\"\340\001\312A\037\n" + "\005Build\022\026BuildOperationMetadata\332A\r" - + "project_id,id\332A\004name\202\323\344\223\002g\"+/v1" - + "/projects/{project_id}/builds/{id}:retry" - + ":\001*Z5\"0/v1/{name=projects/*/locations/*/builds/*}:retry:\001*\212\323\344\223\0024\0222\n" + + "project_id,id\332A\004name\202\323\344\223\002g\"" + + "+/v1/projects/{project_id}/builds/{id}:r" + + "etry:\001*Z5\"0/v1/{name=projects/*/locations/*/builds/*}:retry:\001*\212\323\344\223\0024\0222\n" + "\004name\022*projects/*/locations/{location=*}/builds/*\022\301\002\n" - + "\014ApproveBuild\0222.google.devtools.cloudbui" - + "ld.v1.ApproveBuildRequest\032\035.google.longrunning.Operation\"\335\001\312A\037\n" - + "\005Build\022\026BuildOperationMetadata\332A\024name,approval_result\202\323\344\223" - + "\002d\"&/v1/{name=projects/*/builds/*}:appro" - + "ve:\001*Z7\"2/v1/{name=projects/*/locations/*/builds/*}:approve:\001*\212\323\344\223\0024\0222\n" + + "\014ApproveBuild\0222.google.devtools.clou" + + "dbuild.v1.ApproveBuildRequest\032\035.google.longrunning.Operation\"\335\001\312A\037\n" + + "\005Build\022\026BuildOperationMetadata\332A\024name,approval_result" + + "\202\323\344\223\002d\"&/v1/{name=projects/*/builds/*}:a" + + "pprove:\001*Z7\"2/v1/{name=projects/*/locations/*/builds/*}:approve:\001*\212\323\344\223\0024\0222\n" + "\004name\022*projects/*/locations/{location=*}/builds/*\022\273\002\n" - + "\022CreateBuildTrigger\0228.google.devtools.cloudbuild.v1.CreateBuildTriggerReques" - + "t\032+.google.devtools.cloudbuild.v1.BuildT" - + "rigger\"\275\001\332A\022project_id,trigger\332A\006parent\202" - + "\323\344\223\002f\"\"/v1/projects/{project_id}/trigger" - + "s:\007triggerZ7\",/v1/{parent=projects/*/locations/*}/triggers:\007trigger\212\323\344\223\002-\022+\n" + + "\022CreateBuildTrigger\0228.google.devtools.cloudbuild.v1.CreateBuildTriggerRe" + + "quest\032+.google.devtools.cloudbuild.v1.Bu" + + "ildTrigger\"\275\001\332A\022project_id,trigger\332A\006par" + + "ent\202\323\344\223\002f\"\"/v1/projects/{project_id}/tri" + + "ggers:\007triggerZ7\",/v1/{parent=projects/*/locations/*}/triggers:\007trigger\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\272\002\n" - + "\017GetBuildTrigger\0225.google.devtools.clo" - + "udbuild.v1.GetBuildTriggerRequest\032+.goog" - + "le.devtools.cloudbuild.v1.BuildTrigger\"\302" - + "\001\332A\025project_id,trigger_id\332A\004name\202\323\344\223\002a\022/" - + "/v1/projects/{project_id}/triggers/{trig" - + "ger_id}Z.\022,/v1/{name=projects/*/locations/*/triggers/*}\212\323\344\223\0026\0224\n" + + "\017GetBuildTrigger\0225.google.devtools.cloudbuild.v1.GetBuildTriggerRequest\032+." + + "google.devtools.cloudbuild.v1.BuildTrigg" + + "er\"\302\001\332A\025project_id,trigger_id\332A\004name\202\323\344\223" + + "\002a\022//v1/projects/{project_id}/triggers/{" + + "trigger_id}Z.\022,/v1/{name=projects/*/locations/*/triggers/*}\212\323\344\223\0026\0224\n" + "\004name\022,projects/*/locations/{location=*}/triggers/*\022\243\002\n" - + "\021ListBuildTriggers\0227.google.devtools.clou" - + "dbuild.v1.ListBuildTriggersRequest\0328.goo" - + "gle.devtools.cloudbuild.v1.ListBuildTriggersResponse\"\232\001\332A\n" - + "project_id\202\323\344\223\002T\022\"/v1/projects/{project_id}/triggersZ.\022,/v1/{p" - + "arent=projects/*/locations/*}/triggers\212\323\344\223\002-\022+\n" + + "\021ListBuildTriggers\0227.google.devtools.cloudbuild.v1.ListBuildTriggersRequest\0328" + + ".google.devtools.cloudbuild.v1.ListBuildTriggersResponse\"\232\001\332A\n" + + "project_id\202\323\344\223\002T\022\"/v1/projects/{project_id}/triggersZ.\022,/v" + + "1/{parent=projects/*/locations/*}/triggers\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\253\002\n" - + "\022DeleteBuildTrigger\0228.google.devtools.cloudbuild.v1.DeleteBuildTrig" - + "gerRequest\032\026.google.protobuf.Empty\"\302\001\332A\025" - + "project_id,trigger_id\332A\004name\202\323\344\223\002a*//v1/" - + "projects/{project_id}/triggers/{trigger_" - + "id}Z.*,/v1/{name=projects/*/locations/*/triggers/*}\212\323\344\223\0026\0224\n" + + "\022DeleteBuildTrigger\0228.google.devtools.cloudbuild.v1.DeleteBuild" + + "TriggerRequest\032\026.google.protobuf.Empty\"\302" + + "\001\332A\025project_id,trigger_id\332A\004name\202\323\344\223\002a*/" + + "/v1/projects/{project_id}/triggers/{trig" + + "ger_id}Z.*,/v1/{name=projects/*/locations/*/triggers/*}\212\323\344\223\0026\0224\n" + "\004name\022,projects/*/locations/{location=*}/triggers/*\022\366\002\n" - + "\022UpdateBuildTrigger\0228.google.devtools.cloudbu" - + "ild.v1.UpdateBuildTriggerRequest\032+.googl" - + "e.devtools.cloudbuild.v1.BuildTrigger\"\370\001" - + "\332A\035project_id,trigger_id,trigger\202\323\344\223\002\204\0012" - + "//v1/projects/{project_id}/triggers/{trigger_id}:\007triggerZH2=/v1/{trigger.resour" - + "ce_name=projects/*/locations/*/triggers/*}:\007trigger\212\323\344\223\002G\022E\n" - + "\025trigger.resource_na" - + "me\022,projects/*/locations/{location=*}/triggers/*\022\341\002\n" - + "\017RunBuildTrigger\0225.google.devtools.cloudbuild.v1.RunBuildTriggerRequ" - + "est\032\035.google.longrunning.Operation\"\367\001\312A\037\n" - + "\005Build\022\026BuildOperationMetadata\332A\034projec" - + "t_id,trigger_id,source\202\323\344\223\002t\"3/v1/projec" - + "ts/{project_id}/triggers/{trigger_id}:ru" - + "n:\006sourceZ5\"0/v1/{name=projects/*/locations/*/triggers/*}:run:\001*\212\323\344\223\0026\0224\n" + + "\022UpdateBuildTrigger\0228.google.devtools.clo" + + "udbuild.v1.UpdateBuildTriggerRequest\032+.google.devtools.cloudbuild.v1.BuildTrigge" + + "r\"\370\001\332A\035project_id,trigger_id,trigger\202\323\344\223" + + "\002\204\0012//v1/projects/{project_id}/triggers/" + + "{trigger_id}:\007triggerZH2=/v1/{trigger.re" + + "source_name=projects/*/locations/*/triggers/*}:\007trigger\212\323\344\223\002G\022E\n" + + "\025trigger.resourc" + + "e_name\022,projects/*/locations/{location=*}/triggers/*\022\341\002\n" + + "\017RunBuildTrigger\0225.google.devtools.cloudbuild.v1.RunBuildTrigger" + + "Request\032\035.google.longrunning.Operation\"\367\001\312A\037\n" + + "\005Build\022\026BuildOperationMetadata\332A\034pr" + + "oject_id,trigger_id,source\202\323\344\223\002t\"3/v1/pr" + + "ojects/{project_id}/triggers/{trigger_id" + + "}:run:\006sourceZ5\"0/v1/{name=projects/*/locations/*/triggers/*}:run:\001*\212\323\344\223\0026\0224\n" + "\004name\022,projects/*/locations/{location=*}/triggers/*\022\225\002\n" - + "\025ReceiveTriggerWebhook\022;.google.devtools.cloudbuild.v1.ReceiveTriggerWeb" - + "hookRequest\032<.google.devtools.cloudbuild" - + ".v1.ReceiveTriggerWebhookResponse\"\200\001\202\323\344\223" - + "\002z\"4/v1/projects/{project_id}/triggers/{" - + "trigger}:webhook:\004bodyZ<\"4/v1/{name=proj" - + "ects/*/locations/*/triggers/*}:webhook:\004body\022\271\002\n" - + "\020CreateWorkerPool\0226.google.devto" - + "ols.cloudbuild.v1.CreateWorkerPoolRequest\032\035.google.longrunning.Operation\"\315\001\312A/\n\n" - + "WorkerPool\022!CreateWorkerPoolOperationMetadata\332A!parent,worker_pool,worker_pool_i" - + "d\202\323\344\223\002>\"//v1/{parent=projects/*/locations/*}/workerPools:\013worker_pool\212\323\344\223\002-\022+\n" + + "\025ReceiveTriggerWebhook\022;.google.devtools.cloudbuild.v1.ReceiveTrigge" + + "rWebhookRequest\032<.google.devtools.cloudb" + + "uild.v1.ReceiveTriggerWebhookResponse\"\200\001" + + "\202\323\344\223\002z\"4/v1/projects/{project_id}/trigge" + + "rs/{trigger}:webhook:\004bodyZ<\"4/v1/{name=" + + "projects/*/locations/*/triggers/*}:webhook:\004body\022\271\002\n" + + "\020CreateWorkerPool\0226.google.devtools.cloudbuild.v1.CreateWorkerPoolRe" + + "quest\032\035.google.longrunning.Operation\"\315\001\312A/\n\n" + + "WorkerPool\022!CreateWorkerPoolOperationMetadata\332A!parent,worker_pool,worker_po" + + "ol_id\202\323\344\223\002>\"//v1/{parent=projects/*/loca" + + "tions/*}/workerPools:\013worker_pool\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\356\001\n\r" - + "GetWorkerPool\0223.google.devtools.cloudbuild.v1.GetWorkerPoolRequest\032).google" - + ".devtools.cloudbuild.v1.WorkerPool\"}\332A\004n" - + "ame\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/workerPools/*}\212\323\344\223\0029\0227\n" + + "GetWorkerPool\0223.google.devtools.cloudbuild.v1.GetWorkerPoolRequest\032).go" + + "ogle.devtools.cloudbuild.v1.WorkerPool\"}" + + "\332A\004name\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/workerPools/*}\212\323\344\223\0029\0227\n" + "\004name\022/projects/*/locations/{location=*}/workerPools/*\022\246\002\n" - + "\020DeleteWorkerPool\0226.google.devtools" - + ".cloudbuild.v1.DeleteWorkerPoolRequest\032\035.google.longrunning.Operation\"\272\001\312A:\n" - + "\025google.protobuf.Empty\022!DeleteWorkerPoolOper" - + "ationMetadata\332A\004name\202\323\344\223\0021*//v1/{name=pr" - + "ojects/*/locations/*/workerPools/*}\212\323\344\223\0029\0227\n" + + "\020DeleteWorkerPool\0226.google.devt" + + "ools.cloudbuild.v1.DeleteWorkerPoolRequest\032\035.google.longrunning.Operation\"\272\001\312A:\n" + + "\025google.protobuf.Empty\022!DeleteWorkerPool" + + "OperationMetadata\332A\004name\202\323\344\223\0021*//v1/{nam" + + "e=projects/*/locations/*/workerPools/*}\212\323\344\223\0029\0227\n" + "\004name\022/projects/*/locations/{location=*}/workerPools/*\022\323\002\n" - + "\020UpdateWorkerPool\0226.google.devtools.cloudbuild.v1.UpdateWo" - + "rkerPoolRequest\032\035.google.longrunning.Operation\"\347\001\312A/\n\n" - + "WorkerPool\022!UpdateWorkerPoolOperationMetadata\332A\027worker_pool,update" - + "_mask\202\323\344\223\002J2;/v1/{worker_pool.name=proje" - + "cts/*/locations/*/workerPools/*}:\013worker_pool\212\323\344\223\002E\022C\n" + + "\020UpdateWorkerPool\0226.google.devtools.cloudbuild.v1.Upda" + + "teWorkerPoolRequest\032\035.google.longrunning.Operation\"\347\001\312A/\n\n" + + "WorkerPool\022!UpdateWorkerPoolOperationMetadata\332A\027worker_pool,up" + + "date_mask\202\323\344\223\002J2;/v1/{worker_pool.name=p" + + "rojects/*/locations/*/workerPools/*}:\013worker_pool\212\323\344\223\002E\022C\n" + "\020worker_pool.name\022/projects/*/locations/{location=*}/workerPools/*\022\365\001\n" - + "\017ListWorkerPools\0225.google.devtools.cloudbuild.v1.ListWorkerPoolsRequest\0326.go" - + "ogle.devtools.cloudbuild.v1.ListWorkerPo" - + "olsResponse\"s\332A\006parent\202\323\344\223\0021\022//v1/{paren" - + "t=projects/*/locations/*}/workerPools\212\323\344\223\002-\022+\n" + + "\017ListWorkerPools\0225.google.devtools.cloudbuild.v1.ListWorkerPoolsRequest\032" + + "6.google.devtools.cloudbuild.v1.ListWork" + + "erPoolsResponse\"s\332A\006parent\202\323\344\223\0021\022//v1/{p" + + "arent=projects/*/locations/*}/workerPools\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\240\002\n" - + "\030GetDefaultServiceAccount\022>.google.devtools.cloudbuild.v1.GetDefault" - + "ServiceAccountRequest\0324.google.devtools." - + "cloudbuild.v1.DefaultServiceAccount\"\215\001\332A" - + "\004name\202\323\344\223\0029\0227/v1/{name=projects/*/locations/*/defaultServiceAccount}\212\323\344\223\002A\022?\n" - + "\004name\0227projects/*/locations/{location=*}/de" - + "faultServiceAccount\032M\312A\031cloudbuild.googl" - + "eapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\256\n\n" - + "\030com.google.cloudbuild.v1P\001ZAcloud.google.com/go/cloudbuil" - + "d/apiv1/v2/cloudbuildpb;cloudbuildpb\242\002\003G" - + "CB\252\002\032Google.Cloud.CloudBuild.V1\312\002\025Google" - + "\\Cloud\\Build\\V1\352\002\030Google::Cloud::Build::V1\352AN\n" - + "\036compute.googleapis.com/Network\022,p" - + "rojects/{project}/global/networks/{network}\352AY\n" - + "!iam.googleapis.com/ServiceAccoun" - + "t\0224projects/{project}/serviceAccounts/{service_account}\352AJ\n" + + "\030GetDefaultServiceAccount\022>.google.devtools.cloudbuild.v1.GetDef" + + "aultServiceAccountRequest\0324.google.devtools.cloudbuild.v1.DefaultServiceAccount\"" + + "\215\001\332A\004name\202\323\344\223\0029\0227/v1/{name=projects/*/lo" + + "cations/*/defaultServiceAccount}\212\323\344\223\002A\022?\n" + + "\004name\0227projects/*/locations/{location=*" + + "}/defaultServiceAccount\032M\312A\031cloudbuild.g" + + "oogleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\256\n\n" + + "\030com.google.cloudbuild.v1P\001ZAcloud.google.com/go/cloud" + + "build/apiv1/v2/cloudbuildpb;cloudbuildpb" + + "\242\002\003GCB\252\002\032Google.Cloud.CloudBuild.V1\312\002\025Go" + + "ogle\\Cloud\\Build\\V1\352\002\030Google::Cloud::Build::V1\352AN\n" + + "\036compute.googleapis.com/Networ" + + "k\022,projects/{project}/global/networks/{network}\352AY\n" + + "!iam.googleapis.com/ServiceAc" + + "count\0224projects/{project}/serviceAccounts/{service_account}\352AJ\n" + "#secretmanager.googleapis.com/Secret\022#projects/{project}/secrets/{secret}\352Ad\n" - + "*secretmanager.googleapi" - + "s.com/SecretVersion\0226projects/{project}/secrets/{secret}/versions/{version}\352Af\n" - + " gkehub.googleapis.com/Membership\022Bprojec" - + "ts/{project}/locations/{location}/memberships/{cluster_name}\352Ap\n" - + "!cloudkms.googleapis.com/CryptoKey\022Kprojects/{project}/l" - + "ocations/{location}/keyRings/{keyring}/cryptoKeys/{key}\352AU\n" - + "\"pubsub.googleapis.co" - + "m/Subscription\022/projects/{project}/subscriptions/{subscription}\352A@\n" + + "*secretmanager.googleapis.com/SecretVersion\0226projects/{proje" + + "ct}/secrets/{secret}/versions/{version}\352Af\n" + + " gkehub.googleapis.com/Membership\022Bpr" + + "ojects/{project}/locations/{location}/memberships/{cluster_name}\352Ap\n" + + "!cloudkms.googleapis.com/CryptoKey\022Kprojects/{projec" + + "t}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}\352AU\n" + + "\"pubsub.googleapi" + + "s.com/Subscription\022/projects/{project}/subscriptions/{subscription}\352A@\n" + "\033pubsub.googleapis.com/Topic\022!projects/{project}/topics/{topic}\352Av\n" - + "(compute.googleapis.com/NetworkAttachment\022Jprojects/{project}/regi" - + "ons/{region}/networkAttachments/{networkattachment}\352A\236\001\n" - + "1developerconnect.googleapis.com/GitRepositoryLink\022iprojects/{pr" - + "oject}/locations/{location}/connections/" - + "{connection}/gitRepositoryLinks/{git_repository_link}\352A\202\001\n" - + "$cloudbuild.googleapis.com/Repository\022Zprojects/{project}/loca" - + "tions/{location}/connections/{connection}/repositories/{repository}b\006proto3" + + "(compute.googleapis.com/NetworkAttachment\022Jprojects/{project}/" + + "regions/{region}/networkAttachments/{networkattachment}\352A\236\001\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022iprojects" + + "/{project}/locations/{location}/connecti" + + "ons/{connection}/gitRepositoryLinks/{git_repository_link}\352A\202\001\n" + + "$cloudbuild.googleapis.com/Repository\022Zprojects/{project}/" + + "locations/{location}/connections/{connection}/repositories/{repository}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -2067,6 +2074,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Volumes", "DefaultLogsBucketBehavior", "EnableStructuredLogging", + "WorkerRelease", + "ResolvedWorkerRelease", }); internal_static_google_devtools_cloudbuild_v1_BuildOptions_PoolOption_descriptor = internal_static_google_devtools_cloudbuild_v1_BuildOptions_descriptor.getNestedType(0); @@ -2074,7 +2083,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_BuildOptions_PoolOption_descriptor, new java.lang.String[] { - "Name", + "Name", "WorkerRelease", "ResolvedWorkerRelease", }); internal_static_google_devtools_cloudbuild_v1_ReceiveTriggerWebhookRequest_descriptor = getDescriptor().getMessageType(57); @@ -2158,7 +2167,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_WorkerConfig_descriptor, new java.lang.String[] { - "MachineType", "DiskSizeGb", "EnableNestedVirtualization", + "MachineType", "DiskSizeGb", "EnableNestedVirtualization", "WorkerRelease", }); internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_NetworkConfig_descriptor = internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_descriptor.getNestedType( diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PrivatePoolV1Config.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PrivatePoolV1Config.java index 4de29a248149..165c0e870e07 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PrivatePoolV1Config.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PrivatePoolV1Config.java @@ -153,6 +153,34 @@ public interface WorkerConfigOrBuilder * @return The enableNestedVirtualization. */ boolean getEnableNestedVirtualization(); + + /** + * + * + *
+     * Optional. Option to specify which release or release channel
+     * (rapid|regular|stable) to use to run this build.
+     * 
+ * + * string worker_release = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The workerRelease. + */ + java.lang.String getWorkerRelease(); + + /** + * + * + *
+     * Optional. Option to specify which release or release channel
+     * (rapid|regular|stable) to use to run this build.
+     * 
+ * + * string worker_release = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for workerRelease. + */ + com.google.protobuf.ByteString getWorkerReleaseBytes(); } /** @@ -188,6 +216,7 @@ private WorkerConfig(com.google.protobuf.GeneratedMessage.Builder builder) { private WorkerConfig() { machineType_ = ""; + workerRelease_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -329,6 +358,61 @@ public boolean getEnableNestedVirtualization() { return enableNestedVirtualization_; } + public static final int WORKER_RELEASE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object workerRelease_ = ""; + + /** + * + * + *
+     * Optional. Option to specify which release or release channel
+     * (rapid|regular|stable) to use to run this build.
+     * 
+ * + * string worker_release = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The workerRelease. + */ + @java.lang.Override + public java.lang.String getWorkerRelease() { + java.lang.Object ref = workerRelease_; + 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(); + workerRelease_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Option to specify which release or release channel
+     * (rapid|regular|stable) to use to run this build.
+     * 
+ * + * string worker_release = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for workerRelease. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkerReleaseBytes() { + java.lang.Object ref = workerRelease_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workerRelease_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -352,6 +436,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(3, enableNestedVirtualization_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workerRelease_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, workerRelease_); + } getUnknownFields().writeTo(output); } @@ -371,6 +458,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableNestedVirtualization_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workerRelease_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, workerRelease_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -393,6 +483,7 @@ public boolean equals(final java.lang.Object obj) { if (hasEnableNestedVirtualization()) { if (getEnableNestedVirtualization() != other.getEnableNestedVirtualization()) return false; } + if (!getWorkerRelease().equals(other.getWorkerRelease())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -413,6 +504,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableNestedVirtualization()); } + hash = (37 * hash) + WORKER_RELEASE_FIELD_NUMBER; + hash = (53 * hash) + getWorkerRelease().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -558,6 +651,7 @@ public Builder clear() { machineType_ = ""; diskSizeGb_ = 0L; enableNestedVirtualization_ = false; + workerRelease_ = ""; return this; } @@ -605,6 +699,9 @@ private void buildPartial0(com.google.cloudbuild.v1.PrivatePoolV1Config.WorkerCo result.enableNestedVirtualization_ = enableNestedVirtualization_; to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.workerRelease_ = workerRelease_; + } result.bitField0_ |= to_bitField0_; } @@ -632,6 +729,11 @@ public Builder mergeFrom(com.google.cloudbuild.v1.PrivatePoolV1Config.WorkerConf if (other.hasEnableNestedVirtualization()) { setEnableNestedVirtualization(other.getEnableNestedVirtualization()); } + if (!other.getWorkerRelease().isEmpty()) { + workerRelease_ = other.workerRelease_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -676,6 +778,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 24 + case 34: + { + workerRelease_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -973,6 +1081,122 @@ public Builder clearEnableNestedVirtualization() { return this; } + private java.lang.Object workerRelease_ = ""; + + /** + * + * + *
+       * Optional. Option to specify which release or release channel
+       * (rapid|regular|stable) to use to run this build.
+       * 
+ * + * string worker_release = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The workerRelease. + */ + public java.lang.String getWorkerRelease() { + java.lang.Object ref = workerRelease_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workerRelease_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Option to specify which release or release channel
+       * (rapid|regular|stable) to use to run this build.
+       * 
+ * + * string worker_release = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for workerRelease. + */ + public com.google.protobuf.ByteString getWorkerReleaseBytes() { + java.lang.Object ref = workerRelease_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workerRelease_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Option to specify which release or release channel
+       * (rapid|regular|stable) to use to run this build.
+       * 
+ * + * string worker_release = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The workerRelease to set. + * @return This builder for chaining. + */ + public Builder setWorkerRelease(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workerRelease_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Option to specify which release or release channel
+       * (rapid|regular|stable) to use to run this build.
+       * 
+ * + * string worker_release = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearWorkerRelease() { + workerRelease_ = getDefaultInstance().getWorkerRelease(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Option to specify which release or release channel
+       * (rapid|regular|stable) to use to run this build.
+       * 
+ * + * string worker_release = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for workerRelease to set. + * @return This builder for chaining. + */ + public Builder setWorkerReleaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workerRelease_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.devtools.cloudbuild.v1.PrivatePoolV1Config.WorkerConfig) } diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto b/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto index f67f368f9dd9..5f5149beab12 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto @@ -2497,6 +2497,17 @@ message BuildOptions { string name = 1 [(google.api.resource_reference) = { type: "cloudbuild.googleapis.com/WorkerPool" }]; + + // Output only. OUTPUT_ONLY. The release or release channel used to run the + // Build. This is set to the same value as + // `PrivatePoolV1Config.WorkerConfig.worker_release` for the UI to easily + // access. + string worker_release = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. OUTPUT_ONLY. Worker release resolved from the release + // channel. + string resolved_worker_release = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Specifies the logging mode. @@ -2623,6 +2634,14 @@ message BuildOptions { // // If true, JSON-formatted logs are parsed as structured logs. bool enable_structured_logging = 23 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Option to specify which release or release channel + // (rapid|regular|stable) to use to run this build. + string worker_release = 25 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Worker release resolved from the release channel. + string resolved_worker_release = 26 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // ReceiveTriggerWebhookRequest [Experimental] is the request object accepted by @@ -2841,6 +2860,10 @@ message PrivatePoolV1Config { // machine type. By default, nested virtualization is disabled. optional bool enable_nested_virtualization = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Option to specify which release or release channel + // (rapid|regular|stable) to use to run this build. + string worker_release = 4 [(google.api.field_behavior) = OPTIONAL]; } // Defines the network configuration for the pool. diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Commitment.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Commitment.java index 3cb8d760e9b0..bdbd8242fdcd 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Commitment.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Commitment.java @@ -624,6 +624,16 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { COMPUTE_OPTIMIZED_H3(428004939), /** COMPUTE_OPTIMIZED_H4D = 383251320; */ COMPUTE_OPTIMIZED_H4D(383251320), + /** + * + * + *
+     * CUD bucket for COMPUTE_OPTIMIZED_H4D_3TB machines.
+     * 
+ * + * COMPUTE_OPTIMIZED_H4D_3TB = 443379866; + */ + COMPUTE_OPTIMIZED_H4D_3TB(443379866), /** GENERAL_PURPOSE = 299793543; */ GENERAL_PURPOSE(299793543), /** GENERAL_PURPOSE_C4 = 301911817; */ @@ -877,6 +887,17 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** COMPUTE_OPTIMIZED_H4D = 383251320; */ public static final int COMPUTE_OPTIMIZED_H4D_VALUE = 383251320; + /** + * + * + *
+     * CUD bucket for COMPUTE_OPTIMIZED_H4D_3TB machines.
+     * 
+ * + * COMPUTE_OPTIMIZED_H4D_3TB = 443379866; + */ + public static final int COMPUTE_OPTIMIZED_H4D_3TB_VALUE = 443379866; + /** GENERAL_PURPOSE = 299793543; */ public static final int GENERAL_PURPOSE_VALUE = 299793543; @@ -1158,6 +1179,8 @@ public static Type forNumber(int value) { return COMPUTE_OPTIMIZED_H3; case 383251320: return COMPUTE_OPTIMIZED_H4D; + case 443379866: + return COMPUTE_OPTIMIZED_H4D_3TB; case 299793543: return GENERAL_PURPOSE; case 301911817: diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Compute.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Compute.java index 437cf47ec543..934120a13d2e 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Compute.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Compute.java @@ -12184,7 +12184,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022&\n" + "\026source_firewall_policy\030\255\332\366\013 \001(\tH\001\210\001\001B\r\n" + "\013_request_idB\031\n" - + "\027_source_firewall_policy\"\201\030\n\n" + + "\027_source_firewall_policy\"\244\030\n\n" + "Commitment\022\033\n\n" + "auto_renew\030\375\227\244\354\001 \001(\010H\000\210\001\001\022\030\n" + "\010category\030\376\371\212\030 \001(\tH\001\210\001\001\022\"\n" @@ -12232,7 +12232,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tCANCELLED\020\261\362\200\024\022\020\n" + "\010CREATING\020\271\275\235\331\001\022\017\n" + "\007EXPIRED\020\205\346\210\346\001\022\025\n" - + "\016NOT_YET_ACTIVE\020\351\342\351\t\"\351\013\n" + + "\016NOT_YET_ACTIVE\020\351\342\351\t\"\214\014\n" + "\004Type\022\022\n" + "\016UNDEFINED_TYPE\020\000\022\035\n" + "\025ACCELERATOR_OPTIMIZED\020\223\320\365\205\001\022\037\n" @@ -12246,7 +12246,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024COMPUTE_OPTIMIZED_C3\020\260\253\213\314\001\022\035\n" + "\025COMPUTE_OPTIMIZED_C3D\020\224\301\337\266\001\022\034\n" + "\024COMPUTE_OPTIMIZED_H3\020\313\254\213\314\001\022\035\n" - + "\025COMPUTE_OPTIMIZED_H4D\020\370\346\337\266\001\022\027\n" + + "\025COMPUTE_OPTIMIZED_H4D\020\370\346\337\266\001\022!\n" + + "\031COMPUTE_OPTIMIZED_H4D_3TB\020\232\341\265\323\001\022\027\n" + "\017GENERAL_PURPOSE\020\207\371\371\216\001\022\032\n" + "\022GENERAL_PURPOSE_C4\020\211\236\373\217\001\022\032\n" + "\023GENERAL_PURPOSE_C4A\020\330\244\354n\022\032\n" @@ -12306,8 +12307,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_type\"\277\003\n" + "\030CommitmentAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022N\n" - + "\005items\030\300\317\367/ \003(\0132<.googl" - + "e.cloud.compute.v1.CommitmentAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132<.google.clo" + + "ud.compute.v1.CommitmentAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -12340,8 +12341,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025resource_manager_tags\030\374\233\213\264\001" + " \003(\0132B.google.cloud.compute.v1.CommitmentParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r" - + "\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"|\n" + "\030CommitmentResourceStatus\0226\n" + "%custom_term_eligibility_end_timestamp\030\373\253\307\255\001 \001(" @@ -12377,8 +12377,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_self_link_with_id\"\335\003\n" + "\"CompositeHealthCheckAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022X\n" - + "\005items\030\300\317\367/ \003(\0132F.google.cloud.com" - + "pute.v1.CompositeHealthCheckAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132F.google.cloud.compute." + + "v1.CompositeHealthCheckAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -12387,31 +12387,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032f\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022G\n" - + "\005value\030\002 \001(\01328.google.cloud.co" - + "mpute.v1.CompositeHealthChecksScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01328.google.cloud.compute" + + ".v1.CompositeHealthChecksScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\272\002\n" + "\032CompositeHealthCheckHealth\022m\n" - + "\016health_sources\030\325\321\334\275\001" - + " \003(\0132Q.google.cloud.compute.v1.Composit" - + "eHealthChecksGetHealthResponseHealthSourceHealth\022\035\n" + + "\016health_sources\030\325\321\334\275\001 \003(\013" + + "2Q.google.cloud.compute.v1.CompositeHeal" + + "thChecksGetHealthResponseHealthSourceHealth\022\035\n" + "\014health_state\030\356\351\277\232\001 \001(\tH\000\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\"^\n" + "\013HealthState\022\032\n" + "\026UNDEFINED_HEALTH_STATE\020\000\022\017\n" + "\007HEALTHY\020\375\252\333\321\001\022\021\n" + "\tUNHEALTHY\020\304\271\255\334\001\022\017\n" - + "\007UNKNOWN\020\252\360\304\316\001B\017\n" - + "\r" + + "\007UNKNOWN\020\252\360\304\316\001B\017\n\r" + "_health_stateB\007\n" + "\005_kind\"\271\002\n" + "\030CompositeHealthCheckList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022?\n" - + "\005items\030\300\317\367/" - + " \003(\0132-.google.cloud.compute.v1.CompositeHealthCheck\022\024\n" + + "\005items\030\300\317\367/ " + + "\003(\0132-.google.cloud.compute.v1.CompositeHealthCheck\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -12436,8 +12435,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027composite_health_checks\030\366\307\371\366\001" + " \003(\0132-.google.cloud.compute.v1.CompositeHealthCheck\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n" - + "\n" + + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\351\002\n" + "\032ConfidentialInstanceConfig\022*\n" + "\032confidential_instance_type\030\255\214\336\024 \001(\tH\000\210\001\001\022+\n" @@ -12458,8 +12456,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024draining_timeout_sec\030\236\325\254k \001(\005H\000\210\001\001B\027\n" + "\025_draining_timeout_sec\"\210\002\n" + "\"ConsistentHashLoadBalancerSettings\022b\n" - + "\013http_cookie\030\373\253\227\003 \001" - + "(\0132E.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookieH\000\210\001\001\022" + + "\013http_cookie\030\373\253\227\003 \001(\0132E." + + "google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookieH\000\210\001\001\022" + " \n" + "\020http_header_name\030\306\367\372o \001(\tH\001\210\001\001\022!\n" + "\021minimum_ring_size\030\277\273\341o \001(\003H\002\210\001\001B\016\n" @@ -12495,8 +12493,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*CreateInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\217\001\n" + "9instance_group_managers_create_instances_request_resource\030\223\372\332\013" - + " \001(\0132D.google.cloud.compute" - + ".v1.InstanceGroupManagersCreateInstancesRequestB\003\340A\002\022!\n" + + " \001(\0132D.google.cloud.compute.v1.I" + + "nstanceGroupManagersCreateInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -12509,15 +12507,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n" + "@region_instance_group_managers_create_instances_request_resource\030\210\277\230\253\001" - + " \001(\0132J.google.cloud.compute.v1.RegionInstance" - + "GroupManagersCreateInstancesRequestB\003\340A\002\022\032\n\n" + + " \001(\0132J.goo" + + "gle.cloud.compute.v1.RegionInstanceGroupManagersCreateInstancesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\367\001\n" + "%CreateMembersInterconnectGroupRequest\022#\n" + "\022interconnect_group\030\216\267\251\271\001 \001(\tB\003\340A\002\022\205\001\n" + "3interconnect_groups_create_members_request_resource\030\355\374\213\246\001" - + " \001(\0132?.google.cl" - + "oud.compute.v1.InterconnectGroupsCreateMembersRequestB\003\340A\002\022!\n" + + " \001(\0132?.google.cloud.c" + + "ompute.v1.InterconnectGroupsCreateMembersRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\"\221\002\n" + "\031CreateSnapshotDiskRequest\022\024\n" @@ -12568,12 +12566,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n\n" + + "\020_next_page_tokenB\014\n" + + "\n" + "_self_linkB\n\n" + "\010_warning\"\270\001\n" + "\031CustomErrorResponsePolicy\022j\n" - + "\024error_response_rules\030\220\255\374\006 \003(\0132I.google.cloud.compute.v1.Cu" - + "stomErrorResponsePolicyCustomErrorResponseRule\022\035\n\r" + + "\024error_response_rules\030\220\255\374\006" + + " \003(\0132I.google.cloud.compute.v1.CustomE" + + "rrorResponsePolicyCustomErrorResponseRule\022\035\n\r" + "error_service\030\376\356\246N \001(\tH\000\210\001\001B\020\n" + "\016_error_service\"\266\001\n" + "0CustomErrorResponsePolicyCustomErrorResponseRule\022\037\n" @@ -12595,8 +12595,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_rsa_encrypted_keyB\t\n" + "\007_sha256\"\265\001\n" + "\"CustomerEncryptionKeyProtectedDisk\022T\n" - + "\023disk_encryption_key\030\205\355\304\201\001 \001(\0132..google.clou" - + "d.compute.v1.CustomerEncryptionKeyH\000\210\001\001\022\026\n" + + "\023disk_encryption_key\030\205\355\304\201\001" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\000\210\001\001\022\026\n" + "\006source\030\233\320\301T \001(\tH\001\210\001\001B\026\n" + "\024_disk_encryption_keyB\t\n" + "\007_source\"C\n" @@ -12619,8 +12619,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005month\030\200\305\3201 \001(\005H\003\210\001\001\022\025\n" + "\005nanos\030\277\270\3571 \001(\005H\004\210\001\001\022\030\n" + "\007seconds\030\377\224\265\253\001 \001(\005H\005\210\001\001\022<\n" - + "\ttime_zone\030\336\203\311\021 " - + "\001(\0132!.google.cloud.compute.v1.TimeZoneH\006\210\001\001\022\032\n\n" + + "\ttime_zone\030\336\203\311\021 \001(\0132!" + + ".google.cloud.compute.v1.TimeZoneH\006\210\001\001\022\032\n\n" + "utc_offset\030\216\367\272* \001(\tH\007\210\001\001\022\024\n" + "\004year\030\275\220\342\001 \001(\005H\010\210\001\001B\006\n" + "\004_dayB\010\n" @@ -12661,7 +12661,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016backend_bucket\030\365\343\335+ \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" + + "\n" + "\013_request_id\"\215\001\n" + "\033DeleteBackendServiceRequest\022 \n" + "\017backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022!\n" @@ -12687,8 +12688,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024external_vpn_gateway\030\205\327\2634 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" - + "\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"j\n" + "\033DeleteFirewallPolicyRequest\022 \n" + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022\032\n\n" @@ -12708,9 +12708,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\257\001\n" + "\036DeleteFutureReservationRequest\022\"\n" - + "\022future_reservation\030\320\306\346\032 \001(\tB\003\340A\002\022!\n" - + "\007project\030\231\226\301l \001(\t", - "B\r" + + "\022future_reservatio", + "n\030\320\306\346\032 \001(\tB\003\340A\002\022!\n" + + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" @@ -12752,8 +12752,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$DeleteGlobalVmExtensionPolicyRequest\022*\n" + "\032global_vm_extension_policy\030\236\326\374\003 \001(\tB\003\340A\002\022\241\001\n" + "Cglobal_vm_extension_policy_rollout_operation_rollout_input_resource\030\330\367\230F" - + " \001(\0132L.google.cloud.com" - + "pute.v1.GlobalVmExtensionPolicyRolloutOperationRolloutInputB\003\340A\002\022!\n" + + " \001(\0132L.google.cloud.compute." + + "v1.GlobalVmExtensionPolicyRolloutOperationRolloutInputB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -12761,8 +12761,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030DeleteHealthCheckRequest\022\035\n" + "\014health_check\030\345\252\244\223\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n" - + "\n" + + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"y\n" + "\022DeleteImageRequest\022\025\n" @@ -12817,8 +12816,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*DeleteInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\217\001\n" + "9instance_group_managers_delete_instances_request_resource\030\204\306\255O" - + " \001(\0132D.google.cloud.com" - + "pute.v1.InstanceGroupManagersDeleteInstancesRequestB\003\340A\002\022%\n" + + " \001(\0132D.google.cloud.compute." + + "v1.InstanceGroupManagersDeleteInstancesRequestB\003\340A\002\022%\n" + "\024no_graceful_shutdown\030\222\267\253\240\001 \001(\010H\000\210\001\001\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" @@ -12833,10 +12832,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n" - + "@region_i" - + "nstance_group_managers_delete_instances_request_resource\030\371\212\353\356\001" - + " \001(\0132J.google.clou" - + "d.compute.v1.RegionInstanceGroupManagersDeleteInstancesRequestB\003\340A\002\022\032\n\n" + + "@region_instan" + + "ce_group_managers_delete_instances_request_resource\030\371\212\353\356\001" + + " \001(\0132J.google.cloud.com" + + "pute.v1.RegionInstanceGroupManagersDeleteInstancesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001B\027\n" + "\025_no_graceful_shutdownB\r\n" + "\013_request_id\"\266\001\n" @@ -12867,7 +12866,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" + + "\n" + "\013_request_id\"\223\001\n" + "\036DeleteInterconnectGroupRequest\022#\n" + "\022interconnect_group\030\216\267\251\271\001 \001(\tB\003\340A\002\022!\n" @@ -12953,8 +12953,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\252\001\n" - + "\031DeleteNodeTemplateRequest\022\036\n" - + "\r" + + "\031DeleteNodeTemplateRequest\022\036\n\r" + "node_template\030\227\344\213\232\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" @@ -12985,10 +12984,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\274\002\n" + "3DeletePerInstanceConfigsInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\234\001\n" - + "@instance_group_manag" - + "ers_delete_per_instance_configs_req_resource\030\240\352\350\254\001" - + " \001(\0132I.google.cloud.compute.v1" - + ".InstanceGroupManagersDeletePerInstanceConfigsReqB\003\340A\002\022!\n" + + "@instance_group_managers_d" + + "elete_per_instance_configs_req_resource\030\240\352\350\254\001" + + " \001(\0132I.google.cloud.compute.v1.Inst" + + "anceGroupManagersDeletePerInstanceConfigsReqB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" @@ -12998,9 +12997,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\234\001\n" - + "Aregion_instance_group_manager_delete_instance_config_req_resource\030\205\233-" - + " \001(\0132J.google.cloud.compute.v1.RegionI" - + "nstanceGroupManagerDeleteInstanceConfigReqB\003\340A\002\"\236\001\n" + + "Aregion_instance_group_manager_delete_instance_config_req_resource\030\205\233- \001(" + + "\0132J.google.cloud.compute.v1.RegionInstan" + + "ceGroupManagerDeleteInstanceConfigReqB\003\340A\002\"\236\001\n" + "$DeletePublicAdvertisedPrefixeRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022(\n" @@ -13011,8 +13010,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\'\n" + "\027public_delegated_prefix\030\350\334\261a \001(\tB\003\340A\002\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" - + "\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\253\001\n" + "\035DeleteRegionAutoscalerRequest\022\033\n\n" @@ -13041,8 +13039,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" - + "\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\236\001\n" + "\027DeleteRegionDiskRequest\022\024\n" + "\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022!\n" @@ -13148,8 +13145,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\037\n" - + "\017security_policy\030\221\206\312Q \001(\tB\003\340A\002B\r" - + "\n" + + "\017security_policy\030\221\206\312Q \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\247\001\n" + "\033DeleteRegionSnapshotRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -13170,7 +13166,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\n" - + "ssl_policy\030\305\375\340\214\001 \001(\tB\003\340A\002B\r\n" + + "ssl_policy\030\305\375\340\214\001 \001(\tB\003\340A\002B\r" + + "\n" + "\013_request_id\"\266\001\n" + "\"DeleteRegionTargetHttpProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -13253,7 +13250,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\037\n" - + "\017security_policy\030\221\206\312Q \001(\tB\003\340A\002B\r\n" + + "\017security_policy\030\221\206\312Q \001(\tB\003\340A\002B\r" + + "\n" + "\013_request_id\"\264\001\n" + "\036DeleteServiceAttachmentRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -13284,7 +13282,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\214\001\n" + "\033DeleteSslCertificateRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\n" + + "\340A\002\362G\007project\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\037\n" + "\017ssl_certificate\030\344\327\222\026 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\203\001\n" @@ -13313,8 +13312,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n" - + "\021target_grpc_proxy\030\373\264\262\002 \001(\tB\003\340A\002B\r" - + "\n" + + "\021target_grpc_proxy\030\373\264\262\002 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\217\001\n" + "\034DeleteTargetHttpProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -13339,9 +13337,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027DeleteTargetPoolRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH", - "\000\210\001\001\022\033\n" + + "\006region\030\364\315\240B \001(\tB\014\340", + "A\002\362G\006region\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\013target_pool\030\212\344\370\035 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\216\001\n" + "\033DeleteTargetSslProxyRequest\022!\n" @@ -13354,7 +13352,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n" - + "\020target_tcp_proxy\030\342\326\360\357\001 \001(\tB\003\340A\002B\r\n" + + "\020target_tcp_proxy\030\342\326\360\357\001 \001(\tB\003\340A\002B\r" + + "\n" + "\013_request_id\"\263\001\n" + "\035DeleteTargetVpnGatewayRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -13443,8 +13442,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\317\002\n" + "7DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest\022\234\001\n" + "@global_network_endpoint_groups_detach_endpoints_request_resource\030\335\215\237\004" - + " \001(\0132J.google.cloud.compute.v" - + "1.GlobalNetworkEndpointGroupsDetachEndpointsRequestB\003\340A\002\022\'\n" + + " \001(\0132J.google.cloud.compute.v1.Glo" + + "balNetworkEndpointGroupsDetachEndpointsRequestB\003\340A\002\022\'\n" + "\026network_endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" @@ -13453,8 +13452,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "1DetachNetworkEndpointsNetworkEndpointGroupRequest\022\'\n" + "\026network_endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022\220\001\n" + "9network_endpoint_groups_detach_endpoints_request_resource\030\371\240\356\365\001" - + " \001(\0132D.google.cloud.co" - + "mpute.v1.NetworkEndpointGroupsDetachEndpointsRequestB\003\340A\002\022!\n" + + " \001(\0132D.google.cloud.compute" + + ".v1.NetworkEndpointGroupsDetachEndpointsRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -13466,10 +13465,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n" - + "@region_network_endpoin" - + "t_groups_detach_endpoints_request_resource\030\356\345\253\225\001" - + " \001(\0132J.google.cloud.compute.v1.R" - + "egionNetworkEndpointGroupsDetachEndpointsRequestB\003\340A\002\022\032\n\n" + + "@region_network_endpoint_gro" + + "ups_detach_endpoints_request_resource\030\356\345\253\225\001" + + " \001(\0132J.google.cloud.compute.v1.Region" + + "NetworkEndpointGroupsDetachEndpointsRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"l\n" + "\034DisableXpnHostProjectRequest\022!\n" @@ -13481,8 +13480,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022z\n" + ".projects_disable_xpn_resource_request_resource\030\252\324\334c" - + " \001(\0132:.google.cloud.compute" - + ".v1.ProjectsDisableXpnResourceRequestB\003\340A\002\022\032\n\n" + + " \001(\0132:.google.cloud.compute.v1.ProjectsDisableXpnResourceRequestB\003\340A\002\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\317\032\n" + "\004Disk\022\033\n" @@ -13490,12 +13489,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014architecture\030\323\322\261\220\001 \001(\tH\001\210\001\001\022Q\n" + "\022async_primary_disk\030\235\365\211V" + " \001(\0132-.google.cloud.compute.v1.DiskAsyncReplicationH\002\210\001\001\022Y\n" - + "\025async_secondary_disks\030\250\350\375\231\001 \003(\01326.googl" - + "e.cloud.compute.v1.Disk.AsyncSecondaryDisksEntry\022\"\n" + + "\025async_secondary_disks\030\250\350\375\231\001 \003(\01326.google.clo" + + "ud.compute.v1.Disk.AsyncSecondaryDisksEntry\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\003\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022T\n" - + "\023disk_encryption_key\030\205\355\304\201\001 \001(\0132..google.clo" - + "ud.compute.v1.CustomerEncryptionKeyH\005\210\001\001\022+\n" + + "\023disk_encryption_key\030\205\355\304\201\001" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\005\210\001\001\022+\n" + "\033enable_confidential_compute\030\274\353\3310 \001(\010H\006\210\001\001\022E\n" + "\021guest_os_features\030\321\340\347%" + " \003(\0132\'.google.cloud.compute.v1.GuestOsFeature\022\020\n" @@ -13513,8 +13512,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\r" + "\210\001\001\022\030\n" + "\007options\030\236\215\232\254\001 \001(\tH\016\210\001\001\022;\n" - + "\006params\030\206\363\253% \001(\0132" - + "#.google.cloud.compute.v1.DiskParamsH\017\210\001\001\022*\n" + + "\006params\030\206\363\253%" + + " \001(\0132#.google.cloud.compute.v1.DiskParamsH\017\210\001\001\022*\n" + "\031physical_block_size_bytes\030\207\240\243\310\001 \001(\003H\020\210\001\001\022" + " \n" + "\020provisioned_iops\030\324\275\207Y \001(\003H\021\210\001\001\022\'\n" @@ -13524,8 +13523,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "replica_zones\030\200\270\214\027 \003(\t\022\034\n" + "\021resource_policies\030\341\234\314\n" + " \003(\t\022L\n" - + "\017resource_status\030\303\372\367v \001(\0132+.google.cl" - + "oud.compute.v1.DiskResourceStatusH\024\210\001\001\022\036\n\r" + + "\017resource_status\030\303\372\367v" + + " \001(\0132+.google.cloud.compute.v1.DiskResourceStatusH\024\210\001\001\022\036\n\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\025\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\026\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\027\210\001\001\022\030\n" @@ -13536,14 +13535,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013source_disk\030\301\356\264\327\001 \001(\tH\033\210\001\001\022\037\n" + "\016source_disk_id\030\331\315\311\330\001 \001(\tH\034\210\001\001\022\034\n" + "\014source_image\030\267\350\206\030 \001(\tH\035\210\001\001\022\\\n" - + "\033source_image_encryption_key\030\253\221\365\265\001 \001(\0132..google" - + ".cloud.compute.v1.CustomerEncryptionKeyH\036\210\001\001\022\037\n" + + "\033source_image_encryption_key\030\253\221\365\265\001 \001(\0132..google.clou" + + "d.compute.v1.CustomerEncryptionKeyH\036\210\001\001\022\037\n" + "\017source_image_id\030\243\374\260\032 \001(\tH\037\210\001\001\022\'\n" + "\027source_instant_snapshot\030\206\204\303h \001(\tH \210\001\001\022+\n" + "\032source_instant_snapshot_id\030\364\323\220\211\001 \001(\tH!\210\001\001\022\037\n" + "\017source_snapshot\030\350\232\216< \001(\tH\"\210\001\001\022_\n" - + "\036source_snapshot_encryption_key\030\332\216\347\220\001 \001(\013" - + "2..google.cloud.compute.v1.CustomerEncryptionKeyH#\210\001\001\022\"\n" + + "\036source_snapshot_encryption_key\030\332\216\347\220\001 \001(\0132..go" + + "ogle.cloud.compute.v1.CustomerEncryptionKeyH#\210\001\001\022\"\n" + "\022source_snapshot_id\030\322\226\230/ \001(\tH$\210\001\001\022%\n" + "\025source_storage_object\030\247\264\220o \001(\tH%\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH&\210\001\001\022\035\n" @@ -13620,8 +13619,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\255\003\n" + "\022DiskAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022H\n" - + "\005items\030\300\317\367/ \003(\01326.goo" - + "gle.cloud.compute.v1.DiskAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\01326.google.c" + + "loud.compute.v1.DiskAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -13646,8 +13645,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_diskB\n\n" + "\010_disk_id\"\214\001\n" + "\030DiskAsyncReplicationList\022U\n" - + "\026async_replication_disk\030\223\313\303n \001(\0132-.google" - + ".cloud.compute.v1.DiskAsyncReplicationH\000\210\001\001B\031\n" + + "\026async_replication_disk\030\223\313\303n \001(\0132-.google.clou" + + "d.compute.v1.DiskAsyncReplicationH\000\210\001\001B\031\n" + "\027_async_replication_disk\"\244\003\n" + "\027DiskInstantiationConfig\022\034\n" + "\013auto_delete\030\273\344\316\335\001 \001(\010H\000\210\001\001\022\034\n" @@ -13686,20 +13685,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021_destination_zoneB\016\n" + "\014_target_disk\"\251\001\n\n" + "DiskParams\022_\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132<.google.clou" - + "d.compute.v1.DiskParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132<.google.cloud.com" + + "pute.v1.DiskParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\372\002\n" + "\022DiskResourceStatus\022e\n" - + "\022async_primary_disk\030\235\365\211V \001" - + "(\0132A.google.cloud.compute.v1.DiskResourceStatusAsyncReplicationStatusH\000\210\001\001\022g\n" - + "\025async_secondary_disks\030\250\350\375\231\001 \003(\0132D.google.c" - + "loud.compute.v1.DiskResourceStatus.AsyncSecondaryDisksEntry\032}\n" + + "\022async_primary_disk\030\235\365\211V \001(\0132A." + + "google.cloud.compute.v1.DiskResourceStatusAsyncReplicationStatusH\000\210\001\001\022g\n" + + "\025async_secondary_disks\030\250\350\375\231\001 \003(\0132D.google.cloud." + + "compute.v1.DiskResourceStatus.AsyncSecondaryDisksEntry\032}\n" + "\030AsyncSecondaryDisksEntry\022\013\n" + "\003key\030\001 \001(\t\022P\n" - + "\005value\030\002 \001(\0132A.go" - + "ogle.cloud.compute.v1.DiskResourceStatusAsyncReplicationStatus:\0028\001B\025\n" + + "\005value\030\002 \001(\0132A.google." + + "cloud.compute.v1.DiskResourceStatusAsyncReplicationStatus:\0028\001B\025\n" + "\023_async_primary_disk\"\332\001\n" + "(DiskResourceStatusAsyncReplicationStatus\022\025\n" + "\005state\030\221\211\2534 \001(\tH\000\210\001\001\"\214\001\n" @@ -13749,8 +13748,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032Z\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022;\n" - + "\005value\030\002 \001(" - + "\0132,.google.cloud.compute.v1.DiskTypesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132,.g" + + "oogle.cloud.compute.v1.DiskTypesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -13802,8 +13801,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_enable_display\"\201\002\n" + "\022DistributionPolicy\022\035\n" + "\014target_shape\030\363\346\273\241\001 \001(\tH\000\210\001\001\022N\n" - + "\005zones\030\307\244\2557 \003(\0132<.google.cloud.com" - + "pute.v1.DistributionPolicyZoneConfiguration\"k\n" + + "\005zones\030\307\244\2557 \003(\0132<.google.cloud.compute." + + "v1.DistributionPolicyZoneConfiguration\"k\n" + "\013TargetShape\022\032\n" + "\026UNDEFINED_TARGET_SHAPE\020\000\022\t\n" + "\003ANY\020\314\373\003\022\026\n" @@ -13827,8 +13826,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037EnableXpnResourceProjectRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022y\n" - + "-projects_enable_xpn_resource_request_resource\030\257\320\233\311\001 \001(" - + "\01329.google.cloud.compute.v1.ProjectsEnableXpnResourceRequestB\003\340A\002\022\032\n\n" + + "-projects_enable_xpn_resource_request_resource\030\257\320\233\311\001 \001(\01329.g" + + "oogle.cloud.compute.v1.ProjectsEnableXpnResourceRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"<\n" + "\005Error\0223\n" @@ -13841,8 +13840,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\035.google.cloud.compute.v1.HelpH\001\210\001\001\022M\n" + "\021localized_message\030\303\376\362\300\001" + " \001(\0132).google.cloud.compute.v1.LocalizedMessageH\002\210\001\001\022F\n\n" - + "quota_info\030\225\324\344," - + " \001(\0132*.google.cloud.compute.v1.QuotaExceededInfoH\003\210\001\001B\r\n" + + "quota_info\030\225\324\344, \001(" + + "\0132*.google.cloud.compute.v1.QuotaExceededInfoH\003\210\001\001B\r\n" + "\013_error_infoB\007\n" + "\005_helpB\024\n" + "\022_localized_messageB\r\n" @@ -13853,13 +13852,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\01321.google.cloud.compute.v1.ErrorInfo.MetadatasEntry\022\026\n" + "\006reason\030\304\244\226B \001(\tH\001\210\001\001\0320\n" + "\016MetadatasEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001B\t\n" + "\007_domainB\t\n" + "\007_reason\"\267\001\n" + "\006Errors\022\024\n" - + "\004code\030\355\333\272\001 \001(\tH\000\210\001\001\022@\n" - + "\r" + + "\004code\030\355\333\272\001 \001(\tH\000\210\001\001\022@\n\r" + "error_details\030\213\306\373\202\001" + " \003(\0132%.google.cloud.compute.v1.ErrorDetails\022\031\n" + "\010location\030\265\277\276\212\001 \001(\tH\001\210\001\001\022\030\n" @@ -13920,12 +13919,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\002\210\001\001\022K\n\n" - + "interfaces\030\332\364\340\005 \003(\01324.goog" - + "le.cloud.compute.v1.ExternalVpnGatewayInterface\022\024\n" + + "interfaces\030\332\364\340\005 \003(\01324.google.cl" + + "oud.compute.v1.ExternalVpnGatewayInterface\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\004\210\001\001\022K\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\01327.google.cloud.compute.v1.ExternalVpnGateway.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001 \003(\0132" + + "7.google.cloud.compute.v1.ExternalVpnGateway.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022I\n" + "\006params\030\206\363\253%" + " \001(\01321.google.cloud.compute.v1.ExternalVpnGatewayParamsH\006\210\001\001\022 \n" @@ -13973,8 +13972,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\305\001\n" + "\030ExternalVpnGatewayParams\022m\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132J.google.cloud.comp" - + "ute.v1.ExternalVpnGatewayParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132J.google.cloud.compute.v" + + "1.ExternalVpnGatewayParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\262\001\n" @@ -13986,11 +13985,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003BIN\020\347\201\004\022\020\n" + "\tUNDEFINED\020\260\342\335A\022\013\n" + "\004X509\020\246\233\243\001B\n\n" - + "\010_contentB\014\n\n" + + "\010_contentB\014", + "\n\n" + "_file_type\"\234\007\n" + "\010Firewall\0224\n" - + "\007allowe", - "d\030\250\203\270M \003(\0132 .google.cloud.compute.v1.Allowed\022\"\n" + + "\007allowed\030\250\203\270M \003(\0132 .google.cloud.compute.v1.Allowed\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\0223\n" + "\006denied\030\233\367\235\203\001" + " \003(\0132\037.google.cloud.compute.v1.Denied\022\034\n" @@ -14000,8 +13999,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010disabled\030\374\364\230\201\001 \001(\010H\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022G\n\n" - + "log_config\030\235\321\301\247\001 \001(\0132*.goog" - + "le.cloud.compute.v1.FirewallLogConfigH\006\210\001\001\022\024\n" + + "log_config\030\235\321\301\247\001" + + " \001(\0132*.google.cloud.compute.v1.FirewallLogConfigH\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\027\n" + "\007network\030\256\264\205o \001(\tH\010\210\001\001\022?\n" + "\006params\030\206\363\253% \001(\0132\'.google.cloud.compute.v1.FirewallParamsH" @@ -14053,14 +14052,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_enableB\013\n" + "\t_metadata\"\261\001\n" + "\016FirewallParams\022c\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003" - + "(\0132@.google.cloud.compute.v1.FirewallParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132@." + + "google.cloud.compute.v1.FirewallParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\227\001\n" + "(FirewallPoliciesListAssociationsResponse\022L\n" - + "\014associations\030\222\350\312\362\001 \003(\0132" - + "2.google.cloud.compute.v1.FirewallPolicyAssociation\022\024\n" + + "\014associations\030\222\350\312\362\001 \003(\01322.goo" + + "gle.cloud.compute.v1.FirewallPolicyAssociation\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001B\007\n" + "\005_kind\"\253\001\n" + "\032FirewallPoliciesScopedList\022F\n" @@ -14126,16 +14125,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_short_name\"\203\002\n" + "\022FirewallPolicyList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0229\n" - + "\005items\030\300\317\367/" - + " \003(\0132\'.google.cloud.compute.v1.FirewallPolicy\022\024\n" + + "\005items\030\300\317\367/ \003" + + "(\0132\'.google.cloud.compute.v1.FirewallPolicy\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\003\210\001\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\n" - + "\n" + + "\020_next_page_tokenB\n\n" + "\010_warning\"\341\007\n" + "\022FirewallPolicyRule\022\026\n" + "\006action\030\266\374\275Y \001(\tH\000\210\001\001\022\034\n" @@ -14196,8 +14194,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020src_network_type\030\246\362\335\223\001 \001(\tH\003\210\001\001\022\027\n" + "\014src_networks\030\200\200\353u \003(\t\022\033\n" + "\020src_region_codes\030\226\343\237/ \003(\t\022Q\n" - + "\017src_secure_tags\030\206\224\316\362\001 \003(\01324.googl" - + "e.cloud.compute.v1.FirewallPolicyRuleSecureTag\022$\n" + + "\017src_secure_tags\030\206\224\316\362\001 \003(\01324.google.clo" + + "ud.compute.v1.FirewallPolicyRuleSecureTag\022$\n" + "\030src_threat_intelligences\030\252\357\250\232\001 \003(\t\"8\n" + "\022DestNetworkContext\022\"\n" + "\036UNDEFINED_DEST_NETWORK_CONTEXT\020\000\"2\n" @@ -14247,8 +14245,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tall_ports\030\364\257\243\324\001 \001(\010H\002\210\001\001\022$\n" + "\023allow_global_access\030\212\306\221\356\001 \001(\010H\003\210\001\001\022\'\n" + "\027allow_psc_global_access\030\313\205\321} \001(\010H\004\210\001\001\022Y\n" - + "\023attached_extensions\030\217\253\330\267\001 " - + "\003(\01328.google.cloud.compute.v1.ForwardingRuleAttachedExtension\022 \n" + + "\023attached_extensions\030\217\253\330\267\001 \003(\01328" + + ".google.cloud.compute.v1.ForwardingRuleAttachedExtension\022 \n" + "\017backend_service\030\212\300\256\222\001 \001(\tH\005\210\001\001\022%\n" + "\024base_forwarding_rule\030\220\333\243\372\001 \001(\tH\006\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\007\210\001\001\022\034\n" @@ -14266,8 +14264,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026is_mirroring_collector\030\374\340\3568 \001(\010H\017\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\020\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\021\210\001\001\022G\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\01323.google.cloud.compute.v1.ForwardingRule.LabelsEntry\022&\n" + + "\006labels\030\377\277\301\356\001 \003" + + "(\01323.google.cloud.compute.v1.ForwardingRule.LabelsEntry\022&\n" + "\025load_balancing_scheme\030\304\214\302\255\001 \001(\tH\022\210\001\001\022E\n" + "\020metadata_filters\030\353\315\314\335\001" + " \003(\0132\'.google.cloud.compute.v1.MetadataFilter\022\024\n" @@ -14282,8 +14280,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tH\032\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\033\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\034\210\001\001\022o\n" - + "\037service_directory_registrations\030\376\261\314j \003(\0132C.google.cloud.compu" - + "te.v1.ForwardingRuleServiceDirectoryRegistration\022\036\n\r" + + "\037service_directory_registrations\030\376\261\314j" + + " \003(\0132C.google.cloud.compute.v1" + + ".ForwardingRuleServiceDirectoryRegistration\022\036\n\r" + "service_label\030\352\231\354\306\001 \001(\tH\035\210\001\001\022\035\n" + "\014service_name\030\325\253\315\253\001 \001(\tH\036\210\001\001\022\033\n" + "\020source_ip_ranges\030\312\243\2315 \003(\t\022\033\n\n" @@ -14363,14 +14362,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_regionB\014\n\n" + "_self_linkB\024\n" + "\022_self_link_with_idB\020\n" - + "\016_service_labelB\017\n\r" + + "\016_service_labelB\017\n" + + "\r" + "_service_nameB\r\n" + "\013_subnetworkB\t\n" + "\007_target\"\313\003\n" + "\034ForwardingRuleAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022R\n" - + "\005items\030\300\317\367/ \003(\0132@.goo" - + "gle.cloud.compute.v1.ForwardingRuleAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132@.google.c" + + "loud.compute.v1.ForwardingRuleAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -14379,8 +14379,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032`\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002 \001(\01322.google.c" - + "loud.compute.v1.ForwardingRulesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01322.google.cloud." + + "compute.v1.ForwardingRulesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -14391,8 +14391,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_reference\"\255\002\n" + "\022ForwardingRuleList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0229\n" - + "\005items\030\300\317\367/ \003" - + "(\0132\'.google.cloud.compute.v1.ForwardingRule\022\024\n" + + "\005items\030\300\317\367/ \003(\0132\'." + + "google.cloud.compute.v1.ForwardingRule\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -14420,17 +14420,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\206\027\n" + "\021FutureReservation\022_\n" - + "\025aggregate_reservation\030\314\362\203\213\001 \001(\01327.goo" - + "gle.cloud.compute.v1.AllocationAggregateReservationH\000\210\001\001\0225\n" + + "\025aggregate_reservation\030\314\362\203\213\001 \001(\01327.google.c" + + "loud.compute.v1.AllocationAggregateReservationH\000\210\001\001\0225\n" + "%auto_created_reservations_delete_time\030\320\331\346s \001(" + "\tH\001\210\001\001\022V\n" - + "\"auto_created_reservations_duration\030\205\260\320\354\001 \001(\0132" - + "!.google.cloud.compute.v1.DurationH\002\210\001\001\0226\n" + + "\"auto_created_reservations_duration\030\205\260\320\354\001" + + " \001(\0132!.google.cloud.compute.v1.DurationH\002\210\001\001\0226\n" + "%auto_delete_auto_created_reservations\030\252\343\245\352\001" + " \001(\010H\003\210\001\001\022#\n" + "\023colocation_resource\030\354\224\330\017 \001(\tH\004\210\001\001\022Y\n" - + "\017commitment_info\030\230\357\257N \001(\013" - + "28.google.cloud.compute.v1.FutureReservationCommitmentInfoH\005\210\001\001\022*\n" + + "\017commitment_info\030\230\357\257N \001(\01328.go" + + "ogle.cloud.compute.v1.FutureReservationCommitmentInfoH\005\210\001\001\022*\n" + "\031confidential_compute_type\030\231\357\242\270\001 \001(\tH\006\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\007\210\001\001\022 \n" + "\017deployment_type\030\364\200\226\275\001 \001(\tH\010\210\001\001\022\034\n" @@ -14442,28 +14442,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\r" + "\210\001\001\022\033\n" + "\013name_prefix\030\306\245\335p \001(\tH\016\210\001\001\022H\n" - + "\006params\030\206\363\253% " - + "\001(\01320.google.cloud.compute.v1.FutureReservationParamsH\017\210\001\001\022\037\n" + + "\006params\030\206\363\253% \001(\01320" + + ".google.cloud.compute.v1.FutureReservationParamsH\017\210\001\001\022\037\n" + "\017planning_status\030\224\246\263\t \001(\tH\020\210\001\001\022!\n" + "\020reservation_mode\030\266\334\234\204\001 \001(\tH\021\210\001\001\022!\n" + "\020reservation_name\030\236\336\235\204\001 \001(\tH\022\210\001\001\022L\n" - + "\021resource_metadata\030\300\260\236/ \001(\0132).google" - + ".cloud.compute.v1.ResourceMetadataH\023\210\001\001\022\036\n\r" + + "\021resource_metadata\030\300\260\236/" + + " \001(\0132).google.cloud.compute.v1.ResourceMetadataH\023\210\001\001\022\036\n\r" + "resource_name\030\234\220\203\323\001 \001(\tH\024\210\001\001\022\037\n" + "\017scheduling_type\030\205\376\244_ \001(\tH\025\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\026\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\027\210\001\001\022F\n" - + "\016share_settings\030\203\221\224\177 \001(\0132&.goo" - + "gle.cloud.compute.v1.ShareSettingsH\030\210\001\001\022-\n" + + "\016share_settings\030\203\221\224\177" + + " \001(\0132&.google.cloud.compute.v1.ShareSettingsH\030\210\001\001\022-\n" + "\035specific_reservation_required\030\237\307\203l \001(\010H\031\210\001\001\022h\n" - + "\027specific_sku_properties\030\302\370\3653 \001" - + "(\0132?.google.cloud.compute.v1.FutureReservationSpecificSKUPropertiesH\032\210\001\001\022H\n" + + "\027specific_sku_properties\030\302\370\3653 \001(\0132?." + + "google.cloud.compute.v1.FutureReservationSpecificSKUPropertiesH\032\210\001\001\022H\n" + "\006status\030\362\237\267V" + " \001(\01320.google.cloud.compute.v1.FutureReservationStatusH\033\210\001\001\022h\n" - + "\027storage_pool_properties\030\362\306\206\" \001(\0132?.google.cloud.co" - + "mpute.v1.FutureReservationStoragePoolPropertiesH\034\210\001\001\022R\n" - + "\013time_window\030\242\353\330\311\001 \001(\01324." - + "google.cloud.compute.v1.FutureReservationTimeWindowH\035\210\001\001\022\024\n" + + "\027storage_pool_properties\030\362\306\206\" \001(\0132?.google.cloud.compute" + + ".v1.FutureReservationStoragePoolPropertiesH\034\210\001\001\022R\n" + + "\013time_window\030\242\353\330\311\001 \001(\01324.googl" + + "e.cloud.compute.v1.FutureReservationTimeWindowH\035\210\001\001\022\024\n" + "\004zone\030\254\307\344\001 \001(\tH\036\210\001\001\"\277\001\n" + "\027ConfidentialComputeType\022\'\n" + "#UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE\020\000\022&\n" @@ -14537,15 +14537,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020_commitment_planB\034\n" + "\032_previous_commitment_terms\"\303\001\n" + "\027FutureReservationParams\022l\n" - + "\025resource_manager_tags\030\374\233\213\264\001" - + " \003(\0132I.google.cloud.compute.v1.Futur" - + "eReservationParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 " + + "\003(\0132I.google.cloud.compute.v1.FutureRese" + + "rvationParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\256\002\n" + "&FutureReservationSpecificSKUProperties\022w\n" - + "\023instance_properties\030\235\236\330f \001(\0132R.google.cloud.comput" - + "e.v1.AllocationSpecificSKUAllocationReservedInstancePropertiesH\000\210\001\001\022)\n" + + "\023instance_properties\030\235\236\330f \001(\0132R.google.cloud.compute.v1." + + "AllocationSpecificSKUAllocationReservedInstancePropertiesH\000\210\001\001\022)\n" + "\030source_instance_template\030\300\303\301\236\001 \001(" + "\tH\001\210\001\001\022\033\n" + "\013total_count\030\324\230\310= \001(\003H\002\210\001\001B\026\n" @@ -14555,19 +14555,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027FutureReservationStatus\022 \n" + "\020amendment_status\030\344\242\253w \001(\tH\000\210\001\001\022$\n" + "\031auto_created_reservations\030\256\225\356B \003(\t\022r\n" - + "\037exapool_provisioned_capacity_gb\030\340\341\313\244\001 \001(\0132@.goog" - + "le.cloud.compute.v1.StoragePoolExapoolProvisionedCapacityGbH\001\210\001\001\022x\n" - + "\034existing_matching_usage_info\030\332\212\223\363\001 \001(\0132I.google.clou" - + "d.compute.v1.FutureReservationStatusExistingMatchingUsageInfoH\002\210\001\001\022 \n" + + "\037exapool_provisioned_capacity_gb\030\340\341\313\244\001 \001(\0132@.google.cl" + + "oud.compute.v1.StoragePoolExapoolProvisionedCapacityGbH\001\210\001\001\022x\n" + + "\034existing_matching_usage_info\030\332\212\223\363\001 \001(\0132I.google.cloud.com" + + "pute.v1.FutureReservationStatusExistingMatchingUsageInfoH\002\210\001\001\022 \n" + "\017fulfilled_count\030\357\223\246\230\001 \001(\003H\003\210\001\001\022i\n" - + "\025last_known_good_state\030\224\337\370[ \001(\0132B.google.cloud.compute.v1" - + ".FutureReservationStatusLastKnownGoodStateH\004\210\001\001\022\031\n" + + "\025last_known_good_state\030\224\337\370[ \001(\0132B.google.cloud.compute.v1.Futu" + + "reReservationStatusLastKnownGoodStateH\004\210\001\001\022\031\n" + "\tlock_time\030\341\222\307D \001(\tH\005\210\001\001\022\"\n" + "\022procurement_status\030\341\340\223k \001(\tH\006\210\001\001\022n\n" - + "\027specific_sku_properties\030\302\370\3653 \001(\0132E.google.clou" - + "d.compute.v1.FutureReservationStatusSpecificSKUPropertiesH\007\210\001\001\022{\n" - + "!storage_pool_provisioned_capacity\030\344\237\346@ \001(\0132H.google.cl" - + "oud.compute.v1.FutureReservationStoragePoolProvisionedCapacityH\010\210\001\001\"\251\001\n" + + "\027specific_sku_properties\030\302\370\3653 \001(\0132E.google.cloud.com" + + "pute.v1.FutureReservationStatusSpecificSKUPropertiesH\007\210\001\001\022{\n" + + "!storage_pool_provisioned_capacity\030\344\237\346@ \001(\0132H.google.cloud.c" + + "ompute.v1.FutureReservationStoragePoolProvisionedCapacityH\010\210\001\001\"\251\001\n" + "\017AmendmentStatus\022\036\n" + "\032UNDEFINED_AMENDMENT_STATUS\020\000\022\031\n" + "\022AMENDMENT_APPROVED\020\311\237\346G\022\031\n" @@ -14597,21 +14597,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_lock_timeB\025\n" + "\023_procurement_statusB\032\n" + "\030_specific_sku_propertiesB$\n" - + "\"_storage_pool_provisioned_capacity\"|\n" - + "0Fu", - "tureReservationStatusExistingMatchingUsageInfo\022\025\n" + + "\"_stor", + "age_pool_provisioned_capacity\"|\n" + + "0FutureReservationStatusExistingMatchingUsageInfo\022\025\n" + "\005count\030\217\242\235- \001(\003H\000\210\001\001\022\031\n" + "\ttimestamp\030\226\322\244\032 \001(\tH\001\210\001\001B\010\n" + "\006_countB\014\n\n" + "_timestamp\"\213\007\n" + ")FutureReservationStatusLastKnownGoodState\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022x\n" - + "\034existing_matching_usage_info\030\332\212\223\363\001 \001(\0132I" - + ".google.cloud.compute.v1.FutureReservati" - + "onStatusExistingMatchingUsageInfoH\001\210\001\001\022\202\001\n" - + "\030future_reservation_specs\030\351\224\255\' \001(\0132X.g" - + "oogle.cloud.compute.v1.FutureReservation" - + "StatusLastKnownGoodStateFutureReservationSpecsH\002\210\001\001\022\031\n" + + "\034existing_matching_usage_info\030\332\212\223\363\001 \001(\0132I.goog" + + "le.cloud.compute.v1.FutureReservationStatusExistingMatchingUsageInfoH\001\210\001\001\022\202\001\n" + + "\030future_reservation_specs\030\351\224\255\' \001(\0132X.google" + + ".cloud.compute.v1.FutureReservationStatu" + + "sLastKnownGoodStateFutureReservationSpecsH\002\210\001\001\022\031\n" + "\tlock_time\030\341\222\307D \001(\tH\003\210\001\001\022\033\n" + "\013name_prefix\030\306\245\335p \001(\tH\004\210\001\001\022\"\n" + "\022procurement_status\030\341\340\223k \001(\tH\005\210\001\001\"\341\002\n" @@ -14637,12 +14636,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_name_prefixB\025\n" + "\023_procurement_status\"\206\003\n" + "?FutureReservationStatusLastKnownGoodStateFutureReservationSpecs\022F\n" - + "\016share_settings\030\203\221\224\177" - + " \001(\0132&.google.cloud.compute.v1.ShareSettingsH\000\210\001\001\022h\n" - + "\027specific_sku_properties\030\302\370\3653" - + " \001(\0132?.google.cloud.compute.v1.FutureReservationSpecificSKUPropertiesH\001\210\001\001\022R\n" - + "\013time_window\030\242\353\330\311\001 \001(\01324.google.cloud.com" - + "pute.v1.FutureReservationTimeWindowH\002\210\001\001B\021\n" + + "\016share_settings\030\203\221\224\177 \001(\013" + + "2&.google.cloud.compute.v1.ShareSettingsH\000\210\001\001\022h\n" + + "\027specific_sku_properties\030\302\370\3653 \001(" + + "\0132?.google.cloud.compute.v1.FutureReservationSpecificSKUPropertiesH\001\210\001\001\022R\n" + + "\013time_window\030\242\353\330\311\001" + + " \001(\01324.google.cloud.compute.v1.FutureReservationTimeWindowH\002\210\001\001B\021\n" + "\017_share_settingsB\032\n" + "\030_specific_sku_propertiesB\016\n" + "\014_time_window\"{\n" @@ -14650,11 +14649,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033source_instance_template_id\030\372\357\2025 \001(\tH\000\210\001\001B\036\n" + "\034_source_instance_template_id\"\306\003\n" + "&FutureReservationStoragePoolProperties\022{\n" - + ")requested_exapool_provisioned_capacity_gb\030\217\210\270S" - + " \001(\0132@.google.cloud.compute.v1.StoragePoolExapoolProvisionedCapacityGbH\000\210\001\001\022\206\001\n" + + ")requested_exapool_provisioned_capacity_gb\030\217\210\270S \001(\013" + + "2@.google.cloud.compute.v1.StoragePoolExapoolProvisionedCapacityGbH\000\210\001\001\022\206\001\n" + "+requested_storage_pool_provisioned_capacity\030\323\246\362\233\001" - + " \001(\0132H.google.cloud.compute.v1" - + ".FutureReservationStoragePoolProvisionedCapacityH\001\210\001\001\022\"\n" + + " \001(\0132H.google.cloud.compute.v1.Futu" + + "reReservationStoragePoolProvisionedCapacityH\001\210\001\001\022\"\n" + "\021storage_pool_type\030\271\201\260\210\001 \001(\tH\002\210\001\001B,\n" + "*_requested_exapool_provisioned_capacity_gbB.\n" + ",_requested_storage_pool_provisioned_capacityB\024\n" @@ -14678,8 +14677,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(FutureReservationsAggregatedListResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022^\n" - + "\005items\030\300\317\367/ \003(\0132L.google.cloud.compute.v1.Fut" - + "ureReservationsAggregatedListResponse.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132L.google.cloud.compute.v1.FutureRe" + + "servationsAggregatedListResponse.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -14699,8 +14698,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036FutureReservationsListResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022<\n" - + "\005items\030\300\317\367/ \003(\013" - + "2*.google.cloud.compute.v1.FutureReservation\022\024\n" + + "\005items\030\300\317\367/ \003(\0132*.go" + + "ogle.cloud.compute.v1.FutureReservation\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -14722,15 +14721,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035FutureResourcesRecommendation\022\030\n" + "\010end_time\030\261\247\3476 \001(\tH\000\210\001\001\022\031\n" + "\010location\030\265\277\276\212\001 \001(\tH\001\210\001\001\022f\n" - + "\017other_locations\030\357\371\300U \003(\0132J.google.cloud.compute" - + ".v1.FutureResourcesRecommendation.OtherLocationsEntry\022\"\n" + + "\017other_locations\030\357\371\300U \003(\0132J.google.cloud.compute.v1.F" + + "utureResourcesRecommendation.OtherLocationsEntry\022\"\n" + "\021recommendation_id\030\341\326\243\342\001 \001(\tH\002\210\001\001\022#\n" + "\023recommendation_type\030\200\350\203n \001(\tH\003\210\001\001\022\032\n\n" + "start_time\030\212\351\356\021 \001(\tH\004\210\001\001\032z\n" + "\023OtherLocationsEntry\022\013\n" + "\003key\030\001 \001(\t\022R\n" - + "\005value\030\002 \001(\0132C.google.cloud.compute.v1.FutureRe" - + "sourcesRecommendationOtherLocation:\0028\001\"z\n" + + "\005value\030\002 \001(\013" + + "2C.google.cloud.compute.v1.FutureResourcesRecommendationOtherLocation:\0028\001\"z\n" + "\022RecommendationType\022!\n" + "\035UNDEFINED_RECOMMENDATION_TYPE\020\000\022\031\n" + "\022FUTURE_RESERVATION\020\260\326\310\023\022&\n" @@ -14754,10 +14753,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_status\"\366\003\n" + "\023FutureResourcesSpec\022 \n" + "\017deployment_type\030\364\200\226\275\001 \001(\tH\000\210\001\001\022\\\n" - + "\017location_policy\030\374\271\207\336\001 \001(\0132:.google.cloud.co" - + "mpute.v1.FutureResourcesSpecLocationPolicyH\001\210\001\001\022^\n" - + "\020target_resources\030\367\321\360\373\001 \001(\0132;." - + "google.cloud.compute.v1.FutureResourcesSpecTargetResourcesH\002\210\001\001\022K\n" + + "\017location_policy\030\374\271\207\336\001 \001(\0132:.google.cloud.compute" + + ".v1.FutureResourcesSpecLocationPolicyH\001\210\001\001\022^\n" + + "\020target_resources\030\367\321\360\373\001 \001(\0132;.googl" + + "e.cloud.compute.v1.FutureResourcesSpecTargetResourcesH\002\210\001\001\022K\n" + "\017time_range_spec\030\257\314\3077" + " \001(\0132*.google.cloud.compute.v1.FlexibleTimeRangeH\003\210\001\001\"a\n" + "\016DeploymentType\022\035\n" @@ -14800,33 +14799,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_disk_interfaceB\017\n\r" + "_disk_size_gb\"\373\001\n" + "!FutureResourcesSpecLocationPolicy\022`\n" - + "\tlocations\030\336\256\221\305\001 \003(\0132I" - + ".google.cloud.compute.v1.FutureResourcesSpecLocationPolicy.LocationsEntry\032t\n" + + "\tlocations\030\336\256\221\305\001 \003(\0132I.goog" + + "le.cloud.compute.v1.FutureResourcesSpecLocationPolicy.LocationsEntry\032t\n" + "\016LocationsEntry\022\013\n" + "\003key\030\001 \001(\t\022Q\n" - + "\005value\030\002 \001(\0132" - + "B.google.cloud.compute.v1.FutureResourcesSpecLocationPolicyLocation:\0028\001\"\270\001\n" - + ")FutureResourcesSpecLocationPolicyLocation\022\032\n" - + "\n" + + "\005value\030\002 \001(\0132B.goo" + + "gle.cloud.compute.v1.FutureResourcesSpecLocationPolicyLocation:\0028\001\"\270\001\n" + + ")FutureResourcesSpecLocationPolicyLocation\022\032\n\n" + "preference\030\333\371\362G \001(\tH\000\210\001\001\"`\n\n" + "Preference\022\030\n" + "\024UNDEFINED_PREFERENCE\020\000\022\014\n" + "\005ALLOW\020\251\326\336\035\022\n\n" + "\004DENY\020\214\354\177\022\036\n" - + "\026PREFERENCE_UNSPECIFIED\020\263\353\316\354\001B\r\n" + + "\026PREFERENCE_UNSPECIFIED\020\263\353\316\354\001B\r" + + "\n" + "\013_preference\"\354\001\n" + "\'FutureResourcesSpecSpecificSKUResources\022\036\n" + "\016instance_count\030\345\211\357$ \001(\003H\000\210\001\001\022_\n" - + "\024local_ssd_partitions\030\270\306\270\340\001" - + " \003(\0132=.google.cloud.compute.v1.FutureResourcesSpecLocalSsdPartition\022\034\n" + + "\024local_ssd_partitions\030\270\306\270\340\001 " + + "\003(\0132=.google.cloud.compute.v1.FutureResourcesSpecLocalSsdPartition\022\034\n" + "\014machine_type\030\262\260\312l \001(\tH\001\210\001\001B\021\n" + "\017_instance_countB\017\n\r" + "_machine_type\"\246\002\n" + "\"FutureResourcesSpecTargetResources\022c\n" - + "\023aggregate_resources\030\245\247\237V" - + " \001(\0132>.google.cloud.compute.v1.FutureResourcesSpecAggregateResourcesH\000\210\001\001\022h\n" - + "\026specific_sku_resources\030\266\342\254\177 \001(\0132@.googl" - + "e.cloud.compute.v1.FutureResourcesSpecSpecificSKUResourcesH\001\210\001\001B\026\n" + + "\023aggregate_resources\030\245\247\237V " + + "\001(\0132>.google.cloud.compute.v1.FutureResourcesSpecAggregateResourcesH\000\210\001\001\022h\n" + + "\026specific_sku_resources\030\266\342\254\177 \001(\0132@.google.clo" + + "ud.compute.v1.FutureResourcesSpecSpecificSKUResourcesH\001\210\001\001B\026\n" + "\024_aggregate_resourcesB\031\n" + "\027_specific_sku_resources\"\315\002\n" + "\017GRPCHealthCheck\022!\n" @@ -14996,8 +14995,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014health_check\030\345\252\244\223\001 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\"\210\001\n" + "\032GetHealthOperationMetadata\022Z\n" - + "\013health_info\030\261\351\230p \001(\0132=.google.cloud.compute.v1.Get" - + "HealthOperationMetadataHealthInfoH\000\210\001\001B\016\n" + + "\013health_info\030\261\351\230p" + + " \001(\0132=.google.cloud.compute.v1.GetHealthOperationMetadataHealthInfoH\000\210\001\001B\016\n" + "\014_health_info\"\221\t\n" + "$GetHealthOperationMetadataHealthInfo\022\'\n" + "\027availability_slo_status\030\377\240\207z \001(\tH\000\210\001\001\022\036\n\r" @@ -15038,8 +15037,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022b\n" - + "!resource_group_reference_resource\030\323\376\3555 \001(\0132/.g" - + "oogle.cloud.compute.v1.ResourceGroupReferenceB\003\340A\002\"\206\001\n" + + "!resource_group_reference_resource\030\323\376\3555 \001(\0132/.google" + + ".cloud.compute.v1.ResourceGroupReferenceB\003\340A\002\"\206\001\n" + "*GetHealthRegionCompositeHealthCheckRequest\022\'\n" + "\026composite_health_check\030\235\300\326\336\001 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" @@ -15148,9 +15147,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\005H\000\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n" - + "!_options_requested_policy_version\"\254\001\n" - + "\037GetIamPolicy", - "MachineImageRequest\0221\n" + + "!_options_reques", + "ted_policy_version\"\254\001\n" + + "\037GetIamPolicyMachineImageRequest\0221\n" + " options_requested_policy_version\030\275\374\205\356\001" + " \001(\005H\000\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" @@ -15715,7 +15714,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\037\n" + "\017ssl_certificate\030\344\327\222\026 \001(\tB\003\340A\002\"K\n" + "\023GetSslPolicyRequest\022\027\n" - + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\033\n\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\033\n" + + "\n" + "ssl_policy\030\305\375\340\214\001 \001(\tB\003\340A\002\"k\n" + "\032GetStatusVpnGatewayRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" @@ -15723,9 +15723,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013vpn_gateway\030\371\203\366\301\001 \001(\tB\003\340A\002\"e\n" + "\025GetStoragePoolRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\035\n" - + "\014storage_pool\030\340\306\361\253\001 \001(\tB\003\340A\002\022\024\n" - + "\004zone\030\254\307\344\001 \001(\tB\003", - "\340A\002\"n\n" + + "\014storage_poo", + "l\030\340\306\361\253\001 \001(\tB\003\340A\002\022\024\n" + + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"n\n" + "\031GetStoragePoolTypeRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\"\n" + "\021storage_pool_type\030\271\201\260\210\001 \001(\tB\003\340A\002\022\024\n" @@ -15779,20 +15779,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" - + "\340A\002\362G\004zoneB\r" - + "\n" + + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\222\001\n" + "\033GetVersionOperationMetadata\022^\n" - + "\020inline_sbom_info\030\232\216\260\003 \001(\0132<.goo" - + "gle.cloud.compute.v1.GetVersionOperationMetadataSbomInfoH\000\210\001\001B\023\n" + + "\020inline_sbom_info\030\232\216\260\003 \001(\0132<.google.c" + + "loud.compute.v1.GetVersionOperationMetadataSbomInfoH\000\210\001\001B\023\n" + "\021_inline_sbom_info\"\256\003\n" + "#GetVersionOperationMetadataSbomInfo\022\202\001\n" - + "\032current_component_versions\030\243\270\252\202\001 " - + "\003(\0132Z.google.cloud.compute.v1.GetVersion" - + "OperationMetadataSbomInfo.CurrentComponentVersionsEntry\022\200\001\n" + + "\032current_component_versions\030\243\270\252\202\001 \003(\0132Z" + + ".google.cloud.compute.v1.GetVersionOpera" + + "tionMetadataSbomInfo.CurrentComponentVersionsEntry\022\200\001\n" + "\031target_component_versions\030\213\202\376\244\001" - + " \003(\0132Y.google.cloud.compute.v" - + "1.GetVersionOperationMetadataSbomInfo.TargetComponentVersionsEntry\032?\n" + + " \003(\0132Y.google.cloud.compute.v1.Get" + + "VersionOperationMetadataSbomInfo.TargetComponentVersionsEntry\032?\n" + "\035CurrentComponentVersionsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032>\n" @@ -15806,8 +15805,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n" + "\020reservation_slot\030\221\275\247\204\001 \001(\tB\003\340A\002\022{\n" + ".reservation_slots_get_version_request_resource\030\253\210\362\237\001" - + " \001(\0132:.google.cloud.comp" - + "ute.v1.ReservationSlotsGetVersionRequestB\003\340A\002\022\033\n" + + " \001(\0132:.google.cloud.compute.v" + + "1.ReservationSlotsGetVersionRequestB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\334\002\n" @@ -15818,8 +15817,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022%\n" + "\025reservation_sub_block\030\233\312\354\n" + " \001(\tB\003\340A\002\022\203\001\n" - + "3reservation_sub_blocks_get_version_request_resource\030\265\372\254j" - + " \001(\0132>.google.cloud.compute.v1.ReservationSubBlocksGetVersionRequestB\003\340A\002\022\033\n" + + "3reservation_sub_blocks_get_version_request_resource\030\265\372\254j \001" + + "(\0132>.google.cloud.compute.v1.ReservationSubBlocksGetVersionRequestB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"e\n" @@ -15890,8 +15889,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\".google.cloud.compute.v1.OperationH\000\210\001\001B\014\n\n" + "_operation\"{\n" + "1GlobalNetworkEndpointGroupsAttachEndpointsRequest\022F\n" - + "\021network_endpoints\030\255\221\272G" - + " \003(\0132(.google.cloud.compute.v1.NetworkEndpoint\"{\n" + + "\021network_endpoints\030\255\221\272G " + + "\003(\0132(.google.cloud.compute.v1.NetworkEndpoint\"{\n" + "1GlobalNetworkEndpointGroupsDetachEndpointsRequest\022F\n" + "\021network_endpoints\030\255\221\272G" + " \003(\0132(.google.cloud.compute.v1.NetworkEndpoint\"\277\001\n" @@ -15922,16 +15921,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027GlobalVmExtensionPolicy\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022f\n" - + "\022extension_policies\030\320\272\315l \003(\0132G.google.cloud.compute.v1.Globa" - + "lVmExtensionPolicy.ExtensionPoliciesEntry\022\020\n" + + "\022extension_policies\030\320\272\315l " + + "\003(\0132G.google.cloud.compute.v1.GlobalVmExtensionPolicy.ExtensionPoliciesEntry\022\020\n" + "\002id\030\233\032 \001(\004H\002\210\001\001\022`\n" + "\022instance_selectors\030\312\302\214\370\001" + " \003(\0132@.google.cloud.compute.v1.GlobalVmExtensionPolicyInstanceSelector\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\004\210\001\001\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\005\210\001\001\022d\n" - + "\021rollout_operation\030\331\320\214\350\001 \001(\0132@.google.cloud.compu" - + "te.v1.GlobalVmExtensionPolicyRolloutOperationH\006\210\001\001\022&\n" + + "\021rollout_operation\030\331\320\214\350\001 \001(\0132@.google.cloud.compute.v1" + + ".GlobalVmExtensionPolicyRolloutOperationH\006\210\001\001\022&\n" + "\026scoped_resource_status\030\224\377\342V \001(\tH\007\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\010\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\t\210\001\001\022 \n" @@ -15939,8 +15938,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\032y\n" + "\026ExtensionPoliciesEntry\022\013\n" + "\003key\030\001 \001(\t\022N\n" - + "\005value\030\002 \001(" - + "\0132?.google.cloud.compute.v1.GlobalVmExtensionPolicyExtensionPolicy:\0028\001\"\221\001\n" + + "\005value\030\002 \001(\0132?.g" + + "oogle.cloud.compute.v1.GlobalVmExtensionPolicyExtensionPolicy:\0028\001\"\221\001\n" + "\024ScopedResourceStatus\022$\n" + " UNDEFINED_SCOPED_RESOURCE_STATUS\020\000\022\'\n" + "\037SCOPED_RESOURCE_STATUS_DELETING\020\363\247\336\300\001\022*\n" @@ -15957,26 +15956,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_self_link_with_idB\023\n" + "\021_update_timestamp\"\216\001\n" + "&GlobalVmExtensionPolicyExtensionPolicy\022\037\n" - + "\016pinned_version\030\361\376\345\324\001 \001(\tH\000\210\001\001\022\036\n" - + "\r" + + "\016pinned_version\030\361\376\345\324\001 \001(\tH\000\210\001\001\022\036\n\r" + "string_config\030\260\266\210\230\001 \001(\tH\001\210\001\001B\021\n" + "\017_pinned_versionB\020\n" + "\016_string_config\"\234\001\n" + "\'GlobalVmExtensionPolicyInstanceSelector\022^\n" - + "\016label_selector\030\312\361\344\246\001 \001(\0132=.google.cloud.comput" - + "e.v1.GlobalVmExtensionPolicyLabelSelectorH\000\210\001\001B\021\n" + + "\016label_selector\030\312\361\344\246\001 \001(\0132=.google.cloud.compute.v1." + + "GlobalVmExtensionPolicyLabelSelectorH\000\210\001\001B\021\n" + "\017_label_selector\"\320\001\n" + "$GlobalVmExtensionPolicyLabelSelector\022p\n" - + "\020inclusion_labels\030\202\331\205\357\001 \003(\0132R.google.cloud.compute." - + "v1.GlobalVmExtensionPolicyLabelSelector.InclusionLabelsEntry\0326\n" + + "\020inclusion_labels\030\202\331\205\357\001 \003(\0132R.google.cloud.compute.v1.Gl" + + "obalVmExtensionPolicyLabelSelector.InclusionLabelsEntry\0326\n" + "\024InclusionLabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\367\002\n" + "\033GlobalVmExtensionPolicyList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022B\n" - + "\005items\030\300\317\367/" - + " \003(\01320.google.cloud.compute.v1.GlobalVmExtensionPolicy\022\024\n" + + "\005items\030\300\317\367/ \003(" + + "\01320.google.cloud.compute.v1.GlobalVmExtensionPolicy\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -15990,11 +15988,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\253\002\n" + "\'GlobalVmExtensionPolicyRolloutOperation\022k\n\r" - + "rollout_input\030\274\347\333~ \001(\0132L.google.cloud.compute.v1.GlobalVmE" - + "xtensionPolicyRolloutOperationRolloutInputH\000\210\001\001\022n\n" - + "\016rollout_status\030\300\344\226\343\001 \001(\0132M.go" - + "ogle.cloud.compute.v1.GlobalVmExtensionP" - + "olicyRolloutOperationRolloutStatusH\001\210\001\001B\020\n" + + "rollout_input\030\274\347\333~ \001(\0132L.google.cloud.compute.v1.GlobalVmExtens" + + "ionPolicyRolloutOperationRolloutInputH\000\210\001\001\022n\n" + + "\016rollout_status\030\300\344\226\343\001 \001(\0132M.google." + + "cloud.compute.v1.GlobalVmExtensionPolicyRolloutOperationRolloutStatusH\001\210\001\001B\020\n" + "\016_rollout_inputB\021\n" + "\017_rollout_status\"\213\003\n" + "3GlobalVmExtensionPolicyRolloutOperationRolloutInput\022!\n" @@ -16013,39 +16010,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030_predefined_rollout_planB\r\n" + "\013_retry_uuid\"\307\002\n" + "4GlobalVmExtensionPolicyRolloutOperationRolloutStatus\022y\n" - + "\020current_rollouts\030\350\201\377\022 \003(\013" - + "2\\.google.cloud.compute.v1.GlobalVmExten" - + "sionPolicyRolloutOperationRolloutStatusRolloutMetadata\022\177\n" - + "\020previous_rollout\030\351\370\225\263\001" - + " \001(\0132\\.google.cloud.compute.v1.GlobalVmE" - + "xtensionPolicyRolloutOperationRolloutStatusRolloutMetadataH\000\210\001\001B\023\n" + + "\020current_rollouts\030\350\201\377\022 \003(\0132\\.go" + + "ogle.cloud.compute.v1.GlobalVmExtensionP" + + "olicyRolloutOperationRolloutStatusRolloutMetadata\022\177\n" + + "\020previous_rollout\030\351\370\225\263\001 \001(\0132" + + "\\.google.cloud.compute.v1.GlobalVmExtens" + + "ionPolicyRolloutOperationRolloutStatusRolloutMetadataH\000\210\001\001B\023\n" + "\021_previous_rollout\"\323\005\n" + "CGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata\022\234\001\n" - + "\027location_rollout_status\030\212\200\312\204\001 \003(\0132w.goo" - + "gle.cloud.compute.v1.GlobalVmExtensionPo" - + "licyRolloutOperationRolloutStatusRolloutMetadata.LocationRolloutStatusEntry\022\030\n" + + "\027location_rollout_status\030\212\200\312\204\001 \003(\0132w.google.c" + + "loud.compute.v1.GlobalVmExtensionPolicyR" + + "olloutOperationRolloutStatusRolloutMetadata.LocationRolloutStatusEntry\022\030\n" + "\007rollout\030\261\203\324\220\001 \001(\tH\000\210\001\001\022\035\n" + "\014rollout_plan\030\367\321\362\332\001 \001(\tH\001\210\001\001\022\025\n" + "\005state\030\221\211\2534 \001(\tH\002\210\001\001\032\260\001\n" + "\032LocationRolloutStatusEntry\022\013\n" + "\003key\030\001 \001(\t\022\200\001\n" - + "\005value\030\002 \001(\0132q.google.cloud.compute.v" - + "1.GlobalVmExtensionPolicyRolloutOperatio" - + "nRolloutStatusRolloutMetadataLocationRolloutStatus:\0028\001\"\302\001\n" + + "\005value\030\002 \001(\0132q.google.cloud.compute.v1.Glo" + + "balVmExtensionPolicyRolloutOperationRoll" + + "outStatusRolloutMetadataLocationRolloutStatus:\0028\001\"\302\001\n" + "\005State\022\023\n" + "\017UNDEFINED_STATE\020\000\022\027\n" + "\017STATE_CANCELLED\020\343\315\367\376\001\022\026\n" + "\017STATE_COMPLETED\020\335\347\332~\022\023\n" + "\014STATE_FAILED\020\313\217\240\030\022\024\n" + "\014STATE_PAUSED\020\274\231\370\240\001\022\027\n" - + "\020STATE_PROCESSING\020\241\307\260#\022\024\n\r" + + "\020STATE_PROCESSING\020\241\307\260#\022\024\n" + + "\r" + "STATE_UNKNOWN\020\334\324\212n\022\031\n" + "\021STATE_UNSPECIFIED\020\311\320\274\340\001B\n\n" + "\010_rolloutB\017\n\r" + "_rollout_planB\010\n" + "\006_state\"\347\002\n" - + "XGlobalVmExtensionPolicyRo" - + "lloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus\022\025\n" + + "XGlobalVmExtensionPolicyRollout" + + "OperationRolloutStatusRolloutMetadataLocationRolloutStatus\022\025\n" + "\005state\030\221\211\2534 \001(\tH\000\210\001\001\"\351\001\n" + "\005State\022\023\n" + "\017UNDEFINED_STATE\020\000\022\'\n" @@ -16149,7 +16147,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_hostB\007\n" + "\005_portB\014\n\n" + "_port_nameB\025\n" - + "\023_port_specificationB\017\n\r" + + "\023_port_specificationB\017\n" + + "\r" + "_proxy_headerB\017\n\r" + "_request_pathB\013\n" + "\t_response\"\202\004\n" @@ -16171,7 +16170,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004NONE\020\270\316\222\001\022\020\n" + "\010PROXY_V1\020\254\244\267\237\001B\007\n" + "\005_hostB\007\n" - + "\005_portB\014\n\n" + + "\005_portB\014\n" + + "\n" + "_port_nameB\025\n" + "\023_port_specificationB\017\n\r" + "_proxy_headerB\017\n\r" @@ -16197,14 +16197,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_hostB\007\n" + "\005_portB\014\n\n" + "_port_nameB\025\n" - + "\023_port_specificationB\017\n" - + "\r" + + "\023_port_specificationB\017\n\r" + "_proxy_headerB\017\n\r" + "_request_pathB\013\n" + "\t_response\"\306\001\n" + "#HealthAggregationPoliciesScopedList\022X\n" - + "\033health_aggregation_policies\030\220\210\342)" - + " \003(\01320.google.cloud.compute.v1.HealthAggregationPolicy\0229\n" + + "\033health_aggregation_policies\030\220\210\342) \003(\0132" + + "0.google.cloud.compute.v1.HealthAggregationPolicy\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\252\005\n" @@ -16242,8 +16241,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_self_link_with_id\"\347\003\n" + "%HealthAggregationPolicyAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022[\n" - + "\005items\030\300\317\367/ \003(\0132I.google.cloud.compute.v1.Healt" - + "hAggregationPolicyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132I.google.cloud.compute.v1.HealthAggr" + + "egationPolicyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -16252,8 +16251,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032j\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022K\n" - + "\005value\030\002 \001(\0132<.google.cloud.compute.v1.H" - + "ealthAggregationPoliciesScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\0132<.google.cloud.compute.v1.HealthAggregationPoliciesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -16261,8 +16260,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\277\002\n" + "\033HealthAggregationPolicyList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022B\n" - + "\005items\030\300\317\367/" - + " \003(\01320.google.cloud.compute.v1.HealthAggregationPolicy\022\024\n" + + "\005items\030\300\317\367/ " + + "\003(\01320.google.cloud.compute.v1.HealthAggregationPolicy\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -16284,15 +16283,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021healthy_threshold\030\311\220\242\300\001 \001(\005H\005\210\001\001\022M\n" + "\022http2_health_check\030\332\265\265\005" + " \001(\0132).google.cloud.compute.v1.HTTP2HealthCheckH\006\210\001\001\022L\n" - + "\021http_health_check\030\274\247\336\304\001" - + " \001(\0132(.google.cloud.compute.v1.HTTPHealthCheckH\007\210\001\001\022N\n" - + "\022https_health_check\030\271\230\366\317\001" - + " \001(\0132).google.cloud.compute.v1.HTTPSHealthCheckH\010\210\001\001\022\020\n" + + "\021http_health_check\030\274\247\336\304\001 " + + "\001(\0132(.google.cloud.compute.v1.HTTPHealthCheckH\007\210\001\001\022N\n" + + "\022https_health_check\030\271\230\366\317\001 \001" + + "(\0132).google.cloud.compute.v1.HTTPSHealthCheckH\010\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\t\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\n" + "\210\001\001\022J\n\n" - + "log_config\030\235\321\301\247\001 \001(\0132" - + "-.google.cloud.compute.v1.HealthCheckLogConfigH\013\210\001\001\022\024\n" + + "log_config\030\235\321\301\247\001 \001(\0132-.goo" + + "gle.cloud.compute.v1.HealthCheckLogConfigH\013\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\014\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\r" + "\210\001\001\022\032\n" @@ -16337,9 +16336,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024_unhealthy_threshold\"\247\002\n" + "\017HealthCheckList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0226\n" - + "\005items\030\300\317\367/ \003(\0132$.google.cloud.compute.v1.HealthCheck\022\024\n" - + "\004kind\030\224\367\310\001", - " \001(\tH\001\210\001\001\022\037\n" + + "\005items\030\300\317\367/ \003(\0132$.google.cloud.", + "compute.v1.HealthCheck\022\024\n" + + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" @@ -16384,8 +16383,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_link\"\327\003\n" + " HealthCheckServiceAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022V\n" - + "\005items\030\300\317\367/ \003(\0132D.go" - + "ogle.cloud.compute.v1.HealthCheckServiceAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132D.google." + + "cloud.compute.v1.HealthCheckServiceAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -16394,8 +16393,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032d\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022E\n" - + "\005value\030\002 \001(\01326.goo" - + "gle.cloud.compute.v1.HealthCheckServicesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01326.google.c" + + "loud.compute.v1.HealthCheckServicesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -16406,8 +16405,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025_health_check_service\"\266\002\n" + "\027HealthCheckServicesList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022=\n" - + "\005items\030\300\317\367/ \003(\0132+.go" - + "ogle.cloud.compute.v1.HealthCheckService\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132+.google.cloud.compute.v1.HealthCheckService\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -16426,8 +16425,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\304\003\n" + "\032HealthChecksAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022P\n" - + "\005items\030\300\317\367/ " - + "\003(\0132>.google.cloud.compute.v1.HealthChecksAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132>" + + ".google.cloud.compute.v1.HealthChecksAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -16436,16 +16435,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032]\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022>\n" - + "\005value\030\002 \001(\0132/.g" - + "oogle.cloud.compute.v1.HealthChecksScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132/.google" + + ".cloud.compute.v1.HealthChecksScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\240\001\n" + "\026HealthChecksScopedList\022?\n\r" - + "health_checks\030\256\257\346\325\001" - + " \003(\0132$.google.cloud.compute.v1.HealthCheck\0229\n" + + "health_checks\030\256\257\346\325\001 \003(\013" + + "2$.google.cloud.compute.v1.HealthCheck\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\316\004\n" @@ -16479,8 +16478,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_source_type\"\305\003\n" + "\032HealthSourceAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022P\n" - + "\005items\030\300\317\367/ \003(\0132>.google.cloud.compute.v1" - + ".HealthSourceAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132>.google.cloud.compute.v1.HealthSourceAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -16489,8 +16488,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032^\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022?\n" - + "\005value\030\002" - + " \001(\01320.google.cloud.compute.v1.HealthSourcesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001" + + "(\01320.google.cloud.compute.v1.HealthSourcesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -16499,8 +16498,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022HealthSourceHealth\022\035\n" + "\014health_state\030\356\351\277\232\001 \001(\tH\000\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022U\n" - + "\007sources\030\270\267\362; \003(\0132A.google.cloud.compu" - + "te.v1.HealthSourcesGetHealthResponseSourceInfo\"^\n" + + "\007sources\030\270\267\362; \003(\0132A.google.cloud.compute.v1" + + ".HealthSourcesGetHealthResponseSourceInfo\"^\n" + "\013HealthState\022\032\n" + "\026UNDEFINED_HEALTH_STATE\020\000\022\017\n" + "\007HEALTHY\020\375\252\333\321\001\022\021\n" @@ -16518,12 +16517,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n\n" + + "\020_next_page_tokenB\014\n" + + "\n" + "_self_linkB\n\n" + "\010_warning\"\347\001\n" + "(HealthSourcesGetHealthResponseSourceInfo\022b\n" - + "\010backends\030\337\230\313\363\001 \003(\0132L.google.cloud.compute.v" - + "1.HealthSourcesGetHealthResponseSourceInfoBackendInfo\022 \n" + + "\010backends\030\337\230\313\363\001 \003(\0132L.google.cloud.compute.v1.Hea" + + "lthSourcesGetHealthResponseSourceInfoBackendInfo\022 \n" + "\017forwarding_rule\030\376\245\335\200\001 \001(\tH\000\210\001\001\022\026\n" + "\006source\030\233\320\301T \001(\tH\001\210\001\001B\022\n" + "\020_forwarding_ruleB\t\n" @@ -16536,14 +16536,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_groupB\031\n" + "\027_healthy_endpoint_count\"\243\001\n" + "\027HealthSourcesScopedList\022A\n" - + "\016health_sources\030\325\321\334\275\001" - + " \003(\0132%.google.cloud.compute.v1.HealthSource\0229\n" + + "\016health_sources\030\325\321\334\275\001 \003" + + "(\0132%.google.cloud.compute.v1.HealthSource\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\362\006\n" + "\014HealthStatus\022N\n" - + "\013annotations\030\244\366\2655 \003(\01326" - + ".google.cloud.compute.v1.HealthStatus.AnnotationsEntry\022 \n" + + "\013annotations\030\244\366\2655 \003(\01326.goog" + + "le.cloud.compute.v1.HealthStatus.AnnotationsEntry\022 \n" + "\017forwarding_rule\030\376\245\335\200\001 \001(\tH\000\210\001\001\022\"\n" + "\022forwarding_rule_ip\030\210\254\221R \001(\tH\001\210\001\001\022\035\n" + "\014health_state\030\356\351\277\232\001 \001(\tH\002\210\001\001\022\030\n" @@ -16580,14 +16580,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_weightB\017\n\r" + "_weight_error\"\324\005\n" + "\036HealthStatusForNetworkEndpoint\022R\n" - + "\017backend_service\030\212\300\256\222\001 \001(\01320.google.clou" - + "d.compute.v1.BackendServiceReferenceH\000\210\001\001\022R\n" - + "\017forwarding_rule\030\376\245\335\200\001 \001(\01320.google." - + "cloud.compute.v1.ForwardingRuleReferenceH\001\210\001\001\022L\n" - + "\014health_check\030\345\252\244\223\001 \001(\0132-.google" - + ".cloud.compute.v1.HealthCheckReferenceH\002\210\001\001\022[\n" - + "\024health_check_service\030\333\233\335\302\001 \001(\01324." - + "google.cloud.compute.v1.HealthCheckServiceReferenceH\003\210\001\001\022\035\n" + + "\017backend_service\030\212\300\256\222\001" + + " \001(\01320.google.cloud.compute.v1.BackendServiceReferenceH\000\210\001\001\022R\n" + + "\017forwarding_rule\030\376\245\335\200\001 \001(\01320.google.cloud" + + ".compute.v1.ForwardingRuleReferenceH\001\210\001\001\022L\n" + + "\014health_check\030\345\252\244\223\001 \001(\0132-.google.clou" + + "d.compute.v1.HealthCheckReferenceH\002\210\001\001\022[\n" + + "\024health_check_service\030\333\233\335\302\001 \001(\01324.googl" + + "e.cloud.compute.v1.HealthCheckServiceReferenceH\003\210\001\001\022\035\n" + "\014health_state\030\356\351\277\232\001 \001(\tH\004\210\001\001\022!\n" + "\021ipv6_health_state\030\306\200\340Z \001(\tH\005\210\001\001\"p\n" + "\013HealthState\022\032\n" @@ -16635,7 +16635,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_descriptionB\005\n" + "\003_idB\007\n" + "\005_kindB\007\n" - + "\005_nameB\014\n\n" + + "\005_nameB\014\n" + + "\n" + "_self_linkB\024\n" + "\022_self_link_with_idB\010\n" + "\006_stateB\t\n" @@ -16655,10 +16656,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005hosts\030\313\377\266/ \003(\t\022\035\n" + "\014path_matcher\030\230\276\212\241\001 \001(\tH\001\210\001\001B\016\n" + "\014_descriptionB\017\n\r" - + "_path_matcher\"\224\001\n\n" + + "_path_matcher\"\224\001\n" + + "\n" + "HostStatus\022Q\n" - + "\021physical_topology\030\327\251\264\205\001" - + " \001(\0132-.google.cloud.compute.v1.HostPhysicalTopologyH\000\210\001\001\022\035\n" + + "\021physical_topology\030\327\251\264\205\001 \001" + + "(\0132-.google.cloud.compute.v1.HostPhysicalTopologyH\000\210\001\001\022\035\n" + "\021running_instances\030\376\327\334\377\001 \003(\tB\024\n" + "\022_physical_topology\"\310\001\n" + "\026HostsGetVersionRequest\022\032\n" @@ -16697,8 +16699,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_fixed_delayB\r\n" + "\013_percentage\"\250\001\n" + "\022HttpFaultInjection\022>\n" - + "\005abort\030\260\306\224, \001(\0132\'.go" - + "ogle.cloud.compute.v1.HttpFaultAbortH\000\210\001\001\022>\n" + + "\005abort\030\260\306\224," + + " \001(\0132\'.google.cloud.compute.v1.HttpFaultAbortH\000\210\001\001\022>\n" + "\005delay\030\203\363\302-" + " \001(\0132\'.google.cloud.compute.v1.HttpFaultDelayH\001\210\001\001B\010\n" + "\006_abortB\010\n" @@ -16774,8 +16776,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_num_retriesB\022\n" + "\020_per_try_timeout\"\307\006\n" + "\017HttpRouteAction\022C\n" - + "\014cache_policy\030\217\271\213\332\001 \001(\013" - + "2$.google.cloud.compute.v1.CachePolicyH\000\210\001\001\022A\n" + + "\014cache_policy\030\217\271\213\332\001 \001(\0132$.go" + + "ogle.cloud.compute.v1.CachePolicyH\000\210\001\001\022A\n" + "\013cors_policy\030\204\314\235\276\001" + " \001(\0132#.google.cloud.compute.v1.CorsPolicyH\001\210\001\001\022T\n" + "\026fault_injection_policy\030\227\224\352\304\001" @@ -16786,12 +16788,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132,.google.cloud.compute.v1.RequestMirrorPolicyH\004\210\001\001\022F\n" + "\014retry_policy\030\251\345\212\033" + " \001(\0132(.google.cloud.compute.v1.HttpRetryPolicyH\005\210\001\001\022;\n" - + "\007timeout\030\341\232\275\215\001" - + " \001(\0132!.google.cloud.compute.v1.DurationH\006\210\001\001\022A\n" + + "\007timeout\030\341\232\275\215\001 \001(" + + "\0132!.google.cloud.compute.v1.DurationH\006\210\001\001\022A\n" + "\013url_rewrite\030\274\375\252\202\001" + " \001(\0132#.google.cloud.compute.v1.UrlRewriteH\007\210\001\001\022V\n" - + "\031weighted_backend_services\030\321\307\332\240\001 \003(\0132/.googl" - + "e.cloud.compute.v1.WeightedBackendServiceB\017\n\r" + + "\031weighted_backend_services\030\321\307\332\240\001" + + " \003(\0132/.google.cloud.compute.v1.WeightedBackendServiceB\017\n\r" + "_cache_policyB\016\n" + "\014_cors_policyB\031\n" + "\027_fault_injection_policyB\026\n" @@ -16799,22 +16801,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026_request_mirror_policyB\017\n\r" + "_retry_policyB\n\n" + "\010_timeoutB\016\n" - + "\014_url_rewrite\"\350\004\n" - + "\r" + + "\014_url_rewrite\"\350\004\n\r" + "HttpRouteRule\022`\n" + "\034custom_error_response_policy\030\353\370\332`" + " \001(\01322.google.cloud.compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022I\n\r" + "header_action\030\250\240\270\234\001" + " \001(\0132).google.cloud.compute.v1.HttpHeaderActionH\002\210\001\001\022D\n" - + "\013match_rules\030\375\273\261\263\001 \003" - + "(\0132+.google.cloud.compute.v1.HttpRouteRuleMatch\022\031\n" + + "\013match_rules\030\375\273\261\263\001 \003(\0132+." + + "google.cloud.compute.v1.HttpRouteRuleMatch\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\003\210\001\001\022G\n" + "\014route_action\030\354\251\271\312\001" + " \001(\0132(.google.cloud.compute.v1.HttpRouteActionH\004\210\001\001\022\030\n" + "\007service\030\265\215\217\262\001 \001(\tH\005\210\001\001\022J\n" - + "\014url_redirect\030\254\241\230\301\001 \001(\0132" - + "+.google.cloud.compute.v1.HttpRedirectActionH\006\210\001\001B\037\n" + + "\014url_redirect\030\254\241\230\301\001 \001(\0132+.goo" + + "gle.cloud.compute.v1.HttpRedirectActionH\006\210\001\001B\037\n" + "\035_custom_error_response_policyB\016\n" + "\014_descriptionB\020\n" + "\016_header_actionB\013\n" @@ -16827,8 +16828,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016header_matches\030\201\353\310\254\001" + " \003(\0132(.google.cloud.compute.v1.HttpHeaderMatch\022\034\n" + "\013ignore_case\030\375\222\264\335\001 \001(\010H\001\210\001\001\022E\n" - + "\020metadata_filters\030\353\315\314\335\001 \003(" - + "\0132\'.google.cloud.compute.v1.MetadataFilter\022$\n" + + "\020metadata_filters\030\353\315\314\335\001" + + " \003(\0132\'.google.cloud.compute.v1.MetadataFilter\022$\n" + "\023path_template_match\030\232\302\263\213\001 \001(\tH\002\210\001\001\022\034\n" + "\014prefix_match\030\330\363\374z \001(\tH\003\210\001\001\022U\n" + "\027query_parameter_matches\030\346\225\276\210\001" @@ -16852,8 +16853,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021guest_os_features\030\321\340\347%" + " \003(\0132\'.google.cloud.compute.v1.GuestOsFeature\022\020\n" + "\002id\030\233\032 \001(\004H\010\210\001\001\022U\n" - + "\024image_encryption_key\030\207\316\373\264\001 \001(\013" - + "2..google.cloud.compute.v1.CustomerEncryptionKeyH\t\210\001\001\022\024\n" + + "\024image_encryption_key\030\207\316\373\264\001 \001(\0132..go" + + "ogle.cloud.compute.v1.CustomerEncryptionKeyH\t\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\n" + "\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\013\210\001\001\022>\n" @@ -16905,7 +16906,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005READY\020\203\303\217%B\017\n\r" + "_architectureB\025\n" + "\023_archive_size_bytesB\025\n" - + "\023_creation_timestampB\r\n" + + "\023_creation_timestampB\r" + + "\n" + "\013_deprecatedB\016\n" + "\014_descriptionB\017\n\r" + "_disk_size_gbB\036\n" @@ -16951,8 +16953,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\253\001\n" + "\013ImageParams\022`\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132=.google.cloud.compute" - + ".v1.ImageParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001" + + " \003(\0132=.google.cloud.compute.v1.ImageParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"L\n" @@ -16978,12 +16980,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\216\002\n" + "\022InitialStateConfig\0229\n" + "\003dbs\030\265\207\006 \003(\0132*.google.cloud.compute.v1.FileContentBuffer\022;\n" - + "\004dbxs\030\371\347\273\001 \003(\0132*.g" - + "oogle.cloud.compute.v1.FileContentBuffer\022;\n" - + "\004keks\030\302\330\310\001" - + " \003(\0132*.google.cloud.compute.v1.FileContentBuffer\022<\n" - + "\002pk\030\373\033 \001(\0132*.goo", - "gle.cloud.compute.v1.FileContentBufferH\000\210\001\001B\005\n" + + "\004dbxs\030\371\347\273\001" + + " \003(\0132*.google.cloud.compute.v1.FileContentBuffer\022;\n" + + "\004keks\030\302\330\310\001 \003(\0132*.google.cloud.compute.v1.F", + "ileContentBuffer\022<\n" + + "\002pk\030\373\033 \001(\0132*.google.c" + + "loud.compute.v1.FileContentBufferH\000\210\001\001B\005\n" + "\003_pk\"\312\001\n" + "\024InsertAddressRequest\022C\n" + "\020address_resource\030\371\227\336\346\001 \001(\0132" @@ -17010,15 +17012,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\277\001\n" + "\033InsertBackendServiceRequest\022R\n" - + "\030backend_service_resource\030\243\201\337\245\001" - + " \001(\0132\'.google.cloud.compute.v1.BackendServiceB\003\340A\002\022!\n" + + "\030backend_service_resource\030\243\201\337\245\001 \001(\013" + + "2\'.google.cloud.compute.v1.BackendServiceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\366\001\n" + "\035InsertCrossSiteNetworkRequest\022V\n" - + "\033cross_site_network_resource\030\270\344\335\016 " - + "\001(\0132).google.cloud.compute.v1.CrossSiteNetworkB\003\340A\002\022!\n" + + "\033cross_site_network_resource\030\270\344\335\016 \001(\0132)" + + ".google.cloud.compute.v1.CrossSiteNetworkB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\035\n\r" @@ -17059,16 +17061,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\340\001\n" + "\033InsertForwardingRuleRequest\022R\n" - + "\030forwarding_rule_resource\030\257\300\320\217\001 \001" - + "(\0132\'.google.cloud.compute.v1.ForwardingRuleB\003\340A\002\022!\n" + + "\030forwarding_rule_resource\030\257\300\320\217\001 \001(\0132\'." + + "google.cloud.compute.v1.ForwardingRuleB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\345\001\n" + "\036InsertFutureReservationRequest\022X\n" - + "\033future_reservation_resource\030\235\230\310\336\001 \001(\0132*.go" - + "ogle.cloud.compute.v1.FutureReservationB\003\340A\002\022!\n" + + "\033future_reservation_resource\030\235\230\310\336\001 \001(\0132*.google." + + "cloud.compute.v1.FutureReservationB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -17083,8 +17085,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\305\001\n" + "!InsertGlobalForwardingRuleRequest\022R\n" - + "\030forwarding_rule_resource\030\257\300\320\217\001" - + " \001(\0132\'.google.cloud.compute.v1.ForwardingRuleB\003\340A\002\022!\n" + + "\030forwarding_rule_resource\030\257\300\320\217\001 \001(\013" + + "2\'.google.cloud.compute.v1.ForwardingRuleB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -17099,8 +17101,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ")InsertGlobalPublicDelegatedPrefixeRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022`\n" - + " public_delegated_prefix_resource\030\205\370\330\026 \001(\0132..goo" - + "gle.cloud.compute.v1.PublicDelegatedPrefixB\003\340A\002\022\032\n\n" + + " public_delegated_prefix_resource\030\205\370\330\026 \001(\0132..google.c" + + "loud.compute.v1.PublicDelegatedPrefixB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\333\001\n" + "$InsertGlobalVmExtensionPolicyRequest\022e\n" @@ -17123,13 +17125,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\036.google.cloud.compute.v1.ImageB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001B\017\n" - + "\r" + + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001B\017\n\r" + "_force_createB\r\n" + "\013_request_id\"\356\001\n" + "!InsertInstanceGroupManagerRequest\022^\n" - + "\037instance_group_manager_resource\030\212\212\276| \001(\0132-.google" - + ".cloud.compute.v1.InstanceGroupManagerB\003\340A\002\022!\n" + + "\037instance_group_manager_resource\030\212\212\276| \001(\0132-.google.clou" + + "d.compute.v1.InstanceGroupManagerB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -17139,8 +17140,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".InsertInstanceGroupManagerResizeRequestRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022{\n" + ".instance_group_manager_resize_request_resource\030\355\276\265\337\001" - + " \001(\0132:.google.cloud.com" - + "pute.v1.InstanceGroupManagerResizeRequestB\003\340A\002\022!\n" + + " \001(\0132:.google.cloud.compute." + + "v1.InstanceGroupManagerResizeRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -17154,8 +17155,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" - + "\340A\002\362G\004zoneB\r" - + "\n" + + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\317\002\n" + "\025InsertInstanceRequest\022D\n" + "\021instance_resource\030\370\360\376f" @@ -17179,8 +17179,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\266\002\n" + "!InsertInstantSnapshotGroupRequest\022^\n" - + "\037instant_snapshot_group_resource\030\313\232\226E \001(\0132-.googl" - + "e.cloud.compute.v1.InstantSnapshotGroupB\003\340A\002\022!\n" + + "\037instant_snapshot_group_resource\030\313\232\226E \001(\0132-.google.clo" + + "ud.compute.v1.InstantSnapshotGroupB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022)\n" @@ -17200,20 +17200,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\346\001\n" + "(InsertInterconnectAttachmentGroupRequest\022l\n" - + "&interconnect_attachment_group_resource\030\371\337\341\004 \001(\01324.google.cloud" - + ".compute.v1.InterconnectAttachmentGroupB\003\340A\002\022!\n" + + "&interconnect_attachment_group_resource\030\371\337\341\004" + + " \001(\01324.google.cloud.compute.v1.InterconnectAttachmentGroupB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\250\002\n" + "#InsertInterconnectAttachmentRequest\022a\n" - + " interconnect_attachment_resource\030\371\244\240e" - + " \001(\0132/.google.cloud.compute.v1.InterconnectAttachmentB\003\340A\002\022!\n" + + " interconnect_attachment_resource\030\371\244\240e \001" + + "(\0132/.google.cloud.compute.v1.InterconnectAttachmentB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\035\n" - + "\r" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\035\n\r" + "validate_only\030\265\372\337s \001(\010H\001\210\001\001B\r\n" + "\013_request_idB\020\n" + "\016_validate_only\"\307\001\n" @@ -17225,8 +17224,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\270\001\n" + "\031InsertInterconnectRequest\022M\n" - + "\025interconnect_resource\030\237\241\314\275\001" - + " \001(\0132%.google.cloud.compute.v1.InterconnectB\003\340A\002\022!\n" + + "\025interconnect_resource\030\237\241\314\275\001 " + + "\001(\0132%.google.cloud.compute.v1.InterconnectB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -17239,8 +17238,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\356\001\n" + "\031InsertMachineImageRequest\022M\n" - + "\026machine_image_resource\030\352\252\373\034" - + " \001(\0132%.google.cloud.compute.v1.MachineImageB\003\340A\002\022!\n" + + "\026machine_image_resource\030\352\252\373\034 \001" + + "(\0132%.google.cloud.compute.v1.MachineImageB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022 \n" @@ -17253,11 +17252,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" + + "\n" + "\013_request_id\"\267\002\n" + "\'InsertNetworkEdgeSecurityServiceRequest\022l\n" - + "&network_edge_security_service_resource\030\246\243\333\343\001 \001(\01323.goo" - + "gle.cloud.compute.v1.NetworkEdgeSecurityServiceB\003\340A\002\022!\n" + + "&network_edge_security_service_resource\030\246\243\333\343\001 \001(\01323.google.c" + + "loud.compute.v1.NetworkEdgeSecurityServiceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -17290,8 +17290,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\361\001\n" + "\026InsertNodeGroupRequest\022\"\n" + "\022initial_node_count\030\355\310\247\" \001(\005B\003\340A\002\022H\n" - + "\023node_group_resource\030\253\263\372\360\001 \001" - + "(\0132\".google.cloud.compute.v1.NodeGroupB\003\340A\002\022!\n" + + "\023node_group_resource\030\253\263\372\360\001 \001(\0132\"." + + "google.cloud.compute.v1.NodeGroupB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -17310,8 +17310,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tparent_id\030\320\341\232\333\001 \001(\tB\014\362G" + "\tparent_idH\000\210\001\001\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022Q\n" - + "\030security_policy_resource\030\374\252\211g \001(" - + "\0132\'.google.cloud.compute.v1.SecurityPolicyB\003\340A\002B\014\n\n" + + "\030security_policy_resource\030\374\252\211g \001(\0132\'.g" + + "oogle.cloud.compute.v1.SecurityPolicyB\003\340A\002B\014\n\n" + "_parent_idB\r\n" + "\013_request_id\"\343\001\n" + "\034InsertPacketMirroringRequest\022T\n" @@ -17325,21 +17325,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$InsertPublicAdvertisedPrefixeRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022b\n" - + "!public_advertised_prefix_resource\030\217\327\262o \001(\0132/.google.cl" - + "oud.compute.v1.PublicAdvertisedPrefixB\003\340A\002\022\032\n\n" + + "!public_advertised_prefix_resource\030\217\327\262o" + + " \001(\0132/.google.cloud.compute.v1.PublicAdvertisedPrefixB\003\340A\002\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\366\001\n" + "#InsertPublicDelegatedPrefixeRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022`\n" - + " public_delegated_prefix_resource\030\205\370\330\026" - + " \001(\0132..google.cloud.compute.v1.PublicDelegatedPrefixB\003\340A\002\022\037\n" + + " public_delegated_prefix_resource\030\205\370\330\026 \001(\013" + + "2..google.cloud.compute.v1.PublicDelegatedPrefixB\003\340A\002\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\330\001\n" + "\035InsertRegionAutoscalerRequest\022H\n" - + "\023autoscaler_resource\030\366\360\377b \001(\013" - + "2#.google.cloud.compute.v1.AutoscalerB\003\340A\002\022!\n" + + "\023autoscaler_resource\030\366\360\377b" + + " \001(\0132#.google.cloud.compute.v1.AutoscalerB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -17362,16 +17363,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\330\001\n" + "\035InsertRegionCommitmentRequest\022H\n" - + "\023commitment_resource\030\370\243\273t \001" - + "(\0132#.google.cloud.compute.v1.CommitmentB\003\340A\002\022!\n" + + "\023commitment_resource\030\370\243\273t \001(\0132#." + + "google.cloud.compute.v1.CommitmentB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\370\001\n" + "\'InsertRegionCompositeHealthCheckRequest\022^\n" - + "\037composite_health_check_resource\030\360\313\204? " - + "\001(\0132-.google.cloud.compute.v1.CompositeHealthCheckB\003\340A\002\022!\n" + + "\037composite_health_check_resource\030\360\313\204? \001(\0132-" + + ".google.cloud.compute.v1.CompositeHealthCheckB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -17385,12 +17386,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\014source_image\030\267\350\206\030 \001(\tH\001\210\001\001B\r\n" - + "\013_request_idB\017\n" - + "\r" + + "\013_request_idB\017\n\r" + "_source_image\"\202\002\n" + "*InsertRegionHealthAggregationPolicyRequest\022e\n" - + "\"health_aggregation_policy_resource\030\273\273\373\213\001 \001(\01320.google.c" - + "loud.compute.v1.HealthAggregationPolicyB\003\340A\002\022!\n" + + "\"health_aggregation_policy_resource\030\273\273\373\213\001 \001(\01320.google.cloud." + + "compute.v1.HealthAggregationPolicyB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -17402,7 +17402,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" + + "\n" + "\013_request_id\"\363\001\n" + "%InsertRegionHealthCheckServiceRequest\022[\n" + "\035health_check_service_resource\030\362\233\320\343\001" @@ -17431,24 +17432,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "4InsertRegionInstanceGroupManagerResizeRequestRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022{\n" + ".instance_group_manager_resize_request_resource\030\355\276\265\337\001" - + " \001(\0132:.google.cloud.compu" - + "te.v1.InstanceGroupManagerResizeRequestB\003\340A\002\022!\n" + + " \001(\0132:.google.cloud.compute.v1" + + ".InstanceGroupManagerResizeRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\353\001\n" + "#InsertRegionInstanceTemplateRequest\022U\n" - + "\032instance_template_resource\030\211\352\213\005 \001(\0132).goo" - + "gle.cloud.compute.v1.InstanceTemplateB\003\340A\002\022!\n" + + "\032instance_template_resource\030\211\352\213\005" + + " \001(\0132).google.cloud.compute.v1.InstanceTemplateB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\300\002\n" + "\'InsertRegionInstantSnapshotGroupRequest\022^\n" - + "\037instant_snapshot_group_resource\030\313\232\226E \001(" - + "\0132-.google.cloud.compute.v1.InstantSnapshotGroupB\003\340A\002\022!\n" + + "\037instant_snapshot_group_resource\030\313\232\226E \001(\0132-.g" + + "oogle.cloud.compute.v1.InstantSnapshotGroupB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -17457,24 +17458,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_idB\033\n" + "\031_source_consistency_group\"\351\001\n" + "\"InsertRegionInstantSnapshotRequest\022T\n" - + "\031instant_snapshot_resource\030\313\252\210\267\001 \001(\0132(.goo" - + "gle.cloud.compute.v1.InstantSnapshotB\003\340A\002\022!\n" + + "\031instant_snapshot_resource\030\313\252\210\267\001" + + " \001(\0132(.google.cloud.compute.v1.InstantSnapshotB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\371\001\n" + "\'InsertRegionNetworkEndpointGroupRequest\022_\n" - + "\037network_endpoint_group_resource\030\247\315\333\372\001 \001(" - + "\0132-.google.cloud.compute.v1.NetworkEndpointGroupB\003\340A\002\022!\n" + + "\037network_endpoint_group_resource\030\247\315\333\372\001 \001(\0132-.g" + + "oogle.cloud.compute.v1.NetworkEndpointGroupB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\355\001\n" + "(InsertRegionNetworkFirewallPolicyRequest\022R\n" - + "\030firewall_policy_resource\030\274\266\207\354\001" - + " \001(\0132\'.google.cloud.compute.v1.FirewallPolicyB\003\340A\002\022!\n" + + "\030firewall_policy_resource\030\274\266\207\354\001 \001" + + "(\0132\'.google.cloud.compute.v1.FirewallPolicyB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -17511,8 +17512,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Q\n" - + "\030ssl_certificate_resource\030\211\324\225V \001(" - + "\0132\'.google.cloud.compute.v1.SslCertificateB\003\340A\002B\r\n" + + "\030ssl_certificate_resource\030\211\324\225V \001(\0132\'.g" + + "oogle.cloud.compute.v1.SslCertificateB\003\340A\002B\r\n" + "\013_request_id\"\327\001\n" + "\034InsertRegionSslPolicyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -17543,8 +17544,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022R\n" - + "\031target_tcp_proxy_resource\030\313\360\311E" - + " \001(\0132\'.google.cloud.compute.v1.TargetTcpProxyB\003\340A\002B\r\n" + + "\031target_tcp_proxy_resource\030\313\360\311E " + + "\001(\0132\'.google.cloud.compute.v1.TargetTcpProxyB\003\340A\002B\r\n" + "\013_request_id\"\315\001\n" + "\031InsertRegionUrlMapRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -17555,12 +17556,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\037.google.cloud.compute.v1.UrlMapB\003\340A\002B\r\n" + "\013_request_id\"\322\001\n" + "\030InsertReservationRequest\022!\n" - + "\007project\030\231\226\301l \001(\tB\r" + + "\007project\030\231\226\301l \001(", + "\tB\r" + "\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021", - " \001(\tH\000\210\001\001\022K\n" - + "\024reservation_resource\030\241\356\364\207\001 " - + "\001(\0132$.google.cloud.compute.v1.ReservationB\003\340A\002\022\033\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022K\n" + + "\024reservation_resource\030\241\356\364\207\001 \001(\0132$" + + ".google.cloud.compute.v1.ReservationB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\337\001\n" @@ -17576,8 +17577,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022K\n" - + "\025rollout_plan_resource\030\326\344\265\022 \001" - + "(\0132$.google.cloud.compute.v1.RolloutPlanB\003\340A\002B\r\n" + + "\025rollout_plan_resource\030\326\344\265\022 \001(\0132$." + + "google.cloud.compute.v1.RolloutPlanB\003\340A\002B\r\n" + "\013_request_id\"\242\001\n" + "\022InsertRouteRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -17589,8 +17590,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023InsertRouterRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" - + "\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022@\n" + "\017router_resource\030\304\200\202J" + " \001(\0132\037.google.cloud.compute.v1.RouterB\003\340A\002B\r\n" @@ -17599,8 +17599,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Q\n" - + "\030security_policy_resource\030\374\252\211g \001(\0132\'" - + ".google.cloud.compute.v1.SecurityPolicyB\003\340A\002\022\035\n\r" + + "\030security_policy_resource\030\374\252\211g \001(\0132\'.goog" + + "le.cloud.compute.v1.SecurityPolicyB\003\340A\002\022\035\n\r" + "validate_only\030\265\372\337s \001(\010H\001\210\001\001B\r\n" + "\013_request_idB\020\n" + "\016_validate_only\"\351\001\n" @@ -17609,8 +17609,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022X\n" - + "\033service_attachment_resource\030\240\266\304\341\001 \001(\013" - + "2*.google.cloud.compute.v1.ServiceAttachmentB\003\340A\002B\r\n" + + "\033service_attachment_resource\030\240\266\304\341\001 \001(\0132*.go" + + "ogle.cloud.compute.v1.ServiceAttachmentB\003\340A\002B\r\n" + "\013_request_id\"\254\001\n" + "\025InsertSnapshotRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -17675,8 +17675,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022R\n" - + "\030target_instance_resource\030\312\342\240\315\001" - + " \001(\0132\'.google.cloud.compute.v1.TargetInstanceB\003\340A\002\022\033\n" + + "\030target_instance_resource\030\312\342\240\315\001 \001(" + + "\0132\'.google.cloud.compute.v1.TargetInstanceB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\323\001\n" @@ -17692,15 +17692,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022R\n" - + "\031target_ssl_proxy_resource\030\300\375\333C " - + "\001(\0132\'.google.cloud.compute.v1.TargetSslProxyB\003\340A\002B\r\n" + + "\031target_ssl_proxy_resource\030\300\375\333C \001(\0132\'" + + ".google.cloud.compute.v1.TargetSslProxyB\003\340A\002B\r\n" + "\013_request_id\"\277\001\n" + "\033InsertTargetTcpProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022R\n" - + "\031target_tcp_proxy_resource\030\313\360\311E \001(\0132\'." - + "google.cloud.compute.v1.TargetTcpProxyB\003\340A\002B\r\n" + + "\031target_tcp_proxy_resource\030\313\360\311E" + + " \001(\0132\'.google.cloud.compute.v1.TargetTcpProxyB\003\340A\002B\r" + + "\n" + "\013_request_id\"\345\001\n" + "\035InsertTargetVpnGatewayRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -17714,8 +17715,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022A\n" - + "\020url_map_resource\030\341\220\267P" - + " \001(\0132\037.google.cloud.compute.v1.UrlMapB\003\340A\002B\r\n" + + "\020url_map_resource\030\341\220\267P \001(" + + "\0132\037.google.cloud.compute.v1.UrlMapB\003\340A\002B\r\n" + "\013_request_id\"\323\001\n" + "\027InsertVpnGatewayRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -17753,32 +17754,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\201!\n" + "\010Instance\022\\\n" - + "\031advanced_machine_features\030\262\347\252\303\001 \001(\01320.g" - + "oogle.cloud.compute.v1.AdvancedMachineFeaturesH\000\210\001\001\022\037\n" + + "\031advanced_machine_features\030\262\347\252\303\001 \001(\01320.google" + + ".cloud.compute.v1.AdvancedMachineFeaturesH\000\210\001\001\022\037\n" + "\016can_ip_forward\030\374\206\204\337\001 \001(\010H\001\210\001\001\022b\n" - + "\034confidential_instance_config\030\365\222\372\351\001" - + " \001(\01323.google.cloud.compute.v1.ConfidentialInstanceConfigH\002\210\001\001\022\035\n" + + "\034confidential_instance_config\030\365\222\372\351\001 \001(" + + "\01323.google.cloud.compute.v1.ConfidentialInstanceConfigH\002\210\001\001\022\035\n" + "\014cpu_platform\030\252\352\321\303\001 \001(\tH\003\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\004\210\001\001\022$\n" + "\023deletion_protection\030\352\377\262\332\001 \001(\010H\005\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\006\210\001\001\0227\n" + "\005disks\030\366\314\312- \003(\0132%.google.cloud.compute.v1.AttachedDisk\022F\n" - + "\016display_device\030\363\210\274{ " - + "\001(\0132&.google.cloud.compute.v1.DisplayDeviceH\007\210\001\001\022\033\n" + + "\016display_device\030\363\210\274{ \001(\0132&" + + ".google.cloud.compute.v1.DisplayDeviceH\007\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\010\210\001\001\022J\n" + "\022guest_accelerators\030\357\314\207\335\001" + " \003(\0132*.google.cloud.compute.v1.AcceleratorConfig\022\030\n" + "\010hostname\030\263\270\205q \001(\tH\t\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\n" + "\210\001\001\022W\n" - + "\027instance_encryption_key\030\215\301\357\036 \001(\0132..goog" - + "le.cloud.compute.v1.CustomerEncryptionKeyH\013\210\001\001\022*\n" + + "\027instance_encryption_key\030\215\301\357\036 \001(\0132..google.cl" + + "oud.compute.v1.CustomerEncryptionKeyH\013\210\001\001\022*\n" + "\032key_revocation_action_type\030\342\334\300p \001(\tH\014\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\r" + "\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\016\210\001\001\022A\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\0132-.google.cloud.compute.v1.Instance.LabelsEntry\022%\n" + + "\006labels\030\377\277\301\356\001 \003" + + "(\0132-.google.cloud.compute.v1.Instance.LabelsEntry\022%\n" + "\024last_start_timestamp\030\320\243\321\323\001 \001(\tH\017\210\001\001\022$\n" + "\023last_stop_timestamp\030\342\333\354\304\001 \001(\tH\020\210\001\001\022)\n" + "\030last_suspended_timestamp\030\211\251\361\251\001 \001(\tH\021\210\001\001\022)\n" @@ -17788,34 +17789,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132!.google.cloud.compute.v1.MetadataH\024\210\001\001\022 \n" + "\020min_cpu_platform\030\367\233\352s \001(\tH\025\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\026\210\001\001\022H\n" - + "\022network_interfaces\030\213\332\222\031 \003(\0132).go" - + "ogle.cloud.compute.v1.NetworkInterface\022^\n" - + "\032network_performance_config\030\342\227\370\275\001 \001(\01321" - + ".google.cloud.compute.v1.NetworkPerformanceConfigH\027\210\001\001\022?\n" - + "\006params\030\206\363\253% \001(\0132\'.goog" - + "le.cloud.compute.v1.InstanceParamsH\030\210\001\001\022*\n" + + "\022network_interfaces\030\213\332\222\031" + + " \003(\0132).google.cloud.compute.v1.NetworkInterface\022^\n" + + "\032network_performance_config\030\342\227\370\275\001 \001(\01321.goog" + + "le.cloud.compute.v1.NetworkPerformanceConfigH\027\210\001\001\022?\n" + + "\006params\030\206\363\253%" + + " \001(\0132\'.google.cloud.compute.v1.InstanceParamsH\030\210\001\001\022*\n" + "\032private_ipv6_google_access\030\216\314\202\027 \001(\tH\031\210\001\001\022R\n" - + "\024reservation_affinity\030\273\270\242K \001(\0132,.g" - + "oogle.cloud.compute.v1.ReservationAffinityH\032\210\001\001\022\034\n" + + "\024reservation_affinity\030\273\270\242K \001(\0132,.google" + + ".cloud.compute.v1.ReservationAffinityH\032\210\001\001\022\034\n" + "\021resource_policies\030\341\234\314\n" + " \003(\t\022H\n" + "\017resource_status\030\303\372\367v" + " \001(\0132\'.google.cloud.compute.v1.ResourceStatusH\033\210\001\001\022\036\n\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\034\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\035\210\001\001\022@\n\n" - + "scheduling\030\224\313\261\270\001 \001(\0132" - + "#.google.cloud.compute.v1.SchedulingH\036\210\001\001\022\032\n" + + "scheduling\030\224\313\261\270\001" + + " \001(\0132#.google.cloud.compute.v1.SchedulingH\036\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\037\210\001\001\022E\n" + "\020service_accounts\030\260\304\253\204\001" + " \003(\0132\'.google.cloud.compute.v1.ServiceAccount\022Y\n" + "\030shielded_instance_config\030\265\213\221\006" + " \001(\0132/.google.cloud.compute.v1.ShieldedInstanceConfigH \210\001\001\022l\n" - + "\"shielded_instance_integrity_policy\030\227\242\207N \001(\01328" - + ".google.cloud.compute.v1.ShieldedInstanceIntegrityPolicyH!\210\001\001\022$\n" + + "\"shielded_instance_integrity_policy\030\227\242\207N \001(\01328.goog" + + "le.cloud.compute.v1.ShieldedInstanceIntegrityPolicyH!\210\001\001\022$\n" + "\024source_machine_image\030\277\334\260\n" + " \001(\tH\"\210\001\001\022c\n" - + "#source_machine_image_encryption_key\030\243\373\371[ \001(\0132..google.clo" - + "ud.compute.v1.CustomerEncryptionKeyH#\210\001\001\022 \n" + + "#source_machine_image_encryption_key\030\243\373\371[" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH#\210\001\001\022 \n" + "\020start_restricted\030\330\320\375: \001(\010H$\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH%\210\001\001\022\037\n" + "\016status_message\030\272\311\351\215\001 \001(\tH&\210\001\001\0223\n" @@ -17900,8 +17901,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\271\003\n" + "\026InstanceAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022L\n" - + "\005items\030\300\317\367/ \003(\0132:.go" - + "ogle.cloud.compute.v1.InstanceAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132:.google." + + "cloud.compute.v1.InstanceAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -17918,8 +17919,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\251\001\n" + "\027InstanceConsumptionData\022R\n" - + "\020consumption_info\030\322\345\344E \001(\01320.goog" - + "le.cloud.compute.v1.InstanceConsumptionInfoH\000\210\001\001\022\030\n" + + "\020consumption_info\030\322\345\344E \001(\01320.google.cl" + + "oud.compute.v1.InstanceConsumptionInfoH\000\210\001\001\022\030\n" + "\010instance\030\225\251\332\010 \001(\tH\001\210\001\001B\023\n" + "\021_consumption_infoB\013\n" + "\t_instance\"\320\001\n" @@ -17934,12 +17935,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_min_node_cpus\"\207\002\n" + "\031InstanceFlexibilityPolicy\022j\n" + "\023instance_selections\030\321\204\371\n" - + " \003(\0132J.google.cloud.com" - + "pute.v1.InstanceFlexibilityPolicy.InstanceSelectionsEntry\032~\n" + + " \003(\0132J.google.cloud.compute." + + "v1.InstanceFlexibilityPolicy.InstanceSelectionsEntry\032~\n" + "\027InstanceSelectionsEntry\022\013\n" + "\003key\030\001 \001(\t\022R\n" - + "\005value\030\002 \001(\0132C.googl" - + "e.cloud.compute.v1.InstanceFlexibilityPolicyInstanceSelection:\0028\001\"\325\001\n" + + "\005value\030\002 \001(\0132C.google.clo" + + "ud.compute.v1.InstanceFlexibilityPolicyInstanceSelection:\0028\001\"\325\001\n" + "*InstanceFlexibilityPolicyInstanceSelection\0227\n" + "\005disks\030\366\314\312-" + " \003(\0132%.google.cloud.compute.v1.AttachedDisk\022\030\n\r" @@ -17947,7 +17948,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020min_cpu_platform\030\367\233\352s \001(\tH\000\210\001\001\022\024\n" + "\004rank\030\254\230\325\001 \001(\003H\001\210\001\001B\023\n" + "\021_min_cpu_platformB\007\n" - + "\005_rank\"\225\004\n\r" + + "\005_rank\"\225\004\n" + + "\r" + "InstanceGroup\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\033\n" @@ -17978,19 +17980,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\310\003\n" + "\033InstanceGroupAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022Q\n" - + "\005items\030\300\317\367/" - + " \003(\0132?.google.cloud.compute.v1.InstanceGroupAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\013" + + "2?.google.cloud.compute.v1.InstanceGroupAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\004\210\001\001\032_\n" - + "\n" + + " .google.cloud.compute.v1.WarningH\004\210\001\001\032_\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022@\n" - + "\005value\030\002 \001(\0132" - + "1.google.cloud.compute.v1.InstanceGroupsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01321.goo" + + "gle.cloud.compute.v1.InstanceGroupsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -18010,25 +18011,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\367\023\n" + "\024InstanceGroupManager\022e\n" - + "\024all_instances_config\030\201\256\3305 \001(\0132?.g" - + "oogle.cloud.compute.v1.InstanceGroupManagerAllInstancesConfigH\000\210\001\001\022a\n" - + "\025auto_healing_policies\030\205\347\350\331\001 \003(\0132>.google.cloud.com" - + "pute.v1.InstanceGroupManagerAutoHealingPolicy\022#\n" + + "\024all_instances_config\030\201\256\3305 \001(\0132?.google" + + ".cloud.compute.v1.InstanceGroupManagerAllInstancesConfigH\000\210\001\001\022a\n" + + "\025auto_healing_policies\030\205\347\350\331\001 \003(\0132>.google.cloud.compute." + + "v1.InstanceGroupManagerAutoHealingPolicy\022#\n" + "\022base_instance_name\030\207\226\305\271\001 \001(\tH\001\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022\\\n" - + "\017current_actions\030\267\310\234N \001(\0132;.google.clou" - + "d.compute.v1.InstanceGroupManagerActionsSummaryH\003\210\001\001\022\034\n" + + "\017current_actions\030\267\310\234N \001(\0132;.google.cloud.com" + + "pute.v1.InstanceGroupManagerActionsSummaryH\003\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022Q\n" - + "\023distribution_policy\030\315\356\362\376\001 \001(\0132+.go" - + "ogle.cloud.compute.v1.DistributionPolicyH\005\210\001\001\022\033\n" + + "\023distribution_policy\030\315\356\362\376\001 \001(\0132+.google." + + "cloud.compute.v1.DistributionPolicyH\005\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\006\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\007\210\001\001\022s\n" + "\033instance_flexibility_policy\030\202\216\354\014" - + " \001(\0132F.google.cloud.compute.v1.I" - + "nstanceGroupManagerInstanceFlexibilityPolicyH\010\210\001\001\022\036\n" + + " \001(\0132F.google.cloud.compute.v1.Instan" + + "ceGroupManagerInstanceFlexibilityPolicyH\010\210\001\001\022\036\n" + "\016instance_group\030\325\324\325& \001(\tH\t\210\001\001\022p\n" - + "\031instance_lifecycle_policy\030\221\264\315\325\001 \001(\013" - + "2D.google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicyH\n" + + "\031instance_lifecycle_policy\030\221\264\315\325\001 \001(\0132D.go" + + "ogle.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicyH\n" + "\210\001\001\022\"\n" + "\021instance_template\030\344\201\273\223\001 \001(\tH\013\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\014\210\001\001\022/\n" @@ -18039,27 +18040,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132\".google.cloud.compute.v1.NamedPort\022\026\n" + "\006region\030\364\315\240B \001(\tH\017\210\001\001\022`\n" + "\021resource_policies\030\341\234\314\n" - + " \001(\0132" - + "=.google.cloud.compute.v1.InstanceGroupManagerResourcePoliciesH\020\210\001\001\022\036\n\r" + + " \001(\0132=.goo" + + "gle.cloud.compute.v1.InstanceGroupManagerResourcePoliciesH\020\210\001\001\022\036\n\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\021\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\022\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\023\210\001\001\022[\n" - + "\016standby_policy\030\204\206\216\356\001 \001(\0132:.google.clo" - + "ud.compute.v1.InstanceGroupManagerStandbyPolicyH\024\210\001\001\022H\n" - + "\017stateful_policy\030\205\303\325\026 \001(\013" - + "2\'.google.cloud.compute.v1.StatefulPolicyH\025\210\001\001\022K\n" - + "\006status\030\362\237\267V \001(\01323.google.cloud" - + ".compute.v1.InstanceGroupManagerStatusH\026\210\001\001\022\030\n" + + "\016standby_policy\030\204\206\216\356\001 \001(\0132:.google.cloud.co" + + "mpute.v1.InstanceGroupManagerStandbyPolicyH\024\210\001\001\022H\n" + + "\017stateful_policy\030\205\303\325\026 \001(\0132\'.go" + + "ogle.cloud.compute.v1.StatefulPolicyH\025\210\001\001\022K\n" + + "\006status\030\362\237\267V \001(\01323.google.cloud.comp" + + "ute.v1.InstanceGroupManagerStatusH\026\210\001\001\022\030\n" + "\014target_pools\030\251\237\240\240\001 \003(\t\022\033\n" + "\013target_size\030\357\363\375\035 \001(\005H\027\210\001\001\022a\n" + "\022target_size_policy\030\202\333\263=" + " \001(\0132=.google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicyH\030\210\001\001\022#\n" + "\023target_stopped_size\030\241\326\223\001 \001(\005H\031\210\001\001\022&\n" + "\025target_suspended_size\030\323\210\364\222\001 \001(\005H\032\210\001\001\022X\n\r" - + "update_policy\030\350\312\352S \001(\01329.google.cloud.comp" - + "ute.v1.InstanceGroupManagerUpdatePolicyH\033\210\001\001\022I\n" - + "\010versions\030\233\375\271M \003(\01324.google.cloud" - + ".compute.v1.InstanceGroupManagerVersion\022\024\n" + + "update_policy\030\350\312\352S \001(\01329.google.cloud.compute.v" + + "1.InstanceGroupManagerUpdatePolicyH\033\210\001\001\022I\n" + + "\010versions\030\233\375\271M" + + " \003(\01324.google.cloud.compute.v1.InstanceGroupManagerVersion\022\024\n" + "\004zone\030\254\307\344\001 \001(\tH\034\210\001\001\"n\n" + "\033ListManagedInstancesResults\022,\n" + "(UNDEFINED_LIST_MANAGED_INSTANCES_RESULTS\020\000\022\017\n" @@ -18107,7 +18108,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010resuming\030\252\233\362_ \001(\005H\010\210\001\001\022\030\n" + "\010starting\030\300\300\363s \001(\005H\t\210\001\001\022\030\n" + "\010stopping\030\364\360\2122 \001(\005H\n" - + "\210\001\001\022\032\n\n" + + "\210\001\001\022\032\n" + + "\n" + "suspending\030\246\374\360\r" + " \001(\005H\013\210\001\001\022\032\n" + "\tverifying\030\311\241\254\327\001 \001(\005H\014\210\001\001B\r\n" @@ -18126,8 +18128,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_verifying\"\335\003\n" + "\"InstanceGroupManagerAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022X\n" - + "\005items\030\300\317\367/" - + " \003(\0132F.google.cloud.compute.v1.InstanceGroupManagerAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\013" + + "2F.google.cloud.compute.v1.InstanceGroupManagerAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -18136,17 +18138,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032f\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022G\n" - + "\005value\030\002" - + " \001(\01328.google.cloud.compute.v1.InstanceGroupManagersScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(" + + "\01328.google.cloud.compute.v1.InstanceGroupManagersScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n" - + "\n" + + "_self_linkB\n\n" + "\010_warning\"\205\001\n" + "&InstanceGroupManagerAllInstancesConfig\022L\n\n" - + "properties\030\263\232\266F \001(\01320.g" - + "oogle.cloud.compute.v1.InstancePropertiesPatchH\000\210\001\001B\r\n" + + "properties\030\263\232\266F \001(\01320.google" + + ".cloud.compute.v1.InstancePropertiesPatchH\000\210\001\001B\r\n" + "\013_properties\"\220\001\n" + "%InstanceGroupManagerAutoHealingPolicy\022\035\n" + "\014health_check\030\345\252\244\223\001 \001(\tH\000\210\001\001\022!\n" @@ -18155,12 +18156,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_initial_delay_sec\"\304\002\n" + "-InstanceGroupManagerInstanceFlexibilityPolicy\022~\n" + "\023instance_selections\030\321\204\371\n" - + " \003(\0132^.google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilit", - "yPolicy.InstanceSelectionsEntry\032\222\001\n" + + " \003(\0132^.google.cloud.compute.v1.Ins", + "tanceGroupManagerInstanceFlexibilityPolicy.InstanceSelectionsEntry\032\222\001\n" + "\027InstanceSelectionsEntry\022\013\n" + "\003key\030\001 \001(\t\022f\n" - + "\005value\030\002 \001(\0132W.google.cloud.compute.v1.Instan" - + "ceGroupManagerInstanceFlexibilityPolicyInstanceSelection:\0028\001\"\351\001\n" + + "\005value\030\002 \001(\0132W.google.cloud.compute.v1.InstanceGro" + + "upManagerInstanceFlexibilityPolicyInstanceSelection:\0028\001\"\351\001\n" + ">InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection\0227\n" + "\005disks\030\366\314\312-" + " \003(\0132%.google.cloud.compute.v1.AttachedDisk\022\030\n\r" @@ -18173,8 +18174,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031default_action_on_failure\030\325\304\242\035 \001(\tH\000\210\001\001\022\'\n" + "\026force_update_on_repair\030\313\371\362\251\001 \001(\tH\001\210\001\001\022&\n" + "\026on_failed_health_check\030\307\327\375\022 \001(\tH\002\210\001\001\022h\n" - + "\ton_repair\030\355\213\246\261\001 \001(\0132L.google.cloud.compute.v1.In" - + "stanceGroupManagerInstanceLifecyclePolicyOnRepairH\003\210\001\001\"d\n" + + "\ton_repair\030\355\213\246\261\001 \001(\0132L.google.cloud.compute.v1.Instanc" + + "eGroupManagerInstanceLifecyclePolicyOnRepairH\003\210\001\001\"d\n" + "\026DefaultActionOnFailure\022\'\n" + "#UNDEFINED_DEFAULT_ACTION_ON_FAILURE\020\000\022\022\n\n" + "DO_NOTHING\020\371\317\231\327\001\022\r\n" @@ -18199,8 +18200,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024_allow_changing_zone\"\271\002\n" + "\030InstanceGroupManagerList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022?\n" - + "\005items\030\300\317\367/ \003(\0132" - + "-.google.cloud.compute.v1.InstanceGroupManager\022\024\n" + + "\005items\030\300\317\367/ \003(\0132-.goo" + + "gle.cloud.compute.v1.InstanceGroupManager\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -18209,8 +18210,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n" - + "\n" + + "_self_linkB\n\n" + "\010_warning\"\362\006\n" + "!InstanceGroupManagerResizeRequest\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" @@ -18228,8 +18228,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021self_link_with_id\030\202\254\235\025 \001(\tH\t\210\001\001\022\025\n" + "\005state\030\221\211\2534 \001(\tH\n" + "\210\001\001\022X\n" - + "\006status\030\362\237\267V \001(\0132@.goo" - + "gle.cloud.compute.v1.InstanceGroupManagerResizeRequestStatusH\013\210\001\001\022\024\n" + + "\006status\030\362\237\267V \001(\0132@.google.c" + + "loud.compute.v1.InstanceGroupManagerResizeRequestStatusH\013\210\001\001\022\024\n" + "\004zone\030\254\307\344\001 \001(\tH\014\210\001\001\"\217\001\n" + "\005State\022\023\n" + "\017UNDEFINED_STATE\020\000\022\017\n" @@ -18255,13 +18255,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'InstanceGroupManagerResizeRequestStatus\0225\n" + "\005error\030\210\244\223." + " \001(\0132\036.google.cloud.compute.v1.ErrorH\000\210\001\001\022j\n" - + "\014last_attempt\030\244\254\250\317\001 \001(\0132K.google.cloud.comp" - + "ute.v1.InstanceGroupManagerResizeRequestStatusLastAttemptH\001\210\001\001B\010\n" + + "\014last_attempt\030\244\254\250\317\001 \001(\0132K.google.cloud.compute.v" + + "1.InstanceGroupManagerResizeRequestStatusLastAttemptH\001\210\001\001B\010\n" + "\006_errorB\017\n\r" + "_last_attempt\"u\n" + "2InstanceGroupManagerResizeRequestStatusLastAttempt\0225\n" - + "\005error\030\210\244\223. \001(" - + "\0132\036.google.cloud.compute.v1.ErrorH\000\210\001\001B\010\n" + + "\005error\030\210\244\223." + + " \001(\0132\036.google.cloud.compute.v1.ErrorH\000\210\001\001B\010\n" + "\006_error\"\334\002\n" + ".InstanceGroupManagerResizeRequestsListResponse\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022L\n" @@ -18290,22 +18290,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_initial_delay_secB\007\n" + "\005_mode\"\351\006\n" + "\032InstanceGroupManagerStatus\022k\n" - + "\024all_instances_config\030\201\256\3305 \001(\0132E.google.clo" - + "ud.compute.v1.InstanceGroupManagerStatusAllInstancesConfigH\000\210\001\001\022r\n" - + "\036applied_accelerator_topologies\030\243\357\305\345\001 \003(\0132F.google.clo" - + "ud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology\022\033\n\n" + + "\024all_instances_config\030\201\256\3305 \001(\0132E.google.cloud.co" + + "mpute.v1.InstanceGroupManagerStatusAllInstancesConfigH\000\210\001\001\022r\n" + + "\036applied_accelerator_topologies\030\243\357\305\345\001 \003(\0132F.google.cloud.co" + + "mpute.v1.InstanceGroupManagerStatusAcceleratorTopology\022\033\n\n" + "autoscaler\030\327\375\322\366\001 \001(\tH\001\210\001\001\022r\n" - + "\027bulk_instance_operation\030\212\255\233\357\001" - + " \001(\0132H.google.cloud.compute.v1.Instance" - + "GroupManagerStatusBulkInstanceOperationH\002\210\001\001\022t\n" - + "\031current_instance_statuses\030\304\356\274\200\001 " - + "\001(\0132H.google.cloud.compute.v1.InstanceGr" - + "oupManagerStatusInstanceStatusSummaryH\003\210\001\001\022\031\n" + + "\027bulk_instance_operation\030\212\255\233\357\001 \001(\013" + + "2H.google.cloud.compute.v1.InstanceGroup" + + "ManagerStatusBulkInstanceOperationH\002\210\001\001\022t\n" + + "\031current_instance_statuses\030\304\356\274\200\001 \001(\0132H" + + ".google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummaryH\003\210\001\001\022\031\n" + "\tis_stable\030\360\357\3303 \001(\010H\004\210\001\001\022U\n" + "\010stateful\030\314\346\310t" + " \001(\0132;.google.cloud.compute.v1.InstanceGroupManagerStatusStatefulH\005\210\001\001\022a\n" - + "\016version_target\030\330\335\376\211\001 \001(\0132@.google.cloud." - + "compute.v1.InstanceGroupManagerStatusVersionTargetH\006\210\001\001B\027\n" + + "\016version_target\030\330\335\376\211\001 \001(\0132@.google.cloud.compu" + + "te.v1.InstanceGroupManagerStatusVersionTargetH\006\210\001\001B\027\n" + "\025_all_instances_configB\r\n" + "\013_autoscalerB\032\n" + "\030_bulk_instance_operationB\034\n" @@ -18316,12 +18315,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "-InstanceGroupManagerStatusAcceleratorTopology\022%\n" + "\024accelerator_topology\030\303\263\322\271\001 \001(\tH\000\210\001\001\022\025\n" + "\005state\030\221\211\2534 \001(\tH\001\210\001\001\022\204\001\n\r" - + "state_details\030\224\371\310- \001(\0132e.google.cloud.comput" - + "e.v1.InstanceGroupManagerStatusAccelerat" - + "orTopologyAcceleratorTopologyStateDetailsH\002\210\001\001\"\215\001\n" + + "state_details\030\224\371\310- \001(\0132e.google.cloud.compute.v1." + + "InstanceGroupManagerStatusAcceleratorTop" + + "ologyAcceleratorTopologyStateDetailsH\002\210\001\001\"\215\001\n" + "\005State\022\023\n" - + "\017UNDEFINED_STATE\020\000\022\022\n" - + "\n" + + "\017UNDEFINED_STATE\020\000\022\022\n\n" + "ACTIVATING\020\360\331\321\264\001\022\016\n" + "\006ACTIVE\020\206\346\211\226\001\022\023\n" + "\014DEACTIVATING\020\261\220\242\033\022\016\n" @@ -18344,8 +18342,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_effective\"\367\001\n" + "/InstanceGroupManagerStatusBulkInstanceOperation\022\034\n" + "\013in_progress\030\207\300\327\230\001 \001(\010H\000\210\001\001\022~\n" - + "\023last_progress_check\030\277\242\276c \001(\0132Y.google.cloud.compute.v1.Inst" - + "anceGroupManagerStatusBulkInstanceOperationLastProgressCheckH\001\210\001\001B\016\n" + + "\023last_progress_check\030\277\242\276c \001(\0132Y.google.cloud.compute.v1.InstanceG" + + "roupManagerStatusBulkInstanceOperationLastProgressCheckH\001\210\001\001B\016\n" + "\014_in_progressB\026\n" + "\024_last_progress_check\"\254\001\n" + "@InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck\0225\n" @@ -18373,21 +18371,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_deprovisioningB\017\n\r" + "_non_existentB\n\n" + "\010_pendingB\017\n\r" - + "_pending_stopB\017\n\r" + + "_pending_stopB\017\n" + + "\r" + "_provisioningB\014\n\n" + "_repairingB\n\n" + "\010_runningB\n\n" + "\010_stagingB\n\n" + "\010_stoppedB\013\n" - + "\t_stoppingB\014\n\n" + + "\t_stoppingB\014\n" + + "\n" + "_suspendedB\r\n" + "\013_suspendingB\r\n" + "\013_terminated\"\360\001\n" + "\"InstanceGroupManagerStatusStateful\022#\n" + "\023has_stateful_config\030\360\347\3264 \001(\010H\000\210\001\001\022t\n" - + "\024per_instance_configs\030\251\325\370\372\001 \001(\0132M.g" - + "oogle.cloud.compute.v1.InstanceGroupMana" - + "gerStatusStatefulPerInstanceConfigsH\001\210\001\001B\026\n" + + "\024per_instance_configs\030\251\325\370\372\001 \001(\0132M.google" + + ".cloud.compute.v1.InstanceGroupManagerStatusStatefulPerInstanceConfigsH\001\210\001\001B\026\n" + "\024_has_stateful_configB\027\n" + "\025_per_instance_configs\"h\n" + "4InstanceGroupManagerStatusStatefulPerInstanceConfigs\022\036\n\r" @@ -18471,8 +18470,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "0InstanceGroupManagersDeletePerInstanceConfigsReq\022\020\n" + "\005names\030\310\256\3571 \003(\t\"\244\001\n" + "\'InstanceGroupManagersListErrorsResponse\022D\n" - + "\005items\030\300\317\367/ \003(" - + "\01322.google.cloud.compute.v1.InstanceManagedByIgmError\022\037\n" + + "\005items\030\300\317\367/ \003(\01322.g" + + "oogle.cloud.compute.v1.InstanceManagedByIgmError\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001B\022\n" + "\020_next_page_token\"\261\001\n" + "1InstanceGroupManagersListManagedInstancesResponse\022G\n" @@ -18481,8 +18480,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001B\022\n" + "\020_next_page_token\"\353\001\n" + "/InstanceGroupManagersListPerInstanceConfigsResp\022<\n" - + "\005items\030\300\317\367/ \003(\0132*.g" - + "oogle.cloud.compute.v1.PerInstanceConfig\022\037\n" + + "\005items\030\300\317\367/" + + " \003(\0132*.google.cloud.compute.v1.PerInstanceConfig\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\001\210\001\001B\022\n" @@ -18513,7 +18512,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*InstanceGroupManagersStartInstancesRequest\022\024\n" + "\tinstances\030\376\374\357\r" + " \003(\t\"l\n" - + ")InstanceGroupManagersStopInstancesRequest\022\032\n\n" + + ")InstanceGroupManagersStopInstancesRequest\022\032\n" + + "\n" + "force_stop\030\326\241\241@ \001(\010H\000\210\001\001\022\024\n" + "\tinstances\030\376\374\357\r" + " \003(\tB\r\n" @@ -18532,8 +18532,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132*.google.cloud.compute.v1.InstanceReference\"\276\002\n" + "\033InstanceGroupsListInstances\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022A\n" - + "\005items\030\300\317\367/" - + " \003(\0132/.google.cloud.compute.v1.InstanceWithNamedPorts\022\024\n" + + "\005items\030\300\317\367/ " + + "\003(\0132/.google.cloud.compute.v1.InstanceWithNamedPorts\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -18592,11 +18592,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\274\002\n" + "\031InstanceManagedByIgmError\022]\n" - + "\005error\030\210\244\223. \001(\0132F.google.cloud.compute.v1.Instan" - + "ceManagedByIgmErrorManagedInstanceErrorH\000\210\001\001\022q\n" - + "\027instance_action_details\030\243\374\253\213\001 \001(" - + "\0132G.google.cloud.compute.v1.InstanceMana" - + "gedByIgmErrorInstanceActionDetailsH\001\210\001\001\022\031\n" + + "\005error\030\210\244\223. \001(\0132F.google.cloud.compute.v1.InstanceMan" + + "agedByIgmErrorManagedInstanceErrorH\000\210\001\001\022q\n" + + "\027instance_action_details\030\243\374\253\213\001 \001(\0132G.g" + + "oogle.cloud.compute.v1.InstanceManagedByIgmErrorInstanceActionDetailsH\001\210\001\001\022\031\n" + "\ttimestamp\030\226\322\244\032 \001(\tH\002\210\001\001B\010\n" + "\006_errorB\032\n" + "\030_instance_action_detailsB\014\n\n" @@ -18604,8 +18603,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".InstanceManagedByIgmErrorInstanceActionDetails\022\026\n" + "\006action\030\266\374\275Y \001(\tH\000\210\001\001\022\030\n" + "\010instance\030\225\251\332\010 \001(\tH\001\210\001\001\022I\n" - + "\007version\030\330\271\324\247\001 \001(\013" - + "2/.google.cloud.compute.v1.ManagedInstanceVersionH\002\210\001\001\"\234\002\n" + + "\007version\030\330\271\324\247\001 \001(\0132/.go" + + "ogle.cloud.compute.v1.ManagedInstanceVersionH\002\210\001\001\"\234\002\n" + "\006Action\022\024\n" + "\020UNDEFINED_ACTION\020\000\022\022\n\n" + "ABANDONING\020\315\312\220\271\001\022\020\n" @@ -18627,7 +18626,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "-InstanceManagedByIgmErrorManagedInstanceError\022\024\n" + "\004code\030\355\333\272\001 \001(\tH\000\210\001\001\022\030\n" + "\007message\030\207\200\254\307\001 \001(\tH\001\210\001\001B\007\n" - + "\005_codeB\n\n" + + "\005_codeB\n" + + "\n" + "\010_message\"\202\001\n" + "\023InstanceMoveRequest\022 \n" + "\020destination_zone\030\275\342\357> \001(\tH\000\210\001\001\022 \n" @@ -18635,10 +18635,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021_destination_zoneB\022\n" + "\020_target_instance\"\237\002\n" + "\016InstanceParams\022M\n" - + "\032request_valid_for_duration\030\335\226\2677" - + " \001(\0132!.google.cloud.compute.v1.DurationH\000\210\001\001\022c\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(" - + "\0132@.google.cloud.compute.v1.InstanceParams.ResourceManagerTagsEntry\032:\n" + + "\032request_valid_for_duration\030\335\226\2677 \001(" + + "\0132!.google.cloud.compute.v1.DurationH\000\210\001\001\022c\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132@.g" + + "oogle.cloud.compute.v1.InstanceParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\035\n" @@ -18647,15 +18647,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031advanced_machine_features\030\262\347\252\303\001" + " \001(\01320.google.cloud.compute.v1.AdvancedMachineFeaturesH\000\210\001\001\022\037\n" + "\016can_ip_forward\030\374\206\204\337\001 \001(\010H\001\210\001\001\022b\n" - + "\034confidential_instance_config\030\365\222\372\351\001 \001(\01323.google." - + "cloud.compute.v1.ConfidentialInstanceConfigH\002\210\001\001\022\034\n" + + "\034confidential_instance_config\030\365\222\372\351\001 \001(\01323.google.cloud" + + ".compute.v1.ConfidentialInstanceConfigH\002\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\003\210\001\001\0227\n" + "\005disks\030\366\314\312- \003(\0132%.google.cloud.compute.v1.AttachedDisk\022J\n" - + "\022guest_accelerators\030\357\314\207\335\001" - + " \003(\0132*.google.cloud.compute.v1.AcceleratorConfig\022*\n" + + "\022guest_accelerators\030\357\314\207\335\001 \003" + + "(\0132*.google.cloud.compute.v1.AcceleratorConfig\022*\n" + "\032key_revocation_action_type\030\342\334\300p \001(\tH\004\210\001\001\022K\n" - + "\006labels\030\377\277\301\356\001 \003(\01327.go" - + "ogle.cloud.compute.v1.InstanceProperties.LabelsEntry\022)\n" + + "\006labels\030\377\277\301\356\001 \003(\01327.google." + + "cloud.compute.v1.InstanceProperties.LabelsEntry\022)\n" + "\031local_ssd_encryption_mode\030\320\343\3749 \001(\tH\005\210\001\001\022\034\n" + "\014machine_type\030\262\260\312l \001(\tH\006\210\001\001\022;\n" + "\010metadata\030\257\366\265)" @@ -18667,14 +18667,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01321.google.cloud.compute.v1.NetworkPerformanceConfigH\t\210\001\001\022*\n" + "\032private_ipv6_google_access\030\216\314\202\027 \001(\tH\n" + "\210\001\001\022R\n" - + "\024reservation_affinity\030\273\270\242K \001(\0132,.google.clo" - + "ud.compute.v1.ReservationAffinityH\013\210\001\001\022g\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132D.goog" - + "le.cloud.compute.v1.InstanceProperties.ResourceManagerTagsEntry\022\034\n" + + "\024reservation_affinity\030\273\270\242K" + + " \001(\0132,.google.cloud.compute.v1.ReservationAffinityH\013\210\001\001\022g\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132D.google.cl" + + "oud.compute.v1.InstanceProperties.ResourceManagerTagsEntry\022\034\n" + "\021resource_policies\030\341\234\314\n" + " \003(\t\022@\n\n" - + "scheduling\030\224\313\261\270\001 \001(\0132#." - + "google.cloud.compute.v1.SchedulingH\014\210\001\001\022E\n" + + "scheduling\030\224\313\261\270\001" + + " \001(\0132#.google.cloud.compute.v1.SchedulingH\014\210\001\001\022E\n" + "\020service_accounts\030\260\304\253\204\001" + " \003(\0132\'.google.cloud.compute.v1.ServiceAccount\022Y\n" + "\030shielded_instance_config\030\265\213\221\006" @@ -18723,12 +18723,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031_workload_identity_config\"\340\002\n" + "\027InstancePropertiesPatch\022%\n" + "\024expose_host_topology\030\353\263\253\314\001 \001(\010H\000\210\001\001\022P\n" - + "\006labels\030\377\277\301\356\001 \003(\0132<.g" - + "oogle.cloud.compute.v1.InstancePropertiesPatch.LabelsEntry\022S\n" - + "\010metadata\030\257\366\265) \003(\0132" - + ">.google.cloud.compute.v1.InstancePropertiesPatch.MetadataEntry\032-\n" - + "\013LabelsEntry\022\013", - "\n" + + "\006labels\030\377\277\301\356\001 \003(\0132<.google" + + ".cloud.compute.v1.InstancePropertiesPatch.LabelsEntry\022S\n" + + "\010metadata\030\257\366\265) \003(\0132>.google.cloud.compute.v1.InstancePropertiesP", + "atch.MetadataEntry\032-\n" + + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032/\n\r" + "MetadataEntry\022\013\n" @@ -18749,8 +18748,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t_metadataB\007\n" + "\005_zone\"\267\001\n" + "\030InstanceSettingsMetadata\022N\n" - + "\005items\030\300\317\367/ \003(\0132<.google.c" - + "loud.compute.v1.InstanceSettingsMetadata.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132<.google.cloud." + + "compute.v1.InstanceSettingsMetadata.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001\032,\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -18761,8 +18760,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\002\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022\024\n" - + "\004name\030\213\365\315\001 \001(\tH\004\210\001\001\022G\n" - + "\n" + + "\004name\030\213\365\315\001 \001(\tH\004\210\001\001\022G\n\n" + "properties\030\263\232\266F" + " \001(\0132+.google.cloud.compute.v1.InstancePropertiesH\005\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\006\210\001\001\022\032\n" @@ -18782,8 +18780,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027_source_instance_params\"\270\003\n" + "\036InstanceTemplateAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022T\n" - + "\005items\030\300\317\367/ \003(\0132B.google.cloud" - + ".compute.v1.InstanceTemplateAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132B.google.cloud.comp" + + "ute.v1.InstanceTemplateAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -18791,8 +18789,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032b\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022C\n" - + "\005value\030\002 \001(\01324." - + "google.cloud.compute.v1.InstanceTemplatesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01324.googl" + + "e.cloud.compute.v1.InstanceTemplatesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -18843,16 +18841,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021resource_policies\030\341\234\314\n" + " \003(\t\"\212\002\n" + "$InstancesBulkInsertOperationMetadata\022t\n" - + "\023per_location_status\030\232\351\204P \003(\0132T.google.cloud.compute.v1.Insta" - + "ncesBulkInsertOperationMetadata.PerLocationStatusEntry\032l\n" + + "\023per_location_status\030\232\351\204P " + + "\003(\0132T.google.cloud.compute.v1.InstancesB" + + "ulkInsertOperationMetadata.PerLocationStatusEntry\032l\n" + "\026PerLocationStatusEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002 \001(\01322.google.cl" - + "oud.compute.v1.BulkInsertOperationStatus:\0028\001\"\330\001\n" + + "\005value\030\002 \001(\01322.google.cloud.c" + + "ompute.v1.BulkInsertOperationStatus:\0028\001\"\330\001\n" + "&InstancesGetEffectiveFirewallsResponse\022t\n" - + "\020firewall_policys\030\302\312\374\303\001 \003(\0132V." - + "google.cloud.compute.v1.InstancesGetEffe" - + "ctiveFirewallsResponseEffectiveFirewallPolicy\0228\n" + + "\020firewall_policys\030\302\312\374\303\001 \003(\0132V.googl" + + "e.cloud.compute.v1.InstancesGetEffective" + + "FirewallsResponseEffectiveFirewallPolicy\0228\n" + "\tfirewalls\030\363\306\350\201\001" + " \003(\0132!.google.cloud.compute.v1.Firewall\"\254\004\n" + "=InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy\022\034\n" @@ -18875,8 +18874,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013UNSPECIFIED\020\227\276\230\373\001B\017\n\r" + "_display_nameB\007\n" + "\005_nameB\013\n" - + "\t_priorityB\r" - + "\n" + + "\t_priorityB\r\n" + "\013_short_nameB\007\n" + "\005_type\"F\n" + "&InstancesRemoveResourcePoliciesRequest\022\034\n" @@ -18884,8 +18882,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\t\"\310\002\n" + "\"InstancesReportHostAsFaultyRequest\022#\n" + "\023disruption_schedule\030\203\305\333- \001(\tH\000\210\001\001\022`\n\r" - + "fault_reasons\030\222\253\221P \003(\0132F.g" - + "oogle.cloud.compute.v1.InstancesReportHostAsFaultyRequestFaultReason\"\202\001\n" + + "fault_reasons\030\222\253\221P \003(\0132F.google" + + ".cloud.compute.v1.InstancesReportHostAsFaultyRequestFaultReason\"\202\001\n" + "\022DisruptionSchedule\022!\n" + "\035UNDEFINED_DISRUPTION_SCHEDULE\020\000\022\'\n" + "\037DISRUPTION_SCHEDULE_UNSPECIFIED\020\333\356\310\236\001\022\016\n" @@ -18912,8 +18910,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\327\001\n" + "\031InstancesSetLabelsRequest\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\000\210\001\001\022R\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\0132>.google.cloud.compute.v1.InstancesSetLabelsRequest.LabelsEntry\032-\n" + + "\006labels\030\377\277\301\356\001 \003" + + "(\0132>.google.cloud.compute.v1.InstancesSetLabelsRequest.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\024\n" @@ -18941,8 +18939,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006scopes\030\237\231\222O \003(\tB\010\n" + "\006_email\"w\n" + "&InstancesStartWithEncryptionKeyRequest\022M\n" - + "\005disks\030\366\314\312-" - + " \003(\0132;.google.cloud.compute.v1.CustomerEncryptionKeyProtectedDisk\"\275\013\n" + + "\005disks\030\366\314\312- \003(\0132" + + ";.google.cloud.compute.v1.CustomerEncryptionKeyProtectedDisk\"\275\013\n" + "\017InstantSnapshot\022\035\n" + "\014architecture\030\323\322\261\220\001 \001(\tH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" @@ -18951,14 +18949,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\006\210\001\001\022H\n" - + "\006labels\030\377\277\301\356\001 \003(\01324.google.cl" - + "oud.compute.v1.InstantSnapshot.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001" + + " \003(\01324.google.cloud.compute.v1.InstantSnapshot.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022F\n" - + "\006params\030\206\363\253% " - + "\001(\0132..google.cloud.compute.v1.InstantSnapshotParamsH\010\210\001\001\022\026\n" + + "\006params\030\206\363\253% \001(\0132." + + ".google.cloud.compute.v1.InstantSnapshotParamsH\010\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\t\210\001\001\022W\n" - + "\017resource_status\030\303\372\367v \001(\01326.google.cl" - + "oud.compute.v1.InstantSnapshotResourceStatusH\n" + + "\017resource_status\030\303\372\367v \001(\01326.google.cloud.c" + + "ompute.v1.InstantSnapshotResourceStatusH\n" + "\210\001\001\022\036\n\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\013\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\014\210\001\001\022\032\n" @@ -19010,8 +19008,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\316\003\n" + "\035InstantSnapshotAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022S\n" - + "\005items\030\300\317\367/" - + " \003(\0132A.google.cloud.compute.v1.InstantSnapshotAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003" + + "(\0132A.google.cloud.compute.v1.InstantSnapshotAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -19020,8 +19018,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 " - + "\001(\01323.google.cloud.compute.v1.InstantSnapshotsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01323" + + ".google.cloud.compute.v1.InstantSnapshotsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -19034,8 +19032,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\004\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\005\210\001\001\022\\\n" - + "\017resource_status\030\303\372\367v" - + " \001(\0132;.google.cloud.compute.v1.InstantSnapshotGroupResourceStatusH\006\210\001\001\022\032\n" + + "\017resource_status\030\303\372\367v \001" + + "(\0132;.google.cloud.compute.v1.InstantSnapshotGroupResourceStatusH\006\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\010\210\001\001\022)\n" + "\030source_consistency_group\030\364\314\257\375\001 \001(\tH\t\210\001\001\022\026\n" @@ -19092,8 +19090,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\277\001\n" + "\025InstantSnapshotParams\022j\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132G.google.cloud.compu" - + "te.v1.InstantSnapshotParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132G.google.cloud.compute.v1" + + ".InstantSnapshotParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"[\n" @@ -19115,8 +19113,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013aai_enabled\030\313\242\261\271\001 \001(\010H\000\210\001\001\022\036\n\r" + "admin_enabled\030\321\354\301\324\001 \001(\010H\001\210\001\001\022r\n" + "\036application_aware_interconnect\030\236\370\315\314\001" - + " \001(\0132A.google.cloud.compute.v1.Inte" - + "rconnectApplicationAwareInterconnectH\002\210\001\001\022\036\n" + + " \001(\0132A.google.cloud.compute.v1.InterconnectApplicationAwareInterconnectH\002\210\001\001\022\036\n" + "\022available_features\030\363\271\326\354\001 \003(\t\022J\n\r" + "circuit_infos\030\257\203\315N" + " \003(\01320.google.cloud.compute.v1.InterconnectCircuitInfo\022\"\n" @@ -19124,8 +19121,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "customer_name\030\314\334\337\001 \001(\tH\004\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\005\210\001\001\022#\n" + "\022effective_location\030\315\246\226\220\001 \001(\tH\006\210\001\001\022T\n" - + "\020expected_outages\030\233\352\216~ \003(\01327.googl" - + "e.cloud.compute.v1.InterconnectOutageNotification\022\"\n" + + "\020expected_outages\030\233\352\216~ \003(\01327.google.clo" + + "ud.compute.v1.InterconnectOutageNotification\022\"\n" + "\021google_ip_address\030\242\205\245\323\001 \001(\tH\007\210\001\001\022$\n" + "\023google_reference_id\030\325\265\212\377\001 \001(\tH\010\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\t\210\001\001\022$\n" @@ -19135,8 +19132,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\013\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\014\210\001\001\022E\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\01321.google.cloud.compute.v1.Interconnect.LabelsEntry\022\032\n" + + "\006labels\030\377\277\301\356\001 \003(\0132" + + "1.google.cloud.compute.v1.Interconnect.LabelsEntry\022\032\n" + "\tlink_type\030\337\210\276\371\001 \001(\tH\r" + "\210\001\001\022\031\n" + "\010location\030\265\277\276\212\001 \001(\tH\016\210\001\001\022D\n" @@ -19146,8 +19143,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\021\210\001\001\022!\n" + "\021noc_contact_email\030\200\370\332\006 \001(\tH\022\210\001\001\022\"\n" + "\022operational_status\030\377\261\360_ \001(\tH\023\210\001\001\022C\n" - + "\006params\030\206\363\253%" - + " \001(\0132+.google.cloud.compute.v1.InterconnectParamsH\024\210\001\001\022\037\n" + + "\006params\030\206\363\253% \001(\0132" + + "+.google.cloud.compute.v1.InterconnectParamsH\024\210\001\001\022\037\n" + "\017peer_ip_address\030\331\227\207c \001(\tH\025\210\001\001\022\'\n" + "\026provisioned_link_count\030\365\322\366\303\001 \001(\005H\026\210\001\001\022 \n" + "\017remote_location\030\216\217\327\232\001 \001(\tH\027\210\001\001\022\036\n" @@ -19219,14 +19216,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_stateB\n\n" + "\010_subzone\"\247\004\n" + "(InterconnectApplicationAwareInterconnect\022\207\001\n" - + "\033bandwidth_percentage_policy\030\351\334\226Y \001(\0132" - + "Z.google.cloud.compute.v1.InterconnectAp" - + "plicationAwareInterconnectBandwidthPercentagePolicyH\000\210\001\001\022#\n" + + "\033bandwidth_percentage_policy\030\351\334\226Y \001(\0132Z.goo" + + "gle.cloud.compute.v1.InterconnectApplica" + + "tionAwareInterconnectBandwidthPercentagePolicyH\000\210\001\001\022#\n" + "\023profile_description\030\346\354\250} \001(\tH\001\210\001\001\022z\n" - + "\031shape_average_percentages\030\331\270\364{ \003(\0132T.google.cloud.compute.v1.In" - + "terconnectApplicationAwareInterconnectBandwidthPercentage\022}\n" - + "\026strict_priority_policy\030\267\225\227E \001(\0132U.google.cloud.compute.v1.I" - + "nterconnectApplicationAwareInterconnectStrictPriorityPolicyH\002\210\001\001B\036\n" + + "\031shape_average_percentages\030\331\270\364{" + + " \003(\0132T.google.cloud.compute.v1.Interco" + + "nnectApplicationAwareInterconnectBandwidthPercentage\022}\n" + + "\026strict_priority_policy\030\267\225\227E \001(\0132U.google.cloud.compute.v1.Interc" + + "onnectApplicationAwareInterconnectStrictPriorityPolicyH\002\210\001\001B\036\n" + "\034_bandwidth_percentage_policyB\026\n" + "\024_profile_descriptionB\031\n" + "\027_strict_priority_policy\"\210\002\n" @@ -19245,9 +19243,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_percentageB\020\n" + "\016_traffic_class\"\273\001\n" + "AInterconnectApplicationAwareInterconnectBandwidthPercentagePolicy\022v\n" - + "\025bandwidth_percentages\030\213\375\243o \003(\0132T" - + ".google.cloud.compute.v1.InterconnectApp" - + "licationAwareInterconnectBandwidthPercentage\">\n" + + "\025bandwidth_percentages\030\213\375\243o \003(\0132T.goog" + + "le.cloud.compute.v1.InterconnectApplicationAwareInterconnectBandwidthPercentage\">\n" + ".g" - + "oogle.cloud.compute.v1.InterconnectAttachmentPartnerMetadataH\037\210\001\001\022e\n" - + "\031private_interconnect_info\030\203\354\221q \001(\0132:.google.cloud.c" - + "ompute.v1.InterconnectAttachmentPrivateInfoH \210\001\001\022\026\n" + + "\020partner_metadata\030\306\341\266\037 \001(\0132>.google" + + ".cloud.compute.v1.InterconnectAttachmentPartnerMetadataH\037\210\001\001\022e\n" + + "\031private_interconnect_info\030\203\354\221q" + + " \001(\0132:.google.cloud.compute.v1.InterconnectAttachmentPrivateInfoH" + + " \210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH!\210\001\001\022\037\n" + "\016remote_service\030\274\377\362\272\001 \001(\tH\"\210\001\001\022\026\n" + "\006router\030\311\256\356F \001(\tH#\210\001\001\022\036\n\r" @@ -19347,11 +19345,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024UNDEFINED_STACK_TYPE\020\000\022\020\n" + "\tIPV4_IPV6\020\201\350\312\n" + "\022\020\n" - + "\tIPV4_ONLY\020\246\313\325\n" + + "\tIPV4_ONLY\020", + "\246\313\325\n" + "\"\302\001\n" + "\005State\022\023\n" - + "\017UNDEFINED_STATE\020\000", - "\022\016\n" + + "\017UNDEFINED_STATE\020\000\022\016\n" + "\006ACTIVE\020\206\346\211\226\001\022\016\n" + "\007DEFUNCT\020\257\274\2417\022 \n" + "\030PARTNER_REQUEST_RECEIVED\020\350\360\362\364\001\022\027\n" @@ -19410,8 +19408,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_vlan_tag8021q\"\343\003\n" + "$InterconnectAttachmentAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022Z\n" - + "\005items\030\300\317\367/ \003(\0132H.goog" - + "le.cloud.compute.v1.InterconnectAttachmentAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132H.google.cl" + + "oud.compute.v1.InterconnectAttachmentAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -19420,8 +19418,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032h\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022I\n" - + "\005value\030\002 \001(\0132:.g" - + "oogle.cloud.compute.v1.InterconnectAttachmentsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132:.google" + + ".cloud.compute.v1.InterconnectAttachmentsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -19429,8 +19427,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\263\002\n" + ".InterconnectAttachmentConfigurationConstraints\022\030\n" + "\007bgp_md5\030\212\350\363\261\001 \001(\tH\000\210\001\001\022w\n" - + "\023bgp_peer_asn_ranges\030\202\273\371\342\001 \003(\0132V.googl" - + "e.cloud.compute.v1.InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange\"b\n" + + "\023bgp_peer_asn_ranges\030\202\273\371\342\001 \003(\0132V.google.clo" + + "ud.compute.v1.InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange\"b\n" + "\006BgpMd5\022\025\n" + "\021UNDEFINED_BGP_MD5\020\000\022\024\n" + "\014MD5_OPTIONAL\020\201\242\340\375\001\022\023\n" @@ -19445,27 +19443,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_maxB\006\n" + "\004_min\"\201\007\n" + "\033InterconnectAttachmentGroup\022^\n" - + "\013attachments\030\260\227\317\237\001 \003(\0132E.google.cloud.compute.v1.Int" - + "erconnectAttachmentGroup.AttachmentsEntry\022[\n\n" - + "configured\030\276\364\373\214\001 \001(\0132>.google.cloud" - + ".compute.v1.InterconnectAttachmentGroupConfiguredH\000\210\001\001\022\"\n" + + "\013attachments\030\260\227\317\237\001" + + " \003(\0132E.google.cloud.compute.v1.InterconnectAttachmentGroup.AttachmentsEntry\022[\n\n" + + "configured\030\276\364\373\214\001 \001(\0132>.google.cloud.comp" + + "ute.v1.InterconnectAttachmentGroupConfiguredH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022S\n" - + "\006intent\030\234\355\304\313\001 \001(\0132:.google.cloud.comp" - + "ute.v1.InterconnectAttachmentGroupIntentH\005\210\001\001\022#\n" + + "\006intent\030\234\355\304\313\001 \001(\0132:.google.cloud.compute.v" + + "1.InterconnectAttachmentGroupIntentH\005\210\001\001\022#\n" + "\022interconnect_group\030\216\267\251\271\001 \001(\tH\006\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\007\210\001\001\022g\n" - + "\021logical_structure\030\275\231\364C \001(\0132D.google.cloud.compute.v1" - + ".InterconnectAttachmentGroupLogicalStructureH\010\210\001\001\022\024\n" + + "\021logical_structure\030\275\231\364C \001(\0132D.google.cloud.compute.v1.Inte" + + "rconnectAttachmentGroupLogicalStructureH\010\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\t\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\n" + "\210\001\001\032r\n" + "\020AttachmentsEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(\0132>.google.clo" - + "ud.compute.v1.InterconnectAttachmentGroupAttachment:\0028\001B\r\n" + + "\005value\030\002 \001(\0132>.google.cloud.co" + + "mpute.v1.InterconnectAttachmentGroupAttachment:\0028\001B\r\n" + "\013_configuredB\025\n" + "\023_creation_timestampB\016\n" + "\014_descriptionB\007\n" @@ -19481,14 +19479,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "attachment\030\243\262\335W \001(\tH\000\210\001\001B\r\n" + "\013_attachment\"\256\001\n" + "%InterconnectAttachmentGroupConfigured\022p\n" - + "\020availability_sla\030\304\270\263\341\001 \001(\0132M.google.cloud.compute.v1.Inte" - + "rconnectAttachmentGroupConfiguredAvailabilitySLAH\000\210\001\001B\023\n" + + "\020availability_sla\030\304\270\263\341\001" + + " \001(\0132M.google.cloud.compute.v1.Interconn" + + "ectAttachmentGroupConfiguredAvailabilitySLAH\000\210\001\001B\023\n" + "\021_availability_sla\"\212\003\n" + "4InterconnectAttachmentGroupConfiguredAvailabilitySLA\022\035\n\r" + "effective_sla\030\220\325\337D \001(\tH\000\210\001\001\022\203\001\n" - + "\025intended_sla_blockers\030\204\255\346\325\001 \003(\0132`" - + ".google.cloud.compute.v1.InterconnectAtt" - + "achmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers\"\232\001\n" + + "\025intended_sla_blockers\030\204\255\346\325\001 \003(\0132`.goog" + + "le.cloud.compute.v1.InterconnectAttachme" + + "ntGroupConfiguredAvailabilitySLAIntendedSlaBlockers\"\232\001\n" + "\014EffectiveSla\022\033\n" + "\027UNDEFINED_EFFECTIVE_SLA\020\000\022!\n" + "\031EFFECTIVE_SLA_UNSPECIFIED\020\250\247\220\352\001\022\r\n" @@ -19526,22 +19525,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027PRODUCTION_NON_CRITICAL\020\267\275\3757B\023\n" + "\021_availability_sla\"\215\001\n" + "+InterconnectAttachmentGroupLogicalStructure\022^\n" - + "\007regions\030\377\357\362\005 \003(\0132J.g" - + "oogle.cloud.compute.v1.InterconnectAttachmentGroupLogicalStructureRegion\"\273\001\n" + + "\007regions\030\377\357\362\005 \003(\0132J.google" + + ".cloud.compute.v1.InterconnectAttachmentGroupLogicalStructureRegion\"\273\001\n" + "1InterconnectAttachmentGroupLogicalStructureRegion\022c\n" - + "\006metros\030\372\354\227\376\001 \003(\0132O.google.clou" - + "d.compute.v1.InterconnectAttachmentGroupLogicalStructureRegionMetro\022\026\n" + + "\006metros\030\372\354\227\376\001 \003(\0132O.google.cloud.com" + + "pute.v1.InterconnectAttachmentGroupLogicalStructureRegionMetro\022\026\n" + "\006region\030\364\315\240B \001(\tH\000\210\001\001B\t\n" + "\007_region\"\312\001\n" + "6InterconnectAttachmentGroupLogicalStructureRegionMetro\022o\n\n" - + "facilities\030\201\305\364\377\001 \003(\0132W.google.cloud" - + ".compute.v1.InterconnectAttachmentGroupLogicalStructureRegionMetroFacility\022\025\n" + + "facilities\030\201\305\364\377\001 \003(\0132W.google.cloud.comp" + + "ute.v1.InterconnectAttachmentGroupLogicalStructureRegionMetroFacility\022\025\n" + "\005metro\030\231\332\2761 \001(\tH\000\210\001\001B\010\n" + "\006_metro\"\327\001\n" + ">InterconnectAttachmentGroupLogicalStructureRegionMetroFacility\022\031\n" + "\010facility\030\243\335\371\356\001 \001(\tH\000\210\001\001\022m\n" - + "\005zones\030\307\244\2557 \003(\0132[.google.cloud.compu" - + "te.v1.InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZoneB\013\n" + + "\005zones\030\307\244\2557 \003(\0132[.google.cloud.compute.v1" + + ".InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZoneB\013\n" + "\t_facility\"|\n" + "BInterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone\022\027\n" + "\013attachments\030\260\227\317\237\001 \003(\t\022\024\n" @@ -19549,15 +19548,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\304\001\n" + "8InterconnectAttachmentGroupsGetOperationalStatusResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022^\n" - + "\006result\030\235\220\267B \001(\0132F.goog" - + "le.cloud.compute.v1.InterconnectAttachmentGroupsOperationalStatusH\001\210\001\001B\007\n" + + "\006result\030\235\220\267B \001(\0132F.google.cl" + + "oud.compute.v1.InterconnectAttachmentGroupsOperationalStatusH\001\210\001\001B\007\n" + "\005_etagB\t\n" + "\007_result\"\210\003\n" + "(InterconnectAttachmentGroupsListResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022F\n" - + "\005items\030\300\317\367/ \003(\01324.goog" - + "le.cloud.compute.v1.InterconnectAttachmentGroup\022\024\n" + + "\005items\030\300\317\367/ \003(\01324.google.cl" + + "oud.compute.v1.InterconnectAttachmentGroup\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -19571,16 +19570,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\210\005\n" + "-InterconnectAttachmentGroupsOperationalStatus\022w\n" - + "\023attachment_statuses\030\274\257\230\352\001" - + " \003(\0132V.google.cloud.compute.v1.Inter" - + "connectAttachmentGroupsOperationalStatusAttachmentStatus\022[\n\n" - + "configured\030\276\364\373\214\001 \001(\013" - + "2>.google.cloud.compute.v1.InterconnectAttachmentGroupConfiguredH\000\210\001\001\022\035\n" + + "\023attachment_statuses\030\274\257\230\352\001 " + + "\003(\0132V.google.cloud.compute.v1.Interconne" + + "ctAttachmentGroupsOperationalStatusAttachmentStatus\022[\n\n" + + "configured\030\276\364\373\214\001 \001(\0132>.go" + + "ogle.cloud.compute.v1.InterconnectAttachmentGroupConfiguredH\000\210\001\001\022\035\n" + "\014group_status\030\262\263\305\241\001 \001(\tH\001\210\001\001\022S\n" - + "\006intent\030\234\355\304\313\001 \001(\013" - + "2:.google.cloud.compute.v1.InterconnectAttachmentGroupIntentH\002\210\001\001\022[\n" - + "\013operational\030\322\307\354= \001(\0132>.google.cloud.compute.v1.Inte" - + "rconnectAttachmentGroupConfiguredH\003\210\001\001\"u\n" + + "\006intent\030\234\355\304\313\001 \001(\0132:.go" + + "ogle.cloud.compute.v1.InterconnectAttachmentGroupIntentH\002\210\001\001\022[\n" + + "\013operational\030\322\307\354=" + + " \001(\0132>.google.cloud.compute.v1.InterconnectAttachmentGroupConfiguredH\003\210\001\001\"u\n" + "\013GroupStatus\022\032\n" + "\026UNDEFINED_GROUP_STATUS\020\000\022\020\n" + "\010DEGRADED\020\256\246\240\275\001\022\021\n\n" @@ -19591,7 +19590,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_group_statusB\t\n" + "\007_intentB\016\n" + "\014_operational\"\224\006\n" - + "=InterconnectAttachmentGroupsOperationalStatusAttachmentStatus\022\036\n\r" + + "=InterconnectAttachmentGroupsOperationalStatusAttachmentStatus\022\036\n" + + "\r" + "admin_enabled\030\321\354\301\324\001 \001(\010H\000\210\001\001\022\032\n\n" + "attachment\030\243\262\335W \001(\tH\001\210\001\001\022\031\n" + "\tis_active\030\273\327\3406 \001(\tH\002\210\001\001\022\026\n" @@ -19623,29 +19623,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_is_activeB\t\n" + "\007_status\"\333\004\n" + "\"InterconnectAttachmentL2Forwarding\022r\n" - + "\022appliance_mappings\030\267\277\313\262\001 \003(\0132R" - + ".google.cloud.compute.v1.InterconnectAtt" - + "achmentL2Forwarding.ApplianceMappingsEntry\022-\n" + + "\022appliance_mappings\030\267\277\313\262\001 \003(\0132R.goog" + + "le.cloud.compute.v1.InterconnectAttachmentL2Forwarding.ApplianceMappingsEntry\022-\n" + "\034default_appliance_ip_address\030\354\343\350\377\001 \001(" + "\tH\000\210\001\001\022f\n\r" - + "geneve_header\030\250\225\3148 \001(\0132G.go" - + "ogle.cloud.compute.v1.InterconnectAttachmentL2ForwardingGeneveHeaderH\001\210\001\001\022\027\n" + + "geneve_header\030\250\225\3148 \001(\0132G.google." + + "cloud.compute.v1.InterconnectAttachmentL2ForwardingGeneveHeaderH\001\210\001\001\022\027\n" + "\007network\030\256\264\205o \001(\tH\002\210\001\001\022+\n" + "\032tunnel_endpoint_ip_address\030\357\326\301\337\001 \001(" + "\tH\003\210\001\001\032\205\001\n" + "\026ApplianceMappingsEntry\022\013\n" + "\003key\030\001 \001(\t\022Z\n" - + "\005value\030\002 \001(\0132K.google.cloud.compute.v1.InterconnectAtt" - + "achmentL2ForwardingApplianceMapping:\0028\001B\037\n" + + "\005value\030\002 \001(\0132K.goog" + + "le.cloud.compute.v1.InterconnectAttachmentL2ForwardingApplianceMapping:\0028\001B\037\n" + "\035_default_appliance_ip_addressB\020\n" + "\016_geneve_headerB\n\n" + "\010_networkB\035\n" + "\033_tunnel_endpoint_ip_address\"\250\002\n" + "2InterconnectAttachmentL2ForwardingApplianceMapping\022$\n" + "\024appliance_ip_address\030\256\225\323\033 \001(\tH\000\210\001\001\022\223\001\n" - + " inner_vlan_to_appliance_mappings\030\250\213\270. \003(\0132f.googl" - + "e.cloud.compute.v1.InterconnectAttachmen" - + "tL2ForwardingApplianceMappingInnerVlanToApplianceMapping\022\024\n" + + " inner_vlan_to_appliance_mappings\030\250\213\270. \003(\0132f.google.clo" + + "ud.compute.v1.InterconnectAttachmentL2Fo" + + "rwardingApplianceMappingInnerVlanToApplianceMapping\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001B\027\n" + "\025_appliance_ip_addressB\007\n" + "\005_name\"\270\001\n" @@ -19660,8 +19659,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_vni\"\275\002\n" + "\032InterconnectAttachmentList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022A\n" - + "\005items\030\300\317\367/" - + " \003(\0132/.google.cloud.compute.v1.InterconnectAttachment\022\024\n" + + "\005items\030\300\317\367/ \003(\0132" + + "/.google.cloud.compute.v1.InterconnectAttachment\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -19673,9 +19672,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\315\001\n" + "\034InterconnectAttachmentParams\022q\n" - + "\025resource_manager_tags\030\374\233\213\264\001" - + " \003(\0132N.google.cloud.compute.v1.Intercon" - + "nectAttachmentParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\013" + + "2N.google.cloud.compute.v1.InterconnectA" + + "ttachmentParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\274\001\n" @@ -19704,14 +19703,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_customer_demarc_idB\024\n" + "\022_google_circuit_idB\023\n" + "\021_google_demarc_id\"\225\005\n" - + "\027InterconnectDiagnostics\022P\n" - + "\n" - + "arp_caches\030\221\326\330\305\001 \003(\01328.google.cloud.com" - + "pute.v1.InterconnectDiagnosticsARPEntry\022(\n" + + "\027InterconnectDiagnostics\022P\n\n" + + "arp_caches\030\221\326\330\305\001" + + " \003(\01328.google.cloud.compute.v1.InterconnectDiagnosticsARPEntry\022(\n" + "\027bundle_aggregation_type\030\224\311\262\317\001 \001(\tH\000\210\001\001\022)\n" + "\031bundle_operational_status\030\334\227\3402 \001(\tH\001\210\001\001\022L\n" - + "\005links\030\271\237\2151 \003(\0132:.google.cloud.co" - + "mpute.v1.InterconnectDiagnosticsLinkStatus\022\034\n" + + "\005links\030\271\237\2151" + + " \003(\0132:.google.cloud.compute.v1.InterconnectDiagnosticsLinkStatus\022\034\n" + "\013mac_address\030\204\322\310\236\001 \001(\tH\002\210\001\001\"\212\001\n" + "\025BundleAggregationType\022%\n" + "!UNDEFINED_BUNDLE_AGGREGATION_TYPE\020\000\022#\n" @@ -19754,19 +19752,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_stateB\010\n" + "\006_value\"\361\006\n" + "!InterconnectDiagnosticsLinkStatus\022P\n\n" - + "arp_caches\030\221\326\330\305\001 \003(\01328.google.cloud.c" - + "ompute.v1.InterconnectDiagnosticsARPEntry\022\032\n\n" + + "arp_caches\030\221\326\330\305\001" + + " \003(\01328.google.cloud.compute.v1.InterconnectDiagnosticsARPEntry\022\032\n\n" + "circuit_id\030\261\372\257k \001(\tH\000\210\001\001\022\034\n\r" + "google_demarc\030\214\217\003 \001(\tH\001\210\001\001\022\\\n" - + "\013lacp_status\030\257\304\236\254\001" - + " \001(\0132>.google.cloud.compute.v1.InterconnectDiagnosticsLinkLACPStatusH\002\210\001\001\022U\n" - + "\006macsec\030\242\301\227\374\001 \001(\0132<.google.cloud.compute.v1." - + "InterconnectDiagnosticsMacsecStatusH\003\210\001\001\022\"\n" + + "\013lacp_status\030\257\304\236\254\001 \001(\0132" + + ">.google.cloud.compute.v1.InterconnectDiagnosticsLinkLACPStatusH\002\210\001\001\022U\n" + + "\006macsec\030\242\301\227\374\001" + + " \001(\0132<.google.cloud.compute.v1.InterconnectDiagnosticsMacsecStatusH\003\210\001\001\022\"\n" + "\022operational_status\030\377\261\360_ \001(\tH\004\210\001\001\022i\n" - + "\027receiving_optical_power\030\337\255\330t \001(\0132@.googl" - + "e.cloud.compute.v1.InterconnectDiagnosticsLinkOpticalPowerH\005\210\001\001\022m\n" - + "\032transmitting_optical_power\030\235\272\211\333\001 \001(\0132@.google.cloud.c" - + "ompute.v1.InterconnectDiagnosticsLinkOpticalPowerH\006\210\001\001\"\177\n" + + "\027receiving_optical_power\030\337\255\330t \001(\0132@.google.clo" + + "ud.compute.v1.InterconnectDiagnosticsLinkOpticalPowerH\005\210\001\001\022m\n" + + "\032transmitting_optical_power\030\235\272\211\333\001 \001(\0132@.google.cloud.comput" + + "e.v1.InterconnectDiagnosticsLinkOpticalPowerH\006\210\001\001\"\177\n" + "\021OperationalStatus\022 \n" + "\034UNDEFINED_OPERATIONAL_STATUS\020\000\022$\n" + "\034LINK_OPERATIONAL_STATUS_DOWN\020\375\344\246\206\001\022\"\n" @@ -19784,25 +19782,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_cknB\016\n" + "\014_operational\"\224\006\n" + "\021InterconnectGroup\022Q\n\n" - + "configured\030\276\364\373\214\001 " - + "\001(\01324.google.cloud.compute.v1.InterconnectGroupConfiguredH\000\210\001\001\022\"\n" + + "configured\030\276\364\373\214\001 \001(\01324" + + ".google.cloud.compute.v1.InterconnectGroupConfiguredH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022I\n" - + "\006intent\030\234\355\304\313\001 \001(\01320.google.cl" - + "oud.compute.v1.InterconnectGroupIntentH\005\210\001\001\022X\n\r" - + "interconnects\030\245\333\205\370\001 \003(\0132=.google." - + "cloud.compute.v1.InterconnectGroup.InterconnectsEntry\022\024\n" + + "\006intent\030\234\355\304\313\001 \001(\01320.google.cloud.c" + + "ompute.v1.InterconnectGroupIntentH\005\210\001\001\022X\n\r" + + "interconnects\030\245\333\205\370\001 \003(\0132=.google.cloud" + + ".compute.v1.InterconnectGroup.InterconnectsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022_\n" - + "\022physical_structure\030\213\320\220]" - + " \001(\0132;.google.cloud.compute.v1.InterconnectGroupPhysicalStructureH\010\210\001\001\022\032\n" + + "\022physical_structure\030\213\320\220] " + + "\001(\0132;.google.cloud.compute.v1.InterconnectGroupPhysicalStructureH\010\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\032l\n" + "\022InterconnectsEntry\022\013\n" + "\003key\030\001 \001(\t\022E\n" - + "\005value\030\002 \001(\01326.googl" - + "e.cloud.compute.v1.InterconnectGroupInterconnect:\0028\001B\r\n" + + "\005value\030\002 \001(\01326.google.clo" + + "ud.compute.v1.InterconnectGroupInterconnect:\0028\001B\r\n" + "\013_configuredB\025\n" + "\023_creation_timestampB\016\n" + "\014_descriptionB\007\n" @@ -19814,13 +19812,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_physical_structureB\014\n\n" + "_self_link\"\242\001\n" + "\033InterconnectGroupConfigured\022k\n" - + "\023topology_capability\030\350\331\340D \001(\0132F.google.cloud.compute.v1.I" - + "nterconnectGroupConfiguredTopologyCapabilityH\000\210\001\001B\026\n" + + "\023topology_capability\030\350\331\340D \001(\0132F.google.cloud.compute.v1.Interc" + + "onnectGroupConfiguredTopologyCapabilityH\000\210\001\001B\026\n" + "\024_topology_capability\"\374\002\n" + "-InterconnectGroupConfiguredTopologyCapability\022\212\001\n" - + "\034intended_capability_blockers\030\354\375\300\375\001" - + " \003(\0132`.google.cloud.compute.v1.Interco" - + "nnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers\022\035\n\r" + + "\034intended_capability_blockers\030\354\375\300\375\001 \003(" + + "\0132`.google.cloud.compute.v1.Interconnect" + + "GroupConfiguredTopologyCapabilityIntendedCapabilityBlockers\022\035\n\r" + "supported_sla\030\227\364\242\034 \001(\tH\000\210\001\001\"\214\001\n" + "\014SupportedSla\022\033\n" + "\027UNDEFINED_SUPPORTED_SLA\020\000\022\r\n" @@ -19861,17 +19859,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014interconnect\030\216\311\214k \001(\tH\000\210\001\001B\017\n\r" + "_interconnect\"{\n" + "\"InterconnectGroupPhysicalStructure\022U\n" - + "\006metros\030\372\354\227\376\001 \003(\0132A.g" - + "oogle.cloud.compute.v1.InterconnectGroupPhysicalStructureMetros\"\260\001\n" + + "\006metros\030\372\354\227\376\001 \003(\0132A.google" + + ".cloud.compute.v1.InterconnectGroupPhysicalStructureMetros\"\260\001\n" + "(InterconnectGroupPhysicalStructureMetros\022c\n\n" - + "facilities\030\201\305\364\377\001 \003(\0132K.google.cloud.compute.v1.I" - + "nterconnectGroupPhysicalStructureMetrosFacilities\022\025\n" + + "facilities\030\201\305\364\377\001 \003(\0132K.google.cloud.compute.v1.Interc" + + "onnectGroupPhysicalStructureMetrosFacilities\022\025\n" + "\005metro\030\231\332\2761 \001(\tH\000\210\001\001B\010\n" + "\006_metro\"\300\001\n" + "2InterconnectGroupPhysicalStructureMetrosFacilities\022\031\n" + "\010facility\030\243\335\371\356\001 \001(\tH\000\210\001\001\022b\n" - + "\005zones\030\307\244\2557 \003(\0132P.google.cloud.co" - + "mpute.v1.InterconnectGroupPhysicalStructureMetrosFacilitiesZonesB\013\n" + + "\005zones\030\307\244\2557 \003(\0132P.google.cloud.compute" + + ".v1.InterconnectGroupPhysicalStructureMetrosFacilitiesZonesB\013\n" + "\t_facility\"s\n" + "7InterconnectGroupPhysicalStructureMetrosFacilitiesZones\022\031\n\r" + "interconnects\030\245\333\205\370\001 \003(\t\022\024\n" @@ -19879,10 +19877,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\320\003\n" + "\037InterconnectGroupsCreateMembers\022(\n" + "\030intent_mismatch_behavior\030\300\325\262N \001(\tH\000\210\001\001\022d\n\r" - + "interconnects\030\245\333\205\370\001 \003(\0132I.google.cloud.compu" - + "te.v1.InterconnectGroupsCreateMembersInterconnectInput\022p\n" - + "\025template_interconnect\030\263\260\225k \001(\0132I.google.cloud.compute.v1.Inter" - + "connectGroupsCreateMembersInterconnectInputH\001\210\001\001\"t\n" + + "interconnects\030\245\333\205\370\001 \003(\0132I.google.cloud.compute.v1" + + ".InterconnectGroupsCreateMembersInterconnectInput\022p\n" + + "\025template_interconnect\030\263\260\225k " + + "\001(\0132I.google.cloud.compute.v1.Interconne" + + "ctGroupsCreateMembersInterconnectInputH\001\210\001\001\"t\n" + "\026IntentMismatchBehavior\022&\n" + "\"UNDEFINED_INTENT_MISMATCH_BEHAVIOR\020\000\022\016\n" + "\006CREATE\020\374\251\342\267\001\022\r\n" @@ -19912,9 +19911,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032LINK_TYPE_ETHERNET_100G_LR\020\347\362\201\241\001\022 \n" + "\031LINK_TYPE_ETHERNET_10G_LR\020\245\271\361p\022\"\n" + "\033LINK_TYPE_ETHERNET_400G_LR4\020\312\364\310<\"\200\001\n" - + "\021RequestedFeatures\022 \n" - + "\034UNDEFINED_REQUESTED_FEA", - "TURES\020\000\022\035\n" + + "\021Requested", + "Features\022 \n" + + "\034UNDEFINED_REQUESTED_FEATURES\020\000\022\035\n" + "\025IF_CROSS_SITE_NETWORK\020\267\242\330\337\001\022\027\n" + "\020IF_L2_FORWARDING\020\324\347\357;\022\021\n" + "\tIF_MACSEC\020\204\374\372\274\001B\020\n" @@ -19930,8 +19929,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025_requested_link_count\"\207\001\n" + "&InterconnectGroupsCreateMembersRequest\022Q\n" + "\007request\030\217\345\273\n" - + " \001" - + "(\01328.google.cloud.compute.v1.InterconnectGroupsCreateMembersH\000\210\001\001B\n\n" + + " \001(\01328." + + "google.cloud.compute.v1.InterconnectGroupsCreateMembersH\000\210\001\001B\n\n" + "\010_request\"\260\001\n" + ".InterconnectGroupsGetOperationalStatusResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022T\n" @@ -19960,12 +19959,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "configured\030\276\364\373\214\001" + " \001(\01324.google.cloud.compute.v1.InterconnectGroupConfiguredH\000\210\001\001\022\035\n" + "\014group_status\030\262\263\305\241\001 \001(\tH\001\210\001\001\022I\n" - + "\006intent\030\234\355\304\313\001" - + " \001(\01320.google.cloud.compute.v1.InterconnectGroupIntentH\002\210\001\001\022q\n" - + "\025interconnect_statuses\030\261\351\203\325\001 \003(\0132N.google.cloud.compute.v" - + "1.InterconnectGroupsOperationalStatusInterconnectStatus\022Q\n" - + "\013operational\030\322\307\354= \001(\0132" - + "4.google.cloud.compute.v1.InterconnectGroupConfiguredH\003\210\001\001\"\202\001\n" + + "\006intent\030\234\355\304\313\001 \001(\013" + + "20.google.cloud.compute.v1.InterconnectGroupIntentH\002\210\001\001\022q\n" + + "\025interconnect_statuses\030\261\351\203\325\001" + + " \003(\0132N.google.cloud.compute.v1.Int" + + "erconnectGroupsOperationalStatusInterconnectStatus\022Q\n" + + "\013operational\030\322\307\354= \001(\01324.goo" + + "gle.cloud.compute.v1.InterconnectGroupConfiguredH\003\210\001\001\"\202\001\n" + "\013GroupStatus\022\032\n" + "\026UNDEFINED_GROUP_STATUS\020\000\022\020\n" + "\010DEGRADED\020\256\246\240\275\001\022\021\n\n" @@ -19978,8 +19978,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_operational\"\207\003\n" + "5InterconnectGroupsOperationalStatusInterconnectStatus\022\036\n\r" + "admin_enabled\030\321\354\301\324\001 \001(\010H\000\210\001\001\022N\n" - + "\013diagnostics\030\254\263\372\236\001" - + " \001(\01320.google.cloud.compute.v1.InterconnectDiagnosticsH\001\210\001\001\022\034\n" + + "\013diagnostics\030\254\263\372\236\001 \001(\013" + + "20.google.cloud.compute.v1.InterconnectDiagnosticsH\001\210\001\001\022\034\n" + "\014interconnect\030\216\311\214k \001(\tH\002\210\001\001\022\031\n" + "\tis_active\030\273\327\3406 \001(\tH\003\210\001\001\"d\n" + "\010IsActive\022\027\n" @@ -20012,8 +20012,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004city\030\353\262\272\001 \001(\tH\002\210\001\001\022\031\n" + "\tcontinent\030\264\333\320? \001(\tH\003\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\004\210\001\001\022p\n" - + "\035cross_site_interconnect_infos\030\215\337\303v \003(\0132F.google.cloud.c" - + "ompute.v1.InterconnectLocationCrossSiteInterconnectInfo\022\034\n" + + "\035cross_site_interconnect_infos\030\215\337\303v \003(\0132F.google.cloud.comput" + + "e.v1.InterconnectLocationCrossSiteInterconnectInfo\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\005\210\001\001\022\"\n" + "\021facility_provider\030\215\240\246\376\001 \001(\tH\006\210\001\001\022-\n" + "\035facility_provider_facility_id\030\205\276\316) \001(\tH\007\210\001\001\022\020\n" @@ -20044,7 +20044,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023UNDEFINED_CONTINENT\020\000\022\016\n" + "\006AFRICA\020\372\234\257\227\001\022\017\n" + "\010ASIA_PAC\020\375\366\2169\022\017\n" - + "\010C_AFRICA\020\366\223\252\"\022\022\n\n" + + "\010C_AFRICA\020\366\223\252\"\022\022\n" + + "\n" + "C_ASIA_PAC\020\371\217\206\336\001\022\017\n" + "\010C_EUROPE\020\236\312\305_\022\027\n" + "\017C_NORTH_AMERICA\020\230\233\273\203\001\022\027\n" @@ -20115,8 +20116,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\01327.google.cloud.compute.v1.InterconnectMacsecPreSharedKeyB\014\n\n" + "_fail_open\"v\n" + "\030InterconnectMacsecConfig\022Z\n" - + "\017pre_shared_keys\030\362\313\265\310\001 \003(\0132=.google.cloud.compute" - + ".v1.InterconnectMacsecConfigPreSharedKey\"\250\001\n" + + "\017pre_shared_keys\030\362\313\265\310\001" + + " \003(\0132=.google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey\"\250\001\n" + "$InterconnectMacsecConfigPreSharedKey\022\022\n" + "\003cak\030\315\377\005 \001(\tH\000\210\001\001\022\022\n" + "\003ckn\030\206\202\006 \001(\tH\001\210\001\001\022\024\n" @@ -20165,19 +20166,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_start_timeB\010\n" + "\006_state\"\271\001\n" + "\022InterconnectParams\022g\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132D.google.cloud" - + ".compute.v1.InterconnectParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132D.google.cloud.comp" + + "ute.v1.InterconnectParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\212\014\n" + "\032InterconnectRemoteLocation\022\030\n" + "\007address\030\364\267\336\334\001 \001(\tH\000\210\001\001\022~\n" + "$attachment_configuration_constraints\030\321\350\353\233\001" - + " \001(\0132G.google.cloud.co" - + "mpute.v1.InterconnectAttachmentConfigurationConstraintsH\001\210\001\001\022\024\n" + + " \001(\0132G.google.cloud.compute" + + ".v1.InterconnectAttachmentConfigurationConstraintsH\001\210\001\001\022\024\n" + "\004city\030\353\262\272\001 \001(\tH\002\210\001\001\022[\n" - + "\013constraints\030\266\314\356\001 \001(\0132>.google.clou" - + "d.compute.v1.InterconnectRemoteLocationConstraintsH\003\210\001\001\022\031\n" + + "\013constraints\030\266\314\356\001 \001(\0132>.google.cloud.com" + + "pute.v1.InterconnectRemoteLocationConstraintsH\003\210\001\001\022\031\n" + "\tcontinent\030\264\333\320? \001(\tH\004\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\005\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\006\210\001\001\022\"\n" @@ -20193,8 +20194,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024max_lag_size400_gbps\030\322\214\2052 \001(\005H\016\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\017\210\001\001\022&\n" + "\025peeringdb_facility_id\030\266\272\355\377\001 \001(\tH\020\210\001\001\022j\n" - + "\025permitted_connections\030\256\263\345\322\001 \003(\0132G.google.cloud." - + "compute.v1.InterconnectRemoteLocationPermittedConnections\022\037\n" + + "\025permitted_connections\030\256\263\345\322\001 \003(\0132G.google.cloud.compu" + + "te.v1.InterconnectRemoteLocationPermittedConnections\022\037\n" + "\016remote_service\030\274\377\362\272\001 \001(\tH\021\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\022\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\023\210\001\001\"\202\001\n" @@ -20237,8 +20238,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031port_pair_remote_location\030\247\262\274\354\001 \001(" + "\tH\000\210\001\001\022\037\n" + "\016port_pair_vlan\030\352\362\203\344\001 \001(\tH\001\210\001\001\022t\n" - + "\023subnet_length_range\030\306\260\373W \001(\0132O.google.cloud.compute.v" - + "1.InterconnectRemoteLocationConstraintsSubnetLengthRangeH\002\210\001\001\"\234\001\n" + + "\023subnet_length_range\030\306\260\373W \001(\0132O.google.cloud.compute.v1.Int" + + "erconnectRemoteLocationConstraintsSubnetLengthRangeH\002\210\001\001\"\234\001\n" + "\026PortPairRemoteLocation\022\'\n" + "#UNDEFINED_PORT_PAIR_REMOTE_LOCATION\020\000\022)\n" + "\"PORT_PAIR_MATCHING_REMOTE_LOCATION\020\323\213\354b\022.\n" @@ -20257,8 +20258,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_min\"\305\002\n" + "\036InterconnectRemoteLocationList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022E\n" - + "\005items\030\300\317\367/ \003(\01323.goog" - + "le.cloud.compute.v1.InterconnectRemoteLocation\022\024\n" + + "\005items\030\300\317\367/ \003(\01323.google.cl" + + "oud.compute.v1.InterconnectRemoteLocation\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -20267,15 +20268,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n" - + "\n" + + "_self_linkB\n\n" + "\010_warning\"r\n" + ".InterconnectRemoteLocationPermittedConnections\022&\n" + "\025interconnect_location\030\306\330\333\352\001 \001(\tH\000\210\001\001B\030\n" + "\026_interconnect_location\"z\n" + "#InterconnectsGetDiagnosticsResponse\022H\n" - + "\006result\030\235\220\267B \001(\01320.google.cloud." - + "compute.v1.InterconnectDiagnosticsH\000\210\001\001B\t\n" + + "\006result\030\235\220\267B" + + " \001(\01320.google.cloud.compute.v1.InterconnectDiagnosticsH\000\210\001\001B\t\n" + "\007_result\"\233\001\n" + "$InterconnectsGetMacsecConfigResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022I\n" @@ -20316,8 +20316,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025incompatible_licenses\030\230\260\260\237\001 \003(\t\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022\033\n" + "\014license_code\030\253\306Y \001(\004H\006\210\001\001\022D\n" - + "\021minimum_retention\030\255\340\214J \001(" - + "\0132!.google.cloud.compute.v1.DurationH\007\210\001\001\022\"\n" + + "\021minimum_retention\030\255\340\214J" + + " \001(\0132!.google.cloud.compute.v1.DurationH\007\210\001\001\022\"\n" + "\021multi_tenant_only\030\233\340\353\202\001 \001(\010H\010\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\t\210\001\001\022\033\n\n" + "os_license\030\346\251\330\350\001 \001(\010H\n" @@ -20361,10 +20361,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\003\210\001\001\022!\n" + "\025incompatible_licenses\030\230\260\260\237\001 \003(\t\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022J\n\r" - + "license_alias\030\322\221\342\024" - + " \003(\01320.google.cloud.compute.v1.LicenseCodeLicenseAlias\022D\n" - + "\021minimum_retention\030\255\340\214J" - + " \001(\0132!.google.cloud.compute.v1.DurationH\005\210\001\001\022\"\n" + + "license_alias\030\322\221\342\024 \003(\0132" + + "0.google.cloud.compute.v1.LicenseCodeLicenseAlias\022D\n" + + "\021minimum_retention\030\255\340\214J \001(\0132" + + "!.google.cloud.compute.v1.DurationH\005\210\001\001\022\"\n" + "\021multi_tenant_only\030\233\340\353\202\001 \001(\010H\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\033\n\n" + "os_license\030\346\251\330\350\001 \001(\010H\010\210\001\001\022#\n" @@ -20402,11 +20402,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027LicenseCodeLicenseAlias\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\001\210\001\001B\016\n" - + "\014_descriptionB\014\n\n" + + "\014_descriptionB\014\n" + + "\n" + "_self_link\"\257\001\n\r" + "LicenseParams\022b\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132?.google.c" - + "loud.compute.v1.LicenseParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132?.google.cloud." + + "compute.v1.LicenseParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\234\001\n" @@ -20437,8 +20438,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" - + "\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n" @@ -20499,8 +20499,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r" - + "\n" + + "\t_order_byB\r\n" + "\013_page_token\"\327\001\n" + "\031ListBackendBucketsRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" @@ -20535,7 +20534,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004peer\030\342\342\321\001 \001(\tH\006\210\001\001\022\037\n" + "\016policy_applied\030\360\324\370\264\001 \001(\010H\007\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" - + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\033\n\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\033\n" + + "\n" + "route_type\030\360\266\236\263\001 \001(\tH\010\210\001\001\022\026\n" + "\006router\030\311\256\356F \001(\tB\003\340A\002\"f\n\r" + "AddressFamily\022\034\n" @@ -20561,8 +20561,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" - + "\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002B\t\n" + "\007_filterB\016\n" @@ -20582,9 +20581,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t_order_byB\r\n" + "\013_page_token\"\344\001\n" + "\020ListDisksRequest\022\027\n" - + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" - + "\013max_result", - "s\030\233\310\213\032 \001(\r" + + "\006", + "filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" @@ -20618,7 +20617,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r\n" + + "\t_order_byB\r" + + "\n" + "\013_page_token\"\252\002\n" + ",ListErrorsRegionInstanceGroupManagersRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022&\n" @@ -20700,7 +20700,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r\n" + + "\t_order_byB\r" + + "\n" + "\013_page_token\"\336\001\n" + " ListGlobalForwardingRulesRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" @@ -20862,14 +20863,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r\n" + + "\t_order_byB\r" + + "\n" + "\013_page_token\"\225\003\n" + "\"ListInstancesInstanceGroupsRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\036\n" + "\016instance_group\030\325\324\325& \001(\tB\003\340A\002\022}\n" + "/instance_groups_list_instances_request_resource\030\237\250\214\343\001" - + " \001(\0132;.google.cloud.compute.v" - + "1.InstanceGroupsListInstancesRequestB\003\340A\002\022\033\n" + + " \001(\0132;.google.cloud.compute.v1.InstanceGroupsListInstancesRequestB\003\340A\002\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" @@ -20889,9 +20890,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\211\001\n" - + "6region_instance_groups_list_instances_request_resource\030\324\251\200\027" - + " \001(\0132A.google.cloud.compute.v1.Regio" - + "nInstanceGroupsListInstancesRequestB\003\340A\002B\t\n" + + "6region_instance_groups_list_instances_request_resource\030\324\251\200\027 " + + "\001(\0132A.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequestB\003\340A\002B" + + "\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" + "\t_order_byB\r\n" @@ -20922,8 +20923,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n" - + "\n" + + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\364\001\n" + " ListInstantSnapshotGroupsRequest\022\027\n" @@ -21081,7 +21081,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" + + "\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002B\t\n" + "\007_filterB\016\n" @@ -21099,7 +21100,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006router\030\311\256\356F \001(\tB\003\340A\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r\n" + + "\t_order_byB\r" + + "\n" + "\013_page_token\"\363\001\n" + "\035ListNetworkAttachmentsRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" @@ -21143,8 +21145,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "H\001\210\001\001\022\'\n" + "\026network_endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022\213\001\n" + "7network_endpoint_groups_list_endpoints_request_resource\030\216\230\257\034" - + " \001(\0132B.google.cloud.compute." - + "v1.NetworkEndpointGroupsListEndpointsRequestB\003\340A\002\022\030\n" + + " \001(\0132B.google.cloud.compute.v1.Ne" + + "tworkEndpointGroupsListEndpointsRequestB\003\340A\002\022\030\n" + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\024\n" @@ -21227,8 +21229,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" - + "\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n" @@ -21337,9 +21338,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" - + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027", - "\n" + + "\010order_by\030\350\375\307L \001(\t", + "H\002\210\001\001\022\032\n\n" + + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" @@ -21547,7 +21548,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\003\340A\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r\n" + + "\t_order_byB\r" + + "\n" + "\013_page_token\"\365\001\n" + "\037ListRegionInstanceGroupsRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" @@ -21613,7 +21615,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" + + "\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002B\t\n" @@ -21727,14 +21730,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\003\340A\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r" - + "\n" + + "\t_order_byB\r\n" + "\013_page_token\"\356\001\n" + "\030ListRegionUrlMapsRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" + + "\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002B\t\n" @@ -21752,8 +21755,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\003\340A\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r" - + "\n" + + "\t_order_byB\r\n" + "\013_page_token\"\320\001\n" + "\022ListRegionsRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" @@ -21781,8 +21783,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" - + "\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\033\n" + "\013reservation\030\314\207\325\026 \001(\tB\003\340A\002\022\024\n" @@ -21994,7 +21995,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020WITH_UTILIZATION\020\211\240\257\360\001B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r\n" + + "\t_order_byB\r" + + "\n" + "\013_page_tokenB\010\n" + "\006_views\"\332\001\n" + "\034ListTargetGrpcProxiesRequest\022\027\n" @@ -22012,7 +22014,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" + + "\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002B\t\n" + "\007_filterB\016\n" @@ -22040,8 +22043,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r" - + "\n" + + "\t_order_byB\r\n" + "\013_page_token\"\354\001\n" + "\026ListTargetPoolsRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" @@ -22124,10 +22126,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_page_token\"\373\001\n" + "%ListUsableRegionBackendBucketsRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" - + "\013max_results\030\233\310\213\032 \001(\r" + + "\013max_results\030\233\310\213\032 ", + "\001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022", - "\032\n\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002B\t\n" @@ -22182,7 +22184,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\003\340A\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r\n" + + "\t_order_byB\r" + + "\n" + "\013_page_token\"\367\001\n" + "\025ListWireGroupsRequest\022\"\n" + "\022cross_site_network\030\325\305\3133 \001(\tB\003\340A\002\022\027\n" @@ -22203,8 +22206,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022n\n" - + "(projects_list_xpn_hosts_request_resource\030\227\320\316q" - + " \001(\01324.google.cloud.compute.v1.ProjectsListXpnHostsRequestB\003\340A\002B\t\n" + + "(projects_list_xpn_hosts_request_resource\030\227\320\316q \001(" + + "\01324.google.cloud.compute.v1.ProjectsListXpnHostsRequestB\003\340A\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" + "\t_order_byB\r\n" @@ -22242,13 +22245,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r\n" + + "\t_order_byB\r" + + "\n" + "\013_page_token\"\217\001\n" + "\tLocalDisk\022\032\n\n" + "disk_count\030\355\257\235W \001(\005H\000\210\001\001\022\035\n" + "\014disk_size_gb\030\267\232\347\226\001 \001(\005H\001\210\001\001\022\031\n" - + "\tdisk_type\030\234\351\254, \001(\tH\002\210\001\001B\r" - + "\n" + + "\tdisk_type\030\234\351\254, \001(\tH\002\210\001\001B\r\n" + "\013_disk_countB\017\n\r" + "_disk_size_gbB\014\n\n" + "_disk_type\"\\\n" @@ -22261,12 +22264,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tlocations\030\336\256\221\305\001" + " \003(\01326.google.cloud.compute.v1.LocationPolicy.LocationsEntry\022\035\n" + "\014target_shape\030\363\346\273\241\001 \001(\tH\000\210\001\001\022J\n" - + "\005zones\030\307\244\2557" - + " \003(\01328.google.cloud.compute.v1.LocationPolicyZoneConfiguration\032a\n" + + "\005zones\030\307\244\2557 \003(\013" + + "28.google.cloud.compute.v1.LocationPolicyZoneConfiguration\032a\n" + "\016LocationsEntry\022\013\n" + "\003key\030\001 \001(\t\022>\n" - + "\005value\030\002 \001(\0132/.google.c" - + "loud.compute.v1.LocationPolicyLocation:\0028\001\"^\n" + + "\005value\030\002" + + " \001(\0132/.google.cloud.compute.v1.LocationPolicyLocation:\0028\001\"^\n" + "\013TargetShape\022\032\n" + "\026UNDEFINED_TARGET_SHAPE\020\000\022\t\n" + "\003ANY\020\314\373\003\022\026\n" @@ -22274,8 +22277,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010BALANCED\020\210\272\255\337\001B\017\n\r" + "_target_shape\"\216\002\n" + "\026LocationPolicyLocation\022W\n" - + "\013constraints\030\266\314\356\001" - + " \001(\0132:.google.cloud.compute.v1.LocationPolicyLocationConstraintsH\000\210\001\001\022\032\n\n" + + "\013constraints\030\266\314\356\001 \001(" + + "\0132:.google.cloud.compute.v1.LocationPolicyLocationConstraintsH\000\210\001\001\022\032\n\n" + "preference\030\333\371\362G \001(\tH\001\210\001\001\"`\n\n" + "Preference\022\030\n" + "\024UNDEFINED_PREFERENCE\020\000\022\014\n" @@ -22301,8 +22304,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021label_fingerprint\030\231\360\367T \001(\tH\006\210\001\001\022E\n" + "\006labels\030\377\277\301\356\001" + " \003(\01321.google.cloud.compute.v1.MachineImage.LabelsEntry\022]\n" - + "\034machine_image_encryption_key\030\377\377\347\373\001 \001(\0132..g" - + "oogle.cloud.compute.v1.CustomerEncryptionKeyH\007\210\001\001\022\024\n" + + "\034machine_image_encryption_key\030\377\377\347\373\001 \001(\0132..google" + + ".cloud.compute.v1.CustomerEncryptionKeyH\007\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022C\n" + "\006params\030\206\363\253% \001(\0132+.google.cloud.compute.v1.MachineImageParamsH" + "\t\210\001\001\022\036\n\r" @@ -22362,14 +22365,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\271\001\n" + "\022MachineImageParams\022g\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132D.goo" - + "gle.cloud.compute.v1.MachineImageParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132D.google.c" + + "loud.compute.v1.MachineImageParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\213\010\n" + "\013MachineType\022?\n" - + "\014accelerators\030\350\326\305\200\001" - + " \003(\0132%.google.cloud.compute.v1.Accelerators\022\035\n" + + "\014accelerators\030\350\326\305\200\001 \003(" + + "\0132%.google.cloud.compute.v1.Accelerators\022\035\n" + "\014architecture\030\323\322\261\220\001 \001(\tH\000\210\001\001\022N\n" + "\022bundled_local_ssds\030\200\347\340\270\001" + " \001(\0132).google.cloud.compute.v1.BundledLocalSsdsH\001\210\001\001\022\"\n" @@ -22414,8 +22417,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\302\003\n" + "\031MachineTypeAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022O\n" - + "\005items\030\300\317\367/ \003(\0132=.google.cl" - + "oud.compute.v1.MachineTypeAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132=.google.cloud.c" + + "ompute.v1.MachineTypeAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -22429,7 +22432,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n\n" + + "_self_linkB\n" + + "\n" + "\010_warning\"\247\002\n" + "\017MachineTypeList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0226\n" @@ -22453,27 +22457,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016current_action\030\274\247\215U \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\001\210\001\001\022\030\n" + "\010instance\030\225\251\332\010 \001(\tH\002\210\001\001\022S\n" - + "\017instance_health\030\306\222\274\266\001 \003(\013" - + "26.google.cloud.compute.v1.ManagedInstanceInstanceHealth\022\037\n" + + "\017instance_health\030\306\222\274\266\001 \003(\01326.go" + + "ogle.cloud.compute.v1.ManagedInstanceInstanceHealth\022\037\n" + "\017instance_status\030\334\255\237S \001(\tH\003\210\001\001\022R\n" - + "\014last_attempt\030\244\254\250\317\001 \001(\01323.go" - + "ogle.cloud.compute.v1.ManagedInstanceLastAttemptH\004\210\001\001\022\024\n" + + "\014last_attempt\030\244\254\250\317\001 \001(\01323.google." + + "cloud.compute.v1.ManagedInstanceLastAttemptH\004\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022T\n" - + "\033preserved_state_from_config\030\342\353\205/ \001(\0132\'.go" - + "ogle.cloud.compute.v1.PreservedStateH\006\210\001\001\022U\n" - + "\033preserved_state_from_policy\030\322\257\276\340\001 \001" - + "(\0132\'.google.cloud.compute.v1.PreservedStateH\007\210\001\001\022{\n" + + "\033preserved_state_from_config\030\342\353\205/" + + " \001(\0132\'.google.cloud.compute.v1.PreservedStateH\006\210\001\001\022U\n" + + "\033preserved_state_from_policy\030\322\257\276\340\001 \001(\0132\'." + + "google.cloud.compute.v1.PreservedStateH\007\210\001\001\022{\n" + "\"properties_from_flexibility_policy\030\301\305\224J" - + " \001(\0132G.google.cloud.compute.v" - + "1.ManagedInstancePropertiesFromFlexibilityPolicyH\010\210\001\001\022O\n\n" - + "scheduling\030\224\313\261\270\001 \001(\01322." - + "google.cloud.compute.v1.ManagedInstanceSchedulingH\t\210\001\001\022Y\n" - + "\020shutdown_details\030\331\322\237\007 " - + "\001(\01327.google.cloud.compute.v1.ManagedInstanceShutdownDetailsH\n" + + " \001(\0132G.google.cloud.compute.v1.Man" + + "agedInstancePropertiesFromFlexibilityPolicyH\010\210\001\001\022O\n\n" + + "scheduling\030\224\313\261\270\001 \001(\01322.googl" + + "e.cloud.compute.v1.ManagedInstanceSchedulingH\t\210\001\001\022Y\n" + + "\020shutdown_details\030\331\322\237\007 \001(\01327" + + ".google.cloud.compute.v1.ManagedInstanceShutdownDetailsH\n" + "\210\001\001\022\036\n\r" + "target_status\030\340\314\342\222\001 \001(\tH\013\210\001\001\022I\n" - + "\007version\030\330\271\324\247\001 \001(\0132/" - + ".google.cloud.compute.v1.ManagedInstanceVersionH\014\210\001\001\"\205\002\n\r" + + "\007version\030\330\271\324\247\001 \001(\0132/.goog" + + "le.cloud.compute.v1.ManagedInstanceVersionH\014\210\001\001\"\205\002\n\r" + "CurrentAction\022\034\n" + "\030UNDEFINED_CURRENT_ACTION\020\000\022\022\n\n" + "ABANDONING\020\315\312\220\271\001\022\020\n" @@ -22482,7 +22486,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010DELETING\020\250\247\207\374\001\022\013\n" + "\004NONE\020\270\316\222\001\022\022\n\n" + "RECREATING\020\354\213\376\210\001\022\021\n\n" - + "REFRESHING\020\247\376\354M\022\022\n\n" + + "REFRESHING\020\247\376\354M\022\022\n" + + "\n" + "RESTARTING\020\363\356\353\230\001\022\020\n" + "\010RESUMING\020\252\373\211\325\001\022\020\n" + "\010STARTING\020\300\240\213\351\001\022\020\n" @@ -22514,8 +22519,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_nameB\036\n" + "\034_preserved_state_from_configB\036\n" + "\034_preserved_state_from_policyB%\n" - + "#_properties_from_flexibility_policyB\r" - + "\n" + + "#_properties_from_flexibility_policyB\r\n" + "\013_schedulingB\023\n" + "\021_shutdown_detailsB\020\n" + "\016_target_statusB\n\n" @@ -22581,8 +22585,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_link\"\344\001\n" + "\022ManagedRulesetList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0229\n" - + "\005items\030\300\317\367/ \003(\0132\'." - + "google.cloud.compute.v1.ManagedRuleset\022\037\n" + + "\005items\030\300\317\367/" + + " \003(\0132\'.google.cloud.compute.v1.ManagedRuleset\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\001\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\002\210\001\001B\005\n" @@ -22596,8 +22600,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_fingerprintB\007\n" + "\005_kind\"\217\002\n" + "\016MetadataFilter\022L\n\r" - + "filter_labels\030\246\365\350\222\001 \003(\01321.goo" - + "gle.cloud.compute.v1.MetadataFilterLabelMatch\022%\n" + + "filter_labels\030\246\365\350\222\001 \003(\01321.google.c" + + "loud.compute.v1.MetadataFilterLabelMatch\022%\n" + "\025filter_match_criteria\030\300\320\266r \001(\tH\000\210\001\001\"n\n" + "\023FilterMatchCriteria\022#\n" + "\037UNDEFINED_FILTER_MATCH_CRITERIA\020\000\022\020\n" @@ -22622,8 +22626,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022l\n" - + "®ion_addresses_move_request_resource\030\304\260\210\303\001" - + " \001(\01323.google.cloud.compute.v1.RegionAddressesMoveRequestB\003\340A\002\022\032\n\n" + + "®ion_addresses_move_request_resource\030\304\260\210\303\001 \001" + + "(\01323.google.cloud.compute.v1.RegionAddressesMoveRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\275\001\n" + "\026MoveDiskProjectRequest\022U\n" @@ -22683,8 +22687,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_nameB\007\n" + "\005_type\"\210\001\n" + "\tNatIpInfo\022S\n" - + "\024nat_ip_info_mappings\030\234\200\216s \003(\01322.g" - + "oogle.cloud.compute.v1.NatIpInfoNatIpInfoMapping\022\031\n" + + "\024nat_ip_info_mappings\030\234\200\216s \003(\01322.google" + + ".cloud.compute.v1.NatIpInfoNatIpInfoMapping\022\031\n" + "\010nat_name\030\351\255\370\312\001 \001(\tH\000\210\001\001B\013\n" + "\t_nat_name\"\362\001\n" + "\031NatIpInfoNatIpInfoMapping\022\024\n" @@ -22725,10 +22729,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\022>\n" + "\006params\030\206\363\253%" + " \001(\0132&.google.cloud.compute.v1.NetworkParamsH\016\210\001\001\022<\n" - + "\010peerings\030\263\252\251! \003" - + "(\0132\'.google.cloud.compute.v1.NetworkPeering\022N\n" - + "\016routing_config\030\333\251\323\371\001 \001(\0132-.google" - + ".cloud.compute.v1.NetworkRoutingConfigH\017\210\001\001\022\032\n" + + "\010peerings\030\263\252\251! \003(\0132\'." + + "google.cloud.compute.v1.NetworkPeering\022N\n" + + "\016routing_config\030\333\251\323\371\001 \001(\0132-.google.clou" + + "d.compute.v1.NetworkRoutingConfigH\017\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\020\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\021\210\001\001\022\027\n" + "\013subnetworks\030\305\324\245\306\001 \003(\t\"\240\001\n" @@ -22751,8 +22755,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*_network_firewall_policy_enforcement_orderB\022\n" + "\020_network_profileB\t\n" + "\007_paramsB\021\n" - + "\017_routing_configB\014\n" - + "\n" + + "\017_routing_configB\014\n\n" + "_self_linkB\024\n" + "\022_self_link_with_id\"\247\006\n" + "\021NetworkAttachment\022]\n" @@ -22791,17 +22794,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_self_link_with_id\"\273\003\n" + "\037NetworkAttachmentAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022U\n" - + "\005items\030\300\317\367/ \003(\0132C.go" - + "ogle.cloud.compute.v1.NetworkAttachmentAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132C.google." + + "cloud.compute.v1.NetworkAttachmentAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" - + "\007warning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.Warnin", - "gH\004\210\001\001\032c\n\n" + + "\007warning\030\234\337\226\030 \001", + "(\0132 .google.cloud.compute.v1.WarningH\004\210\001\001\032c\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022D\n" - + "\005value\030\002" - + " \001(\01325.google.cloud.compute.v1.NetworkAttachmentsScopedList:\0028\001B\005\n" + + "\005value\030\002 " + + "\001(\01325.google.cloud.compute.v1.NetworkAttachmentsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -22846,8 +22849,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\262\001\n" + "\034NetworkAttachmentsScopedList\022K\n" - + "\023network_attachments\030\237\336\326\370\001 " - + "\003(\0132*.google.cloud.compute.v1.NetworkAttachment\0229\n" + + "\023network_attachments\030\237\336\326\370\001 \003(\0132*" + + ".google.cloud.compute.v1.NetworkAttachment\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\304\003\n" @@ -22875,8 +22878,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(NetworkEdgeSecurityServiceAggregatedList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022^\n" - + "\005items\030\300\317\367/ \003(\0132L.g" - + "oogle.cloud.compute.v1.NetworkEdgeSecurityServiceAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132L.google" + + ".cloud.compute.v1.NetworkEdgeSecurityServiceAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -22885,8 +22888,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032l\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 " - + "\001(\0132>.google.cloud.compute.v1.NetworkEdgeSecurityServicesScopedList:\0028\001B\007\n" + + "\005value\030\002 \001(\0132>" + + ".google.cloud.compute.v1.NetworkEdgeSecurityServicesScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -22894,14 +22897,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\316\001\n" + "%NetworkEdgeSecurityServicesScopedList\022^\n" - + "\036network_edge_security_services\030\254\313\370\020 \003(\01323.google.clo" - + "ud.compute.v1.NetworkEdgeSecurityService\0229\n" + + "\036network_edge_security_services\030\254\313\370\020" + + " \003(\01323.google.cloud.compute.v1.NetworkEdgeSecurityService\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\236\003\n" + "\017NetworkEndpoint\022Q\n" - + "\013annotations\030\244\366\2655 \003(\01329.go" - + "ogle.cloud.compute.v1.NetworkEndpoint.AnnotationsEntry\022\'\n" + + "\013annotations\030\244\366\2655 \003(\01329.google." + + "cloud.compute.v1.NetworkEndpoint.AnnotationsEntry\022\'\n" + "\027client_destination_port\030\206\210\202; \001(\005H\000\210\001\001\022\024\n" + "\004fqdn\030\225\245\300\001 \001(\tH\001\210\001\001\022\030\n" + "\010instance\030\225\251\332\010 \001(\tH\002\210\001\001\022\033\n\n" @@ -22918,14 +22921,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_ipv6_addressB\007\n" + "\005_port\"\256\013\n" + "\024NetworkEndpointGroup\022V\n" - + "\013annotations\030\244\366\2655 \003(\0132>.google.cloud.compute" - + ".v1.NetworkEndpointGroup.AnnotationsEntry\022S\n\n" - + "app_engine\030\240\214\300\242\001 \001(\01326.google.cloud" - + ".compute.v1.NetworkEndpointGroupAppEngineH\000\210\001\001\022[\n" - + "\016cloud_function\030\242\345\363\367\001 \001(\0132:.goo" - + "gle.cloud.compute.v1.NetworkEndpointGroupCloudFunctionH\001\210\001\001\022P\n" - + "\tcloud_run\030\201\313\3724 \001(" - + "\01325.google.cloud.compute.v1.NetworkEndpointGroupCloudRunH\002\210\001\001\022\"\n" + + "\013annotations\030\244\366\2655" + + " \003(\0132>.google.cloud.compute.v1.NetworkEndpointGroup.AnnotationsEntry\022S\n\n" + + "app_engine\030\240\214\300\242\001 \001(\01326.google.cloud.comp" + + "ute.v1.NetworkEndpointGroupAppEngineH\000\210\001\001\022[\n" + + "\016cloud_function\030\242\345\363\367\001 \001(\0132:.google.c" + + "loud.compute.v1.NetworkEndpointGroupCloudFunctionH\001\210\001\001\022P\n" + + "\tcloud_run\030\201\313\3724 \001(\01325.g" + + "oogle.cloud.compute.v1.NetworkEndpointGroupCloudRunH\002\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\003\210\001\001\022\035\n" + "\014default_port\030\277\367\360\311\001 \001(\005H\004\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\005\210\001\001\022\020\n" @@ -22935,8 +22938,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007network\030\256\264\205o \001(\tH\t\210\001\001\022%\n" + "\025network_endpoint_type\030\323\306\2648 \001(\tH\n" + "\210\001\001\022N\n" - + "\010psc_data\030\311\333\246\" \001(\01324.google.cloud" - + ".compute.v1.NetworkEndpointGroupPscDataH\013\210\001\001\022#\n" + + "\010psc_data\030\311\333\246\" \001(\01324.google.cloud.comp" + + "ute.v1.NetworkEndpointGroupPscDataH\013\210\001\001\022#\n" + "\022psc_target_service\030\346\302\252\200\001 \001(\tH\014\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\r" + "\210\001\001\022\032\n" @@ -22979,8 +22982,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\335\003\n" + "\"NetworkEndpointGroupAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022X\n" - + "\005items\030\300\317\367/ \003(\0132F.google.cloud.comp" - + "ute.v1.NetworkEndpointGroupAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132F.google.cloud.compute.v" + + "1.NetworkEndpointGroupAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -22989,8 +22992,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032f\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022G\n" - + "\005value\030\002 \001(\01328.google.cloud.com" - + "pute.v1.NetworkEndpointGroupsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01328.google.cloud.compute." + + "v1.NetworkEndpointGroupsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -23061,8 +23064,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_health_status\"\253\002\n" + ")NetworkEndpointGroupsListNetworkEndpoints\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022J\n" - + "\005items\030\300\317\367/ \003(\0132" - + "8.google.cloud.compute.v1.NetworkEndpointWithHealthStatus\022\024\n" + + "\005items\030\300\317\367/ \003(\01328.goo" + + "gle.cloud.compute.v1.NetworkEndpointWithHealthStatus\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" @@ -23078,15 +23081,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\317\001\n" + "\037NetworkEndpointWithHealthStatus\022K\n" - + "\007healths\030\227\223\255{ \003(\01327.google.cloud" - + ".compute.v1.HealthStatusForNetworkEndpoint\022J\n" - + "\020network_endpoint\030\206\221\212\033 \001(\0132(.google" - + ".cloud.compute.v1.NetworkEndpointH\000\210\001\001B\023\n" + + "\007healths\030\227\223\255{" + + " \003(\01327.google.cloud.compute.v1.HealthStatusForNetworkEndpoint\022J\n" + + "\020network_endpoint\030\206\221\212\033" + + " \001(\0132(.google.cloud.compute.v1.NetworkEndpointH\000\210\001\001B\023\n" + "\021_network_endpoint\"\332\003\n" + "#NetworkFirewallPolicyAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022Y\n" - + "\005items\030\300\317\367/ \003(\0132G.google.cloud.compute.v" - + "1.NetworkFirewallPolicyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132G.google.cloud.compute.v1.Net" + + "workFirewallPolicyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -23107,8 +23110,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132%.google.cloud.compute.v1.AccessConfig\022A\n" + "\017alias_ip_ranges\030\277\203\334N" + " \003(\0132%.google.cloud.compute.v1.AliasIpRange\022C\n" - + "\021alias_ipv6_ranges\030\277\261\3151 \003(\013" - + "2%.google.cloud.compute.v1.AliasIpRange\022&\n" + + "\021alias_ipv6_ranges\030\277\261\3151" + + " \003(\0132%.google.cloud.compute.v1.AliasIpRange\022&\n" + "\025enable_vpc_scoped_dns\030\314\370\222\207\001 \001(\010H\000\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\001\210\001\001\022\032\n\n" + "igmp_query\030\312\244\266\016 \001(\tH\002\210\001\001\022+\n" @@ -23187,15 +23190,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\257\001\n\r" + "NetworkParams\022b\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132?.goo" - + "gle.cloud.compute.v1.NetworkParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132?.google.c" + + "loud.compute.v1.NetworkParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\316\010\n" + "\016NetworkPeering\022\"\n" + "\022auto_create_routes\030\335\342\262\033 \001(\010H\000\210\001\001\022[\n" - + "\021connection_status\030\363\360\321\372\001" - + " \001(\01327.google.cloud.compute.v1.NetworkPeeringConnectionStatusH\001\210\001\001\022&\n" + + "\021connection_status\030\363\360\321\372\001 \001(\013" + + "27.google.cloud.compute.v1.NetworkPeeringConnectionStatusH\001\210\001\001\022&\n" + "\026exchange_subnet_routes\030\320\312\306\014 \001(\010H\002\210\001\001\022$\n" + "\024export_custom_routes\030\215\245\337\034 \001(\010H\003\210\001\001\0223\n" + "#export_subnet_routes_with_public_ip\030\342\352\331." @@ -23205,7 +23208,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\010H\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\027\n" + "\007network\030\256\264\205o \001(\tH\010\210\001\001\022\030\n" - + "\010peer_mtu\030\321\216\227! \001(\005H\t\210\001\001\022\033\n\n" + + "\010peer_mtu\030\321\216\227! \001(\005H\t\210\001\001\022\033\n" + + "\n" + "stack_type\030\221\265\213\313\001 \001(\tH\n" + "\210\001\001\022\025\n" + "\005state\030\221\211\2534 \001(\tH\013\210\001\001\022\035\n\r" @@ -23242,11 +23246,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_state_detailsB\022\n" + "\020_update_strategy\"\314\003\n" + "\036NetworkPeeringConnectionStatus\022g\n" - + "\017consensus_state\030\311\275\213\265\001 \001(\0132E.google.cloud.compute.v1.Netwo" - + "rkPeeringConnectionStatusConsensusStateH\000\210\001\001\022r\n" - + "\025traffic_configuration\030\264\324\266? \001(\0132K" - + ".google.cloud.compute.v1.NetworkPeeringC" - + "onnectionStatusTrafficConfigurationH\001\210\001\001\022\037\n" + + "\017consensus_state\030\311\275\213\265\001 " + + "\001(\0132E.google.cloud.compute.v1.NetworkPee" + + "ringConnectionStatusConsensusStateH\000\210\001\001\022r\n" + + "\025traffic_configuration\030\264\324\266? \001(\0132K.goog" + + "le.cloud.compute.v1.NetworkPeeringConnectionStatusTrafficConfigurationH\001\210\001\001\022\037\n" + "\017update_strategy\030\251\334\365\002 \001(\tH\002\210\001\001\"j\n" + "\016UpdateStrategy\022\035\n" + "\031UNDEFINED_UPDATE_STRATEGY\020\000\022\020\n" @@ -23306,12 +23310,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016NetworkProfile\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022P\n" - + "\010features\030\275\310\263u \001(\01326.googl" - + "e.cloud.compute.v1.NetworkProfileNetworkFeaturesH\002\210\001\001\022\020\n" + + "\010features\030\275\310\263u \001(\01326.google.clo" + + "ud.compute.v1.NetworkProfileNetworkFeaturesH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022J\n" - + "\010location\030\265\277\276\212\001 \001(\0132/.go" - + "ogle.cloud.compute.v1.NetworkProfileLocationH\005\210\001\001\022\024\n" + + "\010location\030\265\277\276\212\001 \001(\0132/.google." + + "cloud.compute.v1.NetworkProfileLocationH\005\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022P\n" + "\014profile_type\030\220\300\315G" + " \001(\01322.google.cloud.compute.v1.NetworkProfileProfileTypeH\007\210\001\001\022\032\n" @@ -23373,8 +23377,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tmulticast\030\370\227\330\300\001 \001(\tH\033\210\001\001\0227\n" + "&predefined_network_internal_ipv6_range\030\335\202\327\373\001 \001(" + "\tH\034\210\001\001\022y\n" - + "\034predefined_subnetwork_ranges\030\316\304\363\302\001 \003(\0132O.google.cloud.co" - + "mpute.v1.NetworkProfileNetworkFeaturesPredefinedSubnetworkRange\022\033\n" + + "\034predefined_subnetwork_ranges\030\316\304\363\302\001" + + " \003(\0132O.google.cloud.compute" + + ".v1.NetworkProfileNetworkFeaturesPredefinedSubnetworkRange\022\033\n" + "\017subnet_purposes\030\267\233\330\217\001 \003(\t\022\036\n" + "\022subnet_stack_types\030\240\354\267\370\001 \003(\t\022\037\n" + "\023subnetwork_purposes\030\306\240\361\373\001 \003(\t\022\"\n" @@ -23420,9 +23425,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036DEFAULT_NIC_ATTACHMENT_BLOCKED\020\305\334\355\255\001\"\206\001\n" + "\025AllowExternalIpAccess\022&\n" + "\"UNDEFINED_ALLOW_EXTERNAL_IP_ACCESS\020\000\022!\n" - + "\032EXTERNAL_IP_ACCESS_ALLOWED\020\321\230\2354\022\"\n" - + "\032EXTERNAL_IP_ACCESS_BLOCKED\020\225\331\310", - "\334\001\"{\n" + + "\032EXTERNAL_IP_ACCESS_ALLOWED\020\321\230\235", + "4\022\"\n" + + "\032EXTERNAL_IP_ACCESS_BLOCKED\020\225\331\310\334\001\"{\n" + "\023AllowFirewallPolicy\022#\n" + "\037UNDEFINED_ALLOW_FIREWALL_POLICY\020\000\022\037\n" + "\027FIREWALL_POLICY_ALLOWED\020\232\271\237\271\001\022\036\n" @@ -23656,8 +23661,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031NetworksAddPeeringRequest\022\"\n" + "\022auto_create_routes\030\335\342\262\033 \001(\010H\000\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022I\n" - + "\017network_peering\030\257\214\354\234\001 \001(\0132\'.googl" - + "e.cloud.compute.v1.NetworkPeeringH\002\210\001\001\022\035\n" + + "\017network_peering\030\257\214\354\234\001" + + " \001(\0132\'.google.cloud.compute.v1.NetworkPeeringH\002\210\001\001\022\035\n" + "\014peer_network\030\321\340\333\356\001 \001(\tH\003\210\001\001B\025\n" + "\023_auto_create_routesB\007\n" + "\005_nameB\022\n" @@ -23667,9 +23672,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\000\210\001\001B\007\n" + "\005_name\"\326\001\n" + "%NetworksGetEffectiveFirewallsResponse\022s\n" - + "\020firewall_policys\030\302\312\374\303\001" - + " \003(\0132U.google.cloud.compute.v1.Network" - + "sGetEffectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" + + "\020firewall_policys\030\302\312\374\303\001 \003(" + + "\0132U.google.cloud.compute.v1.NetworksGetE" + + "ffectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" + "\tfirewalls\030\363\306\350\201\001" + " \003(\0132!.google.cloud.compute.v1.Firewall\"\363\003\n" + " \001(\tH\001\210\001\001\022\035\n" + "\014payload_name\030\234\265\234\217\001 \001(\tH\002\210\001\001\022C\n" - + "\017resend_interval\030\311\270\210\344\001 \001(\0132" - + "!.google.cloud.compute.v1.DurationH\003\210\001\001\022\"\n" + + "\017resend_interval\030\311\270\210\344\001" + + " \001(\0132!.google.cloud.compute.v1.DurationH\003\210\001\001\022\"\n" + "\022retry_duration_sec\030\335\316\2247 \001(\r" + "H\004\210\001\001B\014\n\n" + "_authorityB\013\n" @@ -24129,16 +24134,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\036.google.cloud.compute.v1.ErrorH\004\210\001\001\022c\n" + "\035get_health_operation_metadata\030\241\244\365\220\001" + " \001(\01323.google.cloud.compute.v1.GetHealthOperationMetadataH\005\210\001\001\022d\n" - + "\036get_version_operation_metadata\030\327\220\315R \001(\01324." - + "google.cloud.compute.v1.GetVersionOperationMetadataH\006\210\001\001\022\'\n" + + "\036get_version_operation_metadata\030\327\220\315R \001(\01324.googl" + + "e.cloud.compute.v1.GetVersionOperationMetadataH\006\210\001\001\022\'\n" + "\022http_error_message\030\331\372\310` \001(\tB\003\350G\004H\007\210\001\001\022,\n" + "\026http_error_status_code\030\354\204\370\224\001" + " \001(\005B\003\350G\003H\010\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\t\210\001\001\022\034\n" + "\013insert_time\030\223\251\350\316\001 \001(\tH\n" + "\210\001\001\022w\n" - + "(instances_bulk_insert_operation_metadata\030\301\206\301*" - + " \001(\0132=.google.cloud.compute.v1.InstancesBulkInsertOperationMetadataH\013\210\001\001\022\024\n" + + "(instances_bulk_insert_operation_metadata\030\301\206\301* \001(\0132" + + "=.google.cloud.compute.v1.InstancesBulkInsertOperationMetadataH\013\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\014\210\001\001\022\031\n" + "\004name\030\213\365\315\001 \001(\tB\003\350G\001H\r" + "\210\001\001\022\"\n" @@ -24148,8 +24153,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tH\021\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\022\210\001\001\022\205\001\n" + "/set_common_instance_metadata_operation_metadata\030\344\255\352\351\001" - + " \001(\0132C.google.cloud.compute.v1.SetC" - + "ommonInstanceMetadataOperationMetadataH\023\210\001\001\022\032\n\n" + + " \001(\0132C.google.cloud.compute.v1.SetCommon" + + "InstanceMetadataOperationMetadataH\023\210\001\001\022\032\n\n" + "start_time\030\212\351\356\021 \001(\tH\024\210\001\001\022F\n" + "\006status\030\362\237\267V" + " \001(\0162).google.cloud.compute.v1.Operation.StatusB\003\350G\002H\025\210\001\001\022\037\n" @@ -24194,8 +24199,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\274\003\n" + "\027OperationAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022M\n" - + "\005items\030\300\317\367/ \003(\0132;.google." - + "cloud.compute.v1.OperationAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132;.google.cloud" + + ".compute.v1.OperationAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -24235,8 +24240,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001B\007\n" + "\005_kind\"\332\006\n" + "\020OutlierDetection\022E\n" - + "\022base_ejection_time\030\207\327\317& \001(\013" - + "2!.google.cloud.compute.v1.DurationH\000\210\001\001\022#\n" + + "\022base_ejection_time\030\207\327\317&" + + " \001(\0132!.google.cloud.compute.v1.DurationH\000\210\001\001\022#\n" + "\022consecutive_errors\030\240\263\320\270\001 \001(\005H\001\210\001\001\022,\n" + "\033consecutive_gateway_failure\030\372\267\212\307\001" + " \001(\005H\002\210\001\001\022,\n" @@ -24244,8 +24249,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%enforcing_consecutive_gateway_failure\030\332\337\212\274\001" + " \001(\005H\004\210\001\001\022&\n" + "\026enforcing_success_rate\030\274\357\337\\ \001(\005H\005\210\001\001\022;\n" - + "\010interval\030\305\311\377\017" - + " \001(\0132!.google.cloud.compute.v1.DurationH\006\210\001\001\022$\n" + + "\010interval\030\305\311\377\017 \001(" + + "\0132!.google.cloud.compute.v1.DurationH\006\210\001\001\022$\n" + "\024max_ejection_percent\030\230\246\345\010 \001(\005H\007\210\001\001\022+\n" + "\032success_rate_minimum_hosts\030\367\241\332\372\001" + " \001(\005H\010\210\001\001\022,\n" @@ -24290,8 +24295,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_num_intervalsB\007\n" + "\005_type\"\272\006\n" + "\017PacketMirroring\022Z\n\r" - + "collector_ilb\030\355\211\266\313\001 \001(\0132:.goog" - + "le.cloud.compute.v1.PacketMirroringForwardingRuleInfoH\000\210\001\001\022\"\n" + + "collector_ilb\030\355\211\266\313\001 \001(\0132:.google.cl" + + "oud.compute.v1.PacketMirroringForwardingRuleInfoH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\027\n" + "\006enable\030\203\313\324\224\001 \001(\tH\003\210\001\001\022G\n" @@ -24299,11 +24304,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132..google.cloud.compute.v1.PacketMirroringFilterH\004\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\005\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022`\n" - + "\022mirrored_resources\030\304\237\302; \001(\0132<.google.cloud.compute.v1." - + "PacketMirroringMirroredResourceInfoH\007\210\001\001\022\024\n" + + "\022mirrored_resources\030\304\237\302;" + + " \001(\0132<.google.cloud.compute.v1.PacketMirroringMirroredResourceInfoH\007\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022L\n" - + "\007network\030\256\264\205o \001" - + "(\01323.google.cloud.compute.v1.PacketMirroringNetworkInfoH\t\210\001\001\022\031\n" + + "\007network\030\256\264\205o \001(\01323." + + "google.cloud.compute.v1.PacketMirroringNetworkInfoH\t\210\001\001\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\r" + "H\n" + "\210\001\001\022\026\n" @@ -24328,8 +24333,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_link\"\316\003\n" + "\035PacketMirroringAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022S\n" - + "\005items\030\300\317\367/" - + " \003(\0132A.google.cloud.compute.v1.PacketMirroringAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\013" + + "2A.google.cloud.compute.v1.PacketMirroringAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -24338,8 +24343,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 \001(" - + "\01323.google.cloud.compute.v1.PacketMirroringsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01323.g" + + "oogle.cloud.compute.v1.PacketMirroringsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -24376,10 +24381,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\367\001\n" + "#PacketMirroringMirroredResourceInfo\022^\n" + "\tinstances\030\376\374\357\r" - + " \003(\0132H.google.cloud.compute.v1.PacketMir" - + "roringMirroredResourceInfoInstanceInfo\022_\n" - + "\013subnetworks\030\305\324\245\306\001 \003(\0132F.google.cloud.c" - + "ompute.v1.PacketMirroringMirroredResourceInfoSubnetInfo\022\017\n" + + " \003(\0132" + + "H.google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo\022_\n" + + "\013subnetworks\030\305\324\245\306\001 \003(\0132F.google.cloud.comput" + + "e.v1.PacketMirroringMirroredResourceInfoSubnetInfo\022\017\n" + "\004tags\030\231\350\330\001 \003(\t\"\177\n" + "/PacketMirroringMirroredResourceInfoInstanceInfo\022\036\n\r" + "canonical_url\030\244\377\243\364\001 \001(\tH\000\210\001\001\022\022\n" @@ -24400,13 +24405,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021packet_mirrorings\030\247\372\334I" + " \003(\0132(.google.cloud.compute.v1.PacketMirroring\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n" - + "\n" + + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\257\002\n" + "2PatchAssociationRegionNetworkFirewallPolicyRequest\022 \n" + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022h\n" - + "$firewall_policy_association_resource\030\272\270\341{ \001(\01322.google.cl" - + "oud.compute.v1.FirewallPolicyAssociationB\003\340A\002\022!\n" + + "$firewall_policy_association_resource\030\272\270\341{ \001(\01322.google.cloud.c" + + "ompute.v1.FirewallPolicyAssociationB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -24414,8 +24418,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\371\001\n" + "\026PatchAutoscalerRequest\022\033\n\n" + "autoscaler\030\327\375\322\366\001 \001(\tH\000\210\001\001\022H\n" - + "\023autoscaler_resource\030\366\360\377b" - + " \001(\0132#.google.cloud.compute.v1.AutoscalerB\003\340A\002\022!\n" + + "\023autoscaler_resource\030\366\360\377b \001(\0132" + + "#.google.cloud.compute.v1.AutoscalerB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n" @@ -24441,8 +24445,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\307\002\n" + "\034PatchCrossSiteNetworkRequest\022\"\n" + "\022cross_site_network\030\325\305\3133 \001(\tB\003\340A\002\022V\n" - + "\033cross_site_network_resource\030\270\344\335\016" - + " \001(\0132).google.cloud.compute.v1.CrossSiteNetworkB\003\340A\002\022!\n" + + "\033cross_site_network_resource\030\270\344\335\016 \001(" + + "\0132).google.cloud.compute.v1.CrossSiteNetworkB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" @@ -24467,8 +24471,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\201\002\n" + "\032PatchForwardingRuleRequest\022 \n" + "\017forwarding_rule\030\376\245\335\200\001 \001(\tB\003\340A\002\022R\n" - + "\030forwarding_rule_resource\030\257\300\320\217\001 \001" - + "(\0132\'.google.cloud.compute.v1.ForwardingRuleB\003\340A\002\022!\n" + + "\030forwarding_rule_resource\030\257\300\320\217\001 \001(\0132\'." + + "google.cloud.compute.v1.ForwardingRuleB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -24483,8 +24487,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\371\001\n" + "!PatchGlobalFrontendSettingRequest\022b\n" - + "!global_frontend_settings_resource\030\331\233\244o \001(\0132/.g" - + "oogle.cloud.compute.v1.GlobalFrontendSettingsB\003\340A\002\022\027\n" + + "!global_frontend_settings_resource\030\331\233\244o \001(\0132/.google" + + ".cloud.compute.v1.GlobalFrontendSettingsB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001B\r\n" @@ -24500,11 +24504,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\323\001\n" + "\027PatchHealthCheckRequest\022\035\n" + "\014health_check\030\345\252\244\223\001 \001(\tB\003\340A\002\022K\n" - + "\025health_check_resource\030\250\303\244` \001(\0132" - + "$.google.cloud.compute.v1.HealthCheckB\003\340A\002\022!\n" + + "\025health_check_resource\030\250\303\244`" + + " \001(\0132$.google.cloud.compute.v1.HealthCheckB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n" - + "\n" + + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\271\001\n" + "\021PatchImageRequest\022\025\n" @@ -24517,8 +24520,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\225\002\n" + " PatchInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022^\n" - + "\037instance_group_manager_resource\030\212\212\276| \001(\0132-.google.c" - + "loud.compute.v1.InstanceGroupManagerB\003\340A\002\022!\n" + + "\037instance_group_manager_resource\030\212\212\276|" + + " \001(\0132-.google.cloud.compute.v1.InstanceGroupManagerB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -24538,8 +24541,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_update_mask\"\302\002\n" + "\'PatchInterconnectAttachmentGroupRequest\022-\n" + "\035interconnect_attachment_group\030\364\357\230$ \001(\tB\003\340A\002\022l\n" - + "&interconnect_attachment_group_resource\030\371\337\341\004 " - + "\001(\01324.google.cloud.compute.v1.InterconnectAttachmentGroupB\003\340A\002\022!\n" + + "&interconnect_attachment_group_resource\030\371\337\341\004 \001(\01324" + + ".google.cloud.compute.v1.InterconnectAttachmentGroupB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" @@ -24548,8 +24551,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_update_mask\"\240\002\n" + "\"PatchInterconnectAttachmentRequest\022(\n" + "\027interconnect_attachment\030\364\212\367\222\001 \001(\tB\003\340A\002\022a\n" - + " interconnect_attachment_resource\030\371\244\240e \001(\0132/.googl" - + "e.cloud.compute.v1.InterconnectAttachmentB\003\340A\002\022!\n" + + " interconnect_attachment_resource\030\371\244\240e \001(\0132/.google.clo" + + "ud.compute.v1.InterconnectAttachmentB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -24574,8 +24577,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\353\001\n" + "\032PatchNamedSetRouterRequest\022F\n" - + "\022named_set_resource\030\221\275\353\302\001 \001(\013" - + "2!.google.cloud.compute.v1.NamedSetB\003\340A\002\022!\n" + + "\022named_set_resource\030\221\275\353\302\001" + + " \001(\0132!.google.cloud.compute.v1.NamedSetB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -24584,17 +24587,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\213\002\n" + "\035PatchNetworkAttachmentRequest\022\"\n" + "\022network_attachment\030\324\227\217k \001(\tB\003\340A\002\022W\n" - + "\033network_attachment_resource\030\231\360\314d" - + " \001(\0132*.google.cloud.compute.v1.NetworkAttachmentB\003\340A\002\022!\n" + + "\033network_attachment_resource\030\231\360\314d \001(\013" + + "2*.google.cloud.compute.v1.NetworkAttachmentB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\203\003\n" + "&PatchNetworkEdgeSecurityServiceRequest\022-\n" + "\035network_edge_security_service\030\247\237\357J \001(\tB\003\340A\002\022l\n" - + "&network_edge_security_service_resource\030\246\243\333\343\001 \001(\01323.google.clo" - + "ud.compute.v1.NetworkEdgeSecurityServiceB\003\340A\002\022\025\n" + + "&network_edge_security_service_resource\030\246\243\333\343\001" + + " \001(\01323.google.cloud.co" + + "mpute.v1.NetworkEdgeSecurityServiceB\003\340A\002\022\025\n" + "\005paths\030\356\301\3402 \001(\tH\000\210\001\001\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" @@ -24633,17 +24638,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&PatchOrganizationSecurityPolicyRequest\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\037\n" + "\017security_policy\030\221\206\312Q \001(\tB\003\340A\002\022Q\n" - + "\030security_policy_resource\030\374\252\211g \001(" - + "\0132\'.google.cloud.compute.v1.SecurityPolicyB\003\340A\002B\r\n" + + "\030security_policy_resource\030\374\252\211g \001(\0132\'.g" + + "oogle.cloud.compute.v1.SecurityPolicyB\003\340A\002B\r\n" + "\013_request_id\"\204\002\n" + "\033PatchPacketMirroringRequest\022 \n" + "\020packet_mirroring\030\314\271\321\n" + " \001(\tB\003\340A\002\022T\n" - + "\031packet_mirroring_resource\030\241\374\250\353\001" - + " \001(\0132(.google.cloud.compute.v1.PacketMirroringB\003\340A\002\022!\n" + + "\031packet_mirroring_resource\030\241\374\250\353\001 \001" + + "(\0132(.google.cloud.compute.v1.PacketMirroringB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\252\002\n" + "4PatchPacketMirroringRuleNetworkFirewallPolicyRequest\022 \n" @@ -24659,8 +24665,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "2PatchPerInstanceConfigsInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\232\001\n" + "?instance_group_managers_patch_per_instance_configs_req_resource\030\377\233\210\252\001" - + " \001(\0132H.google.cloud.compute.v1.InstanceGroupM" - + "anagersPatchPerInstanceConfigsReqB\003\340A\002\022!\n" + + " \001(\0132H.goo" + + "gle.cloud.compute.v1.InstanceGroupManagersPatchPerInstanceConfigsReqB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -24673,16 +24679,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\233\001\n" + "@region_instance_group_manager_patch_instance_config_req_resource\030\312\315\241^" - + " \001(\0132I.google.cloud.compute.v1.RegionInstanceGroupMa", - "nagerPatchInstanceConfigReqB\003\340A\002\022\032\n\n" + + " \001(\0132I.google.clo", + "ud.compute.v1.RegionInstanceGroupManagerPatchInstanceConfigReqB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\201\002\n" + "#PatchPublicAdvertisedPrefixeRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022(\n" + "\030public_advertised_prefix\030\236\367\3110 \001(\tB\003\340A\002\022b\n" - + "!public_advertised_prefix_resource\030\217\327\262o \001(\0132/" - + ".google.cloud.compute.v1.PublicAdvertisedPrefixB\003\340A\002\022\032\n\n" + + "!public_advertised_prefix_resource\030\217\327\262o \001(\0132/.goog" + + "le.cloud.compute.v1.PublicAdvertisedPrefixB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\236\002\n" + "\"PatchPublicDelegatedPrefixeRequest\022!\n" @@ -24696,8 +24702,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\203\002\n" + "\034PatchRegionAutoscalerRequest\022\033\n\n" + "autoscaler\030\327\375\322\366\001 \001(\tH\000\210\001\001\022H\n" - + "\023autoscaler_resource\030\366\360\377b \001(\0132#" - + ".google.cloud.compute.v1.AutoscalerB\003\340A\002\022!\n" + + "\023autoscaler_resource\030\366\360\377b" + + " \001(\0132#.google.cloud.compute.v1.AutoscalerB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -24720,8 +24726,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" - + "\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\240\002\n" + "&PatchRegionCompositeHealthCheckRequest\022\'\n" + "\026composite_health_check\030\235\300\326\336\001 \001(\tB\003\340A\002\022^\n" @@ -24734,8 +24739,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\254\002\n" + ")PatchRegionHealthAggregationPolicyRequest\022)\n" + "\031health_aggregation_policy\030\362\317\313r \001(\tB\003\340A\002\022e\n" - + "\"health_aggregation_policy_resource\030\273\273\373\213\001 \001(" - + "\01320.google.cloud.compute.v1.HealthAggregationPolicyB\003\340A\002\022!\n" + + "\"health_aggregation_policy_resource\030\273\273\373\213\001 \001(\01320.g" + + "oogle.cloud.compute.v1.HealthAggregationPolicyB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -24761,8 +24766,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\377\001\n" + "\036PatchRegionHealthSourceRequest\022\036\n\r" + "health_source\030\336\206\305\263\001 \001(\tB\003\340A\002\022N\n" - + "\026health_source_resource\030\317\267\312\252\001" - + " \001(\0132%.google.cloud.compute.v1.HealthSourceB\003\340A\002\022!\n" + + "\026health_source_resource\030\317\267\312\252\001 \001" + + "(\0132%.google.cloud.compute.v1.HealthSourceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -24779,11 +24784,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\216\002\n" + "\'PatchRegionNetworkFirewallPolicyRequest\022 \n" + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022R\n" - + "\030firewall_policy_resource\030\274\266\207\354\001" - + " \001(\0132\'.google.cloud.compute.v1.FirewallPolicyB\003\340A\002\022!\n" + + "\030firewall_policy_resource\030\274\266\207\354\001 " + + "\001(\0132\'.google.cloud.compute.v1.FirewallPolicyB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\263\002\n" + " PatchRegionSecurityPolicyRequest\022!\n" @@ -24792,8 +24798,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\037\n" + "\017security_policy\030\221\206\312Q \001(\tB\003\340A\002\022Q\n" - + "\030security_policy_resource\030\374\252\211g" - + " \001(\0132\'.google.cloud.compute.v1.SecurityPolicyB\003\340A\002\022\034\n" + + "\030security_policy_resource\030\374\252\211g " + + "\001(\0132\'.google.cloud.compute.v1.SecurityPolicyB\003\340A\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001B\r\n" + "\013_request_idB\016\n" + "\014_update_mask\"\230\002\n" @@ -24865,16 +24871,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\361\001\n" + "\036PatchRuleFirewallPolicyRequest\022 \n" + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022Z\n" - + "\035firewall_policy_rule_resource\030\203\337\272w \001(\0132+." - + "google.cloud.compute.v1.FirewallPolicyRuleB\003\340A\002\022\031\n" + + "\035firewall_policy_rule_resource\030\203\337\272w \001(\0132+.googl" + + "e.cloud.compute.v1.FirewallPolicyRuleB\003\340A\002\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001B\013\n" + "\t_priorityB\r\n" + "\013_request_id\"\233\002\n" + "%PatchRuleNetworkFirewallPolicyRequest\022 \n" + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022Z\n" - + "\035firewall_policy_rule_resource\030\203\337\272w" - + " \001(\0132+.google.cloud.compute.v1.FirewallPolicyRuleB\003\340A\002\022\031\n" + + "\035firewall_policy_rule_resource\030\203\337\272w " + + "\001(\0132+.google.cloud.compute.v1.FirewallPolicyRuleB\003\340A\002\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" @@ -24885,14 +24891,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\037\n" + "\017security_policy\030\221\206\312Q \001(\tB\003\340A\002\022[\n" - + "\035security_policy_rule_resource\030\303\272\202\300\001 \001(\0132+.goo" - + "gle.cloud.compute.v1.SecurityPolicyRuleB\003\340A\002B\013\n" + + "\035security_policy_rule_resource\030\303\272\202\300\001 \001(\0132+.google.c" + + "loud.compute.v1.SecurityPolicyRuleB\003\340A\002B\013\n" + "\t_priorityB\r\n" + "\013_request_id\"\302\002\n" + "+PatchRuleRegionNetworkFirewallPolicyRequest\022 \n" + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022Z\n" - + "\035firewall_policy_rule_resource\030\203\337\272w \001(\0132+.g" - + "oogle.cloud.compute.v1.FirewallPolicyRuleB\003\340A\002\022\031\n" + + "\035firewall_policy_rule_resource\030\203\337\272w \001(\0132+.google" + + ".cloud.compute.v1.FirewallPolicyRuleB\003\340A\002\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" @@ -24968,8 +24974,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n\n" + "subnetwork\030\356\247\344\222\001 \001(\tB\003\340A\002\022H\n" - + "\023subnetwork_resource\030\277\332\221\024 \001(\0132#.g" - + "oogle.cloud.compute.v1.SubnetworkB\003\340A\002B\030\n" + + "\023subnetwork_resource\030\277\332\221\024" + + " \001(\0132#.google.cloud.compute.v1.SubnetworkB\003\340A\002B\030\n" + "\026_drain_timeout_secondsB\r\n" + "\013_request_id\"\345\001\n" + "\033PatchTargetGrpcProxyRequest\022!\n" @@ -24985,16 +24991,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n" + "\021target_http_proxy\030\345\276\322b \001(\tB\003\340A\002\022T\n" - + "\032target_http_proxy_resource\030\250\257\343\013 \001(\013" - + "2(.google.cloud.compute.v1.TargetHttpProxyB\003\340A\002B\r\n" + + "\032target_http_proxy_resource\030\250\257\343\013 \001(\0132(.go" + + "ogle.cloud.compute.v1.TargetHttpProxyB\003\340A\002B\r\n" + "\013_request_id\"\351\001\n" + "\034PatchTargetHttpsProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002\022W\n" - + "\033target_https_proxy_resource\030\201\255\344\316\001 \001(\0132).go" - + "ogle.cloud.compute.v1.TargetHttpsProxyB\003\340A\002B\r\n" + + "\033target_https_proxy_resource\030\201\255\344\316\001" + + " \001(\0132).google.cloud.compute.v1.TargetHttpsProxyB\003\340A\002B\r" + + "\n" + "\013_request_id\"\277\001\n" + "\022PatchUrlMapRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -25026,12 +25033,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024default_url_redirect\030\352\253\266\253\001" + " \001(\0132+.google.cloud.compute.v1.HttpRedirectActionH\003\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022I\n\r" - + "header_action\030\250\240\270\234\001" - + " \001(\0132).google.cloud.compute.v1.HttpHeaderActionH\005\210\001\001\022\024\n" + + "header_action\030\250\240\270\234\001 \001(" + + "\0132).google.cloud.compute.v1.HttpHeaderActionH\005\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\0228\n\n" + "path_rules\030\335\300\3461 \003(\0132!.google.cloud.compute.v1.PathRule\022?\n" - + "\013route_rules\030\201\207\267\263\001 \003(\0132" - + "&.google.cloud.compute.v1.HttpRouteRuleB\'\n" + + "\013route_rules\030\201\207\267\263\001" + + " \003(\0132&.google.cloud.compute.v1.HttpRouteRuleB\'\n" + "%_default_custom_error_response_policyB\027\n" + "\025_default_route_actionB\022\n" + "\020_default_serviceB\027\n" @@ -25040,14 +25047,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_header_actionB\007\n" + "\005_name\"\374\002\n" + "\010PathRule\022`\n" - + "\034custom_error_response_policy\030\353\370\332`" - + " \001(\01322.google.cloud.compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022\020\n" + + "\034custom_error_response_policy\030\353\370\332` \001" + + "(\01322.google.cloud.compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022\020\n" + "\005paths\030\356\301\3402 \003(\t\022G\n" + "\014route_action\030\354\251\271\312\001" + " \001(\0132(.google.cloud.compute.v1.HttpRouteActionH\001\210\001\001\022\030\n" + "\007service\030\265\215\217\262\001 \001(\tH\002\210\001\001\022J\n" - + "\014url_redirect\030\254\241\230\301\001" - + " \001(\0132+.google.cloud.compute.v1.HttpRedirectActionH\003\210\001\001B\037\n" + + "\014url_redirect\030\254\241\230\301\001 \001" + + "(\0132+.google.cloud.compute.v1.HttpRedirectActionH\003\210\001\001B\037\n" + "\035_custom_error_response_policyB\017\n\r" + "_route_actionB\n\n" + "\010_serviceB\017\n\r" @@ -25063,8 +25070,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021PerInstanceConfig\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\000\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022H\n" - + "\017preserved_state\030\252\342\240\001 \001(\0132\'.g" - + "oogle.cloud.compute.v1.PreservedStateH\002\210\001\001\022\026\n" + + "\017preserved_state\030\252\342\240\001" + + " \001(\0132\'.google.cloud.compute.v1.PreservedStateH\002\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\003\210\001\001\"\220\001\n" + "\006Status\022\024\n" + "\020UNDEFINED_STATUS\020\000\022\020\n" @@ -25103,8 +25110,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013reservation\030\314\207\325\026 \001(\tB\003\340A\002\022\"\n" + "\021reservation_block\030\332\304\211\376\001 \001(\tB\003\340A\002\022\217\001\n" + "8reservations_blocks_perform_maintenance_request_resource\030\211\251\324\347\001" - + " \001(\0132D.google.cl" - + "oud.compute.v1.ReservationsBlocksPerformMaintenanceRequestB\003\340A\002\022\033\n" + + " \001(\0132D.google.cloud.c" + + "ompute.v1.ReservationsBlocksPerformMaintenanceRequestB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\262\002\n" @@ -25114,8 +25121,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\013reservation\030\314\207\325\026 \001(\tB\003\340A\002\022\201\001\n" + "1reservations_perform_maintenance_request_resource\030\240\365\224\016" - + " \001(\0132>.google.cloud.c" - + "ompute.v1.ReservationsPerformMaintenanceRequestB\003\340A\002\022\033\n" + + " \001(\0132>.google.cloud.comput" + + "e.v1.ReservationsPerformMaintenanceRequestB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\336\001\n" @@ -25154,8 +25161,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020_window_end_timeB\024\n" + "\022_window_start_time\"\306\001\n" + "\006Policy\022?\n\r" - + "audit_configs\030\215\272\270\234\001 \003(" - + "\0132$.google.cloud.compute.v1.AuditConfig\0226\n" + + "audit_configs\030\215\272\270\234\001" + + " \003(\0132$.google.cloud.compute.v1.AuditConfig\0226\n" + "\010bindings\030\216\305\244\300\001 \003(\0132" + " .google.cloud.compute.v1.Binding\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\030\n" @@ -25176,12 +25183,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\01325.google.cloud.compute.v1.PreservedState.MetadataEntry\032b\n\n" + "DisksEntry\022\013\n" + "\003key\030\001 \001(\t\022C\n" - + "\005value\030\002 \001(\01324.go" - + "ogle.cloud.compute.v1.PreservedStatePreservedDisk:\0028\001\032m\n" + + "\005value\030\002 \001(\01324.google." + + "cloud.compute.v1.PreservedStatePreservedDisk:\0028\001\032m\n" + "\020ExternalIPsEntry\022\013\n" + "\003key\030\001 \001(\t\022H\n" - + "\005value\030\002 \001(\01329.google.cloud.com" - + "pute.v1.PreservedStatePreservedNetworkIp:\0028\001\032m\n" + + "\005value\030\002 \001(\01329.google.cloud.compute." + + "v1.PreservedStatePreservedNetworkIp:\0028\001\032m\n" + "\020InternalIPsEntry\022\013\n" + "\003key\030\001 \001(\t\022H\n" + "\005value\030\002" @@ -25206,8 +25213,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_source\"\236\002\n" + " PreservedStatePreservedNetworkIp\022\034\n" + "\013auto_delete\030\273\344\316\335\001 \001(\tH\000\210\001\001\022_\n\n" - + "ip_address\030\334\361\334\301\001 \001(\0132B" - + ".google.cloud.compute.v1.PreservedStatePreservedNetworkIpIpAddressH\001\210\001\001\"\\\n\n" + + "ip_address\030\334\361\334\301\001 \001(\0132B.goog" + + "le.cloud.compute.v1.PreservedStatePreservedNetworkIpIpAddressH\001\210\001\001\"\\\n\n" + "AutoDelete\022\031\n" + "\025UNDEFINED_AUTO_DELETE\020\000\022\014\n" + "\005NEVER\020\354\244\257#\022%\n" @@ -25229,8 +25236,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021rollout_operation\030\331\320\214\350\001" + " \001(\01327.google.cloud.compute.v1.PreviewFeatureRolloutOperationH\006\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022E\n" - + "\006status\030\362\237\267V \001(\0132-" - + ".google.cloud.compute.v1.PreviewFeatureStatusH\010\210\001\001\"y\n" + + "\006status\030\362\237\267V \001(\0132-.goog" + + "le.cloud.compute.v1.PreviewFeatureStatusH\010\210\001\001\"y\n" + "\020ActivationStatus\022\037\n" + "\033UNDEFINED_ACTIVATION_STATUS\020\000\022\"\n" + "\034ACTIVATION_STATE_UNSPECIFIED\020\340\312&\022\020\n" @@ -25248,10 +25255,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022PreviewFeatureList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\0229\n" - + "\005items\030\300\317\367/" - + " \003(\0132\'.google.cloud.compute.v1.PreviewFeature\022\037\n" - + "\017next_pag", - "e_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + + "\005items\030\300\317\367/ \003(\0132\'.google.cloud.co", + "mpute.v1.PreviewFeature\022\037\n" + + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" @@ -25262,8 +25268,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\226\001\n" + "\036PreviewFeatureRolloutOperation\022b\n\r" - + "rollout_input\030\274\347\333~ \001(\0132C.google.cloud.compute." - + "v1.PreviewFeatureRolloutOperationRolloutInputH\000\210\001\001B\020\n" + + "rollout_input\030\274\347\333~ \001(\0132C.google.cloud.compute.v1.Pr" + + "eviewFeatureRolloutOperationRolloutInputH\000\210\001\001B\020\n" + "\016_rollout_input\"\273\002\n" + "*PreviewFeatureRolloutOperationRolloutInput\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022(\n" @@ -25279,8 +25285,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024PreviewFeatureStatus\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\031\n" + "\thelp_link\030\270\364\303j \001(\tH\001\210\001\001\022[\n" - + "\016release_status\030\252\276\237\362\001 \001(\0132:.google.cloud.compute." - + "v1.PreviewFeatureStatusReleaseStatusH\002\210\001\001B\016\n" + + "\016release_status\030\252\276\237\362\001" + + " \001(\0132:.google.cloud.compute.v1.PreviewFeatureStatusReleaseStatusH\002\210\001\001B\016\n" + "\014_descriptionB\014\n\n" + "_help_linkB\021\n" + "\017_release_status\"\367\001\n" @@ -25289,7 +25295,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_date\030\344\212\252\356\001" + " \001(\0132\035.google.cloud.compute.v1.DateH\001\210\001\001\"d\n" + "\005Stage\022\023\n" - + "\017UNDEFINED_STAGE\020\000\022\022\n\n" + + "\017UNDEFINED_STAGE\020\000\022\022\n" + + "\n" + "DEPRECATED\020\263\243\371\334\001\022\007\n" + "\002GA\020\332\021\022\017\n" + "\007PREVIEW\020\250\337\321\276\001\022\030\n" @@ -25336,8 +25343,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030UNDEFINED_VM_DNS_SETTING\020\000\022\026\n" + "\016GLOBAL_DEFAULT\020\205\333\332\244\001\022!\n" + "\032UNSPECIFIED_VM_DNS_SETTING\020\232\273\202\021\022\025\n\r" - + "ZONAL_DEFAULT\020\206\375\331\257\001\022\022\n" - + "\n" + + "ZONAL_DEFAULT\020\206\375\331\257\001\022\022\n\n" + "ZONAL_ONLY\020\347\272\303\370\001\"i\n" + "\020XpnProjectStatus\022 \n" + "\034UNDEFINED_XPN_PROJECT_STATUS\020\000\022\013\n" @@ -25361,12 +25367,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.ProjectH\000\210\001\001B\n\n" + "\010_project\"z\n" + "!ProjectsDisableXpnResourceRequest\022D\n" - + "\014xpn_resource\030\267\223\315? \001(" - + "\0132&.google.cloud.compute.v1.XpnResourceIdH\000\210\001\001B\017\n\r" + + "\014xpn_resource\030\267\223\315? \001(\0132&.g" + + "oogle.cloud.compute.v1.XpnResourceIdH\000\210\001\001B\017\n\r" + "_xpn_resource\"y\n" + " ProjectsEnableXpnResourceRequest\022D\n" - + "\014xpn_resource\030\267\223\315?" - + " \001(\0132&.google.cloud.compute.v1.XpnResourceIdH\000\210\001\001B\017\n\r" + + "\014xpn_resource\030\267\223\315? \001(\0132" + + "&.google.cloud.compute.v1.XpnResourceIdH\000\210\001\001B\017\n\r" + "_xpn_resource\"\253\001\n" + "\027ProjectsGetXpnResources\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001\022\037\n" @@ -25407,8 +25413,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\t\210\001\001\022\032\n" + "\tpdp_scope\030\321\312\376\371\001 \001(\tH\n" + "\210\001\001\022j\n" - + "\030public_delegated_prefixs\030\213\276\205\313\001 \003(" - + "\0132D.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix\022\032\n" + + "\030public_delegated_prefixs\030\213\276\205\313\001 \003(\0132D.g" + + "oogle.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\013\210\001\001\022\036\n\r" + "shared_secret\030\312\247\217\266\001 \001(\tH\014\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\r" @@ -25453,8 +25459,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_status\"\275\002\n" + "\032PublicAdvertisedPrefixList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022A\n" - + "\005items\030\300\317\367/ \003(\0132/" - + ".google.cloud.compute.v1.PublicAdvertisedPrefix\022\024\n" + + "\005items\030\300\317\367/ \003(\0132/.goog" + + "le.cloud.compute.v1.PublicAdvertisedPrefix\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -25494,8 +25500,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\014\210\001\001\022\035\n\r" + "parent_prefix\030\307\347\241\007 \001(\tH\r" + "\210\001\001\022o\n" - + "\034public_delegated_sub_prefixs\030\214\376\213Z \003(\0132F.google.cloud.co" - + "mpute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix\022\026\n" + + "\034public_delegated_sub_prefixs\030\214\376\213Z \003(\0132F.google.cloud.compute" + + ".v1.PublicDelegatedPrefixPublicDelegatedSubPrefix\022\026\n" + "\006region\030\364\315\240B \001(\tH\016\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\017\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\020\210\001\001\"D\n" @@ -25541,8 +25547,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_status\"\341\003\n" + "#PublicDelegatedPrefixAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022Y\n" - + "\005items\030\300\317\367/ \003(\0132G.google.clou" - + "d.compute.v1.PublicDelegatedPrefixAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132G.google.cloud.com" + + "pute.v1.PublicDelegatedPrefixAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -25551,8 +25557,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032h\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022I\n" - + "\005value\030\002 \001(\0132:.google.cl" - + "oud.compute.v1.PublicDelegatedPrefixesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132:.google.cloud.c" + + "ompute.v1.PublicDelegatedPrefixesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -25612,8 +25618,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_regionB\t\n" + "\007_status\"\301\001\n" + "!PublicDelegatedPrefixesScopedList\022U\n" - + "\031public_delegated_prefixes\030\226\202\252\226\001 \003(\0132..goog" - + "le.cloud.compute.v1.PublicDelegatedPrefix\0229\n" + + "\031public_delegated_prefixes\030\226\202\252\226\001" + + " \003(\0132..google.cloud.compute.v1.PublicDelegatedPrefix\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\346(\n" @@ -25795,8 +25801,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_ownerB\010\n" + "\006_usage\"\340\003\n" + "\021QuotaExceededInfo\022R\n\n" - + "dimensions\030\315\377\310\305\001 \003(\0132:.google.cloud.c" - + "ompute.v1.QuotaExceededInfo.DimensionsEntry\022\035\n" + + "dimensions\030\315\377\310\305\001 \003(\0132:.google.cloud.comput" + + "e.v1.QuotaExceededInfo.DimensionsEntry\022\035\n" + "\014future_limit\030\277\274\332\331\001 \001(\001H\000\210\001\001\022\025\n" + "\005limit\030\273\227\2151 \001(\001H\001\210\001\001\022\033\n\n" + "limit_name\030\217\211\360\275\001 \001(\tH\002\210\001\001\022\034\n" @@ -25854,10 +25860,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007RawDisk\022\037\n" + "\016container_type\030\270\310\202\230\001 \001(\tH\000\210\001\001\022\036\n\r" + "sha1_checksum\030\275\224\370\225\001 \001(\tH\001\210\001\001\022\026\n" - + "\006source\030\233\320\301T \001(\tH\002\210\001\001\"8\n\r" + + "\006source\030\233\320\301T \001(\tH\002\210\001\001\"", + "8\n\r" + "ContainerType\022\034\n" - + "\030UNDEFINED_CONTA", - "INER_TYPE\020\000\022\t\n" + + "\030UNDEFINED_CONTAINER_TYPE\020\000\022\t\n" + "\003TAR\020\205\207\005B\021\n" + "\017_container_typeB\020\n" + "\016_sha1_checksumB\t\n" @@ -25865,8 +25871,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ",RecreateInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\223\001\n" + ";instance_group_managers_recreate_instances_request_resource\030\200\302\232\n" - + " \001(\0132F.googl" - + "e.cloud.compute.v1.InstanceGroupManagersRecreateInstancesRequestB\003\340A\002\022%\n" + + " \001(\0132F.google.clo" + + "ud.compute.v1.InstanceGroupManagersRecreateInstancesRequestB\003\340A\002\022%\n" + "\024no_graceful_shutdown\030\222\267\253\240\001 \001(\010H\000\210\001\001\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" @@ -25882,8 +25888,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\215\001\n" + "8region_instance_group_managers_recreate_request_resource\030\224\374\304Q" - + " \001(\0132C.googl" - + "e.cloud.compute.v1.RegionInstanceGroupManagersRecreateRequestB\003\340A\002\022\032\n\n" + + " \001(\0132C.google.clo" + + "ud.compute.v1.RegionInstanceGroupManagersRecreateRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001B\027\n" + "\025_no_graceful_shutdownB\r\n" + "\013_request_id\"\250\001\n" @@ -25909,8 +25915,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022R\n" - + "\024quota_status_warning\030\366\211\272\220\001 \001(\0132+.googl" - + "e.cloud.compute.v1.QuotaStatusWarningH\006\210\001\001\0221\n" + + "\024quota_status_warning\030\366\211\272\220\001" + + " \001(\0132+.google.cloud.compute.v1.QuotaStatusWarningH\006\210\001\001\0221\n" + "\006quotas\030\373\241\342; \003(\0132\036.google.cloud.compute.v1.Quota\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\010\210\001\001\022\034\n" @@ -26006,13 +26012,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\200\001\n" + "0RegionInstanceGroupManagerPatchInstanceConfigReq\022L\n" - + "\024per_instance_configs\030\251\325\370\372\001 \003(\0132*" - + ".google.cloud.compute.v1.PerInstanceConfig\"\232\003\n" + + "\024per_instance_configs\030\251\325\370\372\001 \003(\0132*.goog" + + "le.cloud.compute.v1.PerInstanceConfig\"\232\003\n" + "4RegionInstanceGroupManagerResizeRequestsListResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022L\n" - + "\005items\030\300\317\367/ \003(\0132:." - + "google.cloud.compute.v1.InstanceGroupManagerResizeRequest\022\024\n" + + "\005items\030\300\317\367/ \003(\0132:.googl" + + "e.cloud.compute.v1.InstanceGroupManagerResizeRequest\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -26023,7 +26029,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n\n" + + "_self_linkB\n" + + "\n" + "\010_warning\"\201\001\n" + "1RegionInstanceGroupManagerUpdateInstanceConfigReq\022L\n" + "\024per_instance_configs\030\251\325\370\372\001" @@ -26054,8 +26061,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\010H\000\210\001\001B%\n" + "#_skip_instances_on_validation_error\"\252\001\n" + "-RegionInstanceGroupManagersListErrorsResponse\022D\n" - + "\005items\030\300\317\367/ \003(\0132" - + "2.google.cloud.compute.v1.InstanceManagedByIgmError\022\037\n" + + "\005items\030\300\317\367/ \003(\01322.goo" + + "gle.cloud.compute.v1.InstanceManagedByIgmError\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001B\022\n" + "\020_next_page_token\"\356\001\n" + "2RegionInstanceGroupManagersListInstanceConfigsResp\022<\n" @@ -26100,8 +26107,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_force_suspend\"\304\002\n" + "!RegionInstanceGroupsListInstances\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022A\n" - + "\005items\030\300\317\367/" - + " \003(\0132/.google.cloud.compute.v1.InstanceWithNamedPorts\022\024\n" + + "\005items\030\300\317\367/ \003(" + + "\0132/.google.cloud.compute.v1.InstanceWithNamedPorts\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -26143,23 +26150,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021network_endpoints\030\255\221\272G" + " \003(\0132(.google.cloud.compute.v1.NetworkEndpoint\"{\n" + "1RegionNetworkEndpointGroupsDetachEndpointsRequest\022F\n" - + "\021network_endpoints\030\255\221\272G \003(\0132(." - + "google.cloud.compute.v1.NetworkEndpoint\"\201\002\n" + + "\021network_endpoints\030\255\221\272G" + + " \003(\0132(.google.cloud.compute.v1.NetworkEndpoint\"\201\002\n" + ":RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse\022\210\001\n" - + "\020firewall_policys\030\302\312\374\303\001 \003(\0132j.google.cloud.compute.v1." - + "RegionNetworkFirewallPoliciesGetEffectiv" - + "eFirewallsResponseEffectiveFirewallPolicy\0228\n" + + "\020firewall_policys\030\302\312\374\303\001 \003(\0132j.google.cloud.compute.v1.Regio" + + "nNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" + "\tfirewalls\030\363\306\350\201\001" + " \003(\0132!.google.cloud.compute.v1.Firewall\"\224\004\n" - + "QRegionNetworkFir" - + "ewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy\022\034\n" + + "QRegionNetworkFirewall" + + "PoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy\022\034\n" + "\014display_name\030\350\207\221\002 \001(\tH\000\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022O\n" - + "\026packet_mirroring_rules\030\304\377\300\375\001 \003(\0132+.goog" - + "le.cloud.compute.v1.FirewallPolicyRule\022\031\n" + + "\026packet_mirroring_rules\030\304\377\300\375\001" + + " \003(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\002\210\001\001\022=\n" - + "\005rules\030\367\221\3653 " - + "\003(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\024\n" + + "\005rules\030\367\221\3653 \003(\0132+" + + ".google.cloud.compute.v1.FirewallPolicyRule\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\003\210\001\001\"\231\001\n" + "\004Type\022\022\n" + "\016UNDEFINED_TYPE\020\000\022\020\n" @@ -26175,8 +26181,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_type\"\321\001\n" + "\026RegionSetLabelsRequest\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\000\210\001\001\022O\n" - + "\006labels\030\377\277\301\356\001 \003(\0132;.g" - + "oogle.cloud.compute.v1.RegionSetLabelsRequest.LabelsEntry\032-\n" + + "\006labels\030\377\277\301\356\001 \003(\0132;.google" + + ".cloud.compute.v1.RegionSetLabelsRequest.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\024\n" @@ -26201,8 +26207,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017ReliabilityRisk\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022>\n" - + "\007details\030\302\344\343\346\001" - + " \001(\0132$.google.cloud.compute.v1.RiskDetailsH\002\210\001\001\022\020\n" + + "\007details\030\302\344\343\346\001 \001" + + "(\0132$.google.cloud.compute.v1.RiskDetailsH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022K\n" @@ -26278,13 +26284,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\013target_pool\030\212\344\370\035 \001(\tB\003\340A\002\022x\n" - + "-target_pools_remove_instance_request_resource\030\203\300\213\016 \001(\01329.google." - + "cloud.compute.v1.TargetPoolsRemoveInstanceRequestB\003\340A\002B\r\n" + + "-target_pools_remove_instance_request_resource\030\203\300\213\016" + + " \001(\01329.google.cloud" + + ".compute.v1.TargetPoolsRemoveInstanceRequestB\003\340A\002B\r\n" + "\013_request_id\"\264\002\n" + "#RemoveInstancesInstanceGroupRequest\022\036\n" + "\016instance_group\030\325\324\325& \001(\tB\003\340A\002\022\201\001\n" - + "1instance_groups_remove_instances_request_resource\030\271\321\267\272\001" - + " \001(\0132=.google.cloud.compute.v1.InstanceGroupsRemoveInstancesRequestB\003\340A\002\022!\n" + + "1instance_groups_remove_instances_request_resource\030\271\321\267\272\001 \001(\013" + + "2=.google.cloud.compute.v1.InstanceGroupsRemoveInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -26309,20 +26316,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\243\002\n" + "!RemoveResourcePoliciesDiskRequest\022\024\n" + "\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022}\n" - + "/disks_remove_resource_policies_request_resource\030\356\301\241\320\001 \001(\013" - + "2;.google.cloud.compute.v1.DisksRemoveResourcePoliciesRequestB\003\340A\002\022!\n" + + "/disks_remove_resource_policies_request_resource\030\356\301\241\320\001" + + " \001(\0132;.go" + + "ogle.cloud.compute.v1.DisksRemoveResourcePoliciesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" - + "\340A\002\362G\004zoneB\r" - + "\n" + + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\263\002\n" + "%RemoveResourcePoliciesInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\204\001\n" + "3instances_remove_resource_policies_request_resource\030\366\335\274\027" - + " \001(\0132?.google.clou" - + "d.compute.v1.InstancesRemoveResourcePoliciesRequestB\003\340A\002\022!\n" + + " \001(\0132?.google.cloud.com" + + "pute.v1.InstancesRemoveResourcePoliciesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -26334,9 +26341,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\211\001\n" - + "6region_disks_remove_resource_policies_request_resource\030\243\303\225\004" - + " \001(\0132A.google.cloud.compute.v1.RegionDisksRemoveResourcePoliciesRequestB\003\340A\002\022\032\n" - + "\n" + + "6region_disks_remove_resource_policies_request_resource\030\243\303\225\004 \001(\013" + + "2A.google.cloud.compute.v1.RegionDisksRemoveResourcePoliciesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\226\001\n" + "\037RemoveRuleFirewallPolicyRequest\022 \n" @@ -26389,15 +26395,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025reservation_sub_block\030\233\312\354\n" + " \001(\tB\003\340A\002\022\210\001\n" + "5reservation_sub_blocks_report_faulty_request_resource\030\302\311\375\326\001" - + " \001(\0132@.g" - + "oogle.cloud.compute.v1.ReservationSubBlocksReportFaultyRequestB\003\340A\002\022\033\n" + + " \001(\0132@.google" + + ".cloud.compute.v1.ReservationSubBlocksReportFaultyRequestB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\250\002\n" + "!ReportHostAsFaultyInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022~\n" - + "0instances_report_host_as_faulty_request_resource\030\246\224\315\353\001 \001(\0132;." - + "google.cloud.compute.v1.InstancesReportHostAsFaultyRequestB\003\340A\002\022!\n" + + "0instances_report_host_as_faulty_request_resource\030\246\224\315\353\001" + + " \001(\0132;.googl" + + "e.cloud.compute.v1.InstancesReportHostAsFaultyRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -26412,15 +26419,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"RequestRemovePeeringNetworkRequest\022\027\n" + "\007network\030\256\264\205o \001(\tB\003\340A\002\022~\n" + "0networks_request_remove_peering_request_resource\030\316\344\367G" - + " \001(\0132<.google.cloud." - + "compute.v1.NetworksRequestRemovePeeringRequestB\003\340A\002\022!\n" + + " \001(\0132<.google.cloud.compu" + + "te.v1.NetworksRequestRemovePeeringRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\313\026\n" + "\013Reservation\022k\n" - + "\033advanced_deployment_control\030\240\222\346\303\001 \001(\0132=.google.clou" - + "d.compute.v1.ReservationAdvancedDeploymentControlH\000\210\001\001\022_\n" + + "\033advanced_deployment_control\030\240\222\346\303\001 \001(\0132=.google.cloud.com" + + "pute.v1.ReservationAdvancedDeploymentControlH\000\210\001\001\022_\n" + "\025aggregate_reservation\030\314\362\203\213\001" + " \001(\01327.google.cloud.compute.v1.AllocationAggregateReservationH\001\210\001\001\022\033\n\n" + "commitment\030\225\226\363\345\001 \001(\tH\002\210\001\001\022*\n" @@ -26439,13 +26446,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022linked_commitments\030\330\375\310\340\001 \003(\t\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\r" + "\210\001\001\022B\n" - + "\006params\030\206\363\253% \001(\0132*.goog" - + "le.cloud.compute.v1.ReservationParamsH\016\210\001\001\022 \n" + + "\006params\030\206\363\253%" + + " \001(\0132*.google.cloud.compute.v1.ReservationParamsH\016\210\001\001\022 \n" + "\017protection_tier\030\210\237\247\360\001 \001(\tH\017\210\001\001\022g\n" - + "\032reservation_sharing_policy\030\310\265\233b \001(\0132;.go" - + "ogle.cloud.compute.v1.AllocationReservationSharingPolicyH\020\210\001\001\022L\n" - + "\021resource_metadata\030\300\260\236/ \001(\0132).google.cloud.compute.v1.Re", - "sourceMetadataH\021\210\001\001\022X\n" + + "\032reservation_sharing_policy\030\310\265\233b \001(\0132;.google." + + "cloud.compute.v1.AllocationReservationSharingPolicyH\020\210\001\001\022L\n" + + "\021resource_metadata\030\300\260", + "\236/ \001(\0132).google.cloud.compute.v1.ResourceMetadataH\021\210\001\001\022X\n" + "\021resource_policies\030\341\234\314\n" + " \003(\0132:.google.cloud.compute.v1.Reservation.ResourcePoliciesEntry\022R\n" + "\017resource_status\030\303\372\367v" @@ -26453,10 +26460,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\023\210\001\001\022\037\n" + "\017scheduling_type\030\205\376\244_ \001(\tH\024\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\025\210\001\001\022F\n" - + "\016share_settings\030\203\221\224\177 \001(\0132&.goog" - + "le.cloud.compute.v1.ShareSettingsH\026\210\001\001\022`\n" - + "\024specific_reservation\030\277\240\211\301\001 \001(\01329.googl" - + "e.cloud.compute.v1.AllocationSpecificSKUReservationH\027\210\001\001\022-\n" + + "\016share_settings\030\203\221\224\177" + + " \001(\0132&.google.cloud.compute.v1.ShareSettingsH\026\210\001\001\022`\n" + + "\024specific_reservation\030\277\240\211\301\001 \001(\01329.google.clo" + + "ud.compute.v1.AllocationSpecificSKUReservationH\027\210\001\001\022-\n" + "\035specific_reservation_required\030\237\307\203l" + " \001(\010H\030\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\031\210\001\001\022\024\n" @@ -26546,8 +26553,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_key\"\302\003\n" + "\031ReservationAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022O\n" - + "\005items\030\300\317\367/ \003(\0132=.google.cloud.compute" - + ".v1.ReservationAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132=.google.cloud.compute.v1.ReservationAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -26566,15 +26573,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020ReservationBlock\022\025\n" + "\005count\030\217\242\235- \001(\005H\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022P\n" - + "\013health_info\030\261\351\230p \001(\01323.google.cl" - + "oud.compute.v1.ReservationBlockHealthInfoH\002\210\001\001\022\020\n" + + "\013health_info\030\261\351\230p \001(\01323.google.cloud.c" + + "ompute.v1.ReservationBlockHealthInfoH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\035\n" + "\014in_use_count\030\275\253\246\353\001 \001(\005H\004\210\001\001\022\"\n" + "\021in_use_host_count\030\312\207\315\255\001 \001(\005H\005\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022]\n" - + "\021physical_topology\030\327\251\264\205\001" - + " \001(\01329.google.cloud.compute.v1.ReservationBlockPhysicalTopologyH\010\210\001\001\022W\n" + + "\021physical_topology\030\327\251\264\205\001 \001(" + + "\01329.google.cloud.compute.v1.ReservationBlockPhysicalTopologyH\010\210\001\001\022W\n" + "\027reservation_maintenance\030\240\206\265\242\001" + " \001(\0132-.google.cloud.compute.v1.GroupMaintenanceInfoH\t\210\001\001\022,\n" + "\033reservation_sub_block_count\030\353\261\335\235\001 \001(\005H\n" @@ -26630,9 +26637,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_cluster\"\235\002\n" + "(ReservationBlockPhysicalTopologyInstance\022\033\n" + "\013instance_id\030\205\262\330\025 \001(\004H\000\210\001\001\022~\n" - + "\026physical_host_topology\030\276\223\257\272\001 \001(\0132" - + "U.google.cloud.compute.v1.ReservationBlo" - + "ckPhysicalTopologyInstancePhysicalHostTopologyH\001\210\001\001\022\032\n\n" + + "\026physical_host_topology\030\276\223\257\272\001 \001(\0132U.goo" + + "gle.cloud.compute.v1.ReservationBlockPhy" + + "sicalTopologyInstancePhysicalHostTopologyH\001\210\001\001\022\032\n\n" + "project_id\030\201\310\322T \001(\004H\002\210\001\001B\016\n" + "\014_instance_idB\031\n" + "\027_physical_host_topologyB\r\n" @@ -26643,8 +26650,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_hostB\014\n\n" + "_sub_block\"p\n" + "\034ReservationBlocksGetResponse\022C\n" - + "\010resource\030\216\210\257]" - + " \001(\0132).google.cloud.compute.v1.ReservationBlockH\000\210\001\001B\013\n" + + "\010resource\030\216\210\257] " + + "\001(\0132).google.cloud.compute.v1.ReservationBlockH\000\210\001\001B\013\n" + "\t_resource\"\272\002\n" + "\035ReservationBlocksListResponse\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022;\n" @@ -26674,8 +26681,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\267\001\n" + "\021ReservationParams\022f\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132C.google.cloud.com" - + "pute.v1.ReservationParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132C.google.cloud.compute." + + "v1.ReservationParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\353\005\n" @@ -26684,8 +26691,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\001\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\003\210\001\001\022\\\n" - + "\021physical_topology\030\327\251\264\205\001 \001(\01328.google.cloud.compu" - + "te.v1.ReservationSlotPhysicalTopologyH\004\210\001\001\022\032\n" + + "\021physical_topology\030\327\251\264\205\001" + + " \001(\01328.google.cloud.compute.v1.ReservationSlotPhysicalTopologyH\004\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\005\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\006\210\001\001\022F\n" + "\016share_settings\030\203\221\224\177" @@ -26723,8 +26730,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_hostB\014\n\n" + "_sub_block\"\310\001\n" + "\025ReservationSlotStatus\022\\\n" - + "\021physical_topology\030\327\251\264\205\001 \001(\01328.google.cloud.compute" - + ".v1.ReservationSlotPhysicalTopologyH\000\210\001\001\022\034\n" + + "\021physical_topology\030\327\251\264\205\001" + + " \001(\01328.google.cloud.compute.v1.ReservationSlotPhysicalTopologyH\000\210\001\001\022\034\n" + "\021rdma_ip_addresses\030\343\245\204P \003(\t\022\035\n" + "\021running_instances\030\376\327\334\377\001 \003(\tB\024\n" + "\022_physical_topology\"n\n" @@ -26741,8 +26748,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032SBOM_SELECTION_UNSPECIFIED\020\362\364\201\265\001\"\270\002\n" + "\034ReservationSlotsListResponse\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022:\n" - + "\005items\030\300\317\367/ \003(\0132(" - + ".google.cloud.compute.v1.ReservationSlot\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132(.google.cloud.compute.v1.ReservationSlot\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -26754,19 +26761,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\241\010\n" + "\023ReservationSubBlock\022_\n" - + "\033accelerator_topologies_info\030\214\351\271( \001(\01322.google.cl" - + "oud.compute.v1.AcceleratorTopologiesInfoH\000\210\001\001\022\025\n" + + "\033accelerator_topologies_info\030\214\351\271( \001(\01322.google.cloud.c" + + "ompute.v1.AcceleratorTopologiesInfoH\000\210\001\001\022\025\n" + "\005count\030\217\242\235- \001(\005H\001\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022S\n" - + "\013health_info\030\261\351\230p" - + " \001(\01326.google.cloud.compute.v1.ReservationSubBlockHealthInfoH\003\210\001\001\022\020\n" + + "\013health_info\030\261\351\230p " + + "\001(\01326.google.cloud.compute.v1.ReservationSubBlockHealthInfoH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022\035\n" + "\014in_use_count\030\275\253\246\353\001 \001(\005H\005\210\001\001\022\"\n" + "\021in_use_host_count\030\312\207\315\255\001 \001(\005H\006\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\007\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022`\n" - + "\021physical_topology\030\327\251\264\205\001 \001(\0132<.google.c" - + "loud.compute.v1.ReservationSubBlockPhysicalTopologyH\t\210\001\001\022a\n" + + "\021physical_topology\030\327\251\264\205\001 \001(\0132<.google.cloud." + + "compute.v1.ReservationSubBlockPhysicalTopologyH\t\210\001\001\022a\n" + "!reservation_sub_block_maintenance\030\357\313\342\263\001" + " \001(\0132-.google.cloud.compute.v1.GroupMaintenanceInfoH\n" + "\210\001\001\022\032\n" @@ -26820,8 +26827,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_clusterB\014\n\n" + "_sub_block\"v\n" + "\037ReservationSubBlocksGetResponse\022F\n" - + "\010resource\030\216\210\257] \001(\0132," - + ".google.cloud.compute.v1.ReservationSubBlockH\000\210\001\001B\013\n" + + "\010resource\030\216\210\257] \001(\0132,.goog" + + "le.cloud.compute.v1.ReservationSubBlockH\000\210\001\001B\013\n" + "\t_resource\"\327\001\n" + "%ReservationSubBlocksGetVersionRequest\022\032\n" + "\017sbom_selections\030\371\366\374 \003(\t\"\221\001\n" @@ -26832,8 +26839,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032SBOM_SELECTION_UNSPECIFIED\020\362\364\201\265\001\"\300\002\n" + " ReservationSubBlocksListResponse\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022>\n" - + "\005items\030\300\317\367/ \003(\0132,.goog" - + "le.cloud.compute.v1.ReservationSubBlock\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132,.google.cloud.compute.v1.ReservationSubBlock\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -26847,8 +26854,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'ReservationSubBlocksReportFaultyRequest\022#\n" + "\023disruption_schedule\030\203\305\333- \001(\tH\000\210\001\001\022!\n" + "\021failure_component\030\210\311\255\014 \001(\tH\001\210\001\001\022e\n\r" - + "fault_reasons\030\222\253\221P \003(\0132K.google.cloud" - + ".compute.v1.ReservationSubBlocksReportFaultyRequestFaultReason\"r\n" + + "fault_reasons\030\222\253\221P \003(\0132K.google.cloud.comp" + + "ute.v1.ReservationSubBlocksReportFaultyRequestFaultReason\"r\n" + "\022DisruptionSchedule\022!\n" + "\035UNDEFINED_DISRUPTION_SCHEDULE\020\000\022\'\n" + "\037DISRUPTION_SCHEDULE_UNSPECIFIED\020\333\356\310\236\001\022\020\n" @@ -26912,8 +26919,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\360\001\n" + "\021ResizeDiskRequest\022\024\n" + "\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022Z\n" - + "\035disks_resize_request_resource\030\240\302\253% \001(\0132+.google.c" - + "loud.compute.v1.DisksResizeRequestB\003\340A\002\022!\n" + + "\035disks_resize_request_resource\030\240\302\253%" + + " \001(\0132+.google.cloud.compute.v1.DisksResizeRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -26934,8 +26941,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022h\n" - + "$region_disks_resize_request_resource\030\225\252\374\324\001 \001(" - + "\01321.google.cloud.compute.v1.RegionDisksResizeRequestB\003\340A\002\022\032\n\n" + + "$region_disks_resize_request_resource\030\225\252\374\324\001 \001(\01321.g" + + "oogle.cloud.compute.v1.RegionDisksResizeRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\326\001\n" + "\'ResizeRegionInstanceGroupManagerRequest\022&\n" @@ -26951,8 +26958,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\013reservation\030\314\207\325\026 \001(\tB\003\340A\002\022i\n" - + "$reservations_resize_request_resource\030\321\333\316\271\001" - + " \001(\01322.google.cloud.compute.v1.ReservationsResizeRequestB\003\340A\002\022\033\n" + + "$reservations_resize_request_resource\030\321\333\316\271\001 " + + "\001(\01322.google.cloud.compute.v1.ReservationsResizeRequestB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\202\002\n" @@ -26987,26 +26994,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016ResourcePolicy\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022q\n" - + "\035disk_consistency_group_policy\030\233\204\362\341\001" - + " \001(\0132A.google.cloud.compute.v1.Resourc" - + "ePolicyDiskConsistencyGroupPolicyH\002\210\001\001\022c\n" - + "\026group_placement_policy\030\214\233\233\005 \001(\0132;.goog" - + "le.cloud.compute.v1.ResourcePolicyGroupPlacementPolicyH\003\210\001\001\022\020\n" + + "\035disk_consistency_group_policy\030\233\204\362\341\001 \001(" + + "\0132A.google.cloud.compute.v1.ResourcePolicyDiskConsistencyGroupPolicyH\002\210\001\001\022c\n" + + "\026group_placement_policy\030\214\233\233\005 \001(\0132;.google.cl" + + "oud.compute.v1.ResourcePolicyGroupPlacementPolicyH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022h\n" - + "\030instance_schedule_policy\030\260\320\271\244\001 \001(\0132=.go" - + "ogle.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicyH\005\210\001\001\022\024\n" + + "\030instance_schedule_policy\030\260\320\271\244\001 \001(\0132=.google." + + "cloud.compute.v1.ResourcePolicyInstanceSchedulePolicyH\005\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\010\210\001\001\022V\n" - + "\017resource_status\030\303\372\367v \001(\0132" - + "5.google.cloud.compute.v1.ResourcePolicyResourceStatusH\t\210\001\001\022\032\n" + + "\017resource_status\030\303\372\367v \001(\01325.goo" + + "gle.cloud.compute.v1.ResourcePolicyResourceStatusH\t\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\n" + "\210\001\001\022g\n" - + "\030snapshot_schedule_policy\030\337\326\201h" - + " \001(\0132=.google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicyH\013\210\001\001\022\026\n" + + "\030snapshot_schedule_policy\030\337\326\201h \001(\0132" + + "=.google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicyH\013\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\014\210\001\001\022V\n" - + "\017workload_policy\030\372\205\3326" - + " \001(\01325.google.cloud.compute.v1.ResourcePolicyWorkloadPolicyH\r" + + "\017workload_policy\030\372\205\3326 \001(\0132" + + "5.google.cloud.compute.v1.ResourcePolicyWorkloadPolicyH\r" + "\210\001\001\"r\n" + "\006Status\022\024\n" + "\020UNDEFINED_STATUS\020\000\022\020\n" @@ -27042,15 +27048,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002" - + " \001(\01323.google.cloud.compute.v1.ResourcePoliciesScopedList:\0028\001B\007\n" + + "\005value\030\002 \001(\013" + + "23.google.cloud.compute.v1.ResourcePoliciesScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\236\001\n" - + "\030ResourcePolicyDailyCycle\022\036\n\r" + + "\030ResourcePolicyDailyCycle\022\036\n" + + "\r" + "days_in_cycle\030\264\230\252\260\001 \001(\005H\000\210\001\001\022\030\n" + "\010duration\030\224\233\221J \001(\tH\001\210\001\001\022\032\n\n" + "start_time\030\212\351\356\021 \001(\tH\002\210\001\001B\020\n" @@ -27069,9 +27076,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014AUTO_CONNECT\020\272\304\305\352\001\022\026\n" + "\016PROVISION_ONLY\020\366\241\251\276\001\"\\\n" + "\013Collocation\022\031\n" - + "\025UNDEFINED_COLLOCATION\020\000\022\021\n\n" - + "COLLOCATED", - "\020\322\253\2361\022\037\n" + + "\025UN", + "DEFINED_COLLOCATION\020\000\022\021\n\n" + + "COLLOCATED\020\322\253\2361\022\037\n" + "\027UNSPECIFIED_COLLOCATION\020\355\217\263\335\001B\034\n" + "\032_accelerator_topology_modeB\034\n" + "\032_availability_domain_countB\016\n" @@ -27089,10 +27096,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017expiration_time\030\335\254\350m \001(\tH\000\210\001\001\022\032\n\n" + "start_time\030\212\351\356\021 \001(\tH\001\210\001\001\022\031\n" + "\ttime_zone\030\336\203\311\021 \001(\tH\002\210\001\001\022h\n" - + "\021vm_start_schedule\030\334\220\274\010 \001(\0132E.google.clo" - + "ud.compute.v1.ResourcePolicyInstanceSchedulePolicyScheduleH\003\210\001\001\022h\n" - + "\020vm_stop_schedule\030\254\345\237\313\001 \001(\0132E.google.cloud.compute.v1." - + "ResourcePolicyInstanceSchedulePolicyScheduleH\004\210\001\001B\022\n" + + "\021vm_start_schedule\030\334\220\274\010 \001(\0132E.google.cloud.co" + + "mpute.v1.ResourcePolicyInstanceSchedulePolicyScheduleH\003\210\001\001\022h\n" + + "\020vm_stop_schedule\030\254\345\237\313\001 \001(\0132E.google.cloud.compute.v1.Resou" + + "rcePolicyInstanceSchedulePolicyScheduleH\004\210\001\001B\022\n" + "\020_expiration_timeB\r\n" + "\013_start_timeB\014\n\n" + "_time_zoneB\024\n" @@ -27118,9 +27125,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\271\001\n" + "\034ResourcePolicyResourceStatus\022|\n" - + "\030instance_schedule_policy\030\260\320\271\244\001 \001(\0132Q.go" - + "ogle.cloud.compute.v1.ResourcePolicyReso" - + "urceStatusInstanceSchedulePolicyStatusH\000\210\001\001B\033\n" + + "\030instance_schedule_policy\030\260\320\271\244\001 \001(\0132Q.google." + + "cloud.compute.v1.ResourcePolicyResourceS" + + "tatusInstanceSchedulePolicyStatusH\000\210\001\001B\033\n" + "\031_instance_schedule_policy\"\266\001\n" + "8ResourcePolicyResourceStatusInstanceSchedulePolicyStatus\022$\n" + "\023last_run_start_time\030\207\357\301\220\001 \001(\tH\000\210\001\001\022$\n" @@ -27128,12 +27135,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024_last_run_start_timeB\026\n" + "\024_next_run_start_time\"\250\003\n" + "$ResourcePolicySnapshotSchedulePolicy\022n\n" - + "\020retention_policy\030\363\312\334 \001(\0132L.google.cloud.compute.v1.Resour" - + "cePolicySnapshotSchedulePolicyRetentionPolicyH\000\210\001\001\022`\n" - + "\010schedule\030\227\245\232\263\001 \001(\0132E.googl" - + "e.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicyScheduleH\001\210\001\001\022t\n" - + "\023snapshot_properties\030\216\225\262X \001(\0132O.google.cloud.comp" - + "ute.v1.ResourcePolicySnapshotSchedulePolicySnapshotPropertiesH\002\210\001\001B\023\n" + + "\020retention_policy\030\363\312\334 \001(\0132L.google.cloud.compute.v1.ResourcePol" + + "icySnapshotSchedulePolicyRetentionPolicyH\000\210\001\001\022`\n" + + "\010schedule\030\227\245\232\263\001 \001(\0132E.google.clo" + + "ud.compute.v1.ResourcePolicySnapshotSchedulePolicyScheduleH\001\210\001\001\022t\n" + + "\023snapshot_properties\030\216\225\262X \001(\0132O.google.cloud.compute.v" + + "1.ResourcePolicySnapshotSchedulePolicySnapshotPropertiesH\002\210\001\001B\023\n" + "\021_retention_policyB\013\n" + "\t_scheduleB\026\n" + "\024_snapshot_properties\"\325\002\n" @@ -27148,20 +27155,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_max_retention_daysB\030\n" + "\026_on_source_disk_delete\"\347\002\n" + ",ResourcePolicySnapshotSchedulePolicySchedule\022Q\n" - + "\016daily_schedule\030\375\343\212) \001(\01321.google.cloud." - + "compute.v1.ResourcePolicyDailyCycleH\000\210\001\001\022S\n" - + "\017hourly_schedule\030\245\261\243\022 \001(\01322.google.cl" - + "oud.compute.v1.ResourcePolicyHourlyCycleH\001\210\001\001\022T\n" - + "\017weekly_schedule\030\225\211\271\253\001 \001(\01322.goo" - + "gle.cloud.compute.v1.ResourcePolicyWeeklyCycleH\002\210\001\001B\021\n" + + "\016daily_schedule\030\375\343\212)" + + " \001(\01321.google.cloud.compute.v1.ResourcePolicyDailyCycleH\000\210\001\001\022S\n" + + "\017hourly_schedule\030\245\261\243\022 \001(\01322.google.cloud.c" + + "ompute.v1.ResourcePolicyHourlyCycleH\001\210\001\001\022T\n" + + "\017weekly_schedule\030\225\211\271\253\001 \001(\01322.google.c" + + "loud.compute.v1.ResourcePolicyWeeklyCycleH\002\210\001\001B\021\n" + "\017_daily_scheduleB\022\n" + "\020_hourly_scheduleB\022\n" + "\020_weekly_schedule\"\320\002\n" + "6ResourcePolicySnapshotSchedulePolicySnapshotProperties\022\032\n\n" + "chain_name\030\311\332\335 \001(\tH\000\210\001\001\022\034\n" + "\013guest_flush\030\335\223\354\267\001 \001(\010H\001\210\001\001\022o\n" - + "\006labels\030\377\277\301\356\001 \003(\0132[.google.cloud.compute.v1.Resour" - + "cePolicySnapshotSchedulePolicySnapshotProperties.LabelsEntry\022\035\n" + + "\006labels\030\377\277\301\356\001 \003(\0132[.google.cloud.compute.v1.ResourcePol" + + "icySnapshotSchedulePolicySnapshotProperties.LabelsEntry\022\035\n" + "\021storage_locations\030\232\355\263\234\001 \003(\t\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -27169,8 +27176,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_chain_nameB\016\n" + "\014_guest_flush\"q\n" + "\031ResourcePolicyWeeklyCycle\022T\n" - + "\014day_of_weeks\030\332\237\373z \003(\0132;.google.cloud.c" - + "ompute.v1.ResourcePolicyWeeklyCycleDayOfWeek\"\264\002\n" + + "\014day_of_weeks\030\332\237\373z \003(\0132;.google.cloud.comput" + + "e.v1.ResourcePolicyWeeklyCycleDayOfWeek\"\264\002\n" + "\"ResourcePolicyWeeklyCycleDayOfWeek\022\022\n" + "\003day\030\234\207\006 \001(\tH\000\210\001\001\022\030\n" + "\010duration\030\224\233\221J \001(\tH\001\210\001\001\022\032\n\n" @@ -27211,15 +27218,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026_max_topology_distanceB\007\n" + "\005_type\"\237\006\n" + "\016ResourceStatus\022m\n" - + "\033effective_instance_metadata\030\201\216\240\032 \001(\0132@.google.cloud.c" - + "ompute.v1.ResourceStatusEffectiveInstanceMetadataH\000\210\001\001\022\036\n\r" + + "\033effective_instance_metadata\030\201\216\240\032 \001(\0132@.google.cloud.comput" + + "e.v1.ResourceStatusEffectiveInstanceMetadataH\000\210\001\001\022\036\n\r" + "physical_host\030\220\370\266\335\001 \001(\tH\001\210\001\001\022d\n" - + "\026physical_host_topology\030\276\223\257\272\001 \001" - + "(\0132;.google.cloud.compute.v1.ResourceStatusPhysicalHostTopologyH\002\210\001\001\022o\n" - + "\034reservation_consumption_info\030\345\305\357_ \001(\0132A.google.c" - + "loud.compute.v1.ResourceStatusReservationConsumptionInfoH\003\210\001\001\022N\n\n" - + "scheduling\030\224\313\261\270\001" - + " \001(\01321.google.cloud.compute.v1.ResourceStatusSchedulingH\004\210\001\001\022X\n" + + "\026physical_host_topology\030\276\223\257\272\001 \001(\0132;." + + "google.cloud.compute.v1.ResourceStatusPhysicalHostTopologyH\002\210\001\001\022o\n" + + "\034reservation_consumption_info\030\345\305\357_ \001(\0132A.google.cloud." + + "compute.v1.ResourceStatusReservationConsumptionInfoH\003\210\001\001\022N\n\n" + + "scheduling\030\224\313\261\270\001 \001(\013" + + "21.google.cloud.compute.v1.ResourceStatusSchedulingH\004\210\001\001\022X\n" + "\020shutdown_details\030\331\322\237\007" + " \001(\01326.google.cloud.compute.v1.ResourceStatusShutdownDetailsH\005\210\001\001\022R\n" + "\024upcoming_maintenance\030\360\240\264l" @@ -27258,9 +27265,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*_serial_port_logging_enable_metadata_valueB \n" + "\036_vm_dns_setting_metadata_value\"\303\002\n" + "\"ResourceStatusPhysicalHostTopology\022v\n" - + "\025additional_attributes\030\357\360\300# \001(\0132" - + "O.google.cloud.compute.v1.ResourceStatus" - + "PhysicalHostTopologyAdditionalAttributesH\000\210\001\001\022\025\n" + + "\025additional_attributes\030\357\360\300# \001(\0132O.goo" + + "gle.cloud.compute.v1.ResourceStatusPhysi" + + "calHostTopologyAdditionalAttributesH\000\210\001\001\022\025\n" + "\005block\030\215\211\337, \001(\tH\001\210\001\001\022\030\n" + "\007cluster\030\372\243\354\237\001 \001(\tH\002\210\001\001\022\024\n" + "\004host\030\250\353\303\001 \001(\tH\003\210\001\001\022\030\n" @@ -27271,9 +27278,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_hostB\013\n" + "\t_subblock\"\213\002\n" + "6ResourceStatusPhysicalHostTopologyAdditionalAttributes\022\221\001\n" - + "\030accelerator_topology_ids\030\274\214\243\241\001 \003(\0132k.google." - + "cloud.compute.v1.ResourceStatusPhysicalH" - + "ostTopologyAdditionalAttributes.AcceleratorTopologyIdsEntry\032=\n" + + "\030accelerator_topology_ids\030\274\214\243\241\001 \003(\0132k.google.cloud" + + ".compute.v1.ResourceStatusPhysicalHostTo" + + "pologyAdditionalAttributes.AcceleratorTopologyIdsEntry\032=\n" + "\033AcceleratorTopologyIdsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\211\002\n" @@ -27294,8 +27301,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034_graceful_shutdown_timestampB\030\n" + "\026_termination_timestamp\"\241\003\n" + "\035ResourceStatusShutdownDetails\022?\n" - + "\014max_duration\030\217\324\206\023 " - + "\001(\0132!.google.cloud.compute.v1.DurationH\000\210\001\001\022\"\n" + + "\014max_duration\030\217\324\206\023 \001(\0132!" + + ".google.cloud.compute.v1.DurationH\000\210\001\001\022\"\n" + "\021request_timestamp\030\346\336\311\370\001 \001(\tH\001\210\001\001\022\032\n\n" + "stop_state\030\224\314\216 \001(\tH\002\210\001\001\022\035\n" + "\014target_state\030\343\320\321\241\001 \001(\tH\003\210\001\001\"M\n" @@ -27321,8 +27328,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\321\002\n" + "*ResumeInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\217\001\n" - + "9instance_group_managers_resume_instances_request_resource\030\302\276\302= \001(" - + "\0132D.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequestB\003\340A\002\022!\n" + + "9instance_group_managers_resume_instances_request_resource\030\302\276\302=" + + " \001(\0132D.g" + + "oogle.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -27334,10 +27342,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n" - + "@region_inst" - + "ance_group_managers_resume_instances_request_resource\030\267\203\200\335\001" - + " \001(\0132J.google.cloud.c" - + "ompute.v1.RegionInstanceGroupManagersResumeInstancesRequestB\003\340A\002\022\032\n\n" + + "@region_instance_" + + "group_managers_resume_instances_request_resource\030\267\203\200\335\001" + + " \001(\0132J.google.cloud.comput" + + "e.v1.RegionInstanceGroupManagersResumeInstancesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\235\001\n" + "\024ResumeRolloutRequest\022\024\n" @@ -27350,8 +27358,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\365\003\n" + "\013RiskDetails\022\030\n" + "\010duration\030\224\233\221J \001(\tH\000\210\001\001\022Y\n" - + "\022global_dns_insight\030\346\347\304\365\001 \001(\01324.google.cloud.com" - + "pute.v1.RiskDetailsGlobalDnsInsightH\001\210\001\001\022%\n" + + "\022global_dns_insight\030\346\347\304\365\001" + + " \001(\01324.google.cloud.compute.v1.RiskDetailsGlobalDnsInsightH\001\210\001\001\022%\n" + "\025last_update_timestamp\030\251\207\361\005 \001(\tH\002\210\001\001\022\031\n" + "\010severity\030\375\245\364\300\001 \001(\tH\003\210\001\001\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\004\210\001\001\"x\n" @@ -27453,7 +27461,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\006\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\007\210\001\001\022:\n" - + "\005waves\030\232\231\3535 \003(\0132(.google.cloud.compute.v1.RolloutPlanWave\"p\n\r" + + "\005waves\030\232\231\3535 \003(\0132(.google.cloud.compute.v1.RolloutPlanWave\"p\n" + + "\r" + "LocationScope\022\034\n" + "\030UNDEFINED_LOCATION_SCOPE\020\000\022\"\n" + "\032LOCATION_SCOPE_UNSPECIFIED\020\202\327\307\306\001\022\017\n" @@ -27470,19 +27479,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017RolloutPlanWave\022\034\n" + "\014display_name\030\350\207\221\002 \001(\tH\000\210\001\001\022\026\n" + "\006number\030\311\266\343\022 \001(\003H\001\210\001\001\022c\n" - + "\025orchestration_options\030\240\315\271, \001(\0132<.google.cloud.c" - + "ompute.v1.RolloutPlanWaveOrchestrationOptionsH\002\210\001\001\022G\n" - + "\tselectors\030\364\220\342\315\001 \003(\01320.goog" - + "le.cloud.compute.v1.RolloutPlanWaveSelector\022O\n\n" - + "validation\030\371\220\235\353\001 \001(\01322.google.clo" - + "ud.compute.v1.RolloutPlanWaveValidationH\003\210\001\001B\017\n\r" + + "\025orchestration_options\030\240\315\271, \001(\0132<.google.cloud.comput" + + "e.v1.RolloutPlanWaveOrchestrationOptionsH\002\210\001\001\022G\n" + + "\tselectors\030\364\220\342\315\001 \003(\01320.google.cl" + + "oud.compute.v1.RolloutPlanWaveSelector\022O\n\n" + + "validation\030\371\220\235\353\001 \001(\01322.google.cloud.co" + + "mpute.v1.RolloutPlanWaveValidationH\003\210\001\001B\017\n\r" + "_display_nameB\t\n" + "\007_numberB\030\n" + "\026_orchestration_optionsB\r\n" + "\013_validation\"\245\002\n" + "#RolloutPlanWaveOrchestrationOptions\022U\n" - + "\006delays\030\320\356\231\203\001 \003(\0132A.google.cloud.compute.v1." - + "RolloutPlanWaveOrchestrationOptionsDelay\022)\n" + + "\006delays\030\320\356\231\203\001" + + " \003(\0132A.google.cloud.compute.v1.RolloutPlanWaveOrchestrationOptionsDelay\022)\n" + "\030max_concurrent_locations\030\321\365\270\353\001 \001(\003H\000\210\001\001\0225\n" + "%max_concurrent_resources_per_location\030\336\337\210U" + " \001(\003H\001\210\001\001B\033\n" @@ -27506,10 +27515,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t_durationB\007\n" + "\005_type\"\255\002\n" + "\027RolloutPlanWaveSelector\022d\n" - + "\021location_selector\030\251\302\255\311\001 \001(\013" - + "2@.google.cloud.compute.v1.RolloutPlanWaveSelectorLocationSelectorH\000\210\001\001\022v\n" - + "\033resource_hierarchy_selector\030\372\364\353\037 \001(\0132I.google" - + ".cloud.compute.v1.RolloutPlanWaveSelectorResourceHierarchySelectorH\001\210\001\001B\024\n" + + "\021location_selector\030\251\302\255\311\001 \001(\0132@.go" + + "ogle.cloud.compute.v1.RolloutPlanWaveSelectorLocationSelectorH\000\210\001\001\022v\n" + + "\033resource_hierarchy_selector\030\372\364\353\037 \001(\0132I.google.clou" + + "d.compute.v1.RolloutPlanWaveSelectorResourceHierarchySelectorH\001\210\001\001B\024\n" + "\022_location_selectorB\036\n" + "\034_resource_hierarchy_selector\"H\n" + "\'RolloutPlanWaveSelectorLocationSelector\022\035\n" @@ -27519,8 +27528,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026included_organizations\030\335\246\347\227\001 \003(\t\022\034\n" + "\021included_projects\030\235\271\320\036 \003(\t\"\334\001\n" + "\031RolloutPlanWaveValidation\022}\n" - + "\036time_based_validation_metadata\030\267\365\221! \001(\0132M.google.cloud.com" - + "pute.v1.RolloutPlanWaveValidationTimeBasedValidationMetadataH\000\210\001\001\022\024\n" + + "\036time_based_validation_metadata\030\267\365\221! \001(\0132M.google.cloud.compute." + + "v1.RolloutPlanWaveValidationTimeBasedValidationMetadataH\000\210\001\001\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\001\210\001\001B!\n" + "\037_time_based_validation_metadataB\007\n" + "\005_type\"h\n" @@ -27542,8 +27551,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\225\001\n" + "\024RolloutRolloutEntity\022e\n" - + "\023orchestrated_entity\030\374\255\245\303\001 \001(\0132?.google.clo" - + "ud.compute.v1.RolloutRolloutEntityOrchestratedEntityH\000\210\001\001B\026\n" + + "\023orchestrated_entity\030\374\255\245\303\001 \001(\0132?.google.cloud.co" + + "mpute.v1.RolloutRolloutEntityOrchestratedEntityH\000\210\001\001B\026\n" + "\024_orchestrated_entity\"\337\001\n" + "&RolloutRolloutEntityOrchestratedEntity\022!\n" + "\021conflict_behavior\030\237\310\2277 \001(\tH\000\210\001\001\022$\n" @@ -27554,8 +27563,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025_orchestration_source\"\211\002\n" + "\022RolloutWaveDetails\022n\n" + "\031orchestrated_wave_details\030\325\276\214\311\001" - + " \001(\0132B.google.cloud.compute.v1.Roll" - + "outWaveDetailsOrchestratedWaveDetailsH\000\210\001\001\022!\n" + + " \001(\0132B.google.cloud.compute.v1.RolloutWaveDetailsOrchestratedWaveDetailsH\000\210\001\001\022!\n" + "\021wave_display_name\030\356\356\211\016 \001(\tH\001\210\001\001\022\034\n" + "\013wave_number\030\317\326\266\352\001 \001(\003H\002\210\001\001B\034\n" + "\032_orchestrated_wave_detailsB\024\n" @@ -27568,12 +27576,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\003H\002\210\001\001\022\033\n" + "\020failed_locations\030\334\373\305\016 \003(\t\022\'\n" + "\026failed_resources_count\030\363\244\351\272\001 \001(\003H\003\210\001\001\022r\n" - + "\017location_status\030\274\217\210\t \003(\0132V.google.cloud.compute.v" - + "1.RolloutWaveDetailsOrchestratedWaveDetails.LocationStatusEntry\032\207\001\n" + + "\017location_status\030\274\217\210\t \003(\0132V.google.cloud.compute.v1.Rol" + + "loutWaveDetailsOrchestratedWaveDetails.LocationStatusEntry\032\207\001\n" + "\023LocationStatusEntry\022\013\n" + "\003key\030\001 \001(\t\022_\n" - + "\005value\030\002 \001(\0132P.google.cloud.compute.v1.RolloutWaveDetails" - + "OrchestratedWaveDetailsLocationStatus:\0028\001B\034\n" + + "\005value\030\002 \001(\0132P.google." + + "cloud.compute.v1.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus:\0028\001B\034\n" + "\032_completed_resources_countB\034\n" + "\032_estimated_completion_timeB\"\n" + " _estimated_total_resources_countB\031\n" @@ -27636,11 +27644,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "route_type\030\360\266\236\263\001 \001(\tH\026\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\027\210\001\001\022\017\n" + "\004tags\030\231\350\330\001 \003(\t\0227\n" - + "\010warnings\030\327\210\301\355\001" - + " \003(\0132!.google.cloud.compute.v1.Warnings\"W\n\r" + + "\010warnings\030\327\210\301\355\001 \003(\0132!.google.cloud.compute.v1.Warnings\"", + "W\n\r" + "NextHopOrigin\022\035\n" - + "\031UNDEFINED_NEXT_", - "HOP_ORIGIN\020\000\022\t\n" + + "\031UNDEFINED_NEXT_HOP_ORIGIN\020\000\022\t\n" + "\003EGP\020\356\227\004\022\t\n" + "\003IGP\020\362\265\004\022\021\n\n" + "INCOMPLETE\020\336\352\330\005\"l\n" @@ -27705,8 +27712,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\253\001\n" + "\013RouteParams\022`\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132=.google.cloud.compute" - + ".v1.RouteParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001" + + " \003(\0132=.google.cloud.compute.v1.RouteParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\310\002\n" @@ -27727,14 +27734,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_type\"\263\001\n" + "\025RoutePolicyPolicyTerm\0222\n" + "\007actions\030\375\221\201\326\001 \003(\0132\035.google.cloud.compute.v1.Expr\0224\n" - + "\005match\030\305\263\2671" - + " \001(\0132\035.google.cloud.compute.v1.ExprH\000\210\001\001\022\031\n" + + "\005match\030\305\263\2671 \001" + + "(\0132\035.google.cloud.compute.v1.ExprH\000\210\001\001\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\001\210\001\001B\010\n" + "\006_matchB\013\n" + "\t_priority\"\321\006\n" + "\006Router\0226\n" - + "\003bgp\030\313\371\005 \001(\0132" - + "\".google.cloud.compute.v1.RouterBgpH\000\210\001\001\022=\n" + + "\003bgp\030\313\371\005" + + " \001(\0132\".google.cloud.compute.v1.RouterBgpH\000\210\001\001\022=\n" + "\tbgp_peers\030\335\255\356\327\001" + " \003(\0132&.google.cloud.compute.v1.RouterBgpPeer\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" @@ -27745,8 +27752,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "interfaces\030\332\364\340\005" + " \003(\0132(.google.cloud.compute.v1.RouterInterface\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022W\n" - + "\027md5_authentication_keys\030\232\256\361! \003(\01323" - + ".google.cloud.compute.v1.RouterMd5AuthenticationKey\022\024\n" + + "\027md5_authentication_keys\030\232\256\361! \003(\01323.goog" + + "le.cloud.compute.v1.RouterMd5AuthenticationKey\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\0223\n" + "\004nats\030\362\366\315\001 \003(\0132\".google.cloud.compute.v1.RouterNat\022\033\n" + "\013ncc_gateway\030\323\320\261S \001(\tH\007\210\001\001\022\027\n" @@ -27775,8 +27782,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_range\"\263\003\n" + "\024RouterAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022J\n" - + "\005items\030\300\317\367/ \003(\01328.googl" - + "e.cloud.compute.v1.RouterAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\01328.google.clo" + + "ud.compute.v1.RouterAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -27796,8 +27803,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016advertise_mode\030\273\225\353\224\001 \001(\tH\000\210\001\001\022\034\n" + "\021advertised_groups\030\266\336\205\n" + " \003(\t\022Q\n" - + "\024advertised_ip_ranges\030\314\330\363\020 \003(\0132" - + "0.google.cloud.compute.v1.RouterAdvertisedIpRange\022\022\n" + + "\024advertised_ip_ranges\030\314\330\363\020 \003(\01320.goo" + + "gle.cloud.compute.v1.RouterAdvertisedIpRange\022\022\n" + "\003asn\030\374\364\005 \001(\r" + "H\001\210\001\001\022!\n" + "\020identifier_range\030\247\314\225\357\001 \001(\tH\002\210\001\001\022#\n" @@ -27818,14 +27825,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016advertise_mode\030\273\225\353\224\001 \001(\tH\000\210\001\001\022\034\n" + "\021advertised_groups\030\266\336\205\n" + " \003(\t\022Q\n" - + "\024advertised_ip_ranges\030\314\330\363\020 \003(\01320" - + ".google.cloud.compute.v1.RouterAdvertisedIpRange\022)\n" + + "\024advertised_ip_ranges\030\314\330\363\020 \003(\01320.goog" + + "le.cloud.compute.v1.RouterAdvertisedIpRange\022)\n" + "\031advertised_route_priority\030\274\234\366X \001(\r" + "H\001\210\001\001\022=\n" + "\003bfd\030\240\371\005" + " \001(\0132).google.cloud.compute.v1.RouterBgpPeerBfdH\002\210\001\001\022`\n" - + "\030custom_learned_ip_ranges\030\304\210\304\345\001 \003(\0132:.googl" - + "e.cloud.compute.v1.RouterBgpPeerCustomLearnedIpRange\022.\n" + + "\030custom_learned_ip_ranges\030\304\210\304\345\001 \003(\0132:.google.clo" + + "ud.compute.v1.RouterBgpPeerCustomLearnedIpRange\022.\n" + "\035custom_learned_route_priority\030\304\342\306\235\001" + " \001(\005H\003\210\001\001\022\027\n" + "\006enable\030\203\313\324\224\001 \001(\tH\004\210\001\001\022\033\n" @@ -27966,16 +27973,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020max_ports_per_vm\030\341\311\236w \001(\005H\006\210\001\001\022 \n" + "\020min_ports_per_vm\030\263\255\344X \001(\005H\007\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022Q\n" - + "\021nat64_subnetworks\030\245\373\250\036 \003(\01323.google.cloud" - + ".compute.v1.RouterNatSubnetworkToNat64\022\'\n" + + "\021nat64_subnetworks\030\245\373\250\036" + + " \003(\01323.google.cloud.compute.v1.RouterNatSubnetworkToNat64\022\'\n" + "\026nat_ip_allocate_option\030\375\270\364\314\001 \001(\tH\t\210\001\001\022\022\n" + "\007nat_ips\030\216\360\2138 \003(\t\0228\n" + "\005rules\030\367\221\3653 \003(\0132&.google.cloud.compute.v1.RouterNatRule\0222\n" + "\"source_subnetwork_ip_ranges_to_nat\030\333\357\241x \001(\tH\n" + "\210\001\001\0224\n" + "$source_subnetwork_ip_ranges_to_nat64\030\331\347\247v \001(\tH\013\210\001\001\022J\n" - + "\013subnetworks\030\305\324\245\306\001" - + " \003(\01321.google.cloud.compute.v1.RouterNatSubnetworkToNat\0220\n" + + "\013subnetworks\030\305\324\245\306\001 " + + "\003(\01321.google.cloud.compute.v1.RouterNatSubnetworkToNat\0220\n" + " tcp_established_idle_timeout_sec\030\355\353\260j \001(\005H\014\210\001\001\022*\n" + "\031tcp_time_wait_timeout_sec\030\375\273\363\364\001 \001(\005H\r" + "\210\001\001\022/\n" @@ -28039,8 +28046,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_enableB\t\n" + "\007_filter\"\335\001\n\r" + "RouterNatRule\022D\n" - + "\006action\030\266\374\275Y \001(\013" - + "2,.google.cloud.compute.v1.RouterNatRuleActionH\000\210\001\001\022\034\n" + + "\006action\030\266\374\275Y \001(\0132,.go" + + "ogle.cloud.compute.v1.RouterNatRuleActionH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\025\n" + "\005match\030\305\263\2671 \001(\tH\002\210\001\001\022\034\n" + "\013rule_number\030\354\333\232\377\001 \001(\r" @@ -28068,8 +28075,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\000\210\001\001B\007\n" + "\005_name\"\255\001\n" + "\014RouterParams\022a\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132>.google.clou" - + "d.compute.v1.RouterParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132>.google.cloud.com" + + "pute.v1.RouterParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\363\002\n" @@ -28078,10 +28085,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132\036.google.cloud.compute.v1.Route\022A\n" + "\026best_routes_for_router\030\371\373\3668" + " \003(\0132\036.google.cloud.compute.v1.Route\022N\n" - + "\017bgp_peer_status\030\373\327\225h \003(\0132" - + "2.google.cloud.compute.v1.RouterStatusBgpPeerStatus\022E\n\n" - + "nat_status\030\320\231\213\036 \003(\0132..goo" - + "gle.cloud.compute.v1.RouterStatusNatStatus\022\033\n" + + "\017bgp_peer_status\030\373\327\225h \003(\01322.goo" + + "gle.cloud.compute.v1.RouterStatusBgpPeerStatus\022E\n\n" + + "nat_status\030\320\231\213\036" + + " \003(\0132..google.cloud.compute.v1.RouterStatusNatStatus\022\033\n" + "\013ncc_gateway\030\323\320\261S \001(\tH\000\210\001\001\022\027\n" + "\007network\030\256\264\205o \001(\tH\001\210\001\001B\016\n" + "\014_ncc_gatewayB\n\n" @@ -28089,8 +28096,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031RouterStatusBgpPeerStatus\022=\n" + "\021advertised_routes\030\254\331\374\236\001" + " \003(\0132\036.google.cloud.compute.v1.Route\022?\n\n" - + "bfd_status\030\361\270\323\274\001 \001(" - + "\0132\".google.cloud.compute.v1.BfdStatusH\000\210\001\001\022\033\n" + + "bfd_status\030\361\270\323\274\001" + + " \001(\0132\".google.cloud.compute.v1.BfdStatusH\000\210\001\001\022\033\n" + "\013enable_ipv4\030\241\366\303V \001(\010H\001\210\001\001\022\033\n" + "\013enable_ipv6\030\243\366\303V \001(\010H\002\210\001\001\022\033\n\n" + "ip_address\030\334\361\334\301\001 \001(\tH\003\210\001\001\022$\n" @@ -28152,8 +28159,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\0223\n" + "\"num_vm_endpoints_with_nat_mappings\030\354\266\250\364\001" + " \001(\005H\002\210\001\001\022S\n" - + "\013rule_status\030\225\305\356B \003(\013" - + "2;.google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus\022*\n" + + "\013rule_status\030\225\305\356B \003(\0132;.go" + + "ogle.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus\022*\n" + "\037user_allocated_nat_ip_resources\030\327\351\272e \003(\t\022\"\n" + "\026user_allocated_nat_ips\030\242\262\331\361\001 \003(\tB\033\n" + "\031_min_extra_nat_ips_neededB\007\n" @@ -28274,8 +28281,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\003\210\001\001\022\035\n" + "\014disk_size_gb\030\267\232\347\226\001 \001(\003H\004\210\001\001\022\031\n" + "\tdisk_type\030\234\351\254, \001(\tH\005\210\001\001\022E\n" - + "\021guest_os_features\030\321\340\347% " - + "\003(\0132\'.google.cloud.compute.v1.GuestOsFeature\022\025\n" + + "\021guest_os_features\030\321\340\347% \003(\0132\'" + + ".google.cloud.compute.v1.GuestOsFeature\022\025\n" + "\005index\030\322\321\354/ \001(\005H\006\210\001\001\022\032\n" + "\tinterface\030\271\332\325\357\001 \001(\tH\007\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\010\210\001\001\022\024\n" @@ -28302,11 +28309,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004Type\022\022\n" + "\016UNDEFINED_TYPE\020\000\022\022\n\n" + "PERSISTENT\020\227\365\325\333\001\022\017\n" - + "\007SCRATCH\020\332\375\360\354\001B\016\n" + + "\007SCRATCH\020\332\375\360", + "\354\001B\016\n" + "\014_auto_deleteB\007\n" + "\005_bootB\016\n" - + "\014_dev", - "ice_nameB\026\n" + + "\014_device_nameB\026\n" + "\024_disk_encryption_keyB\017\n\r" + "_disk_size_gbB\014\n\n" + "_disk_typeB\010\n" @@ -28355,8 +28362,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021automatic_restart\030\373\267\244\247\001 \001(\010H\000\210\001\001\022#\n" + "\023availability_domain\030\250\240\264x \001(\005H\001\210\001\001\022%\n" + "\024expose_host_topology\030\353\263\253\314\001 \001(\010H\002\210\001\001\022V\n" - + "\021graceful_shutdown\030\220\345\365k \001(" - + "\01323.google.cloud.compute.v1.SchedulingGracefulShutdownH\003\210\001\001\022+\n" + + "\021graceful_shutdown\030\220\345\365k \001(\01323.g" + + "oogle.cloud.compute.v1.SchedulingGracefulShutdownH\003\210\001\001\022+\n" + "\032host_error_timeout_seconds\030\223\334\331\302\001" + " \001(\005H\004\210\001\001\022+\n" + "\033instance_termination_action\030\273\377\2313 \001(\tH\005\210\001\001\022M\n" @@ -28366,12 +28373,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020max_run_duration\030\303\257\270\315\001" + " \001(\0132!.google.cloud.compute.v1.DurationH\010\210\001\001\022\036\n\r" + "min_node_cpus\030\273\244\242\227\001 \001(\005H\t\210\001\001\022L\n" - + "\017node_affinities\030\243\204\232\334\001 \003(\0132/.google" - + ".cloud.compute.v1.SchedulingNodeAffinity\022#\n" + + "\017node_affinities\030\243\204\232\334\001" + + " \003(\0132/.google.cloud.compute.v1.SchedulingNodeAffinity\022#\n" + "\023on_host_maintenance\030\334\362\347\036 \001(\tH\n" + "\210\001\001\022a\n" - + "\027on_instance_stop_action\030\311\215\325\374\001 \001(\01327.goo" - + "gle.cloud.compute.v1.SchedulingOnInstanceStopActionH\013\210\001\001\022\034\n" + + "\027on_instance_stop_action\030\311\215\325\374\001 \001(\01327.google.c" + + "loud.compute.v1.SchedulingOnInstanceStopActionH\013\210\001\001\022\034\n" + "\013preemptible\030\241\345\313\232\001 \001(\010H\014\210\001\001\022N\n" + "\032preemption_notice_duration\030\265\355\351\347\001" + " \001(\0132!.google.cloud.compute.v1.DurationH\r" @@ -28439,8 +28446,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036SecurityPoliciesAggregatedList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022T\n" - + "\005items\030\300\317\367/" - + " \003(\0132B.google.cloud.compute.v1.SecurityPoliciesAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\013" + + "2B.google.cloud.compute.v1.SecurityPoliciesAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -28449,18 +28456,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 \001" - + "(\01323.google.cloud.compute.v1.SecurityPoliciesScopedList:\0028\001B\007\n" + + "\005value\030\002 \001(\01323." + + "google.cloud.compute.v1.SecurityPoliciesScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n" - + "\n" + + "_self_linkB\n\n" + "\010_warning\"\277\001\n" + "7SecurityPoliciesListPreconfiguredExpressionSetsResponse\022b\n" - + "\035preconfigured_expression_sets\030\372\214\327\377\001 \001(\01322.goog" - + "le.cloud.compute.v1.SecurityPoliciesWafConfigH\000\210\001\001B \n" + + "\035preconfigured_expression_sets\030\372\214\327\377\001 \001(\01322.google.cl" + + "oud.compute.v1.SecurityPoliciesWafConfigH\000\210\001\001B \n" + "\036_preconfigured_expression_sets\"\252\001\n" + "\032SecurityPoliciesScopedList\022E\n" + "\021security_policies\030\357\246\367<" @@ -28469,19 +28475,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"r\n" + "\031SecurityPoliciesWafConfig\022G\n" - + "\twaf_rules\030\324\303\333# \001(\0132,.google.cl" - + "oud.compute.v1.PreconfiguredWafSetH\000\210\001\001B\014\n\n" + + "\twaf_rules\030\324\303\333#" + + " \001(\0132,.google.cloud.compute.v1.PreconfiguredWafSetH\000\210\001\001B\014\n\n" + "_waf_rules\"\314\013\n" + "\016SecurityPolicy\022k\n" - + "\032adaptive_protection_config\030\337\373\321G \001(\0132?.google" - + ".cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigH\000\210\001\001\022f\n" - + "\027advanced_options_config\030\300\323\235\326\001 \001(\0132<.google.cloud.comput" - + "e.v1.SecurityPolicyAdvancedOptionsConfigH\001\210\001\001\022L\n" - + "\014associations\030\222\350\312\362\001 \003(\01322.google" - + ".cloud.compute.v1.SecurityPolicyAssociation\022\"\n" + + "\032adaptive_protection_config\030\337\373\321G \001(\0132?.google.clou" + + "d.compute.v1.SecurityPolicyAdaptiveProtectionConfigH\000\210\001\001\022f\n" + + "\027advanced_options_config\030\300\323\235\326\001" + + " \001(\0132<.google.cloud.compute.v1." + + "SecurityPolicyAdvancedOptionsConfigH\001\210\001\001\022L\n" + + "\014associations\030\222\350\312\362\001 \003(\01322.google.clou" + + "d.compute.v1.SecurityPolicyAssociation\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022c\n" - + "\026ddos_protection_config\030\315\204\377\027 \001(\0132;.goo" - + "gle.cloud.compute.v1.SecurityPolicyDdosProtectionConfigH\003\210\001\001\022\034\n" + + "\026ddos_protection_config\030\315\204\377\027 \001(\0132;.google.c" + + "loud.compute.v1.SecurityPolicyDdosProtectionConfigH\003\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\005\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\006\210\001\001\022\024\n" @@ -28492,8 +28499,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\t\210\001\001\022\026\n" + "\006parent\030\252\221\254% \001(\tH\n" + "\210\001\001\022h\n" - + "\030recaptcha_options_config\030\333\324\275\367\001 \001(\0132=.google" - + ".cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfigH\013\210\001\001\022\026\n" + + "\030recaptcha_options_config\030\333\324\275\367\001 \001(\0132=.google.clou" + + "d.compute.v1.SecurityPolicyRecaptchaOptionsConfigH\013\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\014\210\001\001\022=\n" + "\005rules\030\367\221\3653" + " \003(\0132+.google.cloud.compute.v1.SecurityPolicyRule\022\032\n" @@ -28528,15 +28535,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_short_nameB\007\n" + "\005_type\"\315\001\n" + "&SecurityPolicyAdaptiveProtectionConfig\022\203\001\n" - + "\032layer7_ddos_defense_config\030\243\331\303\320\001 \001(\0132V.google.cloud." - + "compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigH\000\210\001\001B\035\n" + + "\032layer7_ddos_defense_config\030\243\331\303\320\001 \001(\0132V.google.cloud.compu" + + "te.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigH\000\210\001\001B\035\n" + "\033_layer7_ddos_defense_config\"\363\002\n" + "=SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig\022\027\n" + "\006enable\030\203\313\324\224\001 \001(\010H\000\210\001\001\022 \n" + "\017rule_visibility\030\265\330\220\330\001 \001(\tH\001\210\001\001\022\203\001\n" - + "\021threshold_configs\030\235\253\343\034 \003(\0132e.google.cloud." - + "compute.v1.SecurityPolicyAdaptiveProtect" - + "ionConfigLayer7DdosDefenseConfigThresholdConfig\"R\n" + + "\021threshold_configs\030\235\253\343\034 \003(\0132e.google.cloud.compu" + + "te.v1.SecurityPolicyAdaptiveProtectionCo" + + "nfigLayer7DdosDefenseConfigThresholdConfig\"R\n" + "\016RuleVisibility\022\035\n" + "\031UNDEFINED_RULE_VISIBILITY\020\000\022\017\n" + "\007PREMIUM\020\267\264\301\276\001\022\020\n" @@ -28555,9 +28562,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"detection_relative_to_baseline_qps\030\205\233\366\212\001" + " \001(\002H\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\245\001\n" - + "\033traffic_granularity_configs\030\276\264\332( \003(\013" - + "2}.google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefen" - + "seConfigThresholdConfigTrafficGranularityConfigB#\n" + + "\033traffic_granularity_configs\030\276\264\332( \003(\0132}.go" + + "ogle.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseCon" + + "figThresholdConfigTrafficGranularityConfigB#\n" + "!_auto_deploy_confidence_thresholdB\035\n" + "\033_auto_deploy_expiration_secB*\n" + "(_auto_deploy_impacted_baseline_thresholdB\035\n" @@ -28566,8 +28573,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031_detection_load_thresholdB%\n" + "#_detection_relative_to_baseline_qpsB\007\n" + "\005_name\"\320\002\n" - + "dSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig" - + "ThresholdConfigTrafficGranularityConfig\022)\n" + + "dSecurityPolicyAdaptiveProt" + + "ectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig\022)\n" + "\030enable_each_unique_value\030\305\212\336\337\001" + " \001(\010H\000\210\001\001\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\001\210\001\001\022\025\n" @@ -28581,8 +28588,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_typeB\010\n" + "\006_value\"\255\004\n" + "#SecurityPolicyAdvancedOptionsConfig\022p\n" - + "\022json_custom_config\030\271\331\2315 \001(\0132L.google.cloud." - + "compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfigH\000\210\001\001\022\035\n" + + "\022json_custom_config\030\271\331\2315 \001(\0132L.google.cloud.compu" + + "te.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfigH\000\210\001\001\022\035\n" + "\014json_parsing\030\331\204\332\206\001 \001(\tH\001\210\001\001\022\031\n" + "\tlog_level\030\311\275\204C \001(\tH\002\210\001\001\022,\n" + "\034request_body_inspection_size\030\377\215\232[ \001(\tH\003\210\001\001\022#\n" @@ -28655,21 +28662,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022SecurityPolicyRule\022\026\n" + "\006action\030\266\374\275Y \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022[\n\r" - + "header_action\030\250\240\270\234\001 \001(\0132;.google.cloud.c" - + "ompute.v1.SecurityPolicyRuleHttpHeaderActionH\002\210\001\001\022\024\n" + + "header_action\030\250\240\270\234\001 \001(\0132;.google.cloud.comput" + + "e.v1.SecurityPolicyRuleHttpHeaderActionH\002\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022I\n" + "\005match\030\305\263\2671" + " \001(\01322.google.cloud.compute.v1.SecurityPolicyRuleMatcherH\004\210\001\001\022Y\n\r" + "network_match\030\364\370\372\334\001" + " \001(\01329.google.cloud.compute.v1.SecurityPolicyRuleNetworkMatcherH\005\210\001\001\022k\n" - + "\030preconfigured_waf_config\030\343\237\2268 \001(\0132A.goo" - + "gle.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigH\006\210\001\001\022\027\n" + + "\030preconfigured_waf_config\030\343\237\2268 \001(\0132A.google.c" + + "loud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigH\006\210\001\001\022\027\n" + "\007preview\030\310\307\243h \001(\010H\007\210\001\001\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\010\210\001\001\022_\n" - + "\022rate_limit_options\030\373\311\232 \001(\0132;.google.c" - + "loud.compute.v1.SecurityPolicyRuleRateLimitOptionsH\t\210\001\001\022\\\n" - + "\020redirect_options\030\273\222\356M" - + " \001(\0132:.google.cloud.compute.v1.SecurityPolicyRuleRedirectOptionsH\n" + + "\022rate_limit_options\030\373\311\232 \001(\0132;.google.cloud." + + "compute.v1.SecurityPolicyRuleRateLimitOptionsH\t\210\001\001\022\\\n" + + "\020redirect_options\030\273\222\356M \001(\0132" + + ":.google.cloud.compute.v1.SecurityPolicyRuleRedirectOptionsH\n" + "\210\001\001B\t\n" + "\007_actionB\016\n" + "\014_descriptionB\020\n" @@ -28683,21 +28690,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_rate_limit_optionsB\023\n" + "\021_redirect_options\"\225\001\n" + "\"SecurityPolicyRuleHttpHeaderAction\022o\n" - + "\027request_headers_to_adds\030\315\253\372)" - + " \003(\0132K.google.cloud.compute.v1.SecurityP" - + "olicyRuleHttpHeaderActionHttpHeaderOption\"\220\001\n" + + "\027request_headers_to_adds\030\315\253\372) \003(\0132" + + "K.google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption\"\220\001\n" + "2SecurityPolicyRuleHttpHeaderActionHttpHeaderOption\022\033\n" + "\013header_name\030\375\301\3074 \001(\tH\000\210\001\001\022\034\n" + "\014header_value\030\277\362\353` \001(\tH\001\210\001\001B\016\n" + "\014_header_nameB\017\n\r" + "_header_value\"\233\003\n" + "\031SecurityPolicyRuleMatcher\022P\n" - + "\006config\030\302\206\376y \001(\01328." - + "google.cloud.compute.v1.SecurityPolicyRuleMatcherConfigH\000\210\001\001\0223\n" + + "\006config\030\302\206\376y \001(\01328.googl" + + "e.cloud.compute.v1.SecurityPolicyRuleMatcherConfigH\000\210\001\001\0223\n" + "\004expr\030\365\363\276\001" + " \001(\0132\035.google.cloud.compute.v1.ExprH\001\210\001\001\022\\\n" - + "\014expr_options\030\324\304\354\347\001 \001(\0132=.google.cloud.compu" - + "te.v1.SecurityPolicyRuleMatcherExprOptionsH\002\210\001\001\022\037\n" + + "\014expr_options\030\324\304\354\347\001 \001(\0132=.google.cloud.compute.v1" + + ".SecurityPolicyRuleMatcherExprOptionsH\002\210\001\001\022\037\n" + "\016versioned_expr\030\275\343\326\231\001 \001(\tH\003\210\001\001\"@\n\r" + "VersionedExpr\022\034\n" + "\030UNDEFINED_VERSIONED_EXPR\020\000\022\021\n\n" @@ -28706,12 +28712,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_exprB\017\n\r" + "_expr_optionsB\021\n" + "\017_versioned_expr\"<\n" - + "\037SecurityPolicyRuleMatcherConfig\022\031\n" - + "\r" + + "\037SecurityPolicyRuleMatcherConfig\022\031\n\r" + "src_ip_ranges\030\323\200\207\316\001 \003(\t\"\257\001\n" + "$SecurityPolicyRuleMatcherExprOptions\022q\n" - + "\021recaptcha_options\030\306\366\307\271\001 \001(\0132M.google.cloud.compute." - + "v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptionsH\000\210\001\001B\024\n" + + "\021recaptcha_options\030\306\366\307\271\001 \001(\0132M.google.cloud.compute.v1.Se" + + "curityPolicyRuleMatcherExprOptionsRecaptchaOptionsH\000\210\001\001B\024\n" + "\022_recaptcha_options\"~\n" + "4SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions\022!\n" + "\026action_token_site_keys\030\235\352\311\034 \003(\t\022#\n" @@ -28726,29 +28731,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tsrc_ports\030\367\273\236\324\001 \003(\t\022\033\n" + "\020src_region_codes\030\226\343\237/ \003(\t\022n\n" + "\023user_defined_fields\030\243\211\300\r" - + " \003(\0132N.google.cloud.compute." - + "v1.SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch\"i\n" + + " \003(\0132N.google.cloud.compute.v1.Se" + + "curityPolicyRuleNetworkMatcherUserDefinedFieldMatch\"i\n" + "5SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022\021\n" + "\006values\030\242\272\226w \003(\tB\007\n" + "\005_name\"\215\001\n" + "(SecurityPolicyRulePreconfiguredWafConfig\022a\n\n" - + "exclusions\030\345\370\277c \003(\0132J.google" - + ".cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion\"\377\005\n" + + "exclusions\030\345\370\277c \003(\0132J.google.clou" + + "d.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion\"\377\005\n" + "1SecurityPolicyRulePreconfiguredWafConfigExclusion\022{\n" - + "\031request_bodies_to_exclude\030\305\344\351\034 \003(\0132" - + "U.google.cloud.compute.v1.SecurityPolicy" - + "RulePreconfiguredWafConfigExclusionFieldParams\022|\n" - + "\032request_cookies_to_exclude\030\366\336\337J" - + " \003(\0132U.google.cloud.compute.v1.Security" - + "PolicyRulePreconfiguredWafConfigExclusionFieldParams\022|\n" + + "\031request_bodies_to_exclude\030\305\344\351\034 \003(\0132U.goo" + + "gle.cloud.compute.v1.SecurityPolicyRuleP" + + "reconfiguredWafConfigExclusionFieldParams\022|\n" + + "\032request_cookies_to_exclude\030\366\336\337J \003(\013" + + "2U.google.cloud.compute.v1.SecurityPolic" + + "yRulePreconfiguredWafConfigExclusionFieldParams\022|\n" + "\032request_headers_to_exclude\030\237\244\223\036" - + " \003(\0132U.google.cloud.compute.v1.Se" - + "curityPolicyRulePreconfiguredWafConfigExclusionFieldParams\022\202\001\n" - + "\037request_query_params_to_exclude\030\210\236\272\242\001 \003(\0132U.google.cloud." - + "compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams\022y\n" - + "\027request_uris_to_exclude\030\236\252\237+ \003(\0132U.google.clo" - + "ud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams\022\033\n" + + " \003(\0132U.google.cloud.compute.v1.Securit" + + "yPolicyRulePreconfiguredWafConfigExclusionFieldParams\022\202\001\n" + + "\037request_query_params_to_exclude\030\210\236\272\242\001" + + " \003(\0132U.google.cloud.compu" + + "te.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams\022y\n" + + "\027request_uris_to_exclude\030\236\252\237+ \003(\0132U.google.cloud.co" + + "mpute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams\022\033\n" + "\017target_rule_ids\030\343\343\325\355\001 \003(\t\022 \n" + "\017target_rule_set\030\215\257\326\355\001 \001(\tH\000\210\001\001B\022\n" + "\020_target_rule_set\"\347\001\n" @@ -28766,18 +28772,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_val\"\245\010\n" + "\"SecurityPolicyRuleRateLimitOptions\022 \n" + "\020ban_duration_sec\030\326\232\272\024 \001(\005H\000\210\001\001\022d\n\r" - + "ban_threshold\030\273\250\377\356\001 \001(\0132D.google.cloud.compute.v1.Se" - + "curityPolicyRuleRateLimitOptionsThresholdH\001\210\001\001\022\037\n" + + "ban_threshold\030\273\250\377\356\001 \001(\0132D.google.cloud.compute.v1.Securit" + + "yPolicyRuleRateLimitOptionsThresholdH\001\210\001\001\022\037\n" + "\016conform_action\030\317\306\350\366\001 \001(\tH\002\210\001\001\022\037\n" + "\016enforce_on_key\030\374\235\326\306\001 \001(\tH\003\210\001\001\022p\n" - + "\026enforce_on_key_configs\030\256\276\225\020 \003(\0132M.google.clo" - + "ud.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig\022#\n" + + "\026enforce_on_key_configs\030\256\276\225\020 \003(\0132M.google.cloud.co" + + "mpute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig\022#\n" + "\023enforce_on_key_name\030\356\303\232? \001(\tH\004\210\001\001\022\035\n\r" + "exceed_action\030\241\312\332O \001(\tH\005\210\001\001\022d\n" + "\027exceed_redirect_options\030\346\214\355\341\001" + " \001(\0132:.google.cloud.compute.v1.SecurityPolicyRuleRedirectOptionsH\006\210\001\001\022k\n" - + "\024rate_limit_threshold\030\210\277\317\226\001 \001(\0132D.google." - + "cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThresholdH\007\210\001\001\"\377\001\n" + + "\024rate_limit_threshold\030\210\277\317\226\001 \001(\0132D.google.cloud" + + ".compute.v1.SecurityPolicyRuleRateLimitOptionsThresholdH\007\210\001\001\"\377\001\n" + "\014EnforceOnKey\022\034\n" + "\030UNDEFINED_ENFORCE_ON_KEY\020\000\022\t\n" + "\003ALL\020\201\373\003\022\t\n" @@ -28888,10 +28894,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021ServiceAttachment\022[\n" + "\023connected_endpoints\030\310\227\270\"" + " \003(\0132;.google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint\022&\n" - + "\025connection_preference\030\334\371\244\210\001 \001(\tH\000\210\001\001\022a\n" - + "\025consum", - "er_accept_lists\030\307\266\204\300\001 \003(\0132>.google.cloud" - + ".compute.v1.ServiceAttachmentConsumerProjectLimit\022 \n" + + "\025connection_", + "preference\030\334\371\244\210\001 \001(\tH\000\210\001\001\022a\n" + + "\025consumer_accept_lists\030\307\266\204\300\001 \003(\0132>.google.cloud.comp" + + "ute.v1.ServiceAttachmentConsumerProjectLimit\022 \n" + "\025consumer_reject_lists\030\236\231\245a \003(\t\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\027\n" @@ -28900,8 +28906,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013fingerprint\030\344\321\363o \001(\tH\004\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\005\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022M\n" - + "\010metadata\030\257\366\265) \003(\01328.google.cloud." - + "compute.v1.ServiceAttachment.MetadataEntry\022\024\n" + + "\010metadata\030\257\366\265)" + + " \003(\01328.google.cloud.compute.v1.ServiceAttachment.MetadataEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022%\n" + "\024nat_ips_per_endpoint\030\210\216\220\261\001 \001(\r" + "H\010\210\001\001\022\027\n" @@ -28943,8 +28949,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_target_service\"\324\003\n" + "\037ServiceAttachmentAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022U\n" - + "\005items\030\300\317\367/" - + " \003(\0132C.google.cloud.compute.v1.ServiceAttachmentAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003" + + "(\0132C.google.cloud.compute.v1.ServiceAttachmentAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -28953,8 +28959,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032c\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022D\n" - + "\005value\030\002" - + " \001(\01325.google.cloud.compute.v1.ServiceAttachmentsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\013" + + "25.google.cloud.compute.v1.ServiceAttachmentsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -28995,8 +29001,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_project_id_or_num\"\263\002\n" + "\025ServiceAttachmentList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022<\n" - + "\005items\030\300\317\367/" - + " \003(\0132*.google.cloud.compute.v1.ServiceAttachment\022\024\n" + + "\005items\030\300\317\367/ \003(" + + "\0132*.google.cloud.compute.v1.ServiceAttachment\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -29008,8 +29014,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\262\001\n" + "\034ServiceAttachmentsScopedList\022K\n" - + "\023service_attachments\030\246\222\272\222\001 \003(\013" - + "2*.google.cloud.compute.v1.ServiceAttachment\0229\n" + + "\023service_attachments\030\246\222\272\222\001 \003(\0132*.go" + + "ogle.cloud.compute.v1.ServiceAttachment\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\246\002\n" @@ -29018,8 +29024,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\212\001\n" + "7target_ssl_proxies_set_backend_service_request_resource\030\244\351\250B" - + " \001(\0132A.google.cloud.compute.v1.Tar" - + "getSslProxiesSetBackendServiceRequestB\003\340A\002\022!\n" + + " \001(\0132A.google.cloud.compute.v1.TargetSslProxiesSetBackendServiceRequestB\003\340A\002\022!\n" + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\247\002\n" + "&SetBackendServiceTargetTcpProxyRequest\022!\n" @@ -29027,8 +29032,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\213\001\n" + "7target_tcp_proxies_set_backend_service_request_resource\030\357\321\302\202\001" - + " \001(\0132A.google.cl" - + "oud.compute.v1.TargetTcpProxiesSetBackendServiceRequestB\003\340A\002\022!\n" + + " \001(\0132A.google.cloud.c" + + "ompute.v1.TargetTcpProxiesSetBackendServiceRequestB\003\340A\002\022!\n" + "\020target_tcp_proxy\030\342\326\360\357\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\261\002\n" + "\032SetBackupTargetPoolRequest\022\036\n" @@ -29040,15 +29045,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013target_pool\030\212\344\370\035 \001(\tB\003\340A\002\022T\n" + "\031target_reference_resource\030\360\267\335\371\001" + " \001(\0132(.google.cloud.compute.v1.TargetReferenceB\003\340A\002B\021\n" - + "\017_failover_ratioB\r\n" + + "\017_failover_ratioB\r" + + "\n" + "\013_request_id\"\256\002\n" + "(SetCertificateMapTargetHttpsProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\217\001\n" + "9target_https_proxies_set_certificate_map_request_resource\030\273\266\376\336\001" - + " \001(\0132C" - + ".google.cloud.compute.v1.TargetHttpsProxiesSetCertificateMapRequestB\003\340A\002\022\"\n" + + " \001(\0132C.goog" + + "le.cloud.compute.v1.TargetHttpsProxiesSetCertificateMapRequestB\003\340A\002\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\247\002\n" + "&SetCertificateMapTargetSslProxyRequest\022!\n" @@ -29056,26 +29062,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\213\001\n" + "7target_ssl_proxies_set_certificate_map_request_resource\030\272\226\203\244\001" - + " \001(\0132A.google.cloud.compu" - + "te.v1.TargetSslProxiesSetCertificateMapRequestB\003\340A\002\022!\n" + + " \001(\0132A.google.cloud.compute.v1" + + ".TargetSslProxiesSetCertificateMapRequestB\003\340A\002\022!\n" + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\352\001\n" + "\037SetCloudArmorTierProjectRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022y\n" - + ".projects_set_cloud_armor_tier_request_resource\030\317\373\336$ \001(\01329.google" - + ".cloud.compute.v1.ProjectsSetCloudArmorTierRequestB\003\340A\002\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + ".projects_set_cloud_armor_tier_request_resource\030\317\373\336$" + + " \001(\01329.google.clou" + + "d.compute.v1.ProjectsSetCloudArmorTierRequestB\003\340A\002\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" + + "\n" + "\013_request_id\"\214\003\n" + "*SetCommonInstanceMetadataOperationMetadata\022$\n" + "\023client_operation_id\030\347\215\336\215\001 \001(\tH\000\210\001\001\022\203\001\n" - + "\027per_location_operations\030\224\321\202\303\001 \003(\0132^.google.cloud.com" - + "pute.v1.SetCommonInstanceMetadataOperati" - + "onMetadata.PerLocationOperationsEntry\032\231\001\n" + + "\027per_location_operations\030\224\321\202\303\001 \003(\0132^.google.cloud.compute." + + "v1.SetCommonInstanceMetadataOperationMetadata.PerLocationOperationsEntry\032\231\001\n" + "\032PerLocationOperationsEntry\022\013\n" + "\003key\030\001 \001(\t\022j\n" - + "\005value\030\002 \001(\0132[.google.cloud.compute." - + "v1.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo:\0028\001B\026\n" + + "\005value\030\002 \001(\0132[.google.cloud.compute.v1.Se" + + "tCommonInstanceMetadataOperationMetadataPerLocationOperationInfo:\0028\001B\026\n" + "\024_client_operation_id\"\262\002\n" + "BSetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo\0226\n" + "\005error\030\210\244\223." @@ -29092,8 +29099,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_errorB\010\n" + "\006_state\"\276\001\n" + "\'SetCommonInstanceMetadataProjectRequest\022E\n" - + "\021metadata_resource\030\236\276\346\212\001 \001(" - + "\0132!.google.cloud.compute.v1.MetadataB\003\340A\002\022!\n" + + "\021metadata_resource\030\236\276\346\212\001" + + " \001(\0132!.google.cloud.compute.v1.MetadataB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -29102,8 +29109,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\201\001\n" + "2projects_set_default_network_tier_request_resource\030\212\300\243<" - + " \001(\0132=.google.cloud.comput" - + "e.v1.ProjectsSetDefaultNetworkTierRequestB\003\340A\002\022\032\n\n" + + " \001(\0132=.google.cloud.compute.v1." + + "ProjectsSetDefaultNetworkTierRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\351\001\n" + "$SetDeletionProtectionInstanceRequest\022$\n" @@ -29121,7 +29128,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013device_name\030\324\265\232 \001(\tB\003\340A\002\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\n" + + "\340A\002\362G\007project\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" @@ -29139,32 +29147,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n" - + "\"security_policy_reference_resource\030\360\264\253a " - + "\001(\01320.google.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002B\r\n" + + "\"security_policy_reference_resource\030\360\264\253a \001(\01320" + + ".google.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002B\r\n" + "\013_request_id\"\273\001\n" + " SetIamPolicyBackendBucketRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/" - + ".google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.goog" + + "le.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\274\001\n" + "!SetIamPolicyBackendServiceRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.google.c" - + "loud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.google.cloud." + + "compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\304\001\n" + "\027SetIamPolicyDiskRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022`\n" - + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(" - + "\0132-.google.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\273\001\n" + + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-.g" + + "oogle.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\273\001\n" + "!SetIamPolicyFirewallPolicyRequest\022|\n" - + "/global_organization_set_policy_request_resource\030\336\224\314T \001(\0132;.google" - + ".cloud.compute.v1.GlobalOrganizationSetPolicyRequestB\003\340A\002\022\030\n" + + "/global_organization_set_policy_request_resource\030\336\224\314T" + + " \001(\0132;.google.clou" + + "d.compute.v1.GlobalOrganizationSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\263\001\n" + "\030SetIamPolicyImageRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\013" - + "2/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.go" + + "ogle.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\310\001\n" + "\033SetIamPolicyInstanceRequest\022\027\n" @@ -29174,8 +29183,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " zone_set_policy_request_resource\030\273\270\230\266\001" + " \001(\0132-.google.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\276\001\n" + "#SetIamPolicyInstanceTemplateRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.g" - + "oogle.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.google" + + ".cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\324\001\n" + "\'SetIamPolicyInstantSnapshotGroupRequest\022\027\n" @@ -29188,11 +29197,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022`\n" - + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-.goo" - + "gle.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\311\001\n" + + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-.google.c" + + "loud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\311\001\n" + ".SetIamPolicyInterconnectAttachmentGroupRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.google.cloud" - + ".compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001" + + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\277\001\n" + "$SetIamPolicyInterconnectGroupRequest\022d\n" @@ -29201,13 +29210,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\271\001\n" + "\036SetIamPolicyLicenseCodeRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001" - + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001" + + "(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\265\001\n" + "\032SetIamPolicyLicenseRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.google" - + ".cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.google.clou" + + "d.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\272\001\n" + "\037SetIamPolicyMachineImageRequest\022d\n" @@ -29222,8 +29231,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\303\001\n" + "(SetIamPolicyNetworkFirewallPolicyRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.g" - + "oogle.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.google" + + ".cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\311\001\n" + "\034SetIamPolicyNodeGroupRequest\022\027\n" @@ -29235,8 +29244,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037SetIamPolicyNodeTemplateRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/" - + ".google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.goog" + + "le.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\331\001\n" + "&SetIamPolicyRegionBackendBucketRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" @@ -29247,8 +29256,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'SetIamPolicyRegionBackendServiceRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132" - + "/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.goo" + + "gle.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\320\001\n" + "\035SetIamPolicyRegionDiskRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" @@ -29259,8 +29268,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "-SetIamPolicyRegionInstantSnapshotGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/." - + "google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.googl" + + "e.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\333\001\n" + "(SetIamPolicyRegionInstantSnapshotRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" @@ -29271,8 +29280,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".SetIamPolicyRegionNetworkFirewallPolicyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001" - + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001" + + "(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\324\001\n" + "!SetIamPolicyRegionSnapshotRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" @@ -29286,26 +29295,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022l\n" + "\'zone_set_nested_policy_request_resource\030\323\361\200\177" - + " \001(\01323.google.cloud.comp" - + "ute.v1.ZoneSetNestedPolicyRequestB\003\340A\002\"\313\001\n" + + " \001(\01323.google.cloud.compute.v1.ZoneSetNestedPolicyRequestB\003\340A\002\"\313\001\n" + "\036SetIamPolicyReservationRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022`\n" - + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-.googl" - + "e.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\200\002\n" + + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-.google.clo" + + "ud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\200\002\n" + "&SetIamPolicyReservationSubBlockRequest\022\037\n" + "\017parent_resource\030\203\230\320\010 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022l\n" - + "\'zone_set_nested_policy_request_resource\030\323\361\200\177" - + " \001(\01323.google.cloud.compute.v1.ZoneSetNestedPolicyRequestB\003\340A\002\"\324\001\n" + + "\'zone_set_nested_policy_request_resource\030\323\361\200\177 \001(\013" + + "23.google.cloud.compute.v1.ZoneSetNestedPolicyRequestB\003\340A\002\"\324\001\n" + "!SetIamPolicyResourcePolicyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/" - + ".google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.goog" + + "le.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\327\001\n" + "$SetIamPolicyServiceAttachmentRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" @@ -29322,8 +29330,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022`\n" - + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-.go" - + "ogle.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\320\001\n" + + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-.google." + + "cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\320\001\n" + "\035SetIamPolicySubnetworkRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" @@ -29333,8 +29341,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".SetInstanceTemplateInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\230\001\n" + ">instance_group_managers_set_instance_template_request_resource\030\305\331\326\004" - + " \001(\0132H.google.cloud" - + ".compute.v1.InstanceGroupManagersSetInstanceTemplateRequestB\003\340A\002\022!\n" + + " \001(\0132H.google.cloud.comp" + + "ute.v1.InstanceGroupManagersSetInstanceTemplateRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -29347,16 +29355,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\224\001\n" + ".google.cloud.compute.v1.TargetSslProxiesSetProxyHeaderRequestB\003\340A\002\022!\n" + + "4target_ssl_proxies_set_proxy_header_request_resource\030\256\311\361a \001" + + "(\0132>.google.cloud.compute.v1.TargetSslProxiesSetProxyHeaderRequestB\003\340A\002\022!\n" + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\235\002\n" + "#SetProxyHeaderTargetTcpProxyRequest\022!\n" @@ -29634,8 +29639,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\204\001\n" + "4target_tcp_proxies_set_proxy_header_request_resource\030\303\230\361h" - + " \001(\0132>.google.cloud.compute.v" - + "1.TargetTcpProxiesSetProxyHeaderRequestB\003\340A\002\022!\n" + + " \001(\0132>.google.cloud.compute.v1.Tar" + + "getTcpProxiesSetProxyHeaderRequestB\003\340A\002\022!\n" + "\020target_tcp_proxy\030\342\326\360\357\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\247\002\n" + "&SetQuicOverrideTargetHttpsProxyRequest\022!\n" @@ -29643,8 +29648,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\212\001\n" + "7target_https_proxies_set_quic_override_request_resource\030\342\365\343\"" - + " \001(\0132A.google.c" - + "loud.compute.v1.TargetHttpsProxiesSetQuicOverrideRequestB\003\340A\002\022\"\n" + + " \001(\0132A.google.cloud." + + "compute.v1.TargetHttpsProxiesSetQuicOverrideRequestB\003\340A\002\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\356\001\n" + "\034SetSchedulingInstanceRequest\022\030\n" @@ -29688,8 +29693,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n" - + "\"security_policy_reference_resource\030\360\264\253a \001(\01320.goog" - + "le.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002\022 \n" + + "\"security_policy_reference_resource\030\360\264\253a \001(\01320.google.cl" + + "oud.compute.v1.SecurityPolicyReferenceB\003\340A\002\022 \n" + "\017target_instance\030\203\217\226\212\001 \001(\tB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" @@ -29699,8 +29704,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n" - + "\"security_policy_reference_resource\030\360\264\253a \001(\01320.google.cl" - + "oud.compute.v1.SecurityPolicyReferenceB\003\340A\002\022\033\n" + + "\"security_policy_reference_resource\030\360\264\253a \001(\01320.google.cloud.c" + + "ompute.v1.SecurityPolicyReferenceB\003\340A\002\022\033\n" + "\013target_pool\030\212\344\370\035 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\244\002\n" + " SetServiceAccountInstanceRequest\022\030\n" @@ -29719,8 +29724,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022v\n" + "+shielded_instance_integrity_policy_resource\030\266\334\215\303\001" - + " \001(\01328.google.cloud.co" - + "mpute.v1.ShieldedInstanceIntegrityPolicyB\003\340A\002\022\033\n" + + " \001(\01328.google.cloud.compute" + + ".v1.ShieldedInstanceIntegrityPolicyB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\345\002\n" @@ -29728,10 +29733,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\236\001\n" - + "Aregion_target_https_proxie" - + "s_set_ssl_certificates_request_resource\030\207\204\246\272\001" - + " \001(\0132J.google.cloud.compute.v1.Regi" - + "onTargetHttpsProxiesSetSslCertificatesRequestB\003\340A\002\022\032\n\n" + + "Aregion_target_https_proxies_set" + + "_ssl_certificates_request_resource\030\207\204\246\272\001" + + " \001(\0132J.google.cloud.compute.v1.RegionTar" + + "getHttpsProxiesSetSslCertificatesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\260\002\n" @@ -29740,8 +29745,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\220\001\n" + ":target_https_proxies_set_ssl_certificates_request_resource\030\334\253\262j" - + " \001(\0132D.google." - + "cloud.compute.v1.TargetHttpsProxiesSetSslCertificatesRequestB\003\340A\002\022\"\n" + + " \001(\0132D.google.cloud" + + ".compute.v1.TargetHttpsProxiesSetSslCertificatesRequestB\003\340A\002\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\251\002\n" + "\'SetSslCertificatesTargetSslProxyRequest\022!\n" @@ -29749,24 +29754,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\214\001\n" + "8target_ssl_proxies_set_ssl_certificates_request_resource\030\275\313\305F" - + " \001(\0132B.google.cloud.compute.v1." - + "TargetSslProxiesSetSslCertificatesRequestB\003\340A\002\022!\n" + + " \001(\0132B.google.cloud.compute.v1.Targe" + + "tSslProxiesSetSslCertificatesRequestB\003\340A\002\022!\n" + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\363\001\n" + "#SetSslPolicyTargetHttpsProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Z\n" - + "\035ssl_policy_reference_resource\030\274\364\237p \001(" - + "\0132+.google.cloud.compute.v1.SslPolicyReferenceB\003\340A\002\022\"\n" + + "\035ssl_policy_reference_resource\030\274\364\237p \001(\0132+.g" + + "oogle.cloud.compute.v1.SslPolicyReferenceB\003\340A\002\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\360\001\n" + "!SetSslPolicyTargetSslProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Z\n" - + "\035ssl_policy_reference_resource\030\274\364\237p" - + " \001(\0132+.google.cloud.compute.v1.SslPolicyReferenceB\003\340A\002\022!\n" + + "\035ssl_policy_reference_resource\030\274\364\237p \001(\013" + + "2+.google.cloud.compute.v1.SslPolicyReferenceB\003\340A\002\022!\n" + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\334\001\n" + "\026SetTagsInstanceRequest\022\030\n" @@ -29774,8 +29779,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022=\n\r" - + "tags_resource\030\364\232\205\236\001" - + " \001(\0132\035.google.cloud.compute.v1.TagsB\003\340A\002\022\033\n" + + "tags_resource\030\364\232\205\236\001 " + + "\001(\0132\035.google.cloud.compute.v1.TagsB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\207\002\n" @@ -29799,8 +29804,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ")SetTargetPoolsInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\217\001\n" + "9instance_group_managers_set_target_pools_request_resource\030\210\206\210\206\001" - + " \001(\0132C.google" - + ".cloud.compute.v1.InstanceGroupManagersSetTargetPoolsRequestB\003\340A\002\022!\n" + + " \001(\0132C.google.clou" + + "d.compute.v1.InstanceGroupManagersSetTargetPoolsRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -29813,10 +29818,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\233\001\n" + "@region_instance_group_managers_set_target_pools_request_resource\030\375\312\305%" - + " \001(\0132I.google.cloud.compute.v1.Reg" - + "ionInstanceGroupManagersSetTargetPoolsRequestB\003\340A\002\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" - + "\n" + + " \001(\0132I.google.cloud.compute.v1.RegionIn" + + "stanceGroupManagersSetTargetPoolsRequestB\003\340A\002\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\220\002\n" + "%SetUrlMapRegionTargetHttpProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -29865,8 +29869,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "share_type\030\232\227\270\253\001 \001(\tH\000\210\001\001\032f\n" + "\017ProjectMapEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 \001(\01323.google.cloud." - + "compute.v1.ShareSettingsProjectConfig:\0028\001\"\204\001\n" + + "\005value\030\002" + + " \001(\01323.google.cloud.compute.v1.ShareSettingsProjectConfig:\0028\001\"\204\001\n" + "\tShareType\022\030\n" + "\024UNDEFINED_SHARE_TYPE\020\000\022\014\n" + "\005LOCAL\020\313\316\317\"\022\024\n" @@ -29886,15 +29890,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_enable_secure_bootB\016\n" + "\014_enable_vtpm\"\201\004\n" + "\030ShieldedInstanceIdentity\022`\n" - + "\027ecc_p256_encryption_key\030\305\307\366\337\001 \001(\01326.google.cloud.compu" - + "te.v1.ShieldedInstanceIdentityEntryH\000\210\001\001\022]\n" - + "\024ecc_p256_signing_key\030\303\226\343\343\001 \001(\01326.goo" - + "gle.cloud.compute.v1.ShieldedInstanceIdentityEntryH\001\210\001\001\022W\n" - + "\016encryption_key\030\243\307\351\350\001 " - + "\001(\01326.google.cloud.compute.v1.ShieldedInstanceIdentityEntryH\002\210\001\001\022\024\n" + + "\027ecc_p256_encryption_key\030\305\307\366\337\001" + + " \001(\01326.google.cloud.compute.v1.ShieldedInstanceIdentityEntryH\000\210\001\001\022]\n" + + "\024ecc_p256_signing_key\030\303\226\343\343\001 \001(\01326.google.c" + + "loud.compute.v1.ShieldedInstanceIdentityEntryH\001\210\001\001\022W\n" + + "\016encryption_key\030\243\307\351\350\001 \001(\01326" + + ".google.cloud.compute.v1.ShieldedInstanceIdentityEntryH\002\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022T\n" - + "\013signing_key\030\245\220\205\231\001 \001(\01326.google" - + ".cloud.compute.v1.ShieldedInstanceIdentityEntryH\004\210\001\001B\032\n" + + "\013signing_key\030\245\220\205\231\001 \001(\01326.google.clou" + + "d.compute.v1.ShieldedInstanceIdentityEntryH\004\210\001\001B\032\n" + "\030_ecc_p256_encryption_keyB\027\n" + "\025_ecc_p256_signing_keyB\021\n" + "\017_encryption_keyB\007\n" @@ -29927,8 +29931,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(SimulateMaintenanceEventNodeGroupRequest\022\033\n\n" + "node_group\030\202\374\213\340\001 \001(\tB\003\340A\002\022\214\001\n" + "7node_groups_simulate_maintenance_event_request_resource\030\334\371\313\247\001" - + " \001(\0132B.google.cloud.compu" - + "te.v1.NodeGroupsSimulateMaintenanceEventRequestB\003\340A\002\022!\n" + + " \001(\0132B.google.cloud.compute.v1" + + ".NodeGroupsSimulateMaintenanceEventRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -29940,9 +29944,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014auto_created\030\330\310\233\335\001 \001(\010H\001\210\001\001\022\032\n\n" + "chain_name\030\311\332\335 \001(\tH\002\210\001\001\022#\n" + "\023creation_size_bytes\030\215\350\345; \001(\003H\003\210\001\001\022\"\n" - + "\022creation_timestamp\030\266\217\307\016 \001(\tH\004\210\001\001\022\034\n" - + "\013description\030\374\207\326\311\001 \001(\t", - "H\005\210\001\001\022\035\n" + + "\022creation_timestamp\030\266\217\307", + "\016 \001(\tH\004\210\001\001\022\034\n" + + "\013description\030\374\207\326\311\001 \001(\tH\005\210\001\001\022\035\n" + "\014disk_size_gb\030\267\232\347\226\001 \001(\003H\006\210\001\001\022\037\n" + "\016download_bytes\030\364\313\271\317\001 \001(\003H\007\210\001\001\022+\n" + "\033enable_confidential_compute\030\274\353\3310 \001(\010H\010\210\001\001\022\034\n" @@ -29954,21 +29958,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004kind\030\224\367\310\001 \001(\tH\013\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\014\210\001\001\022A\n" + "\006labels\030\377\277\301\356\001" - + " \003(\0132-.google.cloud.compute.v1.Snapshot.LabelsEntry\022\030\n" - + "\r" + + " \003(\0132-.google.cloud.compute.v1.Snapshot.LabelsEntry\022\030\n\r" + "license_codes\030\250\205\330\025 \003(\003\022\024\n" + "\010licenses\030\322\210\200\241\001 \003(\t\022\036\n\r" + "location_hint\030\321\201\222\247\001 \001(\tH\r" + "\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\016\210\001\001\022?\n" - + "\006params\030\206\363\253% \001(\0132\'" - + ".google.cloud.compute.v1.SnapshotParamsH\017\210\001\001\022\026\n" + + "\006params\030\206\363\253% \001(\0132\'.goog" + + "le.cloud.compute.v1.SnapshotParamsH\017\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\020\210\001\001\022\036\n\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\021\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\022\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\023\210\001\001\022W\n" - + "\027snapshot_encryption_key\030\376\366\324\024 \001(\0132..g" - + "oogle.cloud.compute.v1.CustomerEncryptionKeyH\024\210\001\001\022!\n" + + "\027snapshot_encryption_key\030\376\366\324\024 \001(\0132..google" + + ".cloud.compute.v1.CustomerEncryptionKeyH\024\210\001\001\022!\n" + "\021snapshot_group_id\030\366\235\314y \001(\tH\025\210\001\001\022#\n" + "\023snapshot_group_name\030\246\343\265u \001(\tH\026\210\001\001\022\035\n\r" + "snapshot_type\030\325\331\245; \001(\tH\027\210\001\001\022\034\n" @@ -30067,26 +30070,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\261\001\n" + "\016SnapshotParams\022c\n" - + "\025resource_manager_tags\030\374\233\213\264\001" - + " \003(\0132@.google.cloud.compute.v1.SnapshotParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132" + + "@.google.cloud.compute.v1.SnapshotParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\372\001\n" + "\020SnapshotSettings\022X\n" - + "\017access_location\030\260\330\343\010 \001(\01327.google.cloud.compu" - + "te.v1.SnapshotSettingsAccessLocationH\000\210\001\001\022c\n" - + "\020storage_location\030\371\321\340\333\001 \001(\0132@.google" - + ".cloud.compute.v1.SnapshotSettingsStorageLocationSettingsH\001\210\001\001B\022\n" + + "\017access_location\030\260\330\343\010" + + " \001(\01327.google.cloud.compute.v1.SnapshotSettingsAccessLocationH\000\210\001\001\022c\n" + + "\020storage_location\030\371\321\340\333\001 \001(\0132@.google.clou" + + "d.compute.v1.SnapshotSettingsStorageLocationSettingsH\001\210\001\001B\022\n" + "\020_access_locationB\023\n" + "\021_storage_location\"\220\003\n" + "\036SnapshotSettingsAccessLocation\022]\n" - + "\tlocations\030\336\256\221\305\001 \003(" - + "\0132F.google.cloud.compute.v1.SnapshotSettingsAccessLocation.LocationsEntry\022\026\n" + + "\tlocations\030\336\256\221\305\001 \003(\0132F.g" + + "oogle.cloud.compute.v1.SnapshotSettingsAccessLocation.LocationsEntry\022\026\n" + "\006policy\030\262\312\266+ \001(\tH\000\210\001\001\032\201\001\n" + "\016LocationsEntry\022\013\n" + "\003key\030\001 \001(\t\022^\n" - + "\005value\030\002 \001(\0132O.google.cloud." - + "compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference:\0028\001\"h\n" + + "\005value\030\002 \001(\0132O.google.cloud.compu" + + "te.v1.SnapshotSettingsAccessLocationAccessLocationPreference:\0028\001\"h\n" + "\006Policy\022\024\n" + "\020UNDEFINED_POLICY\020\000\022\023\n" + "\013ALL_REGIONS\020\241\256\237\202\001\022\031\n" @@ -30097,13 +30100,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tH\000\210\001\001B\t\n" + "\007_region\"\336\003\n" + "\'SnapshotSettingsStorageLocationSettings\022f\n" - + "\tlocations\030\336\256\221\305\001 \003(\0132O.google.clou" - + "d.compute.v1.SnapshotSettingsStorageLocationSettings.LocationsEntry\022\026\n" + + "\tlocations\030\336\256\221\305\001 \003(\0132O.google.cloud.com" + + "pute.v1.SnapshotSettingsStorageLocationSettings.LocationsEntry\022\026\n" + "\006policy\030\262\312\266+ \001(\tH\000\210\001\001\032\213\001\n" + "\016LocationsEntry\022\013\n" + "\003key\030\001 \001(\t\022h\n" - + "\005value\030\002 \001(\0132Y.google.cloud.comput" - + "e.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference:\0028\001\"\231\001\n" + + "\005value\030\002 \001(\0132Y.google.cloud.compute.v1." + + "SnapshotSettingsStorageLocationSettingsStorageLocationPreference:\0028\001\"\231\001\n" + "\006Policy\022\024\n" + "\020UNDEFINED_POLICY\020\000\022\024\n" + "\014LOCAL_REGION\020\350\354\265\300\001\022\033\n" @@ -30118,8 +30121,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014kms_key_name\030\231\353\373\346\001 \001(\tH\000\210\001\001B\017\n\r" + "_kms_key_name\"\265\001\n" + "\027SourceDiskEncryptionKey\022T\n" - + "\023disk_encryption_key\030\205\355\304\201\001 \001(\0132" - + "..google.cloud.compute.v1.CustomerEncryptionKeyH\000\210\001\001\022\034\n" + + "\023disk_encryption_key\030\205\355\304\201\001 \001(\0132..goo" + + "gle.cloud.compute.v1.CustomerEncryptionKeyH\000\210\001\001\022\034\n" + "\013source_disk\030\301\356\264\327\001 \001(\tH\001\210\001\001B\026\n" + "\024_disk_encryption_keyB\016\n" + "\014_source_disk\"a\n" @@ -30132,11 +30135,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022<\n" + "\005disks\030\366\314\312-" + " \003(\0132*.google.cloud.compute.v1.SavedAttachedDisk\022J\n" - + "\022guest_accelerators\030\357\314\207\335\001" - + " \003(\0132*.google.cloud.compute.v1.AcceleratorConfig\022*\n" + + "\022guest_accelerators\030\357\314\207\335\001 \003(\013" + + "2*.google.cloud.compute.v1.AcceleratorConfig\022*\n" + "\032key_revocation_action_type\030\342\334\300p \001(\tH\003\210\001\001\022Q\n" - + "\006labels\030\377\277\301\356\001 \003(\0132=.goog" - + "le.cloud.compute.v1.SourceInstanceProperties.LabelsEntry\022\034\n" + + "\006labels\030\377\277\301\356\001 \003(\0132=.google.cl" + + "oud.compute.v1.SourceInstanceProperties.LabelsEntry\022\034\n" + "\014machine_type\030\262\260\312l \001(\tH\004\210\001\001\022;\n" + "\010metadata\030\257\366\265)" + " \001(\0132!.google.cloud.compute.v1.MetadataH\005\210\001\001\022 \n" @@ -30147,12 +30150,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tH\007\210\001\001\022@\n\n" + "scheduling\030\224\313\261\270\001" + " \001(\0132#.google.cloud.compute.v1.SchedulingH\010\210\001\001\022E\n" - + "\020service_accounts\030\260\304\253\204\001 \003(" - + "\0132\'.google.cloud.compute.v1.ServiceAccount\0223\n" + + "\020service_accounts\030\260\304\253\204\001" + + " \003(\0132\'.google.cloud.compute.v1.ServiceAccount\0223\n" + "\004tags\030\231\350\330\001 \001(\0132\035.google.cloud.compute.v1.TagsH" + "\t\210\001\001\032-\n" + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001\"\215\001\n" + "\027KeyRevocationActionType\022(\n" + "$UNDEFINED_KEY_REVOCATION_ACTION_TYPE\020\000\022.\n" @@ -30181,15 +30185,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013expire_time\030\355\323\221\322\001 \001(\tH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022V\n" - + "\007managed\030\237\237\244\216\001 \001(\0132<.google.cloud.compute.v1" - + ".SslCertificateManagedSslCertificateH\006\210\001\001\022\024\n" + + "\007managed\030\237\237\244\216\001" + + " \001(\0132<.google.cloud.compute.v1.SslCertificateManagedSslCertificateH\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\034\n" + "\013private_key\030\243\363\245\254\001 \001(\tH\010\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\t\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\n" + "\210\001\001\022_\n" - + "\014self_managed\030\254\363\201\235\001 \001(\0132@.google.cloud.compute.v1.Ss" - + "lCertificateSelfManagedSslCertificateH\013\210\001\001\022%\n" + + "\014self_managed\030\254\363\201\235\001" + + " \001(\0132@.google.cloud.compute.v1.SslCertificateSelfManagedSslCertificateH\013\210\001\001\022%\n" + "\031subject_alternative_names\030\343\357\223\374\001 \003(\t\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\014\210\001\001\"[\n" + "\004Type\022\022\n" @@ -30202,7 +30206,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_descriptionB\016\n" + "\014_expire_timeB\005\n" + "\003_idB\007\n" - + "\005_kindB\n\n" + + "\005_kindB\n" + + "\n" + "\010_managedB\007\n" + "\005_nameB\016\n" + "\014_private_keyB\t\n" @@ -30212,8 +30217,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_type\"\313\003\n" + "\034SslCertificateAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022R\n" - + "\005items\030\300\317\367/ \003(\013" - + "2@.google.cloud.compute.v1.SslCertificateAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132@.go" + + "ogle.cloud.compute.v1.SslCertificateAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -30222,8 +30227,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032`\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002 \001(\01322.go" - + "ogle.cloud.compute.v1.SslCertificatesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01322.google." + + "cloud.compute.v1.SslCertificatesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -30244,8 +30249,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\320\003\n" + "#SslCertificateManagedSslCertificate\022i\n\r" - + "domain_status\030\315\247\347\253\001 \003(\0132N.google.cloud.compute.v1.SslCertif" - + "icateManagedSslCertificate.DomainStatusEntry\022\022\n" + + "domain_status\030\315\247\347\253\001 \003(\0132" + + "N.google.cloud.compute.v1.SslCertificate" + + "ManagedSslCertificate.DomainStatusEntry\022\022\n" + "\007domains\030\257\210\233l \003(\t\022\026\n" + "\006status\030\362\237\267V \001(\tH\000\210\001\001\0323\n" + "\021DomainStatusEntry\022\013\n" @@ -30266,16 +30272,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_certificateB\016\n" + "\014_private_key\"\251\001\n" + "\031SslCertificatesScopedList\022E\n" - + "\020ssl_certificates\030\217\242\303\256\001 \003(\013" - + "2\'.google.cloud.compute.v1.SslCertificate\0229\n" + + "\020ssl_certificates\030\217\242\303\256\001" + + " \003(\0132\'.google.cloud.compute.v1.SslCertificate\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\340\003\n" + "\031SslPoliciesAggregatedList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022O\n" - + "\005items\030\300\317\367/ \003(\013" - + "2=.google.cloud.compute.v1.SslPoliciesAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132=.go" + + "ogle.cloud.compute.v1.SslPoliciesAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -30284,8 +30290,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032\\\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002 \001(\0132..googl" - + "e.cloud.compute.v1.SslPoliciesScopedList:\0028\001B\007\n" + + "\005value\030\002 \001(\0132..google.clo" + + "ud.compute.v1.SslPoliciesScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -30308,8 +30314,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(SslPoliciesListAvailableFeaturesResponse\022\023\n" + "\010features\030\275\310\263u \003(\t\"\233\001\n" + "\025SslPoliciesScopedList\022;\n" - + "\014ssl_policies\030\243\344\215d" - + " \003(\0132\".google.cloud.compute.v1.SslPolicy\0229\n" + + "\014ssl_policies\030\243\344\215d \003" + + "(\0132\".google.cloud.compute.v1.SslPolicy\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\274\007\n" @@ -30365,8 +30371,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " StartAsyncReplicationDiskRequest\022\024\n" + "\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022{\n" + ".disks_start_async_replication_request_resource\030\332\236\300\340\001" - + " \001(\0132:.google.cloud.comput" - + "e.v1.DisksStartAsyncReplicationRequestB\003\340A\002\022!\n" + + " \001(\0132:.google.cloud.compute.v1." + + "DisksStartAsyncReplicationRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -30379,8 +30385,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\210\001\n" + "5region_disks_start_async_replication_request_resource\030\205\310\226\342\001" - + " \001(\0132@.google" - + ".cloud.compute.v1.RegionDisksStartAsyncReplicationRequestB\003\340A\002\022\032\n\n" + + " \001(\0132@.google.clou" + + "d.compute.v1.RegionDisksStartAsyncReplicationRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\233\001\n" + "\024StartInstanceRequest\022\030\n" @@ -30394,8 +30400,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ")StartInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\215\001\n" + "8instance_group_managers_start_instances_request_resource\030\253\245\277|" - + " \001(\0132C.google.cloud.compu" - + "te.v1.InstanceGroupManagersStartInstancesRequestB\003\340A\002\022!\n" + + " \001(\0132C.google.cloud.compute.v1" + + ".InstanceGroupManagersStartInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -30408,15 +30414,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\233\001\n" + "?region_instance_group_managers_start_instances_request_resource\030\226\233\377\354\001" - + " \001(\0132I.google.cloud.compute.v1.RegionInstanceG" - + "roupManagersStartInstancesRequestB\003\340A\002\022\032\n\n" + + " \001(\0132I.goog" + + "le.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\265\002\n" + "%StartWithEncryptionKeyInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\206\001\n" + "4instances_start_with_encryption_key_request_resource\030\377\376\317\322\001" - + " \001(\0132?.google.cloud.compute." - + "v1.InstancesStartWithEncryptionKeyRequestB\003\340A\002\022!\n" + + " \001(\0132?.google.cloud.compute.v1.In" + + "stancesStartWithEncryptionKeyRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -30424,28 +30430,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"|\n" + "\016StatefulPolicy\022V\n" - + "\017preserved_state\030\252\342\240\001 \001(\0132" - + "5.google.cloud.compute.v1.StatefulPolicyPreservedStateH\000\210\001\001B\022\n" + + "\017preserved_state\030\252\342\240\001 \001(\01325.goo" + + "gle.cloud.compute.v1.StatefulPolicyPreservedStateH\000\210\001\001B\022\n" + "\020_preserved_state\"\216\005\n" + "\034StatefulPolicyPreservedState\022R\n" + "\005disks\030\366\314\312-" + " \003(\0132@.google.cloud.compute.v1.StatefulPolicyPreservedState.DisksEntry\022a\n\r" - + "external_i_ps\030\215\323\200\376\001 \003(\0132F.google.cloud.c" - + "ompute.v1.StatefulPolicyPreservedState.ExternalIPsEntry\022`\n\r" - + "internal_i_ps\030\333\233\357f \003(" - + "\0132F.google.cloud.compute.v1.StatefulPolicyPreservedState.InternalIPsEntry\032m\n\n" + + "external_i_ps\030\215\323\200\376\001 \003(\0132F.google.cloud.comput" + + "e.v1.StatefulPolicyPreservedState.ExternalIPsEntry\022`\n\r" + + "internal_i_ps\030\333\233\357f \003(\0132F.g" + + "oogle.cloud.compute.v1.StatefulPolicyPreservedState.InternalIPsEntry\032m\n\n" + "DisksEntry\022\013\n" + "\003key\030\001 \001(\t\022N\n" - + "\005value\030\002 \001(\0132?.go" - + "ogle.cloud.compute.v1.StatefulPolicyPreservedStateDiskDevice:\0028\001\032r\n" + + "\005value\030\002 \001(\0132?.google." + + "cloud.compute.v1.StatefulPolicyPreservedStateDiskDevice:\0028\001\032r\n" + "\020ExternalIPsEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(\0132>.googl" - + "e.cloud.compute.v1.StatefulPolicyPreservedStateNetworkIp:\0028\001\032r\n" + + "\005value\030\002 \001(\0132>.google.clo" + + "ud.compute.v1.StatefulPolicyPreservedStateNetworkIp:\0028\001\032r\n" + "\020InternalIPsEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(\0132>.google.cl" - + "oud.compute.v1.StatefulPolicyPreservedStateNetworkIp:\0028\001\"\264\001\n" + + "\005value\030\002 \001(\0132>.google.cloud.c" + + "ompute.v1.StatefulPolicyPreservedStateNetworkIp:\0028\001\"\264\001\n" + "&StatefulPolicyPreservedStateDiskDevice\022\034\n" + "\013auto_delete\030\273\344\316\335\001 \001(\tH\000\210\001\001\"\\\n\n" + "AutoDelete\022\031\n" @@ -30483,8 +30489,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\232\002\n" + "$StopGroupAsyncReplicationDiskRequest\022\206\001\n" + "4disks_stop_group_async_replication_resource_resource\030\225\370\257\245\001" - + " \001(\0132?.google" - + ".cloud.compute.v1.DisksStopGroupAsyncReplicationResourceB\003\340A\002\022!\n" + + " \001(\0132?.google.clou" + + "d.compute.v1.DisksStopGroupAsyncReplicationResourceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -30492,8 +30498,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\244\002\n" + "*StopGroupAsyncReplicationRegionDiskRequest\022\206\001\n" - + "4disks_stop_group_async_replication_resource_resource\030\225\370\257\245\001 \001" - + "(\0132?.google.cloud.compute.v1.DisksStopGroupAsyncReplicationResourceB\003\340A\002\022!\n" + + "4disks_stop_group_async_replication_resource_resource\030\225\370\257\245\001" + + " \001(\0132?." + + "google.cloud.compute.v1.DisksStopGroupAsyncReplicationResourceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -30514,8 +30521,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(StopInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\213\001\n" + "7instance_group_managers_stop_instances_request_resource\030\215\245\364\021" - + " \001(\0132B.google.cloud.compute." - + "v1.InstanceGroupManagersStopInstancesRequestB\003\340A\002\022%\n" + + " \001(\0132B.google.cloud.compute.v1.In" + + "stanceGroupManagersStopInstancesRequestB\003\340A\002\022%\n" + "\024no_graceful_shutdown\030\222\267\253\240\001 \001(\010H\000\210\001\001\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" @@ -30530,41 +30537,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\231\001\n" - + ">region_instance_g" - + "roup_managers_stop_instances_request_resource\030\302\234\362\200\001" - + " \001(\0132H.google.cloud.compute.v" - + "1.RegionInstanceGroupManagersStopInstancesRequestB\003\340A\002\022\032\n\n" + + ">region_instance_group_" + + "managers_stop_instances_request_resource\030\302\234\362\200\001" + + " \001(\0132H.google.cloud.compute.v1.Reg" + + "ionInstanceGroupManagersStopInstancesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001B\027\n" + "\025_no_graceful_shutdownB\r\n" - + "\013_request_id\"\322\r\n" + + "\013_request_id\"\322\r" + + "\n" + "\013StoragePool\022*\n" + "\032capacity_provisioning_type\030\207\212\375w \001(\tH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022r\n" - + "\037exapool_provisioned_capacity_gb\030\340\341\313\244\001" - + " \001(\0132@.google.cloud.compute.v1.", - "StoragePoolExapoolProvisionedCapacityGbH\003\210\001\001\022\020\n" + + "\037exapool_provisioned_capacity_gb\030\340", + "\341\313\244\001 \001(\0132@.google.cloud.compute.v1.Stora" + + "gePoolExapoolProvisionedCapacityGbH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\006\210\001\001\022D\n" + "\006labels\030\377\277\301\356\001" + " \003(\01320.google.cloud.compute.v1.StoragePool.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022B\n" - + "\006params\030\206\363\253% \001(\0132*.google." - + "cloud.compute.v1.StoragePoolParamsH\010\210\001\001\022.\n" + + "\006params\030\206\363\253%" + + " \001(\0132*.google.cloud.compute.v1.StoragePoolParamsH\010\210\001\001\022.\n" + "\035performance_provisioning_type\030\375\235\266\337\001 \001(\tH" + "\t\210\001\001\022-\n" + "\034pool_provisioned_capacity_gb\030\322\317\227\344\001 \001(\003H\n" + "\210\001\001\022%\n" + "\025pool_provisioned_iops\030\227\311\2715 \001(\003H\013\210\001\001\022+\n" + "\033pool_provisioned_throughput\030\230\215\330P \001(\003H\014\210\001\001\022S\n" - + "\017resource_status\030\303\372\367v" - + " \001(\01322.google.cloud.compute.v1.StoragePoolResourceStatusH\r" + + "\017resource_status\030\303\372\367v \001(" + + "\01322.google.cloud.compute.v1.StoragePoolResourceStatusH\r" + "\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\016\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\017\210\001\001\022Q\n" - + "\016share_settings\030\203\221\224\177 \001(\01321.goog" - + "le.cloud.compute.v1.StoragePoolShareSettingsH\020\210\001\001\022\025\n" + + "\016share_settings\030\203\221\224\177 \001(\01321.google.cl" + + "oud.compute.v1.StoragePoolShareSettingsH\020\210\001\001\022\025\n" + "\005state\030\221\211\2534 \001(\tH\021\210\001\001\022J\n" + "\006status\030\362\237\267V" + " \001(\01322.google.cloud.compute.v1.StoragePoolResourceStatusH\022\210\001\001\022\"\n" @@ -30607,8 +30615,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031StoragePoolAggregatedList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022O\n" - + "\005items\030\300\317\367/ \003(\0132" - + "=.google.cloud.compute.v1.StoragePoolAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132=.goo" + + "gle.cloud.compute.v1.StoragePoolAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -30617,8 +30625,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032]\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022>\n" - + "\005value\030\002 \001(\0132/.google" - + ".cloud.compute.v1.StoragePoolsScopedList:\0028\001B\007\n" + + "\005value\030\002 \001(\0132/.google.clou" + + "d.compute.v1.StoragePoolsScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -30697,8 +30705,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\267\001\n" + "\021StoragePoolParams\022f\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132C.google.c" - + "loud.compute.v1.StoragePoolParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132C.google.cloud." + + "compute.v1.StoragePoolParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\220\010\n" @@ -30739,20 +30747,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034_total_provisioned_disk_iopsB$\n" + "\"_total_provisioned_disk_throughput\"\350\001\n" + "\030StoragePoolShareSettings\022Y\n" - + "\013project_map\030\266\326\377? \003(\0132A.google.cloud.compute.v1" - + ".StoragePoolShareSettings.ProjectMapEntry\032q\n" + + "\013project_map\030\266\326\377?" + + " \003(\0132A.google.cloud.compute.v1.StoragePoolShareSettings.ProjectMapEntry\032q\n" + "\017ProjectMapEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002" - + " \001(\0132>.google.cloud.compute.v1.StoragePoolShareSettingsProjectConfig:\0028\001\"R\n" - + "%StoragePoolShareSettingsProjectConfig\022\032\n" - + "\n" + + "\005value\030\002 " + + "\001(\0132>.google.cloud.compute.v1.StoragePoolShareSettingsProjectConfig:\0028\001\"R\n" + + "%StoragePoolShareSettingsProjectConfig\022\032\n\n" + "project_id\030\201\310\322T \001(\tH\000\210\001\001B\r\n" + "\013_project_id\"\347\007\n" + "\017StoragePoolType\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022G\n\n" - + "deprecated\030\263\313\321\365\001 \001(\013" - + "2*.google.cloud.compute.v1.DeprecationStatusH\001\210\001\001\022\034\n" + + "deprecated\030\263\313\321\365\001 \001(\0132*.go" + + "ogle.cloud.compute.v1.DeprecationStatusH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\0220\n" @@ -30783,15 +30790,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032_min_pool_provisioned_iopsB\"\n" + " _min_pool_provisioned_throughputB\016\n" + "\014_min_size_gbB\007\n" - + "\005_nameB\014\n" - + "\n" + + "\005_nameB\014\n\n" + "_self_linkB\024\n" + "\022_self_link_with_idB\007\n" + "\005_zone\"\265\003\n" + "\035StoragePoolTypeAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022S\n" - + "\005items\030\300\317\367/ \003(\0132A.googl" - + "e.cloud.compute.v1.StoragePoolTypeAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132A.google.clo" + + "ud.compute.v1.StoragePoolTypeAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -30799,8 +30805,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 " - + "\001(\01323.google.cloud.compute.v1.StoragePoolTypesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01323" + + ".google.cloud.compute.v1.StoragePoolTypesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -30817,7 +30823,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n\n" + + "\020_next_page_tokenB\014\n" + + "\n" + "_self_linkB\n\n" + "\010_warning\"\255\001\n" + "\032StoragePoolTypesScopedList\022H\n" @@ -30870,8 +30877,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005state\030\221\211\2534 \001(\tH\034\210\001\001\022/\n" + "$system_reserved_external_ipv6_ranges\030\341\210\223\037 \003(\t\0220\n" + "$system_reserved_internal_ipv6_ranges\030\323\230\221\316\001 \003(\t\022Z\n" - + "\023utilization_details\030\245\212\346; \001(" - + "\01325.google.cloud.compute.v1.SubnetworkUtilizationDetailsH\035\210\001\001\"S\n" + + "\023utilization_details\030\245\212\346; \001(\01325.g" + + "oogle.cloud.compute.v1.SubnetworkUtilizationDetailsH\035\210\001\001\"S\n" + "\016Ipv6AccessType\022\036\n" + "\032UNDEFINED_IPV6_ACCESS_TYPE\020\000\022\017\n" + "\010EXTERNAL\020\313\247\375\020\022\020\n" @@ -30948,8 +30955,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024_utilization_details\"\277\003\n" + "\030SubnetworkAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022N\n" - + "\005items\030\300\317\367/ \003(\0132<.google.cloud.co" - + "mpute.v1.SubnetworkAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132<.google.cloud.compute" + + ".v1.SubnetworkAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -30975,8 +30982,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n" - + "\n" + + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\335\004\n" + "\023SubnetworkLogConfig\022$\n" @@ -31005,8 +31011,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_flow_samplingB\013\n" + "\t_metadata\"\265\001\n" + "\020SubnetworkParams\022e\n" - + "\025resource_manager_tags\030\374\233\213\264\001" - + " \003(\0132B.google.cloud.compute.v1.SubnetworkParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003" + + "(\0132B.google.cloud.compute.v1.SubnetworkParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\372\002\n" @@ -31027,14 +31033,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_range_nameB\032\n" + "\030_reserved_internal_range\"\310\004\n" + "\034SubnetworkUtilizationDetails\022y\n" - + "\"external_ipv6_instance_utilization\030\334\302\223\310\001 \001(\0132D." - + "google.cloud.compute.v1.SubnetworkUtilizationDetailsIPV6UtilizationH\000\210\001\001\022r\n" - + "\034external_ipv6_lb_utilization\030\275\227\217A \001(\0132D.goog" - + "le.cloud.compute.v1.SubnetworkUtilizationDetailsIPV6UtilizationH\001\210\001\001\022o\n" - + "\031internal_ipv6_utilization\030\214\312\236! \001(\0132D.google.clou" - + "d.compute.v1.SubnetworkUtilizationDetailsIPV6UtilizationH\002\210\001\001\022b\n" - + "\021ipv4_utilizations\030\253\235\250b \003(\0132D.google.cloud.compute.v1.Su" - + "bnetworkUtilizationDetailsIPV4UtilizationB%\n" + + "\"external_ipv6_instance_utilization\030\334\302\223\310\001 \001(\0132D.googl" + + "e.cloud.compute.v1.SubnetworkUtilizationDetailsIPV6UtilizationH\000\210\001\001\022r\n" + + "\034external_ipv6_lb_utilization\030\275\227\217A \001(\0132D.google.cl" + + "oud.compute.v1.SubnetworkUtilizationDetailsIPV6UtilizationH\001\210\001\001\022o\n" + + "\031internal_ipv6_utilization\030\214\312\236! \001(\0132D.google.cloud.com" + + "pute.v1.SubnetworkUtilizationDetailsIPV6UtilizationH\002\210\001\001\022b\n" + + "\021ipv4_utilizations\030\253\235\250b" + + " \003(\0132D.google.cloud.compute.v1.SubnetworkUtilizationDetailsIPV4UtilizationB%\n" + "#_external_ipv6_instance_utilizationB\037\n" + "\035_external_ipv6_lb_utilizationB\034\n" + "\032_internal_ipv6_utilization\"\306\001\n" @@ -31090,8 +31096,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "+SuspendInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\221\001\n" + ":instance_group_managers_suspend_instances_request_resource\030\321\215\241\026" - + " \001(\0132E.google.cloud" - + ".compute.v1.InstanceGroupManagersSuspendInstancesRequestB\003\340A\002\022!\n" + + " \001(\0132E.google.cloud.comp" + + "ute.v1.InstanceGroupManagersSuspendInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -31104,8 +31110,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\236\001\n" + "Aregion_instance_group_managers_suspend_instances_request_resource\030\374\345\224f" - + " \001(\0132K.google.cloud.compute.v1.Regi" - + "onInstanceGroupManagersSuspendInstancesRequestB\003\340A\002\022\032\n\n" + + " \001(\0132K.google.cloud.compute.v1.RegionIns" + + "tanceGroupManagersSuspendInstancesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\211\001\n" + " SwitchToCustomModeNetworkRequest\022\027\n" @@ -31170,11 +31176,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + + " .google.cloud.compute.v1.WarningH\004\210\001\001", + "B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_toke", - "nB\014\n\n" + + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\256\001\n" + "\033TargetHttpProxiesScopedList\022H\n" @@ -31210,16 +31216,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_url_map\"\210\003\n" + "\035TargetHttpProxyAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022S\n" - + "\005items\030\300\317\367/" - + " \003(\0132A.google.cloud.compute.v1.TargetHttpProxyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ " + + "\003(\0132A.google.cloud.compute.v1.TargetHttpProxyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\032b\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022C\n" - + "\005value\030\002 \001(\01324.google.cloud" - + ".compute.v1.TargetHttpProxiesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01324.google.cloud.comp" + + "ute.v1.TargetHttpProxiesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -31309,8 +31315,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_url_map\"\322\003\n" + "\036TargetHttpsProxyAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022T\n" - + "\005items\030\300\317\367/ \003(\0132B.google.cl" - + "oud.compute.v1.TargetHttpsProxyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132B.google.cloud.c" + + "ompute.v1.TargetHttpsProxyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -31319,8 +31325,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032c\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022D\n" - + "\005value\030\002 \001(\01325.google.cloud" - + ".compute.v1.TargetHttpsProxiesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01325.google.cloud.comp" + + "ute.v1.TargetHttpsProxiesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -31328,8 +31334,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\261\002\n" + "\024TargetHttpsProxyList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022;\n" - + "\005items\030\300\317\367/" - + " \003(\0132).google.cloud.compute.v1.TargetHttpsProxy\022\024\n" + + "\005items\030\300\317\367/ \003" + + "(\0132).google.cloud.compute.v1.TargetHttpsProxy\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -31354,7 +31360,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004zone\030\254\307\344\001 \001(\tH\n" + "\210\001\001\"4\n" + "\tNatPolicy\022\030\n" - + "\024UNDEFINED_NAT_POLICY\020\000\022\r\n" + + "\024UNDEFINED_NAT_POLICY\020\000\022\r" + + "\n" + "\006NO_NAT\020\203\273\376LB\025\n" + "\023_creation_timestampB\016\n" + "\014_descriptionB\005\n" @@ -31369,8 +31376,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\313\003\n" + "\034TargetInstanceAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022R\n" - + "\005items\030\300\317\367/ \003(\0132@.goo" - + "gle.cloud.compute.v1.TargetInstanceAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132@.google.c" + + "loud.compute.v1.TargetInstanceAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -31379,8 +31386,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032`\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002 \001(\01322.google.c" - + "loud.compute.v1.TargetInstancesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01322.google.cloud." + + "compute.v1.TargetInstancesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -31388,8 +31395,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\255\002\n" + "\022TargetInstanceList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0229\n" - + "\005items\030\300\317\367/" - + " \003(\0132\'.google.cloud.compute.v1.TargetInstance\022\024\n" + + "\005items\030\300\317\367/ \003(" + + "\0132\'.google.cloud.compute.v1.TargetInstance\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -31446,8 +31453,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021_session_affinity\"\277\003\n" + "\030TargetPoolAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022N\n" - + "\005items\030\300\317\367/ \003(\0132<.google.cloud.compute." - + "v1.TargetPoolAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132<.google.cloud.compute.v1.TargetPoolAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -31456,8 +31463,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032\\\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002" - + " \001(\0132..google.cloud.compute.v1.TargetPoolsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001" + + "(\0132..google.cloud.compute.v1.TargetPoolsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -31482,8 +31489,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"l\n" + " TargetPoolsAddHealthCheckRequest\022H\n\r" - + "health_checks\030\256\257\346\325\001" - + " \003(\0132-.google.cloud.compute.v1.HealthCheckReference\"a\n" + + "health_checks\030\256\257\346\325\001 \003(\013" + + "2-.google.cloud.compute.v1.HealthCheckReference\"a\n" + "\035TargetPoolsAddInstanceRequest\022@\n" + "\tinstances\030\376\374\357\r" + " \003(\0132*.google.cloud.compute.v1.InstanceReference\"o\n" @@ -31571,7 +31578,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013ProxyHeader\022\032\n" + "\026UNDEFINED_PROXY_HEADER\020\000\022\013\n" + "\004NONE\020\270\316\222\001\022\020\n" - + "\010PROXY_V1\020\254\244\267\237\001B\017\n\r" + + "\010PROXY_V1\020\254\244\267\237\001B\017\n" + + "\r" + "_proxy_header\"\326\005\n" + "\016TargetTcpProxy\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" @@ -31604,13 +31612,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_nameB\r\n" + "\013_proxy_bindB\017\n\r" + "_proxy_headerB\t\n" - + "\007_regionB\014\n\n" + + "\007_regionB\014\n" + + "\n" + "_self_linkB\n\n" + "\010_service\"\314\003\n" + "\034TargetTcpProxyAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022R\n" - + "\005items\030\300\317\367/ \003(\0132@.google.cloud.compute" - + ".v1.TargetTcpProxyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132@.google.cloud.compute.v1.T" + + "argetTcpProxyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -31647,12 +31656,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\002\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\004\210\001\001\022I\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\01325.google.cloud.compute.v1.TargetVpnGateway.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001 \003" + + "(\01325.google.cloud.compute.v1.TargetVpnGateway.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\027\n" + "\007network\030\256\264\205o \001(\tH\006\210\001\001\022G\n" - + "\006params\030\206\363\253%" - + " \001(\0132/.google.cloud.compute.v1.TargetVpnGatewayParamsH\007\210\001\001\022\026\n" + + "\006params\030\206\363\253% " + + "\001(\0132/.google.cloud.compute.v1.TargetVpnGatewayParamsH\007\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\010\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\n" @@ -31680,8 +31689,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_status\"\321\003\n" + "\036TargetVpnGatewayAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022T\n" - + "\005items\030\300\317\367/ \003(\0132" - + "B.google.cloud.compute.v1.TargetVpnGatewayAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132B.goo" + + "gle.cloud.compute.v1.TargetVpnGatewayAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -31690,8 +31699,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032b\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022C\n" - + "\005value\030\002 \001(\01324.g" - + "oogle.cloud.compute.v1.TargetVpnGatewaysScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01324.google" + + ".cloud.compute.v1.TargetVpnGatewaysScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -31712,15 +31721,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\301\001\n" + "\026TargetVpnGatewayParams\022k\n" - + "\025resource_manager_tags\030\374\233\213\264\001" - + " \003(\0132H.google.cloud.compute.v1.TargetV" - + "pnGatewayParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(" + + "\0132H.google.cloud.compute.v1.TargetVpnGatewayParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\260\001\n" + "\033TargetVpnGatewaysScopedList\022J\n" - + "\023target_vpn_gateways\030\210\223\312\277\001" - + " \003(\0132).google.cloud.compute.v1.TargetVpnGateway\0229\n" + + "\023target_vpn_gateways\030\210\223\312\277\001 \003(\013" + + "2).google.cloud.compute.v1.TargetVpnGateway\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\223\004\n" @@ -31754,8 +31762,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#TestIamPermissionsAutoscalerRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132" + + "/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\300\001\n" + "&TestIamPermissionsBackendBucketRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" @@ -31770,23 +31778,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035TestIamPermissionsDiskRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 " - + "\001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/" + + ".google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\305\001\n" + "+TestIamPermissionsExternalVpnGatewayRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud" - + ".compute.v1.TestPermissionsRequestB\003\340A\002\"\250\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\250\001\n" + "\'TestIamPermissionsFirewallPolicyRequest\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.g" - + "oogle.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\273\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google" + + ".cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\273\001\n" + "!TestIamPermissionsFirewallRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.clou" - + "d.compute.v1.TestPermissionsRequestB\003\340A\002\"\300\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\300\001\n" + "&TestIamPermissionsGlobalAddressRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" @@ -31800,31 +31808,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036TestIamPermissionsImageRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(" - + "\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\326\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.g" + + "oogle.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\326\001\n" + "&TestIamPermissionsInstanceGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.g" - + "oogle.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google" + + ".cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\321\001\n" + "!TestIamPermissionsInstanceRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 " + + "\001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\303\001\n" + ")TestIamPermissionsInstanceTemplateRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cl" - + "oud.compute.v1.TestPermissionsRequestB\003\340A\002\"\335\001\n" - + "-TestIamPermissionsInstantSnapshot", - "GroupRequest\022\027\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.c" + + "ompute.v1.TestPermissionsRequestB\003\340A\002\"\335\001", + "\n" + + "-TestIamPermissionsInstantSnapshotGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google." - + "cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud" + + ".compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\330\001\n" + "(TestIamPermissionsInstantSnapshotRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" @@ -31835,18 +31843,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "4TestIamPermissionsInterconnectAttachmentGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\013" - + "2/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\304\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.go" + + "ogle.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\304\001\n" + "*TestIamPermissionsInterconnectGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132" - + "/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\276\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.goo" + + "gle.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\276\001\n" + "$TestIamPermissionsLicenseCodeRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.googl" - + "e.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\272\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.clo" + + "ud.compute.v1.TestPermissionsRequestB\003\340A\002\"\272\001\n" + " TestIamPermissionsLicenseRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" @@ -31861,19 +31869,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/" - + ".google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\335\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.goog" + + "le.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\335\001\n" + "-TestIamPermissionsNetworkEndpointGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\013" - + "2/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.go" + + "ogle.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\310\001\n" + ".TestIamPermissionsNetworkFirewallPolicyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud" - + ".compute.v1.TestPermissionsRequestB\003\340A\002\"\322\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\322\001\n" + "\"TestIamPermissionsNodeGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" @@ -31890,8 +31898,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/." - + "google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\333\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.googl" + + "e.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\333\001\n" + ")TestIamPermissionsRegionAutoscalerRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" @@ -31902,14 +31910,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\337\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132" + + "/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\337\001\n" + "-TestIamPermissionsRegionBackendServiceRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google." - + "cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\345\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud" + + ".compute.v1.TestPermissionsRequestB\003\340A\002\"\345\001\n" + "3TestIamPermissionsRegionCompositeHealthCheckRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" @@ -31920,14 +31928,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/" - + ".google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\350\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.goog" + + "le.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\350\001\n" + "6TestIamPermissionsRegionHealthAggregationPolicyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.goog" - + "le.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\334\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cl" + + "oud.compute.v1.TestPermissionsRequestB\003\340A\002\"\334\001\n" + "*TestIamPermissionsRegionHealthCheckRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" @@ -31938,14 +31946,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\335\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(" + + "\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\335\001\n" + "+TestIamPermissionsRegionHealthSourceRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google." - + "cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\336\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud" + + ".compute.v1.TestPermissionsRequestB\003\340A\002\"\336\001\n" + ",TestIamPermissionsRegionInstanceGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" @@ -31956,20 +31964,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\340\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001" + + "(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\340\001\n" + ".TestIamPermissionsRegionInstantSnapshotRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.goo" - + "gle.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\346\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.c" + + "loud.compute.v1.TestPermissionsRequestB\003\340A\002\"\346\001\n" + "4TestIamPermissionsRegionNetworkFirewallPolicyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.clo" - + "ud.compute.v1.TestPermissionsRequestB\003\340A\002\"\345\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\345\001\n" + "3TestIamPermissionsRegionNotificationEndpointRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" @@ -31980,20 +31988,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132" - + "/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\372\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.goo" + + "gle.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\372\001\n" + ")TestIamPermissionsReservationBlockRequest\022\037\n" + "\017parent_resource\030\203\230\320\010 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google." - + "cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud" + + ".compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\324\001\n" + "$TestIamPermissionsReservationRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\013" + + "2/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\375\001\n" + ",TestIamPermissionsReservationSubBlockRequest\022\037\n" + "\017parent_resource\030\203\230\320\010 \001(\tB\003\340A\002\022\027\n" @@ -32006,8 +32014,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.c" - + "ompute.v1.TestPermissionsRequestB\003\340A\002\"\270\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\270\001\n" + "\036TestIamPermissionsRouteRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" @@ -32017,13 +32025,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.goog" - + "le.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\273\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cl" + + "oud.compute.v1.TestPermissionsRequestB\003\340A\002\"\273\001\n" + "!TestIamPermissionsSnapshotRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.c" - + "ompute.v1.TestPermissionsRequestB\003\340A\002\"\324\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\324\001\n" + "$TestIamPermissionsStoragePoolRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" @@ -32046,29 +32054,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\301\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 " + + "\001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\301\001\n" + "\'TestIamPermissionsTargetSslProxyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\301\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132" + + "/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\301\001\n" + "\'TestIamPermissionsTargetTcpProxyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\013" - + "2/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\271\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.go" + + "ogle.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\271\001\n" + "\037TestIamPermissionsUrlMapRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cl" - + "oud.compute.v1.TestPermissionsRequestB\003\340A\002\"\325\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.c" + + "ompute.v1.TestPermissionsRequestB\003\340A\002\"\325\001\n" + "#TestIamPermissionsVpnGatewayRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"0\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132" + + "/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"0\n" + "\026TestPermissionsRequest\022\026\n" + "\013permissions\030\204\351\313\034 \003(\t\"1\n" + "\027TestPermissionsResponse\022\026\n" @@ -32135,16 +32143,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\"\n" + "\021network_interface\030\350\300\235\256\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n" - + "\n" + + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\372\001\n" + "\027UpdateAutoscalerRequest\022\033\n\n" + "autoscaler\030\327\375\322\366\001 \001(\tH\000\210\001\001\022H\n" - + "\023autoscaler_resource\030\366\360\377b \001(\0132#" - + ".google.cloud.compute.v1.AutoscalerB\003\340A\002\022!\n" + + "\023autoscaler_resource\030\366\360\377b" + + " \001(\0132#.google.cloud.compute.v1.AutoscalerB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n" @@ -32166,13 +32173,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\'.google.cloud.compute.v1.BackendServiceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" - + "\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\241\002\n" + "\021UpdateDiskRequest\022\024\n" + "\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022<\n\r" - + "disk_resource\030\360\320\253\014 " - + "\001(\0132\035.google.cloud.compute.v1.DiskB\003\340A\002\022\025\n" + + "disk_resource\030\360\320\253\014" + + " \001(\0132\035.google.cloud.compute.v1.DiskB\003\340A\002\022\025\n" + "\005paths\030\356\301\3402 \001(\tH\000\210\001\001\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" @@ -32195,29 +32201,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\306\001\n" + "\025UpdateFirewallRequest\022\031\n" + "\010firewall\030\200\372\325\363\001 \001(\tB\003\340A\002\022D\n" - + "\021firewall_resource\030\355\260\340\023 \001" - + "(\0132!.google.cloud.compute.v1.FirewallB\003\340A\002\022!\n" + + "\021firewall_resource\030\355\260\340\023" + + " \001(\0132!.google.cloud.compute.v1.FirewallB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n" - + "\n" + + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\267\002\n" + "\036UpdateFutureReservationRequest\022\"\n" + "\022future_reservation\030\320\306\346\032 \001(\tB\003\340A\002\022X\n" - + "\033future_reservation_resource\030\235\230\310\336\001 \001(\0132*.googl" - + "e.cloud.compute.v1.FutureReservationB\003\340A\002\022!\n" + + "\033future_reservation_resource\030\235\230\310\336\001" + + " \001(\0132*.google.cloud.compute.v1.FutureReservationB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" - + "\340A\002\362G\004zoneB\r\n" + + "\340A\002\362G\004zoneB\r" + + "\n" + "\013_request_idB\016\n" + "\014_update_mask\"\207\002\n" + "$UpdateGlobalVmExtensionPolicyRequest\022*\n" + "\032global_vm_extension_policy\030\236\326\374\003 \001(\tB\003\340A\002\022e\n" - + "#global_vm_extension_policy_resource\030\217\330\2650" - + " \001(\01320.google.cloud.compute.v1.GlobalVmExtensionPolicyB\003\340A\002\022!\n" + + "#global_vm_extension_policy_resource\030\217\330\2650 \001" + + "(\01320.google.cloud.compute.v1.GlobalVmExtensionPolicyB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -32252,8 +32258,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\202\002\n" + "\027UpdateKmsKeyDiskRequest\022\024\n" + "\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022f\n" - + "$disk_update_kms_key_request_resource\030\340\353\361T \001(\013" - + "20.google.cloud.compute.v1.DiskUpdateKmsKeyRequestB\003\340A\002\022!\n" + + "$disk_update_kms_key_request_resource\030\340\353\361T \001(\01320.go" + + "ogle.cloud.compute.v1.DiskUpdateKmsKeyRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -32266,8 +32272,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022s\n" + "+region_disk_update_kms_key_request_resource\030\313\250\343\004" - + " \001(\01326.google.cloud.co" - + "mpute.v1.RegionDiskUpdateKmsKeyRequestB\003\340A\002\022\032\n\n" + + " \001(\01326.google.cloud.compute" + + ".v1.RegionDiskUpdateKmsKeyRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\253\002\n" + "!UpdateKmsKeyRegionSnapshotRequest\022!\n" @@ -32275,8 +32281,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022|\n" + "/region_snapshot_update_kms_key_request_resource\030\362\245\234\205\001" - + " \001(\0132:.google.cloud.compute.v1." - + "RegionSnapshotUpdateKmsKeyRequestB\003\340A\002\022\032\n\n" + + " \001(\0132:.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\031\n" + "\010snapshot\030\304\253\353\207\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\366\001\n" @@ -32285,8 +32290,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\031\n" + "\010snapshot\030\304\253\353\207\001 \001(\tB\003\340A\002\022n\n" - + "(snapshot_update_kms_key_request_resource\030\207\304\2271 " - + "\001(\01324.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequestB\003\340A\002B\r\n" + + "(snapshot_update_kms_key_request_resource\030\207\304\2271 \001(\01324" + + ".google.cloud.compute.v1.SnapshotUpdateKmsKeyRequestB\003\340A\002B\r\n" + "\013_request_id\"\360\001\n" + "\024UpdateLicenseRequest\022\027\n" + "\007license\030\301\210\302O \001(\tB\003\340A\002\022C\n" @@ -32316,22 +32321,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" - + "\340A\002\362G\004zoneB\r\n" + + "\340A\002\362G\004zoneB\r" + + "\n" + "\013_request_id\"\365\001\n" + "\033UpdatePeeringNetworkRequest\022\027\n" + "\007network\030\256\264\205o \001(\tB\003\340A\002\022o\n" - + "(networks_update_peering_request_resource\030\331\252\202k" - + " \001(\01325.google.cloud.compute.v1.NetworksUpdatePeeringRequestB\003\340A\002\022!\n" + + "(networks_update_peering_request_resource\030\331\252\202k " + + "\001(\01325.google.cloud.compute.v1.NetworksUpdatePeeringRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "request_id\030\313\201\331\021 \001(", + "\tH\000\210\001\001B\r\n" + "\013_request_id\"\346\002\n" - + "3UpdatePer", - "InstanceConfigsInstanceGroupManagerRequest\022&\n" + + "3UpdatePerInstanceConfigsInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\233\001\n" + "@instance_group_managers_update_per_instance_configs_req_resource\030\276\301\266C" - + " \001(\0132I.google.cloud.compute.v1.InstanceGroup" - + "ManagersUpdatePerInstanceConfigsReqB\003\340A\002\022!\n" + + " \001(\0132I.go" + + "ogle.cloud.compute.v1.InstanceGroupManagersUpdatePerInstanceConfigsReqB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -32344,9 +32350,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n" + "Aregion_instance_group_manager_update_instance_config_req_resource\030\247\256\272*" - + " \001(\0132J.g" - + "oogle.cloud.compute.v1.RegionInstanceGroupManagerUpdateInstanceConfigReqB\003\340A\002\022\032\n" - + "\n" + + " \001(\0132J.google" + + ".cloud.compute.v1.RegionInstanceGroupManagerUpdateInstanceConfigReqB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\340\001\n" + "\033UpdatePreviewFeatureRequest\022 \n" @@ -32359,8 +32364,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\204\002\n" + "\035UpdateRegionAutoscalerRequest\022\033\n\n" + "autoscaler\030\327\375\322\366\001 \001(\tH\000\210\001\001\022H\n" - + "\023autoscaler_resource\030\366\360\377b \001" - + "(\0132#.google.cloud.compute.v1.AutoscalerB\003\340A\002\022!\n" + + "\023autoscaler_resource\030\366\360\377b \001(\0132#." + + "google.cloud.compute.v1.AutoscalerB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -32369,8 +32374,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\210\002\n" + "!UpdateRegionBackendServiceRequest\022 \n" + "\017backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022R\n" - + "\030backend_service_resource\030\243\201\337\245\001 \001(\013" - + "2\'.google.cloud.compute.v1.BackendServiceB\003\340A\002\022!\n" + + "\030backend_service_resource\030\243\201\337\245\001 \001(\0132\'.go" + + "ogle.cloud.compute.v1.BackendServiceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -32404,12 +32409,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_update_mask\"\373\001\n" + "\036UpdateRegionHealthCheckRequest\022\035\n" + "\014health_check\030\345\252\244\223\001 \001(\tB\003\340A\002\022K\n" - + "\025health_check_resource\030\250\303\244`" - + " \001(\0132$.google.cloud.compute.v1.HealthCheckB\003\340A\002\022!\n" + + "\025health_check_resource\030\250\303\244` \001(" + + "\0132$.google.cloud.compute.v1.HealthCheckB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" - + "\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\347\001\n" + "\031UpdateRegionUrlMapRequest\022!\n" @@ -32440,8 +32444,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022!\n" + "\020reservation_slot\030\221\275\247\204\001 \001(\tB\003\340A\002\022T\n" - + "\031reservation_slot_resource\030\374\323\347\302\001" - + " \001(\0132(.google.cloud.compute.v1.ReservationSlotB\003\340A\002\022\034\n" + + "\031reservation_slot_resource\030\374\323\347\302\001 \001" + + "(\0132(.google.cloud.compute.v1.ReservationSlotB\003\340A\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\016\n" @@ -32469,8 +32473,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022c\n" - + "!shielded_instance_config_resource\030\330\226\335\201\001 \001(\0132/.google.cloud" - + ".compute.v1.ShieldedInstanceConfigB\003\340A\002\022\033\n" + + "!shielded_instance_config_resource\030\330\226\335\201\001" + + " \001(\0132/.google.cloud.compute.v1.ShieldedInstanceConfigB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\237\002\n" @@ -32479,8 +32483,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\035\n" + "\014storage_pool\030\340\306\361\253\001 \001(\tB\003\340A\002\022K\n" - + "\025storage_pool_resource\030\215\274\371J \001(\013" - + "2$.google.cloud.compute.v1.StoragePoolB\003\340A\002\022\034\n" + + "\025storage_pool_resource\030\215\274\371J \001(\0132$.go" + + "ogle.cloud.compute.v1.StoragePoolB\003\340A\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" @@ -32496,11 +32500,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\220\002\n" + "\"UpdateZoneVmExtensionPolicyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\n" + + "\340A\002\362G\007project\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022$\n" + "\023vm_extension_policy\030\272\223\213\236\001 \001(\tB\003\340A\002\022Y\n" - + "\034vm_extension_policy_resource\030\363\371\361\365\001 \001(\0132*.google." - + "cloud.compute.v1.VmExtensionPolicyB\003\340A\002\022\033\n" + + "\034vm_extension_policy_resource\030\363\371\361\365\001" + + " \001(\0132*.google.cloud.compute.v1.VmExtensionPolicyB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\362\007\n" @@ -32515,8 +32520,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132+.google.cloud.compute.v1.HttpRedirectActionH\004\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\005\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\006\210\001\001\022I\n\r" - + "header_action\030\250\240\270\234\001 \001(" - + "\0132).google.cloud.compute.v1.HttpHeaderActionH\007\210\001\001\0229\n\n" + + "header_action\030\250\240\270\234\001 \001(\0132).g" + + "oogle.cloud.compute.v1.HttpHeaderActionH\007\210\001\001\0229\n\n" + "host_rules\030\240\207\327\224\001" + " \003(\0132!.google.cloud.compute.v1.HostRule\022\020\n" + "\002id\030\233\032 \001(\004H\010\210\001\001\022\024\n" @@ -32539,7 +32544,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\007\n" + "\005_nameB\t\n" - + "\007_regionB\014\n\n" + + "\007_regionB\014\n" + + "\n" + "_self_link\"\235\002\n\n" + "UrlMapList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0221\n" @@ -32556,7 +32562,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"7\n" + "\017UrlMapReference\022\030\n" + "\007url_map\030\214\225\201\257\001 \001(\tH\000\210\001\001B\n\n" - + "\010_url_map\"\360\002\n\n" + + "\010_url_map\"\360\002\n" + + "\n" + "UrlMapTest\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022$\n" + "\023expected_output_url\030\230\242\367\316\001 \001(\tH\001\210\001\001\022/\n" @@ -32581,8 +32588,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026UrlMapValidationResult\022\027\n" + "\013load_errors\030\344\361\361\223\001 \003(\t\022\036\n" + "\016load_succeeded\030\310\264\230= \001(\010H\000\210\001\001\022?\n\r" - + "test_failures\030\266\342\237\361\001" - + " \003(\0132$.google.cloud.compute.v1.TestFailure\022\033\n" + + "test_failures\030\266\342\237\361\001 \003" + + "(\0132$.google.cloud.compute.v1.TestFailure\022\033\n" + "\013test_passed\030\275\201\362[ \001(\010H\001\210\001\001B\021\n" + "\017_load_succeededB\016\n" + "\014_test_passed\"\265\003\n" @@ -32595,12 +32602,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\004\210\001\001\032X\n" - + "\n" + + " .google.cloud.compute.v1.WarningH\004\210\001\001\032X\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\0229\n" - + "\005value\030\002 \001(\0132" - + "*.google.cloud.compute.v1.UrlMapsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132*.goo" + + "gle.cloud.compute.v1.UrlMapsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -32622,15 +32628,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!LOAD_BALANCING_SCHEME_UNSPECIFIED\020\274\273\207\373\001B\013\n" + "\t_resource\"m\n" + "\027UrlMapsValidateResponse\022G\n" - + "\006result\030\235\220\267B \001(\0132/.google.cloud" - + ".compute.v1.UrlMapValidationResultH\000\210\001\001B\t\n" + + "\006result\030\235\220\267B" + + " \001(\0132/.google.cloud.compute.v1.UrlMapValidationResultH\000\210\001\001B\t\n" + "\007_result\"\223\002\n\n" + "UrlRewrite\022\034\n" + "\014host_rewrite\030\365\313\232L \001(\tH\000\210\001\001\022#\n" + "\023path_prefix_rewrite\030\271\350\321\023 \001(\tH\001\210\001\001\022&\n" + "\025path_template_rewrite\030\241\357\362\311\001 \001(\tH\002\210\001\001\022E\n\r" - + "regex_rewrite\030\224\243\312\265\001 \001(\0132" - + "%.google.cloud.compute.v1.RegexRewriteH\003\210\001\001B\017\n\r" + + "regex_rewrite\030\224\243\312\265\001 \001(\0132%.goo" + + "gle.cloud.compute.v1.RegexRewriteH\003\210\001\001B\017\n\r" + "_host_rewriteB\026\n" + "\024_path_prefix_rewriteB\030\n" + "\026_path_template_rewriteB\020\n" @@ -32643,8 +32649,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007network\030\256\264\205o \001(\tH\004\210\001\001\022\030\n" + "\007purpose\030\236\372\357\226\001 \001(\tH\005\210\001\001\022\024\n" + "\004role\030\366\200\326\001 \001(\tH\006\210\001\001\022W\n" - + "\023secondary_ip_ranges\030\343\377\224A \003(\01327." - + "google.cloud.compute.v1.UsableSubnetworkSecondaryRange\022\033\n\n" + + "\023secondary_ip_ranges\030\343\377\224A \003(\01327.googl" + + "e.cloud.compute.v1.UsableSubnetworkSecondaryRange\022\033\n\n" + "stack_type\030\221\265\213\313\001 \001(\tH\007\210\001\001\022\033\n\n" + "subnetwork\030\356\247\344\222\001 \001(\tH\010\210\001\001\"S\n" + "\016Ipv6AccessType\022\036\n" @@ -32678,7 +32684,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021_ipv6_access_typeB\n\n" + "\010_networkB\n\n" + "\010_purposeB\007\n" - + "\005_roleB\r\n" + + "\005_roleB\r" + + "\n" + "\013_stack_typeB\r\n" + "\013_subnetwork\"}\n" + "\036UsableSubnetworkSecondaryRange\022\035\n\r" @@ -32692,16 +32699,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132).google.cloud.compute.v1.UsableSubnetwork\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022M\n" - + "\017scoped_warnings\030\246\226\370f \003(\01321" - + ".google.cloud.compute.v1.SubnetworksScopedWarning\022\032\n" + + "\017scoped_warnings\030\246\226\370f \003(\01321.goog" + + "le.cloud.compute.v1.SubnetworksScopedWarning\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n" - + "\n" + + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\177\n" + "\023UsageExportLocation\022\034\n" @@ -32712,8 +32718,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033ValidateRegionUrlMapRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022p\n" - + ")region_url_maps_validate_request_resource\030\232\314\200\033" - + " \001(\01325.google.cloud.compute.v1.RegionUrlMapsValidateRequestB\003\340A\002\022\030\n" + + ")region_url_maps_validate_request_resource\030\232\314\200\033 \001" + + "(\01325.google.cloud.compute.v1.RegionUrlMapsValidateRequestB\003\340A\002\022\030\n" + "\007url_map\030\214\225\201\257\001 \001(\tB\003\340A\002\"\260\001\n" + "\025ValidateUrlMapRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" @@ -32722,8 +32728,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132/.google.cloud.compute.v1.UrlMapsValidateRequestB\003\340A\002\"\257\001\n" + "\025VmEndpointNatMappings\022\035\n\r" + "instance_name\030\365\347\330l \001(\tH\000\210\001\001\022e\n" - + "\026interface_nat_mappings\030\211\200\225z" - + " \003(\0132B.google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsB\020\n" + + "\026interface_nat_mappings\030\211\200\225z \003(\0132" + + "B.google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsB\020\n" + "\016_instance_name\"\342\003\n" + ")VmEndpointNatMappingsInterfaceNatMappings\022$\n" + "\030drain_nat_ip_port_ranges\030\301\343\307\274\001 \003(\t\022\036\n" @@ -32731,8 +32737,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031num_total_drain_nat_ports\030\371\245\377\237\001" + " \001(\005H\000\210\001\001\022$\n" + "\023num_total_nat_ports\030\200\333\200\217\001 \001(\005H\001\210\001\001\022l\n\r" - + "rule_mappings\030\310\356\352\347\001 \003(\0132Q.go" - + "ogle.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings\022&\n" + + "rule_mappings\030\310\356\352\347\001 \003(\0132Q.google." + + "cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings\022&\n" + "\025source_alias_ip_range\030\330\243\374\321\001 \001(\tH\002\210\001\001\022!\n" + "\021source_virtual_ip\030\377\242\271G \001(\tH\003\210\001\001B\034\n" + "\032_num_total_drain_nat_portsB\026\n" @@ -32764,20 +32770,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\264\001\n" + "\035VmExtensionPoliciesScopedList\022L\n" - + "\025vm_extension_policies\030\330\247\334q \003(\0132*.go" - + "ogle.cloud.compute.v1.VmExtensionPolicy\0229\n" + + "\025vm_extension_policies\030\330\247\334q" + + " \003(\0132*.google.cloud.compute.v1.VmExtensionPolicy\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\275\007\n" + "\021VmExtensionPolicy\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022`\n" - + "\022extension_policies\030\320\272\315l \003(\0132A.google.c" - + "loud.compute.v1.VmExtensionPolicy.ExtensionPoliciesEntry\022%\n" + + "\022extension_policies\030\320\272\315l \003(\0132A.google.cloud." + + "compute.v1.VmExtensionPolicy.ExtensionPoliciesEntry\022%\n" + "\024global_resource_link\030\357\363\250\366\001 \001(\tH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022Z\n" - + "\022instance_selectors\030\312\302\214\370\001 \003(\0132:.google.cloud" - + ".compute.v1.VmExtensionPolicyInstanceSelector\022\024\n" + + "\022instance_selectors\030\312\302\214\370\001 \003(\0132:.google.cloud.comp" + + "ute.v1.VmExtensionPolicyInstanceSelector\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022!\n" + "\021managed_by_global\030\353\207\240* \001(\010H\005\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022\031\n" @@ -32789,8 +32795,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020update_timestamp\030\240\352\3229 \001(\tH\013\210\001\001\032s\n" + "\026ExtensionPoliciesEntry\022\013\n" + "\003key\030\001 \001(\t\022H\n" - + "\005value\030\002" - + " \001(\01329.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy:\0028\001\"Y\n" + + "\005value\030\002 \001(\013" + + "29.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy:\0028\001\"Y\n" + "\005State\022\023\n" + "\017UNDEFINED_STATE\020\000\022\016\n" + "\006ACTIVE\020\206\346\211\226\001\022\020\n" @@ -32811,8 +32817,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'VmExtensionPolicyAggregatedListResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022]\n" - + "\005items\030\300\317\367/ \003(\0132K.google.cloud.compute.v1.V" - + "mExtensionPolicyAggregatedListResponse.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132K.google.cloud.compute.v1.VmExte" + + "nsionPolicyAggregatedListResponse.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -32821,8 +32827,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032d\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022E\n" - + "\005value\030\002 \001(\01326.google.cloud.comput" - + "e.v1.VmExtensionPoliciesScopedList:\0028\001B\007\n" + + "\005value\030\002" + + " \001(\01326.google.cloud.compute.v1.VmExtensionPoliciesScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -32835,20 +32841,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_pinned_versionB\020\n" + "\016_string_config\"\220\001\n" + "!VmExtensionPolicyInstanceSelector\022X\n" - + "\016label_selector\030\312\361\344\246\001 \001(\01327.goo" - + "gle.cloud.compute.v1.VmExtensionPolicyLabelSelectorH\000\210\001\001B\021\n" + + "\016label_selector\030\312\361\344\246\001 \001(\01327.google.c" + + "loud.compute.v1.VmExtensionPolicyLabelSelectorH\000\210\001\001B\021\n" + "\017_label_selector\"\304\001\n" + "\036VmExtensionPolicyLabelSelector\022j\n" - + "\020inclusion_labels\030\202\331\205\357\001 \003(\0132L.google.cloud.comp" - + "ute.v1.VmExtensionPolicyLabelSelector.InclusionLabelsEntry\0326\n" + + "\020inclusion_labels\030\202\331\205\357\001 \003(\0132L.google.cloud.compute.v" + + "1.VmExtensionPolicyLabelSelector.InclusionLabelsEntry\0326\n" + "\024InclusionLabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\353\002\n" + "\025VmExtensionPolicyList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022<\n" - + "\005items\030\300\317\367/ \003(\0132*" - + ".google.cloud.compute.v1.VmExtensionPolicy\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132*.google.cloud.compute.v1.VmExtensionPolicy\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -32872,14 +32878,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132/.google.cloud.compute.v1.VpnGateway.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022\027\n" + "\007network\030\256\264\205o \001(\tH\007\210\001\001\022A\n" - + "\006params\030\206\363\253%" - + " \001(\0132).google.cloud.compute.v1.VpnGatewayParamsH\010\210\001\001\022\026\n" + + "\006params\030\206\363\253% \001" + + "(\0132).google.cloud.compute.v1.VpnGatewayParamsH\010\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\t\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\n" + "\210\001\001\022\033\n\n" + "stack_type\030\221\265\213\313\001 \001(\tH\013\210\001\001\022Q\n" - + "\016vpn_interfaces\030\205\315\345+ " - + "\003(\01326.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface\032-\n" + + "\016vpn_interfaces\030\205\315\345+ \003(\01326" + + ".google.cloud.compute.v1.VpnGatewayVpnGatewayInterface\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"N\n" @@ -32908,8 +32914,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_stack_type\"\277\003\n" + "\030VpnGatewayAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022N\n" - + "\005items\030\300\317\367/ \003(\0132<.g" - + "oogle.cloud.compute.v1.VpnGatewayAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132<.google" + + ".cloud.compute.v1.VpnGatewayAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -32918,8 +32924,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032\\\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002 \001(\0132..google.clo" - + "ud.compute.v1.VpnGatewaysScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\0132..google.cloud.compute.v1.VpnGatewaysScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -32939,18 +32945,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\265\001\n" + "\020VpnGatewayParams\022e\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132B.google.cloud.compute.v1." - + "VpnGatewayParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001" + + " \003(\0132B.google.cloud.compute.v1.VpnGatewayParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"g\n" + "\020VpnGatewayStatus\022S\n" - + "\017vpn_connections\030\212\355\276\321\001 \003(\01326.google." - + "cloud.compute.v1.VpnGatewayStatusVpnConnection\"\321\002\n" + + "\017vpn_connections\030\212\355\276\321\001 \003(\01326.google.cloud" + + ".compute.v1.VpnGatewayStatusVpnConnection\"\321\002\n" + "0VpnGatewayStatusHighAvailabilityRequirementState\022\025\n" - + "\005state\030\221\211\2534 \001(\tH\000\210\001\001\022\"\n" - + "\022unsatisfied_reason\030\212\367\235\032 \001(\tH\001\210\001\001\"f", - "\n" + + "\005state\030\221\211\2534 \001(\tH\000\210\001\001\022\"\n", + "\022unsatisfied_reason\030\212\367\235\032 \001(\tH\001\210\001\001\"f\n" + "\005State\022\023\n" + "\017UNDEFINED_STATE\020\000\022!\n" + "\031CONNECTION_REDUNDANCY_MET\020\233\312\365\360\001\022%\n" @@ -32972,8 +32977,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035VpnGatewayStatusVpnConnection\022&\n" + "\025peer_external_gateway\030\215\356\307\267\001 \001(\tH\000\210\001\001\022!\n" + "\020peer_gcp_gateway\030\274\351\263\206\001 \001(\tH\001\210\001\001\022`\n" - + "\005state\030\221\211\2534 \001(\0132I.google.cloud.compute.v1.VpnGatewayStat" - + "usHighAvailabilityRequirementStateH\002\210\001\001\022C\n" + + "\005state\030\221\211\2534 \001(\0132I.goo" + + "gle.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementStateH\002\210\001\001\022C\n" + "\007tunnels\030\213\372\3551" + " \003(\0132/.google.cloud.compute.v1.VpnGatewayStatusTunnelB\030\n" + "\026_peer_external_gatewayB\023\n" @@ -32991,14 +32996,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_ip_addressB\017\n\r" + "_ipv6_address\"l\n" + "\034VpnGatewaysGetStatusResponse\022A\n" - + "\006result\030\235\220\267B \001(\0132)." - + "google.cloud.compute.v1.VpnGatewayStatusH\000\210\001\001B\t\n" + + "\006result\030\235\220\267B \001(\0132).googl" + + "e.cloud.compute.v1.VpnGatewayStatusH\000\210\001\001B\t\n" + "\007_result\"\234\001\n" + "\025VpnGatewaysScopedList\022<\n" + "\014vpn_gateways\030\232\373\312{" + " \003(\0132#.google.cloud.compute.v1.VpnGateway\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n" + + "\n" + "\010_warning\"\307\r\n" + "\tVpnTunnel\022L\n" + "\014cipher_suite\030\304\327\316\323\001" @@ -33076,8 +33082,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026_vpn_gateway_interface\"\274\003\n" + "\027VpnTunnelAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022M\n" - + "\005items\030\300\317\367/ \003(\0132;.google.cloud.compute" - + ".v1.VpnTunnelAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132;.google.cloud.compute.v1.VpnTunnelAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -33086,18 +33092,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032[\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022<\n" - + "\005value\030\002" - + " \001(\0132-.google.cloud.compute.v1.VpnTunnelsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001" + + "(\0132-.google.cloud.compute.v1.VpnTunnelsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\304\001\n" + "\024VpnTunnelCipherSuite\022J\n" - + "\006phase1\030\226\314\230(" - + " \001(\01322.google.cloud.compute.v1.VpnTunnelPhase1AlgorithmsH\000\210\001\001\022J\n" - + "\006phase2\030\227\314\230( \001(\013" - + "22.google.cloud.compute.v1.VpnTunnelPhase2AlgorithmsH\001\210\001\001B\t\n" + + "\006phase1\030\226\314\230( \001(\0132" + + "2.google.cloud.compute.v1.VpnTunnelPhase1AlgorithmsH\000\210\001\001\022J\n" + + "\006phase2\030\227\314\230( \001(\01322.go" + + "ogle.cloud.compute.v1.VpnTunnelPhase2AlgorithmsH\001\210\001\001B\t\n" + "\007_phase1B\t\n" + "\007_phase2\"\243\002\n\r" + "VpnTunnelList\022\020\n" @@ -33114,16 +33120,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\263\001\n" + "\017VpnTunnelParams\022d\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132A.google.cl" - + "oud.compute.v1.VpnTunnelParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132A.google.cloud.c" + + "ompute.v1.VpnTunnelParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"e\n" + "\031VpnTunnelPhase1Algorithms\022\013\n" - + "\002dh\030\204\031 \003(\t\022\025\n" - + "\n" + + "\002dh\030\204\031 \003(\t\022\025\n\n" + "encryption\030\203\237\334. \003(\t\022\025\n" - + "\tintegrity\030\315\376\377\352\001 \003(\t\022\r\n" + + "\tintegrity\030\315\376\377\352\001 \003(\t\022\r" + + "\n" + "\003prf\030\244\345\006 \003(\t\"X\n" + "\031VpnTunnelPhase2Algorithms\022\025\n\n" + "encryption\030\203\237\334. \003(\t\022\025\n" @@ -33233,8 +33239,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_message\"\317\001\n" + "\026WeightedBackendService\022 \n" + "\017backend_service\030\212\300\256\222\001 \001(\tH\000\210\001\001\022I\n\r" - + "header_action\030\250\240\270\234\001 \001(\0132).google." - + "cloud.compute.v1.HttpHeaderActionH\001\210\001\001\022\027\n" + + "header_action\030\250\240\270\234\001" + + " \001(\0132).google.cloud.compute.v1.HttpHeaderActionH\001\210\001\001\022\027\n" + "\006weight\030\370\204\305\206\001 \001(\r" + "H\002\210\001\001B\022\n" + "\020_backend_serviceB\020\n" @@ -33259,15 +33265,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "admin_enabled\030\321\354\301\324\001 \001(\010H\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022H\n" - + "\tendpoints\030\376\252\362\210\001 \003(\0132" - + "1.google.cloud.compute.v1.WireGroup.EndpointsEntry\022\020\n" + + "\tendpoints\030\376\252\362\210\001 \003(\01321.goo" + + "gle.cloud.compute.v1.WireGroup.EndpointsEntry\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\034\n" + "\013reconciling\030\213\331\210\316\001 \001(\010H\006\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022D\n" - + "\010topology\030\357\204\247: \001(\0132*.google" - + ".cloud.compute.v1.WireGroupTopologyH\010\210\001\001\022I\n" + + "\010topology\030\357\204\247:" + + " \001(\0132*.google.cloud.compute.v1.WireGroupTopologyH\010\210\001\001\022I\n" + "\017wire_properties\030\255\272\304\220\001" + " \001(\0132\'.google.cloud.compute.v1.WirePropertiesH\t\210\001\001\022/\n" + "\005wires\030\216\301\3715 \003(\0132\035.google.cloud.compute.v1.Wire\032\\\n" @@ -33290,8 +33296,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132=.google.cloud.compute.v1.WireGroupEndpoint.InterconnectsEntry\032l\n" + "\022InterconnectsEntry\022\013\n" + "\003key\030\001 \001(\t\022E\n" - + "\005value\030\002" - + " \001(\01326.google.cloud.compute.v1.WireGroupEndpointInterconnect:\0028\001\"e\n" + + "\005value\030\002 \001(\013" + + "26.google.cloud.compute.v1.WireGroupEndpointInterconnect:\0028\001\"e\n" + "\035WireGroupEndpointInterconnect\022\034\n" + "\014interconnect\030\216\311\214k \001(\tH\000\210\001\001\022\025\n" + "\tvlan_tags\030\365\232\262\267\001 \003(\005B\017\n\r" @@ -33313,8 +33319,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"^\n" + "\021WireGroupTopology\022I\n" - + "\tendpoints\030\376\252\362\210\001 \003" - + "(\01322.google.cloud.compute.v1.WireGroupTopologyEndpoint\"[\n" + + "\tendpoints\030\376\252\362\210\001 \003(\01322." + + "google.cloud.compute.v1.WireGroupTopologyEndpoint\"[\n" + "\031WireGroupTopologyEndpoint\022\024\n" + "\004city\030\353\262\272\001 \001(\tH\000\210\001\001\022\025\n" + "\005label\030\364\375\3750 \001(\tH\001\210\001\001B\007\n" @@ -33379,15 +33385,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004Zone\022\"\n" + "\027available_cpu_platforms\030\223\363\331S \003(\t\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022G\n\n" - + "deprecated\030\263\313\321\365\001 \001(\0132" - + "*.google.cloud.compute.v1.DeprecationStatusH\001\210\001\001\022\034\n" + + "deprecated\030\263\313\321\365\001 \001(\0132*.goo" + + "gle.cloud.compute.v1.DeprecationStatusH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\006\210\001\001\022L\n" - + "\017resource_status\030\303\372\367v \001(\0132+.googl" - + "e.cloud.compute.v1.ZoneResourceStatusH\007\210\001\001\022\032\n" + + "\017resource_status\030\303\372\367v" + + " \001(\0132+.google.cloud.compute.v1.ZoneResourceStatusH\007\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\010\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\t\210\001\001\022\034\n" + "\014supports_pzs\030\356\366\205( \001(\010H\n" @@ -33421,8 +33427,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"s\n" + "\022ZoneResourceStatus\022]\n" - + "\025upcoming_maintenances\030\203\374\323 \003(\0132;.google." - + "cloud.compute.v1.PeriodicPartialMaintenanceSchedule\"\315\001\n" + + "\025upcoming_maintenances\030\203\374\323 \003(\0132;.google.cloud" + + ".compute.v1.PeriodicPartialMaintenanceSchedule\"\315\001\n" + "\024ZoneSetLabelsRequest\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\000\210\001\001\022M\n" + "\006labels\030\377\277\301\356\001" @@ -33443,7206 +33449,7209 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010bindings\030\216\305\244\300\001 \003(\0132" + " .google.cloud.compute.v1.Binding\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\0227\n" - + "\006policy\030\262\312\266+" - + " \001(\0132\037.google.cloud.compute.v1.PolicyH\001\210\001\001B\007\n" + + "\006policy\030\262\312\266+ \001" + + "(\0132\037.google.cloud.compute.v1.PolicyH\001\210\001\001B\007\n" + "\005_etagB\t\n" + "\007_policy2\303\006\n" + "\020AcceleratorTypes\022\326\001\n" - + "\016AggregatedList\022>.google.cloud.compute.v1.AggregatedListAcceleratorTyp" - + "esRequest\0326.google.cloud.compute.v1.Acce" - + "leratorTypeAggregatedList\"L\332A\007project\202\323\344" - + "\223\002<\022:/compute/v1/projects/{project}/aggregated/acceleratorTypes\022\334\001\n" - + "\003Get\0222.google.cloud.compute.v1.GetAcceleratorTypeRequ" - + "est\032(.google.cloud.compute.v1.Accelerato" - + "rType\"w\332A\035project,zone,accelerator_type\202" - + "\323\344\223\002Q\022O/compute/v1/projects/{project}/zo" - + "nes/{zone}/acceleratorTypes/{accelerator_type}\022\277\001\n" - + "\004List\0224.google.cloud.compute.v1.ListAcceleratorTypesRequest\032,.google.c" - + "loud.compute.v1.AcceleratorTypeList\"S\332A\014" - + "project,zone\202\323\344\223\002>\022.google.cloud.compute.v1.AggregatedListAcceleratorTypesReq" + + "uest\0326.google.cloud.compute.v1.Accelerat" + + "orTypeAggregatedList\"L\332A\007project\202\323\344\223\002<\022:" + + "/compute/v1/projects/{project}/aggregated/acceleratorTypes\022\334\001\n" + + "\003Get\0222.google.cloud.compute.v1.GetAcceleratorTypeRequest\032(" + + ".google.cloud.compute.v1.AcceleratorType" + + "\"w\332A\035project,zone,accelerator_type\202\323\344\223\002Q" + + "\022O/compute/v1/projects/{project}/zones/{" + + "zone}/acceleratorTypes/{accelerator_type}\022\277\001\n" + + "\004List\0224.google.cloud.compute.v1.ListAcceleratorTypesRequest\032,.google.cloud." + + "compute.v1.AcceleratorTypeList\"S\332A\014proje" + + "ct,zone\202\323\344\223\002>\022project" - + ",zone,disk,disks_add_resource_policies_r" - + "equest_resource\212N\016ZoneOperations\202\323\344\223\002|\"L" - + "/compute/v1/projects/{project}/zones/{zo" - + "ne}/disks/{disk}/addResourcePolicies:,di" - + "sks_add_resource_policies_request_resour" - + "ce\022\265\001\n\016AggregatedList\0223.google.cloud.com" - + "pute.v1.AggregatedListDisksRequest\032+.goo" - + "gle.cloud.compute.v1.DiskAggregatedList\"" - + "A\332A\007project\202\323\344\223\0021\022//compute/v1/projects/" - + "{project}/aggregated/disks\022\216\002\n\nBulkInser" - + "t\022..google.cloud.compute.v1.BulkInsertDi" - + "skRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\253\001\332A/project,zone,bulk_insert_disk" - + "_resource_resource\212N\016ZoneOperations\202\323\344\223\002" - + "b\"project,zone" + + ",disk,disks_add_resource_policies_reques" + + "t_resource\212N\016ZoneOperations\202\323\344\223\002|\"L/comp" + + "ute/v1/projects/{project}/zones/{zone}/d" + + "isks/{disk}/addResourcePolicies:,disks_a" + + "dd_resource_policies_request_resource\022\265\001" + + "\n\016AggregatedList\0223.google.cloud.compute." + + "v1.AggregatedListDisksRequest\032+.google.c" + + "loud.compute.v1.DiskAggregatedList\"A\332A\007p" + + "roject\202\323\344\223\0021\022//compute/v1/projects/{proj" + + "ect}/aggregated/disks\022\216\002\n\nBulkInsert\022..g" + + "oogle.cloud.compute.v1.BulkInsertDiskReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\253\001\332A/project,zone,bulk_insert_disk_reso" + + "urce_resource\212N\016ZoneOperations\202\323\344\223\002b\".google.cloud.compute.v1.L" - + "istAssociationsFirewallPolicyRequest\032A.g" - + "oogle.cloud.compute.v1.FirewallPoliciesL" - + "istAssociationsResponse\"I\332A\000\202\323\344\223\002@\022>/com" - + "pute/v1/locations/global/firewallPolicie" - + "s/listAssociations\022\335\001\n\004Move\0222.google.clo" - + "ud.compute.v1.MoveFirewallPolicyRequest\032" - + "\".google.cloud.compute.v1.Operation\"}\332A\017" - + "firewall_policy\212N\034GlobalOrganizationOper" - + "ations\202\323\344\223\002F\"D/compute/v1/locations/glob" - + "al/firewallPolicies/{firewall_policy}/mo" - + "ve\022\216\002\n\005Patch\0223.google.cloud.compute.v1.P" - + "atchFirewallPolicyRequest\032\".google.cloud" - + ".compute.v1.Operation\"\253\001\332A(firewall_poli" - + "cy,firewall_policy_resource\212N\034GlobalOrga" - + "nizationOperations\202\323\344\223\002[2?/compute/v1/lo" + + "d-platform\212\324\333\322\017\n2026-09-012\221$\n\020FirewallP" + + "olicies\022\307\002\n\016AddAssociation\022<.google.clou" + + "d.compute.v1.AddAssociationFirewallPolic" + + "yRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\322\001\332A4firewall_policy,firewall_polic" + + "y_association_resource\212N\034GlobalOrganizat" + + "ionOperations\202\323\344\223\002v\"N/compute/v1/locatio" + + "ns/global/firewallPolicies/{firewall_pol" + + "icy}/addAssociation:$firewall_policy_ass" + + "ociation_resource\022\244\002\n\007AddRule\0225.google.c" + + "loud.compute.v1.AddRuleFirewallPolicyReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\275\001\332A-firewall_policy,firewall_policy_ru" + + "le_resource\212N\034GlobalOrganizationOperatio" + + "ns\202\323\344\223\002h\"G/compute/v1/locations/global/f" + + "irewallPolicies/{firewall_policy}/addRul" + + "e:\035firewall_policy_rule_resource\022\360\001\n\nClo" + + "neRules\0228.google.cloud.compute.v1.CloneR" + + "ulesFirewallPolicyRequest\032\".google.cloud" + + ".compute.v1.Operation\"\203\001\332A\017firewall_poli" + + "cy\212N\034GlobalOrganizationOperations\202\323\344\223\002L\"" + + "J/compute/v1/locations/global/firewallPo" + + "licies/{firewall_policy}/cloneRules\022\334\001\n\006" + + "Delete\0224.google.cloud.compute.v1.DeleteF" + + "irewallPolicyRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"x\332A\017firewall_policy\212N\034G" + + "lobalOrganizationOperations\202\323\344\223\002A*?/comp" + + "ute/v1/locations/global/firewallPolicies" + + "/{firewall_policy}\022\274\001\n\003Get\0221.google.clou" + + "d.compute.v1.GetFirewallPolicyRequest\032\'." + + "google.cloud.compute.v1.FirewallPolicy\"Y" + + "\332A\017firewall_policy\202\323\344\223\002A\022?/compute/v1/lo" + "cations/global/firewallPolicies/{firewal" - + "l_policy}:\030firewall_policy_resource\022\252\002\n\t" - + "PatchRule\0227.google.cloud.compute.v1.Patc" - + "hRuleFirewallPolicyRequest\032\".google.clou" - + "d.compute.v1.Operation\"\277\001\332A-firewall_pol" - + "icy,firewall_policy_rule_resource\212N\034Glob" - + "alOrganizationOperations\202\323\344\223\002j\"I/compute" - + "/v1/locations/global/firewallPolicies/{f" - + "irewall_policy}/patchRule:\035firewall_poli" - + "cy_rule_resource\022\205\002\n\021RemoveAssociation\022?" - + ".google.cloud.compute.v1.RemoveAssociati" - + "onFirewallPolicyRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\212\001\332A\017firewall_policy" - + "\212N\034GlobalOrganizationOperations\202\323\344\223\002S\"Q/" - + "compute/v1/locations/global/firewallPoli" - + "cies/{firewall_policy}/removeAssociation" - + "\022\360\001\n\nRemoveRule\0228.google.cloud.compute.v" - + "1.RemoveRuleFirewallPolicyRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\203\001\332A\017firew" + + "l_policy}\022\354\001\n\016GetAssociation\022<.google.cl" + + "oud.compute.v1.GetAssociationFirewallPol" + + "icyRequest\0322.google.cloud.compute.v1.Fir" + + "ewallPolicyAssociation\"h\332A\017firewall_poli" + + "cy\202\323\344\223\002P\022N/compute/v1/locations/global/f" + + "irewallPolicies/{firewall_policy}/getAss" + + "ociation\022\305\001\n\014GetIamPolicy\022:.google.cloud" + + ".compute.v1.GetIamPolicyFirewallPolicyRe" + + "quest\032\037.google.cloud.compute.v1.Policy\"X" + + "\332A\010resource\202\323\344\223\002G\022E/compute/v1/locations" + + "/global/firewallPolicies/{resource}/getI" + + "amPolicy\022\320\001\n\007GetRule\0225.google.cloud.comp" + + "ute.v1.GetRuleFirewallPolicyRequest\032+.go" + + "ogle.cloud.compute.v1.FirewallPolicyRule" + + "\"a\332A\017firewall_policy\202\323\344\223\002I\022G/compute/v1/" + + "locations/global/firewallPolicies/{firew" + + "all_policy}/getRule\022\356\001\n\006Insert\0224.google." + + "cloud.compute.v1.InsertFirewallPolicyReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\211\001\332A\030firewall_policy_resource\212N\034GlobalO" + + "rganizationOperations\202\323\344\223\002I\"-/compute/v1" + + "/locations/global/firewallPolicies:\030fire" + + "wall_policy_resource\022\243\001\n\004List\0224.google.c" + + "loud.compute.v1.ListFirewallPoliciesRequ" + + "est\032+.google.cloud.compute.v1.FirewallPo" + + "licyList\"8\332A\000\202\323\344\223\002/\022-/compute/v1/locatio" + + "ns/global/firewallPolicies\022\340\001\n\020ListAssoc" + + "iations\022>.google.cloud.compute.v1.ListAs" + + "sociationsFirewallPolicyRequest\032A.google" + + ".cloud.compute.v1.FirewallPoliciesListAs" + + "sociationsResponse\"I\332A\000\202\323\344\223\002@\022>/compute/" + + "v1/locations/global/firewallPolicies/lis" + + "tAssociations\022\335\001\n\004Move\0222.google.cloud.co" + + "mpute.v1.MoveFirewallPolicyRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"}\332A\017firew" + "all_policy\212N\034GlobalOrganizationOperation" - + "s\202\323\344\223\002L\"J/compute/v1/locations/global/fi" - + "rewallPolicies/{firewall_policy}/removeR" - + "ule\022\247\002\n\014SetIamPolicy\022:.google.cloud.comp" - + "ute.v1.SetIamPolicyFirewallPolicyRequest" - + "\032\037.google.cloud.compute.v1.Policy\"\271\001\332A8r" - + "esource,global_organization_set_policy_r" - + "equest_resource\202\323\344\223\002x\"E/compute/v1/locat" - + "ions/global/firewallPolicies/{resource}/" - + "setIamPolicy:/global_organization_set_po" - + "licy_request_resource\022\256\002\n\022TestIamPermiss" - + "ions\022@.google.cloud.compute.v1.TestIamPe" - + "rmissionsFirewallPolicyRequest\0320.google." - + "cloud.compute.v1.TestPermissionsResponse" - + "\"\243\001\332A*resource,test_permissions_request_" - + "resource\202\323\344\223\002p\"K/compute/v1/locations/gl" - + "obal/firewallPolicies/{resource}/testIam" - + "Permissions:!test_permissions_request_re" - + "source\032\202\001\312A\026compute.googleapis.com\322AVhtt" - + "ps://www.googleapis.com/auth/compute,htt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "orm\212\324\333\322\017\n2026-09-012\225\r\n\tFirewalls\022\306\001\n\006De" - + "lete\022..google.cloud.compute.v1.DeleteFir" - + "ewallRequest\032\".google.cloud.compute.v1.O" - + "peration\"h\332A\020project,firewall\212N\020GlobalOp" - + "erations\202\323\344\223\002<*:/compute/v1/projects/{pr" - + "oject}/global/firewalls/{firewall}\022\254\001\n\003G" - + "et\022+.google.cloud.compute.v1.GetFirewall" - + "Request\032!.google.cloud.compute.v1.Firewa" - + "ll\"U\332A\020project,firewall\202\323\344\223\002<\022:/compute/" - + "v1/projects/{project}/global/firewalls/{" - + "firewall}\022\327\001\n\006Insert\022..google.cloud.comp" - + "ute.v1.InsertFirewallRequest\032\".google.cl" - + "oud.compute.v1.Operation\"y\332A\031project,fir" - + "ewall_resource\212N\020GlobalOperations\202\323\344\223\002D\"" - + "//compute/v1/projects/{project}/global/f" - + "irewalls:\021firewall_resource\022\237\001\n\004List\022-.g" - + "oogle.cloud.compute.v1.ListFirewallsRequ" - + "est\032%.google.cloud.compute.v1.FirewallLi" - + "st\"A\332A\007project\202\323\344\223\0021\022//compute/v1/projec" - + "ts/{project}/global/firewalls\022\352\001\n\005Patch\022" - + "-.google.cloud.compute.v1.PatchFirewallR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\215\001\332A\"project,firewall,firewall_resour" - + "ce\212N\020GlobalOperations\202\323\344\223\002O2:/compute/v1" - + "/projects/{project}/global/firewalls/{fi" - + "rewall}:\021firewall_resource\022\262\002\n\022TestIamPe" - + "rmissions\022:.google.cloud.compute.v1.Test" - + "IamPermissionsFirewallRequest\0320.google.c" - + "loud.compute.v1.TestPermissionsResponse\"" - + "\255\001\332A2project,resource,test_permissions_r" - + "equest_resource\202\323\344\223\002r\"M/compute/v1/proje" - + "cts/{project}/global/firewalls/{resource" - + "}/testIamPermissions:!test_permissions_r" - + "equest_resource\022\354\001\n\006Update\022..google.clou" - + "d.compute.v1.UpdateFirewallRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\215\001\332A\"proj" - + "ect,firewall,firewall_resource\212N\020GlobalO" - + "perations\202\323\344\223\002O\032:/compute/v1/projects/{p" - + "roject}/global/firewalls/{firewall}:\021fir" - + "ewall_resource\032\202\001\312A\026compute.googleapis.c" - + "om\322AVhttps://www.googleapis.com/auth/com" - + "pute,https://www.googleapis.com/auth/clo" - + "ud-platform\212\324\333\322\017\n2026-09-012\252\021\n\017Forwardi" - + "ngRules\022\323\001\n\016AggregatedList\022=.google.clou" - + "d.compute.v1.AggregatedListForwardingRul" - + "esRequest\0325.google.cloud.compute.v1.Forw" - + "ardingRuleAggregatedList\"K\332A\007project\202\323\344\223" - + "\002;\0229/compute/v1/projects/{project}/aggre" - + "gated/forwardingRules\022\362\001\n\006Delete\0224.googl" - + "e.cloud.compute.v1.DeleteForwardingRuleR" + + "s\202\323\344\223\002F\"D/compute/v1/locations/global/fi" + + "rewallPolicies/{firewall_policy}/move\022\216\002" + + "\n\005Patch\0223.google.cloud.compute.v1.PatchF" + + "irewallPolicyRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\253\001\332A(firewall_policy,fi" + + "rewall_policy_resource\212N\034GlobalOrganizat" + + "ionOperations\202\323\344\223\002[2?/compute/v1/locatio" + + "ns/global/firewallPolicies/{firewall_pol" + + "icy}:\030firewall_policy_resource\022\252\002\n\tPatch" + + "Rule\0227.google.cloud.compute.v1.PatchRule" + + "FirewallPolicyRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\277\001\332A-firewall_policy,f" + + "irewall_policy_rule_resource\212N\034GlobalOrg" + + "anizationOperations\202\323\344\223\002j\"I/compute/v1/l" + + "ocations/global/firewallPolicies/{firewa" + + "ll_policy}/patchRule:\035firewall_policy_ru" + + "le_resource\022\205\002\n\021RemoveAssociation\022?.goog" + + "le.cloud.compute.v1.RemoveAssociationFir" + + "ewallPolicyRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\212\001\332A\017firewall_policy\212N\034Gl" + + "obalOrganizationOperations\202\323\344\223\002S\"Q/compu" + + "te/v1/locations/global/firewallPolicies/" + + "{firewall_policy}/removeAssociation\022\360\001\n\n" + + "RemoveRule\0228.google.cloud.compute.v1.Rem" + + "oveRuleFirewallPolicyRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\203\001\332A\017firewall_p" + + "olicy\212N\034GlobalOrganizationOperations\202\323\344\223" + + "\002L\"J/compute/v1/locations/global/firewal" + + "lPolicies/{firewall_policy}/removeRule\022\247" + + "\002\n\014SetIamPolicy\022:.google.cloud.compute.v" + + "1.SetIamPolicyFirewallPolicyRequest\032\037.go" + + "ogle.cloud.compute.v1.Policy\"\271\001\332A8resour" + + "ce,global_organization_set_policy_reques" + + "t_resource\202\323\344\223\002x\"E/compute/v1/locations/" + + "global/firewallPolicies/{resource}/setIa" + + "mPolicy:/global_organization_set_policy_" + + "request_resource\022\256\002\n\022TestIamPermissions\022" + + "@.google.cloud.compute.v1.TestIamPermiss" + + "ionsFirewallPolicyRequest\0320.google.cloud" + + ".compute.v1.TestPermissionsResponse\"\243\001\332A" + + "*resource,test_permissions_request_resou" + + "rce\202\323\344\223\002p\"K/compute/v1/locations/global/" + + "firewallPolicies/{resource}/testIamPermi" + + "ssions:!test_permissions_request_resourc" + + "e\032\202\001\312A\026compute.googleapis.com\322AVhttps://" + + "www.googleapis.com/auth/compute,https://" + + "www.googleapis.com/auth/cloud-platform\212\324" + + "\333\322\017\n2026-09-012\225\r\n\tFirewalls\022\306\001\n\006Delete\022" + + "..google.cloud.compute.v1.DeleteFirewall" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"h\332A\020project,firewall\212N\020GlobalOperati" + + "ons\202\323\344\223\002<*:/compute/v1/projects/{project" + + "}/global/firewalls/{firewall}\022\254\001\n\003Get\022+." + + "google.cloud.compute.v1.GetFirewallReque" + + "st\032!.google.cloud.compute.v1.Firewall\"U\332" + + "A\020project,firewall\202\323\344\223\002<\022:/compute/v1/pr" + + "ojects/{project}/global/firewalls/{firew" + + "all}\022\327\001\n\006Insert\022..google.cloud.compute.v" + + "1.InsertFirewallRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"y\332A\031project,firewall" + + "_resource\212N\020GlobalOperations\202\323\344\223\002D\"//com" + + "pute/v1/projects/{project}/global/firewa" + + "lls:\021firewall_resource\022\237\001\n\004List\022-.google" + + ".cloud.compute.v1.ListFirewallsRequest\032%" + + ".google.cloud.compute.v1.FirewallList\"A\332" + + "A\007project\202\323\344\223\0021\022//compute/v1/projects/{p" + + "roject}/global/firewalls\022\352\001\n\005Patch\022-.goo" + + "gle.cloud.compute.v1.PatchFirewallReques" + + "t\032\".google.cloud.compute.v1.Operation\"\215\001" + + "\332A\"project,firewall,firewall_resource\212N\020" + + "GlobalOperations\202\323\344\223\002O2:/compute/v1/proj" + + "ects/{project}/global/firewalls/{firewal" + + "l}:\021firewall_resource\022\262\002\n\022TestIamPermiss" + + "ions\022:.google.cloud.compute.v1.TestIamPe" + + "rmissionsFirewallRequest\0320.google.cloud." + + "compute.v1.TestPermissionsResponse\"\255\001\332A2" + + "project,resource,test_permissions_reques" + + "t_resource\202\323\344\223\002r\"M/compute/v1/projects/{" + + "project}/global/firewalls/{resource}/tes" + + "tIamPermissions:!test_permissions_reques" + + "t_resource\022\354\001\n\006Update\022..google.cloud.com" + + "pute.v1.UpdateFirewallRequest\032\".google.c" + + "loud.compute.v1.Operation\"\215\001\332A\"project,f" + + "irewall,firewall_resource\212N\020GlobalOperat" + + "ions\202\323\344\223\002O\032:/compute/v1/projects/{projec" + + "t}/global/firewalls/{firewall}:\021firewall" + + "_resource\032\202\001\312A\026compute.googleapis.com\322AV" + + "https://www.googleapis.com/auth/compute," + + "https://www.googleapis.com/auth/cloud-pl" + + "atform\212\324\333\322\017\n2026-09-012\252\021\n\017ForwardingRul" + + "es\022\323\001\n\016AggregatedList\022=.google.cloud.com" + + "pute.v1.AggregatedListForwardingRulesReq" + + "uest\0325.google.cloud.compute.v1.Forwardin" + + "gRuleAggregatedList\"K\332A\007project\202\323\344\223\002;\0229/" + + "compute/v1/projects/{project}/aggregated" + + "/forwardingRules\022\362\001\n\006Delete\0224.google.clo" + + "ud.compute.v1.DeleteForwardingRuleReques" + + "t\032\".google.cloud.compute.v1.Operation\"\215\001" + + "\332A\036project,region,forwarding_rule\212N\020Regi" + + "onOperations\202\323\344\223\002S*Q/compute/v1/projects" + + "/{project}/regions/{region}/forwardingRu" + + "les/{forwarding_rule}\022\335\001\n\003Get\0221.google.c" + + "loud.compute.v1.GetForwardingRuleRequest" + + "\032\'.google.cloud.compute.v1.ForwardingRul" + + "e\"z\332A\036project,region,forwarding_rule\202\323\344\223" + + "\002S\022Q/compute/v1/projects/{project}/regio" + + "ns/{region}/forwardingRules/{forwarding_" + + "rule}\022\203\002\n\006Insert\0224.google.cloud.compute." + + "v1.InsertForwardingRuleRequest\032\".google." + + "cloud.compute.v1.Operation\"\236\001\332A\'project," + + "region,forwarding_rule_resource\212N\020Region" + + "Operations\202\323\344\223\002[\"?/compute/v1/projects/{" + + "project}/regions/{region}/forwardingRule" + + "s:\030forwarding_rule_resource\022\302\001\n\004List\0223.g" + + "oogle.cloud.compute.v1.ListForwardingRul" + + "esRequest\032+.google.cloud.compute.v1.Forw" + + "ardingRuleList\"X\332A\016project,region\202\323\344\223\002A\022" + + "?/compute/v1/projects/{project}/regions/" + + "{region}/forwardingRules\022\243\002\n\005Patch\0223.goo" + + "gle.cloud.compute.v1.PatchForwardingRule" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\300\001\332A7project,region,forwarding_rule," + + "forwarding_rule_resource\212N\020RegionOperati" + + "ons\202\323\344\223\002m2Q/compute/v1/projects/{project" + + "}/regions/{region}/forwardingRules/{forw" + + "arding_rule}:\030forwarding_rule_resource\022\273" + + "\002\n\tSetLabels\0227.google.cloud.compute.v1.S" + + "etLabelsForwardingRuleRequest\032\".google.c" + + "loud.compute.v1.Operation\"\320\001\332A:project,r" + + "egion,resource,region_set_labels_request" + + "_resource\212N\020RegionOperations\202\323\344\223\002z\"T/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/forwardingRules/{resource}/setLabels" + + ":\"region_set_labels_request_resource\022\267\002\n" + + "\tSetTarget\0227.google.cloud.compute.v1.Set" + + "TargetForwardingRuleRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\314\001\332A8project,reg" + + "ion,forwarding_rule,target_reference_res" + + "ource\212N\020RegionOperations\202\323\344\223\002x\"[/compute" + + "/v1/projects/{project}/regions/{region}/" + + "forwardingRules/{forwarding_rule}/setTar" + + "get:\031target_reference_resource\032\202\001\312A\026comp" + + "ute.googleapis.com\322AVhttps://www.googlea" + + "pis.com/auth/compute,https://www.googlea" + + "pis.com/auth/cloud-platform\212\324\333\322\017\n2026-09" + + "-012\360\016\n\022FutureReservations\022\345\001\n\016Aggregate" + + "dList\022@.google.cloud.compute.v1.Aggregat" + + "edListFutureReservationsRequest\032A.google" + + ".cloud.compute.v1.FutureReservationsAggr" + + "egatedListResponse\"N\332A\007project\202\323\344\223\002>\022\022/compute/v1/projects/{pr" - + "oject}/zones/{zone}/futureReservations:\033" - + "future_reservation_resource\022\316\001\n\004List\0226.g" - + "oogle.cloud.compute.v1.ListFutureReserva" - + "tionsRequest\0327.google.cloud.compute.v1.F" - + "utureReservationsListResponse\"U\332A\014projec" - + "t,zone\202\323\344\223\002@\022>/compute/v1/projects/{proj" - + "ect}/zones/{zone}/futureReservations\022\257\002\n" - + "\006Update\0227.google.cloud.compute.v1.Update" + + "on\"\225\001\332A\037project,zone,future_reservation\212" + + "N\016ZoneOperations\202\323\344\223\002\\\"Z/compute/v1/proj" + + "ects/{project}/zones/{zone}/futureReserv" + + "ations/{future_reservation}/cancel\022\366\001\n\006D" + + "elete\0227.google.cloud.compute.v1.DeleteFu" + + "tureReservationRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\216\001\332A\037project,zone,fut" + + "ure_reservation\212N\016ZoneOperations\202\323\344\223\002U*S" + + "/compute/v1/projects/{project}/zones/{zo" + + "ne}/futureReservations/{future_reservati" + + "on}\022\346\001\n\003Get\0224.google.cloud.compute.v1.Ge" + + "tFutureReservationRequest\032*.google.cloud" + + ".compute.v1.FutureReservation\"}\332A\037projec" + + "t,zone,future_reservation\202\323\344\223\002U\022S/comput" + + "e/v1/projects/{project}/zones/{zone}/fut" + + "ureReservations/{future_reservation}\022\207\002\n" + + "\006Insert\0227.google.cloud.compute.v1.Insert" + "FutureReservationRequest\032\".google.cloud." - + "compute.v1.Operation\"\307\001\332A;project,zone,f" - + "uture_reservation,future_reservation_res" - + "ource\212N\016ZoneOperations\202\323\344\223\002r2S/compute/v" - + "1/projects/{project}/zones/{zone}/future" - + "Reservations/{future_reservation}:\033futur" - + "e_reservation_resource\032\202\001\312A\026compute.goog" - + "leapis.com\322AVhttps://www.googleapis.com/" - + "auth/compute,https://www.googleapis.com/" - + "auth/cloud-platform\212\324\333\322\017\n2026-09-012\224\016\n\017" - + "GlobalAddresses\022\311\001\n\006Delete\0223.google.clou" - + "d.compute.v1.DeleteGlobalAddressRequest\032" - + "\".google.cloud.compute.v1.Operation\"f\332A\017" - + "project,address\212N\020GlobalOperations\202\323\344\223\002;" - + "*9/compute/v1/projects/{project}/global/" - + "addresses/{address}\022\256\001\n\003Get\0220.google.clo" - + "ud.compute.v1.GetGlobalAddressRequest\032 ." - + "google.cloud.compute.v1.Address\"S\332A\017proj" - + "ect,address\202\323\344\223\002;\0229/compute/v1/projects/" - + "{project}/global/addresses/{address}\022\332\001\n" - + "\006Insert\0223.google.cloud.compute.v1.Insert" - + "GlobalAddressRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"w\332A\030project,address_res" - + "ource\212N\020GlobalOperations\202\323\344\223\002C\"//compute" - + "/v1/projects/{project}/global/addresses:" - + "\020address_resource\022\244\001\n\004List\0223.google.clou" - + "d.compute.v1.ListGlobalAddressesRequest\032" - + "$.google.cloud.compute.v1.AddressList\"A\332" - + "A\007project\202\323\344\223\0021\022//compute/v1/projects/{p" - + "roject}/global/addresses\022\232\002\n\004Move\0221.goog" - + "le.cloud.compute.v1.MoveGlobalAddressReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\272\001\332A6project,address,global_addresses_m" - + "ove_request_resource\212N\020GlobalOperations\202" - + "\323\344\223\002h\">/compute/v1/projects/{project}/gl" - + "obal/addresses/{address}/move:&global_ad" - + "dresses_move_request_resource\022\243\002\n\tSetLab" - + "els\0226.google.cloud.compute.v1.SetLabelsG" - + "lobalAddressRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\271\001\332A3project,resource,gl" - + "obal_set_labels_request_resource\212N\020Globa" - + "lOperations\202\323\344\223\002j\"D/compute/v1/projects/" - + "{project}/global/addresses/{resource}/se" - + "tLabels:\"global_set_labels_request_resou" - + "rce\022\267\002\n\022TestIamPermissions\022?.google.clou" - + "d.compute.v1.TestIamPermissionsGlobalAdd" - + "ressRequest\0320.google.cloud.compute.v1.Te" - + "stPermissionsResponse\"\255\001\332A2project,resou" - + "rce,test_permissions_request_resource\202\323\344" - + "\223\002r\"M/compute/v1/projects/{project}/glob", - "al/addresses/{resource}/testIamPermissio" - + "ns:!test_permissions_request_resource\032\202\001" - + "\312A\026compute.googleapis.com\322AVhttps://www." - + "googleapis.com/auth/compute,https://www." - + "googleapis.com/auth/cloud-platform\212\324\333\322\017\n" - + "2026-09-012\214\017\n\025GlobalForwardingRules\022\346\001\n" - + "\006Delete\022:.google.cloud.compute.v1.Delete" - + "GlobalForwardingRuleRequest\032\".google.clo" - + "ud.compute.v1.Operation\"|\332A\027project,forw" - + "arding_rule\212N\020GlobalOperations\202\323\344\223\002I*G/c" - + "ompute/v1/projects/{project}/global/forw" - + "ardingRules/{forwarding_rule}\022\322\001\n\003Get\0227." - + "google.cloud.compute.v1.GetGlobalForward" - + "ingRuleRequest\032\'.google.cloud.compute.v1" - + ".ForwardingRule\"i\332A\027project,forwarding_r" - + "ule\202\323\344\223\002I\022G/compute/v1/projects/{project" - + "}/global/forwardingRules/{forwarding_rul" - + "e}\022\370\001\n\006Insert\022:.google.cloud.compute.v1." - + "InsertGlobalForwardingRuleRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\215\001\332A proje" - + "ct,forwarding_rule_resource\212N\020GlobalOper" - + "ations\202\323\344\223\002Q\"5/compute/v1/projects/{proj" - + "ect}/global/forwardingRules:\030forwarding_" - + "rule_resource\022\267\001\n\004List\0229.google.cloud.co" - + "mpute.v1.ListGlobalForwardingRulesReques" - + "t\032+.google.cloud.compute.v1.ForwardingRu" - + "leList\"G\332A\007project\202\323\344\223\0027\0225/compute/v1/pr" - + "ojects/{project}/global/forwardingRules\022" - + "\230\002\n\005Patch\0229.google.cloud.compute.v1.Patc" - + "hGlobalForwardingRuleRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\257\001\332A0project,fo" - + "rwarding_rule,forwarding_rule_resource\212N" - + "\020GlobalOperations\202\323\344\223\002c2G/compute/v1/pro" - + "jects/{project}/global/forwardingRules/{" - + "forwarding_rule}:\030forwarding_rule_resour" - + "ce\022\260\002\n\tSetLabels\022=.google.cloud.compute." - + "v1.SetLabelsGlobalForwardingRuleRequest\032" - + "\".google.cloud.compute.v1.Operation\"\277\001\332A" - + "3project,resource,global_set_labels_requ" - + "est_resource\212N\020GlobalOperations\202\323\344\223\002p\"J/" - + "compute/v1/projects/{project}/global/for" - + "wardingRules/{resource}/setLabels:\"globa" - + "l_set_labels_request_resource\022\254\002\n\tSetTar" - + "get\022=.google.cloud.compute.v1.SetTargetG" - + "lobalForwardingRuleRequest\032\".google.clou" - + "d.compute.v1.Operation\"\273\001\332A1project,forw" - + "arding_rule,target_reference_resource\212N\020" - + "GlobalOperations\202\323\344\223\002n\"Q/compute/v1/proj" - + "ects/{project}/global/forwardingRules/{f" - + "orwarding_rule}/setTarget:\031target_refere" - + "nce_resource\032\202\001\312A\026compute.googleapis.com" - + "\322AVhttps://www.googleapis.com/auth/compu" - + "te,https://www.googleapis.com/auth/cloud" - + "-platform\212\324\333\322\017\n2026-09-012\201\005\n\035GlobalFron" - + "tendSettingsService\022\300\001\n\003Get\0228.google.clo" - + "ud.compute.v1.GetGlobalFrontendSettingRe" - + "quest\032/.google.cloud.compute.v1.GlobalFr" - + "ontendSettings\"N\332A\007project\202\323\344\223\002>\022/compute/v1/projects/{project" + + "}/zones/{zone}/futureReservations:\033futur" + + "e_reservation_resource\022\316\001\n\004List\0226.google" + + ".cloud.compute.v1.ListFutureReservations" + + "Request\0327.google.cloud.compute.v1.Future" + + "ReservationsListResponse\"U\332A\014project,zon" + + "e\202\323\344\223\002@\022>/compute/v1/projects/{project}/" + + "zones/{zone}/futureReservations\022\257\002\n\006Upda" + + "te\0227.google.cloud.compute.v1.UpdateFutur" + + "eReservationRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\307\001\332A;project,zone,future" + + "_reservation,future_reservation_resource" + + "\212N\016ZoneOperations\202\323\344\223\002r2S/compute/v1/pro" + + "jects/{project}/zones/{zone}/futureReser" + + "vations/{future_reservation}:\033future_res" + + "ervation_resource\032\202\001\312A\026compute.googleapi" + + "s.com\322AVhttps://www.googleapis.com/auth/" + + "compute,https://www.googleapis.com/auth/" + + "cloud-platform\212\324\333\322\017\n2026-09-012\224\016\n\017Globa" + + "lAddresses\022\311\001\n\006Delete\0223.google.cloud.com" + + "pute.v1.DeleteGlobalAddressRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"f\332A\017proje" + + "ct,address\212N\020GlobalOperations\202\323\344\223\002;*9/co" + + "mpute/v1/projects/{project}/global/addre" + + "sses/{address}\022\256\001\n\003Get\0220.google.cloud.co" + + "mpute.v1.GetGlobalAddressRequest\032 .googl" + + "e.cloud.compute.v1.Address\"S\332A\017project,a" + + "ddress\202\323\344\223\002;\0229/compute/v1/projects/{proj" + + "ect}/global/addresses/{address}\022\332\001\n\006Inse" + + "rt\0223.google.cloud.compute.v1.InsertGloba" + + "lAddressRequest\032\".google.cloud.compute.v" + + "1.Operation\"w\332A\030project,address_resource" + + "\212N\020GlobalOperations\202\323\344\223\002C\"//compute/v1/p" + + "rojects/{project}/global/addresses:\020addr" + + "ess_resource\022\244\001\n\004List\0223.google.cloud.com" + + "pute.v1.ListGlobalAddressesRequest\032$.goo" + + "gle.cloud.compute.v1.AddressList\"A\332A\007pro" + + "ject\202\323\344\223\0021\022//compute/v1/projects/{projec" + + "t}/global/addresses\022\232\002\n\004Move\0221.google.cl" + + "oud.compute.v1.MoveGlobalAddressRequest\032" + + "\".google.cloud.compute.v1.Operation\"\272\001\332A" + + "6project,address,global_addresses_move_r" + + "equest_resource\212N\020GlobalOperations\202\323\344\223\002h" + + "\">/compute/v1/projects/{project}/global/" + + "addresses/{address}/move:&global_address" + + "es_move_request_resource\022\243\002\n\tSetLabels\0226" + + ".google.cloud.compute.v1.SetLabelsGlobal" + + "AddressRequest\032\".google.cloud.compute.v1" + + ".Operation\"\271\001\332A3project,resource,global_" + + "set_labels_request_resource\212N\020GlobalOper" + + "ations\202\323\344\223\002j\"D/compute/v1/projects/{proj" + + "ect}/global/addresses/{resource}/setLabe" + + "ls:\"global_set_labels_request_resource\022\267" + + "\002\n\022TestIamPermissions\022?.google.cloud.com" + + "pute.v1.TestIamPermissionsGlobalAddressR" + + "equest\0320.google.cloud.compute.v1.TestPer" + + "missionsResponse\"\255\001\332A2project,resource,t" + + "est_permissions_request_resource\202\323\344\223\002r\"M", + "/compute/v1/projects/{project}/global/ad" + + "dresses/{resource}/testIamPermissions:!t" + + "est_permissions_request_resource\032\202\001\312A\026co" + + "mpute.googleapis.com\322AVhttps://www.googl" + + "eapis.com/auth/compute,https://www.googl" + + "eapis.com/auth/cloud-platform\212\324\333\322\017\n2026-" + + "09-012\214\017\n\025GlobalForwardingRules\022\346\001\n\006Dele" + + "te\022:.google.cloud.compute.v1.DeleteGloba" + + "lForwardingRuleRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"|\332A\027project,forwardin" + + "g_rule\212N\020GlobalOperations\202\323\344\223\002I*G/comput" + + "e/v1/projects/{project}/global/forwardin" + + "gRules/{forwarding_rule}\022\322\001\n\003Get\0227.googl" + + "e.cloud.compute.v1.GetGlobalForwardingRu" + + "leRequest\032\'.google.cloud.compute.v1.Forw" + + "ardingRule\"i\332A\027project,forwarding_rule\202\323" + + "\344\223\002I\022G/compute/v1/projects/{project}/glo" + + "bal/forwardingRules/{forwarding_rule}\022\370\001" + + "\n\006Insert\022:.google.cloud.compute.v1.Inser" + + "tGlobalForwardingRuleRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\215\001\332A project,fo" + + "rwarding_rule_resource\212N\020GlobalOperation" + + "s\202\323\344\223\002Q\"5/compute/v1/projects/{project}/" + + "global/forwardingRules:\030forwarding_rule_" + + "resource\022\267\001\n\004List\0229.google.cloud.compute" + + ".v1.ListGlobalForwardingRulesRequest\032+.g" + + "oogle.cloud.compute.v1.ForwardingRuleLis" + + "t\"G\332A\007project\202\323\344\223\0027\0225/compute/v1/project" + + "s/{project}/global/forwardingRules\022\230\002\n\005P" + + "atch\0229.google.cloud.compute.v1.PatchGlob" + + "alForwardingRuleRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\257\001\332A0project,forward" + + "ing_rule,forwarding_rule_resource\212N\020Glob" + + "alOperations\202\323\344\223\002c2G/compute/v1/projects" + + "/{project}/global/forwardingRules/{forwa" + + "rding_rule}:\030forwarding_rule_resource\022\260\002" + + "\n\tSetLabels\022=.google.cloud.compute.v1.Se" + + "tLabelsGlobalForwardingRuleRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\277\001\332A3proj" + + "ect,resource,global_set_labels_request_r" + + "esource\212N\020GlobalOperations\202\323\344\223\002p\"J/compu" + + "te/v1/projects/{project}/global/forwardi" + + "ngRules/{resource}/setLabels:\"global_set" + + "_labels_request_resource\022\254\002\n\tSetTarget\022=" + + ".google.cloud.compute.v1.SetTargetGlobal" + + "ForwardingRuleRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\273\001\332A1project,forwardin" + + "g_rule,target_reference_resource\212N\020Globa" + + "lOperations\202\323\344\223\002n\"Q/compute/v1/projects/" + + "{project}/global/forwardingRules/{forwar" + + "ding_rule}/setTarget:\031target_reference_r" + + "esource\032\202\001\312A\026compute.googleapis.com\322AVht" + + "tps://www.googleapis.com/auth/compute,ht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "form\212\324\333\322\017\n2026-09-012\201\005\n\035GlobalFrontendS" + + "ettingsService\022\300\001\n\003Get\0228.google.cloud.co" + + "mpute.v1.GetGlobalFrontendSettingRequest" + + "\032/.google.cloud.compute.v1.GlobalFronten" + + "dSettings\"N\332A\007project\202\323\344\223\002>\022." - + "google.cloud.compute.v1.AggregatedListGl" - + "obalOperationsRequest\0320.google.cloud.com" - + "pute.v1.OperationAggregatedList\"F\332A\007proj" - + "ect\202\323\344\223\0026\0224/compute/v1/projects/{project" - + "}/aggregated/operations\022\321\001\n\006Delete\0225.goo" - + "gle.cloud.compute.v1.DeleteGlobalOperati" - + "onRequest\0326.google.cloud.compute.v1.Dele" - + "teGlobalOperationResponse\"X\332A\021project,op" - + "eration\202\323\344\223\002>*\022.googl" + + "e.cloud.compute.v1.AggregatedListGlobalO" + + "perationsRequest\0320.google.cloud.compute." + + "v1.OperationAggregatedList\"F\332A\007project\202\323" + + "\344\223\0026\0224/compute/v1/projects/{project}/agg" + + "regated/operations\022\321\001\n\006Delete\0225.google.c" + + "loud.compute.v1.DeleteGlobalOperationReq" + + "uest\0326.google.cloud.compute.v1.DeleteGlo" + + "balOperationResponse\"X\332A\021project,operati" + + "on\202\323\344\223\002>*\022.google.cloud.compute." + + "v1.GetGlobalOrganizationOperationRequest" + + "\032\".google.cloud.compute.v1.Operation\"J\332A" + + "\toperation\220N\001\202\323\344\223\0025\0223/compute/v1/locatio" + + "ns/global/operations/{operation}\022\244\001\n\004Lis" + + "t\022@.google.cloud.compute.v1.ListGlobalOr" + + "ganizationOperationsRequest\032&.google.clo" + + "ud.compute.v1.OperationList\"2\332A\000\202\323\344\223\002)\022\'" + + "/compute/v1/locations/global/operations\032" + + "\202\001\312A\026compute.googleapis.com\322AVhttps://ww" + + "w.googleapis.com/auth/compute,https://ww" + + "w.googleapis.com/auth/cloud-platform\212\324\333\322" + + "\017\n2026-09-012\342\013\n\035GlobalPublicDelegatedPr" + + "efixes\022\207\002\n\006Delete\022B.google.cloud.compute" + + ".v1.DeleteGlobalPublicDelegatedPrefixeRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\224\001\332A\037project,public_delegated_prefix\212N" + + "\020GlobalOperations\202\323\344\223\002Y*W/compute/v1/pro" + + "jects/{project}/global/publicDelegatedPr" + + "efixes/{public_delegated_prefix}\022\372\001\n\003Get" + + "\022?.google.cloud.compute.v1.GetGlobalPubl" + + "icDelegatedPrefixeRequest\032..google.cloud" + + ".compute.v1.PublicDelegatedPrefix\"\201\001\332A\037p" + + "roject,public_delegated_prefix\202\323\344\223\002Y\022W/c" + + "ompute/v1/projects/{project}/global/publ" + + "icDelegatedPrefixes/{public_delegated_pr" + + "efix}\022\230\002\n\006Insert\022B.google.cloud.compute." + + "v1.InsertGlobalPublicDelegatedPrefixeReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\245\001\332A(project,public_delegated_prefix_re" + + "source\212N\020GlobalOperations\202\323\344\223\002a\"=/comput" + + "e/v1/projects/{project}/global/publicDel" + + "egatedPrefixes: public_delegated_prefix_" + + "resource\022\316\001\n\004List\022A.google.cloud.compute" + + ".v1.ListGlobalPublicDelegatedPrefixesReq" + + "uest\0322.google.cloud.compute.v1.PublicDel" + + "egatedPrefixList\"O\332A\007project\202\323\344\223\002?\022=/com" + + "pute/v1/projects/{project}/global/public" + + "DelegatedPrefixes\022\310\002\n\005Patch\022A.google.clo" + + "ud.compute.v1.PatchGlobalPublicDelegated" + + "PrefixeRequest\032\".google.cloud.compute.v1" + + ".Operation\"\327\001\332A@project,public_delegated" + + "_prefix,public_delegated_prefix_resource" + + "\212N\020GlobalOperations\202\323\344\223\002{2W/compute/v1/p" + + "rojects/{project}/global/publicDelegated" + + "Prefixes/{public_delegated_prefix}: publ" + + "ic_delegated_prefix_resource\032\202\001\312A\026comput" + "e.googleapis.com\322AVhttps://www.googleapi" + "s.com/auth/compute,https://www.googleapi" + "s.com/auth/cloud-platform\212\324\333\322\017\n2026-09-0" - + "12\335\005\n\034GlobalOrganizationOperations\022\330\001\n\006D" - + "elete\022A.google.cloud.compute.v1.DeleteGl" - + "obalOrganizationOperationRequest\032B.googl" - + "e.cloud.compute.v1.DeleteGlobalOrganizat" - + "ionOperationResponse\"G\332A\toperation\202\323\344\223\0025" - + "*3/compute/v1/locations/global/operation" - + "s/{operation}\022\265\001\n\003Get\022>.google.cloud.com" - + "pute.v1.GetGlobalOrganizationOperationRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"J\332A\toperation\220N\001\202\323\344\223\0025\0223/compute/v1/lo" - + "cations/global/operations/{operation}\022\244\001" - + "\n\004List\022@.google.cloud.compute.v1.ListGlo" - + "balOrganizationOperationsRequest\032&.googl" - + "e.cloud.compute.v1.OperationList\"2\332A\000\202\323\344" - + "\223\002)\022\'/compute/v1/locations/global/operat" - + "ions\032\202\001\312A\026compute.googleapis.com\322AVhttps" - + "://www.googleapis.com/auth/compute,https" - + "://www.googleapis.com/auth/cloud-platfor" - + "m\212\324\333\322\017\n2026-09-012\342\013\n\035GlobalPublicDelega" - + "tedPrefixes\022\207\002\n\006Delete\022B.google.cloud.co" - + "mpute.v1.DeleteGlobalPublicDelegatedPref" - + "ixeRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\224\001\332A\037project,public_delegated_pre" - + "fix\212N\020GlobalOperations\202\323\344\223\002Y*W/compute/v" - + "1/projects/{project}/global/publicDelega" - + "tedPrefixes/{public_delegated_prefix}\022\372\001" - + "\n\003Get\022?.google.cloud.compute.v1.GetGloba" - + "lPublicDelegatedPrefixeRequest\032..google." - + "cloud.compute.v1.PublicDelegatedPrefix\"\201" - + "\001\332A\037project,public_delegated_prefix\202\323\344\223\002" - + "Y\022W/compute/v1/projects/{project}/global" - + "/publicDelegatedPrefixes/{public_delegat" - + "ed_prefix}\022\230\002\n\006Insert\022B.google.cloud.com" - + "pute.v1.InsertGlobalPublicDelegatedPrefi" - + "xeRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\245\001\332A(project,public_delegated_pref" - + "ix_resource\212N\020GlobalOperations\202\323\344\223\002a\"=/c" - + "ompute/v1/projects/{project}/global/publ" - + "icDelegatedPrefixes: public_delegated_pr" - + "efix_resource\022\316\001\n\004List\022A.google.cloud.co" - + "mpute.v1.ListGlobalPublicDelegatedPrefix" - + "esRequest\0322.google.cloud.compute.v1.Publ" - + "icDelegatedPrefixList\"O\332A\007project\202\323\344\223\002?\022" - + "=/compute/v1/projects/{project}/global/p" - + "ublicDelegatedPrefixes\022\310\002\n\005Patch\022A.googl" - + "e.cloud.compute.v1.PatchGlobalPublicDele" - + "gatedPrefixeRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\327\001\332A@project,public_dele" - + "gated_prefix,public_delegated_prefix_res" - + "ource\212N\020GlobalOperations\202\323\344\223\002{2W/compute" - + "/v1/projects/{project}/global/publicDele" - + "gatedPrefixes/{public_delegated_prefix}:" - + " public_delegated_prefix_resource\032\202\001\312A\026c" + + "12\326\016\n\031GlobalVmExtensionPolicies\022\354\001\n\016Aggr" + + "egatedList\022G.google.cloud.compute.v1.Agg" + + "regatedListGlobalVmExtensionPoliciesRequ" + + "est\032@.google.cloud.compute.v1.VmExtensio" + + "nPolicyAggregatedListResponse\"O\332A\007projec" + + "t\202\323\344\223\002?\022=/compute/v1/projects/{project}/" + + "aggregated/vmExtensionPolicies\022\225\003\n\006Delet" + + "e\022=.google.cloud.compute.v1.DeleteGlobal" + + "VmExtensionPolicyRequest\032\".google.cloud." + + "compute.v1.Operation\"\247\002\332Afproject,global" + + "_vm_extension_policy,global_vm_extension" + + "_policy_rollout_operation_rollout_input_" + + "resource\212N\020GlobalOperations\202\323\344\223\002\244\001\"]/com" + + "pute/v1/projects/{project}/global/vmExte" + + "nsionPolicies/{global_vm_extension_polic" + + "y}/delete:Cglobal_vm_extension_policy_ro" + + "llout_operation_rollout_input_resource\022\371" + + "\001\n\003Get\022:.google.cloud.compute.v1.GetGlob" + + "alVmExtensionPolicyRequest\0320.google.clou" + + "d.compute.v1.GlobalVmExtensionPolicy\"\203\001\332" + + "A\"project,global_vm_extension_policy\202\323\344\223" + + "\002X\022V/compute/v1/projects/{project}/globa" + + "l/vmExtensionPolicies/{global_vm_extensi" + + "on_policy}\022\225\002\n\006Insert\022=.google.cloud.com" + + "pute.v1.InsertGlobalVmExtensionPolicyReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\247\001\332A+project,global_vm_extension_policy" + + "_resource\212N\020GlobalOperations\202\323\344\223\002`\"9/com" + + "pute/v1/projects/{project}/global/vmExte" + + "nsionPolicies:#global_vm_extension_polic" + + "y_resource\022\310\001\n\004List\022=.google.cloud.compu" + + "te.v1.ListGlobalVmExtensionPoliciesReque" + + "st\0324.google.cloud.compute.v1.GlobalVmExt" + + "ensionPolicyList\"K\332A\007project\202\323\344\223\002;\0229/com" + + "pute/v1/projects/{project}/global/vmExte" + + "nsionPolicies\022\315\002\n\006Update\022=.google.cloud." + + "compute.v1.UpdateGlobalVmExtensionPolicy" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\337\001\332AFproject,global_vm_extension_pol" + + "icy,global_vm_extension_policy_resource\212" + + "N\020GlobalOperations\202\323\344\223\002}2V/compute/v1/pr" + + "ojects/{project}/global/vmExtensionPolic" + + "ies/{global_vm_extension_policy}:#global" + + "_vm_extension_policy_resource\032\202\001\312A\026compu" + + "te.googleapis.com\322AVhttps://www.googleap" + + "is.com/auth/compute,https://www.googleap" + + "is.com/auth/cloud-platform\212\324\333\322\017\n2026-09-" + + "012\317\017\n\014HealthChecks\022\313\001\n\016AggregatedList\022:" + + ".google.cloud.compute.v1.AggregatedListH" + + "ealthChecksRequest\0323.google.cloud.comput" + + "e.v1.HealthChecksAggregatedList\"H\332A\007proj" + + "ect\202\323\344\223\0028\0226/compute/v1/projects/{project" + + "}/aggregated/healthChecks\022\324\001\n\006Delete\0221.g" + + "oogle.cloud.compute.v1.DeleteHealthCheck" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"s\332A\024project,health_check\212N\020GlobalOpe" + + "rations\202\323\344\223\002C*A/compute/v1/projects/{pro" + + "ject}/global/healthChecks/{health_check}" + + "\022\275\001\n\003Get\022..google.cloud.compute.v1.GetHe" + + "althCheckRequest\032$.google.cloud.compute." + + "v1.HealthCheck\"`\332A\024project,health_check\202" + + "\323\344\223\002C\022A/compute/v1/projects/{project}/gl" + + "obal/healthChecks/{health_check}\022\346\001\n\006Ins" + + "ert\0221.google.cloud.compute.v1.InsertHeal" + + "thCheckRequest\032\".google.cloud.compute.v1" + + ".Operation\"\204\001\332A\035project,health_check_res" + + "ource\212N\020GlobalOperations\202\323\344\223\002K\"2/compute" + + "/v1/projects/{project}/global/healthChec" + + "ks:\025health_check_resource\022\250\001\n\004List\0220.goo" + + "gle.cloud.compute.v1.ListHealthChecksReq" + + "uest\032(.google.cloud.compute.v1.HealthChe" + + "ckList\"D\332A\007project\202\323\344\223\0024\0222/compute/v1/pr" + + "ojects/{project}/global/healthChecks\022\200\002\n" + + "\005Patch\0220.google.cloud.compute.v1.PatchHe" + + "althCheckRequest\032\".google.cloud.compute." + + "v1.Operation\"\240\001\332A*project,health_check,h" + + "ealth_check_resource\212N\020GlobalOperations\202" + + "\323\344\223\002Z2A/compute/v1/projects/{project}/gl" + + "obal/healthChecks/{health_check}:\025health" + + "_check_resource\022\270\002\n\022TestIamPermissions\022=" + + ".google.cloud.compute.v1.TestIamPermissi" + + "onsHealthCheckRequest\0320.google.cloud.com" + + "pute.v1.TestPermissionsResponse\"\260\001\332A2pro" + + "ject,resource,test_permissions_request_r" + + "esource\202\323\344\223\002u\"P/compute/v1/projects/{pro" + + "ject}/global/healthChecks/{resource}/tes" + + "tIamPermissions:!test_permissions_reques" + + "t_resource\022\202\002\n\006Update\0221.google.cloud.com" + + "pute.v1.UpdateHealthCheckRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\240\001\332A*projec" + + "t,health_check,health_check_resource\212N\020G" + + "lobalOperations\202\323\344\223\002Z\032A/compute/v1/proje" + + "cts/{project}/global/healthChecks/{healt" + + "h_check}:\025health_check_resource\032\202\001\312A\026com" + + "pute.googleapis.com\322AVhttps://www.google" + + "apis.com/auth/compute,https://www.google" + + "apis.com/auth/cloud-platform\212\324\333\322\017\n2026-0" + + "9-012\307\006\n\005Hosts\022\275\001\n\003Get\022\'.google.cloud.co" + + "mpute.v1.GetHostRequest\032\035.google.cloud.c" + + "ompute.v1.Host\"n\332A\035project,zone,associat" + + "ion,host\202\323\344\223\002H\022F/compute/v1/projects/{pr" + + "oject}/zones/{zone}/{association}/hosts/" + + "{host}\022\264\002\n\nGetVersion\022..google.cloud.com" + + "pute.v1.GetVersionHostRequest\032\".google.c" + + "loud.compute.v1.Operation\"\321\001\332A@project,z" + + "one,association,host,hosts_get_version_r" + + "equest_resource\212N\016ZoneOperations\202\323\344\223\002w\"Q" + + "/compute/v1/projects/{project}/zones/{zo" + + "ne}/{association}/hosts/{host}/getVersio" + + "n:\"hosts_get_version_request_resource\022\301\001" + + "\n\004List\022).google.cloud.compute.v1.ListHos" + + "tsRequest\032*.google.cloud.compute.v1.Host" + + "sListResponse\"b\332A\030project,zone,associati" + + "on\202\323\344\223\002A\022?/compute/v1/projects/{project}" + + "/zones/{zone}/{association}/hosts\032\202\001\312A\026c" + "ompute.googleapis.com\322AVhttps://www.goog" + "leapis.com/auth/compute,https://www.goog" + "leapis.com/auth/cloud-platform\212\324\333\322\017\n2026" - + "-09-012\326\016\n\031GlobalVmExtensionPolicies\022\354\001\n" - + "\016AggregatedList\022G.google.cloud.compute.v" - + "1.AggregatedListGlobalVmExtensionPolicie" - + "sRequest\032@.google.cloud.compute.v1.VmExt" - + "ensionPolicyAggregatedListResponse\"O\332A\007p" - + "roject\202\323\344\223\002?\022=/compute/v1/projects/{proj" - + "ect}/aggregated/vmExtensionPolicies\022\225\003\n\006" - + "Delete\022=.google.cloud.compute.v1.DeleteG" - + "lobalVmExtensionPolicyRequest\032\".google.c" - + "loud.compute.v1.Operation\"\247\002\332Afproject,g" - + "lobal_vm_extension_policy,global_vm_exte" - + "nsion_policy_rollout_operation_rollout_i" - + "nput_resource\212N\020GlobalOperations\202\323\344\223\002\244\001\"" - + "]/compute/v1/projects/{project}/global/v" - + "mExtensionPolicies/{global_vm_extension_" - + "policy}/delete:Cglobal_vm_extension_poli" - + "cy_rollout_operation_rollout_input_resou" - + "rce\022\371\001\n\003Get\022:.google.cloud.compute.v1.Ge" - + "tGlobalVmExtensionPolicyRequest\0320.google" - + ".cloud.compute.v1.GlobalVmExtensionPolic" - + "y\"\203\001\332A\"project,global_vm_extension_polic" - + "y\202\323\344\223\002X\022V/compute/v1/projects/{project}/" - + "global/vmExtensionPolicies/{global_vm_ex" - + "tension_policy}\022\225\002\n\006Insert\022=.google.clou" - + "d.compute.v1.InsertGlobalVmExtensionPoli" - + "cyRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\247\001\332A+project,global_vm_extension_p" - + "olicy_resource\212N\020GlobalOperations\202\323\344\223\002`\"" - + "9/compute/v1/projects/{project}/global/v" - + "mExtensionPolicies:#global_vm_extension_" - + "policy_resource\022\310\001\n\004List\022=.google.cloud." - + "compute.v1.ListGlobalVmExtensionPolicies" - + "Request\0324.google.cloud.compute.v1.Global" - + "VmExtensionPolicyList\"K\332A\007project\202\323\344\223\002;\022" - + "9/compute/v1/projects/{project}/global/v" - + "mExtensionPolicies\022\315\002\n\006Update\022=.google.c" - + "loud.compute.v1.UpdateGlobalVmExtensionP" - + "olicyRequest\032\".google.cloud.compute.v1.O" - + "peration\"\337\001\332AFproject,global_vm_extensio" - + "n_policy,global_vm_extension_policy_reso" - + "urce\212N\020GlobalOperations\202\323\344\223\002}2V/compute/" - + "v1/projects/{project}/global/vmExtension" - + "Policies/{global_vm_extension_policy}:#g" - + "lobal_vm_extension_policy_resource\032\202\001\312A\026" - + "compute.googleapis.com\322AVhttps://www.goo" - + "gleapis.com/auth/compute,https://www.goo" - + "gleapis.com/auth/cloud-platform\212\324\333\322\017\n202" - + "6-09-012\317\017\n\014HealthChecks\022\313\001\n\016AggregatedL" - + "ist\022:.google.cloud.compute.v1.Aggregated" - + "ListHealthChecksRequest\0323.google.cloud.c" - + "ompute.v1.HealthChecksAggregatedList\"H\332A" - + "\007project\202\323\344\223\0028\0226/compute/v1/projects/{pr" - + "oject}/aggregated/healthChecks\022\324\001\n\006Delet" - + "e\0221.google.cloud.compute.v1.DeleteHealth" - + "CheckRequest\032\".google.cloud.compute.v1.O" - + "peration\"s\332A\024project,health_check\212N\020Glob" - + "alOperations\202\323\344\223\002C*A/compute/v1/projects" - + "/{project}/global/healthChecks/{health_c" - + "heck}\022\275\001\n\003Get\022..google.cloud.compute.v1." - + "GetHealthCheckRequest\032$.google.cloud.com" - + "pute.v1.HealthCheck\"`\332A\024project,health_c" - + "heck\202\323\344\223\002C\022A/compute/v1/projects/{projec" - + "t}/global/healthChecks/{health_check}\022\346\001" - + "\n\006Insert\0221.google.cloud.compute.v1.Inser" - + "tHealthCheckRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\204\001\332A\035project,health_chec" - + "k_resource\212N\020GlobalOperations\202\323\344\223\002K\"2/co" - + "mpute/v1/projects/{project}/global/healt" - + "hChecks:\025health_check_resource\022\250\001\n\004List\022" - + "0.google.cloud.compute.v1.ListHealthChec" - + "ksRequest\032(.google.cloud.compute.v1.Heal" - + "thCheckList\"D\332A\007project\202\323\344\223\0024\0222/compute/" - + "v1/projects/{project}/global/healthCheck" - + "s\022\200\002\n\005Patch\0220.google.cloud.compute.v1.Pa" - + "tchHealthCheckRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\240\001\332A*project,health_ch" - + "eck,health_check_resource\212N\020GlobalOperat" - + "ions\202\323\344\223\002Z2A/compute/v1/projects/{projec" - + "t}/global/healthChecks/{health_check}:\025h" - + "ealth_check_resource\022\270\002\n\022TestIamPermissi" - + "ons\022=.google.cloud.compute.v1.TestIamPer" - + "missionsHealthCheckRequest\0320.google.clou" - + "d.compute.v1.TestPermissionsResponse\"\260\001\332" - + "A2project,resource,test_permissions_requ" - + "est_resource\202\323\344\223\002u\"P/compute/v1/projects" - + "/{project}/global/healthChecks/{resource" - + "}/testIamPermissions:!test_permissions_r" - + "equest_resource\022\202\002\n\006Update\0221.google.clou" - + "d.compute.v1.UpdateHealthCheckRequest\032\"." - + "google.cloud.compute.v1.Operation\"\240\001\332A*p" - + "roject,health_check,health_check_resourc" - + "e\212N\020GlobalOperations\202\323\344\223\002Z\032A/compute/v1/" - + "projects/{project}/global/healthChecks/{" - + "health_check}:\025health_check_resource\032\202\001\312" - + "A\026compute.googleapis.com\322AVhttps://www.g" - + "oogleapis.com/auth/compute,https://www.g" - + "oogleapis.com/auth/cloud-platform\212\324\333\322\017\n2" - + "026-09-012\307\006\n\005Hosts\022\275\001\n\003Get\022\'.google.clo" - + "ud.compute.v1.GetHostRequest\032\035.google.cl" - + "oud.compute.v1.Host\"n\332A\035project,zone,ass" - + "ociation,host\202\323\344\223\002H\022F/compute/v1/project" - + "s/{project}/zones/{zone}/{association}/h" - + "osts/{host}\022\264\002\n\nGetVersion\022..google.clou" - + "d.compute.v1.GetVersionHostRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\321\001\332A@proj" - + "ect,zone,association,host,hosts_get_vers" - + "ion_request_resource\212N\016ZoneOperations\202\323\344" - + "\223\002w\"Q/compute/v1/projects/{project}/zone" - + "s/{zone}/{association}/hosts/{host}/getV" - + "ersion:\"hosts_get_version_request_resour" - + "ce\022\301\001\n\004List\022).google.cloud.compute.v1.Li" - + "stHostsRequest\032*.google.cloud.compute.v1" - + ".HostsListResponse\"b\332A\030project,zone,asso" - + "ciation\202\323\344\223\002A\022?/compute/v1/projects/{pro" - + "ject}/zones/{zone}/{association}/hosts\032\202" - + "\001\312A\026compute.googleapis.com\322AVhttps://www" - + ".googleapis.com/auth/compute,https://www" - + ".googleapis.com/auth/cloud-platform\212\324\333\322\017" - + "\n2026-09-012\224\003\n\020ImageFamilyViews\022\310\001\n\003Get" - + "\0222.google.cloud.compute.v1.GetImageFamil" - + "yViewRequest\032(.google.cloud.compute.v1.I" - + "mageFamilyView\"c\332A\023project,zone,family\202\323" - + "\344\223\002G\022E/compute/v1/projects/{project}/zon" - + "es/{zone}/imageFamilyViews/{family}\032\264\001\312A" - + "\026compute.googleapis.com\322A\207\001https://www.g" - + "oogleapis.com/auth/compute.readonly,http" - + "s://www.googleapis.com/auth/compute,http" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rm\212\324\333\322\017\n2026-09-012\313\004\n\nImageViews\022\306\001\n\003Ge" - + "t\022,.google.cloud.compute.v1.GetImageView" - + "Request\032\".google.cloud.compute.v1.ImageV" - + "iew\"m\332A\032project,region,resource_id\202\323\344\223\002J" - + "\022H/compute/v1/projects/{project}/regions" - + "/{region}/imageViews/{resource_id}\022\274\001\n\004L" - + "ist\022..google.cloud.compute.v1.ListImageV" - + "iewsRequest\032/.google.cloud.compute.v1.Im" - + "ageViewsListResponse\"S\332A\016project,region\202" - + "\323\344\223\002<\022:/compute/v1/projects/{project}/re" - + "gions/{region}/imageViews\032\264\001\312A\026compute.g" - + "oogleapis.com\322A\207\001https://www.googleapis." - + "com/auth/compute.readonly,https://www.go" - + "ogleapis.com/auth/compute,https://www.go" - + "ogleapis.com/auth/cloud-platform\212\324\333\322\017\n20" - + "26-09-012\215\024\n\006Images\022\272\001\n\006Delete\022+.google." - + "cloud.compute.v1.DeleteImageRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"_\332A\rproj" - + "ect,image\212N\020GlobalOperations\202\323\344\223\0026*4/com" + + "-09-012\224\003\n\020ImageFamilyViews\022\310\001\n\003Get\0222.go" + + "ogle.cloud.compute.v1.GetImageFamilyView" + + "Request\032(.google.cloud.compute.v1.ImageF" + + "amilyView\"c\332A\023project,zone,family\202\323\344\223\002G\022" + + "E/compute/v1/projects/{project}/zones/{z" + + "one}/imageFamilyViews/{family}\032\264\001\312A\026comp" + + "ute.googleapis.com\322A\207\001https://www.google" + + "apis.com/auth/compute.readonly,https://w" + + "ww.googleapis.com/auth/compute,https://w" + + "ww.googleapis.com/auth/cloud-platform\212\324\333" + + "\322\017\n2026-09-012\313\004\n\nImageViews\022\306\001\n\003Get\022,.g" + + "oogle.cloud.compute.v1.GetImageViewReque" + + "st\032\".google.cloud.compute.v1.ImageView\"m" + + "\332A\032project,region,resource_id\202\323\344\223\002J\022H/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/imageViews/{resource_id}\022\274\001\n\004List\022." + + ".google.cloud.compute.v1.ListImageViewsR" + + "equest\032/.google.cloud.compute.v1.ImageVi" + + "ewsListResponse\"S\332A\016project,region\202\323\344\223\002<" + + "\022:/compute/v1/projects/{project}/regions" + + "/{region}/imageViews\032\264\001\312A\026compute.google" + + "apis.com\322A\207\001https://www.googleapis.com/a" + + "uth/compute.readonly,https://www.googlea" + + "pis.com/auth/compute,https://www.googlea" + + "pis.com/auth/cloud-platform\212\324\333\322\017\n2026-09" + + "-012\215\024\n\006Images\022\272\001\n\006Delete\022+.google.cloud" + + ".compute.v1.DeleteImageRequest\032\".google." + + "cloud.compute.v1.Operation\"_\332A\rproject,i" + + "mage\212N\020GlobalOperations\202\323\344\223\0026*4/compute/" + + "v1/projects/{project}/global/images/{ima" + + "ge}\022\204\002\n\tDeprecate\022..google.cloud.compute" + + ".v1.DeprecateImageRequest\032\".google.cloud" + + ".compute.v1.Operation\"\242\001\332A)project,image" + + ",deprecation_status_resource\212N\020GlobalOpe" + + "rations\202\323\344\223\002]\">/compute/v1/projects/{pro" + + "ject}/global/images/{image}/deprecate:\033d" + + "eprecation_status_resource\022\235\001\n\003Get\022(.goo" + + "gle.cloud.compute.v1.GetImageRequest\032\036.g" + + "oogle.cloud.compute.v1.Image\"L\332A\rproject" + + ",image\202\323\344\223\0026\0224/compute/v1/projects/{proj" + + "ect}/global/images/{image}\022\272\001\n\rGetFromFa" + + "mily\0222.google.cloud.compute.v1.GetFromFa" + + "milyImageRequest\032\036.google.cloud.compute." + + "v1.Image\"U\332A\016project,family\202\323\344\223\002>\022\",/" + + "compute/v1/projects/{project}/global/ima" + + "ges:\016image_resource\022\226\001\n\004List\022*.google.cl" + + "oud.compute.v1.ListImagesRequest\032\".googl" + + "e.cloud.compute.v1.ImageList\">\332A\007project" + + "\202\323\344\223\002.\022,/compute/v1/projects/{project}/g" + + "lobal/images\022\327\001\n\005Patch\022*.google.cloud.co" + + "mpute.v1.PatchImageRequest\032\".google.clou" + + "d.compute.v1.Operation\"~\332A\034project,image" + + ",image_resource\212N\020GlobalOperations\202\323\344\223\002F" + + "24/compute/v1/projects/{project}/global/" + + "images/{image}:\016image_resource\022\213\002\n\014SetIa" + + "mPolicy\0221.google.cloud.compute.v1.SetIam" + + "PolicyImageRequest\032\037.google.cloud.comput" + + "e.v1.Policy\"\246\001\332A3project,resource,global", + "_set_policy_request_resource\202\323\344\223\002j\"D/com" + "pute/v1/projects/{project}/global/images" - + "/{image}\022\204\002\n\tDeprecate\022..google.cloud.co" - + "mpute.v1.DeprecateImageRequest\032\".google." - + "cloud.compute.v1.Operation\"\242\001\332A)project," - + "image,deprecation_status_resource\212N\020Glob" - + "alOperations\202\323\344\223\002]\">/compute/v1/projects" - + "/{project}/global/images/{image}/depreca" - + "te:\033deprecation_status_resource\022\235\001\n\003Get\022" - + "(.google.cloud.compute.v1.GetImageReques" - + "t\032\036.google.cloud.compute.v1.Image\"L\332A\rpr" - + "oject,image\202\323\344\223\0026\0224/compute/v1/projects/" - + "{project}/global/images/{image}\022\272\001\n\rGetF" - + "romFamily\0222.google.cloud.compute.v1.GetF" - + "romFamilyImageRequest\032\036.google.cloud.com" - + "pute.v1.Image\"U\332A\016project,family\202\323\344\223\002>\022<" - + "/compute/v1/projects/{project}/global/im" - + "ages/family/{family}\022\303\001\n\014GetIamPolicy\0221." - + "google.cloud.compute.v1.GetIamPolicyImag" - + "eRequest\032\037.google.cloud.compute.v1.Polic" - + "y\"_\332A\020project,resource\202\323\344\223\002F\022D/compute/v" - + "1/projects/{project}/global/images/{reso" - + "urce}/getIamPolicy\022\313\001\n\006Insert\022+.google.c" - + "loud.compute.v1.InsertImageRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"p\332A\026proje" - + "ct,image_resource\212N\020GlobalOperations\202\323\344\223" - + "\002>\",/compute/v1/projects/{project}/globa" - + "l/images:\016image_resource\022\226\001\n\004List\022*.goog" - + "le.cloud.compute.v1.ListImagesRequest\032\"." - + "google.cloud.compute.v1.ImageList\">\332A\007pr" - + "oject\202\323\344\223\002.\022,/compute/v1/projects/{proje" - + "ct}/global/images\022\327\001\n\005Patch\022*.google.clo" - + "ud.compute.v1.PatchImageRequest\032\".google" - + ".cloud.compute.v1.Operation\"~\332A\034project," - + "image,image_resource\212N\020GlobalOperations\202" - + "\323\344\223\002F24/compute/v1/projects/{project}/gl" - + "obal/images/{image}:\016image_resource\022\213\002\n\014" - + "SetIamPolicy\0221.google.cloud.compute.v1.S" - + "etIamPolicyImageRequest\032\037.google.cloud.c" - + "ompute.v1.Policy\"\246\001\332A3project,resource,g" - + "lobal_set_policy_request_resource\202\323\344\223\002j\"", - "D/compute/v1/projects/{project}/global/i" - + "mages/{resource}/setIamPolicy:\"global_se" - + "t_policy_request_resource\022\230\002\n\tSetLabels\022" - + "..google.cloud.compute.v1.SetLabelsImage" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\266\001\332A3project,resource,global_set_lab" - + "els_request_resource\212N\020GlobalOperations\202" - + "\323\344\223\002g\"A/compute/v1/projects/{project}/gl" - + "obal/images/{resource}/setLabels:\"global" - + "_set_labels_request_resource\022\254\002\n\022TestIam" - + "Permissions\0227.google.cloud.compute.v1.Te" - + "stIamPermissionsImageRequest\0320.google.cl" - + "oud.compute.v1.TestPermissionsResponse\"\252" - + "\001\332A2project,resource,test_permissions_re" - + "quest_resource\202\323\344\223\002o\"J/compute/v1/projec" - + "ts/{project}/global/images/{resource}/te" - + "stIamPermissions:!test_permissions_reque" - + "st_resource\032\202\001\312A\026compute.googleapis.com\322" - + "AVhttps://www.googleapis.com/auth/comput" - + "e,https://www.googleapis.com/auth/cloud-" - + "platform\212\324\333\322\017\n2026-09-012\263\016\n\"InstanceGro" - + "upManagerResizeRequests\022\311\002\n\006Cancel\022G.goo" - + "gle.cloud.compute.v1.CancelInstanceGroup" - + "ManagerResizeRequestRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\321\001\332A2project,zon" - + "e,instance_group_manager,resize_request\212" - + "N\016ZoneOperations\202\323\344\223\002\204\001\"\201\001/compute/v1/pr" - + "ojects/{project}/zones/{zone}/instanceGr" - + "oupManagers/{instance_group_manager}/res" - + "izeRequests/{resize_request}/cancel\022\300\002\n\006" - + "Delete\022G.google.cloud.compute.v1.DeleteI" - + "nstanceGroupManagerResizeRequestRequest\032" - + "\".google.cloud.compute.v1.Operation\"\310\001\332A" - + "2project,zone,instance_group_manager,res" - + "ize_request\212N\016ZoneOperations\202\323\344\223\002|*z/com" - + "pute/v1/projects/{project}/zones/{zone}/" - + "instanceGroupManagers/{instance_group_ma" - + "nager}/resizeRequests/{resize_request}\022\301" - + "\002\n\003Get\022D.google.cloud.compute.v1.GetInst" - + "anceGroupManagerResizeRequestRequest\032:.g" - + "oogle.cloud.compute.v1.InstanceGroupMana" - + "gerResizeRequest\"\267\001\332A2project,zone,insta" - + "nce_group_manager,resize_request\202\323\344\223\002|\022z" - + "/compute/v1/projects/{project}/zones/{zo" - + "ne}/instanceGroupManagers/{instance_grou" - + "p_manager}/resizeRequests/{resize_reques" - + "t}\022\200\003\n\006Insert\022G.google.cloud.compute.v1." - + "InsertInstanceGroupManagerResizeRequestR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\210\002\332ARproject,zone,instance_group_mana" - + "ger,instance_group_manager_resize_reques" - + "t_resource\212N\016ZoneOperations\202\323\344\223\002\233\001\"i/com" - + "pute/v1/projects/{project}/zones/{zone}/" - + "instanceGroupManagers/{instance_group_ma" - + "nager}/resizeRequests:.instance_group_ma" - + "nager_resize_request_resource\022\261\002\n\004List\022F" - + ".google.cloud.compute.v1.ListInstanceGro" - + "upManagerResizeRequestsRequest\032G.google." - + "cloud.compute.v1.InstanceGroupManagerRes" - + "izeRequestsListResponse\"\227\001\332A#project,zon" - + "e,instance_group_manager\202\323\344\223\002k\022i/compute" - + "/v1/projects/{project}/zones/{zone}/inst" - + "anceGroupManagers/{instance_group_manage" - + "r}/resizeRequests\032\202\001\312A\026compute.googleapi" - + "s.com\322AVhttps://www.googleapis.com/auth/" - + "compute,https://www.googleapis.com/auth/" - + "cloud-platform\212\324\333\322\017\n2026-09-012\346E\n\025Insta" - + "nceGroupManagers\022\241\003\n\020AbandonInstances\022D." - + "google.cloud.compute.v1.AbandonInstances" - + "InstanceGroupManagerRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\242\002\332A^project,zon" - + "e,instance_group_manager,instance_group_" - + "managers_abandon_instances_request_resou" - + "rce\212N\016ZoneOperations\202\323\344\223\002\251\001\"k/compute/v1" - + "/projects/{project}/zones/{zone}/instanc" - + "eGroupManagers/{instance_group_manager}/" - + "abandonInstances::instance_group_manager" - + "s_abandon_instances_request_resource\022\345\001\n" - + "\016AggregatedList\022C.google.cloud.compute.v" - + "1.AggregatedListInstanceGroupManagersReq" - + "uest\032;.google.cloud.compute.v1.InstanceG" - + "roupManagerAggregatedList\"Q\332A\007project\202\323\344" - + "\223\002A\022?/compute/v1/projects/{project}/aggr" - + "egated/instanceGroupManagers\022\256\003\n\027ApplyUp" - + "datesToInstances\022K.google.cloud.compute." - + "v1.ApplyUpdatesToInstancesInstanceGroupM" - + "anagerRequest\032\".google.cloud.compute.v1." - + "Operation\"\241\002\332AZproject,zone,instance_gro" - + "up_manager,instance_group_managers_apply" - + "_updates_request_resource\212N\016ZoneOperatio" - + "ns\202\323\344\223\002\254\001\"r/compute/v1/projects/{project" - + "}/zones/{zone}/instanceGroupManagers/{in" - + "stance_group_manager}/applyUpdatesToInst" - + "ances:6instance_group_managers_apply_upd" - + "ates_request_resource\022\234\003\n\017CreateInstance" - + "s\022C.google.cloud.compute.v1.CreateInstan" - + "cesInstanceGroupManagerRequest\032\".google." - + "cloud.compute.v1.Operation\"\237\002\332A]project," - + "zone,instance_group_manager,instance_gro" - + "up_managers_create_instances_request_res" - + "ource\212N\016ZoneOperations\202\323\344\223\002\247\001\"j/compute/" + + "/{resource}/setIamPolicy:\"global_set_pol" + + "icy_request_resource\022\230\002\n\tSetLabels\022..goo" + + "gle.cloud.compute.v1.SetLabelsImageReque" + + "st\032\".google.cloud.compute.v1.Operation\"\266" + + "\001\332A3project,resource,global_set_labels_r" + + "equest_resource\212N\020GlobalOperations\202\323\344\223\002g" + + "\"A/compute/v1/projects/{project}/global/" + + "images/{resource}/setLabels:\"global_set_" + + "labels_request_resource\022\254\002\n\022TestIamPermi" + + "ssions\0227.google.cloud.compute.v1.TestIam" + + "PermissionsImageRequest\0320.google.cloud.c" + + "ompute.v1.TestPermissionsResponse\"\252\001\332A2p" + + "roject,resource,test_permissions_request" + + "_resource\202\323\344\223\002o\"J/compute/v1/projects/{p" + + "roject}/global/images/{resource}/testIam" + + "Permissions:!test_permissions_request_re" + + "source\032\202\001\312A\026compute.googleapis.com\322AVhtt" + + "ps://www.googleapis.com/auth/compute,htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm\212\324\333\322\017\n2026-09-012\263\016\n\"InstanceGroupMan" + + "agerResizeRequests\022\311\002\n\006Cancel\022G.google.c" + + "loud.compute.v1.CancelInstanceGroupManag" + + "erResizeRequestRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\321\001\332A2project,zone,ins" + + "tance_group_manager,resize_request\212N\016Zon" + + "eOperations\202\323\344\223\002\204\001\"\201\001/compute/v1/project" + + "s/{project}/zones/{zone}/instanceGroupMa" + + "nagers/{instance_group_manager}/resizeRe" + + "quests/{resize_request}/cancel\022\300\002\n\006Delet" + + "e\022G.google.cloud.compute.v1.DeleteInstan" + + "ceGroupManagerResizeRequestRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\310\001\332A2proj" + + "ect,zone,instance_group_manager,resize_r" + + "equest\212N\016ZoneOperations\202\323\344\223\002|*z/compute/" + "v1/projects/{project}/zones/{zone}/insta" + "nceGroupManagers/{instance_group_manager" - + "}/createInstances:9instance_group_manage" - + "rs_create_instances_request_resource\022\204\002\n" - + "\006Delete\022:.google.cloud.compute.v1.Delete" - + "InstanceGroupManagerRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\231\001\332A#project,zon" - + "e,instance_group_manager\212N\016ZoneOperation" - + "s\202\323\344\223\002\\*Z/compute/v1/projects/{project}/" - + "zones/{zone}/instanceGroupManagers/{inst" - + "ance_group_manager}\022\234\003\n\017DeleteInstances\022" - + "C.google.cloud.compute.v1.DeleteInstance" - + "sInstanceGroupManagerRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\237\002\332A]project,zo" - + "ne,instance_group_manager,instance_group" - + "_managers_delete_instances_request_resou" - + "rce\212N\016ZoneOperations\202\323\344\223\002\247\001\"j/compute/v1" - + "/projects/{project}/zones/{zone}/instanc" - + "eGroupManagers/{instance_group_manager}/" - + "deleteInstances:9instance_group_managers" - + "_delete_instances_request_resource\022\305\003\n\030D" - + "eletePerInstanceConfigs\022L.google.cloud.c" - + "ompute.v1.DeletePerInstanceConfigsInstan" - + "ceGroupManagerRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\266\002\332Adproject,zone,inst" - + "ance_group_manager,instance_group_manage" - + "rs_delete_per_instance_configs_req_resou" - + "rce\212N\016ZoneOperations\202\323\344\223\002\267\001\"s/compute/v1" - + "/projects/{project}/zones/{zone}/instanc" - + "eGroupManagers/{instance_group_manager}/" - + "deletePerInstanceConfigs:@instance_group" - + "_managers_delete_per_instance_configs_re" - + "q_resource\022\370\001\n\003Get\0227.google.cloud.comput" - + "e.v1.GetInstanceGroupManagerRequest\032-.go" - + "ogle.cloud.compute.v1.InstanceGroupManag" - + "er\"\210\001\332A#project,zone,instance_group_mana" - + "ger\202\323\344\223\002\\\022Z/compute/v1/projects/{project" - + "}/zones/{zone}/instanceGroupManagers/{in" - + "stance_group_manager}\022\225\002\n\006Insert\022:.googl" - + "e.cloud.compute.v1.InsertInstanceGroupMa" - + "nagerRequest\032\".google.cloud.compute.v1.O" - + "peration\"\252\001\332A,project,zone,instance_grou" - + "p_manager_resource\212N\016ZoneOperations\202\323\344\223\002" - + "d\"A/compute/v1/projects/{project}/zones/" - + "{zone}/instanceGroupManagers:\037instance_g" - + "roup_manager_resource\022\316\001\n\004List\0229.google." - + "cloud.compute.v1.ListInstanceGroupManage" - + "rsRequest\0321.google.cloud.compute.v1.Inst" - + "anceGroupManagerList\"X\332A\014project,zone\202\323\344" - + "\223\002C\022A/compute/v1/projects/{project}/zone" - + "s/{zone}/instanceGroupManagers\022\245\002\n\nListE" - + "rrors\022?.google.cloud.compute.v1.ListErro" - + "rsInstanceGroupManagersRequest\032@.google." - + "cloud.compute.v1.InstanceGroupManagersLi" - + "stErrorsResponse\"\223\001\332A#project,zone,insta" - + "nce_group_manager\202\323\344\223\002g\022e/compute/v1/pro" - + "jects/{project}/zones/{zone}/instanceGro" - + "upManagers/{instance_group_manager}/list" - + "Errors\022\315\002\n\024ListManagedInstances\022I.google" - + ".cloud.compute.v1.ListManagedInstancesIn" - + "stanceGroupManagersRequest\032J.google.clou" - + "d.compute.v1.InstanceGroupManagersListMa" - + "nagedInstancesResponse\"\235\001\332A#project,zone" - + ",instance_group_manager\202\323\344\223\002q\"o/compute/" + + "}/resizeRequests/{resize_request}\022\301\002\n\003Ge" + + "t\022D.google.cloud.compute.v1.GetInstanceG" + + "roupManagerResizeRequestRequest\032:.google" + + ".cloud.compute.v1.InstanceGroupManagerRe" + + "sizeRequest\"\267\001\332A2project,zone,instance_g" + + "roup_manager,resize_request\202\323\344\223\002|\022z/comp" + + "ute/v1/projects/{project}/zones/{zone}/i" + + "nstanceGroupManagers/{instance_group_man" + + "ager}/resizeRequests/{resize_request}\022\200\003" + + "\n\006Insert\022G.google.cloud.compute.v1.Inser" + + "tInstanceGroupManagerResizeRequestReques" + + "t\032\".google.cloud.compute.v1.Operation\"\210\002" + + "\332ARproject,zone,instance_group_manager,i" + + "nstance_group_manager_resize_request_res" + + "ource\212N\016ZoneOperations\202\323\344\223\002\233\001\"i/compute/" + "v1/projects/{project}/zones/{zone}/insta" + "nceGroupManagers/{instance_group_manager" - + "}/listManagedInstances\022\321\002\n\026ListPerInstan" - + "ceConfigs\022K.google.cloud.compute.v1.List" - + "PerInstanceConfigsInstanceGroupManagersR" - + "equest\032H.google.cloud.compute.v1.Instanc" - + "eGroupManagersListPerInstanceConfigsResp" - + "\"\237\001\332A#project,zone,instance_group_manage" - + "r\202\323\344\223\002s\"q/compute/v1/projects/{project}/" - + "zones/{zone}/instanceGroupManagers/{inst" - + "ance_group_manager}/listPerInstanceConfi" - + "gs\022\303\002\n\005Patch\0229.google.cloud.compute.v1.P" - + "atchInstanceGroupManagerRequest\032\".google" - + ".cloud.compute.v1.Operation\"\332\001\332ACproject" - + ",zone,instance_group_manager,instance_gr" - + "oup_manager_resource\212N\016ZoneOperations\202\323\344" - + "\223\002}2Z/compute/v1/projects/{project}/zone" - + "s/{zone}/instanceGroupManagers/{instance" - + "_group_manager}:\037instance_group_manager_" - + "resource\022\300\003\n\027PatchPerInstanceConfigs\022K.g" - + "oogle.cloud.compute.v1.PatchPerInstanceC" - + "onfigsInstanceGroupManagerRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\263\002\332Acproje" - + "ct,zone,instance_group_manager,instance_" - + "group_managers_patch_per_instance_config" - + "s_req_resource\212N\016ZoneOperations\202\323\344\223\002\265\001\"r" + + "}/resizeRequests:.instance_group_manager" + + "_resize_request_resource\022\261\002\n\004List\022F.goog" + + "le.cloud.compute.v1.ListInstanceGroupMan" + + "agerResizeRequestsRequest\032G.google.cloud" + + ".compute.v1.InstanceGroupManagerResizeRe" + + "questsListResponse\"\227\001\332A#project,zone,ins" + + "tance_group_manager\202\323\344\223\002k\022i/compute/v1/p" + + "rojects/{project}/zones/{zone}/instanceG" + + "roupManagers/{instance_group_manager}/re" + + "sizeRequests\032\202\001\312A\026compute.googleapis.com" + + "\322AVhttps://www.googleapis.com/auth/compu" + + "te,https://www.googleapis.com/auth/cloud" + + "-platform\212\324\333\322\017\n2026-09-012\346E\n\025InstanceGr" + + "oupManagers\022\241\003\n\020AbandonInstances\022D.googl" + + "e.cloud.compute.v1.AbandonInstancesInsta" + + "nceGroupManagerRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\242\002\332A^project,zone,ins" + + "tance_group_manager,instance_group_manag" + + "ers_abandon_instances_request_resource\212N" + + "\016ZoneOperations\202\323\344\223\002\251\001\"k/compute/v1/proj" + + "ects/{project}/zones/{zone}/instanceGrou" + + "pManagers/{instance_group_manager}/aband" + + "onInstances::instance_group_managers_aba" + + "ndon_instances_request_resource\022\345\001\n\016Aggr" + + "egatedList\022C.google.cloud.compute.v1.Agg" + + "regatedListInstanceGroupManagersRequest\032" + + ";.google.cloud.compute.v1.InstanceGroupM" + + "anagerAggregatedList\"Q\332A\007project\202\323\344\223\002A\022?" + + "/compute/v1/projects/{project}/aggregate" + + "d/instanceGroupManagers\022\256\003\n\027ApplyUpdates" + + "ToInstances\022K.google.cloud.compute.v1.Ap" + + "plyUpdatesToInstancesInstanceGroupManage" + + "rRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\241\002\332AZproject,zone,instance_group_ma" + + "nager,instance_group_managers_apply_upda" + + "tes_request_resource\212N\016ZoneOperations\202\323\344" + + "\223\002\254\001\"r/compute/v1/projects/{project}/zon" + + "es/{zone}/instanceGroupManagers/{instanc" + + "e_group_manager}/applyUpdatesToInstances" + + ":6instance_group_managers_apply_updates_" + + "request_resource\022\234\003\n\017CreateInstances\022C.g" + + "oogle.cloud.compute.v1.CreateInstancesIn" + + "stanceGroupManagerRequest\032\".google.cloud" + + ".compute.v1.Operation\"\237\002\332A]project,zone," + + "instance_group_manager,instance_group_ma" + + "nagers_create_instances_request_resource" + + "\212N\016ZoneOperations\202\323\344\223\002\247\001\"j/compute/v1/pr" + + "ojects/{project}/zones/{zone}/instanceGr" + + "oupManagers/{instance_group_manager}/cre" + + "ateInstances:9instance_group_managers_cr" + + "eate_instances_request_resource\022\204\002\n\006Dele" + + "te\022:.google.cloud.compute.v1.DeleteInsta" + + "nceGroupManagerRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\231\001\332A#project,zone,ins" + + "tance_group_manager\212N\016ZoneOperations\202\323\344\223" + + "\002\\*Z/compute/v1/projects/{project}/zones" + + "/{zone}/instanceGroupManagers/{instance_" + + "group_manager}\022\234\003\n\017DeleteInstances\022C.goo" + + "gle.cloud.compute.v1.DeleteInstancesInst" + + "anceGroupManagerRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\237\002\332A]project,zone,in" + + "stance_group_manager,instance_group_mana" + + "gers_delete_instances_request_resource\212N" + + "\016ZoneOperations\202\323\344\223\002\247\001\"j/compute/v1/proj" + + "ects/{project}/zones/{zone}/instanceGrou" + + "pManagers/{instance_group_manager}/delet" + + "eInstances:9instance_group_managers_dele" + + "te_instances_request_resource\022\305\003\n\030Delete" + + "PerInstanceConfigs\022L.google.cloud.comput" + + "e.v1.DeletePerInstanceConfigsInstanceGro" + + "upManagerRequest\032\".google.cloud.compute." + + "v1.Operation\"\266\002\332Adproject,zone,instance_" + + "group_manager,instance_group_managers_de" + + "lete_per_instance_configs_req_resource\212N" + + "\016ZoneOperations\202\323\344\223\002\267\001\"s/compute/v1/proj" + + "ects/{project}/zones/{zone}/instanceGrou" + + "pManagers/{instance_group_manager}/delet" + + "ePerInstanceConfigs:@instance_group_mana" + + "gers_delete_per_instance_configs_req_res" + + "ource\022\370\001\n\003Get\0227.google.cloud.compute.v1." + + "GetInstanceGroupManagerRequest\032-.google." + + "cloud.compute.v1.InstanceGroupManager\"\210\001" + + "\332A#project,zone,instance_group_manager\202\323" + + "\344\223\002\\\022Z/compute/v1/projects/{project}/zon" + + "es/{zone}/instanceGroupManagers/{instanc" + + "e_group_manager}\022\225\002\n\006Insert\022:.google.clo" + + "ud.compute.v1.InsertInstanceGroupManager" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\252\001\332A,project,zone,instance_group_man" + + "ager_resource\212N\016ZoneOperations\202\323\344\223\002d\"A/c" + + "ompute/v1/projects/{project}/zones/{zone" + + "}/instanceGroupManagers:\037instance_group_" + + "manager_resource\022\316\001\n\004List\0229.google.cloud" + + ".compute.v1.ListInstanceGroupManagersReq" + + "uest\0321.google.cloud.compute.v1.InstanceG" + + "roupManagerList\"X\332A\014project,zone\202\323\344\223\002C\022A" + + "/compute/v1/projects/{project}/zones/{zo" + + "ne}/instanceGroupManagers\022\245\002\n\nListErrors" + + "\022?.google.cloud.compute.v1.ListErrorsIns" + + "tanceGroupManagersRequest\032@.google.cloud" + + ".compute.v1.InstanceGroupManagersListErr" + + "orsResponse\"\223\001\332A#project,zone,instance_g" + + "roup_manager\202\323\344\223\002g\022e/compute/v1/projects" + + "/{project}/zones/{zone}/instanceGroupMan" + + "agers/{instance_group_manager}/listError" + + "s\022\315\002\n\024ListManagedInstances\022I.google.clou" + + "d.compute.v1.ListManagedInstancesInstanc" + + "eGroupManagersRequest\032J.google.cloud.com" + + "pute.v1.InstanceGroupManagersListManaged" + + "InstancesResponse\"\235\001\332A#project,zone,inst" + + "ance_group_manager\202\323\344\223\002q\"o/compute/v1/pr" + + "ojects/{project}/zones/{zone}/instanceGr" + + "oupManagers/{instance_group_manager}/lis" + + "tManagedInstances\022\321\002\n\026ListPerInstanceCon" + + "figs\022K.google.cloud.compute.v1.ListPerIn" + + "stanceConfigsInstanceGroupManagersReques" + + "t\032H.google.cloud.compute.v1.InstanceGrou" + + "pManagersListPerInstanceConfigsResp\"\237\001\332A" + + "#project,zone,instance_group_manager\202\323\344\223" + + "\002s\"q/compute/v1/projects/{project}/zones" + + "/{zone}/instanceGroupManagers/{instance_" + + "group_manager}/listPerInstanceConfigs\022\303\002" + + "\n\005Patch\0229.google.cloud.compute.v1.PatchI" + + "nstanceGroupManagerRequest\032\".google.clou" + + "d.compute.v1.Operation\"\332\001\332ACproject,zone" + + ",instance_group_manager,instance_group_m" + + "anager_resource\212N\016ZoneOperations\202\323\344\223\002}2Z" + "/compute/v1/projects/{project}/zones/{zo" + "ne}/instanceGroupManagers/{instance_grou" - + "p_manager}/patchPerInstanceConfigs:?inst" - + "ance_group_managers_patch_per_instance_c" - + "onfigs_req_resource\022\246\003\n\021RecreateInstance" - + "s\022E.google.cloud.compute.v1.RecreateInst" - + "ancesInstanceGroupManagerRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\245\002\332A_projec" - + "t,zone,instance_group_manager,instance_g" - + "roup_managers_recreate_instances_request" - + "_resource\212N\016ZoneOperations\202\323\344\223\002\253\001\"l/comp" + + "p_manager}:\037instance_group_manager_resou" + + "rce\022\300\003\n\027PatchPerInstanceConfigs\022K.google" + + ".cloud.compute.v1.PatchPerInstanceConfig" + + "sInstanceGroupManagerRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\263\002\332Acproject,zo" + + "ne,instance_group_manager,instance_group" + + "_managers_patch_per_instance_configs_req" + + "_resource\212N\016ZoneOperations\202\323\344\223\002\265\001\"r/comp" + "ute/v1/projects/{project}/zones/{zone}/i" + "nstanceGroupManagers/{instance_group_man" - + "ager}/recreateInstances:;instance_group_" + + "ager}/patchPerInstanceConfigs:?instance_" + + "group_managers_patch_per_instance_config" + + "s_req_resource\022\246\003\n\021RecreateInstances\022E.g" + + "oogle.cloud.compute.v1.RecreateInstances" + + "InstanceGroupManagerRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\245\002\332A_project,zon" + + "e,instance_group_manager,instance_group_" + "managers_recreate_instances_request_reso" - + "urce\022\220\002\n\006Resize\022:.google.cloud.compute.v" - + "1.ResizeInstanceGroupManagerRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\245\001\332A(pro" - + "ject,zone,instance_group_manager,size\212N\016" - + "ZoneOperations\202\323\344\223\002c\"a/compute/v1/projec" - + "ts/{project}/zones/{zone}/instanceGroupM" - + "anagers/{instance_group_manager}/resize\022" - + "\234\003\n\017ResumeInstances\022C.google.cloud.compu" - + "te.v1.ResumeInstancesInstanceGroupManage" - + "rRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\237\002\332A]project,zone,instance_group_ma" - + "nager,instance_group_managers_resume_ins" - + "tances_request_resource\212N\016ZoneOperations" - + "\202\323\344\223\002\247\001\"j/compute/v1/projects/{project}/" - + "zones/{zone}/instanceGroupManagers/{inst" - + "ance_group_manager}/resumeInstances:9ins" - + "tance_group_managers_resume_instances_re" - + "quest_resource\022\262\003\n\023SetInstanceTemplate\022G" - + ".google.cloud.compute.v1.SetInstanceTemp" - + "lateInstanceGroupManagerRequest\032\".google" - + ".cloud.compute.v1.Operation\"\255\002\332Abproject" - + ",zone,instance_group_manager,instance_gr" - + "oup_managers_set_instance_template_reque" - + "st_resource\212N\016ZoneOperations\202\323\344\223\002\260\001\"n/co" - + "mpute/v1/projects/{project}/zones/{zone}" - + "/instanceGroupManagers/{instance_group_m" - + "anager}/setInstanceTemplate:>instance_gr" - + "oup_managers_set_instance_template_reque" - + "st_resource\022\231\003\n\016SetTargetPools\022B.google." - + "cloud.compute.v1.SetTargetPoolsInstanceG" - + "roupManagerRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\236\002\332A]project,zone,instanc" - + "e_group_manager,instance_group_managers_" - + "set_target_pools_request_resource\212N\016Zone" - + "Operations\202\323\344\223\002\246\001\"i/compute/v1/projects/" - + "{project}/zones/{zone}/instanceGroupMana" - + "gers/{instance_group_manager}/setTargetP" - + "ools:9instance_group_managers_set_target" - + "_pools_request_resource\022\227\003\n\016StartInstanc" - + "es\022B.google.cloud.compute.v1.StartInstan" - + "cesInstanceGroupManagerRequest\032\".google." - + "cloud.compute.v1.Operation\"\234\002\332A\\project," - + "zone,instance_group_manager,instance_gro" - + "up_managers_start_instances_request_reso" - + "urce\212N\016ZoneOperations\202\323\344\223\002\245\001\"i/compute/v" + + "urce\212N\016ZoneOperations\202\323\344\223\002\253\001\"l/compute/v" + "1/projects/{project}/zones/{zone}/instan" + "ceGroupManagers/{instance_group_manager}" - + "/startInstances:8instance_group_managers" - + "_start_instances_request_resource\022\222\003\n\rSt" - + "opInstances\022A.google.cloud.compute.v1.St" - + "opInstancesInstanceGroupManagerRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\231\002\332A[" - + "project,zone,instance_group_manager,inst" - + "ance_group_managers_stop_instances_reque" - + "st_resource\212N\016ZoneOperations\202\323\344\223\002\243\001\"h/co" - + "mpute/v1/projects/{project}/zones/{zone}" - + "/instanceGroupManagers/{instance_group_m" - + "anager}/stopInstances:7instance_group_ma" - + "nagers_stop_instances_request_resource\022\241" - + "\003\n\020SuspendInstances\022D.google.cloud.compu" - + "te.v1.SuspendInstancesInstanceGroupManag" - + "erRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\242\002\332A^project,zone,instance_group_m" - + "anager,instance_group_managers_suspend_i" - + "nstances_request_resource\212N\016ZoneOperatio" - + "ns\202\323\344\223\002\251\001\"k/compute/v1/projects/{project" - + "}/zones/{zone}/instanceGroupManagers/{in" - + "stance_group_manager}/suspendInstances::" - + "instance_group_managers_suspend_instance" - + "s_request_resource\022\305\003\n\030UpdatePerInstance" - + "Configs\022L.google.cloud.compute.v1.Update" - + "PerInstanceConfigsInstanceGroupManagerRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\266\002\332Adproject,zone,instance_group_manag" - + "er,instance_group_managers_update_per_in" - + "stance_configs_req_resource\212N\016ZoneOperat" - + "ions\202\323\344\223\002\267\001\"s/compute/v1/projects/{proje" - + "ct}/zones/{zone}/instanceGroupManagers/{" - + "instance_group_manager}/updatePerInstanc" - + "eConfigs:@instance_group_managers_update" - + "_per_instance_configs_req_resource\032\202\001\312A\026" - + "compute.googleapis.com\322AVhttps://www.goo" - + "gleapis.com/auth/compute,https://www.goo" - + "gleapis.com/auth/cloud-platform\212\324\333\322\017\n202" - + "6-09-012\313\027\n\016InstanceGroups\022\337\002\n\014AddInstan" - + "ces\0229.google.cloud.compute.v1.AddInstanc" - + "esInstanceGroupRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\357\001\332AJproject,zone,ins" - + "tance_group,instance_groups_add_instance" - + "s_request_resource\212N\016ZoneOperations\202\323\344\223\002" - + "\212\001\"X/compute/v1/projects/{project}/zones" - + "/{zone}/instanceGroups/{instance_group}/" - + "addInstances:.instance_groups_add_instan" - + "ces_request_resource\022\320\001\n\016AggregatedList\022" - + "<.google.cloud.compute.v1.AggregatedList" - + "InstanceGroupsRequest\0324.google.cloud.com" - + "pute.v1.InstanceGroupAggregatedList\"J\332A\007" - + "project\202\323\344\223\002:\0228/compute/v1/projects/{pro" - + "ject}/aggregated/instanceGroups\022\346\001\n\006Dele" - + "te\0223.google.cloud.compute.v1.DeleteInsta" - + "nceGroupRequest\032\".google.cloud.compute.v" - + "1.Operation\"\202\001\332A\033project,zone,instance_g" - + "roup\212N\016ZoneOperations\202\323\344\223\002M*K/compute/v1" - + "/projects/{project}/zones/{zone}/instanc" - + "eGroups/{instance_group}\022\322\001\n\003Get\0220.googl" - + "e.cloud.compute.v1.GetInstanceGroupReque" - + "st\032&.google.cloud.compute.v1.InstanceGro" - + "up\"q\332A\033project,zone,instance_group\202\323\344\223\002M" - + "\022K/compute/v1/projects/{project}/zones/{" - + "zone}/instanceGroups/{instance_group}\022\367\001" - + "\n\006Insert\0223.google.cloud.compute.v1.Inser" - + "tInstanceGroupRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\223\001\332A$project,zone,inst" - + "ance_group_resource\212N\016ZoneOperations\202\323\344\223" - + "\002U\":/compute/v1/projects/{project}/zones" - + "/{zone}/instanceGroups:\027instance_group_r" - + "esource\022\271\001\n\004List\0222.google.cloud.compute." - + "v1.ListInstanceGroupsRequest\032*.google.cl" - + "oud.compute.v1.InstanceGroupList\"Q\332A\014pro" - + "ject,zone\202\323\344\223\002<\022:/compute/v1/projects/{p" - + "roject}/zones/{zone}/instanceGroups\022\346\002\n\r" - + "ListInstances\022;.google.cloud.compute.v1." - + "ListInstancesInstanceGroupsRequest\0324.goo" - + "gle.cloud.compute.v1.InstanceGroupsListI" - + "nstances\"\341\001\332AKproject,zone,instance_grou" - + "p,instance_groups_list_instances_request" - + "_resource\202\323\344\223\002\214\001\"Y/compute/v1/projects/{" - + "project}/zones/{zone}/instanceGroups/{in" - + "stance_group}/listInstances:/instance_gr" - + "oups_list_instances_request_resource\022\356\002\n" - + "\017RemoveInstances\022<.google.cloud.compute." - + "v1.RemoveInstancesInstanceGroupRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\370\001\332AM" - + "project,zone,instance_group,instance_gro" - + "ups_remove_instances_request_resource\212N\016" - + "ZoneOperations\202\323\344\223\002\220\001\"[/compute/v1/proje" - + "cts/{project}/zones/{zone}/instanceGroup" - + "s/{instance_group}/removeInstances:1inst" - + "ance_groups_remove_instances_request_res" - + "ource\022\346\002\n\rSetNamedPorts\022:.google.cloud.c" - + "ompute.v1.SetNamedPortsInstanceGroupRequ" + + "/recreateInstances:;instance_group_manag" + + "ers_recreate_instances_request_resource\022" + + "\220\002\n\006Resize\022:.google.cloud.compute.v1.Res" + + "izeInstanceGroupManagerRequest\032\".google." + + "cloud.compute.v1.Operation\"\245\001\332A(project," + + "zone,instance_group_manager,size\212N\016ZoneO" + + "perations\202\323\344\223\002c\"a/compute/v1/projects/{p" + + "roject}/zones/{zone}/instanceGroupManage" + + "rs/{instance_group_manager}/resize\022\234\003\n\017R" + + "esumeInstances\022C.google.cloud.compute.v1" + + ".ResumeInstancesInstanceGroupManagerRequ" + "est\032\".google.cloud.compute.v1.Operation\"" - + "\364\001\332ALproject,zone,instance_group,instanc" - + "e_groups_set_named_ports_request_resourc" - + "e\212N\016ZoneOperations\202\323\344\223\002\215\001\"Y/compute/v1/p" - + "rojects/{project}/zones/{zone}/instanceG" - + "roups/{instance_group}/setNamedPorts:0in" - + "stance_groups_set_named_ports_request_re" - + "source\022\307\002\n\022TestIamPermissions\022?.google.c" - + "loud.compute.v1.TestIamPermissionsInstan" - + "ceGroupRequest\0320.google.cloud.compute.v1" - + ".TestPermissionsResponse\"\275\001\332A7project,zo" - + "ne,resource,test_permissions_request_res" - + "ource\202\323\344\223\002}\"X/compute/v1/projects/{proje" - + "ct}/zones/{zone}/instanceGroups/{resourc" - + "e}/testIamPermissions:!test_permissions_" - + "request_resource\032\202\001\312A\026compute.googleapis" - + ".com\322AVhttps://www.googleapis.com/auth/c" - + "ompute,https://www.googleapis.com/auth/c" - + "loud-platform\212\324\333\322\017\n2026-09-012\334\004\n\027Instan" - + "ceSettingsService\022\271\001\n\003Get\0222.google.cloud" - + ".compute.v1.GetInstanceSettingRequest\032)." - + "google.cloud.compute.v1.InstanceSettings" - + "\"S\332A\014project,zone\202\323\344\223\002>\022project" - + ",zone,instance,network_interface,access_" - + "config_resource\212N\016ZoneOperations\202\323\344\223\002j\"P" - + "/compute/v1/projects/{project}/zones/{zo" - + "ne}/instances/{instance}/addAccessConfig" - + ":\026access_config_resource\022\265\002\n\023AddNetworkI" - + "nterface\022;.google.cloud.compute.v1.AddNe" - + "tworkInterfaceInstanceRequest\032\".google.c" - + "loud.compute.v1.Operation\"\274\001\332A0project,z" - + "one,instance,network_interface_resource\212" - + "N\016ZoneOperations\202\323\344\223\002r\"T/compute/v1/proj" - + "ects/{project}/zones/{zone}/instances/{i" - + "nstance}/addNetworkInterface:\032network_in" - + "terface_resource\022\342\002\n\023AddResourcePolicies" - + "\022;.google.cloud.compute.v1.AddResourcePo" - + "liciesInstanceRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\351\001\332AFproject,zone,inst" - + "ance,instances_add_resource_policies_req" - + "uest_resource\212N\016ZoneOperations\202\323\344\223\002\210\001\"T/" + + "\237\002\332A]project,zone,instance_group_manager" + + ",instance_group_managers_resume_instance" + + "s_request_resource\212N\016ZoneOperations\202\323\344\223\002" + + "\247\001\"j/compute/v1/projects/{project}/zones" + + "/{zone}/instanceGroupManagers/{instance_" + + "group_manager}/resumeInstances:9instance" + + "_group_managers_resume_instances_request" + + "_resource\022\262\003\n\023SetInstanceTemplate\022G.goog" + + "le.cloud.compute.v1.SetInstanceTemplateI" + + "nstanceGroupManagerRequest\032\".google.clou" + + "d.compute.v1.Operation\"\255\002\332Abproject,zone" + + ",instance_group_manager,instance_group_m" + + "anagers_set_instance_template_request_re" + + "source\212N\016ZoneOperations\202\323\344\223\002\260\001\"n/compute" + + "/v1/projects/{project}/zones/{zone}/inst" + + "anceGroupManagers/{instance_group_manage" + + "r}/setInstanceTemplate:>instance_group_m" + + "anagers_set_instance_template_request_re" + + "source\022\231\003\n\016SetTargetPools\022B.google.cloud" + + ".compute.v1.SetTargetPoolsInstanceGroupM" + + "anagerRequest\032\".google.cloud.compute.v1." + + "Operation\"\236\002\332A]project,zone,instance_gro" + + "up_manager,instance_group_managers_set_t" + + "arget_pools_request_resource\212N\016ZoneOpera" + + "tions\202\323\344\223\002\246\001\"i/compute/v1/projects/{proj" + + "ect}/zones/{zone}/instanceGroupManagers/" + + "{instance_group_manager}/setTargetPools:" + + "9instance_group_managers_set_target_pool" + + "s_request_resource\022\227\003\n\016StartInstances\022B." + + "google.cloud.compute.v1.StartInstancesIn" + + "stanceGroupManagerRequest\032\".google.cloud" + + ".compute.v1.Operation\"\234\002\332A\\project,zone," + + "instance_group_manager,instance_group_ma" + + "nagers_start_instances_request_resource\212" + + "N\016ZoneOperations\202\323\344\223\002\245\001\"i/compute/v1/pro" + + "jects/{project}/zones/{zone}/instanceGro" + + "upManagers/{instance_group_manager}/star" + + "tInstances:8instance_group_managers_star" + + "t_instances_request_resource\022\222\003\n\rStopIns" + + "tances\022A.google.cloud.compute.v1.StopIns" + + "tancesInstanceGroupManagerRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\231\002\332A[proje" + + "ct,zone,instance_group_manager,instance_" + + "group_managers_stop_instances_request_re" + + "source\212N\016ZoneOperations\202\323\344\223\002\243\001\"h/compute" + + "/v1/projects/{project}/zones/{zone}/inst" + + "anceGroupManagers/{instance_group_manage" + + "r}/stopInstances:7instance_group_manager" + + "s_stop_instances_request_resource\022\241\003\n\020Su" + + "spendInstances\022D.google.cloud.compute.v1" + + ".SuspendInstancesInstanceGroupManagerReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\242\002\332A^project,zone,instance_group_manage" + + "r,instance_group_managers_suspend_instan" + + "ces_request_resource\212N\016ZoneOperations\202\323\344" + + "\223\002\251\001\"k/compute/v1/projects/{project}/zon" + + "es/{zone}/instanceGroupManagers/{instanc" + + "e_group_manager}/suspendInstances::insta" + + "nce_group_managers_suspend_instances_req" + + "uest_resource\022\305\003\n\030UpdatePerInstanceConfi" + + "gs\022L.google.cloud.compute.v1.UpdatePerIn" + + "stanceConfigsInstanceGroupManagerRequest" + + "\032\".google.cloud.compute.v1.Operation\"\266\002\332" + + "Adproject,zone,instance_group_manager,in" + + "stance_group_managers_update_per_instanc" + + "e_configs_req_resource\212N\016ZoneOperations\202" + + "\323\344\223\002\267\001\"s/compute/v1/projects/{project}/z" + + "ones/{zone}/instanceGroupManagers/{insta" + + "nce_group_manager}/updatePerInstanceConf" + + "igs:@instance_group_managers_update_per_" + + "instance_configs_req_resource\032\202\001\312A\026compu" + + "te.googleapis.com\322AVhttps://www.googleap" + + "is.com/auth/compute,https://www.googleap" + + "is.com/auth/cloud-platform\212\324\333\322\017\n2026-09-" + + "012\313\027\n\016InstanceGroups\022\337\002\n\014AddInstances\0229" + + ".google.cloud.compute.v1.AddInstancesIns" + + "tanceGroupRequest\032\".google.cloud.compute" + + ".v1.Operation\"\357\001\332AJproject,zone,instance" + + "_group,instance_groups_add_instances_req" + + "uest_resource\212N\016ZoneOperations\202\323\344\223\002\212\001\"X/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/instanceGroups/{instance_group}/addIn" + + "stances:.instance_groups_add_instances_r" + + "equest_resource\022\320\001\n\016AggregatedList\022<.goo" + + "gle.cloud.compute.v1.AggregatedListInsta" + + "nceGroupsRequest\0324.google.cloud.compute." + + "v1.InstanceGroupAggregatedList\"J\332A\007proje" + + "ct\202\323\344\223\002:\0228/compute/v1/projects/{project}" + + "/aggregated/instanceGroups\022\346\001\n\006Delete\0223." + + "google.cloud.compute.v1.DeleteInstanceGr" + + "oupRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\202\001\332A\033project,zone,instance_group\212" + + "N\016ZoneOperations\202\323\344\223\002M*K/compute/v1/proj" + + "ects/{project}/zones/{zone}/instanceGrou" + + "ps/{instance_group}\022\322\001\n\003Get\0220.google.clo" + + "ud.compute.v1.GetInstanceGroupRequest\032&." + + "google.cloud.compute.v1.InstanceGroup\"q\332" + + "A\033project,zone,instance_group\202\323\344\223\002M\022K/co" + + "mpute/v1/projects/{project}/zones/{zone}" + + "/instanceGroups/{instance_group}\022\367\001\n\006Ins" + + "ert\0223.google.cloud.compute.v1.InsertInst" + + "anceGroupRequest\032\".google.cloud.compute." + + "v1.Operation\"\223\001\332A$project,zone,instance_" + + "group_resource\212N\016ZoneOperations\202\323\344\223\002U\":/" + "compute/v1/projects/{project}/zones/{zon" - + "e}/instances/{instance}/addResourcePolic" - + "ies:0instances_add_resource_policies_req" - + "uest_resource\022\301\001\n\016AggregatedList\0227.googl" + + "e}/instanceGroups:\027instance_group_resour" + + "ce\022\271\001\n\004List\0222.google.cloud.compute.v1.Li" + + "stInstanceGroupsRequest\032*.google.cloud.c" + + "ompute.v1.InstanceGroupList\"Q\332A\014project," + + "zone\202\323\344\223\002<\022:/compute/v1/projects/{projec" + + "t}/zones/{zone}/instanceGroups\022\346\002\n\rListI" + + "nstances\022;.google.cloud.compute.v1.ListI" + + "nstancesInstanceGroupsRequest\0324.google.c" + + "loud.compute.v1.InstanceGroupsListInstan" + + "ces\"\341\001\332AKproject,zone,instance_group,ins" + + "tance_groups_list_instances_request_reso" + + "urce\202\323\344\223\002\214\001\"Y/compute/v1/projects/{proje" + + "ct}/zones/{zone}/instanceGroups/{instanc" + + "e_group}/listInstances:/instance_groups_" + + "list_instances_request_resource\022\356\002\n\017Remo" + + "veInstances\022<.google.cloud.compute.v1.Re" + + "moveInstancesInstanceGroupRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\370\001\332AMproje" + + "ct,zone,instance_group,instance_groups_r" + + "emove_instances_request_resource\212N\016ZoneO" + + "perations\202\323\344\223\002\220\001\"[/compute/v1/projects/{" + + "project}/zones/{zone}/instanceGroups/{in" + + "stance_group}/removeInstances:1instance_" + + "groups_remove_instances_request_resource" + + "\022\346\002\n\rSetNamedPorts\022:.google.cloud.comput" + + "e.v1.SetNamedPortsInstanceGroupRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\364\001\332AL" + + "project,zone,instance_group,instance_gro" + + "ups_set_named_ports_request_resource\212N\016Z" + + "oneOperations\202\323\344\223\002\215\001\"Y/compute/v1/projec" + + "ts/{project}/zones/{zone}/instanceGroups" + + "/{instance_group}/setNamedPorts:0instanc" + + "e_groups_set_named_ports_request_resourc" + + "e\022\307\002\n\022TestIamPermissions\022?.google.cloud." + + "compute.v1.TestIamPermissionsInstanceGro" + + "upRequest\0320.google.cloud.compute.v1.Test" + + "PermissionsResponse\"\275\001\332A7project,zone,re" + + "source,test_permissions_request_resource" + + "\202\323\344\223\002}\"X/compute/v1/projects/{project}/z" + + "ones/{zone}/instanceGroups/{resource}/te" + + "stIamPermissions:!test_permissions_reque" + + "st_resource\032\202\001\312A\026compute.googleapis.com\322" + + "AVhttps://www.googleapis.com/auth/comput" + + "e,https://www.googleapis.com/auth/cloud-" + + "platform\212\324\333\322\017\n2026-09-012\334\004\n\027InstanceSet" + + "tingsService\022\271\001\n\003Get\0222.google.cloud.comp" + + "ute.v1.GetInstanceSettingRequest\032).googl" + + "e.cloud.compute.v1.InstanceSettings\"S\332A\014" + + "project,zone\202\323\344\223\002>\022.google.cloud.comput" - + "e.v1.DeleteNetworkInterfaceInstanceReque" - + "st\032\".google.cloud.compute.v1.Operation\"\237" - + "\001\332A,project,zone,instance,network_interf" - + "ace_name\212N\016ZoneOperations\202\323\344\223\002Y\"W/comput" - + "e/v1/projects/{project}/zones/{zone}/ins" - + "tances/{instance}/deleteNetworkInterface" - + "\022\357\001\n\nDetachDisk\0222.google.cloud.compute.v" - + "1.DetachDiskInstanceRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\210\001\332A!project,zon" - + "e,instance,device_name\212N\016ZoneOperations\202" - + "\323\344\223\002M\"K/compute/v1/projects/{project}/zo" - + "nes/{zone}/instances/{instance}/detachDi" - + "sk\022\267\001\n\003Get\022+.google.cloud.compute.v1.Get" - + "InstanceRequest\032!.google.cloud.compute.v" - + "1.Instance\"`\332A\025project,zone,instance\202\323\344\223" - + "\002B\022@/compute/v1/projects/{project}/zones" - + "/{zone}/instances/{instance}\022\242\002\n\025GetEffe" - + "ctiveFirewalls\022=.google.cloud.compute.v1" - + ".GetEffectiveFirewallsInstanceRequest\032?." - + "google.cloud.compute.v1.InstancesGetEffe" - + "ctiveFirewallsResponse\"\210\001\332A\'project,zone" - + ",instance,network_interface\202\323\344\223\002X\022V/comp" + + "eTemplatesRequest\0327.google.cloud.compute" + + ".v1.InstanceTemplateAggregatedList\"M\332A\007p" + + "roject\202\323\344\223\002=\022;/compute/v1/projects/{proj" + + "ect}/aggregated/instanceTemplates\022\351\001\n\006De" + + "lete\0226.google.cloud.compute.v1.DeleteIns" + + "tanceTemplateRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\202\001\332A\031project,instance_t" + + "emplate\212N\020GlobalOperations\202\323\344\223\002M*K/compu" + + "te/v1/projects/{project}/global/instance" + + "Templates/{instance_template}\022\326\001\n\003Get\0223." + + "google.cloud.compute.v1.GetInstanceTempl" + + "ateRequest\032).google.cloud.compute.v1.Ins" + + "tanceTemplate\"o\332A\031project,instance_templ" + + "ate\202\323\344\223\002M\022K/compute/v1/projects/{project" + + "}/global/instanceTemplates/{instance_tem" + + "plate}\022\331\001\n\014GetIamPolicy\022<.google.cloud.c", + "ompute.v1.GetIamPolicyInstanceTemplateRe" + + "quest\032\037.google.cloud.compute.v1.Policy\"j" + + "\332A\020project,resource\202\323\344\223\002Q\022O/compute/v1/p" + + "rojects/{project}/global/instanceTemplat" + + "es/{resource}/getIamPolicy\022\372\001\n\006Insert\0226." + + "google.cloud.compute.v1.InsertInstanceTe" + + "mplateRequest\032\".google.cloud.compute.v1." + + "Operation\"\223\001\332A\"project,instance_template" + + "_resource\212N\020GlobalOperations\202\323\344\223\002U\"7/com" + + "pute/v1/projects/{project}/global/instan" + + "ceTemplates:\032instance_template_resource\022" + + "\267\001\n\004List\0225.google.cloud.compute.v1.ListI" + + "nstanceTemplatesRequest\032-.google.cloud.c" + + "ompute.v1.InstanceTemplateList\"I\332A\007proje" + + "ct\202\323\344\223\0029\0227/compute/v1/projects/{project}" + + "/global/instanceTemplates\022\241\002\n\014SetIamPoli" + + "cy\022<.google.cloud.compute.v1.SetIamPolic" + + "yInstanceTemplateRequest\032\037.google.cloud." + + "compute.v1.Policy\"\261\001\332A3project,resource," + + "global_set_policy_request_resource\202\323\344\223\002u" + + "\"O/compute/v1/projects/{project}/global/" + + "instanceTemplates/{resource}/setIamPolic" + + "y:\"global_set_policy_request_resource\022\302\002" + + "\n\022TestIamPermissions\022B.google.cloud.comp" + + "ute.v1.TestIamPermissionsInstanceTemplat" + + "eRequest\0320.google.cloud.compute.v1.TestP" + + "ermissionsResponse\"\265\001\332A2project,resource" + + ",test_permissions_request_resource\202\323\344\223\002z" + + "\"U/compute/v1/projects/{project}/global/" + + "instanceTemplates/{resource}/testIamPerm" + + "issions:!test_permissions_request_resour" + + "ce\032\202\001\312A\026compute.googleapis.com\322AVhttps:/" + + "/www.googleapis.com/auth/compute,https:/" + + "/www.googleapis.com/auth/cloud-platform\212" + + "\324\333\322\017\n2026-09-012\330p\n\tInstances\022\263\002\n\017AddAcc" + + "essConfig\0227.google.cloud.compute.v1.AddA" + + "ccessConfigInstanceRequest\032\".google.clou" + + "d.compute.v1.Operation\"\302\001\332A>project,zone" + + ",instance,network_interface,access_confi" + + "g_resource\212N\016ZoneOperations\202\323\344\223\002j\"P/comp" + "ute/v1/projects/{project}/zones/{zone}/i" - + "nstances/{instance}/getEffectiveFirewall" - + "s\022\357\001\n\022GetGuestAttributes\022:.google.cloud." - + "compute.v1.GetGuestAttributesInstanceReq" - + "uest\032(.google.cloud.compute.v1.GuestAttr" - + "ibutes\"s\332A\025project,zone,instance\202\323\344\223\002U\022S" - + "/compute/v1/projects/{project}/zones/{zo" - + "ne}/instances/{instance}/getGuestAttribu" - + "tes\022\324\001\n\014GetIamPolicy\0224.google.cloud.comp" - + "ute.v1.GetIamPolicyInstanceRequest\032\037.goo" - + "gle.cloud.compute.v1.Policy\"m\332A\025project," - + "zone,resource\202\323\344\223\002O\022M/compute/v1/project" - + "s/{project}/zones/{zone}/instances/{reso" - + "urce}/getIamPolicy\022\330\001\n\rGetScreenshot\0225.g" - + "oogle.cloud.compute.v1.GetScreenshotInst" - + "anceRequest\032#.google.cloud.compute.v1.Sc" - + "reenshot\"k\332A\025project,zone,instance\202\323\344\223\002M" - + "\022K/compute/v1/projects/{project}/zones/{" - + "zone}/instances/{instance}/screenshot\022\352\001" - + "\n\023GetSerialPortOutput\022;.google.cloud.com" - + "pute.v1.GetSerialPortOutputInstanceReque" - + "st\032).google.cloud.compute.v1.SerialPortO" - + "utput\"k\332A\025project,zone,instance\202\323\344\223\002M\022K/" - + "compute/v1/projects/{project}/zones/{zon" - + "e}/instances/{instance}/serialPort\022\223\002\n\033G" - + "etShieldedInstanceIdentity\022C.google.clou" - + "d.compute.v1.GetShieldedInstanceIdentity" - + "InstanceRequest\0321.google.cloud.compute.v" - + "1.ShieldedInstanceIdentity\"|\332A\025project,z" - + "one,instance\202\323\344\223\002^\022\\/compute/v1/projects" - + "/{project}/zones/{zone}/instances/{insta" - + "nce}/getShieldedInstanceIdentity\022\341\001\n\006Ins" - + "ert\022..google.cloud.compute.v1.InsertInst" - + "anceRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\202\001\332A\036project,zone,instance_resou" - + "rce\212N\016ZoneOperations\202\323\344\223\002J\"5/compute/v1/" + + "nstances/{instance}/addAccessConfig:\026acc" + + "ess_config_resource\022\265\002\n\023AddNetworkInterf" + + "ace\022;.google.cloud.compute.v1.AddNetwork" + + "InterfaceInstanceRequest\032\".google.cloud." + + "compute.v1.Operation\"\274\001\332A0project,zone,i" + + "nstance,network_interface_resource\212N\016Zon" + + "eOperations\202\323\344\223\002r\"T/compute/v1/projects/" + + "{project}/zones/{zone}/instances/{instan" + + "ce}/addNetworkInterface:\032network_interfa" + + "ce_resource\022\342\002\n\023AddResourcePolicies\022;.go" + + "ogle.cloud.compute.v1.AddResourcePolicie" + + "sInstanceRequest\032\".google.cloud.compute." + + "v1.Operation\"\351\001\332AFproject,zone,instance," + + "instances_add_resource_policies_request_" + + "resource\212N\016ZoneOperations\202\323\344\223\002\210\001\"T/compu" + + "te/v1/projects/{project}/zones/{zone}/in" + + "stances/{instance}/addResourcePolicies:0" + + "instances_add_resource_policies_request_" + + "resource\022\301\001\n\016AggregatedList\0227.google.clo" + + "ud.compute.v1.AggregatedListInstancesReq" + + "uest\032/.google.cloud.compute.v1.InstanceA" + + "ggregatedList\"E\332A\007project\202\323\344\223\0025\0223/comput" + + "e/v1/projects/{project}/aggregated/insta" + + "nces\022\222\002\n\nAttachDisk\0222.google.cloud.compu" + + "te.v1.AttachDiskInstanceRequest\032\".google" + + ".cloud.compute.v1.Operation\"\253\001\332A,project" + + ",zone,instance,attached_disk_resource\212N\016" + + "ZoneOperations\202\323\344\223\002e\"K/compute/v1/projec" + + "ts/{project}/zones/{zone}/instances/{ins" + + "tance}/attachDisk:\026attached_disk_resourc" + + "e\022\236\002\n\nBulkInsert\0222.google.cloud.compute." + + "v1.BulkInsertInstanceRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\267\001\332A3project,zo" + + "ne,bulk_insert_instance_resource_resourc" + + "e\212N\016ZoneOperations\202\323\344\223\002j\"@/compute/v1/pr" + + "ojects/{project}/zones/{zone}/instances/" + + "bulkInsert:&bulk_insert_instance_resourc" + + "e_resource\022\317\001\n\006Delete\022..google.cloud.com" + + "pute.v1.DeleteInstanceRequest\032\".google.c" + + "loud.compute.v1.Operation\"q\332A\025project,zo" + + "ne,instance\212N\016ZoneOperations\202\323\344\223\002B*@/com" + + "pute/v1/projects/{project}/zones/{zone}/" + + "instances/{instance}\022\233\002\n\022DeleteAccessCon" + + "fig\022:.google.cloud.compute.v1.DeleteAcce" + + "ssConfigInstanceRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\244\001\332A5project,zone,in" + + "stance,access_config,network_interface\212N" + + "\016ZoneOperations\202\323\344\223\002U\"S/compute/v1/proje" + + "cts/{project}/zones/{zone}/instances/{in" + + "stance}/deleteAccessConfig\022\236\002\n\026DeleteNet" + + "workInterface\022>.google.cloud.compute.v1." + + "DeleteNetworkInterfaceInstanceRequest\032\"." + + "google.cloud.compute.v1.Operation\"\237\001\332A,p" + + "roject,zone,instance,network_interface_n" + + "ame\212N\016ZoneOperations\202\323\344\223\002Y\"W/compute/v1/" + "projects/{project}/zones/{zone}/instance" - + "s:\021instance_resource\022\252\001\n\004List\022-.google.c" - + "loud.compute.v1.ListInstancesRequest\032%.g" - + "oogle.cloud.compute.v1.InstanceList\"L\332A\014" - + "project,zone\202\323\344\223\0027\0225/compute/v1/projects" - + "/{project}/zones/{zone}/instances\022\343\001\n\rLi" - + "stReferrers\0226.google.cloud.compute.v1.Li" - + "stReferrersInstancesRequest\032..google.clo" - + "ud.compute.v1.InstanceListReferrers\"j\332A\025" - + "project,zone,instance\202\323\344\223\002L\022J/compute/v1" - + "/projects/{project}/zones/{zone}/instanc" - + "es/{instance}/referrers\022\373\001\n\022PerformMaint" - + "enance\022:.google.cloud.compute.v1.Perform" - + "MaintenanceInstanceRequest\032\".google.clou" - + "d.compute.v1.Operation\"\204\001\332A\025project,zone" - + ",instance\212N\016ZoneOperations\202\323\344\223\002U\"S/compu" + + "s/{instance}/deleteNetworkInterface\022\357\001\n\n" + + "DetachDisk\0222.google.cloud.compute.v1.Det" + + "achDiskInstanceRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\210\001\332A!project,zone,ins" + + "tance,device_name\212N\016ZoneOperations\202\323\344\223\002M" + + "\"K/compute/v1/projects/{project}/zones/{" + + "zone}/instances/{instance}/detachDisk\022\267\001" + + "\n\003Get\022+.google.cloud.compute.v1.GetInsta" + + "nceRequest\032!.google.cloud.compute.v1.Ins" + + "tance\"`\332A\025project,zone,instance\202\323\344\223\002B\022@/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/instances/{instance}\022\242\002\n\025GetEffective" + + "Firewalls\022=.google.cloud.compute.v1.GetE" + + "ffectiveFirewallsInstanceRequest\032?.googl" + + "e.cloud.compute.v1.InstancesGetEffective" + + "FirewallsResponse\"\210\001\332A\'project,zone,inst" + + "ance,network_interface\202\323\344\223\002X\022V/compute/v" + + "1/projects/{project}/zones/{zone}/instan" + + "ces/{instance}/getEffectiveFirewalls\022\357\001\n" + + "\022GetGuestAttributes\022:.google.cloud.compu" + + "te.v1.GetGuestAttributesInstanceRequest\032" + + "(.google.cloud.compute.v1.GuestAttribute" + + "s\"s\332A\025project,zone,instance\202\323\344\223\002U\022S/comp" + + "ute/v1/projects/{project}/zones/{zone}/i" + + "nstances/{instance}/getGuestAttributes\022\324" + + "\001\n\014GetIamPolicy\0224.google.cloud.compute.v" + + "1.GetIamPolicyInstanceRequest\032\037.google.c" + + "loud.compute.v1.Policy\"m\332A\025project,zone," + + "resource\202\323\344\223\002O\022M/compute/v1/projects/{pr" + + "oject}/zones/{zone}/instances/{resource}" + + "/getIamPolicy\022\330\001\n\rGetScreenshot\0225.google" + + ".cloud.compute.v1.GetScreenshotInstanceR" + + "equest\032#.google.cloud.compute.v1.Screens" + + "hot\"k\332A\025project,zone,instance\202\323\344\223\002M\022K/co" + + "mpute/v1/projects/{project}/zones/{zone}" + + "/instances/{instance}/screenshot\022\352\001\n\023Get" + + "SerialPortOutput\022;.google.cloud.compute." + + "v1.GetSerialPortOutputInstanceRequest\032)." + + "google.cloud.compute.v1.SerialPortOutput" + + "\"k\332A\025project,zone,instance\202\323\344\223\002M\022K/compu" + "te/v1/projects/{project}/zones/{zone}/in" - + "stances/{instance}/performMaintenance\022\361\002" - + "\n\026RemoveResourcePolicies\022>.google.cloud." - + "compute.v1.RemoveResourcePoliciesInstanc" - + "eRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\362\001\332AIproject,zone,instance,instance" - + "s_remove_resource_policies_request_resou" - + "rce\212N\016ZoneOperations\202\323\344\223\002\216\001\"W/compute/v1" + + "stances/{instance}/serialPort\022\223\002\n\033GetShi" + + "eldedInstanceIdentity\022C.google.cloud.com" + + "pute.v1.GetShieldedInstanceIdentityInsta" + + "nceRequest\0321.google.cloud.compute.v1.Shi" + + "eldedInstanceIdentity\"|\332A\025project,zone,i" + + "nstance\202\323\344\223\002^\022\\/compute/v1/projects/{pro" + + "ject}/zones/{zone}/instances/{instance}/" + + "getShieldedInstanceIdentity\022\341\001\n\006Insert\022." + + ".google.cloud.compute.v1.InsertInstanceR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\202\001\332A\036project,zone,instance_resource\212N" + + "\016ZoneOperations\202\323\344\223\002J\"5/compute/v1/proje" + + "cts/{project}/zones/{zone}/instances:\021in" + + "stance_resource\022\252\001\n\004List\022-.google.cloud." + + "compute.v1.ListInstancesRequest\032%.google" + + ".cloud.compute.v1.InstanceList\"L\332A\014proje" + + "ct,zone\202\323\344\223\0027\0225/compute/v1/projects/{pro" + + "ject}/zones/{zone}/instances\022\343\001\n\rListRef" + + "errers\0226.google.cloud.compute.v1.ListRef" + + "errersInstancesRequest\032..google.cloud.co" + + "mpute.v1.InstanceListReferrers\"j\332A\025proje" + + "ct,zone,instance\202\323\344\223\002L\022J/compute/v1/proj" + + "ects/{project}/zones/{zone}/instances/{i" + + "nstance}/referrers\022\373\001\n\022PerformMaintenanc" + + "e\022:.google.cloud.compute.v1.PerformMaint" + + "enanceInstanceRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\204\001\332A\025project,zone,inst" + + "ance\212N\016ZoneOperations\202\323\344\223\002U\"S/compute/v1" + "/projects/{project}/zones/{zone}/instanc" - + "es/{instance}/removeResourcePolicies:3in" - + "stances_remove_resource_policies_request" - + "_resource\022\337\002\n\022ReportHostAsFaulty\022:.googl" - + "e.cloud.compute.v1.ReportHostAsFaultyIns" - + "tanceRequest\032\".google.cloud.compute.v1.O" - + "peration\"\350\001\332AFproject,zone,instance,inst" - + "ances_report_host_as_faulty_request_reso" - + "urce\212N\016ZoneOperations\202\323\344\223\002\207\001\"S/compute/v" - + "1/projects/{project}/zones/{zone}/instan" - + "ces/{instance}/reportHostAsFaulty:0insta" - + "nces_report_host_as_faulty_request_resou" - + "rce\022\323\001\n\005Reset\022-.google.cloud.compute.v1." - + "ResetInstanceRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"w\332A\025project,zone,instan" - + "ce\212N\016ZoneOperations\202\323\344\223\002H\"F/compute/v1/p" - + "rojects/{project}/zones/{zone}/instances" - + "/{instance}/reset\022\326\001\n\006Resume\022..google.cl" - + "oud.compute.v1.ResumeInstanceRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"x\332A\025pro" - + "ject,zone,instance\212N\016ZoneOperations\202\323\344\223\002" - + "I\"G/compute/v1/projects/{project}/zones/" - + "{zone}/instances/{instance}/resume\022\226\002\n\027S" - + "endDiagnosticInterrupt\022?.google.cloud.co" - + "mpute.v1.SendDiagnosticInterruptInstance" - + "Request\032@.google.cloud.compute.v1.SendDi" - + "agnosticInterruptInstanceResponse\"x\332A\025pr" - + "oject,zone,instance\202\323\344\223\002Z\"X/compute/v1/p" - + "rojects/{project}/zones/{zone}/instances" - + "/{instance}/sendDiagnosticInterrupt\022\204\002\n\025" - + "SetDeletionProtection\022=.google.cloud.com" - + "pute.v1.SetDeletionProtectionInstanceReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\207\001\332A\025project,zone,resource\212N\016ZoneOperat" - + "ions\202\323\344\223\002X\"V/compute/v1/projects/{projec" - + "t}/zones/{zone}/instances/{resource}/set" - + "DeletionProtection\022\220\002\n\021SetDiskAutoDelete" - + "\0229.google.cloud.compute.v1.SetDiskAutoDe" - + "leteInstanceRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\233\001\332A-project,zone,instan" - + "ce,auto_delete,device_name\212N\016ZoneOperati" - + "ons\202\323\344\223\002T\"R/compute/v1/projects/{project" - + "}/zones/{zone}/instances/{instance}/setD" - + "iskAutoDelete\022\230\002\n\014SetIamPolicy\0224.google." - + "cloud.compute.v1.SetIamPolicyInstanceReq" - + "uest\032\037.google.cloud.compute.v1.Policy\"\260\001" - + "\332A6project,zone,resource,zone_set_policy" - + "_request_resource\202\323\344\223\002q\"M/compute/v1/pro" + + "es/{instance}/performMaintenance\022\361\002\n\026Rem" + + "oveResourcePolicies\022>.google.cloud.compu" + + "te.v1.RemoveResourcePoliciesInstanceRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\362\001\332AIproject,zone,instance,instances_rem" + + "ove_resource_policies_request_resource\212N" + + "\016ZoneOperations\202\323\344\223\002\216\001\"W/compute/v1/proj" + + "ects/{project}/zones/{zone}/instances/{i" + + "nstance}/removeResourcePolicies:3instanc" + + "es_remove_resource_policies_request_reso" + + "urce\022\337\002\n\022ReportHostAsFaulty\022:.google.clo" + + "ud.compute.v1.ReportHostAsFaultyInstance" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\350\001\332AFproject,zone,instance,instances" + + "_report_host_as_faulty_request_resource\212" + + "N\016ZoneOperations\202\323\344\223\002\207\001\"S/compute/v1/pro" + "jects/{project}/zones/{zone}/instances/{" - + "resource}/setIamPolicy: zone_set_policy_" - + "request_resource\022\255\002\n\tSetLabels\0221.google." - + "cloud.compute.v1.SetLabelsInstanceReques" - + "t\032\".google.cloud.compute.v1.Operation\"\310\001" - + "\332A;project,zone,instance,instances_set_l" - + "abels_request_resource\212N\016ZoneOperations\202" - + "\323\344\223\002s\"J/compute/v1/projects/{project}/zo" - + "nes/{zone}/instances/{instance}/setLabel" - + "s:%instances_set_labels_request_resource" - + "\022\342\002\n\023SetMachineResources\022;.google.cloud." - + "compute.v1.SetMachineResourcesInstanceRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\351\001\332AFproject,zone,instance,instances_s" - + "et_machine_resources_request_resource\212N\016" - + "ZoneOperations\202\323\344\223\002\210\001\"T/compute/v1/proje" - + "cts/{project}/zones/{zone}/instances/{in" - + "stance}/setMachineResources:0instances_s" - + "et_machine_resources_request_resource\022\310\002" - + "\n\016SetMachineType\0226.google.cloud.compute." - + "v1.SetMachineTypeInstanceRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\331\001\332AAprojec" - + "t,zone,instance,instances_set_machine_ty" - + "pe_request_resource\212N\016ZoneOperations\202\323\344\223" - + "\002~\"O/compute/v1/projects/{project}/zones" - + "/{zone}/instances/{instance}/setMachineT" - + "ype:+instances_set_machine_type_request_" - + "resource\022\213\002\n\013SetMetadata\0223.google.cloud." - + "compute.v1.SetMetadataInstanceRequest\032\"." - + "google.cloud.compute.v1.Operation\"\242\001\332A\'p" - + "roject,zone,instance,metadata_resource\212N" - + "\016ZoneOperations\202\323\344\223\002a\"L/compute/v1/proje" - + "cts/{project}/zones/{zone}/instances/{in" - + "stance}/setMetadata:\021metadata_resource\022\332" - + "\002\n\021SetMinCpuPlatform\0229.google.cloud.comp" - + "ute.v1.SetMinCpuPlatformInstanceRequest\032" - + "\".google.cloud.compute.v1.Operation\"\345\001\332A" - + "Eproject,zone,instance,instances_set_min" - + "_cpu_platform_request_resource\212N\016ZoneOpe" - + "rations\202\323\344\223\002\205\001\"R/compute/v1/projects/{pr" - + "oject}/zones/{zone}/instances/{instance}" - + "/setMinCpuPlatform:/instances_set_min_cp" - + "u_platform_request_resource\022\243\002\n\007SetName\022" - + "/.google.cloud.compute.v1.SetNameInstanc" - + "eRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\302\001\332A9project,zone,instance,instance" - + "s_set_name_request_resource\212N\016ZoneOperat" - + "ions\202\323\344\223\002o\"H/compute/v1/projects/{projec" - + "t}/zones/{zone}/instances/{instance}/set" - + "Name:#instances_set_name_request_resourc" - + "e\022\225\002\n\rSetScheduling\0225.google.cloud.compu" - + "te.v1.SetSchedulingInstanceRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\250\001\332A)proj" - + "ect,zone,instance,scheduling_resource\212N\016" - + "ZoneOperations\202\323\344\223\002e\"N/compute/v1/projec" + + "instance}/reportHostAsFaulty:0instances_" + + "report_host_as_faulty_request_resource\022\323" + + "\001\n\005Reset\022-.google.cloud.compute.v1.Reset" + + "InstanceRequest\032\".google.cloud.compute.v" + + "1.Operation\"w\332A\025project,zone,instance\212N\016" + + "ZoneOperations\202\323\344\223\002H\"F/compute/v1/projec" + + "ts/{project}/zones/{zone}/instances/{ins" + + "tance}/reset\022\326\001\n\006Resume\022..google.cloud.c" + + "ompute.v1.ResumeInstanceRequest\032\".google" + + ".cloud.compute.v1.Operation\"x\332A\025project," + + "zone,instance\212N\016ZoneOperations\202\323\344\223\002I\"G/c" + + "ompute/v1/projects/{project}/zones/{zone" + + "}/instances/{instance}/resume\022\226\002\n\027SendDi" + + "agnosticInterrupt\022?.google.cloud.compute" + + ".v1.SendDiagnosticInterruptInstanceReque" + + "st\032@.google.cloud.compute.v1.SendDiagnos" + + "ticInterruptInstanceResponse\"x\332A\025project" + + ",zone,instance\202\323\344\223\002Z\"X/compute/v1/projec" + "ts/{project}/zones/{zone}/instances/{ins" - + "tance}/setScheduling:\023scheduling_resourc" - + "e\022\330\002\n\021SetSecurityPolicy\0229.google.cloud.c" - + "ompute.v1.SetSecurityPolicyInstanceReque" - + "st\032\".google.cloud.compute.v1.Operation\"\343" - + "\001\332ADproject,zone,instance,instances_set_" - + "security_policy_request_resource\212N\016ZoneO" - + "perations\202\323\344\223\002\204\001\"R/compute/v1/projects/{" + + "tance}/sendDiagnosticInterrupt\022\204\002\n\025SetDe" + + "letionProtection\022=.google.cloud.compute." + + "v1.SetDeletionProtectionInstanceRequest\032" + + "\".google.cloud.compute.v1.Operation\"\207\001\332A" + + "\025project,zone,resource\212N\016ZoneOperations\202" + + "\323\344\223\002X\"V/compute/v1/projects/{project}/zo" + + "nes/{zone}/instances/{resource}/setDelet" + + "ionProtection\022\220\002\n\021SetDiskAutoDelete\0229.go" + + "ogle.cloud.compute.v1.SetDiskAutoDeleteI" + + "nstanceRequest\032\".google.cloud.compute.v1" + + ".Operation\"\233\001\332A-project,zone,instance,au" + + "to_delete,device_name\212N\016ZoneOperations\202\323" + + "\344\223\002T\"R/compute/v1/projects/{project}/zon" + + "es/{zone}/instances/{instance}/setDiskAu" + + "toDelete\022\230\002\n\014SetIamPolicy\0224.google.cloud" + + ".compute.v1.SetIamPolicyInstanceRequest\032" + + "\037.google.cloud.compute.v1.Policy\"\260\001\332A6pr" + + "oject,zone,resource,zone_set_policy_requ" + + "est_resource\202\323\344\223\002q\"M/compute/v1/projects" + + "/{project}/zones/{zone}/instances/{resou" + + "rce}/setIamPolicy: zone_set_policy_reque" + + "st_resource\022\255\002\n\tSetLabels\0221.google.cloud" + + ".compute.v1.SetLabelsInstanceRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\310\001\332A;pr" + + "oject,zone,instance,instances_set_labels" + + "_request_resource\212N\016ZoneOperations\202\323\344\223\002s" + + "\"J/compute/v1/projects/{project}/zones/{" + + "zone}/instances/{instance}/setLabels:%in" + + "stances_set_labels_request_resource\022\342\002\n\023" + + "SetMachineResources\022;.google.cloud.compu" + + "te.v1.SetMachineResourcesInstanceRequest" + + "\032\".google.cloud.compute.v1.Operation\"\351\001\332" + + "AFproject,zone,instance,instances_set_ma" + + "chine_resources_request_resource\212N\016ZoneO" + + "perations\202\323\344\223\002\210\001\"T/compute/v1/projects/{" + "project}/zones/{zone}/instances/{instanc" - + "e}/setSecurityPolicy:.instances_set_secu" - + "rity_policy_request_resource\022\330\002\n\021SetServ" - + "iceAccount\0229.google.cloud.compute.v1.Set" - + "ServiceAccountInstanceRequest\032\".google.c" - + "loud.compute.v1.Operation\"\343\001\332ADproject,z" - + "one,instance,instances_set_service_accou" - + "nt_request_resource\212N\016ZoneOperations\202\323\344\223" - + "\002\204\001\"R/compute/v1/projects/{project}/zone" - + "s/{zone}/instances/{instance}/setService" - + "Account:.instances_set_service_account_r" - + "equest_resource\022\205\003\n\"SetShieldedInstanceI" - + "ntegrityPolicy\022J.google.cloud.compute.v1" - + ".SetShieldedInstanceIntegrityPolicyInsta" - + "nceRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\356\001\332AAproject,zone,instance,shield" - + "ed_instance_integrity_policy_resource\212N\016" - + "ZoneOperations\202\323\344\223\002\222\0012c/compute/v1/proje" - + "cts/{project}/zones/{zone}/instances/{in" - + "stance}/setShieldedInstanceIntegrityPoli" - + "cy:+shielded_instance_integrity_policy_r" - + "esource\022\367\001\n\007SetTags\022/.google.cloud.compu" - + "te.v1.SetTagsInstanceRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\226\001\332A#project,zo" - + "ne,instance,tags_resource\212N\016ZoneOperatio" - + "ns\202\323\344\223\002Y\"H/compute/v1/projects/{project}" - + "/zones/{zone}/instances/{instance}/setTa" - + "gs:\rtags_resource\022\215\002\n\030SimulateMaintenanc" - + "eEvent\022@.google.cloud.compute.v1.Simulat" - + "eMaintenanceEventInstanceRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\212\001\332A\025projec" - + "t,zone,instance\212N\016ZoneOperations\202\323\344\223\002[\"Y" + + "e}/setMachineResources:0instances_set_ma" + + "chine_resources_request_resource\022\310\002\n\016Set" + + "MachineType\0226.google.cloud.compute.v1.Se" + + "tMachineTypeInstanceRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\331\001\332AAproject,zon" + + "e,instance,instances_set_machine_type_re" + + "quest_resource\212N\016ZoneOperations\202\323\344\223\002~\"O/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/instances/{instance}/setMachineType:+" + + "instances_set_machine_type_request_resou" + + "rce\022\213\002\n\013SetMetadata\0223.google.cloud.compu" + + "te.v1.SetMetadataInstanceRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\242\001\332A\'projec" + + "t,zone,instance,metadata_resource\212N\016Zone" + + "Operations\202\323\344\223\002a\"L/compute/v1/projects/{" + + "project}/zones/{zone}/instances/{instanc" + + "e}/setMetadata:\021metadata_resource\022\332\002\n\021Se" + + "tMinCpuPlatform\0229.google.cloud.compute.v" + + "1.SetMinCpuPlatformInstanceRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\345\001\332AEproj" + + "ect,zone,instance,instances_set_min_cpu_" + + "platform_request_resource\212N\016ZoneOperatio" + + "ns\202\323\344\223\002\205\001\"R/compute/v1/projects/{project" + + "}/zones/{zone}/instances/{instance}/setM" + + "inCpuPlatform:/instances_set_min_cpu_pla" + + "tform_request_resource\022\243\002\n\007SetName\022/.goo" + + "gle.cloud.compute.v1.SetNameInstanceRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\302\001\332A9project,zone,instance,instances_set" + + "_name_request_resource\212N\016ZoneOperations\202" + + "\323\344\223\002o\"H/compute/v1/projects/{project}/zo" + + "nes/{zone}/instances/{instance}/setName:" + + "#instances_set_name_request_resource\022\225\002\n" + + "\rSetScheduling\0225.google.cloud.compute.v1" + + ".SetSchedulingInstanceRequest\032\".google.c" + + "loud.compute.v1.Operation\"\250\001\332A)project,z" + + "one,instance,scheduling_resource\212N\016ZoneO" + + "perations\202\323\344\223\002e\"N/compute/v1/projects/{p" + + "roject}/zones/{zone}/instances/{instance" + + "}/setScheduling:\023scheduling_resource\022\330\002\n" + + "\021SetSecurityPolicy\0229.google.cloud.comput" + + "e.v1.SetSecurityPolicyInstanceRequest\032\"." + + "google.cloud.compute.v1.Operation\"\343\001\332ADp" + + "roject,zone,instance,instances_set_secur" + + "ity_policy_request_resource\212N\016ZoneOperat" + + "ions\202\323\344\223\002\204\001\"R/compute/v1/projects/{proje" + + "ct}/zones/{zone}/instances/{instance}/se" + + "tSecurityPolicy:.instances_set_security_" + + "policy_request_resource\022\330\002\n\021SetServiceAc" + + "count\0229.google.cloud.compute.v1.SetServi" + + "ceAccountInstanceRequest\032\".google.cloud." + + "compute.v1.Operation\"\343\001\332ADproject,zone,i" + + "nstance,instances_set_service_account_re" + + "quest_resource\212N\016ZoneOperations\202\323\344\223\002\204\001\"R" + "/compute/v1/projects/{project}/zones/{zo" - + "ne}/instances/{instance}/simulateMainten" - + "anceEvent\022\323\001\n\005Start\022-.google.cloud.compu" - + "te.v1.StartInstanceRequest\032\".google.clou" - + "d.compute.v1.Operation\"w\332A\025project,zone," - + "instance\212N\016ZoneOperations\202\323\344\223\002H\"F/comput" - + "e/v1/projects/{project}/zones/{zone}/ins" - + "tances/{instance}/start\022\363\002\n\026StartWithEnc" - + "ryptionKey\022>.google.cloud.compute.v1.Sta" - + "rtWithEncryptionKeyInstanceRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\364\001\332AJproj" - + "ect,zone,instance,instances_start_with_e" - + "ncryption_key_request_resource\212N\016ZoneOpe" - + "rations\202\323\344\223\002\217\001\"W/compute/v1/projects/{pr" - + "oject}/zones/{zone}/instances/{instance}" - + "/startWithEncryptionKey:4instances_start" - + "_with_encryption_key_request_resource\022\320\001" - + "\n\004Stop\022,.google.cloud.compute.v1.StopIns" - + "tanceRequest\032\".google.cloud.compute.v1.O" - + "peration\"v\332A\025project,zone,instance\212N\016Zon" - + "eOperations\202\323\344\223\002G\"E/compute/v1/projects/" - + "{project}/zones/{zone}/instances/{instan" - + "ce}/stop\022\331\001\n\007Suspend\022/.google.cloud.comp" - + "ute.v1.SuspendInstanceRequest\032\".google.c" - + "loud.compute.v1.Operation\"y\332A\025project,zo" - + "ne,instance\212N\016ZoneOperations\202\323\344\223\002J\"H/com" - + "pute/v1/projects/{project}/zones/{zone}/" - + "instances/{instance}/suspend\022\275\002\n\022TestIam" - + "Permissions\022:.google.cloud.compute.v1.Te" - + "stIamPermissionsInstanceRequest\0320.google" - + ".cloud.compute.v1.TestPermissionsRespons" - + "e\"\270\001\332A7project,zone,resource,test_permis" - + "sions_request_resource\202\323\344\223\002x\"S/compute/v" - + "1/projects/{project}/zones/{zone}/instan" - + "ces/{resource}/testIamPermissions:!test_" - + "permissions_request_resource\022\365\001\n\006Update\022" - + "..google.cloud.compute.v1.UpdateInstance" + + "ne}/instances/{instance}/setServiceAccou" + + "nt:.instances_set_service_account_reques" + + "t_resource\022\205\003\n\"SetShieldedInstanceIntegr" + + "ityPolicy\022J.google.cloud.compute.v1.SetS" + + "hieldedInstanceIntegrityPolicyInstanceRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\356\001\332AAproject,zone,instance,shielded_in" + + "stance_integrity_policy_resource\212N\016ZoneO" + + "perations\202\323\344\223\002\222\0012c/compute/v1/projects/{" + + "project}/zones/{zone}/instances/{instanc" + + "e}/setShieldedInstanceIntegrityPolicy:+s" + + "hielded_instance_integrity_policy_resour" + + "ce\022\367\001\n\007SetTags\022/.google.cloud.compute.v1" + + ".SetTagsInstanceRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\226\001\332A#project,zone,in" + + "stance,tags_resource\212N\016ZoneOperations\202\323\344" + + "\223\002Y\"H/compute/v1/projects/{project}/zone" + + "s/{zone}/instances/{instance}/setTags:\rt" + + "ags_resource\022\215\002\n\030SimulateMaintenanceEven" + + "t\022@.google.cloud.compute.v1.SimulateMain" + + "tenanceEventInstanceRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\212\001\332A\025project,zon" + + "e,instance\212N\016ZoneOperations\202\323\344\223\002[\"Y/comp" + + "ute/v1/projects/{project}/zones/{zone}/i" + + "nstances/{instance}/simulateMaintenanceE" + + "vent\022\323\001\n\005Start\022-.google.cloud.compute.v1" + + ".StartInstanceRequest\032\".google.cloud.com" + + "pute.v1.Operation\"w\332A\025project,zone,insta" + + "nce\212N\016ZoneOperations\202\323\344\223\002H\"F/compute/v1/" + + "projects/{project}/zones/{zone}/instance" + + "s/{instance}/start\022\363\002\n\026StartWithEncrypti" + + "onKey\022>.google.cloud.compute.v1.StartWit" + + "hEncryptionKeyInstanceRequest\032\".google.c" + + "loud.compute.v1.Operation\"\364\001\332AJproject,z" + + "one,instance,instances_start_with_encryp" + + "tion_key_request_resource\212N\016ZoneOperatio" + + "ns\202\323\344\223\002\217\001\"W/compute/v1/projects/{project" + + "}/zones/{zone}/instances/{instance}/star" + + "tWithEncryptionKey:4instances_start_with" + + "_encryption_key_request_resource\022\320\001\n\004Sto" + + "p\022,.google.cloud.compute.v1.StopInstance" + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\226\001\332A\'project,zone,instance,instance_" - + "resource\212N\016ZoneOperations\202\323\344\223\002U\032@/comput" + + "ion\"v\332A\025project,zone,instance\212N\016ZoneOper" + + "ations\202\323\344\223\002G\"E/compute/v1/projects/{proj" + + "ect}/zones/{zone}/instances/{instance}/s" + + "top\022\331\001\n\007Suspend\022/.google.cloud.compute.v" + + "1.SuspendInstanceRequest\032\".google.cloud." + + "compute.v1.Operation\"y\332A\025project,zone,in" + + "stance\212N\016ZoneOperations\202\323\344\223\002J\"H/compute/" + + "v1/projects/{project}/zones/{zone}/insta" + + "nces/{instance}/suspend\022\275\002\n\022TestIamPermi" + + "ssions\022:.google.cloud.compute.v1.TestIam" + + "PermissionsInstanceRequest\0320.google.clou" + + "d.compute.v1.TestPermissionsResponse\"\270\001\332" + + "A7project,zone,resource,test_permissions" + + "_request_resource\202\323\344\223\002x\"S/compute/v1/pro" + + "jects/{project}/zones/{zone}/instances/{" + + "resource}/testIamPermissions:!test_permi" + + "ssions_request_resource\022\365\001\n\006Update\022..goo" + + "gle.cloud.compute.v1.UpdateInstanceReque" + + "st\032\".google.cloud.compute.v1.Operation\"\226" + + "\001\332A\'project,zone,instance,instance_resou" + + "rce\212N\016ZoneOperations\202\323\344\223\002U\032@/compute/v1/" + + "projects/{project}/zones/{zone}/instance" + + "s/{instance}:\021instance_resource\022\274\002\n\022Upda" + + "teAccessConfig\022:.google.cloud.compute.v1" + + ".UpdateAccessConfigInstanceRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\305\001\332A>proj" + + "ect,zone,instance,network_interface,acce" + + "ss_config_resource\212N\016ZoneOperations\202\323\344\223\002" + + "m\"S/compute/v1/projects/{project}/zones/" + + "{zone}/instances/{instance}/updateAccess" + + "Config:\026access_config_resource\022\257\002\n\023Updat" + + "eDisplayDevice\022;.google.cloud.compute.v1" + + ".UpdateDisplayDeviceInstanceRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\266\001\332A-pro" + + "ject,zone,instance,display_device_resour" + + "ce\212N\016ZoneOperations\202\323\344\223\002o2T/compute/v1/p" + + "rojects/{project}/zones/{zone}/instances" + + "/{instance}/updateDisplayDevice:\027display" + + "_device_resource\022\320\002\n\026UpdateNetworkInterf" + + "ace\022>.google.cloud.compute.v1.UpdateNetw" + + "orkInterfaceInstanceRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\321\001\332ABproject,zon" + + "e,instance,network_interface,network_int" + + "erface_resource\212N\016ZoneOperations\202\323\344\223\002u2W" + + "/compute/v1/projects/{project}/zones/{zo" + + "ne}/instances/{instance}/updateNetworkIn" + + "terface:\032network_interface_resource\022\337\002\n\034" + + "UpdateShieldedInstanceConfig\022D.google.cl" + + "oud.compute.v1.UpdateShieldedInstanceCon" + + "figInstanceRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\324\001\332A7project,zone,instanc" + + "e,shielded_instance_config_resource\212N\016Zo" + + "neOperations\202\323\344\223\002\202\0012]/compute/v1/project" + + "s/{project}/zones/{zone}/instances/{inst" + + "ance}/updateShieldedInstanceConfig:!shie" + + "lded_instance_config_resource\032\202\001\312A\026compu" + + "te.googleapis.com\322AVhttps://www.googleap" + + "is.com/auth/compute,https://www.googleap" + + "is.com/auth/cloud-platform\212\324\333\322\017\n2026-09-" + + "012\203\020\n\025InstantSnapshotGroups\022\204\002\n\006Delete\022" + + ":.google.cloud.compute.v1.DeleteInstantS" + + "napshotGroupRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\231\001\332A#project,zone,instan" + + "t_snapshot_group\212N\016ZoneOperations\202\323\344\223\002\\*", + "Z/compute/v1/projects/{project}/zones/{z" + + "one}/instantSnapshotGroups/{instant_snap" + + "shot_group}\022\370\001\n\003Get\0227.google.cloud.compu" + + "te.v1.GetInstantSnapshotGroupRequest\032-.g" + + "oogle.cloud.compute.v1.InstantSnapshotGr" + + "oup\"\210\001\332A#project,zone,instant_snapshot_g" + + "roup\202\323\344\223\002\\\022Z/compute/v1/projects/{projec" + + "t}/zones/{zone}/instantSnapshotGroups/{i" + + "nstant_snapshot_group}\022\354\001\n\014GetIamPolicy\022" + + "@.google.cloud.compute.v1.GetIamPolicyIn" + + "stantSnapshotGroupRequest\032\037.google.cloud" + + ".compute.v1.Policy\"y\332A\025project,zone,reso" + + "urce\202\323\344\223\002[\022Y/compute/v1/projects/{projec" + + "t}/zones/{zone}/instantSnapshotGroups/{r" + + "esource}/getIamPolicy\022\225\002\n\006Insert\022:.googl" + + "e.cloud.compute.v1.InsertInstantSnapshot" + + "GroupRequest\032\".google.cloud.compute.v1.O" + + "peration\"\252\001\332A,project,zone,instant_snaps" + + "hot_group_resource\212N\016ZoneOperations\202\323\344\223\002" + + "d\"A/compute/v1/projects/{project}/zones/" + + "{zone}/instantSnapshotGroups:\037instant_sn" + + "apshot_group_resource\022\317\001\n\004List\0229.google." + + "cloud.compute.v1.ListInstantSnapshotGrou" + + "psRequest\0322.google.cloud.compute.v1.List" + + "InstantSnapshotGroups\"X\332A\014project,zone\202\323" + + "\344\223\002C\022A/compute/v1/projects/{project}/zon" + + "es/{zone}/instantSnapshotGroups\022\260\002\n\014SetI" + + "amPolicy\022@.google.cloud.compute.v1.SetIa" + + "mPolicyInstantSnapshotGroupRequest\032\037.goo" + + "gle.cloud.compute.v1.Policy\"\274\001\332A6project" + + ",zone,resource,zone_set_policy_request_r" + + "esource\202\323\344\223\002}\"Y/compute/v1/projects/{pro" + + "ject}/zones/{zone}/instantSnapshotGroups" + + "/{resource}/setIamPolicy: zone_set_polic" + + "y_request_resource\022\326\002\n\022TestIamPermission" + + "s\022F.google.cloud.compute.v1.TestIamPermi" + + "ssionsInstantSnapshotGroupRequest\0320.goog" + + "le.cloud.compute.v1.TestPermissionsRespo" + + "nse\"\305\001\332A7project,zone,resource,test_perm" + + "issions_request_resource\202\323\344\223\002\204\001\"_/comput" + "e/v1/projects/{project}/zones/{zone}/ins" - + "tances/{instance}:\021instance_resource\022\274\002\n" - + "\022UpdateAccessConfig\022:.google.cloud.compu" - + "te.v1.UpdateAccessConfigInstanceRequest\032" - + "\".google.cloud.compute.v1.Operation\"\305\001\332A" - + ">project,zone,instance,network_interface" - + ",access_config_resource\212N\016ZoneOperations" - + "\202\323\344\223\002m\"S/compute/v1/projects/{project}/z" - + "ones/{zone}/instances/{instance}/updateA" - + "ccessConfig:\026access_config_resource\022\257\002\n\023" - + "UpdateDisplayDevice\022;.google.cloud.compu" - + "te.v1.UpdateDisplayDeviceInstanceRequest" - + "\032\".google.cloud.compute.v1.Operation\"\266\001\332" - + "A-project,zone,instance,display_device_r" - + "esource\212N\016ZoneOperations\202\323\344\223\002o2T/compute" - + "/v1/projects/{project}/zones/{zone}/inst" - + "ances/{instance}/updateDisplayDevice:\027di" - + "splay_device_resource\022\320\002\n\026UpdateNetworkI" - + "nterface\022>.google.cloud.compute.v1.Updat" - + "eNetworkInterfaceInstanceRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\321\001\332ABprojec" - + "t,zone,instance,network_interface,networ" - + "k_interface_resource\212N\016ZoneOperations\202\323\344" - + "\223\002u2W/compute/v1/projects/{project}/zone" - + "s/{zone}/instances/{instance}/updateNetw" - + "orkInterface:\032network_interface_resource" - + "\022\337\002\n\034UpdateShieldedInstanceConfig\022D.goog" - + "le.cloud.compute.v1.UpdateShieldedInstan" - + "ceConfigInstanceRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\324\001\332A7project,zone,in" - + "stance,shielded_instance_config_resource" - + "\212N\016ZoneOperations\202\323\344\223\002\202\0012]/compute/v1/pr" - + "ojects/{project}/zones/{zone}/instances/" - + "{instance}/updateShieldedInstanceConfig:" - + "!shielded_instance_config_resource\032\202\001\312A\026" - + "compute.googleapis.com\322AVhttps://www.goo" - + "gleapis.com/auth/compute,https://www.goo" - + "gleapis.com/auth/cloud-platform\212\324\333\322\017\n202" - + "6-09-012\203\020\n\025InstantSnapshotGroups\022\204\002\n\006De" - + "lete\022:.google.cloud.compute.v1.DeleteIns" - + "tantSnapshotGroupRequest\032\".google.cloud." - + "compute.v1.Operation\"\231\001\332A#project,zone,i" - + "nstant_snapshot_group\212N\016ZoneOperations\202\323" - + "\344\223\002\\*Z/compute/v1/projects/{project}/zon", - "es/{zone}/instantSnapshotGroups/{instant" - + "_snapshot_group}\022\370\001\n\003Get\0227.google.cloud." - + "compute.v1.GetInstantSnapshotGroupReques" - + "t\032-.google.cloud.compute.v1.InstantSnaps" - + "hotGroup\"\210\001\332A#project,zone,instant_snaps" - + "hot_group\202\323\344\223\002\\\022Z/compute/v1/projects/{p" - + "roject}/zones/{zone}/instantSnapshotGrou" - + "ps/{instant_snapshot_group}\022\354\001\n\014GetIamPo" - + "licy\022@.google.cloud.compute.v1.GetIamPol" - + "icyInstantSnapshotGroupRequest\032\037.google." - + "cloud.compute.v1.Policy\"y\332A\025project,zone" - + ",resource\202\323\344\223\002[\022Y/compute/v1/projects/{p" - + "roject}/zones/{zone}/instantSnapshotGrou" - + "ps/{resource}/getIamPolicy\022\225\002\n\006Insert\022:." - + "google.cloud.compute.v1.InsertInstantSna" - + "pshotGroupRequest\032\".google.cloud.compute" - + ".v1.Operation\"\252\001\332A,project,zone,instant_" - + "snapshot_group_resource\212N\016ZoneOperations" - + "\202\323\344\223\002d\"A/compute/v1/projects/{project}/z" - + "ones/{zone}/instantSnapshotGroups:\037insta" - + "nt_snapshot_group_resource\022\317\001\n\004List\0229.go" - + "ogle.cloud.compute.v1.ListInstantSnapsho" - + "tGroupsRequest\0322.google.cloud.compute.v1" - + ".ListInstantSnapshotGroups\"X\332A\014project,z" - + "one\202\323\344\223\002C\022A/compute/v1/projects/{project" - + "}/zones/{zone}/instantSnapshotGroups\022\260\002\n" - + "\014SetIamPolicy\022@.google.cloud.compute.v1." - + "SetIamPolicyInstantSnapshotGroupRequest\032" - + "\037.google.cloud.compute.v1.Policy\"\274\001\332A6pr" - + "oject,zone,resource,zone_set_policy_requ" - + "est_resource\202\323\344\223\002}\"Y/compute/v1/projects" - + "/{project}/zones/{zone}/instantSnapshotG" - + "roups/{resource}/setIamPolicy: zone_set_" - + "policy_request_resource\022\326\002\n\022TestIamPermi" - + "ssions\022F.google.cloud.compute.v1.TestIam" - + "PermissionsInstantSnapshotGroupRequest\0320" - + ".google.cloud.compute.v1.TestPermissions" - + "Response\"\305\001\332A7project,zone,resource,test" - + "_permissions_request_resource\202\323\344\223\002\204\001\"_/c" - + "ompute/v1/projects/{project}/zones/{zone" - + "}/instantSnapshotGroups/{resource}/testI" - + "amPermissions:!test_permissions_request_" - + "resource\032\202\001\312A\026compute.googleapis.com\322AVh" - + "ttps://www.googleapis.com/auth/compute,h" - + "ttps://www.googleapis.com/auth/cloud-pla" - + "tform\212\324\333\322\017\n2026-09-012\224\023\n\020InstantSnapsho" - + "ts\022\326\001\n\016AggregatedList\022>.google.cloud.com" - + "pute.v1.AggregatedListInstantSnapshotsRe" - + "quest\0326.google.cloud.compute.v1.InstantS" - + "napshotAggregatedList\"L\332A\007project\202\323\344\223\002<\022" - + ":/compute/v1/projects/{project}/aggregat" - + "ed/instantSnapshots\022\356\001\n\006Delete\0225.google." - + "cloud.compute.v1.DeleteInstantSnapshotRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\210\001\332A\035project,zone,instant_snapshot\212N\016Z" - + "oneOperations\202\323\344\223\002Q*O/compute/v1/project" - + "s/{project}/zones/{zone}/instantSnapshot" - + "s/{instant_snapshot}\022\334\001\n\003Get\0222.google.cl" - + "oud.compute.v1.GetInstantSnapshotRequest" - + "\032(.google.cloud.compute.v1.InstantSnapsh" - + "ot\"w\332A\035project,zone,instant_snapshot\202\323\344\223" - + "\002Q\022O/compute/v1/projects/{project}/zones" - + "/{zone}/instantSnapshots/{instant_snapsh" - + "ot}\022\342\001\n\014GetIamPolicy\022;.google.cloud.comp" - + "ute.v1.GetIamPolicyInstantSnapshotReques" - + "t\032\037.google.cloud.compute.v1.Policy\"t\332A\025p" - + "roject,zone,resource\202\323\344\223\002V\022T/compute/v1/" - + "projects/{project}/zones/{zone}/instantS" - + "napshots/{resource}/getIamPolicy\022\377\001\n\006Ins" - + "ert\0225.google.cloud.compute.v1.InsertInst" - + "antSnapshotRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\231\001\332A&project,zone,instant" - + "_snapshot_resource\212N\016ZoneOperations\202\323\344\223\002" - + "Y\"\022.google.cloud.compute." + + "v1.AggregatedListInstantSnapshotsRequest" + + "\0326.google.cloud.compute.v1.InstantSnapsh" + + "otAggregatedList\"L\332A\007project\202\323\344\223\002<\022:/com" + + "pute/v1/projects/{project}/aggregated/in" + + "stantSnapshots\022\356\001\n\006Delete\0225.google.cloud" + + ".compute.v1.DeleteInstantSnapshotRequest" + + "\032\".google.cloud.compute.v1.Operation\"\210\001\332" + + "A\035project,zone,instant_snapshot\212N\016ZoneOp" + + "erations\202\323\344\223\002Q*O/compute/v1/projects/{pr" + + "oject}/zones/{zone}/instantSnapshots/{in" + + "stant_snapshot}\022\334\001\n\003Get\0222.google.cloud.c" + + "ompute.v1.GetInstantSnapshotRequest\032(.go" + + "ogle.cloud.compute.v1.InstantSnapshot\"w\332" + + "A\035project,zone,instant_snapshot\202\323\344\223\002Q\022O/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/instantSnapshots/{instant_snapshot}\022\342" + + "\001\n\014GetIamPolicy\022;.google.cloud.compute.v" + + "1.GetIamPolicyInstantSnapshotRequest\032\037.g" + + "oogle.cloud.compute.v1.Policy\"t\332A\025projec" + + "t,zone,resource\202\323\344\223\002V\022T/compute/v1/proje" + "cts/{project}/zones/{zone}/instantSnapsh" - + "ots/{resource}/setIamPolicy: zone_set_po" - + "licy_request_resource\022\261\002\n\tSetLabels\0228.go" - + "ogle.cloud.compute.v1.SetLabelsInstantSn" + + "ots/{resource}/getIamPolicy\022\377\001\n\006Insert\0225" + + ".google.cloud.compute.v1.InsertInstantSn" + "apshotRequest\032\".google.cloud.compute.v1." - + "Operation\"\305\001\332A6project,zone,resource,zon" - + "e_set_labels_request_resource\212N\016ZoneOper" - + "ations\202\323\344\223\002u\"Q/compute/v1/projects/{proj" - + "ect}/zones/{zone}/instantSnapshots/{reso" - + "urce}/setLabels: zone_set_labels_request" - + "_resource\022\313\002\n\022TestIamPermissions\022A.googl" - + "e.cloud.compute.v1.TestIamPermissionsIns" - + "tantSnapshotRequest\0320.google.cloud.compu" - + "te.v1.TestPermissionsResponse\"\277\001\332A7proje" - + "ct,zone,resource,test_permissions_reques" - + "t_resource\202\323\344\223\002\177\"Z/compute/v1/projects/{" + + "Operation\"\231\001\332A&project,zone,instant_snap" + + "shot_resource\212N\016ZoneOperations\202\323\344\223\002Y\"\022.google.cloud.compute.v1.GetInterconnec" - + "tAttachmentGroupRequest\0324.google.cloud.c" - + "ompute.v1.InterconnectAttachmentGroup\"\222\001" - + "\332A%project,interconnect_attachment_group" - + "\202\323\344\223\002d\022b/compute/v1/projects/{project}/g" + + "resource}/setIamPolicy: zone_set_policy_" + + "request_resource\022\261\002\n\tSetLabels\0228.google." + + "cloud.compute.v1.SetLabelsInstantSnapsho" + + "tRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\305\001\332A6project,zone,resource,zone_set" + + "_labels_request_resource\212N\016ZoneOperation" + + "s\202\323\344\223\002u\"Q/compute/v1/projects/{project}/" + + "zones/{zone}/instantSnapshots/{resource}" + + "/setLabels: zone_set_labels_request_reso" + + "urce\022\313\002\n\022TestIamPermissions\022A.google.clo" + + "ud.compute.v1.TestIamPermissionsInstantS" + + "napshotRequest\0320.google.cloud.compute.v1" + + ".TestPermissionsResponse\"\277\001\332A7project,zo" + + "ne,resource,test_permissions_request_res" + + "ource\202\323\344\223\002\177\"Z/compute/v1/projects/{proje" + + "ct}/zones/{zone}/instantSnapshots/{resou" + + "rce}/testIamPermissions:!test_permission" + + "s_request_resource\032\202\001\312A\026compute.googleap" + + "is.com\322AVhttps://www.googleapis.com/auth" + + "/compute,https://www.googleapis.com/auth" + + "/cloud-platform\212\324\333\322\017\n2026-09-012\267\026\n\034Inte" + + "rconnectAttachmentGroups\022\227\002\n\006Delete\022A.go" + + "ogle.cloud.compute.v1.DeleteInterconnect" + + "AttachmentGroupRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\245\001\332A%project,intercon" + + "nect_attachment_group\212N\020GlobalOperations" + + "\202\323\344\223\002d*b/compute/v1/projects/{project}/g" + "lobal/interconnectAttachmentGroups/{inte" - + "rconnect_attachment_group}\022\357\001\n\014GetIamPol" - + "icy\022G.google.cloud.compute.v1.GetIamPoli" - + "cyInterconnectAttachmentGroupRequest\032\037.g" - + "oogle.cloud.compute.v1.Policy\"u\332A\020projec" - + "t,resource\202\323\344\223\002\\\022Z/compute/v1/projects/{" + + "rconnect_attachment_group}\022\220\002\n\003Get\022>.goo" + + "gle.cloud.compute.v1.GetInterconnectAtta" + + "chmentGroupRequest\0324.google.cloud.comput" + + "e.v1.InterconnectAttachmentGroup\"\222\001\332A%pr" + + "oject,interconnect_attachment_group\202\323\344\223\002" + + "d\022b/compute/v1/projects/{project}/global" + + "/interconnectAttachmentGroups/{interconn" + + "ect_attachment_group}\022\357\001\n\014GetIamPolicy\022G" + + ".google.cloud.compute.v1.GetIamPolicyInt" + + "erconnectAttachmentGroupRequest\032\037.google" + + ".cloud.compute.v1.Policy\"u\332A\020project,res" + + "ource\202\323\344\223\002\\\022Z/compute/v1/projects/{proje" + + "ct}/global/interconnectAttachmentGroups/" + + "{resource}/getIamPolicy\022\344\002\n\024GetOperation" + + "alStatus\022O.google.cloud.compute.v1.GetOp" + + "erationalStatusInterconnectAttachmentGro" + + "upRequest\032Q.google.cloud.compute.v1.Inte" + + "rconnectAttachmentGroupsGetOperationalSt" + + "atusResponse\"\247\001\332A%project,interconnect_a" + + "ttachment_group\202\323\344\223\002y\022w/compute/v1/proje" + + "cts/{project}/global/interconnectAttachm" + + "entGroups/{interconnect_attachment_group" + + "}/getOperationalStatus\022\250\002\n\006Insert\022A.goog" + + "le.cloud.compute.v1.InsertInterconnectAt" + + "tachmentGroupRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\266\001\332A.project,interconne" + + "ct_attachment_group_resource\212N\020GlobalOpe" + + "rations\202\323\344\223\002l\"B/compute/v1/projects/{pro" + + "ject}/global/interconnectAttachmentGroup" + + "s:&interconnect_attachment_group_resourc" + + "e\022\341\001\n\004List\022@.google.cloud.compute.v1.Lis" + + "tInterconnectAttachmentGroupsRequest\032A.g" + + "oogle.cloud.compute.v1.InterconnectAttac" + + "hmentGroupsListResponse\"T\332A\007project\202\323\344\223\002" + + "D\022B/compute/v1/projects/{project}/global" + + "/interconnectAttachmentGroups\022\345\002\n\005Patch\022" + + "@.google.cloud.compute.v1.PatchInterconn" + + "ectAttachmentGroupRequest\032\".google.cloud" + + ".compute.v1.Operation\"\365\001\332ALproject,inter" + + "connect_attachment_group,interconnect_at" + + "tachment_group_resource\212N\020GlobalOperatio" + + "ns\202\323\344\223\002\214\0012b/compute/v1/projects/{project" + + "}/global/interconnectAttachmentGroups/{i" + + "nterconnect_attachment_group}:&interconn" + + "ect_attachment_group_resource\022\270\002\n\014SetIam" + + "Policy\022G.google.cloud.compute.v1.SetIamP" + + "olicyInterconnectAttachmentGroupRequest\032" + + "\037.google.cloud.compute.v1.Policy\"\275\001\332A3pr" + + "oject,resource,global_set_policy_request" + + "_resource\202\323\344\223\002\200\001\"Z/compute/v1/projects/{" + "project}/global/interconnectAttachmentGr" - + "oups/{resource}/getIamPolicy\022\344\002\n\024GetOper" - + "ationalStatus\022O.google.cloud.compute.v1." - + "GetOperationalStatusInterconnectAttachme" - + "ntGroupRequest\032Q.google.cloud.compute.v1" - + ".InterconnectAttachmentGroupsGetOperatio" - + "nalStatusResponse\"\247\001\332A%project,interconn" - + "ect_attachment_group\202\323\344\223\002y\022w/compute/v1/" - + "projects/{project}/global/interconnectAt" - + "tachmentGroups/{interconnect_attachment_" - + "group}/getOperationalStatus\022\250\002\n\006Insert\022A" + + "oups/{resource}/setIamPolicy:\"global_set" + + "_policy_request_resource\022\331\002\n\022TestIamPerm" + + "issions\022M.google.cloud.compute.v1.TestIa" + + "mPermissionsInterconnectAttachmentGroupR" + + "equest\0320.google.cloud.compute.v1.TestPer" + + "missionsResponse\"\301\001\332A2project,resource,t" + + "est_permissions_request_resource\202\323\344\223\002\205\001\"" + + "`/compute/v1/projects/{project}/global/i" + + "nterconnectAttachmentGroups/{resource}/t" + + "estIamPermissions:!test_permissions_requ" + + "est_resource\032\202\001\312A\026compute.googleapis.com" + + "\322AVhttps://www.googleapis.com/auth/compu" + + "te,https://www.googleapis.com/auth/cloud" + + "-platform\212\324\333\322\017\n2026-09-012\323\020\n\027Interconne" + + "ctAttachments\022\353\001\n\016AggregatedList\022E.googl" + + "e.cloud.compute.v1.AggregatedListInterco" + + "nnectAttachmentsRequest\032=.google.cloud.c" + + "ompute.v1.InterconnectAttachmentAggregat" + + "edList\"S\332A\007project\202\323\344\223\002C\022A/compute/v1/pr" + + "ojects/{project}/aggregated/interconnect" + + "Attachments\022\222\002\n\006Delete\022<.google.cloud.co" + + "mpute.v1.DeleteInterconnectAttachmentReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\245\001\332A&project,region,interconnect_attach" + + "ment\212N\020RegionOperations\202\323\344\223\002c*a/compute/" + + "v1/projects/{project}/regions/{region}/i" + + "nterconnectAttachments/{interconnect_att" + + "achment}\022\206\002\n\003Get\0229.google.cloud.compute." + + "v1.GetInterconnectAttachmentRequest\032/.go" + + "ogle.cloud.compute.v1.InterconnectAttach" + + "ment\"\222\001\332A&project,region,interconnect_at" + + "tachment\202\323\344\223\002c\022a/compute/v1/projects/{pr" + + "oject}/regions/{region}/interconnectAtta" + + "chments/{interconnect_attachment}\022\243\002\n\006In" + + "sert\022<.google.cloud.compute.v1.InsertInt" + + "erconnectAttachmentRequest\032\".google.clou" + + "d.compute.v1.Operation\"\266\001\332A/project,regi" + + "on,interconnect_attachment_resource\212N\020Re" + + "gionOperations\202\323\344\223\002k\"G/compute/v1/projec" + + "ts/{project}/regions/{region}/interconne" + + "ctAttachments: interconnect_attachment_r" + + "esource\022\332\001\n\004List\022;.google.cloud.compute." + + "v1.ListInterconnectAttachmentsRequest\0323." + + "google.cloud.compute.v1.InterconnectAtta" + + "chmentList\"`\332A\016project,region\202\323\344\223\002I\022G/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/interconnectAttachments\022\324\002\n\005Patch\022;" + + ".google.cloud.compute.v1.PatchInterconne" + + "ctAttachmentRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\351\001\332AGproject,region,inte" + + "rconnect_attachment,interconnect_attachm" + + "ent_resource\212N\020RegionOperations\202\323\344\223\002\205\0012a" + + "/compute/v1/projects/{project}/regions/{" + + "region}/interconnectAttachments/{interco" + + "nnect_attachment}: interconnect_attachme" + + "nt_resource\022\314\002\n\tSetLabels\022?.google.cloud" + + ".compute.v1.SetLabelsInterconnectAttachm" + + "entRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\331\001\332A:project,region,resource,regi" + + "on_set_labels_request_resource\212N\020RegionO" + + "perations\202\323\344\223\002\202\001\"\\/compute/v1/projects/{" + + "project}/regions/{region}/interconnectAt" + + "tachments/{resource}/setLabels:\"region_s" + + "et_labels_request_resource\032\202\001\312A\026compute." + + "googleapis.com\322AVhttps://www.googleapis." + + "com/auth/compute,https://www.googleapis." + + "com/auth/cloud-platform\212\324\333\322\017\n2026-09-012" + + "\311\026\n\022InterconnectGroups\022\363\002\n\rCreateMembers" + + "\022>.google.cloud.compute.v1.CreateMembers" + + "InterconnectGroupRequest\032\".google.cloud." + + "compute.v1.Operation\"\375\001\332ANproject,interc" + + "onnect_group,interconnect_groups_create_" + + "members_request_resource\212N\020GlobalOperati" + + "ons\202\323\344\223\002\222\001\"[/compute/v1/projects/{projec" + + "t}/global/interconnectGroups/{interconne" + + "ct_group}/createMembers:3interconnect_gr" + + "oups_create_members_request_resource\022\355\001\n" + + "\006Delete\0227.google.cloud.compute.v1.Delete" + + "InterconnectGroupRequest\032\".google.cloud." + + "compute.v1.Operation\"\205\001\332A\032project,interc" + + "onnect_group\212N\020GlobalOperations\202\323\344\223\002O*M/" + + "compute/v1/projects/{project}/global/int" + + "erconnectGroups/{interconnect_group}\022\333\001\n" + + "\003Get\0224.google.cloud.compute.v1.GetInterc" + + "onnectGroupRequest\032*.google.cloud.comput" + + "e.v1.InterconnectGroup\"r\332A\032project,inter" + + "connect_group\202\323\344\223\002O\022M/compute/v1/project" + + "s/{project}/global/interconnectGroups/{i" + + "nterconnect_group}\022\333\001\n\014GetIamPolicy\022=.go" + + "ogle.cloud.compute.v1.GetIamPolicyInterc" + + "onnectGroupRequest\032\037.google.cloud.comput" + + "e.v1.Policy\"k\332A\020project,resource\202\323\344\223\002R\022P" + + "/compute/v1/projects/{project}/global/in" + + "terconnectGroups/{resource}/getIamPolicy" + + "\022\260\002\n\024GetOperationalStatus\022E.google.cloud" + + ".compute.v1.GetOperationalStatusIntercon" + + "nectGroupRequest\032G.google.cloud.compute." + + "v1.InterconnectGroupsGetOperationalStatu" + + "sResponse\"\207\001\332A\032project,interconnect_grou" + + "p\202\323\344\223\002d\022b/compute/v1/projects/{project}/" + + "global/interconnectGroups/{interconnect_" + + "group}/getOperationalStatus\022\376\001\n\006Insert\0227" + ".google.cloud.compute.v1.InsertInterconn" - + "ectAttachmentGroupRequest\032\".google.cloud" - + ".compute.v1.Operation\"\266\001\332A.project,inter" - + "connect_attachment_group_resource\212N\020Glob" - + "alOperations\202\323\344\223\002l\"B/compute/v1/projects" - + "/{project}/global/interconnectAttachment" - + "Groups:&interconnect_attachment_group_re" - + "source\022\341\001\n\004List\022@.google.cloud.compute.v" - + "1.ListInterconnectAttachmentGroupsReques" - + "t\032A.google.cloud.compute.v1.Interconnect" - + "AttachmentGroupsListResponse\"T\332A\007project" - + "\202\323\344\223\002D\022B/compute/v1/projects/{project}/g" - + "lobal/interconnectAttachmentGroups\022\345\002\n\005P" - + "atch\022@.google.cloud.compute.v1.PatchInte" - + "rconnectAttachmentGroupRequest\032\".google." - + "cloud.compute.v1.Operation\"\365\001\332ALproject," - + "interconnect_attachment_group,interconne" - + "ct_attachment_group_resource\212N\020GlobalOpe" - + "rations\202\323\344\223\002\214\0012b/compute/v1/projects/{pr" - + "oject}/global/interconnectAttachmentGrou" - + "ps/{interconnect_attachment_group}:&inte" - + "rconnect_attachment_group_resource\022\270\002\n\014S" - + "etIamPolicy\022G.google.cloud.compute.v1.Se" - + "tIamPolicyInterconnectAttachmentGroupReq" - + "uest\032\037.google.cloud.compute.v1.Policy\"\275\001" - + "\332A3project,resource,global_set_policy_re" - + "quest_resource\202\323\344\223\002\200\001\"Z/compute/v1/proje" - + "cts/{project}/global/interconnectAttachm" - + "entGroups/{resource}/setIamPolicy:\"globa" - + "l_set_policy_request_resource\022\331\002\n\022TestIa" - + "mPermissions\022M.google.cloud.compute.v1.T" - + "estIamPermissionsInterconnectAttachmentG" - + "roupRequest\0320.google.cloud.compute.v1.Te" - + "stPermissionsResponse\"\301\001\332A2project,resou" - + "rce,test_permissions_request_resource\202\323\344" - + "\223\002\205\001\"`/compute/v1/projects/{project}/glo" - + "bal/interconnectAttachmentGroups/{resour" - + "ce}/testIamPermissions:!test_permissions" - + "_request_resource\032\202\001\312A\026compute.googleapi" - + "s.com\322AVhttps://www.googleapis.com/auth/" - + "compute,https://www.googleapis.com/auth/" - + "cloud-platform\212\324\333\322\017\n2026-09-012\323\020\n\027Inter" - + "connectAttachments\022\353\001\n\016AggregatedList\022E." - + "google.cloud.compute.v1.AggregatedListIn" - + "terconnectAttachmentsRequest\032=.google.cl" - + "oud.compute.v1.InterconnectAttachmentAgg" - + "regatedList\"S\332A\007project\202\323\344\223\002C\022A/compute/" - + "v1/projects/{project}/aggregated/interco" - + "nnectAttachments\022\222\002\n\006Delete\022<.google.clo" - + "ud.compute.v1.DeleteInterconnectAttachme" - + "ntRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\245\001\332A&project,region,interconnect_a" - + "ttachment\212N\020RegionOperations\202\323\344\223\002c*a/com" - + "pute/v1/projects/{project}/regions/{regi" - + "on}/interconnectAttachments/{interconnec" - + "t_attachment}\022\206\002\n\003Get\0229.google.cloud.com" - + "pute.v1.GetInterconnectAttachmentRequest" - + "\032/.google.cloud.compute.v1.InterconnectA" - + "ttachment\"\222\001\332A&project,region,interconne" - + "ct_attachment\202\323\344\223\002c\022a/compute/v1/project" - + "s/{project}/regions/{region}/interconnec" - + "tAttachments/{interconnect_attachment}\022\243" - + "\002\n\006Insert\022<.google.cloud.compute.v1.Inse" - + "rtInterconnectAttachmentRequest\032\".google" - + ".cloud.compute.v1.Operation\"\266\001\332A/project" - + ",region,interconnect_attachment_resource" - + "\212N\020RegionOperations\202\323\344\223\002k\"G/compute/v1/p" - + "rojects/{project}/regions/{region}/inter" - + "connectAttachments: interconnect_attachm" - + "ent_resource\022\332\001\n\004List\022;.google.cloud.com" - + "pute.v1.ListInterconnectAttachmentsReque" - + "st\0323.google.cloud.compute.v1.Interconnec" - + "tAttachmentList\"`\332A\016project,region\202\323\344\223\002I" - + "\022G/compute/v1/projects/{project}/regions" - + "/{region}/interconnectAttachments\022\324\002\n\005Pa" - + "tch\022;.google.cloud.compute.v1.PatchInter" - + "connectAttachmentRequest\032\".google.cloud." - + "compute.v1.Operation\"\351\001\332AGproject,region" - + ",interconnect_attachment,interconnect_at" - + "tachment_resource\212N\020RegionOperations\202\323\344\223" - + "\002\205\0012a/compute/v1/projects/{project}/regi" - + "ons/{region}/interconnectAttachments/{in" - + "terconnect_attachment}: interconnect_att" - + "achment_resource\022\314\002\n\tSetLabels\022?.google." - + "cloud.compute.v1.SetLabelsInterconnectAt" - + "tachmentRequest\032\".google.cloud.compute.v" - + "1.Operation\"\331\001\332A:project,region,resource" - + ",region_set_labels_request_resource\212N\020Re" - + "gionOperations\202\323\344\223\002\202\001\"\\/compute/v1/proje" - + "cts/{project}/regions/{region}/interconn" - + "ectAttachments/{resource}/setLabels:\"reg" - + "ion_set_labels_request_resource\032\202\001\312A\026com" - + "pute.googleapis.com\322AVhttps://www.google" - + "apis.com/auth/compute,https://www.google" - + "apis.com/auth/cloud-platform\212\324\333\322\017\n2026-0" - + "9-012\311\026\n\022InterconnectGroups\022\363\002\n\rCreateMe" - + "mbers\022>.google.cloud.compute.v1.CreateMe" - + "mbersInterconnectGroupRequest\032\".google.c" - + "loud.compute.v1.Operation\"\375\001\332ANproject,i" - + "nterconnect_group,interconnect_groups_cr" - + "eate_members_request_resource\212N\020GlobalOp" - + "erations\202\323\344\223\002\222\001\"[/compute/v1/projects/{p" - + "roject}/global/interconnectGroups/{inter" - + "connect_group}/createMembers:3interconne" - + "ct_groups_create_members_request_resourc" - + "e\022\355\001\n\006Delete\0227.google.cloud.compute.v1.D" - + "eleteInterconnectGroupRequest\032\".google.c" - + "loud.compute.v1.Operation\"\205\001\332A\032project,i" - + "nterconnect_group\212N\020GlobalOperations\202\323\344\223" - + "\002O*M/compute/v1/projects/{project}/globa" - + "l/interconnectGroups/{interconnect_group" - + "}\022\333\001\n\003Get\0224.google.cloud.compute.v1.GetI" - + "nterconnectGroupRequest\032*.google.cloud.c" - + "ompute.v1.InterconnectGroup\"r\332A\032project," - + "interconnect_group\202\323\344\223\002O\022M/compute/v1/pr" + + "ectGroupRequest\032\".google.cloud.compute.v" + + "1.Operation\"\226\001\332A#project,interconnect_gr" + + "oup_resource\212N\020GlobalOperations\202\323\344\223\002W\"8/" + + "compute/v1/projects/{project}/global/int" + + "erconnectGroups:\033interconnect_group_reso" + + "urce\022\303\001\n\004List\0226.google.cloud.compute.v1." + + "ListInterconnectGroupsRequest\0327.google.c" + + "loud.compute.v1.InterconnectGroupsListRe" + + "sponse\"J\332A\007project\202\323\344\223\002:\0228/compute/v1/pr" + "ojects/{project}/global/interconnectGrou" - + "ps/{interconnect_group}\022\333\001\n\014GetIamPolicy" - + "\022=.google.cloud.compute.v1.GetIamPolicyI" - + "nterconnectGroupRequest\032\037.google.cloud.c" - + "ompute.v1.Policy\"k\332A\020project,resource\202\323\344" - + "\223\002R\022P/compute/v1/projects/{project}/glob" - + "al/interconnectGroups/{resource}/getIamP" - + "olicy\022\260\002\n\024GetOperationalStatus\022E.google." - + "cloud.compute.v1.GetOperationalStatusInt" - + "erconnectGroupRequest\032G.google.cloud.com" - + "pute.v1.InterconnectGroupsGetOperational" - + "StatusResponse\"\207\001\332A\032project,interconnect" - + "_group\202\323\344\223\002d\022b/compute/v1/projects/{proj" - + "ect}/global/interconnectGroups/{intercon" - + "nect_group}/getOperationalStatus\022\376\001\n\006Ins" - + "ert\0227.google.cloud.compute.v1.InsertInte" - + "rconnectGroupRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\226\001\332A#project,interconne" - + "ct_group_resource\212N\020GlobalOperations\202\323\344\223" - + "\002W\"8/compute/v1/projects/{project}/globa" - + "l/interconnectGroups:\033interconnect_group" - + "_resource\022\303\001\n\004List\0226.google.cloud.comput" - + "e.v1.ListInterconnectGroupsRequest\0327.goo" - + "gle.cloud.compute.v1.InterconnectGroupsL" - + "istResponse\"J\332A\007project\202\323\344\223\002:\0228/compute/" + + "ps\022\244\002\n\005Patch\0226.google.cloud.compute.v1.P" + + "atchInterconnectGroupRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\276\001\332A6project,in" + + "terconnect_group,interconnect_group_reso" + + "urce\212N\020GlobalOperations\202\323\344\223\002l2M/compute/" + + "v1/projects/{project}/global/interconnec" + + "tGroups/{interconnect_group}:\033interconne" + + "ct_group_resource\022\243\002\n\014SetIamPolicy\022=.goo" + + "gle.cloud.compute.v1.SetIamPolicyInterco" + + "nnectGroupRequest\032\037.google.cloud.compute" + + ".v1.Policy\"\262\001\332A3project,resource,global_" + + "set_policy_request_resource\202\323\344\223\002v\"P/comp" + + "ute/v1/projects/{project}/global/interco" + + "nnectGroups/{resource}/setIamPolicy:\"glo" + + "bal_set_policy_request_resource\022\304\002\n\022Test" + + "IamPermissions\022C.google.cloud.compute.v1" + + ".TestIamPermissionsInterconnectGroupRequ" + + "est\0320.google.cloud.compute.v1.TestPermis" + + "sionsResponse\"\266\001\332A2project,resource,test" + + "_permissions_request_resource\202\323\344\223\002{\"V/co" + + "mpute/v1/projects/{project}/global/inter" + + "connectGroups/{resource}/testIamPermissi" + + "ons:!test_permissions_request_resource\032\202" + + "\001\312A\026compute.googleapis.com\322AVhttps://www" + + ".googleapis.com/auth/compute,https://www" + + ".googleapis.com/auth/cloud-platform\212\324\333\322\017" + + "\n2026-09-012\201\005\n\025InterconnectLocations\022\352\001" + + "\n\003Get\0227.google.cloud.compute.v1.GetInter" + + "connectLocationRequest\032-.google.cloud.co" + + "mpute.v1.InterconnectLocation\"{\332A\035projec" + + "t,interconnect_location\202\323\344\223\002U\022S/compute/" + "v1/projects/{project}/global/interconnec" - + "tGroups\022\244\002\n\005Patch\0226.google.cloud.compute" - + ".v1.PatchInterconnectGroupRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\276\001\332A6proje" - + "ct,interconnect_group,interconnect_group" - + "_resource\212N\020GlobalOperations\202\323\344\223\002l2M/com" - + "pute/v1/projects/{project}/global/interc" - + "onnectGroups/{interconnect_group}:\033inter" - + "connect_group_resource\022\243\002\n\014SetIamPolicy\022" - + "=.google.cloud.compute.v1.SetIamPolicyIn" - + "terconnectGroupRequest\032\037.google.cloud.co" - + "mpute.v1.Policy\"\262\001\332A3project,resource,gl" - + "obal_set_policy_request_resource\202\323\344\223\002v\"P" + + "tLocations/{interconnect_location}\022\303\001\n\004L" + + "ist\0229.google.cloud.compute.v1.ListInterc" + + "onnectLocationsRequest\0321.google.cloud.co" + + "mpute.v1.InterconnectLocationList\"M\332A\007pr" + + "oject\202\323\344\223\002=\022;/compute/v1/projects/{proje" + + "ct}/global/interconnectLocations\032\264\001\312A\026co" + + "mpute.googleapis.com\322A\207\001https://www.goog" + + "leapis.com/auth/compute.readonly,https:/" + + "/www.googleapis.com/auth/compute,https:/" + + "/www.googleapis.com/auth/cloud-platform\212" + + "\324\333\322\017\n2026-09-012\272\005\n\033InterconnectRemoteLo" + + "cations\022\213\002\n\003Get\022=.google.cloud.compute.v" + + "1.GetInterconnectRemoteLocationRequest\0323" + + ".google.cloud.compute.v1.InterconnectRem" + + "oteLocation\"\217\001\332A$project,interconnect_re" + + "mote_location\202\323\344\223\002b\022`/compute/v1/project" + + "s/{project}/global/interconnectRemoteLoc" + + "ations/{interconnect_remote_location}\022\325\001" + + "\n\004List\022?.google.cloud.compute.v1.ListInt" + + "erconnectRemoteLocationsRequest\0327.google" + + ".cloud.compute.v1.InterconnectRemoteLoca" + + "tionList\"S\332A\007project\202\323\344\223\002C\022A/compute/v1/" + + "projects/{project}/global/interconnectRe" + + "moteLocations\032\264\001\312A\026compute.googleapis.co" + + "m\322A\207\001https://www.googleapis.com/auth/com" + + "pute.readonly,https://www.googleapis.com" + + "/auth/compute,https://www.googleapis.com" + + "/auth/cloud-platform\212\324\333\322\017\n2026-09-012\256\022\n" + + "\rInterconnects\022\326\001\n\006Delete\0222.google.cloud" + + ".compute.v1.DeleteInterconnectRequest\032\"." + + "google.cloud.compute.v1.Operation\"t\332A\024pr" + + "oject,interconnect\212N\020GlobalOperations\202\323\344" + + "\223\002D*B/compute/v1/projects/{project}/glob" + + "al/interconnects/{interconnect}\022\300\001\n\003Get\022" + + "/.google.cloud.compute.v1.GetInterconnec" + + "tRequest\032%.google.cloud.compute.v1.Inter" + + "connect\"a\332A\024project,interconnect\202\323\344\223\002D\022B" + "/compute/v1/projects/{project}/global/in" - + "terconnectGroups/{resource}/setIamPolicy" - + ":\"global_set_policy_request_resource\022\304\002\n" - + "\022TestIamPermissions\022C.google.cloud.compu" - + "te.v1.TestIamPermissionsInterconnectGrou" - + "pRequest\0320.google.cloud.compute.v1.TestP" - + "ermissionsResponse\"\266\001\332A2project,resource" - + ",test_permissions_request_resource\202\323\344\223\002{" - + "\"V/compute/v1/projects/{project}/global/" - + "interconnectGroups/{resource}/testIamPer" - + "missions:!test_permissions_request_resou" - + "rce\032\202\001\312A\026compute.googleapis.com\322AVhttps:" - + "//www.googleapis.com/auth/compute,https:" - + "//www.googleapis.com/auth/cloud-platform" - + "\212\324\333\322\017\n2026-09-012\201\005\n\025InterconnectLocatio" - + "ns\022\352\001\n\003Get\0227.google.cloud.compute.v1.Get" - + "InterconnectLocationRequest\032-.google.clo" - + "ud.compute.v1.InterconnectLocation\"{\332A\035p" - + "roject,interconnect_location\202\323\344\223\002U\022S/com" - + "pute/v1/projects/{project}/global/interc" - + "onnectLocations/{interconnect_location}\022" - + "\303\001\n\004List\0229.google.cloud.compute.v1.ListI" - + "nterconnectLocationsRequest\0321.google.clo" - + "ud.compute.v1.InterconnectLocationList\"M" - + "\332A\007project\202\323\344\223\002=\022;/compute/v1/projects/{" - + "project}/global/interconnectLocations\032\264\001" - + "\312A\026compute.googleapis.com\322A\207\001https://www" - + ".googleapis.com/auth/compute.readonly,ht" - + "tps://www.googleapis.com/auth/compute,ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "form\212\324\333\322\017\n2026-09-012\272\005\n\033InterconnectRem" - + "oteLocations\022\213\002\n\003Get\022=.google.cloud.comp" - + "ute.v1.GetInterconnectRemoteLocationRequ" - + "est\0323.google.cloud.compute.v1.Interconne" - + "ctRemoteLocation\"\217\001\332A$project,interconne" - + "ct_remote_location\202\323\344\223\002b\022`/compute/v1/pr" - + "ojects/{project}/global/interconnectRemo" - + "teLocations/{interconnect_remote_locatio" - + "n}\022\325\001\n\004List\022?.google.cloud.compute.v1.Li" - + "stInterconnectRemoteLocationsRequest\0327.g" - + "oogle.cloud.compute.v1.InterconnectRemot" - + "eLocationList\"S\332A\007project\202\323\344\223\002C\022A/comput" - + "e/v1/projects/{project}/global/interconn" - + "ectRemoteLocations\032\264\001\312A\026compute.googleap" - + "is.com\322A\207\001https://www.googleapis.com/aut" - + "h/compute.readonly,https://www.googleapi" - + "s.com/auth/compute,https://www.googleapi" - + "s.com/auth/cloud-platform\212\324\333\322\017\n2026-09-0" - + "12\256\022\n\rInterconnects\022\326\001\n\006Delete\0222.google." - + "cloud.compute.v1.DeleteInterconnectReque" - + "st\032\".google.cloud.compute.v1.Operation\"t" - + "\332A\024project,interconnect\212N\020GlobalOperatio" - + "ns\202\323\344\223\002D*B/compute/v1/projects/{project}" - + "/global/interconnects/{interconnect}\022\300\001\n" - + "\003Get\022/.google.cloud.compute.v1.GetInterc" - + "onnectRequest\032%.google.cloud.compute.v1." - + "Interconnect\"a\332A\024project,interconnect\202\323\344" - + "\223\002D\022B/compute/v1/projects/{project}/glob" - + "al/interconnects/{interconnect}\022\374\001\n\016GetD" - + "iagnostics\022:.google.cloud.compute.v1.Get" - + "DiagnosticsInterconnectRequest\032<.google." - + "cloud.compute.v1.InterconnectsGetDiagnos" - + "ticsResponse\"p\332A\024project,interconnect\202\323\344" - + "\223\002S\022Q/compute/v1/projects/{project}/glob" - + "al/interconnects/{interconnect}/getDiagn" - + "ostics\022\200\002\n\017GetMacsecConfig\022;.google.clou" - + "d.compute.v1.GetMacsecConfigInterconnect" - + "Request\032=.google.cloud.compute.v1.Interc" - + "onnectsGetMacsecConfigResponse\"q\332A\024proje" - + "ct,interconnect\202\323\344\223\002T\022R/compute/v1/proje" - + "cts/{project}/global/interconnects/{inte" - + "rconnect}/getMacsecConfig\022\350\001\n\006Insert\0222.g" - + "oogle.cloud.compute.v1.InsertInterconnec" - + "tRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\205\001\332A\035project,interconnect_resource\212" - + "N\020GlobalOperations\202\323\344\223\002L\"3/compute/v1/pr" - + "ojects/{project}/global/interconnects:\025i" - + "nterconnect_resource\022\253\001\n\004List\0221.google.c" - + "loud.compute.v1.ListInterconnectsRequest" - + "\032).google.cloud.compute.v1.InterconnectL" - + "ist\"E\332A\007project\202\323\344\223\0025\0223/compute/v1/proje" - + "cts/{project}/global/interconnects\022\202\002\n\005P" - + "atch\0221.google.cloud.compute.v1.PatchInte" - + "rconnectRequest\032\".google.cloud.compute.v" - + "1.Operation\"\241\001\332A*project,interconnect,in" - + "terconnect_resource\212N\020GlobalOperations\202\323" - + "\344\223\002[2B/compute/v1/projects/{project}/glo" - + "bal/interconnects/{interconnect}:\025interc" - + "onnect_resource\022\246\002\n\tSetLabels\0225.google.c" - + "loud.compute.v1.SetLabelsInterconnectReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\275\001\332A3project,resource,global_set_labels" - + "_request_resource\212N\020GlobalOperations\202\323\344\223" - + "\002n\"H/compute/v1/projects/{project}/globa" - + "l/interconnects/{resource}/setLabels:\"gl" - + "obal_set_labels_request_resource\022\262\002\n\007Set" - + "Name\0223.google.cloud.compute.v1.SetNameIn" - + "terconnectRequest\032\".google.cloud.compute" - + ".v1.Operation\"\315\001\332A.go" - + "ogle.cloud.compute.v1.TestIamPermissions" - + "MachineImageRequest\0320.google.cloud.compu" - + "te.v1.TestPermissionsResponse\"\261\001\332A2proje" - + "ct,resource,test_permissions_request_res" - + "ource\202\323\344\223\002v\"Q/compute/v1/projects/{proje" - + "ct}/global/machineImages/{resource}/test" - + "IamPermissions:!test_permissions_request" - + "_resource\032\202\001\312A\026compute.googleapis.com\322AV" - + "https://www.googleapis.com/auth/compute," - + "https://www.googleapis.com/auth/cloud-pl" - + "atform\212\324\333\322\017\n2026-09-012\223\006\n\014MachineTypes\022" - + "\312\001\n\016AggregatedList\022:.google.cloud.comput" - + "e.v1.AggregatedListMachineTypesRequest\0322" - + ".google.cloud.compute.v1.MachineTypeAggr" - + "egatedList\"H\332A\007project\202\323\344\223\0028\0226/compute/v" - + "1/projects/{project}/aggregated/machineT" - + "ypes\022\310\001\n\003Get\022..google.cloud.compute.v1.G" - + "etMachineTypeRequest\032$.google.cloud.comp" - + "ute.v1.MachineType\"k\332A\031project,zone,mach" - + "ine_type\202\323\344\223\002I\022G/compute/v1/projects/{pr" - + "oject}/zones/{zone}/machineTypes/{machin" - + "e_type}\022\263\001\n\004List\0220.google.cloud.compute." - + "v1.ListMachineTypesRequest\032(.google.clou" - + "d.compute.v1.MachineTypeList\"O\332A\014project" - + ",zone\202\323\344\223\002:\0228/compute/v1/projects/{proje" - + "ct}/zones/{zone}/machineTypes\032\264\001\312A\026compu" - + "te.googleapis.com\322A\207\001https://www.googlea" - + "pis.com/auth/compute.readonly,https://ww" - + "w.googleapis.com/auth/compute,https://ww" - + "w.googleapis.com/auth/cloud-platform\212\324\333\322" - + "\017\n2026-09-012\313\004\n\017ManagedRulesets\022\314\001\n\003Get" - + "\0221.google.cloud.compute.v1.GetManagedRul" - + "esetRequest\032\'.google.cloud.compute.v1.Ma" - + "nagedRuleset\"i\332A\027project,managed_ruleset" - + "\202\323\344\223\002I\022G/compute/v1/projects/{project}/g" - + "lobal/managedRulesets/{managed_ruleset}\022" - + "\261\001\n\004List\0223.google.cloud.compute.v1.ListM" - + "anagedRulesetsRequest\032+.google.cloud.com" - + "pute.v1.ManagedRulesetList\"G\332A\007project\202\323" - + "\344\223\0027\0225/compute/v1/projects/{project}/glo" - + "bal/managedRulesets\032\264\001\312A\026compute.googlea" - + "pis.com\322A\207\001https://www.googleapis.com/au" - + "th/compute.readonly,https://www.googleap" - + "is.com/auth/compute,https://www.googleap" - + "is.com/auth/cloud-platform\212\324\333\322\017\n2026-09-" - + "012\201\024\n\022NetworkAttachments\022\334\001\n\016Aggregated" - + "List\022@.google.cloud.compute.v1.Aggregate" - + "dListNetworkAttachmentsRequest\0328.google." - + "cloud.compute.v1.NetworkAttachmentAggreg" - + "atedList\"N\332A\007project\202\323\344\223\002>\022.google." + + "cloud.compute.v1.TestIamPermissionsMachi" + + "neImageRequest\0320.google.cloud.compute.v1" + + ".TestPermissionsResponse\"\261\001\332A2project,re" + + "source,test_permissions_request_resource" + + "\202\323\344\223\002v\"Q/compute/v1/projects/{project}/g" + + "lobal/machineImages/{resource}/testIamPe" + + "rmissions:!test_permissions_request_reso" + + "urce\032\202\001\312A\026compute.googleapis.com\322AVhttps" + + "://www.googleapis.com/auth/compute,https" + + "://www.googleapis.com/auth/cloud-platfor" + + "m\212\324\333\322\017\n2026-09-012\223\006\n\014MachineTypes\022\312\001\n\016A" + + "ggregatedList\022:.google.cloud.compute.v1." + + "AggregatedListMachineTypesRequest\0322.goog" + + "le.cloud.compute.v1.MachineTypeAggregate" + + "dList\"H\332A\007project\202\323\344\223\0028\0226/compute/v1/pro" + + "jects/{project}/aggregated/machineTypes\022" + + "\310\001\n\003Get\022..google.cloud.compute.v1.GetMac" + + "hineTypeRequest\032$.google.cloud.compute.v" + + "1.MachineType\"k\332A\031project,zone,machine_t" + + "ype\202\323\344\223\002I\022G/compute/v1/projects/{project" + + "}/zones/{zone}/machineTypes/{machine_typ" + + "e}\022\263\001\n\004List\0220.google.cloud.compute.v1.Li" + + "stMachineTypesRequest\032(.google.cloud.com" + + "pute.v1.MachineTypeList\"O\332A\014project,zone" + + "\202\323\344\223\002:\0228/compute/v1/projects/{project}/z" + + "ones/{zone}/machineTypes\032\264\001\312A\026compute.go" + + "ogleapis.com\322A\207\001https://www.googleapis.c" + + "om/auth/compute.readonly,https://www.goo" + + "gleapis.com/auth/compute,https://www.goo" + + "gleapis.com/auth/cloud-platform\212\324\333\322\017\n202" + + "6-09-012\313\004\n\017ManagedRulesets\022\314\001\n\003Get\0221.go" + + "ogle.cloud.compute.v1.GetManagedRulesetR" + + "equest\032\'.google.cloud.compute.v1.Managed" + + "Ruleset\"i\332A\027project,managed_ruleset\202\323\344\223\002" + + "I\022G/compute/v1/projects/{project}/global" + + "/managedRulesets/{managed_ruleset}\022\261\001\n\004L" + + "ist\0223.google.cloud.compute.v1.ListManage" + + "dRulesetsRequest\032+.google.cloud.compute." + + "v1.ManagedRulesetList\"G\332A\007project\202\323\344\223\0027\022" + + "5/compute/v1/projects/{project}/global/m" + + "anagedRulesets\032\264\001\312A\026compute.googleapis.c" + + "om\322A\207\001https://www.googleapis.com/auth/co" + + "mpute.readonly,https://www.googleapis.co" + + "m/auth/compute,https://www.googleapis.co" + + "m/auth/cloud-platform\212\324\333\322\017\n2026-09-012\201\024" + + "\n\022NetworkAttachments\022\334\001\n\016AggregatedList\022" + + "@.google.cloud.compute.v1.AggregatedList" + + "NetworkAttachmentsRequest\0328.google.cloud" + + ".compute.v1.NetworkAttachmentAggregatedL" + + "ist\"N\332A\007project\202\323\344\223\002>\022.google.cloud.compute" - + ".v1.PatchRuleNetworkFirewallPolicyReques" - + "t\032\".google.cloud.compute.v1.Operation\"\304\001" - + "\332A5project,firewall_policy,firewall_poli" - + "cy_rule_resource\212N\020GlobalOperations\202\323\344\223\002" - + "s\"R/compute/v1/projects/{project}/global" - + "/firewallPolicies/{firewall_policy}/patc" - + "hRule:\035firewall_policy_rule_resource\022\221\002\n" - + "\021RemoveAssociation\022F.google.cloud.comput" - + "e.v1.RemoveAssociationNetworkFirewallPol" - + "icyRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\217\001\332A\027project,firewall_policy\212N\020Gl" - + "obalOperations\202\323\344\223\002\\\"Z/compute/v1/projec" + + "allPolicies/{firewall_policy}\022\204\002\n\016GetAss" + + "ociation\022C.google.cloud.compute.v1.GetAs" + + "sociationNetworkFirewallPolicyRequest\0322." + + "google.cloud.compute.v1.FirewallPolicyAs" + + "sociation\"y\332A\027project,firewall_policy\202\323\344" + + "\223\002Y\022W/compute/v1/projects/{project}/glob" + + "al/firewallPolicies/{firewall_policy}/ge" + + "tAssociation\022\335\001\n\014GetIamPolicy\022A.google.c", + "loud.compute.v1.GetIamPolicyNetworkFirew" + + "allPolicyRequest\032\037.google.cloud.compute." + + "v1.Policy\"i\332A\020project,resource\202\323\344\223\002P\022N/c" + + "ompute/v1/projects/{project}/global/fire" + + "wallPolicies/{resource}/getIamPolicy\022\226\002\n" + + "\026GetPacketMirroringRule\022K.google.cloud.c" + + "ompute.v1.GetPacketMirroringRuleNetworkF" + + "irewallPolicyRequest\032+.google.cloud.comp" + + "ute.v1.FirewallPolicyRule\"\201\001\332A\027project,f" + + "irewall_policy\202\323\344\223\002a\022_/compute/v1/projec" + "ts/{project}/global/firewallPolicies/{fi" - + "rewall_policy}/removeAssociation\022\251\002\n\031Rem" - + "ovePacketMirroringRule\022N.google.cloud.co" - + "mpute.v1.RemovePacketMirroringRuleNetwor" - + "kFirewallPolicyRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\227\001\332A\027project,firewall" - + "_policy\212N\020GlobalOperations\202\323\344\223\002d\"b/compu" - + "te/v1/projects/{project}/global/firewall" - + "Policies/{firewall_policy}/removePacketM" - + "irroringRule\022\374\001\n\nRemoveRule\022?.google.clo" - + "ud.compute.v1.RemoveRuleNetworkFirewallP" - + "olicyRequest\032\".google.cloud.compute.v1.O" - + "peration\"\210\001\332A\027project,firewall_policy\212N\020" - + "GlobalOperations\202\323\344\223\002U\"S/compute/v1/proj" - + "ects/{project}/global/firewallPolicies/{" - + "firewall_policy}/removeRule\022\245\002\n\014SetIamPo" - + "licy\022A.google.cloud.compute.v1.SetIamPol" - + "icyNetworkFirewallPolicyRequest\032\037.google" - + ".cloud.compute.v1.Policy\"\260\001\332A3project,re" - + "source,global_set_policy_request_resourc" - + "e\202\323\344\223\002t\"N/compute/v1/projects/{project}/" - + "global/firewallPolicies/{resource}/setIa" - + "mPolicy:\"global_set_policy_request_resou" - + "rce\022\306\002\n\022TestIamPermissions\022G.google.clou" - + "d.compute.v1.TestIamPermissionsNetworkFi" - + "rewallPolicyRequest\0320.google.cloud.compu" - + "te.v1.TestPermissionsResponse\"\264\001\332A2proje" - + "ct,resource,test_permissions_request_res" - + "ource\202\323\344\223\002y\"T/compute/v1/projects/{proje" - + "ct}/global/firewallPolicies/{resource}/t" - + "estIamPermissions:!test_permissions_requ" - + "est_resource\032\202\001\312A\026compute.googleapis.com" - + "\322AVhttps://www.googleapis.com/auth/compu" - + "te,https://www.googleapis.com/auth/cloud" - + "-platform\212\324\333\322\017\n2026-09-012\324\004\n\017NetworkPro" - + "files\022\314\001\n\003Get\0221.google.cloud.compute.v1." - + "GetNetworkProfileRequest\032\'.google.cloud." - + "compute.v1.NetworkProfile\"i\332A\027project,ne" - + "twork_profile\202\323\344\223\002I\022G/compute/v1/project" - + "s/{project}/global/networkProfiles/{netw" - + "ork_profile}\022\272\001\n\004List\0223.google.cloud.com" - + "pute.v1.ListNetworkProfilesRequest\0324.goo" - + "gle.cloud.compute.v1.NetworkProfilesList" - + "Response\"G\332A\007project\202\323\344\223\0027\0225/compute/v1/" - + "projects/{project}/global/networkProfile" - + "s\032\264\001\312A\026compute.googleapis.com\322A\207\001https:/" - + "/www.googleapis.com/auth/compute.readonl" - + "y,https://www.googleapis.com/auth/comput" - + "e,https://www.googleapis.com/auth/cloud-" - + "platform\212\324\333\322\017\n2026-09-012\236\033\n\010Networks\022\243\002" - + "\n\nAddPeering\0221.google.cloud.compute.v1.A" - + "ddPeeringNetworkRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\275\001\332A5project,network" - + ",networks_add_peering_request_resource\212N" - + "\020GlobalOperations\202\323\344\223\002l\"C/compute/v1/pro" - + "jects/{project}/global/networks/{network" - + "}/addPeering:%networks_add_peering_reque" - + "st_resource\022\370\002\n\032CancelRequestRemovePeeri" - + "ng\022A.google.cloud.compute.v1.CancelReque" - + "stRemovePeeringNetworkRequest\032\".google.c" - + "loud.compute.v1.Operation\"\362\001\332AGproject,n" - + "etwork,networks_cancel_request_remove_pe" - + "ering_request_resource\212N\020GlobalOperation" - + "s\202\323\344\223\002\216\001\"S/compute/v1/projects/{project}" - + "/global/networks/{network}/cancelRequest" - + "RemovePeering:7networks_cancel_request_r" - + "emove_peering_request_resource\022\302\001\n\006Delet" - + "e\022-.google.cloud.compute.v1.DeleteNetwor" - + "kRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"e\332A\017project,network\212N\020GlobalOperati" - + "ons\202\323\344\223\002:*8/compute/v1/projects/{project" - + "}/global/networks/{network}\022\247\001\n\003Get\022*.go" - + "ogle.cloud.compute.v1.GetNetworkRequest\032" - + " .google.cloud.compute.v1.Network\"R\332A\017pr" - + "oject,network\202\323\344\223\002:\0228/compute/v1/project" - + "s/{project}/global/networks/{network}\022\377\001" - + "\n\025GetEffectiveFirewalls\022<.google.cloud.c" - + "ompute.v1.GetEffectiveFirewallsNetworkRe" - + "quest\032>.google.cloud.compute.v1.Networks" - + "GetEffectiveFirewallsResponse\"h\332A\017projec" - + "t,network\202\323\344\223\002P\022N/compute/v1/projects/{p" - + "roject}/global/networks/{network}/getEff" - + "ectiveFirewalls\022\323\001\n\006Insert\022-.google.clou" - + "d.compute.v1.InsertNetworkRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"v\332A\030projec" - + "t,network_resource\212N\020GlobalOperations\202\323\344" - + "\223\002B\"./compute/v1/projects/{project}/glob" - + "al/networks:\020network_resource\022\234\001\n\004List\022," - + ".google.cloud.compute.v1.ListNetworksReq" - + "uest\032$.google.cloud.compute.v1.NetworkLi" - + "st\"@\332A\007project\202\323\344\223\0020\022./compute/v1/projec" - + "ts/{project}/global/networks\022\351\001\n\021ListPee" - + "ringRoutes\0229.google.cloud.compute.v1.Lis" - + "tPeeringRoutesNetworksRequest\0323.google.c" - + "loud.compute.v1.ExchangedPeeringRoutesLi" - + "st\"d\332A\017project,network\202\323\344\223\002L\022J/compute/v" - + "1/projects/{project}/global/networks/{ne" - + "twork}/listPeeringRoutes\022\344\001\n\005Patch\022,.goo" - + "gle.cloud.compute.v1.PatchNetworkRequest" - + "\032\".google.cloud.compute.v1.Operation\"\210\001\332" - + "A project,network,network_resource\212N\020Glo" - + "balOperations\202\323\344\223\002L28/compute/v1/project" - + "s/{project}/global/networks/{network}:\020n" - + "etwork_resource\022\262\002\n\rRemovePeering\0224.goog" - + "le.cloud.compute.v1.RemovePeeringNetwork" + + "rewall_policy}/getPacketMirroringRule\022\350\001" + + "\n\007GetRule\022<.google.cloud.compute.v1.GetR" + + "uleNetworkFirewallPolicyRequest\032+.google" + + ".cloud.compute.v1.FirewallPolicyRule\"r\332A" + + "\027project,firewall_policy\202\323\344\223\002R\022P/compute" + + "/v1/projects/{project}/global/firewallPo" + + "licies/{firewall_policy}/getRule\022\372\001\n\006Ins" + + "ert\022;.google.cloud.compute.v1.InsertNetw" + + "orkFirewallPolicyRequest\032\".google.cloud." + + "compute.v1.Operation\"\216\001\332A project,firewa" + + "ll_policy_resource\212N\020GlobalOperations\202\323\344" + + "\223\002R\"6/compute/v1/projects/{project}/glob" + + "al/firewallPolicies:\030firewall_policy_res" + + "ource\022\272\001\n\004List\022;.google.cloud.compute.v1" + + ".ListNetworkFirewallPoliciesRequest\032+.go" + + "ogle.cloud.compute.v1.FirewallPolicyList" + + "\"H\332A\007project\202\323\344\223\0028\0226/compute/v1/projects" + + "/{project}/global/firewallPolicies\022\232\002\n\005P" + + "atch\022:.google.cloud.compute.v1.PatchNetw" + + "orkFirewallPolicyRequest\032\".google.cloud." + + "compute.v1.Operation\"\260\001\332A0project,firewa" + + "ll_policy,firewall_policy_resource\212N\020Glo" + + "balOperations\202\323\344\223\002d2H/compute/v1/project" + + "s/{project}/global/firewallPolicies/{fir" + + "ewall_policy}:\030firewall_policy_resource\022" + + "\344\002\n\030PatchPacketMirroringRule\022M.google.cl" + + "oud.compute.v1.PatchPacketMirroringRuleN" + + "etworkFirewallPolicyRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\324\001\332A5project,fir" + + "ewall_policy,firewall_policy_rule_resour" + + "ce\212N\020GlobalOperations\202\323\344\223\002\202\001\"a/compute/v" + + "1/projects/{project}/global/firewallPoli" + + "cies/{firewall_policy}/patchPacketMirror" + + "ingRule:\035firewall_policy_rule_resource\022\266" + + "\002\n\tPatchRule\022>.google.cloud.compute.v1.P" + + "atchRuleNetworkFirewallPolicyRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\304\001\332A5pr" + + "oject,firewall_policy,firewall_policy_ru" + + "le_resource\212N\020GlobalOperations\202\323\344\223\002s\"R/c" + + "ompute/v1/projects/{project}/global/fire" + + "wallPolicies/{firewall_policy}/patchRule" + + ":\035firewall_policy_rule_resource\022\221\002\n\021Remo" + + "veAssociation\022F.google.cloud.compute.v1." + + "RemoveAssociationNetworkFirewallPolicyRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\217\001\332A\027project,firewall_policy\212N\020GlobalO" + + "perations\202\323\344\223\002\\\"Z/compute/v1/projects/{p" + + "roject}/global/firewallPolicies/{firewal" + + "l_policy}/removeAssociation\022\251\002\n\031RemovePa" + + "cketMirroringRule\022N.google.cloud.compute" + + ".v1.RemovePacketMirroringRuleNetworkFire" + + "wallPolicyRequest\032\".google.cloud.compute" + + ".v1.Operation\"\227\001\332A\027project,firewall_poli" + + "cy\212N\020GlobalOperations\202\323\344\223\002d\"b/compute/v1" + + "/projects/{project}/global/firewallPolic" + + "ies/{firewall_policy}/removePacketMirror" + + "ingRule\022\374\001\n\nRemoveRule\022?.google.cloud.co" + + "mpute.v1.RemoveRuleNetworkFirewallPolicy" + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\306\001\332A8project,network,networks_remove" - + "_peering_request_resource\212N\020GlobalOperat" - + "ions\202\323\344\223\002r\"F/compute/v1/projects/{projec" - + "t}/global/networks/{network}/removePeeri" - + "ng:(networks_remove_peering_request_reso" - + "urce\022\330\002\n\024RequestRemovePeering\022;.google.c" - + "loud.compute.v1.RequestRemovePeeringNetw" - + "orkRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\336\001\332A@project,network,networks_req" - + "uest_remove_peering_request_resource\212N\020G" - + "lobalOperations\202\323\344\223\002\201\001\"M/compute/v1/proj" - + "ects/{project}/global/networks/{network}" - + "/requestRemovePeering:0networks_request_" - + "remove_peering_request_resource\022\355\001\n\022Swit" - + "chToCustomMode\0229.google.cloud.compute.v1" - + ".SwitchToCustomModeNetworkRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"x\332A\017projec" - + "t,network\212N\020GlobalOperations\202\323\344\223\002M\"K/com" - + "pute/v1/projects/{project}/global/networ" - + "ks/{network}/switchToCustomMode\022\262\002\n\rUpda" - + "tePeering\0224.google.cloud.compute.v1.Upda" - + "tePeeringNetworkRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\306\001\332A8project,network" - + ",networks_update_peering_request_resourc" - + "e\212N\020GlobalOperations\202\323\344\223\002r2F/compute/v1/" - + "projects/{project}/global/networks/{netw" - + "ork}/updatePeering:(networks_update_peer" - + "ing_request_resource\032\202\001\312A\026compute.google" - + "apis.com\322AVhttps://www.googleapis.com/au" - + "th/compute,https://www.googleapis.com/au" - + "th/cloud-platform\212\324\333\322\017\n2026-09-012\374 \n\nNo" - + "deGroups\022\262\002\n\010AddNodes\0221.google.cloud.com" - + "pute.v1.AddNodesNodeGroupRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\316\001\332A>projec" - + "t,zone,node_group,node_groups_add_nodes_" - + "request_resource\212N\016ZoneOperations\202\323\344\223\002v\"" - + "L/compute/v1/projects/{project}/zones/{z" - + "one}/nodeGroups/{node_group}/addNodes:&n" - + "ode_groups_add_nodes_request_resource\022\304\001" - + "\n\016AggregatedList\0228.google.cloud.compute." - + "v1.AggregatedListNodeGroupsRequest\0320.goo" - + "gle.cloud.compute.v1.NodeGroupAggregated" - + "List\"F\332A\007project\202\323\344\223\0026\0224/compute/v1/proj" - + "ects/{project}/aggregated/nodeGroups\022\325\001\n" - + "\006Delete\022/.google.cloud.compute.v1.Delete" + + "ion\"\210\001\332A\027project,firewall_policy\212N\020Globa" + + "lOperations\202\323\344\223\002U\"S/compute/v1/projects/" + + "{project}/global/firewallPolicies/{firew" + + "all_policy}/removeRule\022\245\002\n\014SetIamPolicy\022" + + "A.google.cloud.compute.v1.SetIamPolicyNe" + + "tworkFirewallPolicyRequest\032\037.google.clou" + + "d.compute.v1.Policy\"\260\001\332A3project,resourc" + + "e,global_set_policy_request_resource\202\323\344\223" + + "\002t\"N/compute/v1/projects/{project}/globa" + + "l/firewallPolicies/{resource}/setIamPoli" + + "cy:\"global_set_policy_request_resource\022\306" + + "\002\n\022TestIamPermissions\022G.google.cloud.com" + + "pute.v1.TestIamPermissionsNetworkFirewal" + + "lPolicyRequest\0320.google.cloud.compute.v1" + + ".TestPermissionsResponse\"\264\001\332A2project,re" + + "source,test_permissions_request_resource" + + "\202\323\344\223\002y\"T/compute/v1/projects/{project}/g" + + "lobal/firewallPolicies/{resource}/testIa" + + "mPermissions:!test_permissions_request_r" + + "esource\032\202\001\312A\026compute.googleapis.com\322AVht" + + "tps://www.googleapis.com/auth/compute,ht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "form\212\324\333\322\017\n2026-09-012\324\004\n\017NetworkProfiles" + + "\022\314\001\n\003Get\0221.google.cloud.compute.v1.GetNe" + + "tworkProfileRequest\032\'.google.cloud.compu" + + "te.v1.NetworkProfile\"i\332A\027project,network" + + "_profile\202\323\344\223\002I\022G/compute/v1/projects/{pr" + + "oject}/global/networkProfiles/{network_p" + + "rofile}\022\272\001\n\004List\0223.google.cloud.compute." + + "v1.ListNetworkProfilesRequest\0324.google.c" + + "loud.compute.v1.NetworkProfilesListRespo" + + "nse\"G\332A\007project\202\323\344\223\0027\0225/compute/v1/proje" + + "cts/{project}/global/networkProfiles\032\264\001\312" + + "A\026compute.googleapis.com\322A\207\001https://www." + + "googleapis.com/auth/compute.readonly,htt" + + "ps://www.googleapis.com/auth/compute,htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm\212\324\333\322\017\n2026-09-012\236\033\n\010Networks\022\243\002\n\nAdd" + + "Peering\0221.google.cloud.compute.v1.AddPee" + + "ringNetworkRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\275\001\332A5project,network,netw" + + "orks_add_peering_request_resource\212N\020Glob" + + "alOperations\202\323\344\223\002l\"C/compute/v1/projects" + + "/{project}/global/networks/{network}/add" + + "Peering:%networks_add_peering_request_re" + + "source\022\370\002\n\032CancelRequestRemovePeering\022A." + + "google.cloud.compute.v1.CancelRequestRem" + + "ovePeeringNetworkRequest\032\".google.cloud." + + "compute.v1.Operation\"\362\001\332AGproject,networ" + + "k,networks_cancel_request_remove_peering" + + "_request_resource\212N\020GlobalOperations\202\323\344\223" + + "\002\216\001\"S/compute/v1/projects/{project}/glob" + + "al/networks/{network}/cancelRequestRemov" + + "ePeering:7networks_cancel_request_remove" + + "_peering_request_resource\022\302\001\n\006Delete\022-.g" + + "oogle.cloud.compute.v1.DeleteNetworkRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "e\332A\017project,network\212N\020GlobalOperations\202\323" + + "\344\223\002:*8/compute/v1/projects/{project}/glo" + + "bal/networks/{network}\022\247\001\n\003Get\022*.google." + + "cloud.compute.v1.GetNetworkRequest\032 .goo" + + "gle.cloud.compute.v1.Network\"R\332A\017project" + + ",network\202\323\344\223\002:\0228/compute/v1/projects/{pr" + + "oject}/global/networks/{network}\022\377\001\n\025Get" + + "EffectiveFirewalls\022<.google.cloud.comput" + + "e.v1.GetEffectiveFirewallsNetworkRequest" + + "\032>.google.cloud.compute.v1.NetworksGetEf" + + "fectiveFirewallsResponse\"h\332A\017project,net" + + "work\202\323\344\223\002P\022N/compute/v1/projects/{projec" + + "t}/global/networks/{network}/getEffectiv" + + "eFirewalls\022\323\001\n\006Insert\022-.google.cloud.com" + + "pute.v1.InsertNetworkRequest\032\".google.cl" + + "oud.compute.v1.Operation\"v\332A\030project,net" + + "work_resource\212N\020GlobalOperations\202\323\344\223\002B\"." + + "/compute/v1/projects/{project}/global/ne" + + "tworks:\020network_resource\022\234\001\n\004List\022,.goog" + + "le.cloud.compute.v1.ListNetworksRequest\032" + + "$.google.cloud.compute.v1.NetworkList\"@\332" + + "A\007project\202\323\344\223\0020\022./compute/v1/projects/{p" + + "roject}/global/networks\022\351\001\n\021ListPeeringR" + + "outes\0229.google.cloud.compute.v1.ListPeer" + + "ingRoutesNetworksRequest\0323.google.cloud." + + "compute.v1.ExchangedPeeringRoutesList\"d\332" + + "A\017project,network\202\323\344\223\002L\022J/compute/v1/pro" + + "jects/{project}/global/networks/{network" + + "}/listPeeringRoutes\022\344\001\n\005Patch\022,.google.c" + + "loud.compute.v1.PatchNetworkRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\210\001\332A pro" + + "ject,network,network_resource\212N\020GlobalOp" + + "erations\202\323\344\223\002L28/compute/v1/projects/{pr" + + "oject}/global/networks/{network}:\020networ" + + "k_resource\022\262\002\n\rRemovePeering\0224.google.cl" + + "oud.compute.v1.RemovePeeringNetworkReque" + + "st\032\".google.cloud.compute.v1.Operation\"\306" + + "\001\332A8project,network,networks_remove_peer" + + "ing_request_resource\212N\020GlobalOperations\202" + + "\323\344\223\002r\"F/compute/v1/projects/{project}/gl" + + "obal/networks/{network}/removePeering:(n" + + "etworks_remove_peering_request_resource\022" + + "\330\002\n\024RequestRemovePeering\022;.google.cloud." + + "compute.v1.RequestRemovePeeringNetworkRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\336\001\332A@project,network,networks_request_" + + "remove_peering_request_resource\212N\020Global" + + "Operations\202\323\344\223\002\201\001\"M/compute/v1/projects/" + + "{project}/global/networks/{network}/requ" + + "estRemovePeering:0networks_request_remov" + + "e_peering_request_resource\022\355\001\n\022SwitchToC" + + "ustomMode\0229.google.cloud.compute.v1.Swit" + + "chToCustomModeNetworkRequest\032\".google.cl" + + "oud.compute.v1.Operation\"x\332A\017project,net" + + "work\212N\020GlobalOperations\202\323\344\223\002M\"K/compute/" + + "v1/projects/{project}/global/networks/{n" + + "etwork}/switchToCustomMode\022\262\002\n\rUpdatePee" + + "ring\0224.google.cloud.compute.v1.UpdatePee" + + "ringNetworkRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\306\001\332A8project,network,netw" + + "orks_update_peering_request_resource\212N\020G" + + "lobalOperations\202\323\344\223\002r2F/compute/v1/proje" + + "cts/{project}/global/networks/{network}/" + + "updatePeering:(networks_update_peering_r" + + "equest_resource\032\202\001\312A\026compute.googleapis." + + "com\322AVhttps://www.googleapis.com/auth/co" + + "mpute,https://www.googleapis.com/auth/cl" + + "oud-platform\212\324\333\322\017\n2026-09-012\374 \n\nNodeGro" + + "ups\022\262\002\n\010AddNodes\0221.google.cloud.compute." + + "v1.AddNodesNodeGroupRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\316\001\332A>project,zon" + + "e,node_group,node_groups_add_nodes_reque" + + "st_resource\212N\016ZoneOperations\202\323\344\223\002v\"L/com" + + "pute/v1/projects/{project}/zones/{zone}/" + + "nodeGroups/{node_group}/addNodes:&node_g" + + "roups_add_nodes_request_resource\022\304\001\n\016Agg" + + "regatedList\0228.google.cloud.compute.v1.Ag" + + "gregatedListNodeGroupsRequest\0320.google.c" + + "loud.compute.v1.NodeGroupAggregatedList\"" + + "F\332A\007project\202\323\344\223\0026\0224/compute/v1/projects/" + + "{project}/aggregated/nodeGroups\022\325\001\n\006Dele" + + "te\022/.google.cloud.compute.v1.DeleteNodeG" + + "roupRequest\032\".google.cloud.compute.v1.Op" + + "eration\"v\332A\027project,zone,node_group\212N\016Zo" + + "neOperations\202\323\344\223\002E*C/compute/v1/projects" + + "/{project}/zones/{zone}/nodeGroups/{node" + + "_group}\022\301\002\n\013DeleteNodes\0224.google.cloud.c" + + "ompute.v1.DeleteNodesNodeGroupRequest\032\"." + + "google.cloud.compute.v1.Operation\"\327\001\332AAp" + + "roject,zone,node_group,node_groups_delet" + + "e_nodes_request_resource\212N\016ZoneOperation" + + "s\202\323\344\223\002|\"O/compute/v1/projects/{project}/" + + "zones/{zone}/nodeGroups/{node_group}/del" + + "eteNodes:)node_groups_delete_nodes_reque" + + "st_resource\022\276\001\n\003Get\022,.google.cloud.compu" + + "te.v1.GetNodeGroupRequest\032\".google.cloud" + + ".compute.v1.NodeGroup\"e\332A\027project,zone,n" + + "ode_group\202\323\344\223\002E\022C/compute/v1/projects/{p" + + "roject}/zones/{zone}/nodeGroups/{node_gr" + + "oup}\022\326\001\n\014GetIamPolicy\0225.google.cloud.com" + + "pute.v1.GetIamPolicyNodeGroupRequest\032\037.g" + + "oogle.cloud.compute.v1.Policy\"n\332A\025projec" + + "t,zone,resource\202\323\344\223\002P\022N/compute/v1/proje" + + "cts/{project}/zones/{zone}/nodeGroups/{r" + + "esource}/getIamPolicy\022\372\001\n\006Insert\022/.googl" + + "e.cloud.compute.v1.InsertNodeGroupReques" + + "t\032\".google.cloud.compute.v1.Operation\"\232\001" + + "\332A3project,zone,initial_node_count,node_" + + "group_resource\212N\016ZoneOperations\202\323\344\223\002M\"6/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/nodeGroups:\023node_group_resource\022\255\001\n\004L" + + "ist\022..google.cloud.compute.v1.ListNodeGr" + + "oupsRequest\032&.google.cloud.compute.v1.No" + + "deGroupList\"M\332A\014project,zone\202\323\344\223\0028\0226/com" + + "pute/v1/projects/{project}/zones/{zone}/" + + "nodeGroups\022\337\001\n\tListNodes\0223.google.cloud." + + "compute.v1.ListNodesNodeGroupsRequest\032,." + + "google.cloud.compute.v1.NodeGroupsListNo" + + "des\"o\332A\027project,zone,node_group\202\323\344\223\002O\"M/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/nodeGroups/{node_group}/listNodes\022\375\001\n" + + "\005Patch\022..google.cloud.compute.v1.PatchNo" + + "deGroupRequest\032\".google.cloud.compute.v1" + + ".Operation\"\237\001\332A+project,zone,node_group," + + "node_group_resource\212N\016ZoneOperations\202\323\344\223" + + "\002Z2C/compute/v1/projects/{project}/zones" + + "/{zone}/nodeGroups/{node_group}:\023node_gr" + + "oup_resource\022\345\002\n\022PerformMaintenance\022;.go" + + "ogle.cloud.compute.v1.PerformMaintenance" + "NodeGroupRequest\032\".google.cloud.compute." - + "v1.Operation\"v\332A\027project,zone,node_group" - + "\212N\016ZoneOperations\202\323\344\223\002E*C/compute/v1/pro" + + "v1.Operation\"\355\001\332AHproject,zone,node_grou" + + "p,node_groups_perform_maintenance_reques" + + "t_resource\212N\016ZoneOperations\202\323\344\223\002\212\001\"V/com" + + "pute/v1/projects/{project}/zones/{zone}/" + + "nodeGroups/{node_group}/performMaintenan" + + "ce:0node_groups_perform_maintenance_requ" + + "est_resource\022\232\002\n\014SetIamPolicy\0225.google.c" + + "loud.compute.v1.SetIamPolicyNodeGroupReq" + + "uest\032\037.google.cloud.compute.v1.Policy\"\261\001" + + "\332A6project,zone,resource,zone_set_policy" + + "_request_resource\202\323\344\223\002r\"N/compute/v1/pro" + "jects/{project}/zones/{zone}/nodeGroups/" - + "{node_group}\022\301\002\n\013DeleteNodes\0224.google.cl" - + "oud.compute.v1.DeleteNodesNodeGroupReque" - + "st\032\".google.cloud.compute.v1.Operation\"\327" - + "\001\332AAproject,zone,node_group,node_groups_" - + "delete_nodes_request_resource\212N\016ZoneOper" - + "ations\202\323\344\223\002|\"O/compute/v1/projects/{proj" - + "ect}/zones/{zone}/nodeGroups/{node_group" - + "}/deleteNodes:)node_groups_delete_nodes_" - + "request_resource\022\276\001\n\003Get\022,.google.cloud." - + "compute.v1.GetNodeGroupRequest\032\".google." - + "cloud.compute.v1.NodeGroup\"e\332A\027project,z" - + "one,node_group\202\323\344\223\002E\022C/compute/v1/projec" - + "ts/{project}/zones/{zone}/nodeGroups/{no" - + "de_group}\022\326\001\n\014GetIamPolicy\0225.google.clou" - + "d.compute.v1.GetIamPolicyNodeGroupReques" - + "t\032\037.google.cloud.compute.v1.Policy\"n\332A\025p" - + "roject,zone,resource\202\323\344\223\002P\022N/compute/v1/" - + "projects/{project}/zones/{zone}/nodeGrou" - + "ps/{resource}/getIamPolicy\022\372\001\n\006Insert\022/." - + "google.cloud.compute.v1.InsertNodeGroupR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\232\001\332A3project,zone,initial_node_count," - + "node_group_resource\212N\016ZoneOperations\202\323\344\223" - + "\002M\"6/compute/v1/projects/{project}/zones" - + "/{zone}/nodeGroups:\023node_group_resource\022" - + "\255\001\n\004List\022..google.cloud.compute.v1.ListN" - + "odeGroupsRequest\032&.google.cloud.compute." - + "v1.NodeGroupList\"M\332A\014project,zone\202\323\344\223\0028\022" - + "6/compute/v1/projects/{project}/zones/{z" - + "one}/nodeGroups\022\337\001\n\tListNodes\0223.google.c" - + "loud.compute.v1.ListNodesNodeGroupsReque" - + "st\032,.google.cloud.compute.v1.NodeGroupsL" - + "istNodes\"o\332A\027project,zone,node_group\202\323\344\223" - + "\002O\"M/compute/v1/projects/{project}/zones" - + "/{zone}/nodeGroups/{node_group}/listNode" - + "s\022\375\001\n\005Patch\022..google.cloud.compute.v1.Pa" - + "tchNodeGroupRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\237\001\332A+project,zone,node_g" - + "roup,node_group_resource\212N\016ZoneOperation" - + "s\202\323\344\223\002Z2C/compute/v1/projects/{project}/" - + "zones/{zone}/nodeGroups/{node_group}:\023no" - + "de_group_resource\022\345\002\n\022PerformMaintenance" - + "\022;.google.cloud.compute.v1.PerformMainte" - + "nanceNodeGroupRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\355\001\332AHproject,zone,node" - + "_group,node_groups_perform_maintenance_r" - + "equest_resource\212N\016ZoneOperations\202\323\344\223\002\212\001\"" - + "V/compute/v1/projects/{project}/zones/{z" - + "one}/nodeGroups/{node_group}/performMain" - + "tenance:0node_groups_perform_maintenance" - + "_request_resource\022\232\002\n\014SetIamPolicy\0225.goo" - + "gle.cloud.compute.v1.SetIamPolicyNodeGro" - + "upRequest\032\037.google.cloud.compute.v1.Poli" - + "cy\"\261\001\332A6project,zone,resource,zone_set_p" - + "olicy_request_resource\202\323\344\223\002r\"N/compute/v" - + "1/projects/{project}/zones/{zone}/nodeGr" - + "oups/{resource}/setIamPolicy: zone_set_p" - + "olicy_request_resource\022\330\002\n\017SetNodeTempla" - + "te\0228.google.cloud.compute.v1.SetNodeTemp" - + "lateNodeGroupRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\346\001\332AFproject,zone,node_" - + "group,node_groups_set_node_template_requ" - + "est_resource\212N\016ZoneOperations\202\323\344\223\002\205\001\"S/c" - + "ompute/v1/projects/{project}/zones/{zone" - + "}/nodeGroups/{node_group}/setNodeTemplat" - + "e:.node_groups_set_node_template_request" - + "_resource\022\205\003\n\030SimulateMaintenanceEvent\022A" - + ".google.cloud.compute.v1.SimulateMainten" - + "anceEventNodeGroupRequest\032\".google.cloud" - + ".compute.v1.Operation\"\201\002\332AOproject,zone," - + "node_group,node_groups_simulate_maintena" - + "nce_event_request_resource\212N\016ZoneOperati" - + "ons\202\323\344\223\002\227\001\"\\/compute/v1/projects/{projec" - + "t}/zones/{zone}/nodeGroups/{node_group}/" - + "simulateMaintenanceEvent:7node_groups_si" - + "mulate_maintenance_event_request_resourc" - + "e\022\277\002\n\022TestIamPermissions\022;.google.cloud." - + "compute.v1.TestIamPermissionsNodeGroupRe" - + "quest\0320.google.cloud.compute.v1.TestPerm" - + "issionsResponse\"\271\001\332A7project,zone,resour" - + "ce,test_permissions_request_resource\202\323\344\223" - + "\002y\"T/compute/v1/projects/{project}/zones" - + "/{zone}/nodeGroups/{resource}/testIamPer" - + "missions:!test_permissions_request_resou" - + "rce\032\202\001\312A\026compute.googleapis.com\322AVhttps:" - + "//www.googleapis.com/auth/compute,https:" - + "//www.googleapis.com/auth/cloud-platform" - + "\212\324\333\322\017\n2026-09-012\305\020\n\rNodeTemplates\022\315\001\n\016A" - + "ggregatedList\022;.google.cloud.compute.v1." - + "AggregatedListNodeTemplatesRequest\0323.goo" - + "gle.cloud.compute.v1.NodeTemplateAggrega" - + "tedList\"I\332A\007project\202\323\344\223\0029\0227/compute/v1/p" - + "rojects/{project}/aggregated/nodeTemplat" - + "es\022\352\001\n\006Delete\0222.google.cloud.compute.v1." - + "DeleteNodeTemplateRequest\032\".google.cloud" - + ".compute.v1.Operation\"\207\001\332A\034project,regio" - + "n,node_template\212N\020RegionOperations\202\323\344\223\002O" - + "*M/compute/v1/projects/{project}/regions" - + "/{region}/nodeTemplates/{node_template}\022" - + "\323\001\n\003Get\022/.google.cloud.compute.v1.GetNod" - + "eTemplateRequest\032%.google.cloud.compute." - + "v1.NodeTemplate\"t\332A\034project,region,node_" - + "template\202\323\344\223\002O\022M/compute/v1/projects/{pr" - + "oject}/regions/{region}/nodeTemplates/{n" - + "ode_template}\022\342\001\n\014GetIamPolicy\0228.google." - + "cloud.compute.v1.GetIamPolicyNodeTemplat" - + "eRequest\032\037.google.cloud.compute.v1.Polic" - + "y\"w\332A\027project,region,resource\202\323\344\223\002W\022U/co" - + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/nodeTemplates/{resource}/getIamPoli" - + "cy\022\373\001\n\006Insert\0222.google.cloud.compute.v1." - + "InsertNodeTemplateRequest\032\".google.cloud" - + ".compute.v1.Operation\"\230\001\332A%project,regio" - + "n,node_template_resource\212N\020RegionOperati" - + "ons\202\323\344\223\002W\"=/compute/v1/projects/{project" - + "}/regions/{region}/nodeTemplates:\026node_t" - + "emplate_resource\022\274\001\n\004List\0221.google.cloud" - + ".compute.v1.ListNodeTemplatesRequest\032).g" - + "oogle.cloud.compute.v1.NodeTemplateList\"" - + "V\332A\016project,region\202\323\344\223\002?\022=/compute/v1/pr" - + "ojects/{project}/regions/{region}/nodeTe" - + "mplates\022\252\002\n\014SetIamPolicy\0228.google.cloud." - + "compute.v1.SetIamPolicyNodeTemplateReque" - + "st\032\037.google.cloud.compute.v1.Policy\"\276\001\332A" - + ":project,region,resource,region_set_poli" - + "cy_request_resource\202\323\344\223\002{\"U/compute/v1/p" - + "rojects/{project}/regions/{region}/nodeT" - + "emplates/{resource}/setIamPolicy:\"region" - + "_set_policy_request_resource\022\314\002\n\022TestIam" - + "Permissions\022>.google.cloud.compute.v1.Te" - + "stIamPermissionsNodeTemplateRequest\0320.go" - + "ogle.cloud.compute.v1.TestPermissionsRes" - + "ponse\"\303\001\332A9project,region,resource,test_" - + "permissions_request_resource\202\323\344\223\002\200\001\"[/co" + + "{resource}/setIamPolicy: zone_set_policy" + + "_request_resource\022\330\002\n\017SetNodeTemplate\0228." + + "google.cloud.compute.v1.SetNodeTemplateN" + + "odeGroupRequest\032\".google.cloud.compute.v" + + "1.Operation\"\346\001\332AFproject,zone,node_group" + + ",node_groups_set_node_template_request_r" + + "esource\212N\016ZoneOperations\202\323\344\223\002\205\001\"S/comput" + + "e/v1/projects/{project}/zones/{zone}/nod" + + "eGroups/{node_group}/setNodeTemplate:.no" + + "de_groups_set_node_template_request_reso" + + "urce\022\205\003\n\030SimulateMaintenanceEvent\022A.goog" + + "le.cloud.compute.v1.SimulateMaintenanceE" + + "ventNodeGroupRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\201\002\332AOproject,zone,node_" + + "group,node_groups_simulate_maintenance_e" + + "vent_request_resource\212N\016ZoneOperations\202\323" + + "\344\223\002\227\001\"\\/compute/v1/projects/{project}/zo" + + "nes/{zone}/nodeGroups/{node_group}/simul" + + "ateMaintenanceEvent:7node_groups_simulat" + + "e_maintenance_event_request_resource\022\277\002\n" + + "\022TestIamPermissions\022;.google.cloud.compu" + + "te.v1.TestIamPermissionsNodeGroupRequest" + + "\0320.google.cloud.compute.v1.TestPermissio" + + "nsResponse\"\271\001\332A7project,zone,resource,te" + + "st_permissions_request_resource\202\323\344\223\002y\"T/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/nodeGroups/{resource}/testIamPermissi" + + "ons:!test_permissions_request_resource\032\202" + + "\001\312A\026compute.googleapis.com\322AVhttps://www" + + ".googleapis.com/auth/compute,https://www" + + ".googleapis.com/auth/cloud-platform\212\324\333\322\017" + + "\n2026-09-012\305\020\n\rNodeTemplates\022\315\001\n\016Aggreg" + + "atedList\022;.google.cloud.compute.v1.Aggre" + + "gatedListNodeTemplatesRequest\0323.google.c" + + "loud.compute.v1.NodeTemplateAggregatedLi" + + "st\"I\332A\007project\202\323\344\223\0029\0227/compute/v1/projec" + + "ts/{project}/aggregated/nodeTemplates\022\352\001" + + "\n\006Delete\0222.google.cloud.compute.v1.Delet" + + "eNodeTemplateRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\207\001\332A\034project,region,nod" + + "e_template\212N\020RegionOperations\202\323\344\223\002O*M/co" + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/nodeTemplates/{resource}/testIamPer" - + "missions:!test_permissions_request_resou" - + "rce\032\202\001\312A\026compute.googleapis.com\322AVhttps:" - + "//www.googleapis.com/auth/compute,https:" - + "//www.googleapis.com/auth/cloud-platform" - + "\212\324\333\322\017\n2026-09-012\357\005\n\tNodeTypes\022\301\001\n\016Aggre" - + "gatedList\0227.google.cloud.compute.v1.Aggr" - + "egatedListNodeTypesRequest\032/.google.clou" - + "d.compute.v1.NodeTypeAggregatedList\"E\332A\007" - + "project\202\323\344\223\0025\0223/compute/v1/projects/{pro" - + "ject}/aggregated/nodeTypes\022\271\001\n\003Get\022+.goo" - + "gle.cloud.compute.v1.GetNodeTypeRequest\032" - + "!.google.cloud.compute.v1.NodeType\"b\332A\026p" - + "roject,zone,node_type\202\323\344\223\002C\022A/compute/v1" - + "/projects/{project}/zones/{zone}/nodeTyp" - + "es/{node_type}\022\252\001\n\004List\022-.google.cloud.c" - + "ompute.v1.ListNodeTypesRequest\032%.google." - + "cloud.compute.v1.NodeTypeList\"L\332A\014projec" - + "t,zone\202\323\344\223\0027\0225/compute/v1/projects/{proj" - + "ect}/zones/{zone}/nodeTypes\032\264\001\312A\026compute" - + ".googleapis.com\322A\207\001https://www.googleapi" - + "s.com/auth/compute.readonly,https://www." - + "googleapis.com/auth/compute,https://www." - + "googleapis.com/auth/cloud-platform\212\324\333\322\017\n" - + "2026-09-012\344!\n\034OrganizationSecurityPolic" - + "ies\022\323\002\n\016AddAssociation\022H.google.cloud.co" - + "mpute.v1.AddAssociationOrganizationSecur" + + "ion}/nodeTemplates/{node_template}\022\323\001\n\003G" + + "et\022/.google.cloud.compute.v1.GetNodeTemp" + + "lateRequest\032%.google.cloud.compute.v1.No" + + "deTemplate\"t\332A\034project,region,node_templ" + + "ate\202\323\344\223\002O\022M/compute/v1/projects/{project" + + "}/regions/{region}/nodeTemplates/{node_t" + + "emplate}\022\342\001\n\014GetIamPolicy\0228.google.cloud" + + ".compute.v1.GetIamPolicyNodeTemplateRequ" + + "est\032\037.google.cloud.compute.v1.Policy\"w\332A" + + "\027project,region,resource\202\323\344\223\002W\022U/compute" + + "/v1/projects/{project}/regions/{region}/" + + "nodeTemplates/{resource}/getIamPolicy\022\373\001" + + "\n\006Insert\0222.google.cloud.compute.v1.Inser" + + "tNodeTemplateRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\230\001\332A%project,region,nod" + + "e_template_resource\212N\020RegionOperations\202\323" + + "\344\223\002W\"=/compute/v1/projects/{project}/reg" + + "ions/{region}/nodeTemplates:\026node_templa" + + "te_resource\022\274\001\n\004List\0221.google.cloud.comp" + + "ute.v1.ListNodeTemplatesRequest\032).google" + + ".cloud.compute.v1.NodeTemplateList\"V\332A\016p" + + "roject,region\202\323\344\223\002?\022=/compute/v1/project" + + "s/{project}/regions/{region}/nodeTemplat" + + "es\022\252\002\n\014SetIamPolicy\0228.google.cloud.compu" + + "te.v1.SetIamPolicyNodeTemplateRequest\032\037." + + "google.cloud.compute.v1.Policy\"\276\001\332A:proj" + + "ect,region,resource,region_set_policy_re" + + "quest_resource\202\323\344\223\002{\"U/compute/v1/projec" + + "ts/{project}/regions/{region}/nodeTempla" + + "tes/{resource}/setIamPolicy:\"region_set_" + + "policy_request_resource\022\314\002\n\022TestIamPermi" + + "ssions\022>.google.cloud.compute.v1.TestIam" + + "PermissionsNodeTemplateRequest\0320.google." + + "cloud.compute.v1.TestPermissionsResponse" + + "\"\303\001\332A9project,region,resource,test_permi" + + "ssions_request_resource\202\323\344\223\002\200\001\"[/compute" + + "/v1/projects/{project}/regions/{region}/" + + "nodeTemplates/{resource}/testIamPermissi" + + "ons:!test_permissions_request_resource\032\202" + + "\001\312A\026compute.googleapis.com\322AVhttps://www" + + ".googleapis.com/auth/compute,https://www" + + ".googleapis.com/auth/cloud-platform\212\324\333\322\017" + + "\n2026-09-012\357\005\n\tNodeTypes\022\301\001\n\016Aggregated" + + "List\0227.google.cloud.compute.v1.Aggregate" + + "dListNodeTypesRequest\032/.google.cloud.com" + + "pute.v1.NodeTypeAggregatedList\"E\332A\007proje" + + "ct\202\323\344\223\0025\0223/compute/v1/projects/{project}" + + "/aggregated/nodeTypes\022\271\001\n\003Get\022+.google.c" + + "loud.compute.v1.GetNodeTypeRequest\032!.goo" + + "gle.cloud.compute.v1.NodeType\"b\332A\026projec" + + "t,zone,node_type\202\323\344\223\002C\022A/compute/v1/proj" + + "ects/{project}/zones/{zone}/nodeTypes/{n" + + "ode_type}\022\252\001\n\004List\022-.google.cloud.comput" + + "e.v1.ListNodeTypesRequest\032%.google.cloud" + + ".compute.v1.NodeTypeList\"L\332A\014project,zon" + + "e\202\323\344\223\0027\0225/compute/v1/projects/{project}/" + + "zones/{zone}/nodeTypes\032\264\001\312A\026compute.goog" + + "leapis.com\322A\207\001https://www.googleapis.com" + + "/auth/compute.readonly,https://www.googl" + + "eapis.com/auth/compute,https://www.googl" + + "eapis.com/auth/cloud-platform\212\324\333\322\017\n2026-" + + "09-012\344!\n\034OrganizationSecurityPolicies\022\323" + + "\002\n\016AddAssociation\022H.google.cloud.compute" + + ".v1.AddAssociationOrganizationSecurityPo" + + "licyRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\322\001\332A4security_policy,security_po" + + "licy_association_resource\212N\034GlobalOrgani" + + "zationOperations\202\323\344\223\002v\"N/compute/v1/loca" + + "tions/global/securityPolicies/{security_" + + "policy}/addAssociation:$security_policy_" + + "association_resource\022\260\002\n\007AddRule\022A.googl" + + "e.cloud.compute.v1.AddRuleOrganizationSe" + + "curityPolicyRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\275\001\332A-security_policy,sec" + + "urity_policy_rule_resource\212N\034GlobalOrgan" + + "izationOperations\202\323\344\223\002h\"G/compute/v1/loc" + + "ations/global/securityPolicies/{security" + + "_policy}/addRule:\035security_policy_rule_r" + + "esource\022\371\001\n\tCopyRules\022C.google.cloud.com" + + "pute.v1.CopyRulesOrganizationSecurityPol" + + "icyRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\202\001\332A\017security_policy\212N\034GlobalOrga" + + "nizationOperations\202\323\344\223\002K\"I/compute/v1/lo" + + "cations/global/securityPolicies/{securit" + + "y_policy}/copyRules\022\350\001\n\006Delete\022@.google." + + "cloud.compute.v1.DeleteOrganizationSecur" + "ityPolicyRequest\032\".google.cloud.compute." - + "v1.Operation\"\322\001\332A4security_policy,securi" - + "ty_policy_association_resource\212N\034GlobalO" - + "rganizationOperations\202\323\344\223\002v\"N/compute/v1" - + "/locations/global/securityPolicies/{secu" - + "rity_policy}/addAssociation:$security_po" - + "licy_association_resource\022\260\002\n\007AddRule\022A." - + "google.cloud.compute.v1.AddRuleOrganizat" - + "ionSecurityPolicyRequest\032\".google.cloud." - + "compute.v1.Operation\"\275\001\332A-security_polic" - + "y,security_policy_rule_resource\212N\034Global" - + "OrganizationOperations\202\323\344\223\002h\"G/compute/v" + + "v1.Operation\"x\332A\017security_policy\212N\034Globa" + + "lOrganizationOperations\202\323\344\223\002A*?/compute/", + "v1/locations/global/securityPolicies/{se" + + "curity_policy}\022\310\001\n\003Get\022=.google.cloud.co" + + "mpute.v1.GetOrganizationSecurityPolicyRe" + + "quest\032\'.google.cloud.compute.v1.Security" + + "Policy\"Y\332A\017security_policy\202\323\344\223\002A\022?/compu" + + "te/v1/locations/global/securityPolicies/" + + "{security_policy}\022\370\001\n\016GetAssociation\022H.g" + + "oogle.cloud.compute.v1.GetAssociationOrg" + + "anizationSecurityPolicyRequest\0322.google." + + "cloud.compute.v1.SecurityPolicyAssociati" + + "on\"h\332A\017security_policy\202\323\344\223\002P\022N/compute/v" + "1/locations/global/securityPolicies/{sec" - + "urity_policy}/addRule:\035security_policy_r" - + "ule_resource\022\371\001\n\tCopyRules\022C.google.clou" - + "d.compute.v1.CopyRulesOrganizationSecuri" - + "tyPolicyRequest\032\".google.cloud.compute.v" - + "1.Operation\"\202\001\332A\017security_policy\212N\034Globa" - + "lOrganizationOperations\202\323\344\223\002K\"I/compute/" - + "v1/locations/global/securityPolicies/{se" - + "curity_policy}/copyRules\022\350\001\n\006Delete\022@.go" - + "ogle.cloud.compute.v1.DeleteOrganization" - + "SecurityPolicyRequest\032\".google.cloud.com" - + "pute.v1.Operation\"x\332A\017security_policy\212N\034" - + "GlobalOrganizationOperations\202\323\344\223\002A*?/com" - + "pute/v1/locations/global/securityPolicie", - "s/{security_policy}\022\310\001\n\003Get\022=.google.clo" - + "ud.compute.v1.GetOrganizationSecurityPol" - + "icyRequest\032\'.google.cloud.compute.v1.Sec" - + "urityPolicy\"Y\332A\017security_policy\202\323\344\223\002A\022?/" - + "compute/v1/locations/global/securityPoli" - + "cies/{security_policy}\022\370\001\n\016GetAssociatio" - + "n\022H.google.cloud.compute.v1.GetAssociati" - + "onOrganizationSecurityPolicyRequest\0322.go" - + "ogle.cloud.compute.v1.SecurityPolicyAsso" - + "ciation\"h\332A\017security_policy\202\323\344\223\002P\022N/comp" - + "ute/v1/locations/global/securityPolicies" - + "/{security_policy}/getAssociation\022\334\001\n\007Ge" - + "tRule\022A.google.cloud.compute.v1.GetRuleO" - + "rganizationSecurityPolicyRequest\032+.googl" - + "e.cloud.compute.v1.SecurityPolicyRule\"a\332" - + "A\017security_policy\202\323\344\223\002I\022G/compute/v1/loc" - + "ations/global/securityPolicies/{security" - + "_policy}/getRule\022\372\001\n\006Insert\022@.google.clo" - + "ud.compute.v1.InsertOrganizationSecurity" - + "PolicyRequest\032\".google.cloud.compute.v1." - + "Operation\"\211\001\332A\030security_policy_resource\212" - + "N\034GlobalOrganizationOperations\202\323\344\223\002I\"-/c" - + "ompute/v1/locations/global/securityPolic" - + "ies:\030security_policy_resource\022\257\001\n\004List\022@" - + ".google.cloud.compute.v1.ListOrganizatio" - + "nSecurityPoliciesRequest\032+.google.cloud." - + "compute.v1.SecurityPolicyList\"8\332A\000\202\323\344\223\002/" - + "\022-/compute/v1/locations/global/securityP" - + "olicies\022\370\001\n\020ListAssociations\022J.google.cl" - + "oud.compute.v1.ListAssociationsOrganizat" - + "ionSecurityPolicyRequest\032M.google.cloud." - + "compute.v1.OrganizationSecurityPoliciesL" - + "istAssociationsResponse\"I\332A\000\202\323\344\223\002@\022>/com" - + "pute/v1/locations/global/securityPolicie" - + "s/listAssociations\022\252\002\n\037ListPreconfigured" - + "ExpressionSets\022[.google.cloud.compute.v1" - + ".ListPreconfiguredExpressionSetsOrganiza" - + "tionSecurityPoliciesRequest\032P.google.clo" - + "ud.compute.v1.SecurityPoliciesListPrecon" - + "figuredExpressionSetsResponse\"X\332A\000\202\323\344\223\002O" - + "\022M/compute/v1/locations/global/securityP" - + "olicies/listPreconfiguredExpressionSets\022" - + "\351\001\n\004Move\022>.google.cloud.compute.v1.MoveO" - + "rganizationSecurityPolicyRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"}\332A\017securit" - + "y_policy\212N\034GlobalOrganizationOperations\202" - + "\323\344\223\002F\"D/compute/v1/locations/global/secu" - + "rityPolicies/{security_policy}/move\022\232\002\n\005" - + "Patch\022?.google.cloud.compute.v1.PatchOrg" - + "anizationSecurityPolicyRequest\032\".google." - + "cloud.compute.v1.Operation\"\253\001\332A(security" - + "_policy,security_policy_resource\212N\034Globa" - + "lOrganizationOperations\202\323\344\223\002[2?/compute/" - + "v1/locations/global/securityPolicies/{se" - + "curity_policy}:\030security_policy_resource" - + "\022\266\002\n\tPatchRule\022C.google.cloud.compute.v1" - + ".PatchRuleOrganizationSecurityPolicyRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\277\001\332A-security_policy,security_policy_rul" - + "e_resource\212N\034GlobalOrganizationOperation" - + "s\202\323\344\223\002j\"I/compute/v1/locations/global/se" - + "curityPolicies/{security_policy}/patchRu" - + "le:\035security_policy_rule_resource\022\221\002\n\021Re" - + "moveAssociation\022K.google.cloud.compute.v" - + "1.RemoveAssociationOrganizationSecurityP" - + "olicyRequest\032\".google.cloud.compute.v1.O" - + "peration\"\212\001\332A\017security_policy\212N\034GlobalOr" - + "ganizationOperations\202\323\344\223\002S\"Q/compute/v1/" - + "locations/global/securityPolicies/{secur" - + "ity_policy}/removeAssociation\022\374\001\n\nRemove" - + "Rule\022D.google.cloud.compute.v1.RemoveRul" - + "eOrganizationSecurityPolicyRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\203\001\332A\017secu" - + "rity_policy\212N\034GlobalOrganizationOperatio" - + "ns\202\323\344\223\002L\"J/compute/v1/locations/global/s" - + "ecurityPolicies/{security_policy}/remove" - + "Rule\032\202\001\312A\026compute.googleapis.com\322AVhttps" - + "://www.googleapis.com/auth/compute,https" - + "://www.googleapis.com/auth/cloud-platfor" - + "m\212\324\333\322\017\n2026-09-012\241\017\n\020PacketMirrorings\022\326" - + "\001\n\016AggregatedList\022>.google.cloud.compute" - + ".v1.AggregatedListPacketMirroringsReques" - + "t\0326.google.cloud.compute.v1.PacketMirror" - + "ingAggregatedList\"L\332A\007project\202\323\344\223\002<\022:/co" - + "mpute/v1/projects/{project}/aggregated/p" - + "acketMirrorings\022\366\001\n\006Delete\0225.google.clou" - + "d.compute.v1.DeletePacketMirroringReques" - + "t\032\".google.cloud.compute.v1.Operation\"\220\001" - + "\332A\037project,region,packet_mirroring\212N\020Reg" - + "ionOperations\202\323\344\223\002U*S/compute/v1/project" - + "s/{project}/regions/{region}/packetMirro" - + "rings/{packet_mirroring}\022\342\001\n\003Get\0222.googl" - + "e.cloud.compute.v1.GetPacketMirroringReq" - + "uest\032(.google.cloud.compute.v1.PacketMir" - + "roring\"}\332A\037project,region,packet_mirrori" - + "ng\202\323\344\223\002U\022S/compute/v1/projects/{project}" - + "/regions/{region}/packetMirrorings/{pack" - + "et_mirroring}\022\207\002\n\006Insert\0225.google.cloud." - + "compute.v1.InsertPacketMirroringRequest\032" - + "\".google.cloud.compute.v1.Operation\"\241\001\332A" - + "(project,region,packet_mirroring_resourc" - + "e\212N\020RegionOperations\202\323\344\223\002]\"@/compute/v1/" - + "projects/{project}/regions/{region}/pack" - + "etMirrorings:\031packet_mirroring_resource\022" - + "\305\001\n\004List\0224.google.cloud.compute.v1.ListP" - + "acketMirroringsRequest\032,.google.cloud.co" - + "mpute.v1.PacketMirroringList\"Y\332A\016project" - + ",region\202\323\344\223\002B\022@/compute/v1/projects/{pro" - + "ject}/regions/{region}/packetMirrorings\022" - + "\251\002\n\005Patch\0224.google.cloud.compute.v1.Patc" - + "hPacketMirroringRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\305\001\332A9project,region," - + "packet_mirroring,packet_mirroring_resour" - + "ce\212N\020RegionOperations\202\323\344\223\002p2S/compute/v1" - + "/projects/{project}/regions/{region}/pac" - + "ketMirrorings/{packet_mirroring}:\031packet" - + "_mirroring_resource\022\322\002\n\022TestIamPermissio" - + "ns\022A.google.cloud.compute.v1.TestIamPerm" - + "issionsPacketMirroringRequest\0320.google.c" - + "loud.compute.v1.TestPermissionsResponse\"" - + "\306\001\332A9project,region,resource,test_permis" - + "sions_request_resource\202\323\344\223\002\203\001\"^/compute/" - + "v1/projects/{project}/regions/{region}/p" - + "acketMirrorings/{resource}/testIamPermis" - + "sions:!test_permissions_request_resource" - + "\032\202\001\312A\026compute.googleapis.com\322AVhttps://w" - + "ww.googleapis.com/auth/compute,https://w" - + "ww.googleapis.com/auth/cloud-platform\212\324\333" - + "\322\017\n2026-09-012\260\006\n\017PreviewFeatures\022\314\001\n\003Ge" - + "t\0221.google.cloud.compute.v1.GetPreviewFe" - + "atureRequest\032\'.google.cloud.compute.v1.P" - + "reviewFeature\"i\332A\027project,preview_featur" - + "e\202\323\344\223\002I\022G/compute/v1/projects/{project}/" - + "global/previewFeatures/{preview_feature}" - + "\022\261\001\n\004List\0223.google.cloud.compute.v1.List" - + "PreviewFeaturesRequest\032+.google.cloud.co" - + "mpute.v1.PreviewFeatureList\"G\332A\007project\202" - + "\323\344\223\0027\0225/compute/v1/projects/{project}/gl" - + "obal/previewFeatures\022\224\002\n\006Update\0224.google" - + ".cloud.compute.v1.UpdatePreviewFeatureRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\257\001\332A0project,preview_feature,preview_f" - + "eature_resource\212N\020GlobalOperations\202\323\344\223\002c" - + "2G/compute/v1/projects/{project}/global/" - + "previewFeatures/{preview_feature}:\030previ" - + "ew_feature_resource\032\202\001\312A\026compute.googlea" - + "pis.com\322AVhttps://www.googleapis.com/aut" - + "h/compute,https://www.googleapis.com/aut" - + "h/cloud-platform\212\324\333\322\017\n2026-09-012\372\002\n\014Pro" - + "jectViews\022\262\001\n\003Get\022..google.cloud.compute" - + ".v1.GetProjectViewRequest\032$.google.cloud" - + ".compute.v1.ProjectView\"U\332A\016project,regi" - + "on\202\323\344\223\002>\022/compute/" + + "v1/locations/global/securityPolicies/lis" + + "tAssociations\022\252\002\n\037ListPreconfiguredExpre" + + "ssionSets\022[.google.cloud.compute.v1.List" + + "PreconfiguredExpressionSetsOrganizationS" + + "ecurityPoliciesRequest\032P.google.cloud.co" + + "mpute.v1.SecurityPoliciesListPreconfigur" + + "edExpressionSetsResponse\"X\332A\000\202\323\344\223\002O\022M/co" + + "mpute/v1/locations/global/securityPolici" + + "es/listPreconfiguredExpressionSets\022\351\001\n\004M" + + "ove\022>.google.cloud.compute.v1.MoveOrgani" + + "zationSecurityPolicyRequest\032\".google.clo" + + "ud.compute.v1.Operation\"}\332A\017security_pol" + + "icy\212N\034GlobalOrganizationOperations\202\323\344\223\002F" + + "\"D/compute/v1/locations/global/securityP" + + "olicies/{security_policy}/move\022\232\002\n\005Patch" + + "\022?.google.cloud.compute.v1.PatchOrganiza" + + "tionSecurityPolicyRequest\032\".google.cloud" + + ".compute.v1.Operation\"\253\001\332A(security_poli" + + "cy,security_policy_resource\212N\034GlobalOrga" + + "nizationOperations\202\323\344\223\002[2?/compute/v1/lo" + + "cations/global/securityPolicies/{securit" + + "y_policy}:\030security_policy_resource\022\266\002\n\t" + + "PatchRule\022C.google.cloud.compute.v1.Patc" + + "hRuleOrganizationSecurityPolicyRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\277\001\332A-" + + "security_policy,security_policy_rule_res" + + "ource\212N\034GlobalOrganizationOperations\202\323\344\223" + + "\002j\"I/compute/v1/locations/global/securit" + + "yPolicies/{security_policy}/patchRule:\035s" + + "ecurity_policy_rule_resource\022\221\002\n\021RemoveA" + + "ssociation\022K.google.cloud.compute.v1.Rem" + + "oveAssociationOrganizationSecurityPolicy" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\212\001\332A\017security_policy\212N\034GlobalOrganiz" + + "ationOperations\202\323\344\223\002S\"Q/compute/v1/locat" + + "ions/global/securityPolicies/{security_p" + + "olicy}/removeAssociation\022\374\001\n\nRemoveRule\022" + + "D.google.cloud.compute.v1.RemoveRuleOrga" + + "nizationSecurityPolicyRequest\032\".google.c" + + "loud.compute.v1.Operation\"\203\001\332A\017security_" + + "policy\212N\034GlobalOrganizationOperations\202\323\344" + + "\223\002L\"J/compute/v1/locations/global/securi" + + "tyPolicies/{security_policy}/removeRule\032" + "\202\001\312A\026compute.googleapis.com\322AVhttps://ww" + "w.googleapis.com/auth/compute,https://ww" + "w.googleapis.com/auth/cloud-platform\212\324\333\322" - + "\017\n2026-09-012\377\017\n\030PublicAdvertisedPrefixe" - + "s\022\222\002\n\010Announce\022?.google.cloud.compute.v1" - + ".AnnouncePublicAdvertisedPrefixeRequest\032" - + "\".google.cloud.compute.v1.Operation\"\240\001\332A" - + " project,public_advertised_prefix\212N\020Glob" - + "alOperations\202\323\344\223\002d\"b/compute/v1/projects" + + "\017\n2026-09-012\241\017\n\020PacketMirrorings\022\326\001\n\016Ag" + + "gregatedList\022>.google.cloud.compute.v1.A" + + "ggregatedListPacketMirroringsRequest\0326.g" + + "oogle.cloud.compute.v1.PacketMirroringAg" + + "gregatedList\"L\332A\007project\202\323\344\223\002<\022:/compute" + + "/v1/projects/{project}/aggregated/packet" + + "Mirrorings\022\366\001\n\006Delete\0225.google.cloud.com" + + "pute.v1.DeletePacketMirroringRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\220\001\332A\037pr" + + "oject,region,packet_mirroring\212N\020RegionOp" + + "erations\202\323\344\223\002U*S/compute/v1/projects/{pr" + + "oject}/regions/{region}/packetMirrorings" + + "/{packet_mirroring}\022\342\001\n\003Get\0222.google.clo" + + "ud.compute.v1.GetPacketMirroringRequest\032" + + "(.google.cloud.compute.v1.PacketMirrorin" + + "g\"}\332A\037project,region,packet_mirroring\202\323\344" + + "\223\002U\022S/compute/v1/projects/{project}/regi" + + "ons/{region}/packetMirrorings/{packet_mi" + + "rroring}\022\207\002\n\006Insert\0225.google.cloud.compu" + + "te.v1.InsertPacketMirroringRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\241\001\332A(proj" + + "ect,region,packet_mirroring_resource\212N\020R" + + "egionOperations\202\323\344\223\002]\"@/compute/v1/proje" + + "cts/{project}/regions/{region}/packetMir" + + "rorings:\031packet_mirroring_resource\022\305\001\n\004L" + + "ist\0224.google.cloud.compute.v1.ListPacket" + + "MirroringsRequest\032,.google.cloud.compute" + + ".v1.PacketMirroringList\"Y\332A\016project,regi" + + "on\202\323\344\223\002B\022@/compute/v1/projects/{project}" + + "/regions/{region}/packetMirrorings\022\251\002\n\005P" + + "atch\0224.google.cloud.compute.v1.PatchPack" + + "etMirroringRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\305\001\332A9project,region,packe" + + "t_mirroring,packet_mirroring_resource\212N\020" + + "RegionOperations\202\323\344\223\002p2S/compute/v1/proj" + + "ects/{project}/regions/{region}/packetMi" + + "rrorings/{packet_mirroring}:\031packet_mirr" + + "oring_resource\022\322\002\n\022TestIamPermissions\022A." + + "google.cloud.compute.v1.TestIamPermissio" + + "nsPacketMirroringRequest\0320.google.cloud." + + "compute.v1.TestPermissionsResponse\"\306\001\332A9" + + "project,region,resource,test_permissions" + + "_request_resource\202\323\344\223\002\203\001\"^/compute/v1/pr" + + "ojects/{project}/regions/{region}/packet" + + "Mirrorings/{resource}/testIamPermissions" + + ":!test_permissions_request_resource\032\202\001\312A" + + "\026compute.googleapis.com\322AVhttps://www.go" + + "ogleapis.com/auth/compute,https://www.go" + + "ogleapis.com/auth/cloud-platform\212\324\333\322\017\n20" + + "26-09-012\260\006\n\017PreviewFeatures\022\314\001\n\003Get\0221.g" + + "oogle.cloud.compute.v1.GetPreviewFeature" + + "Request\032\'.google.cloud.compute.v1.Previe" + + "wFeature\"i\332A\027project,preview_feature\202\323\344\223" + + "\002I\022G/compute/v1/projects/{project}/globa" + + "l/previewFeatures/{preview_feature}\022\261\001\n\004" + + "List\0223.google.cloud.compute.v1.ListPrevi" + + "ewFeaturesRequest\032+.google.cloud.compute" + + ".v1.PreviewFeatureList\"G\332A\007project\202\323\344\223\0027" + + "\0225/compute/v1/projects/{project}/global/" + + "previewFeatures\022\224\002\n\006Update\0224.google.clou" + + "d.compute.v1.UpdatePreviewFeatureRequest" + + "\032\".google.cloud.compute.v1.Operation\"\257\001\332" + + "A0project,preview_feature,preview_featur" + + "e_resource\212N\020GlobalOperations\202\323\344\223\002c2G/co" + + "mpute/v1/projects/{project}/global/previ" + + "ewFeatures/{preview_feature}:\030preview_fe" + + "ature_resource\032\202\001\312A\026compute.googleapis.c" + + "om\322AVhttps://www.googleapis.com/auth/com" + + "pute,https://www.googleapis.com/auth/clo" + + "ud-platform\212\324\333\322\017\n2026-09-012\372\002\n\014ProjectV" + + "iews\022\262\001\n\003Get\022..google.cloud.compute.v1.G" + + "etProjectViewRequest\032$.google.cloud.comp" + + "ute.v1.ProjectView\"U\332A\016project,region\202\323\344" + + "\223\002>\022/compute/v1/projects/{proje" + + "ct}/global/publicAdvertisedPrefixes:!pub" + + "lic_advertised_prefix_resource\022\313\001\n\004List\022" + + "<.google.cloud.compute.v1.ListPublicAdve" + + "rtisedPrefixesRequest\0323.google.cloud.com" + + "pute.v1.PublicAdvertisedPrefixList\"P\332A\007p" + + "roject\202\323\344\223\002@\022>/compute/v1/projects/{proj" + + "ect}/global/publicAdvertisedPrefixes\022\310\002\n" + + "\005Patch\022<.google.cloud.compute.v1.PatchPu" + "blicAdvertisedPrefixeRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\250\001\332A)project,pu" - + "blic_advertised_prefix_resource\212N\020Global" - + "Operations\202\323\344\223\002c\">/compute/v1/projects/{" - + "project}/global/publicAdvertisedPrefixes" - + ":!public_advertised_prefix_resource\022\313\001\n\004" - + "List\022<.google.cloud.compute.v1.ListPubli" - + "cAdvertisedPrefixesRequest\0323.google.clou" - + "d.compute.v1.PublicAdvertisedPrefixList\"" - + "P\332A\007project\202\323\344\223\002@\022>/compute/v1/projects/" - + "{project}/global/publicAdvertisedPrefixe" - + "s\022\310\002\n\005Patch\022<.google.cloud.compute.v1.Pa" - + "tchPublicAdvertisedPrefixeRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\334\001\332ABproje" - + "ct,public_advertised_prefix,public_adver" - + "tised_prefix_resource\212N\020GlobalOperations" - + "\202\323\344\223\002~2Y/compute/v1/projects/{project}/g" - + "lobal/publicAdvertisedPrefixes/{public_a" - + "dvertised_prefix}:!public_advertised_pre" - + "fix_resource\022\222\002\n\010Withdraw\022?.google.cloud" - + ".compute.v1.WithdrawPublicAdvertisedPref" - + "ixeRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\240\001\332A project,public_advertised_pr" - + "efix\212N\020GlobalOperations\202\323\344\223\002d\"b/compute/" - + "v1/projects/{project}/global/publicAdver" - + "tisedPrefixes/{public_advertised_prefix}" - + "/withdraw\032\202\001\312A\026compute.googleapis.com\322AV" - + "https://www.googleapis.com/auth/compute," - + "https://www.googleapis.com/auth/cloud-pl" - + "atform\212\324\333\322\017\n2026-09-012\305\022\n\027PublicDelegat" - + "edPrefixes\022\352\001\n\016AggregatedList\022E.google.c" - + "loud.compute.v1.AggregatedListPublicDele" - + "gatedPrefixesRequest\032<.google.cloud.comp" - + "ute.v1.PublicDelegatedPrefixAggregatedLi" - + "st\"S\332A\007project\202\323\344\223\002C\022A/compute/v1/projec" - + "ts/{project}/aggregated/publicDelegatedP" - + "refixes\022\237\002\n\010Announce\022>.google.cloud.comp" - + "ute.v1.AnnouncePublicDelegatedPrefixeReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\256\001\332A&project,region,public_delegated_pr" - + "efix\212N\020RegionOperations\202\323\344\223\002l\"j/compute/" - + "v1/projects/{project}/regions/{region}/p" - + "ublicDelegatedPrefixes/{public_delegated" - + "_prefix}/announce\022\222\002\n\006Delete\022<.google.cl" - + "oud.compute.v1.DeletePublicDelegatedPref" - + "ixeRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\245\001\332A&project,region,public_delega" - + "ted_prefix\212N\020RegionOperations\202\323\344\223\002c*a/co" - + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/publicDelegatedPrefixes/{public_del" - + "egated_prefix}\022\205\002\n\003Get\0229.google.cloud.co" - + "mpute.v1.GetPublicDelegatedPrefixeReques" - + "t\032..google.cloud.compute.v1.PublicDelega" - + "tedPrefix\"\222\001\332A&project,region,public_del" - + "egated_prefix\202\323\344\223\002c\022a/compute/v1/project" - + "s/{project}/regions/{region}/publicDeleg" - + "atedPrefixes/{public_delegated_prefix}\022\243" - + "\002\n\006Insert\022<.google.cloud.compute.v1.Inse" - + "rtPublicDelegatedPrefixeRequest\032\".google" - + ".cloud.compute.v1.Operation\"\266\001\332A/project" - + ",region,public_delegated_prefix_resource" - + "\212N\020RegionOperations\202\323\344\223\002k\"G/compute/v1/p" - + "rojects/{project}/regions/{region}/publi" - + "cDelegatedPrefixes: public_delegated_pre" - + "fix_resource\022\331\001\n\004List\022;.google.cloud.com" - + "pute.v1.ListPublicDelegatedPrefixesReque" - + "st\0322.google.cloud.compute.v1.PublicDeleg" - + "atedPrefixList\"`\332A\016project,region\202\323\344\223\002I\022" - + "G/compute/v1/projects/{project}/regions/" - + "{region}/publicDelegatedPrefixes\022\324\002\n\005Pat" - + "ch\022;.google.cloud.compute.v1.PatchPublic" - + "DelegatedPrefixeRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\351\001\332AGproject,region," - + "public_delegated_prefix,public_delegated" - + "_prefix_resource\212N\020RegionOperations\202\323\344\223\002" - + "\205\0012a/compute/v1/projects/{project}/regio" - + "ns/{region}/publicDelegatedPrefixes/{pub" - + "lic_delegated_prefix}: public_delegated_" - + "prefix_resource\022\237\002\n\010Withdraw\022>.google.cl" - + "oud.compute.v1.WithdrawPublicDelegatedPr" - + "efixeRequest\032\".google.cloud.compute.v1.O" - + "peration\"\256\001\332A&project,region,public_dele" - + "gated_prefix\212N\020RegionOperations\202\323\344\223\002l\"j/" + + "oud.compute.v1.Operation\"\334\001\332ABproject,pu" + + "blic_advertised_prefix,public_advertised" + + "_prefix_resource\212N\020GlobalOperations\202\323\344\223\002" + + "~2Y/compute/v1/projects/{project}/global" + + "/publicAdvertisedPrefixes/{public_advert" + + "ised_prefix}:!public_advertised_prefix_r" + + "esource\022\222\002\n\010Withdraw\022?.google.cloud.comp" + + "ute.v1.WithdrawPublicAdvertisedPrefixeRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\240\001\332A project,public_advertised_prefix\212" + + "N\020GlobalOperations\202\323\344\223\002d\"b/compute/v1/pr" + + "ojects/{project}/global/publicAdvertised" + + "Prefixes/{public_advertised_prefix}/with" + + "draw\032\202\001\312A\026compute.googleapis.com\322AVhttps" + + "://www.googleapis.com/auth/compute,https" + + "://www.googleapis.com/auth/cloud-platfor" + + "m\212\324\333\322\017\n2026-09-012\305\022\n\027PublicDelegatedPre" + + "fixes\022\352\001\n\016AggregatedList\022E.google.cloud." + + "compute.v1.AggregatedListPublicDelegated" + + "PrefixesRequest\032<.google.cloud.compute.v" + + "1.PublicDelegatedPrefixAggregatedList\"S\332" + + "A\007project\202\323\344\223\002C\022A/compute/v1/projects/{p" + + "roject}/aggregated/publicDelegatedPrefix" + + "es\022\237\002\n\010Announce\022>.google.cloud.compute.v" + + "1.AnnouncePublicDelegatedPrefixeRequest\032" + + "\".google.cloud.compute.v1.Operation\"\256\001\332A" + + "&project,region,public_delegated_prefix\212" + + "N\020RegionOperations\202\323\344\223\002l\"j/compute/v1/pr" + + "ojects/{project}/regions/{region}/public" + + "DelegatedPrefixes/{public_delegated_pref" + + "ix}/announce\022\222\002\n\006Delete\022<.google.cloud.c" + + "ompute.v1.DeletePublicDelegatedPrefixeRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\245\001\332A&project,region,public_delegated_p" + + "refix\212N\020RegionOperations\202\323\344\223\002c*a/compute" + + "/v1/projects/{project}/regions/{region}/" + + "publicDelegatedPrefixes/{public_delegate" + + "d_prefix}\022\205\002\n\003Get\0229.google.cloud.compute" + + ".v1.GetPublicDelegatedPrefixeRequest\032..g" + + "oogle.cloud.compute.v1.PublicDelegatedPr" + + "efix\"\222\001\332A&project,region,public_delegate" + + "d_prefix\202\323\344\223\002c\022a/compute/v1/projects/{pr" + + "oject}/regions/{region}/publicDelegatedP" + + "refixes/{public_delegated_prefix}\022\243\002\n\006In" + + "sert\022<.google.cloud.compute.v1.InsertPub" + + "licDelegatedPrefixeRequest\032\".google.clou" + + "d.compute.v1.Operation\"\266\001\332A/project,regi" + + "on,public_delegated_prefix_resource\212N\020Re" + + "gionOperations\202\323\344\223\002k\"G/compute/v1/projec" + + "ts/{project}/regions/{region}/publicDele" + + "gatedPrefixes: public_delegated_prefix_r" + + "esource\022\331\001\n\004List\022;.google.cloud.compute." + + "v1.ListPublicDelegatedPrefixesRequest\0322." + + "google.cloud.compute.v1.PublicDelegatedP" + + "refixList\"`\332A\016project,region\202\323\344\223\002I\022G/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/publicDelegatedPrefixes\022\324\002\n\005Patch\022;." + + "google.cloud.compute.v1.PatchPublicDeleg" + + "atedPrefixeRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\351\001\332AGproject,region,publi" + + "c_delegated_prefix,public_delegated_pref" + + "ix_resource\212N\020RegionOperations\202\323\344\223\002\205\0012a/" + "compute/v1/projects/{project}/regions/{r" + "egion}/publicDelegatedPrefixes/{public_d" - + "elegated_prefix}/withdraw\032\202\001\312A\026compute.g" + + "elegated_prefix}: public_delegated_prefi" + + "x_resource\022\237\002\n\010Withdraw\022>.google.cloud.c" + + "ompute.v1.WithdrawPublicDelegatedPrefixe" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\256\001\332A&project,region,public_delegated" + + "_prefix\212N\020RegionOperations\202\323\344\223\002l\"j/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/publicDelegatedPrefixes/{public_delega" + + "ted_prefix}/withdraw\032\202\001\312A\026compute.google" + + "apis.com\322AVhttps://www.googleapis.com/au" + + "th/compute,https://www.googleapis.com/au" + + "th/cloud-platform\212\324\333\322\017\n2026-09-012\321\016\n\021Re" + + "gionAutoscalers\022\345\001\n\006Delete\0226.google.clou" + + "d.compute.v1.DeleteRegionAutoscalerReque" + + "st\032\".google.cloud.compute.v1.Operation\"\177" + + "\332A\031project,region,autoscaler\212N\020RegionOpe" + + "rations\202\323\344\223\002J*H/compute/v1/projects/{pro" + + "ject}/regions/{region}/autoscalers/{auto" + + "scaler}\022\315\001\n\003Get\0223.google.cloud.compute.v" + + "1.GetRegionAutoscalerRequest\032#.google.cl" + + "oud.compute.v1.Autoscaler\"l\332A\031project,re" + + "gion,autoscaler\202\323\344\223\002J\022H/compute/v1/proje" + + "cts/{project}/regions/{region}/autoscale" + + "rs/{autoscaler}\022\367\001\n\006Insert\0226.google.clou" + + "d.compute.v1.InsertRegionAutoscalerReque" + + "st\032\".google.cloud.compute.v1.Operation\"\220" + + "\001\332A\"project,region,autoscaler_resource\212N" + + "\020RegionOperations\202\323\344\223\002R\";/compute/v1/pro" + + "jects/{project}/regions/{region}/autosca" + + "lers:\023autoscaler_resource\022\302\001\n\004List\0225.goo" + + "gle.cloud.compute.v1.ListRegionAutoscale" + + "rsRequest\032-.google.cloud.compute.v1.Regi" + + "onAutoscalerList\"T\332A\016project,region\202\323\344\223\002" + + "=\022;/compute/v1/projects/{project}/region" + + "s/{region}/autoscalers\022\365\001\n\005Patch\0225.googl" + + "e.cloud.compute.v1.PatchRegionAutoscaler" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\220\001\332A\"project,region,autoscaler_resou" + + "rce\212N\020RegionOperations\202\323\344\223\002R2;/compute/v" + + "1/projects/{project}/regions/{region}/au" + + "toscalers:\023autoscaler_resource\022\315\002\n\022TestI" + + "amPermissions\022B.google.cloud.compute.v1." + + "TestIamPermissionsRegionAutoscalerReques" + + "t\0320.google.cloud.compute.v1.TestPermissi" + + "onsResponse\"\300\001\332A9project,region,resource" + + ",test_permissions_request_resource\202\323\344\223\002~" + + "\"Y/compute/v1/projects/{project}/regions" + + "/{region}/autoscalers/{resource}/testIam" + + "Permissions:!test_permissions_request_re" + + "source\022\367\001\n\006Update\0226.google.cloud.compute" + + ".v1.UpdateRegionAutoscalerRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\220\001\332A\"proje" + + "ct,region,autoscaler_resource\212N\020RegionOp" + + "erations\202\323\344\223\002R\032;/compute/v1/projects/{pr", + "oject}/regions/{region}/autoscalers:\023aut" + + "oscaler_resource\032\202\001\312A\026compute.googleapis" + + ".com\322AVhttps://www.googleapis.com/auth/c" + + "ompute,https://www.googleapis.com/auth/c" + + "loud-platform\212\324\333\322\017\n2026-09-012\307\023\n\024Region" + + "BackendBuckets\022\364\001\n\006Delete\0229.google.cloud" + + ".compute.v1.DeleteRegionBackendBucketReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\212\001\332A\035project,region,backend_bucket\212N\020Re" + + "gionOperations\202\323\344\223\002Q*O/compute/v1/projec" + + "ts/{project}/regions/{region}/backendBuc" + + "kets/{backend_bucket}\022\336\001\n\003Get\0226.google.c" + + "loud.compute.v1.GetRegionBackendBucketRe" + + "quest\032&.google.cloud.compute.v1.BackendB" + + "ucket\"w\332A\035project,region,backend_bucket\202" + + "\323\344\223\002Q\022O/compute/v1/projects/{project}/re" + + "gions/{region}/backendBuckets/{backend_b" + + "ucket}\022\352\001\n\014GetIamPolicy\022?.google.cloud.c" + + "ompute.v1.GetIamPolicyRegionBackendBucke" + + "tRequest\032\037.google.cloud.compute.v1.Polic" + + "y\"x\332A\027project,region,resource\202\323\344\223\002X\022V/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/backendBuckets/{resource}/getIamPol" + + "icy\022\205\002\n\006Insert\0229.google.cloud.compute.v1" + + ".InsertRegionBackendBucketRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\233\001\332A&proje" + + "ct,region,backend_bucket_resource\212N\020Regi" + + "onOperations\202\323\344\223\002Y\">/compute/v1/projects" + + "/{project}/regions/{region}/backendBucke" + + "ts:\027backend_bucket_resource\022\305\001\n\004List\0228.g" + + "oogle.cloud.compute.v1.ListRegionBackend" + + "BucketsRequest\032*.google.cloud.compute.v1" + + ".BackendBucketList\"W\332A\016project,region\202\323\344" + + "\223\002@\022>/compute/v1/projects/{project}/regi" + + "ons/{region}/backendBuckets\022\342\001\n\nListUsab" + + "le\022>.google.cloud.compute.v1.ListUsableR" + + "egionBackendBucketsRequest\0320.google.clou" + + "d.compute.v1.BackendBucketListUsable\"b\332A" + + "\016project,region\202\323\344\223\002K\022I/compute/v1/proje" + + "cts/{project}/regions/{region}/backendBu" + + "ckets/listUsable\022\243\002\n\005Patch\0228.google.clou" + + "d.compute.v1.PatchRegionBackendBucketReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\273\001\332A5project,region,backend_bucket,back" + + "end_bucket_resource\212N\020RegionOperations\202\323" + + "\344\223\002j2O/compute/v1/projects/{project}/reg" + + "ions/{region}/backendBuckets/{backend_bu" + + "cket}:\027backend_bucket_resource\022\262\002\n\014SetIa" + + "mPolicy\022?.google.cloud.compute.v1.SetIam" + + "PolicyRegionBackendBucketRequest\032\037.googl" + + "e.cloud.compute.v1.Policy\"\277\001\332A:project,r" + + "egion,resource,region_set_policy_request" + + "_resource\202\323\344\223\002|\"V/compute/v1/projects/{p" + + "roject}/regions/{region}/backendBuckets/" + + "{resource}/setIamPolicy:\"region_set_poli" + + "cy_request_resource\022\324\002\n\022TestIamPermissio" + + "ns\022E.google.cloud.compute.v1.TestIamPerm" + + "issionsRegionBackendBucketRequest\0320.goog" + + "le.cloud.compute.v1.TestPermissionsRespo" + + "nse\"\304\001\332A9project,region,resource,test_pe" + + "rmissions_request_resource\202\323\344\223\002\201\001\"\\/comp" + + "ute/v1/projects/{project}/regions/{regio" + + "n}/backendBuckets/{resource}/testIamPerm" + + "issions:!test_permissions_request_resour" + + "ce\032\202\001\312A\026compute.googleapis.com\322AVhttps:/" + + "/www.googleapis.com/auth/compute,https:/" + + "/www.googleapis.com/auth/cloud-platform\212" + + "\324\333\322\017\n2026-09-012\316\033\n\025RegionBackendService" + + "s\022\370\001\n\006Delete\022:.google.cloud.compute.v1.D" + + "eleteRegionBackendServiceRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\215\001\332A\036projec" + + "t,region,backend_service\212N\020RegionOperati" + + "ons\202\323\344\223\002S*Q/compute/v1/projects/{project" + + "}/regions/{region}/backendServices/{back" + + "end_service}\022\343\001\n\003Get\0227.google.cloud.comp" + + "ute.v1.GetRegionBackendServiceRequest\032\'." + + "google.cloud.compute.v1.BackendService\"z" + + "\332A\036project,region,backend_service\202\323\344\223\002S\022" + + "Q/compute/v1/projects/{project}/regions/" + + "{region}/backendServices/{backend_servic" + + "e}\022\313\002\n\tGetHealth\022=.google.cloud.compute." + + "v1.GetHealthRegionBackendServiceRequest\032" + + "2.google.cloud.compute.v1.BackendService" + + "GroupHealth\"\312\001\332A@project,region,backend_" + + "service,resource_group_reference_resourc" + + "e\202\323\344\223\002\200\001\"[/compute/v1/projects/{project}" + + "/regions/{region}/backendServices/{backe" + + "nd_service}/getHealth:!resource_group_re" + + "ference_resource\022\354\001\n\014GetIamPolicy\022@.goog" + + "le.cloud.compute.v1.GetIamPolicyRegionBa" + + "ckendServiceRequest\032\037.google.cloud.compu" + + "te.v1.Policy\"y\332A\027project,region,resource" + + "\202\323\344\223\002Y\022W/compute/v1/projects/{project}/r" + + "egions/{region}/backendServices/{resourc" + + "e}/getIamPolicy\022\211\002\n\006Insert\022:.google.clou" + + "d.compute.v1.InsertRegionBackendServiceR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\236\001\332A\'project,region,backend_service_r" + + "esource\212N\020RegionOperations\202\323\344\223\002[\"?/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/backendServices:\030backend_service_resou" + + "rce\022\310\001\n\004List\0229.google.cloud.compute.v1.L" + + "istRegionBackendServicesRequest\032+.google" + + ".cloud.compute.v1.BackendServiceList\"X\332A" + + "\016project,region\202\323\344\223\002A\022?/compute/v1/proje" + + "cts/{project}/regions/{region}/backendSe" + + "rvices\022\345\001\n\nListUsable\022?.google.cloud.com" + + "pute.v1.ListUsableRegionBackendServicesR" + + "equest\0321.google.cloud.compute.v1.Backend" + + "ServiceListUsable\"c\332A\016project,region\202\323\344\223" + + "\002L\022J/compute/v1/projects/{project}/regio" + + "ns/{region}/backendServices/listUsable\022\251" + + "\002\n\005Patch\0229.google.cloud.compute.v1.Patch" + + "RegionBackendServiceRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\300\001\332A7project,reg" + + "ion,backend_service,backend_service_reso" + + "urce\212N\020RegionOperations\202\323\344\223\002m2Q/compute/" + + "v1/projects/{project}/regions/{region}/b" + + "ackendServices/{backend_service}:\030backen" + + "d_service_resource\022\264\002\n\014SetIamPolicy\022@.go" + + "ogle.cloud.compute.v1.SetIamPolicyRegion" + + "BackendServiceRequest\032\037.google.cloud.com" + + "pute.v1.Policy\"\300\001\332A:project,region,resou" + + "rce,region_set_policy_request_resource\202\323" + + "\344\223\002}\"W/compute/v1/projects/{project}/reg" + + "ions/{region}/backendServices/{resource}" + + "/setIamPolicy:\"region_set_policy_request" + + "_resource\022\350\002\n\021SetSecurityPolicy\022E.google" + + ".cloud.compute.v1.SetSecurityPolicyRegio" + + "nBackendServiceRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\347\001\332AAproject,region,b" + + "ackend_service,security_policy_reference" + + "_resource\212N\020RegionOperations\202\323\344\223\002\211\001\"c/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/backendServices/{backend_service}/s" + + "etSecurityPolicy:\"security_policy_refere" + + "nce_resource\022\326\002\n\022TestIamPermissions\022F.go" + + "ogle.cloud.compute.v1.TestIamPermissions" + + "RegionBackendServiceRequest\0320.google.clo" + + "ud.compute.v1.TestPermissionsResponse\"\305\001" + + "\332A9project,region,resource,test_permissi" + + "ons_request_resource\202\323\344\223\002\202\001\"]/compute/v1" + + "/projects/{project}/regions/{region}/bac" + + "kendServices/{resource}/testIamPermissio" + + "ns:!test_permissions_request_resource\022\253\002" + + "\n\006Update\022:.google.cloud.compute.v1.Updat" + + "eRegionBackendServiceRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\300\001\332A7project,re" + + "gion,backend_service,backend_service_res" + + "ource\212N\020RegionOperations\202\323\344\223\002m\032Q/compute" + + "/v1/projects/{project}/regions/{region}/" + + "backendServices/{backend_service}:\030backe" + + "nd_service_resource\032\202\001\312A\026compute.googlea" + + "pis.com\322AVhttps://www.googleapis.com/aut" + + "h/compute,https://www.googleapis.com/aut" + + "h/cloud-platform\212\324\333\322\017\n2026-09-012\203\n\n\021Reg" + + "ionCommitments\022\315\001\n\016AggregatedList\022?.goog" + + "le.cloud.compute.v1.AggregatedListRegion" + + "CommitmentsRequest\0321.google.cloud.comput" + + "e.v1.CommitmentAggregatedList\"G\332A\007projec" + + "t\202\323\344\223\0027\0225/compute/v1/projects/{project}/" + + "aggregated/commitments\022\315\001\n\003Get\0223.google." + + "cloud.compute.v1.GetRegionCommitmentRequ" + + "est\032#.google.cloud.compute.v1.Commitment" + + "\"l\332A\031project,region,commitment\202\323\344\223\002J\022H/c" + + "ompute/v1/projects/{project}/regions/{re" + + "gion}/commitments/{commitment}\022\367\001\n\006Inser" + + "t\0226.google.cloud.compute.v1.InsertRegion" + + "CommitmentRequest\032\".google.cloud.compute" + + ".v1.Operation\"\220\001\332A\"project,region,commit" + + "ment_resource\212N\020RegionOperations\202\323\344\223\002R\";" + + "/compute/v1/projects/{project}/regions/{" + + "region}/commitments:\023commitment_resource" + + "\022\274\001\n\004List\0225.google.cloud.compute.v1.List" + + "RegionCommitmentsRequest\032\'.google.cloud." + + "compute.v1.CommitmentList\"T\332A\016project,re" + + "gion\202\323\344\223\002=\022;/compute/v1/projects/{projec" + + "t}/regions/{region}/commitments\022\217\002\n\006Upda" + + "te\0226.google.cloud.compute.v1.UpdateRegio" + + "nCommitmentRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\250\001\332A-project,region,commi" + + "tment,commitment_resource\212N\020RegionOperat" + + "ions\202\323\344\223\002_2H/compute/v1/projects/{projec" + + "t}/regions/{region}/commitments/{commitm" + + "ent}:\023commitment_resource\032\202\001\312A\026compute.g" + "oogleapis.com\322AVhttps://www.googleapis.c" + "om/auth/compute,https://www.googleapis.c" - + "om/auth/cloud-platform\212\324\333\322\017\n2026-09-012\321" - + "\016\n\021RegionAutoscalers\022\345\001\n\006Delete\0226.google" - + ".cloud.compute.v1.DeleteRegionAutoscaler" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\177\332A\031project,region,autoscaler\212N\020Regi" - + "onOperations\202\323\344\223\002J*H/compute/v1/projects" - + "/{project}/regions/{region}/autoscalers/" - + "{autoscaler}\022\315\001\n\003Get\0223.google.cloud.comp" - + "ute.v1.GetRegionAutoscalerRequest\032#.goog" - + "le.cloud.compute.v1.Autoscaler\"l\332A\031proje" - + "ct,region,autoscaler\202\323\344\223\002J\022H/compute/v1/" - + "projects/{project}/regions/{region}/auto" - + "scalers/{autoscaler}\022\367\001\n\006Insert\0226.google" - + ".cloud.compute.v1.InsertRegionAutoscaler" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\220\001\332A\"project,region,autoscaler_resou" - + "rce\212N\020RegionOperations\202\323\344\223\002R\";/compute/v" - + "1/projects/{project}/regions/{region}/au" - + "toscalers:\023autoscaler_resource\022\302\001\n\004List\022" - + "5.google.cloud.compute.v1.ListRegionAuto" - + "scalersRequest\032-.google.cloud.compute.v1" - + ".RegionAutoscalerList\"T\332A\016project,region" - + "\202\323\344\223\002=\022;/compute/v1/projects/{project}/r" - + "egions/{region}/autoscalers\022\365\001\n\005Patch\0225." - + "google.cloud.compute.v1.PatchRegionAutos" - + "calerRequest\032\".google.cloud.compute.v1.O" - + "peration\"\220\001\332A\"project,region,autoscaler_" - + "resource\212N\020RegionOperations\202\323\344\223\002R2;/comp" + + "om/auth/cloud-platform\212\324\333\322\017\n2026-09-012\214" + + "\023\n\033RegionCompositeHealthChecks\022\353\001\n\016Aggre" + + "gatedList\022I.google.cloud.compute.v1.Aggr" + + "egatedListRegionCompositeHealthChecksReq" + + "uest\032;.google.cloud.compute.v1.Composite" + + "HealthCheckAggregatedList\"Q\332A\007project\202\323\344" + + "\223\002A\022?/compute/v1/projects/{project}/aggr" + + "egated/compositeHealthChecks\022\222\002\n\006Delete\022" + + "@.google.cloud.compute.v1.DeleteRegionCo" + + "mpositeHealthCheckRequest\032\".google.cloud" + + ".compute.v1.Operation\"\241\001\332A%project,regio" + + "n,composite_health_check\212N\020RegionOperati" + + "ons\202\323\344\223\002`*^/compute/v1/projects/{project" + + "}/regions/{region}/compositeHealthChecks" + + "/{composite_health_check}\022\204\002\n\003Get\022=.goog" + + "le.cloud.compute.v1.GetRegionCompositeHe" + + "althCheckRequest\032-.google.cloud.compute." + + "v1.CompositeHealthCheck\"\216\001\332A%project,reg" + + "ion,composite_health_check\202\323\344\223\002`\022^/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/compositeHealthChecks/{composite_healt" + + "h_check}\022\240\002\n\tGetHealth\022C.google.cloud.co" + + "mpute.v1.GetHealthRegionCompositeHealthC" + + "heckRequest\0323.google.cloud.compute.v1.Co" + + "mpositeHealthCheckHealth\"\230\001\332A%project,re" + + "gion,composite_health_check\202\323\344\223\002j\022h/comp" + "ute/v1/projects/{project}/regions/{regio" - + "n}/autoscalers:\023autoscaler_resource\022\315\002\n\022" - + "TestIamPermissions\022B.google.cloud.comput" - + "e.v1.TestIamPermissionsRegionAutoscalerR" - + "equest\0320.google.cloud.compute.v1.TestPer" - + "missionsResponse\"\300\001\332A9project,region,res" - + "ource,test_permissions_request_resource\202" - + "\323\344\223\002~\"Y/compute/v1/projects/{project}/re" - + "gions/{region}/autoscalers/{resource}/te" - + "stIamPermissions:!test_permissions_reque" - + "st_resource\022\367\001\n\006Update\0226.google.cloud.co" - + "mpute.v1.UpdateRegionAutoscalerRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\220\001\332A\"" - + "project,region,autoscaler_resource\212N\020Reg" - + "ionOperations\202\323\344\223\002R\032;/compute/v1/project" - + "s/{project}/regions/{region}/autoscalers", - ":\023autoscaler_resource\032\202\001\312A\026compute.googl" - + "eapis.com\322AVhttps://www.googleapis.com/a" - + "uth/compute,https://www.googleapis.com/a" - + "uth/cloud-platform\212\324\333\322\017\n2026-09-012\307\023\n\024R" - + "egionBackendBuckets\022\364\001\n\006Delete\0229.google." - + "cloud.compute.v1.DeleteRegionBackendBuck" - + "etRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\212\001\332A\035project,region,backend_bucket" - + "\212N\020RegionOperations\202\323\344\223\002Q*O/compute/v1/p" - + "rojects/{project}/regions/{region}/backe" - + "ndBuckets/{backend_bucket}\022\336\001\n\003Get\0226.goo" - + "gle.cloud.compute.v1.GetRegionBackendBuc" - + "ketRequest\032&.google.cloud.compute.v1.Bac" - + "kendBucket\"w\332A\035project,region,backend_bu" - + "cket\202\323\344\223\002Q\022O/compute/v1/projects/{projec" - + "t}/regions/{region}/backendBuckets/{back" - + "end_bucket}\022\352\001\n\014GetIamPolicy\022?.google.cl" - + "oud.compute.v1.GetIamPolicyRegionBackend" - + "BucketRequest\032\037.google.cloud.compute.v1." - + "Policy\"x\332A\027project,region,resource\202\323\344\223\002X" - + "\022V/compute/v1/projects/{project}/regions" - + "/{region}/backendBuckets/{resource}/getI" - + "amPolicy\022\205\002\n\006Insert\0229.google.cloud.compu" - + "te.v1.InsertRegionBackendBucketRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\233\001\332A&" - + "project,region,backend_bucket_resource\212N" - + "\020RegionOperations\202\323\344\223\002Y\">/compute/v1/pro" - + "jects/{project}/regions/{region}/backend" - + "Buckets:\027backend_bucket_resource\022\305\001\n\004Lis" - + "t\0228.google.cloud.compute.v1.ListRegionBa" - + "ckendBucketsRequest\032*.google.cloud.compu" - + "te.v1.BackendBucketList\"W\332A\016project,regi" - + "on\202\323\344\223\002@\022>/compute/v1/projects/{project}" - + "/regions/{region}/backendBuckets\022\342\001\n\nLis" - + "tUsable\022>.google.cloud.compute.v1.ListUs" - + "ableRegionBackendBucketsRequest\0320.google" - + ".cloud.compute.v1.BackendBucketListUsabl" - + "e\"b\332A\016project,region\202\323\344\223\002K\022I/compute/v1/" - + "projects/{project}/regions/{region}/back" - + "endBuckets/listUsable\022\243\002\n\005Patch\0228.google" - + ".cloud.compute.v1.PatchRegionBackendBuck" - + "etRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\273\001\332A5project,region,backend_bucket" - + ",backend_bucket_resource\212N\020RegionOperati" - + "ons\202\323\344\223\002j2O/compute/v1/projects/{project" - + "}/regions/{region}/backendBuckets/{backe" - + "nd_bucket}:\027backend_bucket_resource\022\262\002\n\014" - + "SetIamPolicy\022?.google.cloud.compute.v1.S" - + "etIamPolicyRegionBackendBucketRequest\032\037." - + "google.cloud.compute.v1.Policy\"\277\001\332A:proj" - + "ect,region,resource,region_set_policy_re" - + "quest_resource\202\323\344\223\002|\"V/compute/v1/projec" - + "ts/{project}/regions/{region}/backendBuc" - + "kets/{resource}/setIamPolicy:\"region_set" - + "_policy_request_resource\022\324\002\n\022TestIamPerm" - + "issions\022E.google.cloud.compute.v1.TestIa" - + "mPermissionsRegionBackendBucketRequest\0320" - + ".google.cloud.compute.v1.TestPermissions" - + "Response\"\304\001\332A9project,region,resource,te" - + "st_permissions_request_resource\202\323\344\223\002\201\001\"\\" - + "/compute/v1/projects/{project}/regions/{" - + "region}/backendBuckets/{resource}/testIa" - + "mPermissions:!test_permissions_request_r" - + "esource\032\202\001\312A\026compute.googleapis.com\322AVht" - + "tps://www.googleapis.com/auth/compute,ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "form\212\324\333\322\017\n2026-09-012\316\033\n\025RegionBackendSe" - + "rvices\022\370\001\n\006Delete\022:.google.cloud.compute" - + ".v1.DeleteRegionBackendServiceRequest\032\"." - + "google.cloud.compute.v1.Operation\"\215\001\332A\036p" - + "roject,region,backend_service\212N\020RegionOp" - + "erations\202\323\344\223\002S*Q/compute/v1/projects/{pr" - + "oject}/regions/{region}/backendServices/" - + "{backend_service}\022\343\001\n\003Get\0227.google.cloud" - + ".compute.v1.GetRegionBackendServiceReque" - + "st\032\'.google.cloud.compute.v1.BackendServ" - + "ice\"z\332A\036project,region,backend_service\202\323" - + "\344\223\002S\022Q/compute/v1/projects/{project}/reg" - + "ions/{region}/backendServices/{backend_s" - + "ervice}\022\313\002\n\tGetHealth\022=.google.cloud.com" - + "pute.v1.GetHealthRegionBackendServiceReq" - + "uest\0322.google.cloud.compute.v1.BackendSe" - + "rviceGroupHealth\"\312\001\332A@project,region,bac" - + "kend_service,resource_group_reference_re" - + "source\202\323\344\223\002\200\001\"[/compute/v1/projects/{pro" - + "ject}/regions/{region}/backendServices/{" - + "backend_service}/getHealth:!resource_gro" - + "up_reference_resource\022\354\001\n\014GetIamPolicy\022@" - + ".google.cloud.compute.v1.GetIamPolicyReg" - + "ionBackendServiceRequest\032\037.google.cloud." - + "compute.v1.Policy\"y\332A\027project,region,res" - + "ource\202\323\344\223\002Y\022W/compute/v1/projects/{proje" - + "ct}/regions/{region}/backendServices/{re" - + "source}/getIamPolicy\022\211\002\n\006Insert\022:.google" - + ".cloud.compute.v1.InsertRegionBackendSer" - + "viceRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\236\001\332A\'project,region,backend_serv" - + "ice_resource\212N\020RegionOperations\202\323\344\223\002[\"?/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/backendServices:\030backend_service_" - + "resource\022\310\001\n\004List\0229.google.cloud.compute" - + ".v1.ListRegionBackendServicesRequest\032+.g" - + "oogle.cloud.compute.v1.BackendServiceLis" - + "t\"X\332A\016project,region\202\323\344\223\002A\022?/compute/v1/" - + "projects/{project}/regions/{region}/back" - + "endServices\022\345\001\n\nListUsable\022?.google.clou" - + "d.compute.v1.ListUsableRegionBackendServ" - + "icesRequest\0321.google.cloud.compute.v1.Ba" - + "ckendServiceListUsable\"c\332A\016project,regio" - + "n\202\323\344\223\002L\022J/compute/v1/projects/{project}/" - + "regions/{region}/backendServices/listUsa" - + "ble\022\251\002\n\005Patch\0229.google.cloud.compute.v1." - + "PatchRegionBackendServiceRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\300\001\332A7projec" - + "t,region,backend_service,backend_service" - + "_resource\212N\020RegionOperations\202\323\344\223\002m2Q/com" + + "n}/compositeHealthChecks/{composite_heal" + + "th_check}/getHealth\022\243\002\n\006Insert\022@.google." + + "cloud.compute.v1.InsertRegionCompositeHe" + + "althCheckRequest\032\".google.cloud.compute." + + "v1.Operation\"\262\001\332A.project,region,composi" + + "te_health_check_resource\212N\020RegionOperati" + + "ons\202\323\344\223\002h\"E/compute/v1/projects/{project" + + "}/regions/{region}/compositeHealthChecks" + + ":\037composite_health_check_resource\022\332\001\n\004Li" + + "st\022?.google.cloud.compute.v1.ListRegionC" + + "ompositeHealthChecksRequest\0321.google.clo" + + "ud.compute.v1.CompositeHealthCheckList\"^" + + "\332A\016project,region\202\323\344\223\002G\022E/compute/v1/pro" + + "jects/{project}/regions/{region}/composi" + + "teHealthChecks\022\322\002\n\005Patch\022?.google.cloud." + + "compute.v1.PatchRegionCompositeHealthChe" + + "ckRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\343\001\332AEproject,region,composite_heal" + + "th_check,composite_health_check_resource" + + "\212N\020RegionOperations\202\323\344\223\002\201\0012^/compute/v1/" + + "projects/{project}/regions/{region}/comp" + + "ositeHealthChecks/{composite_health_chec" + + "k}:\037composite_health_check_resource\022\342\002\n\022" + + "TestIamPermissions\022L.google.cloud.comput" + + "e.v1.TestIamPermissionsRegionCompositeHe" + + "althCheckRequest\0320.google.cloud.compute." + + "v1.TestPermissionsResponse\"\313\001\332A9project," + + "region,resource,test_permissions_request" + + "_resource\202\323\344\223\002\210\001\"c/compute/v1/projects/{" + + "project}/regions/{region}/compositeHealt" + + "hChecks/{resource}/testIamPermissions:!t" + + "est_permissions_request_resource\032\202\001\312A\026co" + + "mpute.googleapis.com\322AVhttps://www.googl" + + "eapis.com/auth/compute,https://www.googl" + + "eapis.com/auth/cloud-platform\212\324\333\322\017\n2026-" + + "09-012\317\004\n\017RegionDiskTypes\022\305\001\n\003Get\0221.goog" + + "le.cloud.compute.v1.GetRegionDiskTypeReq" + + "uest\032!.google.cloud.compute.v1.DiskType\"" + + "h\332A\030project,region,disk_type\202\323\344\223\002G\022E/com" + "pute/v1/projects/{project}/regions/{regi" - + "on}/backendServices/{backend_service}:\030b" - + "ackend_service_resource\022\264\002\n\014SetIamPolicy" - + "\022@.google.cloud.compute.v1.SetIamPolicyR" - + "egionBackendServiceRequest\032\037.google.clou" - + "d.compute.v1.Policy\"\300\001\332A:project,region," - + "resource,region_set_policy_request_resou" - + "rce\202\323\344\223\002}\"W/compute/v1/projects/{project" - + "}/regions/{region}/backendServices/{reso" - + "urce}/setIamPolicy:\"region_set_policy_re" - + "quest_resource\022\350\002\n\021SetSecurityPolicy\022E.g" - + "oogle.cloud.compute.v1.SetSecurityPolicy" - + "RegionBackendServiceRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\347\001\332AAproject,reg" - + "ion,backend_service,security_policy_refe" - + "rence_resource\212N\020RegionOperations\202\323\344\223\002\211\001" - + "\"c/compute/v1/projects/{project}/regions" - + "/{region}/backendServices/{backend_servi" - + "ce}/setSecurityPolicy:\"security_policy_r" - + "eference_resource\022\326\002\n\022TestIamPermissions" - + "\022F.google.cloud.compute.v1.TestIamPermis" - + "sionsRegionBackendServiceRequest\0320.googl" - + "e.cloud.compute.v1.TestPermissionsRespon" - + "se\"\305\001\332A9project,region,resource,test_per" - + "missions_request_resource\202\323\344\223\002\202\001\"]/compu" - + "te/v1/projects/{project}/regions/{region" - + "}/backendServices/{resource}/testIamPerm" - + "issions:!test_permissions_request_resour" - + "ce\022\253\002\n\006Update\022:.google.cloud.compute.v1." - + "UpdateRegionBackendServiceRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\300\001\332A7proje" - + "ct,region,backend_service,backend_servic" - + "e_resource\212N\020RegionOperations\202\323\344\223\002m\032Q/co" - + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/backendServices/{backend_service}:\030" - + "backend_service_resource\032\202\001\312A\026compute.go" - + "ogleapis.com\322AVhttps://www.googleapis.co" - + "m/auth/compute,https://www.googleapis.co" - + "m/auth/cloud-platform\212\324\333\322\017\n2026-09-012\203\n" - + "\n\021RegionCommitments\022\315\001\n\016AggregatedList\022?" - + ".google.cloud.compute.v1.AggregatedListR" - + "egionCommitmentsRequest\0321.google.cloud.c" - + "ompute.v1.CommitmentAggregatedList\"G\332A\007p" - + "roject\202\323\344\223\0027\0225/compute/v1/projects/{proj" - + "ect}/aggregated/commitments\022\315\001\n\003Get\0223.go" - + "ogle.cloud.compute.v1.GetRegionCommitmen" - + "tRequest\032#.google.cloud.compute.v1.Commi" - + "tment\"l\332A\031project,region,commitment\202\323\344\223\002" - + "J\022H/compute/v1/projects/{project}/region" - + "s/{region}/commitments/{commitment}\022\367\001\n\006" - + "Insert\0226.google.cloud.compute.v1.InsertR" - + "egionCommitmentRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\220\001\332A\"project,region,c" - + "ommitment_resource\212N\020RegionOperations\202\323\344" - + "\223\002R\";/compute/v1/projects/{project}/regi" - + "ons/{region}/commitments:\023commitment_res" - + "ource\022\274\001\n\004List\0225.google.cloud.compute.v1" - + ".ListRegionCommitmentsRequest\032\'.google.c" - + "loud.compute.v1.CommitmentList\"T\332A\016proje" - + "ct,region\202\323\344\223\002=\022;/compute/v1/projects/{p" - + "roject}/regions/{region}/commitments\022\217\002\n" - + "\006Update\0226.google.cloud.compute.v1.Update" - + "RegionCommitmentRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\250\001\332A-project,region," - + "commitment,commitment_resource\212N\020RegionO" - + "perations\202\323\344\223\002_2H/compute/v1/projects/{p" - + "roject}/regions/{region}/commitments/{co" - + "mmitment}:\023commitment_resource\032\202\001\312A\026comp" - + "ute.googleapis.com\322AVhttps://www.googlea" - + "pis.com/auth/compute,https://www.googlea" - + "pis.com/auth/cloud-platform\212\324\333\322\017\n2026-09" - + "-012\214\023\n\033RegionCompositeHealthChecks\022\353\001\n\016" - + "AggregatedList\022I.google.cloud.compute.v1" - + ".AggregatedListRegionCompositeHealthChec" - + "ksRequest\032;.google.cloud.compute.v1.Comp" - + "ositeHealthCheckAggregatedList\"Q\332A\007proje" - + "ct\202\323\344\223\002A\022?/compute/v1/projects/{project}" - + "/aggregated/compositeHealthChecks\022\222\002\n\006De" - + "lete\022@.google.cloud.compute.v1.DeleteReg" - + "ionCompositeHealthCheckRequest\032\".google." - + "cloud.compute.v1.Operation\"\241\001\332A%project," - + "region,composite_health_check\212N\020RegionOp" - + "erations\202\323\344\223\002`*^/compute/v1/projects/{pr" - + "oject}/regions/{region}/compositeHealthC" - + "hecks/{composite_health_check}\022\204\002\n\003Get\022=" - + ".google.cloud.compute.v1.GetRegionCompos" - + "iteHealthCheckRequest\032-.google.cloud.com" - + "pute.v1.CompositeHealthCheck\"\216\001\332A%projec" - + "t,region,composite_health_check\202\323\344\223\002`\022^/" + + "on}/diskTypes/{disk_type}\022\274\001\n\004List\0223.goo" + + "gle.cloud.compute.v1.ListRegionDiskTypes" + + "Request\032+.google.cloud.compute.v1.Region" + + "DiskTypeList\"R\332A\016project,region\202\323\344\223\002;\0229/" + "compute/v1/projects/{project}/regions/{r" - + "egion}/compositeHealthChecks/{composite_" - + "health_check}\022\240\002\n\tGetHealth\022C.google.clo" - + "ud.compute.v1.GetHealthRegionCompositeHe" - + "althCheckRequest\0323.google.cloud.compute." - + "v1.CompositeHealthCheckHealth\"\230\001\332A%proje" - + "ct,region,composite_health_check\202\323\344\223\002j\022h" - + "/compute/v1/projects/{project}/regions/{" - + "region}/compositeHealthChecks/{composite" - + "_health_check}/getHealth\022\243\002\n\006Insert\022@.go" - + "ogle.cloud.compute.v1.InsertRegionCompos" - + "iteHealthCheckRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\262\001\332A.project,region,co" - + "mposite_health_check_resource\212N\020RegionOp" - + "erations\202\323\344\223\002h\"E/compute/v1/projects/{pr" - + "oject}/regions/{region}/compositeHealthC" - + "hecks:\037composite_health_check_resource\022\332" - + "\001\n\004List\022?.google.cloud.compute.v1.ListRe" - + "gionCompositeHealthChecksRequest\0321.googl" - + "e.cloud.compute.v1.CompositeHealthCheckL" - + "ist\"^\332A\016project,region\202\323\344\223\002G\022E/compute/v" - + "1/projects/{project}/regions/{region}/co" - + "mpositeHealthChecks\022\322\002\n\005Patch\022?.google.c" - + "loud.compute.v1.PatchRegionCompositeHeal" - + "thCheckRequest\032\".google.cloud.compute.v1" - + ".Operation\"\343\001\332AEproject,region,composite" - + "_health_check,composite_health_check_res" - + "ource\212N\020RegionOperations\202\323\344\223\002\201\0012^/comput" - + "e/v1/projects/{project}/regions/{region}" - + "/compositeHealthChecks/{composite_health" - + "_check}:\037composite_health_check_resource" - + "\022\342\002\n\022TestIamPermissions\022L.google.cloud.c" - + "ompute.v1.TestIamPermissionsRegionCompos" - + "iteHealthCheckRequest\0320.google.cloud.com" - + "pute.v1.TestPermissionsResponse\"\313\001\332A9pro" - + "ject,region,resource,test_permissions_re" - + "quest_resource\202\323\344\223\002\210\001\"c/compute/v1/proje" - + "cts/{project}/regions/{region}/composite" - + "HealthChecks/{resource}/testIamPermissio" - + "ns:!test_permissions_request_resource\032\202\001" - + "\312A\026compute.googleapis.com\322AVhttps://www." - + "googleapis.com/auth/compute,https://www." - + "googleapis.com/auth/cloud-platform\212\324\333\322\017\n" - + "2026-09-012\317\004\n\017RegionDiskTypes\022\305\001\n\003Get\0221" - + ".google.cloud.compute.v1.GetRegionDiskTy" - + "peRequest\032!.google.cloud.compute.v1.Disk" - + "Type\"h\332A\030project,region,disk_type\202\323\344\223\002G\022" - + "E/compute/v1/projects/{project}/regions/" - + "{region}/diskTypes/{disk_type}\022\274\001\n\004List\022" - + "3.google.cloud.compute.v1.ListRegionDisk" - + "TypesRequest\032+.google.cloud.compute.v1.R" - + "egionDiskTypeList\"R\332A\016project,region\202\323\344\223" - + "\002;\0229/compute/v1/projects/{project}/regio" - + "ns/{region}/diskTypes\032\264\001\312A\026compute.googl" - + "eapis.com\322A\207\001https://www.googleapis.com/" - + "auth/compute.readonly,https://www.google" - + "apis.com/auth/compute,https://www.google" - + "apis.com/auth/cloud-platform\212\324\333\322\017\n2026-0" - + "9-012\343(\n\013RegionDisks\022\346\002\n\023AddResourcePoli" - + "cies\022=.google.cloud.compute.v1.AddResour" - + "cePoliciesRegionDiskRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\353\001\332AGproject,reg" - + "ion,disk,region_disks_add_resource_polic" - + "ies_request_resource\212N\020RegionOperations\202" - + "\323\344\223\002\207\001\"P/compute/v1/projects/{project}/r" - + "egions/{region}/disks/{disk}/addResource" - + "Policies:3region_disks_add_resource_poli" - + "cies_request_resource\022\234\002\n\nBulkInsert\0224.g" - + "oogle.cloud.compute.v1.BulkInsertRegionD" - + "iskRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\263\001\332A1project,region,bulk_insert_d" - + "isk_resource_resource\212N\020RegionOperations" - + "\202\323\344\223\002f\"@/compute/v1/projects/{project}/r" - + "egions/{region}/disks/bulkInsert:\"bulk_i" - + "nsert_disk_resource_resource\022\222\002\n\016CreateS" - + "napshot\0228.google.cloud.compute.v1.Create" - + "SnapshotRegionDiskRequest\032\".google.cloud" - + ".compute.v1.Operation\"\241\001\332A%project,regio" - + "n,disk,snapshot_resource\212N\020RegionOperati" - + "ons\202\323\344\223\002`\"K/compute/v1/projects/{project" - + "}/regions/{region}/disks/{disk}/createSn" - + "apshot:\021snapshot_resource\022\315\001\n\006Delete\0220.g" - + "oogle.cloud.compute.v1.DeleteRegionDiskR" + + "egion}/diskTypes\032\264\001\312A\026compute.googleapis" + + ".com\322A\207\001https://www.googleapis.com/auth/" + + "compute.readonly,https://www.googleapis." + + "com/auth/compute,https://www.googleapis." + + "com/auth/cloud-platform\212\324\333\322\017\n2026-09-012" + + "\343(\n\013RegionDisks\022\346\002\n\023AddResourcePolicies\022" + + "=.google.cloud.compute.v1.AddResourcePol" + + "iciesRegionDiskRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\353\001\332AGproject,region,d" + + "isk,region_disks_add_resource_policies_r" + + "equest_resource\212N\020RegionOperations\202\323\344\223\002\207" + + "\001\"P/compute/v1/projects/{project}/region" + + "s/{region}/disks/{disk}/addResourcePolic" + + "ies:3region_disks_add_resource_policies_" + + "request_resource\022\234\002\n\nBulkInsert\0224.google" + + ".cloud.compute.v1.BulkInsertRegionDiskRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\263\001\332A1project,region,bulk_insert_disk_r" + + "esource_resource\212N\020RegionOperations\202\323\344\223\002" + + "f\"@/compute/v1/projects/{project}/region" + + "s/{region}/disks/bulkInsert:\"bulk_insert" + + "_disk_resource_resource\022\222\002\n\016CreateSnapsh" + + "ot\0228.google.cloud.compute.v1.CreateSnaps" + + "hotRegionDiskRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\241\001\332A%project,region,dis" + + "k,snapshot_resource\212N\020RegionOperations\202\323" + + "\344\223\002`\"K/compute/v1/projects/{project}/reg" + + "ions/{region}/disks/{disk}/createSnapsho" + + "t:\021snapshot_resource\022\315\001\n\006Delete\0220.google" + + ".cloud.compute.v1.DeleteRegionDiskReques" + + "t\032\".google.cloud.compute.v1.Operation\"m\332" + + "A\023project,region,disk\212N\020RegionOperations" + + "\202\323\344\223\002>*\022*\022.google.cloud.compute.v1.StopAsyncRep" + + "licationRegionDiskRequest\032\".google.cloud" + + ".compute.v1.Operation\"\202\001\332A\023project,regio" + + "n,disk\212N\020RegionOperations\202\323\344\223\002S\"Q/comput" + "e/v1/projects/{project}/regions/{region}" - + "/disks/{resource}/setIamPolicy:\"region_s" - + "et_policy_request_resource\022\255\002\n\tSetLabels" - + "\0223.google.cloud.compute.v1.SetLabelsRegi" + + "/disks/{disk}/stopAsyncReplication\022\356\002\n\031S" + + "topGroupAsyncReplication\022C.google.cloud." + + "compute.v1.StopGroupAsyncReplicationRegi" + "onDiskRequest\032\".google.cloud.compute.v1." - + "Operation\"\306\001\332A:project,region,resource,r" - + "egion_set_labels_request_resource\212N\020Regi" - + "onOperations\202\323\344\223\002p\"J/compute/v1/projects" - + "/{project}/regions/{region}/disks/{resou" - + "rce}/setLabels:\"region_set_labels_reques" - + "t_resource\022\360\002\n\025StartAsyncReplication\022?.g" - + "oogle.cloud.compute.v1.StartAsyncReplica" - + "tionRegionDiskRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\361\001\332AIproject,region,di" - + "sk,region_disks_start_async_replication_" - + "request_resource\212N\020RegionOperations\202\323\344\223\002" - + "\213\001\"R/compute/v1/projects/{project}/regio" - + "ns/{region}/disks/{disk}/startAsyncRepli" - + "cation:5region_disks_start_async_replica" - + "tion_request_resource\022\377\001\n\024StopAsyncRepli" - + "cation\022>.google.cloud.compute.v1.StopAsy" - + "ncReplicationRegionDiskRequest\032\".google." - + "cloud.compute.v1.Operation\"\202\001\332A\023project," - + "region,disk\212N\020RegionOperations\202\323\344\223\002S\"Q/c" - + "ompute/v1/projects/{project}/regions/{re" - + "gion}/disks/{disk}/stopAsyncReplication\022" - + "\356\002\n\031StopGroupAsyncReplication\022C.google.c" - + "loud.compute.v1.StopGroupAsyncReplicatio" - + "nRegionDiskRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\347\001\332ACproject,region,disks" - + "_stop_group_async_replication_resource_r" - + "esource\212N\020RegionOperations\202\323\344\223\002\207\001\"O/comp" - + "ute/v1/projects/{project}/regions/{regio" - + "n}/disks/stopGroupAsyncReplication:4disk" - + "s_stop_group_async_replication_resource_" - + "resource\022\301\002\n\022TestIamPermissions\022<.google" - + ".cloud.compute.v1.TestIamPermissionsRegi" - + "onDiskRequest\0320.google.cloud.compute.v1." - + "TestPermissionsResponse\"\272\001\332A9project,reg" - + "ion,resource,test_permissions_request_re" - + "source\202\323\344\223\002x\"S/compute/v1/projects/{proj" - + "ect}/regions/{region}/disks/{resource}/t" - + "estIamPermissions:!test_permissions_requ" - + "est_resource\022\353\001\n\006Update\0220.google.cloud.c" - + "ompute.v1.UpdateRegionDiskRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\212\001\332A!proje" - + "ct,region,disk,disk_resource\212N\020RegionOpe" - + "rations\202\323\344\223\002M2.google.cloud.compute.v1.HealthAggrega" - + "tionPolicyAggregatedList\"U\332A\007project\202\323\344\223" - + "\002E\022C/compute/v1/projects/{project}/aggre", - "gated/healthAggregationPolicies\022\237\002\n\006Dele" - + "te\022C.google.cloud.compute.v1.DeleteRegio" - + "nHealthAggregationPolicyRequest\032\".google" - + ".cloud.compute.v1.Operation\"\253\001\332A(project" - + ",region,health_aggregation_policy\212N\020Regi" - + "onOperations\202\323\344\223\002g*e/compute/v1/projects" - + "/{project}/regions/{region}/healthAggreg" - + "ationPolicies/{health_aggregation_policy" - + "}\022\224\002\n\003Get\022@.google.cloud.compute.v1.GetR" - + "egionHealthAggregationPolicyRequest\0320.go" + + "Operation\"\347\001\332ACproject,region,disks_stop" + + "_group_async_replication_resource_resour" + + "ce\212N\020RegionOperations\202\323\344\223\002\207\001\"O/compute/v" + + "1/projects/{project}/regions/{region}/di" + + "sks/stopGroupAsyncReplication:4disks_sto" + + "p_group_async_replication_resource_resou" + + "rce\022\301\002\n\022TestIamPermissions\022<.google.clou" + + "d.compute.v1.TestIamPermissionsRegionDis" + + "kRequest\0320.google.cloud.compute.v1.TestP" + + "ermissionsResponse\"\272\001\332A9project,region,r" + + "esource,test_permissions_request_resourc" + + "e\202\323\344\223\002x\"S/compute/v1/projects/{project}/" + + "regions/{region}/disks/{resource}/testIa" + + "mPermissions:!test_permissions_request_r" + + "esource\022\353\001\n\006Update\0220.google.cloud.comput" + + "e.v1.UpdateRegionDiskRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\212\001\332A!project,re" + + "gion,disk,disk_resource\212N\020RegionOperatio" + + "ns\202\323\344\223\002M2.go" + "ogle.cloud.compute.v1.HealthAggregationP" - + "olicy\"\230\001\332A(project,region,health_aggrega" - + "tion_policy\202\323\344\223\002g\022e/compute/v1/projects/" - + "{project}/regions/{region}/healthAggrega" - + "tionPolicies/{health_aggregation_policy}" - + "\022\260\002\n\006Insert\022C.google.cloud.compute.v1.In" - + "sertRegionHealthAggregationPolicyRequest" - + "\032\".google.cloud.compute.v1.Operation\"\274\001\332" - + "A1project,region,health_aggregation_poli" - + "cy_resource\212N\020RegionOperations\202\323\344\223\002o\"I/c" - + "ompute/v1/projects/{project}/regions/{re" - + "gion}/healthAggregationPolicies:\"health_" - + "aggregation_policy_resource\022\345\001\n\004List\022C.g" - + "oogle.cloud.compute.v1.ListRegionHealthA" - + "ggregationPoliciesRequest\0324.google.cloud" - + ".compute.v1.HealthAggregationPolicyList\"" - + "b\332A\016project,region\202\323\344\223\002K\022I/compute/v1/pr" - + "ojects/{project}/regions/{region}/health" - + "AggregationPolicies\022\345\002\n\005Patch\022B.google.c" - + "loud.compute.v1.PatchRegionHealthAggrega" - + "tionPolicyRequest\032\".google.cloud.compute" - + ".v1.Operation\"\363\001\332AKproject,region,health" - + "_aggregation_policy,health_aggregation_p" - + "olicy_resource\212N\020RegionOperations\202\323\344\223\002\213\001" - + "2e/compute/v1/projects/{project}/regions" - + "/{region}/healthAggregationPolicies/{hea" - + "lth_aggregation_policy}:\"health_aggregat" - + "ion_policy_resource\022\351\002\n\022TestIamPermissio" - + "ns\022O.google.cloud.compute.v1.TestIamPerm" - + "issionsRegionHealthAggregationPolicyRequ" - + "est\0320.google.cloud.compute.v1.TestPermis" - + "sionsResponse\"\317\001\332A9project,region,resour" - + "ce,test_permissions_request_resource\202\323\344\223" - + "\002\214\001\"g/compute/v1/projects/{project}/regi" - + "ons/{region}/healthAggregationPolicies/{" - + "resource}/testIamPermissions:!test_permi" - + "ssions_request_resource\032\202\001\312A\026compute.goo" - + "gleapis.com\322AVhttps://www.googleapis.com" - + "/auth/compute,https://www.googleapis.com" - + "/auth/cloud-platform\212\324\333\322\017\n2026-09-012\261\020\n" - + "\031RegionHealthCheckServices\022\345\001\n\016Aggregate" - + "dList\022G.google.cloud.compute.v1.Aggregat" - + "edListRegionHealthCheckServicesRequest\0329" - + ".google.cloud.compute.v1.HealthCheckServ" - + "iceAggregatedList\"O\332A\007project\202\323\344\223\002?\022=/co" - + "mpute/v1/projects/{project}/aggregated/h" - + "ealthCheckServices\022\212\002\n\006Delete\022>.google.c" - + "loud.compute.v1.DeleteRegionHealthCheckS" - + "erviceRequest\032\".google.cloud.compute.v1." - + "Operation\"\233\001\332A#project,region,health_che" - + "ck_service\212N\020RegionOperations\202\323\344\223\002\\*Z/co" + + "olicyAggregatedList\"U\332A\007project\202\323\344\223\002E\022C/", + "compute/v1/projects/{project}/aggregated" + + "/healthAggregationPolicies\022\237\002\n\006Delete\022C." + + "google.cloud.compute.v1.DeleteRegionHeal" + + "thAggregationPolicyRequest\032\".google.clou" + + "d.compute.v1.Operation\"\253\001\332A(project,regi" + + "on,health_aggregation_policy\212N\020RegionOpe" + + "rations\202\323\344\223\002g*e/compute/v1/projects/{pro" + + "ject}/regions/{region}/healthAggregation" + + "Policies/{health_aggregation_policy}\022\224\002\n" + + "\003Get\022@.google.cloud.compute.v1.GetRegion" + + "HealthAggregationPolicyRequest\0320.google." + + "cloud.compute.v1.HealthAggregationPolicy" + + "\"\230\001\332A(project,region,health_aggregation_" + + "policy\202\323\344\223\002g\022e/compute/v1/projects/{proj" + + "ect}/regions/{region}/healthAggregationP" + + "olicies/{health_aggregation_policy}\022\260\002\n\006" + + "Insert\022C.google.cloud.compute.v1.InsertR" + + "egionHealthAggregationPolicyRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\274\001\332A1pro" + + "ject,region,health_aggregation_policy_re" + + "source\212N\020RegionOperations\202\323\344\223\002o\"I/comput" + + "e/v1/projects/{project}/regions/{region}" + + "/healthAggregationPolicies:\"health_aggre" + + "gation_policy_resource\022\345\001\n\004List\022C.google" + + ".cloud.compute.v1.ListRegionHealthAggreg" + + "ationPoliciesRequest\0324.google.cloud.comp" + + "ute.v1.HealthAggregationPolicyList\"b\332A\016p" + + "roject,region\202\323\344\223\002K\022I/compute/v1/project" + + "s/{project}/regions/{region}/healthAggre" + + "gationPolicies\022\345\002\n\005Patch\022B.google.cloud." + + "compute.v1.PatchRegionHealthAggregationP" + + "olicyRequest\032\".google.cloud.compute.v1.O" + + "peration\"\363\001\332AKproject,region,health_aggr" + + "egation_policy,health_aggregation_policy" + + "_resource\212N\020RegionOperations\202\323\344\223\002\213\0012e/co" + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/healthCheckServices/{health_check_s" - + "ervice}\022\372\001\n\003Get\022;.google.cloud.compute.v" - + "1.GetRegionHealthCheckServiceRequest\032+.g" - + "oogle.cloud.compute.v1.HealthCheckServic" - + "e\"\210\001\332A#project,region,health_check_servi" - + "ce\202\323\344\223\002\\\022Z/compute/v1/projects/{project}" - + "/regions/{region}/healthCheckServices/{h" - + "ealth_check_service}\022\233\002\n\006Insert\022>.google" - + ".cloud.compute.v1.InsertRegionHealthChec" - + "kServiceRequest\032\".google.cloud.compute.v" - + "1.Operation\"\254\001\332A,project,region,health_c" - + "heck_service_resource\212N\020RegionOperations" - + "\202\323\344\223\002d\"C/compute/v1/projects/{project}/r" - + "egions/{region}/healthCheckServices:\035hea" - + "lth_check_service_resource\022\325\001\n\004List\022=.go" - + "ogle.cloud.compute.v1.ListRegionHealthCh" - + "eckServicesRequest\0320.google.cloud.comput" - + "e.v1.HealthCheckServicesList\"\\\332A\016project" - + ",region\202\323\344\223\002E\022C/compute/v1/projects/{pro" - + "ject}/regions/{region}/healthCheckServic" - + "es\022\305\002\n\005Patch\022=.google.cloud.compute.v1.P" - + "atchRegionHealthCheckServiceRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\330\001\332AApro" - + "ject,region,health_check_service,health_" - + "check_service_resource\212N\020RegionOperation" - + "s\202\323\344\223\002{2Z/compute/v1/projects/{project}/" - + "regions/{region}/healthCheckServices/{he" - + "alth_check_service}:\035health_check_servic" - + "e_resource\022\336\002\n\022TestIamPermissions\022J.goog" - + "le.cloud.compute.v1.TestIamPermissionsRe" - + "gionHealthCheckServiceRequest\0320.google.c" - + "loud.compute.v1.TestPermissionsResponse\"" - + "\311\001\332A9project,region,resource,test_permis" - + "sions_request_resource\202\323\344\223\002\206\001\"a/compute/" - + "v1/projects/{project}/regions/{region}/h" - + "ealthCheckServices/{resource}/testIamPer" - + "missions:!test_permissions_request_resou" - + "rce\032\202\001\312A\026compute.googleapis.com\322AVhttps:" - + "//www.googleapis.com/auth/compute,https:" - + "//www.googleapis.com/auth/cloud-platform" - + "\212\324\333\322\017\n2026-09-012\251\017\n\022RegionHealthChecks\022" - + "\354\001\n\006Delete\0227.google.cloud.compute.v1.Del" - + "eteRegionHealthCheckRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\204\001\332A\033project,reg" - + "ion,health_check\212N\020RegionOperations\202\323\344\223\002" - + "M*K/compute/v1/projects/{project}/region" - + "s/{region}/healthChecks/{health_check}\022\324" - + "\001\n\003Get\0224.google.cloud.compute.v1.GetRegi" - + "onHealthCheckRequest\032$.google.cloud.comp" - + "ute.v1.HealthCheck\"q\332A\033project,region,he" - + "alth_check\202\323\344\223\002M\022K/compute/v1/projects/{" - + "project}/regions/{region}/healthChecks/{" - + "health_check}\022\375\001\n\006Insert\0227.google.cloud." - + "compute.v1.InsertRegionHealthCheckReques" - + "t\032\".google.cloud.compute.v1.Operation\"\225\001" - + "\332A$project,region,health_check_resource\212" - + "N\020RegionOperations\202\323\344\223\002U\".google.cloud." + + "compute.v1.DeleteRegionHealthCheckServic" + + "eRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\233\001\332A#project,region,health_check_se" + + "rvice\212N\020RegionOperations\202\323\344\223\002\\*Z/compute" + + "/v1/projects/{project}/regions/{region}/" + + "healthCheckServices/{health_check_servic" + + "e}\022\372\001\n\003Get\022;.google.cloud.compute.v1.Get" + + "RegionHealthCheckServiceRequest\032+.google" + + ".cloud.compute.v1.HealthCheckService\"\210\001\332" + + "A#project,region,health_check_service\202\323\344" + + "\223\002\\\022Z/compute/v1/projects/{project}/regi" + + "ons/{region}/healthCheckServices/{health" + + "_check_service}\022\233\002\n\006Insert\022>.google.clou" + + "d.compute.v1.InsertRegionHealthCheckServ" + + "iceRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\254\001\332A,project,region,health_check_" + + "service_resource\212N\020RegionOperations\202\323\344\223\002" + + "d\"C/compute/v1/projects/{project}/region" + + "s/{region}/healthCheckServices:\035health_c" + + "heck_service_resource\022\325\001\n\004List\022=.google." + + "cloud.compute.v1.ListRegionHealthCheckSe" + + "rvicesRequest\0320.google.cloud.compute.v1." + + "HealthCheckServicesList\"\\\332A\016project,regi" + + "on\202\323\344\223\002E\022C/compute/v1/projects/{project}" + + "/regions/{region}/healthCheckServices\022\305\002" + + "\n\005Patch\022=.google.cloud.compute.v1.PatchR" + + "egionHealthCheckServiceRequest\032\".google." + + "cloud.compute.v1.Operation\"\330\001\332AAproject," + + "region,health_check_service,health_check" + + "_service_resource\212N\020RegionOperations\202\323\344\223" + + "\002{2Z/compute/v1/projects/{project}/regio" + + "ns/{region}/healthCheckServices/{health_" + + "check_service}:\035health_check_service_res" + + "ource\022\336\002\n\022TestIamPermissions\022J.google.cl" + + "oud.compute.v1.TestIamPermissionsRegionH" + + "ealthCheckServiceRequest\0320.google.cloud." + + "compute.v1.TestPermissionsResponse\"\311\001\332A9" + + "project,region,resource,test_permissions" + + "_request_resource\202\323\344\223\002\206\001\"a/compute/v1/pr" + "ojects/{project}/regions/{region}/health" - + "Checks:\025health_check_resource\022\277\001\n\004List\0226" - + ".google.cloud.compute.v1.ListRegionHealt" - + "hChecksRequest\032(.google.cloud.compute.v1" - + ".HealthCheckList\"U\332A\016project,region\202\323\344\223\002" - + ">\022\022r" - + "egion_instance_group_managers_stop_insta" - + "nces_request_resource\022\275\003\n\020SuspendInstanc" - + "es\022J.google.cloud.compute.v1.SuspendInst" + + "instance_group_manager}/setInstanceTempl" + + "ate:/compute/v1/" - + "projects/{project}/regions/{region}/inst" - + "anceGroups\022\206\003\n\rListInstances\022A.google.cl" - + "oud.compute.v1.ListInstancesRegionInstan" - + "ceGroupsRequest\032:.google.cloud.compute.v" - + "1.RegionInstanceGroupsListInstances\"\365\001\332A" - + "Tproject,region,instance_group,region_in" - + "stance_groups_list_instances_request_res" - + "ource\202\323\344\223\002\227\001\"]/compute/v1/projects/{proj" - + "ect}/regions/{region}/instanceGroups/{in" - + "stance_group}/listInstances:6region_inst" - + "ance_groups_list_instances_request_resou" - + "rce\022\202\003\n\rSetNamedPorts\022@.google.cloud.com" - + "pute.v1.SetNamedPortsRegionInstanceGroup" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\212\002\332AUproject,region,instance_group,r" - + "egion_instance_groups_set_named_ports_re" - + "quest_resource\212N\020RegionOperations\202\323\344\223\002\230\001" - + "\"]/compute/v1/projects/{project}/regions" - + "/{region}/instanceGroups/{instance_group" - + "}/setNamedPorts:7region_instance_groups_" - + "set_named_ports_request_resource\022\324\002\n\022Tes" - + "tIamPermissions\022E.google.cloud.compute.v" - + "1.TestIamPermissionsRegionInstanceGroupR" - + "equest\0320.google.cloud.compute.v1.TestPer" - + "missionsResponse\"\304\001\332A9project,region,res" - + "ource,test_permissions_request_resource\202" - + "\323\344\223\002\201\001\"\\/compute/v1/projects/{project}/r" - + "egions/{region}/instanceGroups/{resource" - + "}/testIamPermissions:!test_permissions_r" - + "equest_resource\032\202\001\312A\026compute.googleapis." - + "com\322AVhttps://www.googleapis.com/auth/co" - + "mpute,https://www.googleapis.com/auth/cl" - + "oud-platform\212\324\333\322\017\n2026-09-012\367\010\n\027RegionI" - + "nstanceTemplates\022\200\002\n\006Delete\022<.google.clo" - + "ud.compute.v1.DeleteRegionInstanceTempla" - + "teRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\223\001\332A project,region,instance_templ" - + "ate\212N\020RegionOperations\202\323\344\223\002W*U/compute/v" + + "gion_instance_group_managers_start_insta" + + "nces_request_resource\212N\020RegionOperations" + + "\202\323\344\223\002\260\001\"m/compute/v1/projects/{project}/" + + "regions/{region}/instanceGroupManagers/{" + + "instance_group_manager}/startInstances:?" + + "region_instance_group_managers_start_ins" + + "tances_request_resource\022\256\003\n\rStopInstance" + + "s\022G.google.cloud.compute.v1.StopInstance" + + "sRegionInstanceGroupManagerRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\257\002\332Adproj" + + "ect,region,instance_group_manager,region" + + "_instance_group_managers_stop_instances_" + + "request_resource\212N\020RegionOperations\202\323\344\223\002" + + "\256\001\"l/compute/v1/projects/{project}/regio" + + "ns/{region}/instanceGroupManagers/{insta" + + "nce_group_manager}/stopInstances:>region" + + "_instance_group_managers_stop_instances_" + + "request_resource\022\275\003\n\020SuspendInstances\022J." + + "google.cloud.compute.v1.SuspendInstances" + + "RegionInstanceGroupManagerRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\270\002\332Agproje" + + "ct,region,instance_group_manager,region_" + + "instance_group_managers_suspend_instance" + + "s_request_resource\212N\020RegionOperations\202\323\344" + + "\223\002\264\001\"o/compute/v1/projects/{project}/reg" + + "ions/{region}/instanceGroupManagers/{ins" + + "tance_group_manager}/suspendInstances:Ar" + + "egion_instance_group_managers_suspend_in" + + "stances_request_resource\022\325\003\n\030UpdatePerIn" + + "stanceConfigs\022R.google.cloud.compute.v1." + + "UpdatePerInstanceConfigsRegionInstanceGr" + + "oupManagerRequest\032\".google.cloud.compute" + + ".v1.Operation\"\300\002\332Agproject,region,instan" + + "ce_group_manager,region_instance_group_m" + + "anager_update_instance_config_req_resour" + + "ce\212N\020RegionOperations\202\323\344\223\002\274\001\"w/compute/v" + "1/projects/{project}/regions/{region}/in" - + "stanceTemplates/{instance_template}\022\356\001\n\003" - + "Get\0229.google.cloud.compute.v1.GetRegionI" - + "nstanceTemplateRequest\032).google.cloud.co" - + "mpute.v1.InstanceTemplate\"\200\001\332A project,r" - + "egion,instance_template\202\323\344\223\002W\022U/compute/" - + "v1/projects/{project}/regions/{region}/i" - + "nstanceTemplates/{instance_template}\022\221\002\n" - + "\006Insert\022<.google.cloud.compute.v1.Insert" - + "RegionInstanceTemplateRequest\032\".google.c" - + "loud.compute.v1.Operation\"\244\001\332A)project,r" - + "egion,instance_template_resource\212N\020Regio" - + "nOperations\202\323\344\223\002_\"A/compute/v1/projects/" - + "{project}/regions/{region}/instanceTempl" - + "ates:\032instance_template_resource\022\316\001\n\004Lis" - + "t\022;.google.cloud.compute.v1.ListRegionIn" - + "stanceTemplatesRequest\032-.google.cloud.co" - + "mpute.v1.InstanceTemplateList\"Z\332A\016projec" - + "t,region\202\323\344\223\002C\022A/compute/v1/projects/{pr" - + "oject}/regions/{region}/instanceTemplate" - + "s\032\202\001\312A\026compute.googleapis.com\322AVhttps://" - + "www.googleapis.com/auth/compute,https://" - + "www.googleapis.com/auth/cloud-platform\212\324" - + "\333\322\017\n2026-09-012\305\003\n\017RegionInstances\022\254\002\n\nB" - + "ulkInsert\0228.google.cloud.compute.v1.Bulk" - + "InsertRegionInstanceRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\277\001\332A5project,reg" - + "ion,bulk_insert_instance_resource_resour" - + "ce\212N\020RegionOperations\202\323\344\223\002n\"D/compute/v1" - + "/projects/{project}/regions/{region}/ins" - + "tances/bulkInsert:&bulk_insert_instance_" - + "resource_resource\032\202\001\312A\026compute.googleapi" - + "s.com\322AVhttps://www.googleapis.com/auth/" - + "compute,https://www.googleapis.com/auth/" - + "cloud-platform\212\324\333\322\017\n2026-09-012\346\020\n\033Regio" - + "nInstantSnapshotGroups\022\222\002\n\006Delete\022@.goog" - + "le.cloud.compute.v1.DeleteRegionInstantS" - + "napshotGroupRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\241\001\332A%project,region,inst" - + "ant_snapshot_group\212N\020RegionOperations\202\323\344" - + "\223\002`*^/compute/v1/projects/{project}/regi" - + "ons/{region}/instantSnapshotGroups/{inst" - + "ant_snapshot_group}\022\204\002\n\003Get\022=.google.clo" - + "ud.compute.v1.GetRegionInstantSnapshotGr" - + "oupRequest\032-.google.cloud.compute.v1.Ins" - + "tantSnapshotGroup\"\216\001\332A%project,region,in" - + "stant_snapshot_group\202\323\344\223\002`\022^/compute/v1/" - + "projects/{project}/regions/{region}/inst" - + "antSnapshotGroups/{instant_snapshot_grou" - + "p}\022\370\001\n\014GetIamPolicy\022F.google.cloud.compu" - + "te.v1.GetIamPolicyRegionInstantSnapshotG" - + "roupRequest\032\037.google.cloud.compute.v1.Po" - + "licy\"\177\332A\027project,region,resource\202\323\344\223\002_\022]" + + "stanceGroupManagers/{instance_group_mana" + + "ger}/updatePerInstanceConfigs:Aregion_in" + + "stance_group_manager_update_instance_con" + + "fig_req_resource\032\202\001\312A\026compute.googleapis" + + ".com\322AVhttps://www.googleapis.com/auth/c" + + "ompute,https://www.googleapis.com/auth/c" + + "loud-platform\212\324\333\322\017\n2026-09-012\257\r\n\024Region" + + "InstanceGroups\022\336\001\n\003Get\0226.google.cloud.co" + + "mpute.v1.GetRegionInstanceGroupRequest\032&" + + ".google.cloud.compute.v1.InstanceGroup\"w" + + "\332A\035project,region,instance_group\202\323\344\223\002Q\022O" + "/compute/v1/projects/{project}/regions/{" - + "region}/instantSnapshotGroups/{resource}" - + "/getIamPolicy\022\243\002\n\006Insert\022@.google.cloud." - + "compute.v1.InsertRegionInstantSnapshotGr" - + "oupRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\262\001\332A.project,region,instant_snaps" - + "hot_group_resource\212N\020RegionOperations\202\323\344" - + "\223\002h\"E/compute/v1/projects/{project}/regi" - + "ons/{region}/instantSnapshotGroups:\037inst" - + "ant_snapshot_group_resource\022\333\001\n\004List\022?.g" - + "oogle.cloud.compute.v1.ListRegionInstant" - + "SnapshotGroupsRequest\0322.google.cloud.com" - + "pute.v1.ListInstantSnapshotGroups\"^\332A\016pr" - + "oject,region\202\323\344\223\002G\022E/compute/v1/projects" - + "/{project}/regions/{region}/instantSnaps" - + "hotGroups\022\301\002\n\014SetIamPolicy\022F.google.clou" - + "d.compute.v1.SetIamPolicyRegionInstantSn" - + "apshotGroupRequest\032\037.google.cloud.comput" - + "e.v1.Policy\"\307\001\332A:project,region,resource" - + ",region_set_policy_request_resource\202\323\344\223\002" - + "\203\001\"]/compute/v1/projects/{project}/regio" - + "ns/{region}/instantSnapshotGroups/{resou" - + "rce}/setIamPolicy:\"region_set_policy_req" - + "uest_resource\022\342\002\n\022TestIamPermissions\022L.g" - + "oogle.cloud.compute.v1.TestIamPermission" - + "sRegionInstantSnapshotGroupRequest\0320.goo" - + "gle.cloud.compute.v1.TestPermissionsResp" - + "onse\"\313\001\332A9project,region,resource,test_p" - + "ermissions_request_resource\202\323\344\223\002\210\001\"c/com" - + "pute/v1/projects/{project}/regions/{regi" - + "on}/instantSnapshotGroups/{resource}/tes" + + "region}/instanceGroups/{instance_group}\022" + + "\313\001\n\004List\0228.google.cloud.compute.v1.ListR" + + "egionInstanceGroupsRequest\0320.google.clou" + + "d.compute.v1.RegionInstanceGroupList\"W\332A" + + "\016project,region\202\323\344\223\002@\022>/compute/v1/proje" + + "cts/{project}/regions/{region}/instanceG" + + "roups\022\206\003\n\rListInstances\022A.google.cloud.c" + + "ompute.v1.ListInstancesRegionInstanceGro" + + "upsRequest\032:.google.cloud.compute.v1.Reg" + + "ionInstanceGroupsListInstances\"\365\001\332ATproj" + + "ect,region,instance_group,region_instanc" + + "e_groups_list_instances_request_resource" + + "\202\323\344\223\002\227\001\"]/compute/v1/projects/{project}/" + + "regions/{region}/instanceGroups/{instanc" + + "e_group}/listInstances:6region_instance_" + + "groups_list_instances_request_resource\022\202" + + "\003\n\rSetNamedPorts\022@.google.cloud.compute." + + "v1.SetNamedPortsRegionInstanceGroupReque" + + "st\032\".google.cloud.compute.v1.Operation\"\212" + + "\002\332AUproject,region,instance_group,region" + + "_instance_groups_set_named_ports_request" + + "_resource\212N\020RegionOperations\202\323\344\223\002\230\001\"]/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/instanceGroups/{instance_group}/set" + + "NamedPorts:7region_instance_groups_set_n" + + "amed_ports_request_resource\022\324\002\n\022TestIamP" + + "ermissions\022E.google.cloud.compute.v1.Tes" + + "tIamPermissionsRegionInstanceGroupReques" + + "t\0320.google.cloud.compute.v1.TestPermissi" + + "onsResponse\"\304\001\332A9project,region,resource" + + ",test_permissions_request_resource\202\323\344\223\002\201" + + "\001\"\\/compute/v1/projects/{project}/region" + + "s/{region}/instanceGroups/{resource}/tes" + "tIamPermissions:!test_permissions_reques" + "t_resource\032\202\001\312A\026compute.googleapis.com\322A" + "Vhttps://www.googleapis.com/auth/compute" + ",https://www.googleapis.com/auth/cloud-p" - + "latform\212\324\333\322\017\n2026-09-012\260\022\n\026RegionInstan" - + "tSnapshots\022\374\001\n\006Delete\022;.google.cloud.com" - + "pute.v1.DeleteRegionInstantSnapshotReque" - + "st\032\".google.cloud.compute.v1.Operation\"\220" - + "\001\332A\037project,region,instant_snapshot\212N\020Re" - + "gionOperations\202\323\344\223\002U*S/compute/v1/projec" - + "ts/{project}/regions/{region}/instantSna" - + "pshots/{instant_snapshot}\022\350\001\n\003Get\0228.goog" - + "le.cloud.compute.v1.GetRegionInstantSnap" - + "shotRequest\032(.google.cloud.compute.v1.In" - + "stantSnapshot\"}\332A\037project,region,instant" - + "_snapshot\202\323\344\223\002U\022S/compute/v1/projects/{p" - + "roject}/regions/{region}/instantSnapshot" - + "s/{instant_snapshot}\022\356\001\n\014GetIamPolicy\022A." - + "google.cloud.compute.v1.GetIamPolicyRegi" - + "onInstantSnapshotRequest\032\037.google.cloud." - + "compute.v1.Policy\"z\332A\027project,region,res" - + "ource\202\323\344\223\002Z\022X/compute/v1/projects/{proje" - + "ct}/regions/{region}/instantSnapshots/{r" - + "esource}/getIamPolicy\022\215\002\n\006Insert\022;.googl" - + "e.cloud.compute.v1.InsertRegionInstantSn" - + "apshotRequest\032\".google.cloud.compute.v1." - + "Operation\"\241\001\332A(project,region,instant_sn" - + "apshot_resource\212N\020RegionOperations\202\323\344\223\002]" - + "\"@/compute/v1/projects/{project}/regions" - + "/{region}/instantSnapshots:\031instant_snap" - + "shot_resource\022\313\001\n\004List\022:.google.cloud.co" - + "mpute.v1.ListRegionInstantSnapshotsReque" - + "st\032,.google.cloud.compute.v1.InstantSnap" - + "shotList\"Y\332A\016project,region\202\323\344\223\002B\022@/comp" - + "ute/v1/projects/{project}/regions/{regio" - + "n}/instantSnapshots\022\266\002\n\014SetIamPolicy\022A.g" - + "oogle.cloud.compute.v1.SetIamPolicyRegio" - + "nInstantSnapshotRequest\032\037.google.cloud.c" - + "ompute.v1.Policy\"\301\001\332A:project,region,res" - + "ource,region_set_policy_request_resource" - + "\202\323\344\223\002~\"X/compute/v1/projects/{project}/r" - + "egions/{region}/instantSnapshots/{resour" - + "ce}/setIamPolicy:\"region_set_policy_requ" - + "est_resource\022\303\002\n\tSetLabels\022>.google.clou" - + "d.compute.v1.SetLabelsRegionInstantSnaps" - + "hotRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\321\001\332A:project,region,resource,regi" - + "on_set_labels_request_resource\212N\020RegionO" - + "perations\202\323\344\223\002{\"U/compute/v1/projects/{p" - + "roject}/regions/{region}/instantSnapshot" - + "s/{resource}/setLabels:\"region_set_label" - + "s_request_resource\022\330\002\n\022TestIamPermission" - + "s\022G.google.cloud.compute.v1.TestIamPermi" - + "ssionsRegionInstantSnapshotRequest\0320.goo" - + "gle.cloud.compute.v1.TestPermissionsResp" - + "onse\"\306\001\332A9project,region,resource,test_p" - + "ermissions_request_resource\202\323\344\223\002\203\001\"^/com" - + "pute/v1/projects/{project}/regions/{regi" - + "on}/instantSnapshots/{resource}/testIamP" + + "latform\212\324\333\322\017\n2026-09-012\367\010\n\027RegionInstan" + + "ceTemplates\022\200\002\n\006Delete\022<.google.cloud.co" + + "mpute.v1.DeleteRegionInstanceTemplateReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\223\001\332A project,region,instance_template\212N" + + "\020RegionOperations\202\323\344\223\002W*U/compute/v1/pro" + + "jects/{project}/regions/{region}/instanc" + + "eTemplates/{instance_template}\022\356\001\n\003Get\0229" + + ".google.cloud.compute.v1.GetRegionInstan" + + "ceTemplateRequest\032).google.cloud.compute" + + ".v1.InstanceTemplate\"\200\001\332A project,region" + + ",instance_template\202\323\344\223\002W\022U/compute/v1/pr" + + "ojects/{project}/regions/{region}/instan" + + "ceTemplates/{instance_template}\022\221\002\n\006Inse" + + "rt\022<.google.cloud.compute.v1.InsertRegio" + + "nInstanceTemplateRequest\032\".google.cloud." + + "compute.v1.Operation\"\244\001\332A)project,region" + + ",instance_template_resource\212N\020RegionOper" + + "ations\202\323\344\223\002_\"A/compute/v1/projects/{proj" + + "ect}/regions/{region}/instanceTemplates:" + + "\032instance_template_resource\022\316\001\n\004List\022;.g" + + "oogle.cloud.compute.v1.ListRegionInstanc" + + "eTemplatesRequest\032-.google.cloud.compute" + + ".v1.InstanceTemplateList\"Z\332A\016project,reg" + + "ion\202\323\344\223\002C\022A/compute/v1/projects/{project" + + "}/regions/{region}/instanceTemplates\032\202\001\312" + + "A\026compute.googleapis.com\322AVhttps://www.g" + + "oogleapis.com/auth/compute,https://www.g" + + "oogleapis.com/auth/cloud-platform\212\324\333\322\017\n2" + + "026-09-012\305\003\n\017RegionInstances\022\254\002\n\nBulkIn" + + "sert\0228.google.cloud.compute.v1.BulkInser" + + "tRegionInstanceRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\277\001\332A5project,region,b" + + "ulk_insert_instance_resource_resource\212N\020" + + "RegionOperations\202\323\344\223\002n\"D/compute/v1/proj" + + "ects/{project}/regions/{region}/instance" + + "s/bulkInsert:&bulk_insert_instance_resou" + + "rce_resource\032\202\001\312A\026compute.googleapis.com" + + "\322AVhttps://www.googleapis.com/auth/compu" + + "te,https://www.googleapis.com/auth/cloud" + + "-platform\212\324\333\322\017\n2026-09-012\346\020\n\033RegionInst" + + "antSnapshotGroups\022\222\002\n\006Delete\022@.google.cl" + + "oud.compute.v1.DeleteRegionInstantSnapsh" + + "otGroupRequest\032\".google.cloud.compute.v1" + + ".Operation\"\241\001\332A%project,region,instant_s" + + "napshot_group\212N\020RegionOperations\202\323\344\223\002`*^" + + "/compute/v1/projects/{project}/regions/{" + + "region}/instantSnapshotGroups/{instant_s" + + "napshot_group}\022\204\002\n\003Get\022=.google.cloud.co" + + "mpute.v1.GetRegionInstantSnapshotGroupRe" + + "quest\032-.google.cloud.compute.v1.InstantS" + + "napshotGroup\"\216\001\332A%project,region,instant" + + "_snapshot_group\202\323\344\223\002`\022^/compute/v1/proje" + + "cts/{project}/regions/{region}/instantSn" + + "apshotGroups/{instant_snapshot_group}\022\370\001" + + "\n\014GetIamPolicy\022F.google.cloud.compute.v1" + + ".GetIamPolicyRegionInstantSnapshotGroupR" + + "equest\032\037.google.cloud.compute.v1.Policy\"" + + "\177\332A\027project,region,resource\202\323\344\223\002_\022]/comp" + + "ute/v1/projects/{project}/regions/{regio" + + "n}/instantSnapshotGroups/{resource}/getI" + + "amPolicy\022\243\002\n\006Insert\022@.google.cloud.compu" + + "te.v1.InsertRegionInstantSnapshotGroupRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\262\001\332A.project,region,instant_snapshot_g" + + "roup_resource\212N\020RegionOperations\202\323\344\223\002h\"E" + + "/compute/v1/projects/{project}/regions/{" + + "region}/instantSnapshotGroups:\037instant_s" + + "napshot_group_resource\022\333\001\n\004List\022?.google" + + ".cloud.compute.v1.ListRegionInstantSnaps" + + "hotGroupsRequest\0322.google.cloud.compute." + + "v1.ListInstantSnapshotGroups\"^\332A\016project" + + ",region\202\323\344\223\002G\022E/compute/v1/projects/{pro" + + "ject}/regions/{region}/instantSnapshotGr" + + "oups\022\301\002\n\014SetIamPolicy\022F.google.cloud.com" + + "pute.v1.SetIamPolicyRegionInstantSnapsho" + + "tGroupRequest\032\037.google.cloud.compute.v1." + + "Policy\"\307\001\332A:project,region,resource,regi" + + "on_set_policy_request_resource\202\323\344\223\002\203\001\"]/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/instantSnapshotGroups/{resource}/" + + "setIamPolicy:\"region_set_policy_request_" + + "resource\022\342\002\n\022TestIamPermissions\022L.google" + + ".cloud.compute.v1.TestIamPermissionsRegi" + + "onInstantSnapshotGroupRequest\0320.google.c" + + "loud.compute.v1.TestPermissionsResponse\"" + + "\313\001\332A9project,region,resource,test_permis" + + "sions_request_resource\202\323\344\223\002\210\001\"c/compute/" + + "v1/projects/{project}/regions/{region}/i" + + "nstantSnapshotGroups/{resource}/testIamP" + "ermissions:!test_permissions_request_res" + "ource\032\202\001\312A\026compute.googleapis.com\322AVhttp" + "s://www.googleapis.com/auth/compute,http" + "s://www.googleapis.com/auth/cloud-platfo" - + "rm\212\324\333\322\017\n2026-09-012\265\023\n\033RegionNetworkEndp" - + "ointGroups\022\315\003\n\026AttachNetworkEndpoints\022P." - + "google.cloud.compute.v1.AttachNetworkEnd" - + "pointsRegionNetworkEndpointGroupRequest\032" - + "\".google.cloud.compute.v1.Operation\"\274\002\332A" - + "fproject,region,network_endpoint_group,r" - + "egion_network_endpoint_groups_attach_end" - + "points_request_resource\212N\020RegionOperatio" - + "ns\202\323\344\223\002\271\001\"u/compute/v1/projects/{project" - + "}/regions/{region}/networkEndpointGroups" - + "/{network_endpoint_group}/attachNetworkE" - + "ndpoints:@region_network_endpoint_groups" - + "_attach_endpoints_request_resource\022\222\002\n\006D" - + "elete\022@.google.cloud.compute.v1.DeleteRe" - + "gionNetworkEndpointGroupRequest\032\".google" - + ".cloud.compute.v1.Operation\"\241\001\332A%project" - + ",region,network_endpoint_group\212N\020RegionO" - + "perations\202\323\344\223\002`*^/compute/v1/projects/{p" - + "roject}/regions/{region}/networkEndpoint" - + "Groups/{network_endpoint_group}\022\315\003\n\026Deta" - + "chNetworkEndpoints\022P.google.cloud.comput" - + "e.v1.DetachNetworkEndpointsRegionNetwork" - + "EndpointGroupRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\274\002\332Afproject,region,net" - + "work_endpoint_group,region_network_endpo" - + "int_groups_detach_endpoints_request_reso" - + "urce\212N\020RegionOperations\202\323\344\223\002\271\001\"u/compute" - + "/v1/projects/{project}/regions/{region}/" - + "networkEndpointGroups/{network_endpoint_" - + "group}/detachNetworkEndpoints:@region_ne" - + "twork_endpoint_groups_detach_endpoints_r" - + "equest_resource\022\204\002\n\003Get\022=.google.cloud.c" - + "ompute.v1.GetRegionNetworkEndpointGroupR" - + "equest\032-.google.cloud.compute.v1.Network" - + "EndpointGroup\"\216\001\332A%project,region,networ" - + "k_endpoint_group\202\323\344\223\002`\022^/compute/v1/proj" - + "ects/{project}/regions/{region}/networkE" - + "ndpointGroups/{network_endpoint_group}\022\243" - + "\002\n\006Insert\022@.google.cloud.compute.v1.Inse" - + "rtRegionNetworkEndpointGroupRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\262\001\332A.pro" - + "ject,region,network_endpoint_group_resou" - + "rce\212N\020RegionOperations\202\323\344\223\002h\"E/compute/v" - + "1/projects/{project}/regions/{region}/ne" - + "tworkEndpointGroups:\037network_endpoint_gr" - + "oup_resource\022\332\001\n\004List\022?.google.cloud.com" - + "pute.v1.ListRegionNetworkEndpointGroupsR" - + "equest\0321.google.cloud.compute.v1.Network" - + "EndpointGroupList\"^\332A\016project,region\202\323\344\223" - + "\002G\022E/compute/v1/projects/{project}/regio" - + "ns/{region}/networkEndpointGroups\022\321\002\n\024Li" - + "stNetworkEndpoints\022O.google.cloud.comput" - + "e.v1.ListNetworkEndpointsRegionNetworkEn" - + "dpointGroupsRequest\032B.google.cloud.compu" - + "te.v1.NetworkEndpointGroupsListNetworkEn" - + "dpoints\"\243\001\332A%project,region,network_endp" - + "oint_group\202\323\344\223\002u\"s/compute/v1/projects/{" - + "project}/regions/{region}/networkEndpoin" - + "tGroups/{network_endpoint_group}/listNet" - + "workEndpoints\032\202\001\312A\026compute.googleapis.co" - + "m\322AVhttps://www.googleapis.com/auth/comp" - + "ute,https://www.googleapis.com/auth/clou" - + "d-platform\212\324\333\322\017\n2026-09-012\367*\n\035RegionNet" - + "workFirewallPolicies\022\353\002\n\016AddAssociation\022" - + "I.google.cloud.compute.v1.AddAssociation" - + "RegionNetworkFirewallPolicyRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\351\001\332ACproj" - + "ect,region,firewall_policy,firewall_poli" - + "cy_association_resource\212N\020RegionOperatio" - + "ns\202\323\344\223\002\211\001\"a/compute/v1/projects/{project" - + "}/regions/{region}/firewallPolicies/{fir" - + "ewall_policy}/addAssociation:$firewall_p" - + "olicy_association_resource\022\307\002\n\007AddRule\022B" - + ".google.cloud.compute.v1.AddRuleRegionNe" - + "tworkFirewallPolicyRequest\032\".google.clou" - + "d.compute.v1.Operation\"\323\001\332A.google.cloud.com" - + "pute.v1.GetRegionNetworkFirewallPolicyRe" - + "quest\032\'.google.cloud.compute.v1.Firewall" - + "Policy\"{\332A\036project,region,firewall_polic" - + "y\202\323\344\223\002T\022R/compute/v1/projects/{project}/" - + "regions/{region}/firewallPolicies/{firew" - + "all_policy}\022\234\002\n\016GetAssociation\022I.google." - + "cloud.compute.v1.GetAssociationRegionNet" - + "workFirewallPolicyRequest\0322.google.cloud" - + ".compute.v1.FirewallPolicyAssociation\"\212\001" - + "\332A\036project,region,firewall_policy\202\323\344\223\002c\022" - + "a/compute/v1/projects/{project}/regions/" - + "{region}/firewallPolicies/{firewall_poli" - + "cy}/getAssociation\022\267\002\n\025GetEffectiveFirew" - + "alls\022P.google.cloud.compute.v1.GetEffect" - + "iveFirewallsRegionNetworkFirewallPolicyR" - + "equest\032S.google.cloud.compute.v1.RegionN" - + "etworkFirewallPoliciesGetEffectiveFirewa" - + "llsResponse\"w\332A\026project,region,network\202\323" - + "\344\223\002X\022V/compute/v1/projects/{project}/reg" - + "ions/{region}/firewallPolicies/getEffect" - + "iveFirewalls\022\364\001\n\014GetIamPolicy\022G.google.c" - + "loud.compute.v1.GetIamPolicyRegionNetwor" - + "kFirewallPolicyRequest\032\037.google.cloud.co" - + "mpute.v1.Policy\"z\332A\027project,region,resou" - + "rce\202\323\344\223\002Z\022X/compute/v1/projects/{project" - + "}/regions/{region}/firewallPolicies/{res" - + "ource}/getIamPolicy\022\200\002\n\007GetRule\022B.google", - ".cloud.compute.v1.GetRuleRegionNetworkFi" - + "rewallPolicyRequest\032+.google.cloud.compu" - + "te.v1.FirewallPolicyRule\"\203\001\332A\036project,re" - + "gion,firewall_policy\202\323\344\223\002\\\022Z/compute/v1/" - + "projects/{project}/regions/{region}/fire" - + "wallPolicies/{firewall_policy}/getRule\022\221" - + "\002\n\006Insert\022A.google.cloud.compute.v1.Inse" - + "rtRegionNetworkFirewallPolicyRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\237\001\332A\'pr" - + "oject,region,firewall_policy_resource\212N\020" - + "RegionOperations\202\323\344\223\002\\\"@/compute/v1/proj" - + "ects/{project}/regions/{region}/firewall" - + "Policies:\030firewall_policy_resource\022\321\001\n\004L" - + "ist\022A.google.cloud.compute.v1.ListRegion" - + "NetworkFirewallPoliciesRequest\032+.google." - + "cloud.compute.v1.FirewallPolicyList\"Y\332A\016" - + "project,region\202\323\344\223\002B\022@/compute/v1/projec" - + "ts/{project}/regions/{region}/firewallPo" - + "licies\022\261\002\n\005Patch\022@.google.cloud.compute." - + "v1.PatchRegionNetworkFirewallPolicyReque" - + "st\032\".google.cloud.compute.v1.Operation\"\301" - + "\001\332A7project,region,firewall_policy,firew" - + "all_policy_resource\212N\020RegionOperations\202\323" - + "\344\223\002n2R/compute/v1/projects/{project}/reg" - + "ions/{region}/firewallPolicies/{firewall" - + "_policy}:\030firewall_policy_resource\022\361\002\n\020P" - + "atchAssociation\022K.google.cloud.compute.v" - + "1.PatchAssociationRegionNetworkFirewallP" - + "olicyRequest\032\".google.cloud.compute.v1.O" - + "peration\"\353\001\332ACproject,region,firewall_po" - + "licy,firewall_policy_association_resourc" - + "e\212N\020RegionOperations\202\323\344\223\002\213\001\"c/compute/v1" - + "/projects/{project}/regions/{region}/fir" - + "ewallPolicies/{firewall_policy}/patchAss" - + "ociation:$firewall_policy_association_re" - + "source\022\315\002\n\tPatchRule\022D.google.cloud.comp" - + "ute.v1.PatchRuleRegionNetworkFirewallPol" - + "icyRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\325\001\332A.google.cloud.com" + + "pute.v1.SetLabelsRegionInstantSnapshotRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\321\001\332A:project,region,resource,region_se" + + "t_labels_request_resource\212N\020RegionOperat" + + "ions\202\323\344\223\002{\"U/compute/v1/projects/{projec" + + "t}/regions/{region}/instantSnapshots/{re" + + "source}/setLabels:\"region_set_labels_req" + + "uest_resource\022\330\002\n\022TestIamPermissions\022G.g" + + "oogle.cloud.compute.v1.TestIamPermission" + + "sRegionInstantSnapshotRequest\0320.google.c" + + "loud.compute.v1.TestPermissionsResponse\"" + + "\306\001\332A9project,region,resource,test_permis" + + "sions_request_resource\202\323\344\223\002\203\001\"^/compute/" + + "v1/projects/{project}/regions/{region}/i" + + "nstantSnapshots/{resource}/testIamPermis" + "sions:!test_permissions_request_resource" + "\032\202\001\312A\026compute.googleapis.com\322AVhttps://w" + "ww.googleapis.com/auth/compute,https://w" + "ww.googleapis.com/auth/cloud-platform\212\324\333" - + "\322\017\n2026-09-012\330\007\n\020RegionOperations\022\342\001\n\006D" - + "elete\0225.google.cloud.compute.v1.DeleteRe" - + "gionOperationRequest\0326.google.cloud.comp" - + "ute.v1.DeleteRegionOperationResponse\"i\332A" - + "\030project,region,operation\202\323\344\223\002H*F/comput" - + "e/v1/projects/{project}/regions/{region}" - + "/operations/{operation}\022\313\001\n\003Get\0222.google" - + ".cloud.compute.v1.GetRegionOperationRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "l\332A\030project,region,operation\220N\001\202\323\344\223\002H\022F/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/operations/{operation}\022\271\001\n\004List\0224" - + ".google.cloud.compute.v1.ListRegionOpera" - + "tionsRequest\032&.google.cloud.compute.v1.O" - + "perationList\"S\332A\016project,region\202\323\344\223\002<\022:/" + + "\322\017\n2026-09-012\265\023\n\033RegionNetworkEndpointG" + + "roups\022\315\003\n\026AttachNetworkEndpoints\022P.googl" + + "e.cloud.compute.v1.AttachNetworkEndpoint" + + "sRegionNetworkEndpointGroupRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\274\002\332Afproj" + + "ect,region,network_endpoint_group,region" + + "_network_endpoint_groups_attach_endpoint" + + "s_request_resource\212N\020RegionOperations\202\323\344" + + "\223\002\271\001\"u/compute/v1/projects/{project}/reg" + + "ions/{region}/networkEndpointGroups/{net" + + "work_endpoint_group}/attachNetworkEndpoi" + + "nts:@region_network_endpoint_groups_atta" + + "ch_endpoints_request_resource\022\222\002\n\006Delete" + + "\022@.google.cloud.compute.v1.DeleteRegionN" + + "etworkEndpointGroupRequest\032\".google.clou" + + "d.compute.v1.Operation\"\241\001\332A%project,regi" + + "on,network_endpoint_group\212N\020RegionOperat" + + "ions\202\323\344\223\002`*^/compute/v1/projects/{projec" + + "t}/regions/{region}/networkEndpointGroup" + + "s/{network_endpoint_group}\022\315\003\n\026DetachNet" + + "workEndpoints\022P.google.cloud.compute.v1." + + "DetachNetworkEndpointsRegionNetworkEndpo" + + "intGroupRequest\032\".google.cloud.compute.v" + + "1.Operation\"\274\002\332Afproject,region,network_" + + "endpoint_group,region_network_endpoint_g" + + "roups_detach_endpoints_request_resource\212" + + "N\020RegionOperations\202\323\344\223\002\271\001\"u/compute/v1/p" + + "rojects/{project}/regions/{region}/netwo" + + "rkEndpointGroups/{network_endpoint_group" + + "}/detachNetworkEndpoints:@region_network" + + "_endpoint_groups_detach_endpoints_reques" + + "t_resource\022\204\002\n\003Get\022=.google.cloud.comput" + + "e.v1.GetRegionNetworkEndpointGroupReques" + + "t\032-.google.cloud.compute.v1.NetworkEndpo" + + "intGroup\"\216\001\332A%project,region,network_end" + + "point_group\202\323\344\223\002`\022^/compute/v1/projects/" + + "{project}/regions/{region}/networkEndpoi" + + "ntGroups/{network_endpoint_group}\022\243\002\n\006In" + + "sert\022@.google.cloud.compute.v1.InsertReg" + + "ionNetworkEndpointGroupRequest\032\".google." + + "cloud.compute.v1.Operation\"\262\001\332A.project," + + "region,network_endpoint_group_resource\212N" + + "\020RegionOperations\202\323\344\223\002h\"E/compute/v1/pro" + + "jects/{project}/regions/{region}/network" + + "EndpointGroups:\037network_endpoint_group_r" + + "esource\022\332\001\n\004List\022?.google.cloud.compute." + + "v1.ListRegionNetworkEndpointGroupsReques" + + "t\0321.google.cloud.compute.v1.NetworkEndpo" + + "intGroupList\"^\332A\016project,region\202\323\344\223\002G\022E/" + "compute/v1/projects/{project}/regions/{r" - + "egion}/operations\022\317\001\n\004Wait\0223.google.clou" - + "d.compute.v1.WaitRegionOperationRequest\032" - + "\".google.cloud.compute.v1.Operation\"n\332A\030" - + "project,region,operation\202\323\344\223\002M\"K/compute" - + "/v1/projects/{project}/regions/{region}/" - + "operations/{operation}/wait\032\202\001\312A\026compute" - + ".googleapis.com\322AVhttps://www.googleapis" - + ".com/auth/compute,https://www.googleapis" - + ".com/auth/cloud-platform\212\324\333\322\017\n2026-09-01" - + "2\343\026\n\026RegionSecurityPolicies\022\300\002\n\007AddRule\022" - + ";.google.cloud.compute.v1.AddRuleRegionS" - + "ecurityPolicyRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\323\001\332A.google.cloud.compute.v1.RemoveRul" - + "eRegionSecurityPolicyRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\231\001\332A\036project,re" - + "gion,security_policy\212N\020RegionOperations\202" - + "\323\344\223\002_\"]/compute/v1/projects/{project}/re" - + "gions/{region}/securityPolicies/{securit" - + "y_policy}/removeRule\022\302\002\n\tSetLabels\022=.goo" - + "gle.cloud.compute.v1.SetLabelsRegionSecu" - + "rityPolicyRequest\032\".google.cloud.compute" - + ".v1.Operation\"\321\001\332A:project,region,resour" - + "ce,region_set_labels_request_resource\212N\020" - + "RegionOperations\202\323\344\223\002{\"U/compute/v1/proj" - + "ects/{project}/regions/{region}/security" - + "Policies/{resource}/setLabels:\"region_se" - + "t_labels_request_resource\032\202\001\312A\026compute.g" - + "oogleapis.com\322AVhttps://www.googleapis.c" - + "om/auth/compute,https://www.googleapis.c" - + "om/auth/cloud-platform\212\324\333\322\017\n2026-09-012\365" - + "\004\n\026RegionSnapshotSettings\022\305\001\n\003Get\0228.goog" - + "le.cloud.compute.v1.GetRegionSnapshotSet" - + "tingRequest\032).google.cloud.compute.v1.Sn" - + "apshotSettings\"Y\332A\016project,region\202\323\344\223\002B\022" - + "@/compute/v1/projects/{project}/regions/" - + "{region}/snapshotSettings\022\215\002\n\005Patch\022:.go" - + "ogle.cloud.compute.v1.PatchRegionSnapsho" - + "tSettingRequest\032\".google.cloud.compute.v" - + "1.Operation\"\243\001\332A)project,region,snapshot" - + "_settings_resource\212N\020RegionOperations\202\323\344" - + "\223\002^2@/compute/v1/projects/{project}/regi" - + "ons/{region}/snapshotSettings:\032snapshot_" - + "settings_resource\032\202\001\312A\026compute.googleapi" - + "s.com\322AVhttps://www.googleapis.com/auth/" - + "compute,https://www.googleapis.com/auth/" - + "cloud-platform\212\324\333\322\017\n2026-09-012\325\023\n\017Regio" - + "nSnapshots\022\335\001\n\006Delete\0224.google.cloud.com" - + "pute.v1.DeleteRegionSnapshotRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"y\332A\027proj" - + "ect,region,snapshot\212N\020RegionOperations\202\323" - + "\344\223\002F*D/compute/v1/projects/{project}/reg" - + "ions/{region}/snapshots/{snapshot}\022\303\001\n\003G" - + "et\0221.google.cloud.compute.v1.GetRegionSn" - + "apshotRequest\032!.google.cloud.compute.v1." - + "Snapshot\"f\332A\027project,region,snapshot\202\323\344\223" - + "\002F\022D/compute/v1/projects/{project}/regio" - + "ns/{region}/snapshots/{snapshot}\022\340\001\n\014Get" - + "IamPolicy\022:.google.cloud.compute.v1.GetI" - + "amPolicyRegionSnapshotRequest\032\037.google.c" - + "loud.compute.v1.Policy\"s\332A\027project,regio" - + "n,resource\202\323\344\223\002S\022Q/compute/v1/projects/{" - + "project}/regions/{region}/snapshots/{res" - + "ource}/getIamPolicy\022\357\001\n\006Insert\0224.google." - + "cloud.compute.v1.InsertRegionSnapshotReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\212\001\332A project,region,snapshot_resource\212N" - + "\020RegionOperations\202\323\344\223\002N\"9/compute/v1/pro" - + "jects/{project}/regions/{region}/snapsho" - + "ts:\021snapshot_resource\022\266\001\n\004List\0223.google." - + "cloud.compute.v1.ListRegionSnapshotsRequ" - + "est\032%.google.cloud.compute.v1.SnapshotLi" - + "st\"R\332A\016project,region\202\323\344\223\002;\0229/compute/v1" - + "/projects/{project}/regions/{region}/sna" - + "pshots\022\250\002\n\014SetIamPolicy\022:.google.cloud.c" - + "ompute.v1.SetIamPolicyRegionSnapshotRequ" - + "est\032\037.google.cloud.compute.v1.Policy\"\272\001\332" - + "A:project,region,resource,region_set_pol" - + "icy_request_resource\202\323\344\223\002w\"Q/compute/v1/" - + "projects/{project}/regions/{region}/snap" - + "shots/{resource}/setIamPolicy:\"region_se" - + "t_policy_request_resource\022\265\002\n\tSetLabels\022" - + "7.google.cloud.compute.v1.SetLabelsRegio" - + "nSnapshotRequest\032\".google.cloud.compute." - + "v1.Operation\"\312\001\332A:project,region,resourc" - + "e,region_set_labels_request_resource\212N\020R" - + "egionOperations\202\323\344\223\002t\"N/compute/v1/proje" - + "cts/{project}/regions/{region}/snapshots" - + "/{resource}/setLabels:\"region_set_labels" - + "_request_resource\022\311\002\n\022TestIamPermissions" - + "\022@.google.cloud.compute.v1.TestIamPermis" - + "sionsRegionSnapshotRequest\0320.google.clou" - + "d.compute.v1.TestPermissionsResponse\"\276\001\332" - + "A9project,region,resource,test_permissio" - + "ns_request_resource\202\323\344\223\002|\"W/compute/v1/p" - + "rojects/{project}/regions/{region}/snaps" - + "hots/{resource}/testIamPermissions:!test" - + "_permissions_request_resource\022\331\002\n\014Update" - + "KmsKey\022:.google.cloud.compute.v1.UpdateK" - + "msKeyRegionSnapshotRequest\032\".google.clou" - + "d.compute.v1.Operation\"\350\001\332AGproject,regi" - + "on,snapshot,region_snapshot_update_kms_k" - + "ey_request_resource\212N\020RegionOperations\202\323" - + "\344\223\002\204\001\"Q/compute/v1/projects/{project}/re" - + "gions/{region}/snapshots/{snapshot}/upda" - + "teKmsKey:/region_snapshot_update_kms_key" - + "_request_resource\032\202\001\312A\026compute.googleapi" - + "s.com\322AVhttps://www.googleapis.com/auth/" - + "compute,https://www.googleapis.com/auth/" - + "cloud-platform\212\324\333\322\017\n2026-09-012\324\010\n\025Regio" - + "nSslCertificates\022\370\001\n\006Delete\022:.google.clo" - + "ud.compute.v1.DeleteRegionSslCertificate" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\215\001\332A\036project,region,ssl_certificate\212" - + "N\020RegionOperations\202\323\344\223\002S*Q/compute/v1/pr" - + "ojects/{project}/regions/{region}/sslCer" - + "tificates/{ssl_certificate}\022\343\001\n\003Get\0227.go" - + "ogle.cloud.compute.v1.GetRegionSslCertif" - + "icateRequest\032\'.google.cloud.compute.v1.S" - + "slCertificate\"z\332A\036project,region,ssl_cer" - + "tificate\202\323\344\223\002S\022Q/compute/v1/projects/{pr" - + "oject}/regions/{region}/sslCertificates/" - + "{ssl_certificate}\022\211\002\n\006Insert\022:.google.cl" - + "oud.compute.v1.InsertRegionSslCertificat" - + "eRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\236\001\332A\'project,region,ssl_certificate" - + "_resource\212N\020RegionOperations\202\323\344\223\002[\"?/com" - + "pute/v1/projects/{project}/regions/{regi" - + "on}/sslCertificates:\030ssl_certificate_res" - + "ource\022\310\001\n\004List\0229.google.cloud.compute.v1" - + ".ListRegionSslCertificatesRequest\032+.goog" - + "le.cloud.compute.v1.SslCertificateList\"X" - + "\332A\016project,region\202\323\344\223\002A\022?/compute/v1/pro" - + "jects/{project}/regions/{region}/sslCert" - + "ificates\032\202\001\312A\026compute.googleapis.com\322AVh" + + "egion}/networkEndpointGroups\022\321\002\n\024ListNet" + + "workEndpoints\022O.google.cloud.compute.v1." + + "ListNetworkEndpointsRegionNetworkEndpoin" + + "tGroupsRequest\032B.google.cloud.compute.v1" + + ".NetworkEndpointGroupsListNetworkEndpoin" + + "ts\"\243\001\332A%project,region,network_endpoint_" + + "group\202\323\344\223\002u\"s/compute/v1/projects/{proje" + + "ct}/regions/{region}/networkEndpointGrou" + + "ps/{network_endpoint_group}/listNetworkE" + + "ndpoints\032\202\001\312A\026compute.googleapis.com\322AVh" + "ttps://www.googleapis.com/auth/compute,h" + "ttps://www.googleapis.com/auth/cloud-pla" - + "tform\212\324\333\322\017\n2026-09-012\246\014\n\021RegionSslPolic" - + "ies\022\344\001\n\006Delete\0225.google.cloud.compute.v1" - + ".DeleteRegionSslPolicyRequest\032\".google.c" - + "loud.compute.v1.Operation\"\177\332A\031project,re" - + "gion,ssl_policy\212N\020RegionOperations\202\323\344\223\002J" - + "*H/compute/v1/projects/{project}/regions" - + "/{region}/sslPolicies/{ssl_policy}\022\313\001\n\003G" - + "et\0222.google.cloud.compute.v1.GetRegionSs" - + "lPolicyRequest\032\".google.cloud.compute.v1" - + ".SslPolicy\"l\332A\031project,region,ssl_policy" - + "\202\323\344\223\002J\022H/compute/v1/projects/{project}/r" - + "egions/{region}/sslPolicies/{ssl_policy}" - + "\022\366\001\n\006Insert\0225.google.cloud.compute.v1.In" - + "sertRegionSslPolicyRequest\032\".google.clou" - + "d.compute.v1.Operation\"\220\001\332A\"project,regi" - + "on,ssl_policy_resource\212N\020RegionOperation" - + "s\202\323\344\223\002R\";/compute/v1/projects/{project}/" - + "regions/{region}/sslPolicies:\023ssl_policy" - + "_resource\022\275\001\n\004List\0225.google.cloud.comput" - + "e.v1.ListRegionSslPoliciesRequest\032(.goog" - + "le.cloud.compute.v1.SslPoliciesList\"T\332A\016" - + "project,region\202\323\344\223\002=\022;/compute/v1/projec" - + "ts/{project}/regions/{region}/sslPolicie" - + "s\022\216\002\n\025ListAvailableFeatures\022F.google.clo" - + "ud.compute.v1.ListAvailableFeaturesRegio" - + "nSslPoliciesRequest\032A.google.cloud.compu" - + "te.v1.SslPoliciesListAvailableFeaturesRe" - + "sponse\"j\332A\016project,region\202\323\344\223\002S\022Q/comput" - + "e/v1/projects/{project}/regions/{region}" - + "/sslPolicies/listAvailableFeatures\022\214\002\n\005P" - + "atch\0224.google.cloud.compute.v1.PatchRegi" - + "onSslPolicyRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\250\001\332A-project,region,ssl_p" - + "olicy,ssl_policy_resource\212N\020RegionOperat" - + "ions\202\323\344\223\002_2H/compute/v1/projects/{projec" - + "t}/regions/{region}/sslPolicies/{ssl_pol" - + "icy}:\023ssl_policy_resource\032\202\001\312A\026compute.g" - + "oogleapis.com\322AVhttps://www.googleapis.c" - + "om/auth/compute,https://www.googleapis.c" - + "om/auth/cloud-platform\212\324\333\322\017\n2026-09-012\273" - + "\013\n\027RegionTargetHttpProxies\022\377\001\n\006Delete\022;." - + "google.cloud.compute.v1.DeleteRegionTarg" - + "etHttpProxyRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\223\001\332A project,region,targe" - + "t_http_proxy\212N\020RegionOperations\202\323\344\223\002W*U/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/targetHttpProxies/{target_http_pr" - + "oxy}\022\354\001\n\003Get\0228.google.cloud.compute.v1.G" - + "etRegionTargetHttpProxyRequest\032(.google." - + "cloud.compute.v1.TargetHttpProxy\"\200\001\332A pr" - + "oject,region,target_http_proxy\202\323\344\223\002W\022U/c" - + "ompute/v1/projects/{project}/regions/{re" - + "gion}/targetHttpProxies/{target_http_pro" - + "xy}\022\220\002\n\006Insert\022;.google.cloud.compute.v1" - + ".InsertRegionTargetHttpProxyRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\244\001\332A)pro" - + "ject,region,target_http_proxy_resource\212N" - + "\020RegionOperations\202\323\344\223\002_\"A/compute/v1/pro" - + "jects/{project}/regions/{region}/targetH" - + "ttpProxies:\032target_http_proxy_resource\022\315" - + "\001\n\004List\022;.google.cloud.compute.v1.ListRe" - + "gionTargetHttpProxiesRequest\032,.google.cl" - + "oud.compute.v1.TargetHttpProxyList\"Z\332A\016p" - + "roject,region\202\323\344\223\002C\022A/compute/v1/project" - + "s/{project}/regions/{region}/targetHttpP" - + "roxies\022\306\002\n\tSetUrlMap\022>.google.cloud.comp" - + "ute.v1.SetUrlMapRegionTargetHttpProxyReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\324\001\332A;project,region,target_http_proxy,u" - + "rl_map_reference_resource\212N\020RegionOperat" - + "ions\202\323\344\223\002}\"_/compute/v1/projects/{projec" - + "t}/regions/{region}/targetHttpProxies/{t" - + "arget_http_proxy}/setUrlMap:\032url_map_ref", - "erence_resource\032\202\001\312A\026compute.googleapis." - + "com\322AVhttps://www.googleapis.com/auth/co" - + "mpute,https://www.googleapis.com/auth/cl" - + "oud-platform\212\324\333\322\017\n2026-09-012\304\021\n\030RegionT" - + "argetHttpsProxies\022\203\002\n\006Delete\022<.google.cl" - + "oud.compute.v1.DeleteRegionTargetHttpsPr" - + "oxyRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\226\001\332A!project,region,target_https_" - + "proxy\212N\020RegionOperations\202\323\344\223\002Y*W/compute" - + "/v1/projects/{project}/regions/{region}/" - + "targetHttpsProxies/{target_https_proxy}\022" - + "\361\001\n\003Get\0229.google.cloud.compute.v1.GetReg" - + "ionTargetHttpsProxyRequest\032).google.clou" - + "d.compute.v1.TargetHttpsProxy\"\203\001\332A!proje" - + "ct,region,target_https_proxy\202\323\344\223\002Y\022W/com" + + "tform\212\324\333\322\017\n2026-09-012\367*\n\035RegionNetworkF" + + "irewallPolicies\022\353\002\n\016AddAssociation\022I.goo" + + "gle.cloud.compute.v1.AddAssociationRegio" + + "nNetworkFirewallPolicyRequest\032\".google.c" + + "loud.compute.v1.Operation\"\351\001\332ACproject,r" + + "egion,firewall_policy,firewall_policy_as" + + "sociation_resource\212N\020RegionOperations\202\323\344" + + "\223\002\211\001\"a/compute/v1/projects/{project}/reg" + + "ions/{region}/firewallPolicies/{firewall" + + "_policy}/addAssociation:$firewall_policy" + + "_association_resource\022\307\002\n\007AddRule\022B.goog" + + "le.cloud.compute.v1.AddRuleRegionNetwork" + + "FirewallPolicyRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\323\001\332A.google.cloud.compute." + + "v1.GetRegionNetworkFirewallPolicyRequest" + + "\032\'.google.cloud.compute.v1.FirewallPolic" + + "y\"{\332A\036project,region,firewall_policy\202\323\344\223" + + "\002T\022R/compute/v1/projects/{project}/regio" + + "ns/{region}/firewallPolicies/{firewall_p" + + "olicy}\022\234\002\n\016GetAssociation\022I.google.cloud" + + ".compute.v1.GetAssociationRegionNetworkF" + + "irewallPolicyRequest\0322.google.cloud.comp" + + "ute.v1.FirewallPolicyAssociation\"\212\001\332A\036pr" + + "oject,region,firewall_policy\202\323\344\223\002c\022a/com" + "pute/v1/projects/{project}/regions/{regi" - + "on}/targetHttpsProxies/{target_https_pro" - + "xy}\022\224\002\n\006Insert\022<.google.cloud.compute.v1" - + ".InsertRegionTargetHttpsProxyRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\247\001\332A*pr" - + "oject,region,target_https_proxy_resource" - + "\212N\020RegionOperations\202\323\344\223\002a\"B/compute/v1/p" - + "rojects/{project}/regions/{region}/targe" - + "tHttpsProxies:\033target_https_proxy_resour" - + "ce\022\320\001\n\004List\022<.google.cloud.compute.v1.Li" - + "stRegionTargetHttpsProxiesRequest\032-.goog" - + "le.cloud.compute.v1.TargetHttpsProxyList" - + "\"[\332A\016project,region\202\323\344\223\002D\022B/compute/v1/p" - + "rojects/{project}/regions/{region}/targe" - + "tHttpsProxies\022\272\002\n\005Patch\022;.google.cloud.c" - + "ompute.v1.PatchRegionTargetHttpsProxyReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\317\001\332A=project,region,target_https_proxy," - + "target_https_proxy_resource\212N\020RegionOper" - + "ations\202\323\344\223\002v2W/compute/v1/projects/{proj" - + "ect}/regions/{region}/targetHttpsProxies" - + "/{target_https_proxy}:\033target_https_prox" - + "y_resource\022\264\003\n\022SetSslCertificates\022H.goog" - + "le.cloud.compute.v1.SetSslCertificatesRe" - + "gionTargetHttpsProxyRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\257\002\332Acproject,reg" - + "ion,target_https_proxy,region_target_htt" - + "ps_proxies_set_ssl_certificates_request_" - + "resource\212N\020RegionOperations\202\323\344\223\002\257\001\"j/com" + + "on}/firewallPolicies/{firewall_policy}/g" + + "etAssociation\022\267\002\n\025GetEffectiveFirewalls\022" + + "P.google.cloud.compute.v1.GetEffectiveFi" + + "rewallsRegionNetworkFirewallPolicyReques" + + "t\032S.google.cloud.compute.v1.RegionNetwor" + + "kFirewallPoliciesGetEffectiveFirewallsRe" + + "sponse\"w\332A\026project,region,network\202\323\344\223\002X\022" + + "V/compute/v1/projects/{project}/regions/" + + "{region}/firewallPolicies/getEffectiveFi" + + "rewalls\022\364\001\n\014GetIamPolicy\022G.google.cloud." + + "compute.v1.GetIamPolicyRegionNetworkFire" + + "wallPolicyRequest\032\037.google.cloud.compute" + + ".v1.Policy\"z\332A\027project,region,resource\202\323" + + "\344\223\002Z\022X/compute/v1/projects/{project}/reg" + + "ions/{region}/firewallPolicies/{resource", + "}/getIamPolicy\022\200\002\n\007GetRule\022B.google.clou" + + "d.compute.v1.GetRuleRegionNetworkFirewal" + + "lPolicyRequest\032+.google.cloud.compute.v1" + + ".FirewallPolicyRule\"\203\001\332A\036project,region," + + "firewall_policy\202\323\344\223\002\\\022Z/compute/v1/proje" + + "cts/{project}/regions/{region}/firewallP" + + "olicies/{firewall_policy}/getRule\022\221\002\n\006In" + + "sert\022A.google.cloud.compute.v1.InsertReg" + + "ionNetworkFirewallPolicyRequest\032\".google" + + ".cloud.compute.v1.Operation\"\237\001\332A\'project" + + ",region,firewall_policy_resource\212N\020Regio" + + "nOperations\202\323\344\223\002\\\"@/compute/v1/projects/" + + "{project}/regions/{region}/firewallPolic" + + "ies:\030firewall_policy_resource\022\321\001\n\004List\022A" + + ".google.cloud.compute.v1.ListRegionNetwo" + + "rkFirewallPoliciesRequest\032+.google.cloud" + + ".compute.v1.FirewallPolicyList\"Y\332A\016proje" + + "ct,region\202\323\344\223\002B\022@/compute/v1/projects/{p" + + "roject}/regions/{region}/firewallPolicie" + + "s\022\261\002\n\005Patch\022@.google.cloud.compute.v1.Pa" + + "tchRegionNetworkFirewallPolicyRequest\032\"." + + "google.cloud.compute.v1.Operation\"\301\001\332A7p" + + "roject,region,firewall_policy,firewall_p" + + "olicy_resource\212N\020RegionOperations\202\323\344\223\002n2" + + "R/compute/v1/projects/{project}/regions/" + + "{region}/firewallPolicies/{firewall_poli" + + "cy}:\030firewall_policy_resource\022\361\002\n\020PatchA" + + "ssociation\022K.google.cloud.compute.v1.Pat" + + "chAssociationRegionNetworkFirewallPolicy" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\353\001\332ACproject,region,firewall_policy," + + "firewall_policy_association_resource\212N\020R" + + "egionOperations\202\323\344\223\002\213\001\"c/compute/v1/proj" + + "ects/{project}/regions/{region}/firewall" + + "Policies/{firewall_policy}/patchAssociat" + + "ion:$firewall_policy_association_resourc" + + "e\022\315\002\n\tPatchRule\022D.google.cloud.compute.v" + + "1.PatchRuleRegionNetworkFirewallPolicyRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\325\001\332A.google.cloud.compute.v1.RemoveRuleRegi" + + "onSecurityPolicyRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\231\001\332A\036project,region," + + "security_policy\212N\020RegionOperations\202\323\344\223\002_" + + "\"]/compute/v1/projects/{project}/regions" + + "/{region}/securityPolicies/{security_pol" + + "icy}/removeRule\022\302\002\n\tSetLabels\022=.google.c" + + "loud.compute.v1.SetLabelsRegionSecurityP" + + "olicyRequest\032\".google.cloud.compute.v1.O" + + "peration\"\321\001\332A:project,region,resource,re" + + "gion_set_labels_request_resource\212N\020Regio" + + "nOperations\202\323\344\223\002{\"U/compute/v1/projects/" + + "{project}/regions/{region}/securityPolic" + + "ies/{resource}/setLabels:\"region_set_lab" + + "els_request_resource\032\202\001\312A\026compute.google" + + "apis.com\322AVhttps://www.googleapis.com/au" + + "th/compute,https://www.googleapis.com/au" + + "th/cloud-platform\212\324\333\322\017\n2026-09-012\365\004\n\026Re" + + "gionSnapshotSettings\022\305\001\n\003Get\0228.google.cl" + + "oud.compute.v1.GetRegionSnapshotSettingR" + + "equest\032).google.cloud.compute.v1.Snapsho" + + "tSettings\"Y\332A\016project,region\202\323\344\223\002B\022@/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/snapshotSettings\022\215\002\n\005Patch\022:.google." + + "cloud.compute.v1.PatchRegionSnapshotSett" + + "ingRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\243\001\332A)project,region,snapshot_sett" + + "ings_resource\212N\020RegionOperations\202\323\344\223\002^2@" + + "/compute/v1/projects/{project}/regions/{" + + "region}/snapshotSettings:\032snapshot_setti" + + "ngs_resource\032\202\001\312A\026compute.googleapis.com" + + "\322AVhttps://www.googleapis.com/auth/compu" + + "te,https://www.googleapis.com/auth/cloud" + + "-platform\212\324\333\322\017\n2026-09-012\325\023\n\017RegionSnap" + + "shots\022\335\001\n\006Delete\0224.google.cloud.compute." + + "v1.DeleteRegionSnapshotRequest\032\".google." + + "cloud.compute.v1.Operation\"y\332A\027project,r" + + "egion,snapshot\212N\020RegionOperations\202\323\344\223\002F*" + + "D/compute/v1/projects/{project}/regions/" + + "{region}/snapshots/{snapshot}\022\303\001\n\003Get\0221." + + "google.cloud.compute.v1.GetRegionSnapsho" + + "tRequest\032!.google.cloud.compute.v1.Snaps" + + "hot\"f\332A\027project,region,snapshot\202\323\344\223\002F\022D/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/snapshots/{snapshot}\022\340\001\n\014GetIamPo" + + "licy\022:.google.cloud.compute.v1.GetIamPol" + + "icyRegionSnapshotRequest\032\037.google.cloud." + + "compute.v1.Policy\"s\332A\027project,region,res" + + "ource\202\323\344\223\002S\022Q/compute/v1/projects/{proje" + + "ct}/regions/{region}/snapshots/{resource" + + "}/getIamPolicy\022\357\001\n\006Insert\0224.google.cloud" + + ".compute.v1.InsertRegionSnapshotRequest\032" + + "\".google.cloud.compute.v1.Operation\"\212\001\332A" + + " project,region,snapshot_resource\212N\020Regi" + + "onOperations\202\323\344\223\002N\"9/compute/v1/projects" + + "/{project}/regions/{region}/snapshots:\021s" + + "napshot_resource\022\266\001\n\004List\0223.google.cloud" + + ".compute.v1.ListRegionSnapshotsRequest\032%" + + ".google.cloud.compute.v1.SnapshotList\"R\332" + + "A\016project,region\202\323\344\223\002;\0229/compute/v1/proj" + + "ects/{project}/regions/{region}/snapshot" + + "s\022\250\002\n\014SetIamPolicy\022:.google.cloud.comput" + + "e.v1.SetIamPolicyRegionSnapshotRequest\032\037" + + ".google.cloud.compute.v1.Policy\"\272\001\332A:pro" + + "ject,region,resource,region_set_policy_r" + + "equest_resource\202\323\344\223\002w\"Q/compute/v1/proje" + + "cts/{project}/regions/{region}/snapshots" + + "/{resource}/setIamPolicy:\"region_set_pol" + + "icy_request_resource\022\265\002\n\tSetLabels\0227.goo" + + "gle.cloud.compute.v1.SetLabelsRegionSnap" + + "shotRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\312\001\332A:project,region,resource,reg" + + "ion_set_labels_request_resource\212N\020Region" + + "Operations\202\323\344\223\002t\"N/compute/v1/projects/{" + + "project}/regions/{region}/snapshots/{res" + + "ource}/setLabels:\"region_set_labels_requ" + + "est_resource\022\311\002\n\022TestIamPermissions\022@.go" + + "ogle.cloud.compute.v1.TestIamPermissions" + + "RegionSnapshotRequest\0320.google.cloud.com" + + "pute.v1.TestPermissionsResponse\"\276\001\332A9pro" + + "ject,region,resource,test_permissions_re" + + "quest_resource\202\323\344\223\002|\"W/compute/v1/projec" + + "ts/{project}/regions/{region}/snapshots/" + + "{resource}/testIamPermissions:!test_perm" + + "issions_request_resource\022\331\002\n\014UpdateKmsKe" + + "y\022:.google.cloud.compute.v1.UpdateKmsKey" + + "RegionSnapshotRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\350\001\332AGproject,region,sn" + + "apshot,region_snapshot_update_kms_key_re" + + "quest_resource\212N\020RegionOperations\202\323\344\223\002\204\001" + + "\"Q/compute/v1/projects/{project}/regions" + + "/{region}/snapshots/{snapshot}/updateKms" + + "Key:/region_snapshot_update_kms_key_requ" + + "est_resource\032\202\001\312A\026compute.googleapis.com" + + "\322AVhttps://www.googleapis.com/auth/compu" + + "te,https://www.googleapis.com/auth/cloud" + + "-platform\212\324\333\322\017\n2026-09-012\324\010\n\025RegionSslC" + + "ertificates\022\370\001\n\006Delete\022:.google.cloud.co" + + "mpute.v1.DeleteRegionSslCertificateReque" + + "st\032\".google.cloud.compute.v1.Operation\"\215" + + "\001\332A\036project,region,ssl_certificate\212N\020Reg" + + "ionOperations\202\323\344\223\002S*Q/compute/v1/project" + + "s/{project}/regions/{region}/sslCertific" + + "ates/{ssl_certificate}\022\343\001\n\003Get\0227.google." + + "cloud.compute.v1.GetRegionSslCertificate" + + "Request\032\'.google.cloud.compute.v1.SslCer" + + "tificate\"z\332A\036project,region,ssl_certific" + + "ate\202\323\344\223\002S\022Q/compute/v1/projects/{project" + + "}/regions/{region}/sslCertificates/{ssl_" + + "certificate}\022\211\002\n\006Insert\022:.google.cloud.c" + + "ompute.v1.InsertRegionSslCertificateRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\236\001\332A\'project,region,ssl_certificate_reso" + + "urce\212N\020RegionOperations\202\323\344\223\002[\"?/compute/" + + "v1/projects/{project}/regions/{region}/s" + + "slCertificates:\030ssl_certificate_resource" + + "\022\310\001\n\004List\0229.google.cloud.compute.v1.List" + + "RegionSslCertificatesRequest\032+.google.cl" + + "oud.compute.v1.SslCertificateList\"X\332A\016pr" + + "oject,region\202\323\344\223\002A\022?/compute/v1/projects" + + "/{project}/regions/{region}/sslCertifica" + + "tes\032\202\001\312A\026compute.googleapis.com\322AVhttps:" + + "//www.googleapis.com/auth/compute,https:" + + "//www.googleapis.com/auth/cloud-platform" + + "\212\324\333\322\017\n2026-09-012\246\014\n\021RegionSslPolicies\022\344" + + "\001\n\006Delete\0225.google.cloud.compute.v1.Dele" + + "teRegionSslPolicyRequest\032\".google.cloud." + + "compute.v1.Operation\"\177\332A\031project,region," + + "ssl_policy\212N\020RegionOperations\202\323\344\223\002J*H/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/sslPolicies/{ssl_policy}\022\313\001\n\003Get\0222." + + "google.cloud.compute.v1.GetRegionSslPoli" + + "cyRequest\032\".google.cloud.compute.v1.SslP" + + "olicy\"l\332A\031project,region,ssl_policy\202\323\344\223\002" + + "J\022H/compute/v1/projects/{project}/region" + + "s/{region}/sslPolicies/{ssl_policy}\022\366\001\n\006" + + "Insert\0225.google.cloud.compute.v1.InsertR" + + "egionSslPolicyRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\220\001\332A\"project,region,ss" + + "l_policy_resource\212N\020RegionOperations\202\323\344\223" + + "\002R\";/compute/v1/projects/{project}/regio" + + "ns/{region}/sslPolicies:\023ssl_policy_reso" + + "urce\022\275\001\n\004List\0225.google.cloud.compute.v1." + + "ListRegionSslPoliciesRequest\032(.google.cl" + + "oud.compute.v1.SslPoliciesList\"T\332A\016proje" + + "ct,region\202\323\344\223\002=\022;/compute/v1/projects/{p" + + "roject}/regions/{region}/sslPolicies\022\216\002\n" + + "\025ListAvailableFeatures\022F.google.cloud.co" + + "mpute.v1.ListAvailableFeaturesRegionSslP" + + "oliciesRequest\032A.google.cloud.compute.v1" + + ".SslPoliciesListAvailableFeaturesRespons" + + "e\"j\332A\016project,region\202\323\344\223\002S\022Q/compute/v1/" + + "projects/{project}/regions/{region}/sslP" + + "olicies/listAvailableFeatures\022\214\002\n\005Patch\022" + + "4.google.cloud.compute.v1.PatchRegionSsl" + + "PolicyRequest\032\".google.cloud.compute.v1." + + "Operation\"\250\001\332A-project,region,ssl_policy" + + ",ssl_policy_resource\212N\020RegionOperations\202" + + "\323\344\223\002_2H/compute/v1/projects/{project}/re" + + "gions/{region}/sslPolicies/{ssl_policy}:" + + "\023ssl_policy_resource\032\202\001\312A\026compute.google" + + "apis.com\322AVhttps://www.googleapis.com/au" + + "th/compute,https://www.googleapis.com/au" + + "th/cloud-platform\212\324\333\322\017\n2026-09-012\273\013\n\027Re" + + "gionTargetHttpProxies\022\377\001\n\006Delete\022;.googl" + + "e.cloud.compute.v1.DeleteRegionTargetHtt" + "pProxyRequest\032\".google.cloud.compute.v1." - + "Operation\"\220\001\332A\037project,region,target_tcp" - + "_proxy\212N\020RegionOperations\202\323\344\223\002U*S/comput" + + "Operation\"\223\001\332A project,region,target_htt" + + "p_proxy\212N\020RegionOperations\202\323\344\223\002W*U/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/targetHttpProxies/{target_http_proxy}\022" + + "\354\001\n\003Get\0228.google.cloud.compute.v1.GetReg" + + "ionTargetHttpProxyRequest\032(.google.cloud" + + ".compute.v1.TargetHttpProxy\"\200\001\332A project" + + ",region,target_http_proxy\202\323\344\223\002W\022U/comput" + "e/v1/projects/{project}/regions/{region}" - + "/targetTcpProxies/{target_tcp_proxy}\022\346\001\n" - + "\003Get\0227.google.cloud.compute.v1.GetRegion" - + "TargetTcpProxyRequest\032\'.google.cloud.com" - + "pute.v1.TargetTcpProxy\"}\332A\037project,regio" - + "n,target_tcp_proxy\202\323\344\223\002U\022S/compute/v1/pr" - + "ojects/{project}/regions/{region}/target" - + "TcpProxies/{target_tcp_proxy}\022\214\002\n\006Insert" - + "\022:.google.cloud.compute.v1.InsertRegionT" - + "argetTcpProxyRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\241\001\332A(project,region,tar" - + "get_tcp_proxy_resource\212N\020RegionOperation" - + "s\202\323\344\223\002]\"@/compute/v1/projects/{project}/" - + "regions/{region}/targetTcpProxies:\031targe" - + "t_tcp_proxy_resource\022\312\001\n\004List\022:.google.c" - + "loud.compute.v1.ListRegionTargetTcpProxi" - + "esRequest\032+.google.cloud.compute.v1.Targ" - + "etTcpProxyList\"Y\332A\016project,region\202\323\344\223\002B\022" - + "@/compute/v1/projects/{project}/regions/" - + "{region}/targetTcpProxies\032\202\001\312A\026compute.g" - + "oogleapis.com\322AVhttps://www.googleapis.c" - + "om/auth/compute,https://www.googleapis.c" - + "om/auth/cloud-platform\212\324\333\322\017\n2026-09-012\375" - + "\r\n\rRegionUrlMaps\022\327\001\n\006Delete\0222.google.clo" - + "ud.compute.v1.DeleteRegionUrlMapRequest\032" - + "\".google.cloud.compute.v1.Operation\"u\332A\026" - + "project,region,url_map\212N\020RegionOperation" - + "s\202\323\344\223\002C*A/compute/v1/projects/{project}/" - + "regions/{region}/urlMaps/{url_map}\022\273\001\n\003G" - + "et\022/.google.cloud.compute.v1.GetRegionUr" - + "lMapRequest\032\037.google.cloud.compute.v1.Ur" - + "lMap\"b\332A\026project,region,url_map\202\323\344\223\002C\022A/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/urlMaps/{url_map}\022\351\001\n\006Insert\0222.go" - + "ogle.cloud.compute.v1.InsertRegionUrlMap" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\206\001\332A\037project,region,url_map_resource" - + "\212N\020RegionOperations\202\323\344\223\002K\"7/compute/v1/p" - + "rojects/{project}/regions/{region}/urlMa" - + "ps:\020url_map_resource\022\260\001\n\004List\0221.google.c" - + "loud.compute.v1.ListRegionUrlMapsRequest" - + "\032#.google.cloud.compute.v1.UrlMapList\"P\332" - + "A\016project,region\202\323\344\223\0029\0227/compute/v1/proj" - + "ects/{project}/regions/{region}/urlMaps\022" - + "\371\001\n\005Patch\0221.google.cloud.compute.v1.Patc" - + "hRegionUrlMapRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\230\001\332A\'project,region,url" - + "_map,url_map_resource\212N\020RegionOperations" - + "\202\323\344\223\002U2A/compute/v1/projects/{project}/r" - + "egions/{region}/urlMaps/{url_map}:\020url_m" - + "ap_resource\022\373\001\n\006Update\0222.google.cloud.co" - + "mpute.v1.UpdateRegionUrlMapRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\230\001\332A\'proj" - + "ect,region,url_map,url_map_resource\212N\020Re" - + "gionOperations\202\323\344\223\002U\032A/compute/v1/projec" - + "ts/{project}/regions/{region}/urlMaps/{u" - + "rl_map}:\020url_map_resource\022\265\002\n\010Validate\0224" - + ".google.cloud.compute.v1.ValidateRegionU" - + "rlMapRequest\0320.google.cloud.compute.v1.U" - + "rlMapsValidateResponse\"\300\001\332A@project,regi" - + "on,url_map,region_url_maps_validate_requ" - + "est_resource\202\323\344\223\002w\"J/compute/v1/projects" - + "/{project}/regions/{region}/urlMaps/{url" - + "_map}/validate:)region_url_maps_validate" - + "_request_resource\032\202\001\312A\026compute.googleapi" + + "/targetHttpProxies/{target_http_proxy}\022\220" + + "\002\n\006Insert\022;.google.cloud.compute.v1.Inse" + + "rtRegionTargetHttpProxyRequest\032\".google." + + "cloud.compute.v1.Operation\"\244\001\332A)project," + + "region,target_http_proxy_resource\212N\020Regi" + + "onOperations\202\323\344\223\002_\"A/compute/v1/projects" + + "/{project}/regions/{region}/targetHttpPr" + + "oxies:\032target_http_proxy_resource\022\315\001\n\004Li" + + "st\022;.google.cloud.compute.v1.ListRegionT" + + "argetHttpProxiesRequest\032,.google.cloud.c" + + "ompute.v1.TargetHttpProxyList\"Z\332A\016projec" + + "t,region\202\323\344\223\002C\022A/compute/v1/projects/{pr" + + "oject}/regions/{region}/targetHttpProxie" + + "s\022\306\002\n\tSetUrlMap\022>.google.cloud.compute.v" + + "1.SetUrlMapRegionTargetHttpProxyRequest\032" + + "\".google.cloud.compute.v1.Operation\"\324\001\332A" + + ";project,region,target_http_proxy,url_ma" + + "p_reference_resource\212N\020RegionOperations\202" + + "\323\344\223\002}\"_/compute/v1/projects/{project}/re" + + "gions/{region}/targetHttpProxies/{target", + "_http_proxy}/setUrlMap:\032url_map_referenc" + + "e_resource\032\202\001\312A\026compute.googleapis.com\322A" + + "Vhttps://www.googleapis.com/auth/compute" + + ",https://www.googleapis.com/auth/cloud-p" + + "latform\212\324\333\322\017\n2026-09-012\304\021\n\030RegionTarget" + + "HttpsProxies\022\203\002\n\006Delete\022<.google.cloud.c" + + "ompute.v1.DeleteRegionTargetHttpsProxyRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\226\001\332A!project,region,target_https_proxy" + + "\212N\020RegionOperations\202\323\344\223\002Y*W/compute/v1/p" + + "rojects/{project}/regions/{region}/targe" + + "tHttpsProxies/{target_https_proxy}\022\361\001\n\003G" + + "et\0229.google.cloud.compute.v1.GetRegionTa" + + "rgetHttpsProxyRequest\032).google.cloud.com" + + "pute.v1.TargetHttpsProxy\"\203\001\332A!project,re" + + "gion,target_https_proxy\202\323\344\223\002Y\022W/compute/" + + "v1/projects/{project}/regions/{region}/t" + + "argetHttpsProxies/{target_https_proxy}\022\224" + + "\002\n\006Insert\022<.google.cloud.compute.v1.Inse" + + "rtRegionTargetHttpsProxyRequest\032\".google" + + ".cloud.compute.v1.Operation\"\247\001\332A*project" + + ",region,target_https_proxy_resource\212N\020Re" + + "gionOperations\202\323\344\223\002a\"B/compute/v1/projec" + + "ts/{project}/regions/{region}/targetHttp" + + "sProxies:\033target_https_proxy_resource\022\320\001" + + "\n\004List\022<.google.cloud.compute.v1.ListReg" + + "ionTargetHttpsProxiesRequest\032-.google.cl" + + "oud.compute.v1.TargetHttpsProxyList\"[\332A\016" + + "project,region\202\323\344\223\002D\022B/compute/v1/projec" + + "ts/{project}/regions/{region}/targetHttp" + + "sProxies\022\272\002\n\005Patch\022;.google.cloud.comput" + + "e.v1.PatchRegionTargetHttpsProxyRequest\032" + + "\".google.cloud.compute.v1.Operation\"\317\001\332A" + + "=project,region,target_https_proxy,targe" + + "t_https_proxy_resource\212N\020RegionOperation" + + "s\202\323\344\223\002v2W/compute/v1/projects/{project}/" + + "regions/{region}/targetHttpsProxies/{tar" + + "get_https_proxy}:\033target_https_proxy_res" + + "ource\022\264\003\n\022SetSslCertificates\022H.google.cl" + + "oud.compute.v1.SetSslCertificatesRegionT" + + "argetHttpsProxyRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\257\002\332Acproject,region,t" + + "arget_https_proxy,region_target_https_pr" + + "oxies_set_ssl_certificates_request_resou" + + "rce\212N\020RegionOperations\202\323\344\223\002\257\001\"j/compute/" + + "v1/projects/{project}/regions/{region}/t" + + "argetHttpsProxies/{target_https_proxy}/s" + + "etSslCertificates:Aregion_target_https_p" + + "roxies_set_ssl_certificates_request_reso" + + "urce\022\312\002\n\tSetUrlMap\022?.google.cloud.comput" + + "e.v1.SetUrlMapRegionTargetHttpsProxyRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\327\001\332A.google.cloud.compu" - + "te.v1.AggregatedListResourcePoliciesRequ" - + "est\0325.google.cloud.compute.v1.ResourcePo" - + "licyAggregatedList\"L\332A\007project\202\323\344\223\002<\022:/c" - + "ompute/v1/projects/{project}/aggregated/" - + "resourcePolicies\022\363\001\n\006Delete\0224.google.clo" - + "ud.compute.v1.DeleteResourcePolicyReques" - + "t\032\".google.cloud.compute.v1.Operation\"\216\001" - + "\332A\036project,region,resource_policy\212N\020Regi" - + "onOperations\202\323\344\223\002T*R/compute/v1/projects" - + "/{project}/regions/{region}/resourcePoli" - + "cies/{resource_policy}\022\336\001\n\003Get\0221.google." - + "cloud.compute.v1.GetResourcePolicyReques" - + "t\032\'.google.cloud.compute.v1.ResourcePoli" - + "cy\"{\332A\036project,region,resource_policy\202\323\344" - + "\223\002T\022R/compute/v1/projects/{project}/regi" + + "vationRequest\032\".google.cloud.compute.v1." + + "Operation\"\363\001\332AJproject,zone,reservation," + + "reservations_perform_maintenance_request" + + "_resource\212N\016ZoneOperations\202\323\344\223\002\216\001\"Y/comp" + + "ute/v1/projects/{project}/zones/{zone}/r" + + "eservations/{reservation}/performMainten" + + "ance:1reservations_perform_maintenance_r" + + "equest_resource\022\256\002\n\006Resize\0221.google.clou" + + "d.compute.v1.ResizeReservationRequest\032\"." + + "google.cloud.compute.v1.Operation\"\314\001\332A=p" + + "roject,zone,reservation,reservations_res" + + "ize_request_resource\212N\016ZoneOperations\202\323\344" + + "\223\002u\"M/compute/v1/projects/{project}/zone" + + "s/{zone}/reservations/{reservation}/resi" + + "ze:$reservations_resize_request_resource", + "\022\236\002\n\014SetIamPolicy\0227.google.cloud.compute" + + ".v1.SetIamPolicyReservationRequest\032\037.goo" + + "gle.cloud.compute.v1.Policy\"\263\001\332A6project" + + ",zone,resource,zone_set_policy_request_r" + + "esource\202\323\344\223\002t\"P/compute/v1/projects/{pro" + + "ject}/zones/{zone}/reservations/{resourc" + + "e}/setIamPolicy: zone_set_policy_request" + + "_resource\022\303\002\n\022TestIamPermissions\022=.googl" + + "e.cloud.compute.v1.TestIamPermissionsRes" + + "ervationRequest\0320.google.cloud.compute.v" + + "1.TestPermissionsResponse\"\273\001\332A7project,z" + + "one,resource,test_permissions_request_re" + + "source\202\323\344\223\002{\"V/compute/v1/projects/{proj" + + "ect}/zones/{zone}/reservations/{resource" + + "}/testIamPermissions:!test_permissions_r" + + "equest_resource\022\207\002\n\006Update\0221.google.clou" + + "d.compute.v1.UpdateReservationRequest\032\"." + + "google.cloud.compute.v1.Operation\"\245\001\332A-p" + + "roject,zone,reservation,reservation_reso" + + "urce\212N\016ZoneOperations\202\323\344\223\002^2F/compute/v1" + + "/projects/{project}/zones/{zone}/reserva" + + "tions/{reservation}:\024reservation_resourc" + + "e\032\202\001\312A\026compute.googleapis.com\322AVhttps://" + + "www.googleapis.com/auth/compute,https://" + + "www.googleapis.com/auth/cloud-platform\212\324" + + "\333\322\017\n2026-09-012\253\023\n\020ResourcePolicies\022\325\001\n\016" + + "AggregatedList\022>.google.cloud.compute.v1" + + ".AggregatedListResourcePoliciesRequest\0325" + + ".google.cloud.compute.v1.ResourcePolicyA" + + "ggregatedList\"L\332A\007project\202\323\344\223\002<\022:/comput" + + "e/v1/projects/{project}/aggregated/resou" + + "rcePolicies\022\363\001\n\006Delete\0224.google.cloud.co" + + "mpute.v1.DeleteResourcePolicyRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\216\001\332A\036pr" + + "oject,region,resource_policy\212N\020RegionOpe" + + "rations\202\323\344\223\002T*R/compute/v1/projects/{pro" + + "ject}/regions/{region}/resourcePolicies/" + + "{resource_policy}\022\336\001\n\003Get\0221.google.cloud" + + ".compute.v1.GetResourcePolicyRequest\032\'.g" + + "oogle.cloud.compute.v1.ResourcePolicy\"{\332" + + "A\036project,region,resource_policy\202\323\344\223\002T\022R" + + "/compute/v1/projects/{project}/regions/{" + + "region}/resourcePolicies/{resource_polic" + + "y}\022\347\001\n\014GetIamPolicy\022:.google.cloud.compu" + + "te.v1.GetIamPolicyResourcePolicyRequest\032" + + "\037.google.cloud.compute.v1.Policy\"z\332A\027pro" + + "ject,region,resource\202\323\344\223\002Z\022X/compute/v1/" + + "projects/{project}/regions/{region}/reso" + + "urcePolicies/{resource}/getIamPolicy\022\204\002\n" + + "\006Insert\0224.google.cloud.compute.v1.Insert" + + "ResourcePolicyRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\237\001\332A\'project,region,re" + + "source_policy_resource\212N\020RegionOperation" + + "s\202\323\344\223\002\\\"@/compute/v1/projects/{project}/" + + "regions/{region}/resourcePolicies:\030resou" + + "rce_policy_resource\022\304\001\n\004List\0224.google.cl" + + "oud.compute.v1.ListResourcePoliciesReque" + + "st\032+.google.cloud.compute.v1.ResourcePol" + + "icyList\"Y\332A\016project,region\202\323\344\223\002B\022@/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/resourcePolicies\022\244\002\n\005Patch\0223.google.cl" + + "oud.compute.v1.PatchResourcePolicyReques" + + "t\032\".google.cloud.compute.v1.Operation\"\301\001" + + "\332A7project,region,resource_policy,resour" + + "ce_policy_resource\212N\020RegionOperations\202\323\344" + + "\223\002n2R/compute/v1/projects/{project}/regi" + "ons/{region}/resourcePolicies/{resource_" - + "policy}\022\347\001\n\014GetIamPolicy\022:.google.cloud." - + "compute.v1.GetIamPolicyResourcePolicyReq" - + "uest\032\037.google.cloud.compute.v1.Policy\"z\332" - + "A\027project,region,resource\202\323\344\223\002Z\022X/comput" - + "e/v1/projects/{project}/regions/{region}" - + "/resourcePolicies/{resource}/getIamPolic" - + "y\022\204\002\n\006Insert\0224.google.cloud.compute.v1.I" - + "nsertResourcePolicyRequest\032\".google.clou" - + "d.compute.v1.Operation\"\237\001\332A\'project,regi" - + "on,resource_policy_resource\212N\020RegionOper" - + "ations\202\323\344\223\002\\\"@/compute/v1/projects/{proj" - + "ect}/regions/{region}/resourcePolicies:\030" - + "resource_policy_resource\022\304\001\n\004List\0224.goog" - + "le.cloud.compute.v1.ListResourcePolicies" - + "Request\032+.google.cloud.compute.v1.Resour" - + "cePolicyList\"Y\332A\016project,region\202\323\344\223\002B\022@/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/resourcePolicies\022\244\002\n\005Patch\0223.goog" - + "le.cloud.compute.v1.PatchResourcePolicyR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\301\001\332A7project,region,resource_policy,r" - + "esource_policy_resource\212N\020RegionOperatio" - + "ns\202\323\344\223\002n2R/compute/v1/projects/{project}" - + "/regions/{region}/resourcePolicies/{reso" - + "urce_policy}:\030resource_policy_resource\022\257" - + "\002\n\014SetIamPolicy\022:.google.cloud.compute.v" - + "1.SetIamPolicyResourcePolicyRequest\032\037.go" - + "ogle.cloud.compute.v1.Policy\"\301\001\332A:projec" - + "t,region,resource,region_set_policy_requ" - + "est_resource\202\323\344\223\002~\"X/compute/v1/projects" - + "/{project}/regions/{region}/resourcePoli" - + "cies/{resource}/setIamPolicy:\"region_set" - + "_policy_request_resource\022\321\002\n\022TestIamPerm" - + "issions\022@.google.cloud.compute.v1.TestIa" - + "mPermissionsResourcePolicyRequest\0320.goog" - + "le.cloud.compute.v1.TestPermissionsRespo" - + "nse\"\306\001\332A9project,region,resource,test_pe" - + "rmissions_request_resource\202\323\344\223\002\203\001\"^/comp" - + "ute/v1/projects/{project}/regions/{regio" - + "n}/resourcePolicies/{resource}/testIamPe" - + "rmissions:!test_permissions_request_reso" - + "urce\032\202\001\312A\026compute.googleapis.com\322AVhttps" - + "://www.googleapis.com/auth/compute,https" - + "://www.googleapis.com/auth/cloud-platfor" - + "m\212\324\333\322\017\n2026-09-012\307\007\n\014RolloutPlans\022\324\001\n\006D" - + "elete\0221.google.cloud.compute.v1.DeleteRo" - + "lloutPlanRequest\032\".google.cloud.compute." - + "v1.Operation\"s\332A\024project,rollout_plan\212N\020" - + "GlobalOperations\202\323\344\223\002C*A/compute/v1/proj" - + "ects/{project}/global/rolloutPlans/{roll" - + "out_plan}\022\275\001\n\003Get\022..google.cloud.compute" - + ".v1.GetRolloutPlanRequest\032$.google.cloud" - + ".compute.v1.RolloutPlan\"`\332A\024project,roll" - + "out_plan\202\323\344\223\002C\022A/compute/v1/projects/{pr" - + "oject}/global/rolloutPlans/{rollout_plan" - + "}\022\346\001\n\006Insert\0221.google.cloud.compute.v1.I" - + "nsertRolloutPlanRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\204\001\332A\035project,rollout" - + "_plan_resource\212N\020GlobalOperations\202\323\344\223\002K\"" - + "2/compute/v1/projects/{project}/global/r" - + "olloutPlans:\025rollout_plan_resource\022\261\001\n\004L" - + "ist\0220.google.cloud.compute.v1.ListRollou" - + "tPlansRequest\0321.google.cloud.compute.v1." - + "RolloutPlansListResponse\"D\332A\007project\202\323\344\223" - + "\0024\0222/compute/v1/projects/{project}/globa" - + "l/rolloutPlans\032\202\001\312A\026compute.googleapis.c" - + "om\322AVhttps://www.googleapis.com/auth/com" - + "pute,https://www.googleapis.com/auth/clo" - + "ud-platform\212\324\333\322\017\n2026-09-012\317\013\n\010Rollouts" - + "\022\314\001\n\007Advance\022..google.cloud.compute.v1.A" - + "dvanceRolloutRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"m\332A\017project,rollout\212N\020G" - + "lobalOperations\202\323\344\223\002B\"@/compute/v1/proje" - + "cts/{project}/global/rollouts/{rollout}/" - + "advance\022\302\001\n\006Cancel\022-.google.cloud.comput" - + "e.v1.CancelRolloutRequest\032\".google.cloud" - + ".compute.v1.Operation\"e\332A\017project,rollou" - + "t\212N\020GlobalOperations\202\323\344\223\002:28/compute/v1/" - + "projects/{project}/global/rollouts/{roll" - + "out}\022\302\001\n\006Delete\022-.google.cloud.compute.v" - + "1.DeleteRolloutRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"e\332A\017project,rollout\212N" - + "\020GlobalOperations\202\323\344\223\002:*8/compute/v1/pro" - + "jects/{project}/global/rollouts/{rollout" - + "}\022\247\001\n\003Get\022*.google.cloud.compute.v1.GetR" - + "olloutRequest\032 .google.cloud.compute.v1." - + "Rollout\"R\332A\017project,rollout\202\323\344\223\002:\0228/comp" - + "ute/v1/projects/{project}/global/rollout" - + "s/{rollout}\022\245\001\n\004List\022,.google.cloud.comp" - + "ute.v1.ListRolloutsRequest\032-.google.clou" - + "d.compute.v1.RolloutsListResponse\"@\332A\007pr" - + "oject\202\323\344\223\0020\022./compute/v1/projects/{proje" - + "ct}/global/rollouts\022\306\001\n\005Pause\022,.google.c" - + "loud.compute.v1.PauseRolloutRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"k\332A\017proj" - + "ect,rollout\212N\020GlobalOperations\202\323\344\223\002@\">/c" - + "ompute/v1/projects/{project}/global/roll" - + "outs/{rollout}/pause\022\311\001\n\006Resume\022-.google" - + ".cloud.compute.v1.ResumeRolloutRequest\032\"" - + ".google.cloud.compute.v1.Operation\"l\332A\017p" - + "roject,rollout\212N\020GlobalOperations\202\323\344\223\002A\"" - + "?/compute/v1/projects/{project}/global/r" - + "ollouts/{rollout}/resume\032\202\001\312A\026compute.go" - + "ogleapis.com\322AVhttps://www.googleapis.co" - + "m/auth/compute,https://www.googleapis.co" - + "m/auth/cloud-platform\212\324\333\322\017\n2026-09-012\215*" - + "\n\007Routers\022\273\001\n\016AggregatedList\0225.google.cl" - + "oud.compute.v1.AggregatedListRoutersRequ" - + "est\032-.google.cloud.compute.v1.RouterAggr" - + "egatedList\"C\332A\007project\202\323\344\223\0023\0221/compute/v" - + "1/projects/{project}/aggregated/routers\022" - + "\317\001\n\006Delete\022,.google.cloud.compute.v1.Del" - + "eteRouterRequest\032\".google.cloud.compute." - + "v1.Operation\"s\332A\025project,region,router\212N" - + "\020RegionOperations\202\323\344\223\002B*@/compute/v1/pro" - + "jects/{project}/regions/{region}/routers" - + "/{router}\022\357\001\n\016DeleteNamedSet\0224.google.cl" - + "oud.compute.v1.DeleteNamedSetRouterReque" - + "st\032\".google.cloud.compute.v1.Operation\"\202" - + "\001\332A\025project,region,router\212N\020RegionOperat" - + "ions\202\323\344\223\002Q\"O/compute/v1/projects/{projec" - + "t}/regions/{region}/routers/{router}/del" - + "eteNamedSet\022\370\001\n\021DeleteRoutePolicy\0227.goog" - + "le.cloud.compute.v1.DeleteRoutePolicyRou" - + "terRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\205\001\332A\025project,region,router\212N\020Regi" - + "onOperations\202\323\344\223\002T\"R/compute/v1/projects" - + "/{project}/regions/{region}/routers/{rou" - + "ter}/deleteRoutePolicy\022\263\001\n\003Get\022).google." - + "cloud.compute.v1.GetRouterRequest\032\037.goog" - + "le.cloud.compute.v1.Router\"`\332A\025project,r" - + "egion,router\202\323\344\223\002B\022@/compute/v1/projects" + + "policy}:\030resource_policy_resource\022\257\002\n\014Se" + + "tIamPolicy\022:.google.cloud.compute.v1.Set" + + "IamPolicyResourcePolicyRequest\032\037.google." + + "cloud.compute.v1.Policy\"\301\001\332A:project,reg" + + "ion,resource,region_set_policy_request_r" + + "esource\202\323\344\223\002~\"X/compute/v1/projects/{pro" + + "ject}/regions/{region}/resourcePolicies/" + + "{resource}/setIamPolicy:\"region_set_poli" + + "cy_request_resource\022\321\002\n\022TestIamPermissio" + + "ns\022@.google.cloud.compute.v1.TestIamPerm" + + "issionsResourcePolicyRequest\0320.google.cl" + + "oud.compute.v1.TestPermissionsResponse\"\306" + + "\001\332A9project,region,resource,test_permiss" + + "ions_request_resource\202\323\344\223\002\203\001\"^/compute/v" + + "1/projects/{project}/regions/{region}/re" + + "sourcePolicies/{resource}/testIamPermiss" + + "ions:!test_permissions_request_resource\032" + + "\202\001\312A\026compute.googleapis.com\322AVhttps://ww" + + "w.googleapis.com/auth/compute,https://ww" + + "w.googleapis.com/auth/cloud-platform\212\324\333\322" + + "\017\n2026-09-012\307\007\n\014RolloutPlans\022\324\001\n\006Delete" + + "\0221.google.cloud.compute.v1.DeleteRollout" + + "PlanRequest\032\".google.cloud.compute.v1.Op" + + "eration\"s\332A\024project,rollout_plan\212N\020Globa" + + "lOperations\202\323\344\223\002C*A/compute/v1/projects/" + + "{project}/global/rolloutPlans/{rollout_p" + + "lan}\022\275\001\n\003Get\022..google.cloud.compute.v1.G" + + "etRolloutPlanRequest\032$.google.cloud.comp" + + "ute.v1.RolloutPlan\"`\332A\024project,rollout_p" + + "lan\202\323\344\223\002C\022A/compute/v1/projects/{project" + + "}/global/rolloutPlans/{rollout_plan}\022\346\001\n" + + "\006Insert\0221.google.cloud.compute.v1.Insert" + + "RolloutPlanRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\204\001\332A\035project,rollout_plan" + + "_resource\212N\020GlobalOperations\202\323\344\223\002K\"2/com" + + "pute/v1/projects/{project}/global/rollou" + + "tPlans:\025rollout_plan_resource\022\261\001\n\004List\0220" + + ".google.cloud.compute.v1.ListRolloutPlan" + + "sRequest\0321.google.cloud.compute.v1.Rollo" + + "utPlansListResponse\"D\332A\007project\202\323\344\223\0024\0222/" + + "compute/v1/projects/{project}/global/rol" + + "loutPlans\032\202\001\312A\026compute.googleapis.com\322AV" + + "https://www.googleapis.com/auth/compute," + + "https://www.googleapis.com/auth/cloud-pl" + + "atform\212\324\333\322\017\n2026-09-012\317\013\n\010Rollouts\022\314\001\n\007" + + "Advance\022..google.cloud.compute.v1.Advanc" + + "eRolloutRequest\032\".google.cloud.compute.v" + + "1.Operation\"m\332A\017project,rollout\212N\020Global" + + "Operations\202\323\344\223\002B\"@/compute/v1/projects/{" + + "project}/global/rollouts/{rollout}/advan" + + "ce\022\302\001\n\006Cancel\022-.google.cloud.compute.v1." + + "CancelRolloutRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"e\332A\017project,rollout\212N\020G" + + "lobalOperations\202\323\344\223\002:28/compute/v1/proje" + + "cts/{project}/global/rollouts/{rollout}\022" + + "\302\001\n\006Delete\022-.google.cloud.compute.v1.Del" + + "eteRolloutRequest\032\".google.cloud.compute" + + ".v1.Operation\"e\332A\017project,rollout\212N\020Glob" + + "alOperations\202\323\344\223\002:*8/compute/v1/projects" + + "/{project}/global/rollouts/{rollout}\022\247\001\n" + + "\003Get\022*.google.cloud.compute.v1.GetRollou" + + "tRequest\032 .google.cloud.compute.v1.Rollo" + + "ut\"R\332A\017project,rollout\202\323\344\223\002:\0228/compute/v" + + "1/projects/{project}/global/rollouts/{ro" + + "llout}\022\245\001\n\004List\022,.google.cloud.compute.v" + + "1.ListRolloutsRequest\032-.google.cloud.com" + + "pute.v1.RolloutsListResponse\"@\332A\007project" + + "\202\323\344\223\0020\022./compute/v1/projects/{project}/g" + + "lobal/rollouts\022\306\001\n\005Pause\022,.google.cloud." + + "compute.v1.PauseRolloutRequest\032\".google." + + "cloud.compute.v1.Operation\"k\332A\017project,r" + + "ollout\212N\020GlobalOperations\202\323\344\223\002@\">/comput" + + "e/v1/projects/{project}/global/rollouts/" + + "{rollout}/pause\022\311\001\n\006Resume\022-.google.clou" + + "d.compute.v1.ResumeRolloutRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"l\332A\017projec" + + "t,rollout\212N\020GlobalOperations\202\323\344\223\002A\"?/com" + + "pute/v1/projects/{project}/global/rollou" + + "ts/{rollout}/resume\032\202\001\312A\026compute.googlea" + + "pis.com\322AVhttps://www.googleapis.com/aut" + + "h/compute,https://www.googleapis.com/aut" + + "h/cloud-platform\212\324\333\322\017\n2026-09-012\215*\n\007Rou" + + "ters\022\273\001\n\016AggregatedList\0225.google.cloud.c" + + "ompute.v1.AggregatedListRoutersRequest\032-" + + ".google.cloud.compute.v1.RouterAggregate" + + "dList\"C\332A\007project\202\323\344\223\0023\0221/compute/v1/pro" + + "jects/{project}/aggregated/routers\022\317\001\n\006D" + + "elete\022,.google.cloud.compute.v1.DeleteRo" + + "uterRequest\032\".google.cloud.compute.v1.Op" + + "eration\"s\332A\025project,region,router\212N\020Regi" + + "onOperations\202\323\344\223\002B*@/compute/v1/projects" + "/{project}/regions/{region}/routers/{rou" - + "ter}\022\343\001\n\013GetNamedSet\0221.google.cloud.comp" - + "ute.v1.GetNamedSetRouterRequest\0323.google" - + ".cloud.compute.v1.RoutersGetNamedSetResp" - + "onse\"l\332A\025project,region,router\202\323\344\223\002N\022L/c" + + "ter}\022\357\001\n\016DeleteNamedSet\0224.google.cloud.c" + + "ompute.v1.DeleteNamedSetRouterRequest\032\"." + + "google.cloud.compute.v1.Operation\"\202\001\332A\025p" + + "roject,region,router\212N\020RegionOperations\202" + + "\323\344\223\002Q\"O/compute/v1/projects/{project}/re" + + "gions/{region}/routers/{router}/deleteNa" + + "medSet\022\370\001\n\021DeleteRoutePolicy\0227.google.cl" + + "oud.compute.v1.DeleteRoutePolicyRouterRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\205\001\332A\025project,region,router\212N\020RegionOpe" + + "rations\202\323\344\223\002T\"R/compute/v1/projects/{pro" + + "ject}/regions/{region}/routers/{router}/" + + "deleteRoutePolicy\022\263\001\n\003Get\022).google.cloud" + + ".compute.v1.GetRouterRequest\032\037.google.cl" + + "oud.compute.v1.Router\"`\332A\025project,region" + + ",router\202\323\344\223\002B\022@/compute/v1/projects/{pro" + + "ject}/regions/{region}/routers/{router}\022" + + "\343\001\n\013GetNamedSet\0221.google.cloud.compute.v" + + "1.GetNamedSetRouterRequest\0323.google.clou" + + "d.compute.v1.RoutersGetNamedSetResponse\"" + + "l\332A\025project,region,router\202\323\344\223\002N\022L/comput" + + "e/v1/projects/{project}/regions/{region}" + + "/routers/{router}/getNamedSet\022\335\001\n\014GetNat" + + "IpInfo\0222.google.cloud.compute.v1.GetNatI" + + "pInfoRouterRequest\032*.google.cloud.comput" + + "e.v1.NatIpInfoResponse\"m\332A\025project,regio" + + "n,router\202\323\344\223\002O\022M/compute/v1/projects/{pr" + + "oject}/regions/{region}/routers/{router}" + + "/getNatIpInfo\022\365\001\n\021GetNatMappingInfo\0228.go" + + "ogle.cloud.compute.v1.GetNatMappingInfoR" + + "outersRequest\0322.google.cloud.compute.v1." + + "VmEndpointNatMappingsList\"r\332A\025project,re" + + "gion,router\202\323\344\223\002T\022R/compute/v1/projects/" + + "{project}/regions/{region}/routers/{rout" + + "er}/getNatMappingInfo\022\357\001\n\016GetRoutePolicy" + + "\0224.google.cloud.compute.v1.GetRoutePolic" + + "yRouterRequest\0326.google.cloud.compute.v1" + + ".RoutersGetRoutePolicyResponse\"o\332A\025proje" + + "ct,region,router\202\323\344\223\002Q\022O/compute/v1/proj" + + "ects/{project}/regions/{region}/routers/" + + "{router}/getRoutePolicy\022\351\001\n\017GetRouterSta" + + "tus\0225.google.cloud.compute.v1.GetRouterS" + + "tatusRouterRequest\032-.google.cloud.comput" + + "e.v1.RouterStatusResponse\"p\332A\025project,re" + + "gion,router\202\323\344\223\002R\022P/compute/v1/projects/" + + "{project}/regions/{region}/routers/{rout" + + "er}/getRouterStatus\022\341\001\n\006Insert\022,.google." + + "cloud.compute.v1.InsertRouterRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\204\001\332A\036pr" + + "oject,region,router_resource\212N\020RegionOpe" + + "rations\202\323\344\223\002J\"7/compute/v1/projects/{pro" + + "ject}/regions/{region}/routers:\017router_r" + + "esource\022\252\001\n\004List\022+.google.cloud.compute." + + "v1.ListRoutersRequest\032#.google.cloud.com" + + "pute.v1.RouterList\"P\332A\016project,region\202\323\344" + + "\223\0029\0227/compute/v1/projects/{project}/regi" + + "ons/{region}/routers\022\344\001\n\rListBgpRoutes\0224" + + ".google.cloud.compute.v1.ListBgpRoutesRo" + + "utersRequest\032-.google.cloud.compute.v1.R" + + "outersListBgpRoutes\"n\332A\025project,region,r" + + "outer\202\323\344\223\002P\022N/compute/v1/projects/{proje" + + "ct}/regions/{region}/routers/{router}/li" + + "stBgpRoutes\022\344\001\n\rListNamedSets\0224.google.c" + + "loud.compute.v1.ListNamedSetsRoutersRequ" + + "est\032-.google.cloud.compute.v1.RoutersLis" + + "tNamedSets\"n\332A\025project,region,router\202\323\344\223" + + "\002P\022N/compute/v1/projects/{project}/regio" + + "ns/{region}/routers/{router}/listNamedSe" + + "ts\022\364\001\n\021ListRoutePolicies\0228.google.cloud." + + "compute.v1.ListRoutePoliciesRoutersReque" + + "st\0321.google.cloud.compute.v1.RoutersList" + + "RoutePolicies\"r\332A\025project,region,router\202" + + "\323\344\223\002T\022R/compute/v1/projects/{project}/re" + + "gions/{region}/routers/{router}/listRout" + + "ePolicies\022\357\001\n\005Patch\022+.google.cloud.compu" + + "te.v1.PatchRouterRequest\032\".google.cloud." + + "compute.v1.Operation\"\224\001\332A%project,region" + + ",router,router_resource\212N\020RegionOperatio" + + "ns\202\323\344\223\002S2@/compute/v1/projects/{project}" + + "/regions/{region}/routers/{router}:\017rout" + + "er_resource\022\223\002\n\rPatchNamedSet\0223.google.c" + + "loud.compute.v1.PatchNamedSetRouterReque" + + "st\032\".google.cloud.compute.v1.Operation\"\250" + + "\001\332A(project,region,router,named_set_reso" + + "urce\212N\020RegionOperations\202\323\344\223\002d\"N/compute/" + + "v1/projects/{project}/regions/{region}/r" + + "outers/{router}/patchNamedSet:\022named_set" + + "_resource\022\242\002\n\020PatchRoutePolicy\0226.google." + + "cloud.compute.v1.PatchRoutePolicyRouterR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\261\001\332A+project,region,router,route_poli" + + "cy_resource\212N\020RegionOperations\202\323\344\223\002j\"Q/c" + "ompute/v1/projects/{project}/regions/{re" - + "gion}/routers/{router}/getNamedSet\022\335\001\n\014G" - + "etNatIpInfo\0222.google.cloud.compute.v1.Ge" - + "tNatIpInfoRouterRequest\032*.google.cloud.c" - + "ompute.v1.NatIpInfoResponse\"m\332A\025project," - + "region,router\202\323\344\223\002O\022M/compute/v1/project" + + "gion}/routers/{router}/patchRoutePolicy:" + + "\025route_policy_resource\022\365\001\n\007Preview\022-.goo" + + "gle.cloud.compute.v1.PreviewRouterReques" + + "t\032/.google.cloud.compute.v1.RoutersPrevi" + + "ewResponse\"\211\001\332A%project,region,router,ro" + + "uter_resource\202\323\344\223\002[\"H/compute/v1/project" + "s/{project}/regions/{region}/routers/{ro" - + "uter}/getNatIpInfo\022\365\001\n\021GetNatMappingInfo" - + "\0228.google.cloud.compute.v1.GetNatMapping" - + "InfoRoutersRequest\0322.google.cloud.comput" - + "e.v1.VmEndpointNatMappingsList\"r\332A\025proje" - + "ct,region,router\202\323\344\223\002T\022R/compute/v1/proj" - + "ects/{project}/regions/{region}/routers/" - + "{router}/getNatMappingInfo\022\357\001\n\016GetRouteP" - + "olicy\0224.google.cloud.compute.v1.GetRoute" - + "PolicyRouterRequest\0326.google.cloud.compu" - + "te.v1.RoutersGetRoutePolicyResponse\"o\332A\025" - + "project,region,router\202\323\344\223\002Q\022O/compute/v1" - + "/projects/{project}/regions/{region}/rou" - + "ters/{router}/getRoutePolicy\022\351\001\n\017GetRout" - + "erStatus\0225.google.cloud.compute.v1.GetRo" - + "uterStatusRouterRequest\032-.google.cloud.c" - + "ompute.v1.RouterStatusResponse\"p\332A\025proje" - + "ct,region,router\202\323\344\223\002R\022P/compute/v1/proj" - + "ects/{project}/regions/{region}/routers/" - + "{router}/getRouterStatus\022\341\001\n\006Insert\022,.go" - + "ogle.cloud.compute.v1.InsertRouterReques" - + "t\032\".google.cloud.compute.v1.Operation\"\204\001" - + "\332A\036project,region,router_resource\212N\020Regi" - + "onOperations\202\323\344\223\002J\"7/compute/v1/projects" - + "/{project}/regions/{region}/routers:\017rou" - + "ter_resource\022\252\001\n\004List\022+.google.cloud.com" - + "pute.v1.ListRoutersRequest\032#.google.clou" - + "d.compute.v1.RouterList\"P\332A\016project,regi" - + "on\202\323\344\223\0029\0227/compute/v1/projects/{project}" - + "/regions/{region}/routers\022\344\001\n\rListBgpRou" - + "tes\0224.google.cloud.compute.v1.ListBgpRou" - + "tesRoutersRequest\032-.google.cloud.compute" - + ".v1.RoutersListBgpRoutes\"n\332A\025project,reg" - + "ion,router\202\323\344\223\002P\022N/compute/v1/projects/{" - + "project}/regions/{region}/routers/{route" - + "r}/listBgpRoutes\022\344\001\n\rListNamedSets\0224.goo" - + "gle.cloud.compute.v1.ListNamedSetsRouter" - + "sRequest\032-.google.cloud.compute.v1.Route" - + "rsListNamedSets\"n\332A\025project,region,route" - + "r\202\323\344\223\002P\022N/compute/v1/projects/{project}/" - + "regions/{region}/routers/{router}/listNa" - + "medSets\022\364\001\n\021ListRoutePolicies\0228.google.c" - + "loud.compute.v1.ListRoutePoliciesRouters" - + "Request\0321.google.cloud.compute.v1.Router" - + "sListRoutePolicies\"r\332A\025project,region,ro" - + "uter\202\323\344\223\002T\022R/compute/v1/projects/{projec" - + "t}/regions/{region}/routers/{router}/lis" - + "tRoutePolicies\022\357\001\n\005Patch\022+.google.cloud." - + "compute.v1.PatchRouterRequest\032\".google.c" - + "loud.compute.v1.Operation\"\224\001\332A%project,r" - + "egion,router,router_resource\212N\020RegionOpe" - + "rations\202\323\344\223\002S2@/compute/v1/projects/{pro" - + "ject}/regions/{region}/routers/{router}:" - + "\017router_resource\022\223\002\n\rPatchNamedSet\0223.goo" - + "gle.cloud.compute.v1.PatchNamedSetRouter" + + "uter}/preview:\017router_resource\022\361\001\n\006Updat" + + "e\022,.google.cloud.compute.v1.UpdateRouter" + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\250\001\332A(project,region,router,named_set" - + "_resource\212N\020RegionOperations\202\323\344\223\002d\"N/com" - + "pute/v1/projects/{project}/regions/{regi" - + "on}/routers/{router}/patchNamedSet:\022name" - + "d_set_resource\022\242\002\n\020PatchRoutePolicy\0226.go" - + "ogle.cloud.compute.v1.PatchRoutePolicyRo" - + "uterRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\261\001\332A+project,region,router,route" - + "_policy_resource\212N\020RegionOperations\202\323\344\223\002" - + "j\"Q/compute/v1/projects/{project}/region" - + "s/{region}/routers/{router}/patchRoutePo" - + "licy:\025route_policy_resource\022\365\001\n\007Preview\022" - + "-.google.cloud.compute.v1.PreviewRouterR" - + "equest\032/.google.cloud.compute.v1.Routers" - + "PreviewResponse\"\211\001\332A%project,region,rout" - + "er,router_resource\202\323\344\223\002[\"H/compute/v1/pr" + + "ion\"\224\001\332A%project,region,router,router_re" + + "source\212N\020RegionOperations\202\323\344\223\002S\032@/comput" + + "e/v1/projects/{project}/regions/{region}" + + "/routers/{router}:\017router_resource\022\226\002\n\016U" + + "pdateNamedSet\0224.google.cloud.compute.v1." + + "UpdateNamedSetRouterRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\251\001\332A(project,reg" + + "ion,router,named_set_resource\212N\020RegionOp" + + "erations\202\323\344\223\002e\"O/compute/v1/projects/{pr" + + "oject}/regions/{region}/routers/{router}" + + "/updateNamedSet:\022named_set_resource\022\245\002\n\021" + + "UpdateRoutePolicy\0227.google.cloud.compute" + + ".v1.UpdateRoutePolicyRouterRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\262\001\332A+proj" + + "ect,region,router,route_policy_resource\212" + + "N\020RegionOperations\202\323\344\223\002k\"R/compute/v1/pr" + "ojects/{project}/regions/{region}/router" - + "s/{router}/preview:\017router_resource\022\361\001\n\006" - + "Update\022,.google.cloud.compute.v1.UpdateR" - + "outerRequest\032\".google.cloud.compute.v1.O" - + "peration\"\224\001\332A%project,region,router,rout" - + "er_resource\212N\020RegionOperations\202\323\344\223\002S\032@/c" - + "ompute/v1/projects/{project}/regions/{re" - + "gion}/routers/{router}:\017router_resource\022" - + "\226\002\n\016UpdateNamedSet\0224.google.cloud.comput" - + "e.v1.UpdateNamedSetRouterRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\251\001\332A(projec" - + "t,region,router,named_set_resource\212N\020Reg" - + "ionOperations\202\323\344\223\002e\"O/compute/v1/project" - + "s/{project}/regions/{region}/routers/{ro" - + "uter}/updateNamedSet:\022named_set_resource" - + "\022\245\002\n\021UpdateRoutePolicy\0227.google.cloud.co" - + "mpute.v1.UpdateRoutePolicyRouterRequest\032" - + "\".google.cloud.compute.v1.Operation\"\262\001\332A" - + "+project,region,router,route_policy_reso" - + "urce\212N\020RegionOperations\202\323\344\223\002k\"R/compute/" - + "v1/projects/{project}/regions/{region}/r" - + "outers/{router}/updateRoutePolicy:\025route" - + "_policy_resource\032\202\001\312A\026compute.googleapis" - + ".com\322AVhttps://www.googleapis.com/auth/c" - + "ompute,https://www.googleapis.com/auth/c" - + "loud-platform\212\324\333\322\017\n2026-09-012\200\t\n\006Routes" - + "\022\272\001\n\006Delete\022+.google.cloud.compute.v1.De" - + "leteRouteRequest\032\".google.cloud.compute." - + "v1.Operation\"_\332A\rproject,route\212N\020GlobalO" - + "perations\202\323\344\223\0026*4/compute/v1/projects/{p" - + "roject}/global/routes/{route}\022\235\001\n\003Get\022(." - + "google.cloud.compute.v1.GetRouteRequest\032" - + "\036.google.cloud.compute.v1.Route\"L\332A\rproj" - + "ect,route\202\323\344\223\0026\0224/compute/v1/projects/{p" - + "roject}/global/routes/{route}\022\313\001\n\006Insert" - + "\022+.google.cloud.compute.v1.InsertRouteRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"p\332A\026project,route_resource\212N\020GlobalOpe" - + "rations\202\323\344\223\002>\",/compute/v1/projects/{pro" - + "ject}/global/routes:\016route_resource\022\226\001\n\004" - + "List\022*.google.cloud.compute.v1.ListRoute" - + "sRequest\032\".google.cloud.compute.v1.Route" - + "List\">\332A\007project\202\323\344\223\002.\022,/compute/v1/proj" - + "ects/{project}/global/routes\022\254\002\n\022TestIam" - + "Permissions\0227.google.cloud.compute.v1.Te" - + "stIamPermissionsRouteRequest\0320.google.cl" - + "oud.compute.v1.TestPermissionsResponse\"\252" - + "\001\332A2project,resource,test_permissions_re" - + "quest_resource\202\323\344\223\002o\"J/compute/v1/projec" - + "ts/{project}/global/routes/{resource}/te" - + "stIamPermissions:!test_permissions_reque" - + "st_resource\032\202\001\312A\026compute.googleapis.com\322" + + "s/{router}/updateRoutePolicy:\025route_poli" + + "cy_resource\032\202\001\312A\026compute.googleapis.com\322" + "AVhttps://www.googleapis.com/auth/comput" + "e,https://www.googleapis.com/auth/cloud-" - + "platform\212\324\333\322\017\n2026-09-012\200\031\n\020SecurityPol" - + "icies\022\251\002\n\007AddRule\0225.google.cloud.compute" - + ".v1.AddRuleSecurityPolicyRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\302\001\332A5projec" - + "t,security_policy,security_policy_rule_r" - + "esource\212N\020GlobalOperations\202\323\344\223\002q\"P/compu" - + "te/v1/projects/{project}/global/security" - + "Policies/{security_policy}/addRule:\035secu" - + "rity_policy_rule_resource\022\327\001\n\016Aggregated" - + "List\022>.google.cloud.compute.v1.Aggregate" - + "dListSecurityPoliciesRequest\0327.google.cl" - + "oud.compute.v1.SecurityPoliciesAggregate" - + "dList\"L\332A\007project\202\323\344\223\002<\022:/compute/v1/pro" - + "jects/{project}/aggregated/securityPolic" - + "ies\022\341\001\n\006Delete\0224.google.cloud.compute.v1" - + ".DeleteSecurityPolicyRequest\032\".google.cl" - + "oud.compute.v1.Operation\"}\332A\027project,sec" - + "urity_policy\212N\020GlobalOperations\202\323\344\223\002J*H/" - + "compute/v1/projects/{project}/global/sec" - + "urityPolicies/{security_policy}\022\315\001\n\003Get\022" - + "1.google.cloud.compute.v1.GetSecurityPol" - + "icyRequest\032\'.google.cloud.compute.v1.Sec" - + "urityPolicy\"j\332A\027project,security_policy\202" - + "\323\344\223\002J\022H/compute/v1/projects/{project}/gl" - + "obal/securityPolicies/{security_policy}\022" - + "\341\001\n\007GetRule\0225.google.cloud.compute.v1.Ge" - + "tRuleSecurityPolicyRequest\032+.google.clou" - + "d.compute.v1.SecurityPolicyRule\"r\332A\027proj" - + "ect,security_policy\202\323\344\223\002R\022P/compute/v1/p" - + "rojects/{project}/global/securityPolicie" - + "s/{security_policy}/getRule\022\363\001\n\006Insert\0224" - + ".google.cloud.compute.v1.InsertSecurityP" - + "olicyRequest\032\".google.cloud.compute.v1.O" - + "peration\"\216\001\332A project,security_policy_re" - + "source\212N\020GlobalOperations\202\323\344\223\002R\"6/comput" - + "e/v1/projects/{project}/global/securityP" - + "olicies:\030security_policy_resource\022\263\001\n\004Li" - + "st\0224.google.cloud.compute.v1.ListSecurit" - + "yPoliciesRequest\032+.google.cloud.compute." - + "v1.SecurityPolicyList\"H\332A\007project\202\323\344\223\0028\022" - + "6/compute/v1/projects/{project}/global/s" - + "ecurityPolicies\022\256\002\n\037ListPreconfiguredExp" - + "ressionSets\022O.google.cloud.compute.v1.Li" - + "stPreconfiguredExpressionSetsSecurityPol" - + "iciesRequest\032P.google.cloud.compute.v1.S" - + "ecurityPoliciesListPreconfiguredExpressi" - + "onSetsResponse\"h\332A\007project\202\323\344\223\002X\022V/compu" + + "platform\212\324\333\322\017\n2026-09-012\200\t\n\006Routes\022\272\001\n\006" + + "Delete\022+.google.cloud.compute.v1.DeleteR" + + "outeRequest\032\".google.cloud.compute.v1.Op" + + "eration\"_\332A\rproject,route\212N\020GlobalOperat" + + "ions\202\323\344\223\0026*4/compute/v1/projects/{projec" + + "t}/global/routes/{route}\022\235\001\n\003Get\022(.googl" + + "e.cloud.compute.v1.GetRouteRequest\032\036.goo" + + "gle.cloud.compute.v1.Route\"L\332A\rproject,r" + + "oute\202\323\344\223\0026\0224/compute/v1/projects/{projec" + + "t}/global/routes/{route}\022\313\001\n\006Insert\022+.go" + + "ogle.cloud.compute.v1.InsertRouteRequest" + + "\032\".google.cloud.compute.v1.Operation\"p\332A" + + "\026project,route_resource\212N\020GlobalOperatio" + + "ns\202\323\344\223\002>\",/compute/v1/projects/{project}" + + "/global/routes:\016route_resource\022\226\001\n\004List\022" + + "*.google.cloud.compute.v1.ListRoutesRequ" + + "est\032\".google.cloud.compute.v1.RouteList\"" + + ">\332A\007project\202\323\344\223\002.\022,/compute/v1/projects/" + + "{project}/global/routes\022\254\002\n\022TestIamPermi" + + "ssions\0227.google.cloud.compute.v1.TestIam" + + "PermissionsRouteRequest\0320.google.cloud.c" + + "ompute.v1.TestPermissionsResponse\"\252\001\332A2p" + + "roject,resource,test_permissions_request" + + "_resource\202\323\344\223\002o\"J/compute/v1/projects/{p" + + "roject}/global/routes/{resource}/testIam" + + "Permissions:!test_permissions_request_re" + + "source\032\202\001\312A\026compute.googleapis.com\322AVhtt" + + "ps://www.googleapis.com/auth/compute,htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm\212\324\333\322\017\n2026-09-012\200\031\n\020SecurityPolicies" + + "\022\251\002\n\007AddRule\0225.google.cloud.compute.v1.A" + + "ddRuleSecurityPolicyRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\302\001\332A5project,sec" + + "urity_policy,security_policy_rule_resour" + + "ce\212N\020GlobalOperations\202\323\344\223\002q\"P/compute/v1" + + "/projects/{project}/global/securityPolic" + + "ies/{security_policy}/addRule:\035security_" + + "policy_rule_resource\022\327\001\n\016AggregatedList\022" + + ">.google.cloud.compute.v1.AggregatedList" + + "SecurityPoliciesRequest\0327.google.cloud.c" + + "ompute.v1.SecurityPoliciesAggregatedList" + + "\"L\332A\007project\202\323\344\223\002<\022:/compute/v1/projects" + + "/{project}/aggregated/securityPolicies\022\341" + + "\001\n\006Delete\0224.google.cloud.compute.v1.Dele" + + "teSecurityPolicyRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"}\332A\027project,security" + + "_policy\212N\020GlobalOperations\202\323\344\223\002J*H/compu" + "te/v1/projects/{project}/global/security" - + "Policies/listPreconfiguredExpressionSets" - + "\022\223\002\n\005Patch\0223.google.cloud.compute.v1.Pat" - + "chSecurityPolicyRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\260\001\332A0project,securit" - + "y_policy,security_policy_resource\212N\020Glob" - + "alOperations\202\323\344\223\002d2H/compute/v1/projects" - + "/{project}/global/securityPolicies/{secu" - + "rity_policy}:\030security_policy_resource\022\257" - + "\002\n\tPatchRule\0227.google.cloud.compute.v1.P" - + "atchRuleSecurityPolicyRequest\032\".google.c" - + "loud.compute.v1.Operation\"\304\001\332A5project,s" - + "ecurity_policy,security_policy_rule_reso" - + "urce\212N\020GlobalOperations\202\323\344\223\002s\"R/compute/" - + "v1/projects/{project}/global/securityPol" - + "icies/{security_policy}/patchRule:\035secur" - + "ity_policy_rule_resource\022\365\001\n\nRemoveRule\022" - + "8.google.cloud.compute.v1.RemoveRuleSecu" - + "rityPolicyRequest\032\".google.cloud.compute" - + ".v1.Operation\"\210\001\332A\027project,security_poli" - + "cy\212N\020GlobalOperations\202\323\344\223\002U\"S/compute/v1" + + "Policies/{security_policy}\022\315\001\n\003Get\0221.goo" + + "gle.cloud.compute.v1.GetSecurityPolicyRe" + + "quest\032\'.google.cloud.compute.v1.Security" + + "Policy\"j\332A\027project,security_policy\202\323\344\223\002J" + + "\022H/compute/v1/projects/{project}/global/" + + "securityPolicies/{security_policy}\022\341\001\n\007G" + + "etRule\0225.google.cloud.compute.v1.GetRule" + + "SecurityPolicyRequest\032+.google.cloud.com" + + "pute.v1.SecurityPolicyRule\"r\332A\027project,s" + + "ecurity_policy\202\323\344\223\002R\022P/compute/v1/projec" + + "ts/{project}/global/securityPolicies/{se" + + "curity_policy}/getRule\022\363\001\n\006Insert\0224.goog" + + "le.cloud.compute.v1.InsertSecurityPolicy" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\216\001\332A project,security_policy_resourc" + + "e\212N\020GlobalOperations\202\323\344\223\002R\"6/compute/v1/" + + "projects/{project}/global/securityPolici" + + "es:\030security_policy_resource\022\263\001\n\004List\0224." + + "google.cloud.compute.v1.ListSecurityPoli" + + "ciesRequest\032+.google.cloud.compute.v1.Se" + + "curityPolicyList\"H\332A\007project\202\323\344\223\0028\0226/com" + + "pute/v1/projects/{project}/global/securi" + + "tyPolicies\022\256\002\n\037ListPreconfiguredExpressi" + + "onSets\022O.google.cloud.compute.v1.ListPre" + + "configuredExpressionSetsSecurityPolicies" + + "Request\032P.google.cloud.compute.v1.Securi" + + "tyPoliciesListPreconfiguredExpressionSet" + + "sResponse\"h\332A\007project\202\323\344\223\002X\022V/compute/v1" + "/projects/{project}/global/securityPolic" - + "ies/{security_policy}/removeRule\022\253\002\n\tSet" - + "Labels\0227.google.cloud.compute.v1.SetLabe" - + "lsSecurityPolicyRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\300\001\332A3project,resourc" - + "e,global_set_labels_request_resource\212N\020G" - + "lobalOperations\202\323\344\223\002q\"K/compute/v1/proje" - + "cts/{project}/global/securityPolicies/{r" - + "esource}/setLabels:\"global_set_labels_re" - + "quest_resource\032\202\001\312A\026compute.googleapis.c" - + "om\322AVhttps://www.googleapis.com/auth/com" - + "pute,https://www.googleapis.com/auth/clo" - + "ud-platform\212\324\333\322\017\n2026-09-012\201\024\n\022ServiceA" - + "ttachments\022\334\001\n\016AggregatedList\022@.google.c" - + "loud.compute.v1.AggregatedListServiceAtt" - + "achmentsRequest\0328.google.cloud.compute.v" - + "1.ServiceAttachmentAggregatedList\"N\332A\007pr" - + "oject\202\323\344\223\002>\022\022/compute/v1/projects" - + "/{project}/global/sslPolicies/{ssl_polic" - + "y}\022\264\001\n\003Get\022,.google.cloud.compute.v1.Get" - + "SslPolicyRequest\032\".google.cloud.compute." - + "v1.SslPolicy\"[\332A\022project,ssl_policy\202\323\344\223\002" - + "@\022>/compute/v1/projects/{project}/global" - + "/sslPolicies/{ssl_policy}\022\336\001\n\006Insert\022/.g" - + "oogle.cloud.compute.v1.InsertSslPolicyRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\177\332A\033project,ssl_policy_resource\212N\020Glob" - + "alOperations\202\323\344\223\002H\"1/compute/v1/projects" - + "/{project}/global/sslPolicies:\023ssl_polic" - + "y_resource\022\246\001\n\004List\022/.google.cloud.compu" - + "te.v1.ListSslPoliciesRequest\032(.google.cl" - + "oud.compute.v1.SslPoliciesList\"C\332A\007proje" - + "ct\202\323\344\223\0023\0221/compute/v1/projects/{project}" - + "/global/sslPolicies\022\367\001\n\025ListAvailableFea" - + "tures\022@.google.cloud.compute.v1.ListAvai" - + "lableFeaturesSslPoliciesRequest\032A.google" - + ".cloud.compute.v1.SslPoliciesListAvailab" - + "leFeaturesResponse\"Y\332A\007project\202\323\344\223\002I\022G/c" - + "ompute/v1/projects/{project}/global/sslP" - + "olicies/listAvailableFeatures\022\365\001\n\005Patch\022" - + "..google.cloud.compute.v1.PatchSslPolicy" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\227\001\332A&project,ssl_policy,ssl_policy_r" - + "esource\212N\020GlobalOperations\202\323\344\223\002U2>/compu" - + "te/v1/projects/{project}/global/sslPolic" - + "ies/{ssl_policy}:\023ssl_policy_resource\032\202\001" + + "nsResponse\"\310\001\332A9project,region,resource," + + "test_permissions_request_resource\202\323\344\223\002\205\001" + + "\"`/compute/v1/projects/{project}/regions" + + "/{region}/serviceAttachments/{resource}/" + + "testIamPermissions:!test_permissions_req" + + "uest_resource\032\202\001\312A\026compute.googleapis.co" + + "m\322AVhttps://www.googleapis.com/auth/comp" + + "ute,https://www.googleapis.com/auth/clou" + + "d-platform\212\324\333\322\017\n2026-09-012\310\004\n\027SnapshotS" + + "ettingsService\022\256\001\n\003Get\0222.google.cloud.co" + + "mpute.v1.GetSnapshotSettingRequest\032).goo" + + "gle.cloud.compute.v1.SnapshotSettings\"H\332" + + "A\007project\202\323\344\223\0028\0226/compute/v1/projects/{p" + + "roject}/global/snapshotSettings\022\366\001\n\005Patc" + + "h\0224.google.cloud.compute.v1.PatchSnapsho" + + "tSettingRequest\032\".google.cloud.compute.v" + + "1.Operation\"\222\001\332A\"project,snapshot_settin" + + "gs_resource\212N\020GlobalOperations\202\323\344\223\002T26/c" + + "ompute/v1/projects/{project}/global/snap" + + "shotSettings:\032snapshot_settings_resource" + + "\032\202\001\312A\026compute.googleapis.com\322AVhttps://w" + + "ww.googleapis.com/auth/compute,https://w" + + "ww.googleapis.com/auth/cloud-platform\212\324\333" + + "\322\017\n2026-09-012\360\021\n\tSnapshots\022\306\001\n\006Delete\022." + + ".google.cloud.compute.v1.DeleteSnapshotR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"h\332A\020project,snapshot\212N\020GlobalOperatio" + + "ns\202\323\344\223\002<*:/compute/v1/projects/{project}" + + "/global/snapshots/{snapshot}\022\254\001\n\003Get\022+.g" + + "oogle.cloud.compute.v1.GetSnapshotReques" + + "t\032!.google.cloud.compute.v1.Snapshot\"U\332A" + + "\020project,snapshot\202\323\344\223\002<\022:/compute/v1/pro" + + "jects/{project}/global/snapshots/{snapsh" + + "ot}\022\311\001\n\014GetIamPolicy\0224.google.cloud.comp" + + "ute.v1.GetIamPolicySnapshotRequest\032\037.goo" + + "gle.cloud.compute.v1.Policy\"b\332A\020project," + + "resource\202\323\344\223\002I\022G/compute/v1/projects/{pr" + + "oject}/global/snapshots/{resource}/getIa" + + "mPolicy\022\327\001\n\006Insert\022..google.cloud.comput" + + "e.v1.InsertSnapshotRequest\032\".google.clou" + + "d.compute.v1.Operation\"y\332A\031project,snaps" + + "hot_resource\212N\020GlobalOperations\202\323\344\223\002D\"//" + + "compute/v1/projects/{project}/global/sna" + + "pshots:\021snapshot_resource\022\237\001\n\004List\022-.goo" + + "gle.cloud.compute.v1.ListSnapshotsReques" + + "t\032%.google.cloud.compute.v1.SnapshotList" + + "\"A\332A\007project\202\323\344\223\0021\022//compute/v1/projects" + + "/{project}/global/snapshots\022\221\002\n\014SetIamPo" + + "licy\0224.google.cloud.compute.v1.SetIamPol" + + "icySnapshotRequest\032\037.google.cloud.comput" + + "e.v1.Policy\"\251\001\332A3project,resource,global" + + "_set_policy_request_resource\202\323\344\223\002m\"G/com" + + "pute/v1/projects/{project}/global/snapsh" + + "ots/{resource}/setIamPolicy:\"global_set_" + + "policy_request_resource\022\236\002\n\tSetLabels\0221." + + "google.cloud.compute.v1.SetLabelsSnapsho" + + "tRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\271\001\332A3project,resource,global_set_la" + + "bels_request_resource\212N\020GlobalOperations" + + "\202\323\344\223\002j\"D/compute/v1/projects/{project}/g" + + "lobal/snapshots/{resource}/setLabels:\"gl" + + "obal_set_labels_request_resource\022\262\002\n\022Tes" + + "tIamPermissions\022:.google.cloud.compute.v" + + "1.TestIamPermissionsSnapshotRequest\0320.go" + + "ogle.cloud.compute.v1.TestPermissionsRes" + + "ponse\"\255\001\332A2project,resource,test_permiss" + + "ions_request_resource\202\323\344\223\002r\"M/compute/v1" + + "/projects/{project}/global/snapshots/{re" + + "source}/testIamPermissions:!test_permiss" + + "ions_request_resource\022\263\002\n\014UpdateKmsKey\0224" + + ".google.cloud.compute.v1.UpdateKmsKeySna" + + "pshotRequest\032\".google.cloud.compute.v1.O" + + "peration\"\310\001\332A9project,snapshot,snapshot_" + + "update_kms_key_request_resource\212N\020Global" + + "Operations\202\323\344\223\002s\"G/compute/v1/projects/{" + + "project}/global/snapshots/{snapshot}/upd" + + "ateKmsKey:(snapshot_update_kms_key_reque" + + "st_resource\032\202\001\312A\026compute.googleapis.com\322" + + "AVhttps://www.googleapis.com/auth/comput" + + "e,https://www.googleapis.com/auth/cloud-" + + "platform\212\324\333\322\017\n2026-09-012\307\t\n\017SslCertific" + + "ates\022\323\001\n\016AggregatedList\022=.google.cloud.c" + + "ompute.v1.AggregatedListSslCertificatesR" + + "equest\0325.google.cloud.compute.v1.SslCert" + + "ificateAggregatedList\"K\332A\007project\202\323\344\223\002;\022" + + "9/compute/v1/projects/{project}/aggregat" + + "ed/sslCertificates\022\340\001\n\006Delete\0224.google.c" + + "loud.compute.v1.DeleteSslCertificateRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "|\332A\027project,ssl_certificate\212N\020GlobalOper" + + "ations\202\323\344\223\002I*G/compute/v1/projects/{proj" + + "ect}/global/sslCertificates/{ssl_certifi" + + "cate}\022\314\001\n\003Get\0221.google.cloud.compute.v1." + + "GetSslCertificateRequest\032\'.google.cloud." + + "compute.v1.SslCertificate\"i\332A\027project,ss" + + "l_certificate\202\323\344\223\002I\022G/compute/v1/project" + + "s/{project}/global/sslCertificates/{ssl_" + + "certificate}\022\362\001\n\006Insert\0224.google.cloud.c" + + "ompute.v1.InsertSslCertificateRequest\032\"." + + "google.cloud.compute.v1.Operation\"\215\001\332A p" + + "roject,ssl_certificate_resource\212N\020Global" + + "Operations\202\323\344\223\002Q\"5/compute/v1/projects/{" + + "project}/global/sslCertificates:\030ssl_cer" + + "tificate_resource\022\261\001\n\004List\0223.google.clou" + + "d.compute.v1.ListSslCertificatesRequest\032" + + "+.google.cloud.compute.v1.SslCertificate" + + "List\"G\332A\007project\202\323\344\223\0027\0225/compute/v1/proj" + + "ects/{project}/global/sslCertificates\032\202\001" + "\312A\026compute.googleapis.com\322AVhttps://www." + "googleapis.com/auth/compute,https://www." + "googleapis.com/auth/cloud-platform\212\324\333\322\017\n" - + "2026-09-012\305\006\n\020StoragePoolTypes\022\326\001\n\016Aggr" - + "egatedList\022>.google.cloud.compute.v1.Agg" - + "regatedListStoragePoolTypesRequest\0326.goo" - + "gle.cloud.compute.v1.StoragePoolTypeAggr" - + "egatedList\"L\332A\007project\202\323\344\223\002<\022:/compute/v" - + "1/projects/{project}/aggregated/storageP" - + "oolTypes\022\336\001\n\003Get\0222.google.cloud.compute." - + "v1.GetStoragePoolTypeRequest\032(.google.cl" - + "oud.compute.v1.StoragePoolType\"y\332A\036proje" - + "ct,zone,storage_pool_type\202\323\344\223\002R\022P/comput" - + "e/v1/projects/{project}/zones/{zone}/sto" - + "ragePoolTypes/{storage_pool_type}\022\277\001\n\004Li" - + "st\0224.google.cloud.compute.v1.ListStorage" - + "PoolTypesRequest\032,.google.cloud.compute." - + "v1.StoragePoolTypeList\"S\332A\014project,zone\202" - + "\323\344\223\002>\022/compute/v1/projects/{pro" + + "ject}/global/sslPolicies/{ssl_policy}\022\264\001" + + "\n\003Get\022,.google.cloud.compute.v1.GetSslPo" + + "licyRequest\032\".google.cloud.compute.v1.Ss" + + "lPolicy\"[\332A\022project,ssl_policy\202\323\344\223\002@\022>/c" + + "ompute/v1/projects/{project}/global/sslP" + + "olicies/{ssl_policy}\022\336\001\n\006Insert\022/.google" + + ".cloud.compute.v1.InsertSslPolicyRequest" + + "\032\".google.cloud.compute.v1.Operation\"\177\332A" + + "\033project,ssl_policy_resource\212N\020GlobalOpe" + + "rations\202\323\344\223\002H\"1/compute/v1/projects/{pro" + + "ject}/global/sslPolicies:\023ssl_policy_res" + + "ource\022\246\001\n\004List\022/.google.cloud.compute.v1" + + ".ListSslPoliciesRequest\032(.google.cloud.c" + + "ompute.v1.SslPoliciesList\"C\332A\007project\202\323\344" + + "\223\0023\0221/compute/v1/projects/{project}/glob" + + "al/sslPolicies\022\367\001\n\025ListAvailableFeatures" + + "\022@.google.cloud.compute.v1.ListAvailable" + + "FeaturesSslPoliciesRequest\032A.google.clou" + + "d.compute.v1.SslPoliciesListAvailableFea" + + "turesResponse\"Y\332A\007project\202\323\344\223\002I\022G/comput" + + "e/v1/projects/{project}/global/sslPolici" + + "es/listAvailableFeatures\022\365\001\n\005Patch\022..goo" + + "gle.cloud.compute.v1.PatchSslPolicyReque" + + "st\032\".google.cloud.compute.v1.Operation\"\227" + + "\001\332A&project,ssl_policy,ssl_policy_resour" + + "ce\212N\020GlobalOperations\202\323\344\223\002U2>/compute/v1" + + "/projects/{project}/global/sslPolicies/{" + + "ssl_policy}:\023ssl_policy_resource\032\202\001\312A\026co" + + "mpute.googleapis.com\322AVhttps://www.googl" + + "eapis.com/auth/compute,https://www.googl" + + "eapis.com/auth/cloud-platform\212\324\333\322\017\n2026-" + + "09-012\305\006\n\020StoragePoolTypes\022\326\001\n\016Aggregate" + + "dList\022>.google.cloud.compute.v1.Aggregat" + + "edListStoragePoolTypesRequest\0326.google.c" + + "loud.compute.v1.StoragePoolTypeAggregate" + + "dList\"L\332A\007project\202\323\344\223\002<\022:/compute/v1/pro" + + "jects/{project}/aggregated/storagePoolTy" + + "pes\022\336\001\n\003Get\0222.google.cloud.compute.v1.Ge" + + "tStoragePoolTypeRequest\032(.google.cloud.c" + + "ompute.v1.StoragePoolType\"y\332A\036project,zo" + + "ne,storage_pool_type\202\323\344\223\002R\022P/compute/v1/" + "projects/{project}/zones/{zone}/storageP" - + "ools/{storage_pool}\022\332\001\n\014GetIamPolicy\0227.g" - + "oogle.cloud.compute.v1.GetIamPolicyStora" - + "gePoolRequest\032\037.google.cloud.compute.v1." - + "Policy\"p\332A\025project,zone,resource\202\323\344\223\002R\022P" - + "/compute/v1/projects/{project}/zones/{zo" - + "ne}/storagePools/{resource}/getIamPolicy" - + "\022\357\001\n\006Insert\0221.google.cloud.compute.v1.In" - + "sertStoragePoolRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\215\001\332A\"project,zone,sto" - + "rage_pool_resource\212N\016ZoneOperations\202\323\344\223\002" - + "Q\"8/compute/v1/projects/{project}/zones/" - + "{zone}/storagePools:\025storage_pool_resour" - + "ce\022\263\001\n\004List\0220.google.cloud.compute.v1.Li" - + "stStoragePoolsRequest\032(.google.cloud.com" - + "pute.v1.StoragePoolList\"O\332A\014project,zone" - + "\202\323\344\223\002:\0228/compute/v1/projects/{project}/z" - + "ones/{zone}/storagePools\022\350\001\n\tListDisks\0225" - + ".google.cloud.compute.v1.ListDisksStorag" - + "ePoolsRequest\032-.google.cloud.compute.v1." - + "StoragePoolListDisks\"u\332A\031project,zone,st" - + "orage_pool\202\323\344\223\002S\022Q/compute/v1/projects/{" - + "project}/zones/{zone}/storagePools/{stor" - + "age_pool}/listDisks\022\236\002\n\014SetIamPolicy\0227.g" - + "oogle.cloud.compute.v1.SetIamPolicyStora" - + "gePoolRequest\032\037.google.cloud.compute.v1." - + "Policy\"\263\001\332A6project,zone,resource,zone_s" - + "et_policy_request_resource\202\323\344\223\002t\"P/compu" - + "te/v1/projects/{project}/zones/{zone}/st" - + "oragePools/{resource}/setIamPolicy: zone" - + "_set_policy_request_resource\022\303\002\n\022TestIam" - + "Permissions\022=.google.cloud.compute.v1.Te" - + "stIamPermissionsStoragePoolRequest\0320.goo" - + "gle.cloud.compute.v1.TestPermissionsResp" - + "onse\"\273\001\332A7project,zone,resource,test_per" - + "missions_request_resource\202\323\344\223\002{\"V/comput" - + "e/v1/projects/{project}/zones/{zone}/sto" - + "ragePools/{resource}/testIamPermissions:" - + "!test_permissions_request_resource\022\213\002\n\006U" - + "pdate\0221.google.cloud.compute.v1.UpdateSt" - + "oragePoolRequest\032\".google.cloud.compute." - + "v1.Operation\"\251\001\332A/project,zone,storage_p" - + "ool,storage_pool_resource\212N\016ZoneOperatio" - + "ns\202\323\344\223\002`2G/compute/v1/projects/{project}" - + "/zones/{zone}/storagePools/{storage_pool" - + "}:\025storage_pool_resource\032\202\001\312A\026compute.go" - + "ogleapis.com\322AVhttps://www.googleapis.co" - + "m/auth/compute,https://www.googleapis.co" - + "m/auth/cloud-platform\212\324\333\322\017\n2026-09-012\356\031" - + "\n\013Subnetworks\022\307\001\n\016AggregatedList\0229.googl" - + "e.cloud.compute.v1.AggregatedListSubnetw" - + "orksRequest\0321.google.cloud.compute.v1.Su" - + "bnetworkAggregatedList\"G\332A\007project\202\323\344\223\0027" - + "\0225/compute/v1/projects/{project}/aggrega" - + "ted/subnetworks\022\337\001\n\006Delete\0220.google.clou" - + "d.compute.v1.DeleteSubnetworkRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\177\332A\031pro" - + "ject,region,subnetwork\212N\020RegionOperation" - + "s\202\323\344\223\002J*H/compute/v1/projects/{project}/" - + "regions/{region}/subnetworks/{subnetwork" - + "}\022\356\002\n\021ExpandIpCidrRange\022;.google.cloud.c" - + "ompute.v1.ExpandIpCidrRangeSubnetworkReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\367\001\332AKproject,region,subnetwork,subnetwo" - + "rks_expand_ip_cidr_range_request_resourc" - + "e\212N\020RegionOperations\202\323\344\223\002\217\001\"Z/compute/v1" + + "oolTypes/{storage_pool_type}\022\277\001\n\004List\0224." + + "google.cloud.compute.v1.ListStoragePoolT" + + "ypesRequest\032,.google.cloud.compute.v1.St" + + "oragePoolTypeList\"S\332A\014project,zone\202\323\344\223\002>" + + "\022\022.goog" - + "le.cloud.compute.v1.AggregatedListTarget" - + "TcpProxiesRequest\0325.google.cloud.compute" - + ".v1.TargetTcpProxyAggregatedList\"L\332A\007pro" - + "ject\202\323\344\223\002<\022:/compute/v1/projects/{projec" - + "t}/aggregated/targetTcpProxies\022\343\001\n\006Delet" - + "e\0224.google.cloud.compute.v1.DeleteTarget" - + "TcpProxyRequest\032\".google.cloud.compute.v" - + "1.Operation\"\177\332A\030project,target_tcp_proxy" - + "\212N\020GlobalOperations\202\323\344\223\002K*I/compute/v1/p" - + "rojects/{project}/global/targetTcpProxie" - + "s/{target_tcp_proxy}\022\317\001\n\003Get\0221.google.cl" - + "oud.compute.v1.GetTargetTcpProxyRequest\032" - + "\'.google.cloud.compute.v1.TargetTcpProxy" - + "\"l\332A\030project,target_tcp_proxy\202\323\344\223\002K\022I/co" - + "mpute/v1/projects/{project}/global/targe" - + "tTcpProxies/{target_tcp_proxy}\022\365\001\n\006Inser" - + "t\0224.google.cloud.compute.v1.InsertTarget" - + "TcpProxyRequest\032\".google.cloud.compute.v" - + "1.Operation\"\220\001\332A!project,target_tcp_prox" - + "y_resource\212N\020GlobalOperations\202\323\344\223\002S\"6/co" - + "mpute/v1/projects/{project}/global/targe" - + "tTcpProxies:\031target_tcp_proxy_resource\022\263" - + "\001\n\004List\0224.google.cloud.compute.v1.ListTa" - + "rgetTcpProxiesRequest\032+.google.cloud.com" - + "pute.v1.TargetTcpProxyList\"H\332A\007project\202\323" - + "\344\223\0028\0226/compute/v1/projects/{project}/glo" - + "bal/targetTcpProxies\022\376\002\n\021SetBackendServi" - + "ce\022?.google.cloud.compute.v1.SetBackendS" - + "erviceTargetTcpProxyRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\203\002\332APproject,tar" - + "get_tcp_proxy,target_tcp_proxies_set_bac" - + "kend_service_request_resource\212N\020GlobalOp" - + "erations\202\323\344\223\002\226\001\"[/compute/v1/projects/{p" - + "roject}/global/targetTcpProxies/{target_" - + "tcp_proxy}/setBackendService:7target_tcp" - + "_proxies_set_backend_service_request_res" - + "ource\022\357\002\n\016SetProxyHeader\022<.google.cloud." - + "compute.v1.SetProxyHeaderTargetTcpProxyR" + + "\274\001\332A4project,target_http_proxy,url_map_r" + + "eference_resource\212N\020GlobalOperations\202\323\344\223" + + "\002l\"N/compute/v1/projects/{project}/targe" + + "tHttpProxies/{target_http_proxy}/setUrlM" + + "ap:\032url_map_reference_resource\032\202\001\312A\026comp" + + "ute.googleapis.com\322AVhttps://www.googlea" + + "pis.com/auth/compute,https://www.googlea" + + "pis.com/auth/cloud-platform\212\324\333\322\017\n2026-09" + + "-012\263\032\n\022TargetHttpsProxies\022\333\001\n\016Aggregate" + + "dList\022@.google.cloud.compute.v1.Aggregat" + + "edListTargetHttpsProxiesRequest\0327.google" + + ".cloud.compute.v1.TargetHttpsProxyAggreg" + + "atedList\"N\332A\007project\202\323\344\223\002>\022.google.cl" + + "oud.compute.v1.AggregatedListTargetTcpPr" + + "oxiesRequest\0325.google.cloud.compute.v1.T" + + "argetTcpProxyAggregatedList\"L\332A\007project\202" + + "\323\344\223\002<\022:/compute/v1/projects/{project}/ag" + + "gregated/targetTcpProxies\022\343\001\n\006Delete\0224.g" + + "oogle.cloud.compute.v1.DeleteTargetTcpPr" + + "oxyRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\177\332A\030project,target_tcp_proxy\212N\020Gl" + + "obalOperations\202\323\344\223\002K*I/compute/v1/projec" + + "ts/{project}/global/targetTcpProxies/{ta" + + "rget_tcp_proxy}\022\317\001\n\003Get\0221.google.cloud.c" + + "ompute.v1.GetTargetTcpProxyRequest\032\'.goo" + + "gle.cloud.compute.v1.TargetTcpProxy\"l\332A\030" + + "project,target_tcp_proxy\202\323\344\223\002K\022I/compute" + + "/v1/projects/{project}/global/targetTcpP" + + "roxies/{target_tcp_proxy}\022\365\001\n\006Insert\0224.g" + + "oogle.cloud.compute.v1.InsertTargetTcpPr" + + "oxyRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\220\001\332A!project,target_tcp_proxy_res" + + "ource\212N\020GlobalOperations\202\323\344\223\002S\"6/compute" + + "/v1/projects/{project}/global/targetTcpP" + + "roxies:\031target_tcp_proxy_resource\022\263\001\n\004Li" + + "st\0224.google.cloud.compute.v1.ListTargetT" + + "cpProxiesRequest\032+.google.cloud.compute." + + "v1.TargetTcpProxyList\"H\332A\007project\202\323\344\223\0028\022" + + "6/compute/v1/projects/{project}/global/t" + + "argetTcpProxies\022\376\002\n\021SetBackendService\022?." + + "google.cloud.compute.v1.SetBackendServic" + + "eTargetTcpProxyRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\203\002\332APproject,target_t" + + "cp_proxy,target_tcp_proxies_set_backend_" + + "service_request_resource\212N\020GlobalOperati" + + "ons\202\323\344\223\002\226\001\"[/compute/v1/projects/{projec" + + "t}/global/targetTcpProxies/{target_tcp_p" + + "roxy}/setBackendService:7target_tcp_prox" + + "ies_set_backend_service_request_resource" + + "\022\357\002\n\016SetProxyHeader\022<.google.cloud.compu" + + "te.v1.SetProxyHeaderTargetTcpProxyReques" + + "t\032\".google.cloud.compute.v1.Operation\"\372\001" + + "\332AMproject,target_tcp_proxy,target_tcp_p" + + "roxies_set_proxy_header_request_resource", + "\212N\020GlobalOperations\202\323\344\223\002\220\001\"X/compute/v1/" + + "projects/{project}/global/targetTcpProxi" + + "es/{target_tcp_proxy}/setProxyHeader:4ta" + + "rget_tcp_proxies_set_proxy_header_reques" + + "t_resource\022\277\002\n\022TestIamPermissions\022@.goog" + + "le.cloud.compute.v1.TestIamPermissionsTa" + + "rgetTcpProxyRequest\0320.google.cloud.compu" + + "te.v1.TestPermissionsResponse\"\264\001\332A2proje" + + "ct,resource,test_permissions_request_res" + + "ource\202\323\344\223\002y\"T/compute/v1/projects/{proje" + + "ct}/global/targetTcpProxies/{resource}/t" + + "estIamPermissions:!test_permissions_requ" + + "est_resource\032\202\001\312A\026compute.googleapis.com" + + "\322AVhttps://www.googleapis.com/auth/compu" + + "te,https://www.googleapis.com/auth/cloud" + + "-platform\212\324\333\322\017\n2026-09-012\375\014\n\021TargetVpnG" + + "ateways\022\331\001\n\016AggregatedList\022?.google.clou" + + "d.compute.v1.AggregatedListTargetVpnGate" + + "waysRequest\0327.google.cloud.compute.v1.Ta" + + "rgetVpnGatewayAggregatedList\"M\332A\007project" + + "\202\323\344\223\002=\022;/compute/v1/projects/{project}/a" + + "ggregated/targetVpnGateways\022\374\001\n\006Delete\0226" + + ".google.cloud.compute.v1.DeleteTargetVpn" + + "GatewayRequest\032\".google.cloud.compute.v1" + + ".Operation\"\225\001\332A!project,region,target_vp" + + "n_gateway\212N\020RegionOperations\202\323\344\223\002X*V/com" + "pute/v1/projects/{project}/regions/{regi" - + "on}/vpnTunnels:\023vpn_tunnel_resource\022\263\001\n\004" - + "List\022..google.cloud.compute.v1.ListVpnTu" - + "nnelsRequest\032&.google.cloud.compute.v1.V" - + "pnTunnelList\"S\332A\016project,region\202\323\344\223\002<\022:/" + + "on}/targetVpnGateways/{target_vpn_gatewa" + + "y}\022\352\001\n\003Get\0223.google.cloud.compute.v1.Get" + + "TargetVpnGatewayRequest\032).google.cloud.c" + + "ompute.v1.TargetVpnGateway\"\202\001\332A!project," + + "region,target_vpn_gateway\202\323\344\223\002X\022V/comput" + + "e/v1/projects/{project}/regions/{region}" + + "/targetVpnGateways/{target_vpn_gateway}\022" + + "\215\002\n\006Insert\0226.google.cloud.compute.v1.Ins" + + "ertTargetVpnGatewayRequest\032\".google.clou" + + "d.compute.v1.Operation\"\246\001\332A*project,regi" + + "on,target_vpn_gateway_resource\212N\020RegionO" + + "perations\202\323\344\223\002`\"A/compute/v1/projects/{p" + + "roject}/regions/{region}/targetVpnGatewa" + + "ys:\033target_vpn_gateway_resource\022\310\001\n\004List" + + "\0225.google.cloud.compute.v1.ListTargetVpn" + + "GatewaysRequest\032-.google.cloud.compute.v" + + "1.TargetVpnGatewayList\"Z\332A\016project,regio" + + "n\202\323\344\223\002C\022A/compute/v1/projects/{project}/" + + "regions/{region}/targetVpnGateways\022\277\002\n\tS" + + "etLabels\0229.google.cloud.compute.v1.SetLa" + + "belsTargetVpnGatewayRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\322\001\332A:project,reg" + + "ion,resource,region_set_labels_request_r" + + "esource\212N\020RegionOperations\202\323\344\223\002|\"V/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/targetVpnGateways/{resource}/setLabels" + + ":\"region_set_labels_request_resource\032\202\001\312" + + "A\026compute.googleapis.com\322AVhttps://www.g" + + "oogleapis.com/auth/compute,https://www.g" + + "oogleapis.com/auth/cloud-platform\212\324\333\322\017\n2" + + "026-09-012\340\022\n\007UrlMaps\022\274\001\n\016AggregatedList" + + "\0225.google.cloud.compute.v1.AggregatedLis" + + "tUrlMapsRequest\032..google.cloud.compute.v" + + "1.UrlMapsAggregatedList\"C\332A\007project\202\323\344\223\002" + + "3\0221/compute/v1/projects/{project}/aggreg" + + "ated/urlMaps\022\300\001\n\006Delete\022,.google.cloud.c" + + "ompute.v1.DeleteUrlMapRequest\032\".google.c" + + "loud.compute.v1.Operation\"d\332A\017project,ur" + + "l_map\212N\020GlobalOperations\202\323\344\223\0029*7/compute" + + "/v1/projects/{project}/global/urlMaps/{u" + + "rl_map}\022\244\001\n\003Get\022).google.cloud.compute.v" + + "1.GetUrlMapRequest\032\037.google.cloud.comput" + + "e.v1.UrlMap\"Q\332A\017project,url_map\202\323\344\223\0029\0227/" + + "compute/v1/projects/{project}/global/url" + + "Maps/{url_map}\022\321\001\n\006Insert\022,.google.cloud" + + ".compute.v1.InsertUrlMapRequest\032\".google" + + ".cloud.compute.v1.Operation\"u\332A\030project," + + "url_map_resource\212N\020GlobalOperations\202\323\344\223\002" + + "A\"-/compute/v1/projects/{project}/global" + + "/urlMaps:\020url_map_resource\022\246\002\n\017Invalidat" + + "eCache\0225.google.cloud.compute.v1.Invalid" + + "ateCacheUrlMapRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\267\001\332A0project,url_map,c" + + "ache_invalidation_rule_resource\212N\020Global" + + "Operations\202\323\344\223\002k\"G/compute/v1/projects/{" + + "project}/global/urlMaps/{url_map}/invali" + + "dateCache: cache_invalidation_rule_resou" + + "rce\022\231\001\n\004List\022+.google.cloud.compute.v1.L" + + "istUrlMapsRequest\032#.google.cloud.compute" + + ".v1.UrlMapList\"?\332A\007project\202\323\344\223\002/\022-/compu" + + "te/v1/projects/{project}/global/urlMaps\022" + + "\342\001\n\005Patch\022+.google.cloud.compute.v1.Patc" + + "hUrlMapRequest\032\".google.cloud.compute.v1" + + ".Operation\"\207\001\332A project,url_map,url_map_" + + "resource\212N\020GlobalOperations\202\323\344\223\002K27/comp" + + "ute/v1/projects/{project}/global/urlMaps" + + "/{url_map}:\020url_map_resource\022\256\002\n\022TestIam" + + "Permissions\0228.google.cloud.compute.v1.Te" + + "stIamPermissionsUrlMapRequest\0320.google.c" + + "loud.compute.v1.TestPermissionsResponse\"" + + "\253\001\332A2project,resource,test_permissions_r" + + "equest_resource\202\323\344\223\002p\"K/compute/v1/proje" + + "cts/{project}/global/urlMaps/{resource}/" + + "testIamPermissions:!test_permissions_req" + + "uest_resource\022\344\001\n\006Update\022,.google.cloud." + + "compute.v1.UpdateUrlMapRequest\032\".google." + + "cloud.compute.v1.Operation\"\207\001\332A project," + + "url_map,url_map_resource\212N\020GlobalOperati" + + "ons\202\323\344\223\002K\0327/compute/v1/projects/{project" + + "}/global/urlMaps/{url_map}:\020url_map_reso" + + "urce\022\220\002\n\010Validate\022..google.cloud.compute" + + ".v1.ValidateUrlMapRequest\0320.google.cloud" + + ".compute.v1.UrlMapsValidateResponse\"\241\001\332A" + + "2project,url_map,url_maps_validate_reque" + + "st_resource\202\323\344\223\002f\"@/compute/v1/projects/" + + "{project}/global/urlMaps/{url_map}/valid" + + "ate:\"url_maps_validate_request_resource\032" + + "\202\001\312A\026compute.googleapis.com\322AVhttps://ww" + + "w.googleapis.com/auth/compute,https://ww" + + "w.googleapis.com/auth/cloud-platform\212\324\333\322" + + "\017\n2026-09-012\260\020\n\013VpnGateways\022\307\001\n\016Aggrega" + + "tedList\0229.google.cloud.compute.v1.Aggreg" + + "atedListVpnGatewaysRequest\0321.google.clou" + + "d.compute.v1.VpnGatewayAggregatedList\"G\332" + + "A\007project\202\323\344\223\0027\0225/compute/v1/projects/{p" + + "roject}/aggregated/vpnGateways\022\342\001\n\006Delet" + + "e\0220.google.cloud.compute.v1.DeleteVpnGat" + + "ewayRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\201\001\332A\032project,region,vpn_gateway\212" + + "N\020RegionOperations\202\323\344\223\002K*I/compute/v1/pr" + + "ojects/{project}/regions/{region}/vpnGat" + + "eways/{vpn_gateway}\022\311\001\n\003Get\022-.google.clo" + + "ud.compute.v1.GetVpnGatewayRequest\032#.goo" + + "gle.cloud.compute.v1.VpnGateway\"n\332A\032proj" + + "ect,region,vpn_gateway\202\323\344\223\002K\022I/compute/v" + + "1/projects/{project}/regions/{region}/vp" + + "nGateways/{vpn_gateway}\022\361\001\n\tGetStatus\0223." + + "google.cloud.compute.v1.GetStatusVpnGate" + + "wayRequest\0325.google.cloud.compute.v1.Vpn" + + "GatewaysGetStatusResponse\"x\332A\032project,re" + + "gion,vpn_gateway\202\323\344\223\002U\022S/compute/v1/proj" + + "ects/{project}/regions/{region}/vpnGatew" + + "ays/{vpn_gateway}/getStatus\022\363\001\n\006Insert\0220" + + ".google.cloud.compute.v1.InsertVpnGatewa" + + "yRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\222\001\332A#project,region,vpn_gateway_res" + + "ource\212N\020RegionOperations\202\323\344\223\002S\";/compute" + + "/v1/projects/{project}/regions/{region}/" + + "vpnGateways:\024vpn_gateway_resource\022\266\001\n\004Li" + + "st\022/.google.cloud.compute.v1.ListVpnGate" + + "waysRequest\032\'.google.cloud.compute.v1.Vp" + + "nGatewayList\"T\332A\016project,region\202\323\344\223\002=\022;/" + "compute/v1/projects/{project}/regions/{r" - + "egion}/vpnTunnels\022\261\002\n\tSetLabels\0222.google" - + ".cloud.compute.v1.SetLabelsVpnTunnelRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\313\001\332A:project,region,resource,region_set_" - + "labels_request_resource\212N\020RegionOperatio" - + "ns\202\323\344\223\002u\"O/compute/v1/projects/{project}" - + "/regions/{region}/vpnTunnels/{resource}/" - + "setLabels:\"region_set_labels_request_res" - + "ource\032\202\001\312A\026compute.googleapis.com\322AVhttp" - + "s://www.googleapis.com/auth/compute,http" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rm\212\324\333\322\017\n2026-09-012\267\013\n\nWireGroups\022\207\002\n\006De" - + "lete\022/.google.cloud.compute.v1.DeleteWir" - + "eGroupRequest\032\".google.cloud.compute.v1." - + "Operation\"\247\001\332A%project,cross_site_networ" - + "k,wire_group\212N\020GlobalOperations\202\323\344\223\002f*d/" - + "compute/v1/projects/{project}/global/cro" - + "ssSiteNetworks/{cross_site_network}/wire" - + "Groups/{wire_group}\022\356\001\n\003Get\022,.google.clo" - + "ud.compute.v1.GetWireGroupRequest\032\".goog" - + "le.cloud.compute.v1.WireGroup\"\224\001\332A%proje" - + "ct,cross_site_network,wire_group\202\323\344\223\002f\022d" - + "/compute/v1/projects/{project}/global/cr" - + "ossSiteNetworks/{cross_site_network}/wir" - + "eGroups/{wire_group}\022\230\002\n\006Insert\022/.google" - + ".cloud.compute.v1.InsertWireGroupRequest" - + "\032\".google.cloud.compute.v1.Operation\"\270\001\332" - + "A.project,cross_site_network,wire_group_" - + "resource\212N\020GlobalOperations\202\323\344\223\002n\"W/comp" + + "egion}/vpnGateways\022\263\002\n\tSetLabels\0223.googl" + + "e.cloud.compute.v1.SetLabelsVpnGatewayRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\314\001\332A:project,region,resource,region_se" + + "t_labels_request_resource\212N\020RegionOperat" + + "ions\202\323\344\223\002v\"P/compute/v1/projects/{projec" + + "t}/regions/{region}/vpnGateways/{resourc" + + "e}/setLabels:\"region_set_labels_request_" + + "resource\022\307\002\n\022TestIamPermissions\022<.google" + + ".cloud.compute.v1.TestIamPermissionsVpnG" + + "atewayRequest\0320.google.cloud.compute.v1." + + "TestPermissionsResponse\"\300\001\332A9project,reg" + + "ion,resource,test_permissions_request_re" + + "source\202\323\344\223\002~\"Y/compute/v1/projects/{proj" + + "ect}/regions/{region}/vpnGateways/{resou" + + "rce}/testIamPermissions:!test_permission" + + "s_request_resource\032\202\001\312A\026compute.googleap" + + "is.com\322AVhttps://www.googleapis.com/auth" + + "/compute,https://www.googleapis.com/auth" + + "/cloud-platform\212\324\333\322\017\n2026-09-012\333\013\n\nVpnT" + + "unnels\022\304\001\n\016AggregatedList\0228.google.cloud" + + ".compute.v1.AggregatedListVpnTunnelsRequ" + + "est\0320.google.cloud.compute.v1.VpnTunnelA" + + "ggregatedList\"F\332A\007project\202\323\344\223\0026\0224/comput" + + "e/v1/projects/{project}/aggregated/vpnTu" + + "nnels\022\335\001\n\006Delete\022/.google.cloud.compute." + + "v1.DeleteVpnTunnelRequest\032\".google.cloud" + + ".compute.v1.Operation\"~\332A\031project,region" + + ",vpn_tunnel\212N\020RegionOperations\202\323\344\223\002I*G/c" + + "ompute/v1/projects/{project}/regions/{re" + + "gion}/vpnTunnels/{vpn_tunnel}\022\304\001\n\003Get\022,." + + "google.cloud.compute.v1.GetVpnTunnelRequ" + + "est\032\".google.cloud.compute.v1.VpnTunnel\"" + + "k\332A\031project,region,vpn_tunnel\202\323\344\223\002I\022G/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/vpnTunnels/{vpn_tunnel}\022\357\001\n\006Insert\022" + + "/.google.cloud.compute.v1.InsertVpnTunne" + + "lRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\217\001\332A\"project,region,vpn_tunnel_reso" + + "urce\212N\020RegionOperations\202\323\344\223\002Q\":/compute/" + + "v1/projects/{project}/regions/{region}/v" + + "pnTunnels:\023vpn_tunnel_resource\022\263\001\n\004List\022" + + "..google.cloud.compute.v1.ListVpnTunnels" + + "Request\032&.google.cloud.compute.v1.VpnTun" + + "nelList\"S\332A\016project,region\202\323\344\223\002<\022:/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/vpnTunnels\022\261\002\n\tSetLabels\0222.google.clou" + + "d.compute.v1.SetLabelsVpnTunnelRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\313\001\332A:" + + "project,region,resource,region_set_label" + + "s_request_resource\212N\020RegionOperations\202\323\344" + + "\223\002u\"O/compute/v1/projects/{project}/regi" + + "ons/{region}/vpnTunnels/{resource}/setLa" + + "bels:\"region_set_labels_request_resource" + + "\032\202\001\312A\026compute.googleapis.com\322AVhttps://w" + + "ww.googleapis.com/auth/compute,https://w" + + "ww.googleapis.com/auth/cloud-platform\212\324\333" + + "\322\017\n2026-09-012\267\013\n\nWireGroups\022\207\002\n\006Delete\022" + + "/.google.cloud.compute.v1.DeleteWireGrou" + + "pRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\247\001\332A%project,cross_site_network,wir" + + "e_group\212N\020GlobalOperations\202\323\344\223\002f*d/compu" + + "te/v1/projects/{project}/global/crossSit" + + "eNetworks/{cross_site_network}/wireGroup" + + "s/{wire_group}\022\356\001\n\003Get\022,.google.cloud.co" + + "mpute.v1.GetWireGroupRequest\032\".google.cl" + + "oud.compute.v1.WireGroup\"\224\001\332A%project,cr" + + "oss_site_network,wire_group\202\323\344\223\002f\022d/comp" + "ute/v1/projects/{project}/global/crossSi" + "teNetworks/{cross_site_network}/wireGrou" - + "ps:\023wire_group_resource\022\334\001\n\004List\022..googl" - + "e.cloud.compute.v1.ListWireGroupsRequest" - + "\032&.google.cloud.compute.v1.WireGroupList" - + "\"|\332A\032project,cross_site_network\202\323\344\223\002Y\022W/" - + "compute/v1/projects/{project}/global/cro" - + "ssSiteNetworks/{cross_site_network}/wire" - + "Groups\022\256\002\n\005Patch\022..google.cloud.compute." - + "v1.PatchWireGroupRequest\032\".google.cloud." - + "compute.v1.Operation\"\320\001\332A9project,cross_" - + "site_network,wire_group,wire_group_resou" - + "rce\212N\020GlobalOperations\202\323\344\223\002{2d/compute/v" + + "ps/{wire_group}\022\230\002\n\006Insert\022/.google.clou" + + "d.compute.v1.InsertWireGroupRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\270\001\332A.pro" + + "ject,cross_site_network,wire_group_resou" + + "rce\212N\020GlobalOperations\202\323\344\223\002n\"W/compute/v" + "1/projects/{project}/global/crossSiteNet" - + "works/{cross_site_network}/wireGroups/{w" - + "ire_group}:\023wire_group_resource\032\202\001\312A\026com" - + "pute.googleapis.com\322AVhttps://www.google" - + "apis.com/auth/compute,https://www.google" - + "apis.com/auth/cloud-platform\212\324\333\322\017\n2026-0" - + "9-012\264\007\n\016ZoneOperations\022\330\001\n\006Delete\0223.goo" - + "gle.cloud.compute.v1.DeleteZoneOperation" - + "Request\0324.google.cloud.compute.v1.Delete" - + "ZoneOperationResponse\"c\332A\026project,zone,o" - + "peration\202\323\344\223\002D*B/compute/v1/projects/{pr" - + "oject}/zones/{zone}/operations/{operatio" - + "n}\022\303\001\n\003Get\0220.google.cloud.compute.v1.Get" - + "ZoneOperationRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"f\332A\026project,zone,operat" - + "ion\220N\001\202\323\344\223\002D\022B/compute/v1/projects/{proj" - + "ect}/zones/{zone}/operations/{operation}" - + "\022\261\001\n\004List\0222.google.cloud.compute.v1.List" - + "ZoneOperationsRequest\032&.google.cloud.com" - + "pute.v1.OperationList\"M\332A\014project,zone\202\323" - + "\344\223\0028\0226/compute/v1/projects/{project}/zon" - + "es/{zone}/operations\022\307\001\n\004Wait\0221.google.c" - + "loud.compute.v1.WaitZoneOperationRequest" - + "\032\".google.cloud.compute.v1.Operation\"h\332A" - + "\026project,zone,operation\202\323\344\223\002I\"G/compute/" - + "v1/projects/{project}/zones/{zone}/opera" - + "tions/{operation}/wait\032\202\001\312A\026compute.goog" - + "leapis.com\322AVhttps://www.googleapis.com/" - + "auth/compute,https://www.googleapis.com/" - + "auth/cloud-platform\212\324\333\322\017\n2026-09-012\251\013\n\027" - + "ZoneVmExtensionPolicies\022\375\001\n\006Delete\022;.goo" - + "gle.cloud.compute.v1.DeleteZoneVmExtensi" - + "onPolicyRequest\032\".google.cloud.compute.v" - + "1.Operation\"\221\001\332A project,zone,vm_extensi" - + "on_policy\212N\016ZoneOperations\202\323\344\223\002W*U/compu" + + "works/{cross_site_network}/wireGroups:\023w" + + "ire_group_resource\022\334\001\n\004List\022..google.clo" + + "ud.compute.v1.ListWireGroupsRequest\032&.go" + + "ogle.cloud.compute.v1.WireGroupList\"|\332A\032" + + "project,cross_site_network\202\323\344\223\002Y\022W/compu" + + "te/v1/projects/{project}/global/crossSit" + + "eNetworks/{cross_site_network}/wireGroup" + + "s\022\256\002\n\005Patch\022..google.cloud.compute.v1.Pa" + + "tchWireGroupRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\320\001\332A9project,cross_site_" + + "network,wire_group,wire_group_resource\212N" + + "\020GlobalOperations\202\323\344\223\002{2d/compute/v1/pro" + + "jects/{project}/global/crossSiteNetworks" + + "/{cross_site_network}/wireGroups/{wire_g" + + "roup}:\023wire_group_resource\032\202\001\312A\026compute." + + "googleapis.com\322AVhttps://www.googleapis." + + "com/auth/compute,https://www.googleapis." + + "com/auth/cloud-platform\212\324\333\322\017\n2026-09-012" + + "\264\007\n\016ZoneOperations\022\330\001\n\006Delete\0223.google.c" + + "loud.compute.v1.DeleteZoneOperationReque" + + "st\0324.google.cloud.compute.v1.DeleteZoneO" + + "perationResponse\"c\332A\026project,zone,operat" + + "ion\202\323\344\223\002D*B/compute/v1/projects/{project" + + "}/zones/{zone}/operations/{operation}\022\303\001" + + "\n\003Get\0220.google.cloud.compute.v1.GetZoneO" + + "perationRequest\032\".google.cloud.compute.v" + + "1.Operation\"f\332A\026project,zone,operation\220N" + + "\001\202\323\344\223\002D\022B/compute/v1/projects/{project}/" + + "zones/{zone}/operations/{operation}\022\261\001\n\004" + + "List\0222.google.cloud.compute.v1.ListZoneO" + + "perationsRequest\032&.google.cloud.compute." + + "v1.OperationList\"M\332A\014project,zone\202\323\344\223\0028\022" + + "6/compute/v1/projects/{project}/zones/{z" + + "one}/operations\022\307\001\n\004Wait\0221.google.cloud." + + "compute.v1.WaitZoneOperationRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"h\332A\026proj" + + "ect,zone,operation\202\323\344\223\002I\"G/compute/v1/pr" + + "ojects/{project}/zones/{zone}/operations" + + "/{operation}/wait\032\202\001\312A\026compute.googleapi" + + "s.com\322AVhttps://www.googleapis.com/auth/" + + "compute,https://www.googleapis.com/auth/" + + "cloud-platform\212\324\333\322\017\n2026-09-012\251\013\n\027ZoneV" + + "mExtensionPolicies\022\375\001\n\006Delete\022;.google.c" + + "loud.compute.v1.DeleteZoneVmExtensionPol" + + "icyRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\221\001\332A project,zone,vm_extension_po" + + "licy\212N\016ZoneOperations\202\323\344\223\002W*U/compute/v1" + + "/projects/{project}/zones/{zone}/vmExten" + + "sionPolicies/{vm_extension_policy}\022\356\001\n\003G" + + "et\0228.google.cloud.compute.v1.GetZoneVmEx" + + "tensionPolicyRequest\032*.google.cloud.comp" + + "ute.v1.VmExtensionPolicy\"\200\001\332A project,zo" + + "ne,vm_extension_policy\202\323\344\223\002W\022U/compute/v" + + "1/projects/{project}/zones/{zone}/vmExte" + + "nsionPolicies/{vm_extension_policy}\022\216\002\n\006" + + "Insert\022;.google.cloud.compute.v1.InsertZ" + + "oneVmExtensionPolicyRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\242\001\332A)project,zon" + + "e,vm_extension_policy_resource\212N\016ZoneOpe" + + "rations\202\323\344\223\002_\"?/compute/v1/projects/{pro" + + "ject}/zones/{zone}/vmExtensionPolicies:\034" + + "vm_extension_policy_resource\022\313\001\n\004List\022;." + + "google.cloud.compute.v1.ListZoneVmExtens" + + "ionPoliciesRequest\032..google.cloud.comput" + + "e.v1.VmExtensionPolicyList\"V\332A\014project,z" + + "one\202\323\344\223\002A\022?/compute/v1/projects/{project" + + "}/zones/{zone}/vmExtensionPolicies\022\270\002\n\006U" + + "pdate\022;.google.cloud.compute.v1.UpdateZo" + + "neVmExtensionPolicyRequest\032\".google.clou" + + "d.compute.v1.Operation\"\314\001\332A=project,zone" + + ",vm_extension_policy,vm_extension_policy" + + "_resource\212N\016ZoneOperations\202\323\344\223\002u2U/compu" + "te/v1/projects/{project}/zones/{zone}/vm" - + "ExtensionPolicies/{vm_extension_policy}\022" - + "\356\001\n\003Get\0228.google.cloud.compute.v1.GetZon" - + "eVmExtensionPolicyRequest\032*.google.cloud" - + ".compute.v1.VmExtensionPolicy\"\200\001\332A proje" - + "ct,zone,vm_extension_policy\202\323\344\223\002W\022U/comp" - + "ute/v1/projects/{project}/zones/{zone}/v" - + "mExtensionPolicies/{vm_extension_policy}" - + "\022\216\002\n\006Insert\022;.google.cloud.compute.v1.In" - + "sertZoneVmExtensionPolicyRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\242\001\332A)projec" - + "t,zone,vm_extension_policy_resource\212N\016Zo" - + "neOperations\202\323\344\223\002_\"?/compute/v1/projects" - + "/{project}/zones/{zone}/vmExtensionPolic" - + "ies:\034vm_extension_policy_resource\022\313\001\n\004Li" - + "st\022;.google.cloud.compute.v1.ListZoneVmE" - + "xtensionPoliciesRequest\032..google.cloud.c" - + "ompute.v1.VmExtensionPolicyList\"V\332A\014proj" - + "ect,zone\202\323\344\223\002A\022?/compute/v1/projects/{pr" - + "oject}/zones/{zone}/vmExtensionPolicies\022" - + "\270\002\n\006Update\022;.google.cloud.compute.v1.Upd" - + "ateZoneVmExtensionPolicyRequest\032\".google" - + ".cloud.compute.v1.Operation\"\314\001\332A=project" - + ",zone,vm_extension_policy,vm_extension_p" - + "olicy_resource\212N\016ZoneOperations\202\323\344\223\002u2U/" - + "compute/v1/projects/{project}/zones/{zon" - + "e}/vmExtensionPolicies/{vm_extension_pol" - + "icy}:\034vm_extension_policy_resource\032\202\001\312A\026" - + "compute.googleapis.com\322AVhttps://www.goo" - + "gleapis.com/auth/compute,https://www.goo" - + "gleapis.com/auth/cloud-platform\212\324\333\322\017\n202" - + "6-09-012\341\003\n\005Zones\022\221\001\n\003Get\022\'.google.cloud" - + ".compute.v1.GetZoneRequest\032\035.google.clou" - + "d.compute.v1.Zone\"B\332A\014project,zone\202\323\344\223\002-" - + "\022+/compute/v1/projects/{project}/zones/{" - + "zone}\022\214\001\n\004List\022).google.cloud.compute.v1" - + ".ListZonesRequest\032!.google.cloud.compute" - + ".v1.ZoneList\"6\332A\007project\202\323\344\223\002&\022$/compute" - + "/v1/projects/{project}/zones\032\264\001\312A\026comput" - + "e.googleapis.com\322A\207\001https://www.googleap" - + "is.com/auth/compute.readonly,https://www" - + ".googleapis.com/auth/compute,https://www" - + ".googleapis.com/auth/cloud-platform\212\324\333\322\017" - + "\n2026-09-01B\247\001\n\033com.google.cloud.compute" - + ".v1P\001Z5cloud.google.com/go/compute/apiv1" - + "/computepb;computepb\252\002\027Google.Cloud.Comp" - + "ute.V1\312\002\027Google\\Cloud\\Compute\\V1\352\002\032Googl" - + "e::Cloud::Compute::V1b\006proto3" + + "ExtensionPolicies/{vm_extension_policy}:" + + "\034vm_extension_policy_resource\032\202\001\312A\026compu" + + "te.googleapis.com\322AVhttps://www.googleap" + + "is.com/auth/compute,https://www.googleap" + + "is.com/auth/cloud-platform\212\324\333\322\017\n2026-09-" + + "012\341\003\n\005Zones\022\221\001\n\003Get\022\'.google.cloud.comp" + + "ute.v1.GetZoneRequest\032\035.google.cloud.com" + + "pute.v1.Zone\"B\332A\014project,zone\202\323\344\223\002-\022+/co" + + "mpute/v1/projects/{project}/zones/{zone}" + + "\022\214\001\n\004List\022).google.cloud.compute.v1.List" + + "ZonesRequest\032!.google.cloud.compute.v1.Z" + + "oneList\"6\332A\007project\202\323\344\223\002&\022$/compute/v1/p" + + "rojects/{project}/zones\032\264\001\312A\026compute.goo" + + "gleapis.com\322A\207\001https://www.googleapis.co" + + "m/auth/compute.readonly,https://www.goog" + + "leapis.com/auth/compute,https://www.goog" + + "leapis.com/auth/cloud-platform\212\324\333\322\017\n2026" + + "-09-01B\247\001\n\033com.google.cloud.compute.v1P\001" + + "Z5cloud.google.com/go/compute/apiv1/comp" + + "utepb;computepb\252\002\027Google.Cloud.Compute.V" + + "1\312\002\027Google\\Cloud\\Compute\\V1\352\002\032Google::Cl" + + "oud::Compute::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/proto/google/cloud/compute/v1/compute.proto b/java-compute/proto-google-cloud-compute-v1/src/main/proto/google/cloud/compute/v1/compute.proto index 207f0bc0aca9..17b3b64d47ea 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/proto/google/cloud/compute/v1/compute.proto +++ b/java-compute/proto-google-cloud-compute-v1/src/main/proto/google/cloud/compute/v1/compute.proto @@ -14,7 +14,7 @@ // Generated by the disco-to-proto3-converter. DO NOT EDIT! // Source Discovery file: compute.v1.json -// Source file revision: 20260922 +// Source file revision: 20261007 // API name: compute // API version: v1 @@ -13793,6 +13793,9 @@ message Commitment { COMPUTE_OPTIMIZED_H4D = 383251320; + // CUD bucket for COMPUTE_OPTIMIZED_H4D_3TB machines. + COMPUTE_OPTIMIZED_H4D_3TB = 443379866; + GENERAL_PURPOSE = 299793543; GENERAL_PURPOSE_C4 = 301911817; diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/Conversation.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/Conversation.java index 09d758f3c5f7..60a87d31cbfa 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/Conversation.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/Conversation.java @@ -1149,28 +1149,92 @@ public interface AgentInfoOrBuilder * * *
-       * A user-specified string representing the agent's team.
+       * A user-specified string representing the agent's team. Deprecated in
+       * favor of the `teams` field.
        * 
* - * string team = 3; + * string team = 3 [deprecated = true]; * + * @deprecated + * google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo.team is + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=97 * @return The team. */ + @java.lang.Deprecated java.lang.String getTeam(); /** * * *
-       * A user-specified string representing the agent's team.
+       * A user-specified string representing the agent's team. Deprecated in
+       * favor of the `teams` field.
        * 
* - * string team = 3; + * string team = 3 [deprecated = true]; * + * @deprecated + * google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo.team is + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=97 * @return The bytes for team. */ + @java.lang.Deprecated com.google.protobuf.ByteString getTeamBytes(); + /** + * + * + *
+       * User-specified strings representing the agent's teams.
+       * 
+ * + * repeated string teams = 6; + * + * @return A list containing the teams. + */ + java.util.List getTeamsList(); + + /** + * + * + *
+       * User-specified strings representing the agent's teams.
+       * 
+ * + * repeated string teams = 6; + * + * @return The count of teams. + */ + int getTeamsCount(); + + /** + * + * + *
+       * User-specified strings representing the agent's teams.
+       * 
+ * + * repeated string teams = 6; + * + * @param index The index of the element to return. + * @return The teams at the given index. + */ + java.lang.String getTeams(int index); + + /** + * + * + *
+       * User-specified strings representing the agent's teams.
+       * 
+ * + * repeated string teams = 6; + * + * @param index The index of the value to return. + * @return The bytes of the teams at the given index. + */ + com.google.protobuf.ByteString getTeamsBytes(int index); + /** * * @@ -1226,6 +1290,190 @@ public interface AgentInfoOrBuilder * @return The agentType. */ com.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role getAgentType(); + + /** + * + * + *
+       * The agent's location.
+       * 
+ * + * string location = 7; + * + * @return The location. + */ + java.lang.String getLocation(); + + /** + * + * + *
+       * The agent's location.
+       * 
+ * + * string location = 7; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
+       * The agent's deployment ID. Only applicable to automated agents.
+       * 
+ * + * string deployment_id = 8; + * + * @return The deploymentId. + */ + java.lang.String getDeploymentId(); + + /** + * + * + *
+       * The agent's deployment ID. Only applicable to automated agents.
+       * 
+ * + * string deployment_id = 8; + * + * @return The bytes for deploymentId. + */ + com.google.protobuf.ByteString getDeploymentIdBytes(); + + /** + * + * + *
+       * The agent's deployment display name. Only applicable to automated
+       * agents.
+       * 
+ * + * string deployment_display_name = 9; + * + * @return The deploymentDisplayName. + */ + java.lang.String getDeploymentDisplayName(); + + /** + * + * + *
+       * The agent's deployment display name. Only applicable to automated
+       * agents.
+       * 
+ * + * string deployment_display_name = 9; + * + * @return The bytes for deploymentDisplayName. + */ + com.google.protobuf.ByteString getDeploymentDisplayNameBytes(); + + /** + * + * + *
+       * The agent's version ID. Only applicable to automated agents.
+       * 
+ * + * string version_id = 10; + * + * @return The versionId. + */ + java.lang.String getVersionId(); + + /** + * + * + *
+       * The agent's version ID. Only applicable to automated agents.
+       * 
+ * + * string version_id = 10; + * + * @return The bytes for versionId. + */ + com.google.protobuf.ByteString getVersionIdBytes(); + + /** + * + * + *
+       * The agent's version display name. Only applicable to automated agents.
+       * 
+ * + * string version_display_name = 11; + * + * @return The versionDisplayName. + */ + java.lang.String getVersionDisplayName(); + + /** + * + * + *
+       * The agent's version display name. Only applicable to automated agents.
+       * 
+ * + * string version_display_name = 11; + * + * @return The bytes for versionDisplayName. + */ + com.google.protobuf.ByteString getVersionDisplayNameBytes(); + + /** + * + * + *
+       * The entry subagent's display name.
+       * 
+ * + * string entry_subagent_display_name = 12; + * + * @return The entrySubagentDisplayName. + */ + java.lang.String getEntrySubagentDisplayName(); + + /** + * + * + *
+       * The entry subagent's display name.
+       * 
+ * + * string entry_subagent_display_name = 12; + * + * @return The bytes for entrySubagentDisplayName. + */ + com.google.protobuf.ByteString getEntrySubagentDisplayNameBytes(); + + /** + * + * + *
+       * The entry subagent's ID.
+       * 
+ * + * string entry_subagent_id = 13; + * + * @return The entrySubagentId. + */ + java.lang.String getEntrySubagentId(); + + /** + * + * + *
+       * The entry subagent's ID.
+       * 
+ * + * string entry_subagent_id = 13; + * + * @return The bytes for entrySubagentId. + */ + com.google.protobuf.ByteString getEntrySubagentIdBytes(); } /** @@ -1263,8 +1511,16 @@ private AgentInfo() { agentId_ = ""; displayName_ = ""; team_ = ""; + teams_ = com.google.protobuf.LazyStringArrayList.emptyList(); dispositionCode_ = ""; agentType_ = 0; + location_ = ""; + deploymentId_ = ""; + deploymentDisplayName_ = ""; + versionId_ = ""; + versionDisplayName_ = ""; + entrySubagentDisplayName_ = ""; + entrySubagentId_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -1399,14 +1655,19 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-       * A user-specified string representing the agent's team.
+       * A user-specified string representing the agent's team. Deprecated in
+       * favor of the `teams` field.
        * 
* - * string team = 3; + * string team = 3 [deprecated = true]; * + * @deprecated + * google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo.team is + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=97 * @return The team. */ @java.lang.Override + @java.lang.Deprecated public java.lang.String getTeam() { java.lang.Object ref = team_; if (ref instanceof java.lang.String) { @@ -1423,14 +1684,19 @@ public java.lang.String getTeam() { * * *
-       * A user-specified string representing the agent's team.
+       * A user-specified string representing the agent's team. Deprecated in
+       * favor of the `teams` field.
        * 
* - * string team = 3; + * string team = 3 [deprecated = true]; * + * @deprecated + * google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo.team is + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=97 * @return The bytes for team. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString getTeamBytes() { java.lang.Object ref = team_; if (ref instanceof java.lang.String) { @@ -1443,6 +1709,74 @@ public com.google.protobuf.ByteString getTeamBytes() { } } + public static final int TEAMS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList teams_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+       * User-specified strings representing the agent's teams.
+       * 
+ * + * repeated string teams = 6; + * + * @return A list containing the teams. + */ + public com.google.protobuf.ProtocolStringList getTeamsList() { + return teams_; + } + + /** + * + * + *
+       * User-specified strings representing the agent's teams.
+       * 
+ * + * repeated string teams = 6; + * + * @return The count of teams. + */ + public int getTeamsCount() { + return teams_.size(); + } + + /** + * + * + *
+       * User-specified strings representing the agent's teams.
+       * 
+ * + * repeated string teams = 6; + * + * @param index The index of the element to return. + * @return The teams at the given index. + */ + public java.lang.String getTeams(int index) { + return teams_.get(index); + } + + /** + * + * + *
+       * User-specified strings representing the agent's teams.
+       * 
+ * + * repeated string teams = 6; + * + * @param index The index of the value to return. + * @return The bytes of the teams at the given index. + */ + public com.google.protobuf.ByteString getTeamsBytes(int index) { + return teams_.getByteString(index); + } + public static final int DISPOSITION_CODE_FIELD_NUMBER = 4; @SuppressWarnings("serial") @@ -1540,469 +1874,2035 @@ public com.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role ge : result; } - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static final int LOCATION_FIELD_NUMBER = 7; - memoizedIsInitialized = 1; - return true; - } + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + /** + * + * + *
+       * The agent's location.
+       * 
+ * + * string location = 7; + * + * @return The location. + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, agentId_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(team_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, team_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dispositionCode_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, dispositionCode_); - } - if (agentType_ - != com.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role - .ROLE_UNSPECIFIED - .getNumber()) { - output.writeEnum(5, agentType_); + public java.lang.String getLocation() { + java.lang.Object ref = location_; + 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(); + location_ = s; + return s; } - 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(agentId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, agentId_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(team_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, team_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dispositionCode_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, dispositionCode_); - } - if (agentType_ - != com.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role - .ROLE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, agentType_); + /** + * + * + *
+       * The agent's location.
+       * 
+ * + * string location = 7; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - 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.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo)) { - return super.equals(obj); - } - com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo other = - (com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo) obj; + public static final int DEPLOYMENT_ID_FIELD_NUMBER = 8; - if (!getAgentId().equals(other.getAgentId())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getTeam().equals(other.getTeam())) return false; - if (!getDispositionCode().equals(other.getDispositionCode())) return false; - if (agentType_ != other.agentType_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @SuppressWarnings("serial") + private volatile java.lang.Object deploymentId_ = ""; + /** + * + * + *
+       * The agent's deployment ID. Only applicable to automated agents.
+       * 
+ * + * string deployment_id = 8; + * + * @return The deploymentId. + */ @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + public java.lang.String getDeploymentId() { + java.lang.Object ref = deploymentId_; + 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(); + deploymentId_ = s; + return s; } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AGENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getAgentId().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + TEAM_FIELD_NUMBER; - hash = (53 * hash) + getTeam().hashCode(); - hash = (37 * hash) + DISPOSITION_CODE_FIELD_NUMBER; - hash = (53 * hash) + getDispositionCode().hashCode(); - hash = (37 * hash) + AGENT_TYPE_FIELD_NUMBER; - hash = (53 * hash) + agentType_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo - 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.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo - 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.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo - 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.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
+       * The agent's deployment ID. Only applicable to automated agents.
+       * 
+ * + * string deployment_id = 8; + * + * @return The bytes for deploymentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentIdBytes() { + java.lang.Object ref = deploymentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static final int DEPLOYMENT_DISPLAY_NAME_FIELD_NUMBER = 9; - public static com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + @SuppressWarnings("serial") + private volatile java.lang.Object deploymentDisplayName_ = ""; + /** + * + * + *
+       * The agent's deployment display name. Only applicable to automated
+       * agents.
+       * 
+ * + * string deployment_display_name = 9; + * + * @return The deploymentDisplayName. + */ @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + public java.lang.String getDeploymentDisplayName() { + java.lang.Object ref = deploymentDisplayName_; + 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(); + deploymentDisplayName_ = s; + return s; + } } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + /** + * + * + *
+       * The agent's deployment display name. Only applicable to automated
+       * agents.
+       * 
+ * + * string deployment_display_name = 9; + * + * @return The bytes for deploymentDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentDisplayNameBytes() { + java.lang.Object ref = deploymentDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static Builder newBuilder( - com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static final int VERSION_ID_FIELD_NUMBER = 10; - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @SuppressWarnings("serial") + private volatile java.lang.Object versionId_ = ""; + /** + * + * + *
+       * The agent's version ID. Only applicable to automated agents.
+       * 
+ * + * string version_id = 10; + * + * @return The versionId. + */ @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public java.lang.String getVersionId() { + java.lang.Object ref = versionId_; + 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(); + versionId_ = s; + return s; + } } /** * * *
-       * Information about an agent involved in the conversation.
+       * The agent's version ID. Only applicable to automated agents.
        * 
* - * Protobuf type {@code - * google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo} + * string version_id = 10; + * + * @return The bytes for versionId. */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo) - com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata - .AgentInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contactcenterinsights.v1.ResourcesProto + @java.lang.Override + public com.google.protobuf.ByteString getVersionIdBytes() { + java.lang.Object ref = versionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + versionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_DISPLAY_NAME_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object versionDisplayName_ = ""; + + /** + * + * + *
+       * The agent's version display name. Only applicable to automated agents.
+       * 
+ * + * string version_display_name = 11; + * + * @return The versionDisplayName. + */ + @java.lang.Override + public java.lang.String getVersionDisplayName() { + java.lang.Object ref = versionDisplayName_; + 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(); + versionDisplayName_ = s; + return s; + } + } + + /** + * + * + *
+       * The agent's version display name. Only applicable to automated agents.
+       * 
+ * + * string version_display_name = 11; + * + * @return The bytes for versionDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionDisplayNameBytes() { + java.lang.Object ref = versionDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + versionDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTRY_SUBAGENT_DISPLAY_NAME_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object entrySubagentDisplayName_ = ""; + + /** + * + * + *
+       * The entry subagent's display name.
+       * 
+ * + * string entry_subagent_display_name = 12; + * + * @return The entrySubagentDisplayName. + */ + @java.lang.Override + public java.lang.String getEntrySubagentDisplayName() { + java.lang.Object ref = entrySubagentDisplayName_; + 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(); + entrySubagentDisplayName_ = s; + return s; + } + } + + /** + * + * + *
+       * The entry subagent's display name.
+       * 
+ * + * string entry_subagent_display_name = 12; + * + * @return The bytes for entrySubagentDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntrySubagentDisplayNameBytes() { + java.lang.Object ref = entrySubagentDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entrySubagentDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTRY_SUBAGENT_ID_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object entrySubagentId_ = ""; + + /** + * + * + *
+       * The entry subagent's ID.
+       * 
+ * + * string entry_subagent_id = 13; + * + * @return The entrySubagentId. + */ + @java.lang.Override + public java.lang.String getEntrySubagentId() { + java.lang.Object ref = entrySubagentId_; + 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(); + entrySubagentId_ = s; + return s; + } + } + + /** + * + * + *
+       * The entry subagent's ID.
+       * 
+ * + * string entry_subagent_id = 13; + * + * @return The bytes for entrySubagentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntrySubagentIdBytes() { + java.lang.Object ref = entrySubagentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entrySubagentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, agentId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(team_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, team_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dispositionCode_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, dispositionCode_); + } + if (agentType_ + != com.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role + .ROLE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, agentType_); + } + for (int i = 0; i < teams_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, teams_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, location_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, deploymentId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentDisplayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, deploymentDisplayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(versionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, versionId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(versionDisplayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, versionDisplayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entrySubagentDisplayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, entrySubagentDisplayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entrySubagentId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, entrySubagentId_); + } + 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(agentId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, agentId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(team_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, team_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dispositionCode_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, dispositionCode_); + } + if (agentType_ + != com.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role + .ROLE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, agentType_); + } + { + int dataSize = 0; + for (int i = 0; i < teams_.size(); i++) { + dataSize += computeStringSizeNoTag(teams_.getRaw(i)); + } + size += dataSize; + size += 1 * getTeamsList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, location_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, deploymentId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentDisplayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, deploymentDisplayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(versionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, versionId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(versionDisplayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, versionDisplayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entrySubagentDisplayName_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(12, entrySubagentDisplayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entrySubagentId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(13, entrySubagentId_); + } + 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.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo)) { + return super.equals(obj); + } + com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo other = + (com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo) obj; + + if (!getAgentId().equals(other.getAgentId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getTeam().equals(other.getTeam())) return false; + if (!getTeamsList().equals(other.getTeamsList())) return false; + if (!getDispositionCode().equals(other.getDispositionCode())) return false; + if (agentType_ != other.agentType_) return false; + if (!getLocation().equals(other.getLocation())) return false; + if (!getDeploymentId().equals(other.getDeploymentId())) return false; + if (!getDeploymentDisplayName().equals(other.getDeploymentDisplayName())) return false; + if (!getVersionId().equals(other.getVersionId())) return false; + if (!getVersionDisplayName().equals(other.getVersionDisplayName())) return false; + if (!getEntrySubagentDisplayName().equals(other.getEntrySubagentDisplayName())) + return false; + if (!getEntrySubagentId().equals(other.getEntrySubagentId())) 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) + AGENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getAgentId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + TEAM_FIELD_NUMBER; + hash = (53 * hash) + getTeam().hashCode(); + if (getTeamsCount() > 0) { + hash = (37 * hash) + TEAMS_FIELD_NUMBER; + hash = (53 * hash) + getTeamsList().hashCode(); + } + hash = (37 * hash) + DISPOSITION_CODE_FIELD_NUMBER; + hash = (53 * hash) + getDispositionCode().hashCode(); + hash = (37 * hash) + AGENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + agentType_; + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + DEPLOYMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentId().hashCode(); + hash = (37 * hash) + DEPLOYMENT_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentDisplayName().hashCode(); + hash = (37 * hash) + VERSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getVersionId().hashCode(); + hash = (37 * hash) + VERSION_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getVersionDisplayName().hashCode(); + hash = (37 * hash) + ENTRY_SUBAGENT_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getEntrySubagentDisplayName().hashCode(); + hash = (37 * hash) + ENTRY_SUBAGENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEntrySubagentId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + 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.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + 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.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + 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.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + 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.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + 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.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + 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; + } + + /** + * + * + *
+       * Information about an agent involved in the conversation.
+       * 
+ * + * Protobuf type {@code + * google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo) + com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata + .AgentInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ResourcesProto + .internal_static_google_cloud_contactcenterinsights_v1_Conversation_QualityMetadata_AgentInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ResourcesProto + .internal_static_google_cloud_contactcenterinsights_v1_Conversation_QualityMetadata_AgentInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + .class, + com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + .Builder.class); + } + + // Construct using + // com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + agentId_ = ""; + displayName_ = ""; + team_ = ""; + teams_ = com.google.protobuf.LazyStringArrayList.emptyList(); + dispositionCode_ = ""; + agentType_ = 0; + location_ = ""; + deploymentId_ = ""; + deploymentDisplayName_ = ""; + versionId_ = ""; + versionDisplayName_ = ""; + entrySubagentDisplayName_ = ""; + entrySubagentId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contactcenterinsights.v1.ResourcesProto .internal_static_google_cloud_contactcenterinsights_v1_Conversation_QualityMetadata_AgentInfo_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.contactcenterinsights.v1.ResourcesProto - .internal_static_google_cloud_contactcenterinsights_v1_Conversation_QualityMetadata_AgentInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo - .class, - com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo - .Builder.class); + public com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + getDefaultInstanceForType() { + return com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + build() { + com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + buildPartial() { + com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo result = + new com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agentId_ = agentId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.team_ = team_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + teams_.makeImmutable(); + result.teams_ = teams_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.dispositionCode_ = dispositionCode_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.agentType_ = agentType_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.location_ = location_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.deploymentId_ = deploymentId_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.deploymentDisplayName_ = deploymentDisplayName_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.versionId_ = versionId_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.versionDisplayName_ = versionDisplayName_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.entrySubagentDisplayName_ = entrySubagentDisplayName_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.entrySubagentId_ = entrySubagentId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo) { + return mergeFrom( + (com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + other) { + if (other + == com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + .getDefaultInstance()) return this; + if (!other.getAgentId().isEmpty()) { + agentId_ = other.agentId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTeam().isEmpty()) { + team_ = other.team_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.teams_.isEmpty()) { + if (teams_.isEmpty()) { + teams_ = other.teams_; + bitField0_ |= 0x00000008; + } else { + ensureTeamsIsMutable(); + teams_.addAll(other.teams_); + } + onChanged(); + } + if (!other.getDispositionCode().isEmpty()) { + dispositionCode_ = other.dispositionCode_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.agentType_ != 0) { + setAgentTypeValue(other.getAgentTypeValue()); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getDeploymentId().isEmpty()) { + deploymentId_ = other.deploymentId_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getDeploymentDisplayName().isEmpty()) { + deploymentDisplayName_ = other.deploymentDisplayName_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getVersionId().isEmpty()) { + versionId_ = other.versionId_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getVersionDisplayName().isEmpty()) { + versionDisplayName_ = other.versionDisplayName_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getEntrySubagentDisplayName().isEmpty()) { + entrySubagentDisplayName_ = other.entrySubagentDisplayName_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (!other.getEntrySubagentId().isEmpty()) { + entrySubagentId_ = other.entrySubagentId_; + bitField0_ |= 0x00001000; + 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: + { + agentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + team_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + dispositionCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 40: + { + agentType_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTeamsIsMutable(); + teams_.add(s); + break; + } // case 50 + case 58: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + deploymentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + deploymentDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + versionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + versionDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + entrySubagentDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: + { + entrySubagentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + 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 agentId_ = ""; + + /** + * + * + *
+         * A user-specified string representing the agent.
+         * 
+ * + * string agent_id = 1; + * + * @return The agentId. + */ + public java.lang.String getAgentId() { + java.lang.Object ref = agentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * A user-specified string representing the agent.
+         * 
+ * + * string agent_id = 1; + * + * @return The bytes for agentId. + */ + public com.google.protobuf.ByteString getAgentIdBytes() { + java.lang.Object ref = agentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * A user-specified string representing the agent.
+         * 
+ * + * string agent_id = 1; + * + * @param value The agentId to set. + * @return This builder for chaining. + */ + public Builder setAgentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agentId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * A user-specified string representing the agent.
+         * 
+ * + * string agent_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearAgentId() { + agentId_ = getDefaultInstance().getAgentId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * A user-specified string representing the agent.
+         * 
+ * + * string agent_id = 1; + * + * @param value The bytes for agentId to set. + * @return This builder for chaining. + */ + public Builder setAgentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+         * The agent's name.
+         * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * The agent's name.
+         * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * The agent's name.
+         * 
+ * + * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * The agent's name.
+         * 
+ * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+         * The agent's name.
+         * 
+ * + * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object team_ = ""; + + /** + * + * + *
+         * A user-specified string representing the agent's team. Deprecated in
+         * favor of the `teams` field.
+         * 
+ * + * string team = 3 [deprecated = true]; + * + * @deprecated + * google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo.team is + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=97 + * @return The team. + */ + @java.lang.Deprecated + public java.lang.String getTeam() { + java.lang.Object ref = team_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + team_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * A user-specified string representing the agent's team. Deprecated in
+         * favor of the `teams` field.
+         * 
+ * + * string team = 3 [deprecated = true]; + * + * @deprecated + * google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo.team is + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=97 + * @return The bytes for team. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getTeamBytes() { + java.lang.Object ref = team_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + team_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * A user-specified string representing the agent's team. Deprecated in
+         * favor of the `teams` field.
+         * 
+ * + * string team = 3 [deprecated = true]; + * + * @deprecated + * google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo.team is + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=97 + * @param value The team to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setTeam(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + team_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * A user-specified string representing the agent's team. Deprecated in
+         * favor of the `teams` field.
+         * 
+ * + * string team = 3 [deprecated = true]; + * + * @deprecated + * google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo.team is + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=97 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearTeam() { + team_ = getDefaultInstance().getTeam(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+         * A user-specified string representing the agent's team. Deprecated in
+         * favor of the `teams` field.
+         * 
+ * + * string team = 3 [deprecated = true]; + * + * @deprecated + * google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo.team is + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=97 + * @param value The bytes for team to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setTeamBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + team_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList teams_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTeamsIsMutable() { + if (!teams_.isModifiable()) { + teams_ = new com.google.protobuf.LazyStringArrayList(teams_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+         * User-specified strings representing the agent's teams.
+         * 
+ * + * repeated string teams = 6; + * + * @return A list containing the teams. + */ + public com.google.protobuf.ProtocolStringList getTeamsList() { + teams_.makeImmutable(); + return teams_; + } + + /** + * + * + *
+         * User-specified strings representing the agent's teams.
+         * 
+ * + * repeated string teams = 6; + * + * @return The count of teams. + */ + public int getTeamsCount() { + return teams_.size(); + } + + /** + * + * + *
+         * User-specified strings representing the agent's teams.
+         * 
+ * + * repeated string teams = 6; + * + * @param index The index of the element to return. + * @return The teams at the given index. + */ + public java.lang.String getTeams(int index) { + return teams_.get(index); + } + + /** + * + * + *
+         * User-specified strings representing the agent's teams.
+         * 
+ * + * repeated string teams = 6; + * + * @param index The index of the value to return. + * @return The bytes of the teams at the given index. + */ + public com.google.protobuf.ByteString getTeamsBytes(int index) { + return teams_.getByteString(index); + } + + /** + * + * + *
+         * User-specified strings representing the agent's teams.
+         * 
+ * + * repeated string teams = 6; + * + * @param index The index to set the value at. + * @param value The teams to set. + * @return This builder for chaining. + */ + public Builder setTeams(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTeamsIsMutable(); + teams_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+         * User-specified strings representing the agent's teams.
+         * 
+ * + * repeated string teams = 6; + * + * @param value The teams to add. + * @return This builder for chaining. + */ + public Builder addTeams(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTeamsIsMutable(); + teams_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+         * User-specified strings representing the agent's teams.
+         * 
+ * + * repeated string teams = 6; + * + * @param values The teams to add. + * @return This builder for chaining. + */ + public Builder addAllTeams(java.lang.Iterable values) { + ensureTeamsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, teams_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+         * User-specified strings representing the agent's teams.
+         * 
+ * + * repeated string teams = 6; + * + * @return This builder for chaining. + */ + public Builder clearTeams() { + teams_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
+         * User-specified strings representing the agent's teams.
+         * 
+ * + * repeated string teams = 6; + * + * @param value The bytes of the teams to add. + * @return This builder for chaining. + */ + public Builder addTeamsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTeamsIsMutable(); + teams_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object dispositionCode_ = ""; + + /** + * + * + *
+         * A user-provided string indicating the outcome of the agent's segment of
+         * the call.
+         * 
+ * + * string disposition_code = 4; + * + * @return The dispositionCode. + */ + public java.lang.String getDispositionCode() { + java.lang.Object ref = dispositionCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dispositionCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * A user-provided string indicating the outcome of the agent's segment of
+         * the call.
+         * 
+ * + * string disposition_code = 4; + * + * @return The bytes for dispositionCode. + */ + public com.google.protobuf.ByteString getDispositionCodeBytes() { + java.lang.Object ref = dispositionCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dispositionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * A user-provided string indicating the outcome of the agent's segment of
+         * the call.
+         * 
+ * + * string disposition_code = 4; + * + * @param value The dispositionCode to set. + * @return This builder for chaining. + */ + public Builder setDispositionCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dispositionCode_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+         * A user-provided string indicating the outcome of the agent's segment of
+         * the call.
+         * 
+ * + * string disposition_code = 4; + * + * @return This builder for chaining. + */ + public Builder clearDispositionCode() { + dispositionCode_ = getDefaultInstance().getDispositionCode(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+         * A user-provided string indicating the outcome of the agent's segment of
+         * the call.
+         * 
+ * + * string disposition_code = 4; + * + * @param value The bytes for dispositionCode to set. + * @return This builder for chaining. + */ + public Builder setDispositionCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dispositionCode_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int agentType_ = 0; + + /** + * + * + *
+         * The agent type, e.g. HUMAN_AGENT.
+         * 
+ * + * .google.cloud.contactcenterinsights.v1.ConversationParticipant.Role agent_type = 5; + * + * + * @return The enum numeric value on the wire for agentType. + */ + @java.lang.Override + public int getAgentTypeValue() { + return agentType_; } - // Construct using - // com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo.newBuilder() - private Builder() {} + /** + * + * + *
+         * The agent type, e.g. HUMAN_AGENT.
+         * 
+ * + * .google.cloud.contactcenterinsights.v1.ConversationParticipant.Role agent_type = 5; + * + * + * @param value The enum numeric value on the wire for agentType to set. + * @return This builder for chaining. + */ + public Builder setAgentTypeValue(int value) { + agentType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); + /** + * + * + *
+         * The agent type, e.g. HUMAN_AGENT.
+         * 
+ * + * .google.cloud.contactcenterinsights.v1.ConversationParticipant.Role agent_type = 5; + * + * + * @return The agentType. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role + getAgentType() { + com.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role result = + com.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role.forNumber( + agentType_); + return result == null + ? com.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role.UNRECOGNIZED + : result; + } + + /** + * + * + *
+         * The agent type, e.g. HUMAN_AGENT.
+         * 
+ * + * .google.cloud.contactcenterinsights.v1.ConversationParticipant.Role agent_type = 5; + * + * + * @param value The agentType to set. + * @return This builder for chaining. + */ + public Builder setAgentType( + com.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + agentType_ = value.getNumber(); + onChanged(); + return this; } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - agentId_ = ""; - displayName_ = ""; - team_ = ""; - dispositionCode_ = ""; + /** + * + * + *
+         * The agent type, e.g. HUMAN_AGENT.
+         * 
+ * + * .google.cloud.contactcenterinsights.v1.ConversationParticipant.Role agent_type = 5; + * + * + * @return This builder for chaining. + */ + public Builder clearAgentType() { + bitField0_ = (bitField0_ & ~0x00000020); agentType_ = 0; + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contactcenterinsights.v1.ResourcesProto - .internal_static_google_cloud_contactcenterinsights_v1_Conversation_QualityMetadata_AgentInfo_descriptor; - } - - @java.lang.Override - public com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo - getDefaultInstanceForType() { - return com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo - .getDefaultInstance(); - } + private java.lang.Object location_ = ""; - @java.lang.Override - public com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo - build() { - com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
+         * The agent's location.
+         * 
+ * + * string location = 7; + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; } - return result; } - @java.lang.Override - public com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo - buildPartial() { - com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo result = - new com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo( - this); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
+         * The agent's location.
+         * 
+ * + * string location = 7; + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - onBuilt(); - return result; } - private void buildPartial0( - com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.agentId_ = agentId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.team_ = team_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.dispositionCode_ = dispositionCode_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.agentType_ = agentType_; + /** + * + * + *
+         * The agent's location.
+         * 
+ * + * string location = 7; + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + location_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo) { - return mergeFrom( - (com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo) - other); - } else { - super.mergeFrom(other); - return this; - } + /** + * + * + *
+         * The agent's location.
+         * 
+ * + * string location = 7; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; } - public Builder mergeFrom( - com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo - other) { - if (other - == com.google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo - .getDefaultInstance()) return this; - if (!other.getAgentId().isEmpty()) { - agentId_ = other.agentId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getTeam().isEmpty()) { - team_ = other.team_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getDispositionCode().isEmpty()) { - dispositionCode_ = other.dispositionCode_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.agentType_ != 0) { - setAgentTypeValue(other.getAgentTypeValue()); + /** + * + * + *
+         * The agent's location.
+         * 
+ * + * string location = 7; + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - this.mergeUnknownFields(other.getUnknownFields()); + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + private java.lang.Object deploymentId_ = ""; - @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: - { - agentId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - team_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - dispositionCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - agentType_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - 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 + /** + * + * + *
+         * The agent's deployment ID. Only applicable to automated agents.
+         * 
+ * + * string deployment_id = 8; + * + * @return The deploymentId. + */ + public java.lang.String getDeploymentId() { + java.lang.Object ref = deploymentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * The agent's deployment ID. Only applicable to automated agents.
+         * 
+ * + * string deployment_id = 8; + * + * @return The bytes for deploymentId. + */ + public com.google.protobuf.ByteString getDeploymentIdBytes() { + java.lang.Object ref = deploymentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * The agent's deployment ID. Only applicable to automated agents.
+         * 
+ * + * string deployment_id = 8; + * + * @param value The deploymentId to set. + * @return This builder for chaining. + */ + public Builder setDeploymentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deploymentId_ = value; + bitField0_ |= 0x00000080; + onChanged(); return this; } - private int bitField0_; + /** + * + * + *
+         * The agent's deployment ID. Only applicable to automated agents.
+         * 
+ * + * string deployment_id = 8; + * + * @return This builder for chaining. + */ + public Builder clearDeploymentId() { + deploymentId_ = getDefaultInstance().getDeploymentId(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } - private java.lang.Object agentId_ = ""; + /** + * + * + *
+         * The agent's deployment ID. Only applicable to automated agents.
+         * 
+ * + * string deployment_id = 8; + * + * @param value The bytes for deploymentId to set. + * @return This builder for chaining. + */ + public Builder setDeploymentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deploymentId_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object deploymentDisplayName_ = ""; /** * * *
-         * A user-specified string representing the agent.
+         * The agent's deployment display name. Only applicable to automated
+         * agents.
          * 
* - * string agent_id = 1; + * string deployment_display_name = 9; * - * @return The agentId. + * @return The deploymentDisplayName. */ - public java.lang.String getAgentId() { - java.lang.Object ref = agentId_; + public java.lang.String getDeploymentDisplayName() { + java.lang.Object ref = deploymentDisplayName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - agentId_ = s; + deploymentDisplayName_ = s; return s; } else { return (java.lang.String) ref; @@ -2013,19 +3913,20 @@ public java.lang.String getAgentId() { * * *
-         * A user-specified string representing the agent.
+         * The agent's deployment display name. Only applicable to automated
+         * agents.
          * 
* - * string agent_id = 1; + * string deployment_display_name = 9; * - * @return The bytes for agentId. + * @return The bytes for deploymentDisplayName. */ - public com.google.protobuf.ByteString getAgentIdBytes() { - java.lang.Object ref = agentId_; + public com.google.protobuf.ByteString getDeploymentDisplayNameBytes() { + java.lang.Object ref = deploymentDisplayName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - agentId_ = b; + deploymentDisplayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -2036,20 +3937,21 @@ public com.google.protobuf.ByteString getAgentIdBytes() { * * *
-         * A user-specified string representing the agent.
+         * The agent's deployment display name. Only applicable to automated
+         * agents.
          * 
* - * string agent_id = 1; + * string deployment_display_name = 9; * - * @param value The agentId to set. + * @param value The deploymentDisplayName to set. * @return This builder for chaining. */ - public Builder setAgentId(java.lang.String value) { + public Builder setDeploymentDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - agentId_ = value; - bitField0_ |= 0x00000001; + deploymentDisplayName_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2058,16 +3960,17 @@ public Builder setAgentId(java.lang.String value) { * * *
-         * A user-specified string representing the agent.
+         * The agent's deployment display name. Only applicable to automated
+         * agents.
          * 
* - * string agent_id = 1; + * string deployment_display_name = 9; * * @return This builder for chaining. */ - public Builder clearAgentId() { - agentId_ = getDefaultInstance().getAgentId(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearDeploymentDisplayName() { + deploymentDisplayName_ = getDefaultInstance().getDeploymentDisplayName(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -2076,44 +3979,45 @@ public Builder clearAgentId() { * * *
-         * A user-specified string representing the agent.
+         * The agent's deployment display name. Only applicable to automated
+         * agents.
          * 
* - * string agent_id = 1; + * string deployment_display_name = 9; * - * @param value The bytes for agentId to set. + * @param value The bytes for deploymentDisplayName to set. * @return This builder for chaining. */ - public Builder setAgentIdBytes(com.google.protobuf.ByteString value) { + public Builder setDeploymentDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - agentId_ = value; - bitField0_ |= 0x00000001; + deploymentDisplayName_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } - private java.lang.Object displayName_ = ""; + private java.lang.Object versionId_ = ""; /** * * *
-         * The agent's name.
+         * The agent's version ID. Only applicable to automated agents.
          * 
* - * string display_name = 2; + * string version_id = 10; * - * @return The displayName. + * @return The versionId. */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; + public java.lang.String getVersionId() { + java.lang.Object ref = versionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - displayName_ = s; + versionId_ = s; return s; } else { return (java.lang.String) ref; @@ -2124,19 +4028,19 @@ public java.lang.String getDisplayName() { * * *
-         * The agent's name.
+         * The agent's version ID. Only applicable to automated agents.
          * 
* - * string display_name = 2; + * string version_id = 10; * - * @return The bytes for displayName. + * @return The bytes for versionId. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; + public com.google.protobuf.ByteString getVersionIdBytes() { + java.lang.Object ref = versionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; + versionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -2147,20 +4051,20 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-         * The agent's name.
+         * The agent's version ID. Only applicable to automated agents.
          * 
* - * string display_name = 2; + * string version_id = 10; * - * @param value The displayName to set. + * @param value The versionId to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setVersionId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000002; + versionId_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2169,16 +4073,16 @@ public Builder setDisplayName(java.lang.String value) { * * *
-         * The agent's name.
+         * The agent's version ID. Only applicable to automated agents.
          * 
* - * string display_name = 2; + * string version_id = 10; * * @return This builder for chaining. */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); + public Builder clearVersionId() { + versionId_ = getDefaultInstance().getVersionId(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -2187,44 +4091,44 @@ public Builder clearDisplayName() { * * *
-         * The agent's name.
+         * The agent's version ID. Only applicable to automated agents.
          * 
* - * string display_name = 2; + * string version_id = 10; * - * @param value The bytes for displayName to set. + * @param value The bytes for versionId to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setVersionIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000002; + versionId_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } - private java.lang.Object team_ = ""; + private java.lang.Object versionDisplayName_ = ""; /** * * *
-         * A user-specified string representing the agent's team.
+         * The agent's version display name. Only applicable to automated agents.
          * 
* - * string team = 3; + * string version_display_name = 11; * - * @return The team. + * @return The versionDisplayName. */ - public java.lang.String getTeam() { - java.lang.Object ref = team_; + public java.lang.String getVersionDisplayName() { + java.lang.Object ref = versionDisplayName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - team_ = s; + versionDisplayName_ = s; return s; } else { return (java.lang.String) ref; @@ -2235,19 +4139,19 @@ public java.lang.String getTeam() { * * *
-         * A user-specified string representing the agent's team.
+         * The agent's version display name. Only applicable to automated agents.
          * 
* - * string team = 3; + * string version_display_name = 11; * - * @return The bytes for team. + * @return The bytes for versionDisplayName. */ - public com.google.protobuf.ByteString getTeamBytes() { - java.lang.Object ref = team_; + public com.google.protobuf.ByteString getVersionDisplayNameBytes() { + java.lang.Object ref = versionDisplayName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - team_ = b; + versionDisplayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -2258,20 +4162,20 @@ public com.google.protobuf.ByteString getTeamBytes() { * * *
-         * A user-specified string representing the agent's team.
+         * The agent's version display name. Only applicable to automated agents.
          * 
* - * string team = 3; + * string version_display_name = 11; * - * @param value The team to set. + * @param value The versionDisplayName to set. * @return This builder for chaining. */ - public Builder setTeam(java.lang.String value) { + public Builder setVersionDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - team_ = value; - bitField0_ |= 0x00000004; + versionDisplayName_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2280,16 +4184,16 @@ public Builder setTeam(java.lang.String value) { * * *
-         * A user-specified string representing the agent's team.
+         * The agent's version display name. Only applicable to automated agents.
          * 
* - * string team = 3; + * string version_display_name = 11; * * @return This builder for chaining. */ - public Builder clearTeam() { - team_ = getDefaultInstance().getTeam(); - bitField0_ = (bitField0_ & ~0x00000004); + public Builder clearVersionDisplayName() { + versionDisplayName_ = getDefaultInstance().getVersionDisplayName(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -2298,45 +4202,44 @@ public Builder clearTeam() { * * *
-         * A user-specified string representing the agent's team.
+         * The agent's version display name. Only applicable to automated agents.
          * 
* - * string team = 3; + * string version_display_name = 11; * - * @param value The bytes for team to set. + * @param value The bytes for versionDisplayName to set. * @return This builder for chaining. */ - public Builder setTeamBytes(com.google.protobuf.ByteString value) { + public Builder setVersionDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - team_ = value; - bitField0_ |= 0x00000004; + versionDisplayName_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } - private java.lang.Object dispositionCode_ = ""; + private java.lang.Object entrySubagentDisplayName_ = ""; /** * * *
-         * A user-provided string indicating the outcome of the agent's segment of
-         * the call.
+         * The entry subagent's display name.
          * 
* - * string disposition_code = 4; + * string entry_subagent_display_name = 12; * - * @return The dispositionCode. + * @return The entrySubagentDisplayName. */ - public java.lang.String getDispositionCode() { - java.lang.Object ref = dispositionCode_; + public java.lang.String getEntrySubagentDisplayName() { + java.lang.Object ref = entrySubagentDisplayName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - dispositionCode_ = s; + entrySubagentDisplayName_ = s; return s; } else { return (java.lang.String) ref; @@ -2347,20 +4250,19 @@ public java.lang.String getDispositionCode() { * * *
-         * A user-provided string indicating the outcome of the agent's segment of
-         * the call.
+         * The entry subagent's display name.
          * 
* - * string disposition_code = 4; + * string entry_subagent_display_name = 12; * - * @return The bytes for dispositionCode. + * @return The bytes for entrySubagentDisplayName. */ - public com.google.protobuf.ByteString getDispositionCodeBytes() { - java.lang.Object ref = dispositionCode_; + public com.google.protobuf.ByteString getEntrySubagentDisplayNameBytes() { + java.lang.Object ref = entrySubagentDisplayName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dispositionCode_ = b; + entrySubagentDisplayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -2371,21 +4273,20 @@ public com.google.protobuf.ByteString getDispositionCodeBytes() { * * *
-         * A user-provided string indicating the outcome of the agent's segment of
-         * the call.
+         * The entry subagent's display name.
          * 
* - * string disposition_code = 4; + * string entry_subagent_display_name = 12; * - * @param value The dispositionCode to set. + * @param value The entrySubagentDisplayName to set. * @return This builder for chaining. */ - public Builder setDispositionCode(java.lang.String value) { + public Builder setEntrySubagentDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - dispositionCode_ = value; - bitField0_ |= 0x00000008; + entrySubagentDisplayName_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -2394,17 +4295,16 @@ public Builder setDispositionCode(java.lang.String value) { * * *
-         * A user-provided string indicating the outcome of the agent's segment of
-         * the call.
+         * The entry subagent's display name.
          * 
* - * string disposition_code = 4; + * string entry_subagent_display_name = 12; * * @return This builder for chaining. */ - public Builder clearDispositionCode() { - dispositionCode_ = getDefaultInstance().getDispositionCode(); - bitField0_ = (bitField0_ & ~0x00000008); + public Builder clearEntrySubagentDisplayName() { + entrySubagentDisplayName_ = getDefaultInstance().getEntrySubagentDisplayName(); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -2413,108 +4313,109 @@ public Builder clearDispositionCode() { * * *
-         * A user-provided string indicating the outcome of the agent's segment of
-         * the call.
+         * The entry subagent's display name.
          * 
* - * string disposition_code = 4; + * string entry_subagent_display_name = 12; * - * @param value The bytes for dispositionCode to set. + * @param value The bytes for entrySubagentDisplayName to set. * @return This builder for chaining. */ - public Builder setDispositionCodeBytes(com.google.protobuf.ByteString value) { + public Builder setEntrySubagentDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - dispositionCode_ = value; - bitField0_ |= 0x00000008; + entrySubagentDisplayName_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } - private int agentType_ = 0; + private java.lang.Object entrySubagentId_ = ""; /** * * *
-         * The agent type, e.g. HUMAN_AGENT.
+         * The entry subagent's ID.
          * 
* - * .google.cloud.contactcenterinsights.v1.ConversationParticipant.Role agent_type = 5; - * + * string entry_subagent_id = 13; * - * @return The enum numeric value on the wire for agentType. + * @return The entrySubagentId. */ - @java.lang.Override - public int getAgentTypeValue() { - return agentType_; + public java.lang.String getEntrySubagentId() { + java.lang.Object ref = entrySubagentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entrySubagentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
-         * The agent type, e.g. HUMAN_AGENT.
+         * The entry subagent's ID.
          * 
* - * .google.cloud.contactcenterinsights.v1.ConversationParticipant.Role agent_type = 5; - * + * string entry_subagent_id = 13; * - * @param value The enum numeric value on the wire for agentType to set. - * @return This builder for chaining. + * @return The bytes for entrySubagentId. */ - public Builder setAgentTypeValue(int value) { - agentType_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; + public com.google.protobuf.ByteString getEntrySubagentIdBytes() { + java.lang.Object ref = entrySubagentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entrySubagentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
-         * The agent type, e.g. HUMAN_AGENT.
+         * The entry subagent's ID.
          * 
* - * .google.cloud.contactcenterinsights.v1.ConversationParticipant.Role agent_type = 5; - * + * string entry_subagent_id = 13; * - * @return The agentType. + * @param value The entrySubagentId to set. + * @return This builder for chaining. */ - @java.lang.Override - public com.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role - getAgentType() { - com.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role result = - com.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role.forNumber( - agentType_); - return result == null - ? com.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role.UNRECOGNIZED - : result; + public Builder setEntrySubagentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entrySubagentId_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; } /** * * *
-         * The agent type, e.g. HUMAN_AGENT.
+         * The entry subagent's ID.
          * 
* - * .google.cloud.contactcenterinsights.v1.ConversationParticipant.Role agent_type = 5; - * + * string entry_subagent_id = 13; * - * @param value The agentType to set. * @return This builder for chaining. */ - public Builder setAgentType( - com.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - agentType_ = value.getNumber(); + public Builder clearEntrySubagentId() { + entrySubagentId_ = getDefaultInstance().getEntrySubagentId(); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -2523,17 +4424,21 @@ public Builder setAgentType( * * *
-         * The agent type, e.g. HUMAN_AGENT.
+         * The entry subagent's ID.
          * 
* - * .google.cloud.contactcenterinsights.v1.ConversationParticipant.Role agent_type = 5; - * + * string entry_subagent_id = 13; * + * @param value The bytes for entrySubagentId to set. * @return This builder for chaining. */ - public Builder clearAgentType() { - bitField0_ = (bitField0_ & ~0x00000010); - agentType_ = 0; + public Builder setEntrySubagentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entrySubagentId_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ConversationParticipant.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ConversationParticipant.java index d7be656e6361..1be1383cf76d 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ConversationParticipant.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ConversationParticipant.java @@ -506,7 +506,7 @@ public com.google.protobuf.ByteString getUserIdBytes() { * * @deprecated * google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1470 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1496 * @return The dialogflowParticipant. */ @java.lang.Override @@ -536,7 +536,7 @@ public java.lang.String getDialogflowParticipant() { * * @deprecated * google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1470 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1496 * @return The bytes for dialogflowParticipant. */ @java.lang.Override @@ -1410,7 +1410,7 @@ public Builder setUserIdBytes(com.google.protobuf.ByteString value) { * * @deprecated * google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1470 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1496 * @return The dialogflowParticipant. */ @java.lang.Deprecated @@ -1439,7 +1439,7 @@ public java.lang.String getDialogflowParticipant() { * * @deprecated * google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1470 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1496 * @return The bytes for dialogflowParticipant. */ @java.lang.Deprecated @@ -1468,7 +1468,7 @@ public com.google.protobuf.ByteString getDialogflowParticipantBytes() { * * @deprecated * google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1470 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1496 * @param value The dialogflowParticipant to set. * @return This builder for chaining. */ @@ -1496,7 +1496,7 @@ public Builder setDialogflowParticipant(java.lang.String value) { * * @deprecated * google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1470 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1496 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1520,7 +1520,7 @@ public Builder clearDialogflowParticipant() { * * @deprecated * google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1470 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1496 * @param value The bytes for dialogflowParticipant to set. * @return This builder for chaining. */ diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ConversationParticipantOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ConversationParticipantOrBuilder.java index ac0e71a2a735..6a8669a93f0f 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ConversationParticipantOrBuilder.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ConversationParticipantOrBuilder.java @@ -120,7 +120,7 @@ public interface ConversationParticipantOrBuilder * * @deprecated * google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1470 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1496 * @return The dialogflowParticipant. */ @java.lang.Deprecated @@ -139,7 +139,7 @@ public interface ConversationParticipantOrBuilder * * @deprecated * google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1470 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1496 * @return The bytes for dialogflowParticipant. */ @java.lang.Deprecated diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IssueModel.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IssueModel.java index 311c148028fa..ac3e1f1d0683 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IssueModel.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IssueModel.java @@ -506,7 +506,7 @@ public interface InputDataConfigOrBuilder * * * @deprecated google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig.medium is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=744 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=770 * @return The enum numeric value on the wire for medium. */ @java.lang.Deprecated @@ -526,7 +526,7 @@ public interface InputDataConfigOrBuilder * * * @deprecated google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig.medium is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=744 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=770 * @return The medium. */ @java.lang.Deprecated @@ -642,7 +642,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig.medium is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=744 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=770 * @return The enum numeric value on the wire for medium. */ @java.lang.Override @@ -665,7 +665,7 @@ public int getMediumValue() { * * * @deprecated google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig.medium is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=744 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=770 * @return The medium. */ @java.lang.Override @@ -1138,7 +1138,7 @@ public Builder mergeFrom( * * * @deprecated google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig.medium is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=744 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=770 * @return The enum numeric value on the wire for medium. */ @java.lang.Override @@ -1161,7 +1161,7 @@ public int getMediumValue() { * * * @deprecated google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig.medium is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=744 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=770 * @param value The enum numeric value on the wire for medium to set. * @return This builder for chaining. */ @@ -1187,7 +1187,7 @@ public Builder setMediumValue(int value) { * * * @deprecated google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig.medium is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=744 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=770 * @return The medium. */ @java.lang.Override @@ -1214,7 +1214,7 @@ public com.google.cloud.contactcenterinsights.v1.Conversation.Medium getMedium() * * * @deprecated google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig.medium is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=744 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=770 * @param value The medium to set. * @return This builder for chaining. */ @@ -1244,7 +1244,7 @@ public Builder setMedium( * * * @deprecated google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig.medium is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=744 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=770 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ResourcesProto.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ResourcesProto.java index cfe66e941a0b..86d37f9c3bd8 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ResourcesProto.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ResourcesProto.java @@ -409,7 +409,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "5google/cloud/contactcenterinsights/v1/resources.proto\022%google.cloud.contactcen" + "terinsights.v1\032\037google/api/field_behavio" + "r.proto\032\031google/api/resource.proto\032\036goog" - + "le/protobuf/duration.proto\032\037google/protobuf/timestamp.proto\"\343\031\n" + + "le/protobuf/duration.proto\032\037google/protobuf/timestamp.proto\"\262\033\n" + "\014Conversation\022Y\n\r" + "call_metadata\030\007 \001(\0132@.google.cloud.conta" + "ctcenterinsights.v1.Conversation.CallMetadataH\000\0221\n" @@ -448,39 +448,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022obfuscated_user_id\030\025 \001(\t\032?\n" + "\014CallMetadata\022\030\n" + "\020customer_channel\030\001 \001(\005\022\025\n\r" - + "agent_channel\030\002 \001(\005\032\226\003\n" + + "agent_channel\030\002 \001(\005\032\345\004\n" + "\017QualityMetadata\022$\n" + "\034customer_satisfaction_rating\030\001 \001(\005\0220\n\r" + "wait_duration\030\002 \001(\0132\031.google.protobuf.Duration\022\021\n" + "\tmenu_path\030\003 \001(\t\022a\n\n" + "agent_info\030\004 \003(\0132M.google.cloud.contactcenterinsights" - + ".v1.Conversation.QualityMetadata.AgentInfo\032\264\001\n" + + ".v1.Conversation.QualityMetadata.AgentInfo\032\203\003\n" + "\tAgentInfo\022\020\n" + "\010agent_id\030\001 \001(\t\022\024\n" - + "\014display_name\030\002 \001(\t\022\014\n" - + "\004team\030\003 \001(\t\022\030\n" + + "\014display_name\030\002 \001(\t\022\020\n" + + "\004team\030\003 \001(\tB\002\030\001\022\r\n" + + "\005teams\030\006 \003(\t\022\030\n" + "\020disposition_code\030\004 \001(\t\022W\n\n" - + "agent_type\030\005 \001(\0162C.g" - + "oogle.cloud.contactcenterinsights.v1.ConversationParticipant.Role\032\206\007\n\n" + + "agent_type\030\005 \001(\0162C.google.cloud.contactce" + + "nterinsights.v1.ConversationParticipant.Role\022\020\n" + + "\010location\030\007 \001(\t\022\025\n\r" + + "deployment_id\030\010 \001(\t\022\037\n" + + "\027deployment_display_name\030\t \001(\t\022\022\n\n" + + "version_id\030\n" + + " \001(\t\022\034\n" + + "\024version_display_name\030\013 \001(\t\022#\n" + + "\033entry_subagent_display_name\030\014 \001(\t\022\031\n" + + "\021entry_subagent_id\030\r" + + " \001(\t\032\206\007\n\n" + "Transcript\022m\n" - + "\023transcript_segments\030\001 \003(\0132P.google.c" - + "loud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment\032\210\006\n" + + "\023transcript_segments\030\001 \003(\0132P.google.cloud.contactcenterinsights.v1.Con" + + "versation.Transcript.TranscriptSegment\032\210\006\n" + "\021TranscriptSegment\0220\n" + "\014message_time\030\006 \001(\0132\032.google.protobuf.Timestamp\022\014\n" - + "\004text\030\001 \001(\t\022\022\n" - + "\n" + + "\004text\030\001 \001(\t\022\022\n\n" + "confidence\030\002 \001(\002\022h\n" - + "\005words\030\003 \003(\0132Y.google.cloud.contactcenterinsights.v1.Convers" - + "ation.Transcript.TranscriptSegment.WordInfo\022\025\n\r" + + "\005words\030\003 \003(\0132Y.google.cloud.contactcenterinsights.v1." + + "Conversation.Transcript.TranscriptSegment.WordInfo\022\025\n\r" + "language_code\030\004 \001(\t\022\023\n" + "\013channel_tag\030\005 \001(\005\022[\n" - + "\023segment_participant\030\t \001(\0132>.g" - + "oogle.cloud.contactcenterinsights.v1.ConversationParticipant\022\217\001\n" + + "\023segment_participant\030\t " + + "\001(\0132>.google.cloud.contactcenterinsights.v1.ConversationParticipant\022\217\001\n" + "\033dialogflow_segment_metadata\030\n" - + " \001(\0132j.google.cloud.contactcenterinsights.v1.Conversation.Transcri" - + "pt.TranscriptSegment.DialogflowSegmentMetadata\022G\n" - + "\tsentiment\030\013 \001(\01324.google.cloud" - + ".contactcenterinsights.v1.SentimentData\032\214\001\n" + + " \001(\0132j.google.cloud.contactcenterinsights.v1.Conversation.T" + + "ranscript.TranscriptSegment.DialogflowSegmentMetadata\022G\n" + + "\tsentiment\030\013 \001(\01324.googl" + + "e.cloud.contactcenterinsights.v1.SentimentData\032\214\001\n" + "\010WordInfo\022/\n" + "\014start_offset\030\001 \001(\0132\031.google.protobuf.Duration\022-\n\n" + "end_offset\030\002 \001(\0132\031.google.protobuf.Duration\022\014\n" @@ -489,22 +498,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031DialogflowSegmentMetadata\022%\n" + "\035smart_reply_allowlist_covered\030\001 \001(\010\032-\n" + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r" - + "\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032q\n" + "\026DialogflowIntentsEntry\022\013\n" + "\003key\030\001 \001(\t\022F\n" - + "\005value\030\002 \001(\01327.google" - + ".cloud.contactcenterinsights.v1.DialogflowIntent:\0028\001\":\n" + + "\005value\030\002 \001(\01327" + + ".google.cloud.contactcenterinsights.v1.DialogflowIntent:\0028\001\":\n" + "\006Medium\022\026\n" + "\022MEDIUM_UNSPECIFIED\020\000\022\016\n\n" + "PHONE_CALL\020\001\022\010\n" + "\004CHAT\020\002:\254\002\352A\250\002\n" - + "1contactcenterinsights.googleapis.com/Conversation\022Dprojects/{project}/locations" - + "/{location}/conversations/{conversation}" - + "\022\217\001projects/{project}/locations/{locatio" - + "n}/authorizedViewSets/{authorized_view_s" - + "et}/authorizedViews/{authorized_view}/conversations/{conversation}*\r" + + "1contactcenterinsights.googleapis.com/Conversation\022Dprojects/{project}/lo" + + "cations/{location}/conversations/{conver" + + "sation}\022\217\001projects/{project}/locations/{" + + "location}/authorizedViewSets/{authorized" + + "_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}*\r" + "conversations2\014conversationB\n\n" + "\010metadataB\014\n\n" + "expiration\"\377\004\n" @@ -514,15 +522,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022S\n" + "\017analysis_result\030\007" + " \001(\01325.google.cloud.contactcenterinsights.v1.AnalysisResultB\003\340A\003\022T\n" - + "\022annotator_selector\030\010 \001(\01328.google.cloud.contactce" - + "nterinsights.v1.AnnotatorSelector:\307\002\352A\303\002\n" - + "-contactcenterinsights.googleapis.com/Analysis\022Xprojects/{project}/locations/{l" - + "ocation}/conversations/{conversation}/an" - + "alyses/{analysis}\022\243\001projects/{project}/l" - + "ocations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{au" - + "thorized_view}/conversations/{conversati" - + "on}/analyses/{analysis}*\010analyses2\010analysis\"\300\001\n" - + "\026ConversationDataSource\022F\n\n" + + "\022annotator_selector\030\010 \001(\01328.google.cloud.co" + + "ntactcenterinsights.v1.AnnotatorSelector:\307\002\352A\303\002\n" + + "-contactcenterinsights.googleapis.com/Analysis\022Xprojects/{project}/locat" + + "ions/{location}/conversations/{conversat" + + "ion}/analyses/{analysis}\022\243\001projects/{pro" + + "ject}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedVi" + + "ews/{authorized_view}/conversations/{con" + + "versation}/analyses/{analysis}*\010analyses2\010analysis\"\300\001\n" + + "\026ConversationDataSource\022F\n" + + "\n" + "gcs_source\030\001" + " \001(\01320.google.cloud.contactcenterinsights.v1.GcsSourceH\000\022T\n" + "\021dialogflow_source\030\003" @@ -535,24 +544,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027dialogflow_conversation\030\001 \001(\tB\003\340A\003\022\021\n" + "\taudio_uri\030\003 \001(\t\"\360\t\n" + "\016AnalysisResult\022l\n" - + "\026call_analysis_metadata\030\002 \001(\0132J.google.clo" - + "ud.contactcenterinsights.v1.AnalysisResult.CallAnalysisMetadataH\000\022,\n" + + "\026call_analysis_metadata\030\002 \001(\0132J.goo" + + "gle.cloud.contactcenterinsights.v1.AnalysisResult.CallAnalysisMetadataH\000\022,\n" + "\010end_time\030\001 \001(\0132\032.google.protobuf.Timestamp\032\265\010\n" + "\024CallAnalysisMetadata\022J\n" - + "\013annotations\030\002 \003(\01325." - + "google.cloud.contactcenterinsights.v1.CallAnnotation\022j\n" - + "\010entities\030\003 \003(\0132X.google.cloud.contactcenterinsights.v1.AnalysisR" - + "esult.CallAnalysisMetadata.EntitiesEntry\022U\n\n" - + "sentiments\030\004 \003(\0132A.google.cloud.cont" - + "actcenterinsights.v1.ConversationLevelSentiment\022P\n" - + "\007silence\030\013 \001(\0132?.google.cloud." - + "contactcenterinsights.v1.ConversationLevelSilence\022h\n" - + "\007intents\030\006 \003(\0132W.google.clou" - + "d.contactcenterinsights.v1.AnalysisResult.CallAnalysisMetadata.IntentsEntry\022w\n" - + "\017phrase_matchers\030\007 \003(\0132^.google.cloud.cont" - + "actcenterinsights.v1.AnalysisResult.CallAnalysisMetadata.PhraseMatchersEntry\022S\n" - + "\022issue_model_result\030\010 \001(\01327.google.cloud." - + "contactcenterinsights.v1.IssueModelResult\022V\n" + + "\013annotations\030\002" + + " \003(\01325.google.cloud.contactcenterinsights.v1.CallAnnotation\022j\n" + + "\010entities\030\003 \003(\0132X.google.cloud.contactcenterinsights.v1.An" + + "alysisResult.CallAnalysisMetadata.EntitiesEntry\022U\n\n" + + "sentiments\030\004 \003(\0132A.google.clo" + + "ud.contactcenterinsights.v1.ConversationLevelSentiment\022P\n" + + "\007silence\030\013 \001(\0132?.google" + + ".cloud.contactcenterinsights.v1.ConversationLevelSilence\022h\n" + + "\007intents\030\006 \003(\0132W.google.cloud.contactcenterinsights.v1.Analys" + + "isResult.CallAnalysisMetadata.IntentsEntry\022w\n" + + "\017phrase_matchers\030\007 \003(\0132^.google.clo" + + "ud.contactcenterinsights.v1.AnalysisResu" + + "lt.CallAnalysisMetadata.PhraseMatchersEntry\022S\n" + + "\022issue_model_result\030\010 \001(\01327.google" + + ".cloud.contactcenterinsights.v1.IssueModelResult\022V\n" + "\024qa_scorecard_results\030\n" + " \003(\01328.google.cloud.contactcenterinsights.v1.QaScorecardResult\032^\n\r" + "EntitiesEntry\022\013\n" @@ -561,39 +571,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132-.google.cloud.contactcenterinsights.v1.Entity:\0028\001\032]\n" + "\014IntentsEntry\022\013\n" + "\003key\030\001 \001(\t\022<\n" - + "\005value\030\002 \001(\0132-.google.c" - + "loud.contactcenterinsights.v1.Intent:\0028\001\032m\n" + + "\005value\030\002 \001(\0132-.g" + + "oogle.cloud.contactcenterinsights.v1.Intent:\0028\001\032m\n" + "\023PhraseMatchersEntry\022\013\n" + "\003key\030\001 \001(\t\022E\n" + "\005value\030\002" - + " \001(\01326.google.cloud.contactcenterinsights.v1.PhraseMatchData:\0028\001B\n\n" + + " \001(\01326.google.cloud.contactcenterinsights.v1.PhraseMatchData:\0028\001B\n" + + "\n" + "\010metadata\"\245\001\n" + "\020IssueModelResult\022I\n" + "\013issue_model\030\001 \001(\tB4\372A1\n" + "/contactcenterinsights.googleapis.com/IssueModel\022F\n" - + "\006issues\030\002 \003(\01326.go" - + "ogle.cloud.contactcenterinsights.v1.IssueAssignment\"\221\005\n\r" + + "\006issues\030\002 \003" + + "(\01326.google.cloud.contactcenterinsights.v1.IssueAssignment\"\221\005\n\r" + "FeedbackLabel\022\017\n" + "\005label\030\004 \001(\tH\000\022V\n" - + "\017qa_answer_label\030\007 \001(\0132;.google" - + ".cloud.contactcenterinsights.v1.QaAnswer.AnswerValueH\000\022\021\n" + + "\017qa_answer_label\030\007 \001(\0132;" + + ".google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValueH\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\005\022\030\n" + "\020labeled_resource\030\003 \001(\t\0224\n" + "\013create_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\006" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\357\002\352A\353\002\n" - + "2contactcenterinsights.googleapis.com/FeedbackLabel\022dprojects/{pr" - + "oject}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedbac" - + "k_label}\022\257\001projects/{project}/locations/" - + "{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_" - + "view}/conversations/{conversation}/feedb" - + "ackLabels/{feedback_label}*\016feedbackLabels2\r" + + "2contactcenterinsights.googleapis.com/FeedbackLabel\022dproje" + + "cts/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{" + + "feedback_label}\022\257\001projects/{project}/loc" + + "ations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{auth" + + "orized_view}/conversations/{conversation" + + "}/feedbackLabels/{feedback_label}*\016feedbackLabels2\r" + "feedbackLabelB\014\n\n" + "label_type\"\177\n" + "\032ConversationLevelSentiment\022\023\n" + "\013channel_tag\030\001 \001(\005\022L\n" - + "\016sentiment_data\030\002 \001(\01324.google.clou" - + "d.contactcenterinsights.v1.SentimentData\"k\n" + + "\016sentiment_data\030\002 \001(\01324.goog" + + "le.cloud.contactcenterinsights.v1.SentimentData\"k\n" + "\030ConversationLevelSilence\0223\n" + "\020silence_duration\030\001 \001(\0132\031.google.protobuf.Duration\022\032\n" + "\022silence_percentage\030\002 \001(\002\"J\n" @@ -604,23 +615,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016CallAnnotation\022T\n" + "\021interruption_data\030\n" + " \001(\01327.google.cloud.contactcenterinsights.v1.InterruptionDataH\000\022N\n" - + "\016sentiment_data\030\013 \001(\01324.goo" - + "gle.cloud.contactcenterinsights.v1.SentimentDataH\000\022J\n" - + "\014silence_data\030\014 \001(\01322.googl" - + "e.cloud.contactcenterinsights.v1.SilenceDataH\000\022D\n" + + "\016sentiment_data\030\013 \001(" + + "\01324.google.cloud.contactcenterinsights.v1.SentimentDataH\000\022J\n" + + "\014silence_data\030\014 \001(\0132" + + "2.google.cloud.contactcenterinsights.v1.SilenceDataH\000\022D\n" + "\thold_data\030\r" + " \001(\0132/.google.cloud.contactcenterinsights.v1.HoldDataH\000\022W\n" - + "\023entity_mention_data\030\017 \001(\01328.google.cloud" - + ".contactcenterinsights.v1.EntityMentionDataH\000\022S\n" - + "\021intent_match_data\030\020 \001(\01326.googl" - + "e.cloud.contactcenterinsights.v1.IntentMatchDataH\000\022S\n" - + "\021phrase_match_data\030\021 \001(\01326." - + "google.cloud.contactcenterinsights.v1.PhraseMatchDataH\000\022Q\n" - + "\020issue_match_data\030\022 \001(" - + "\01325.google.cloud.contactcenterinsights.v1.IssueMatchDataH\000\022\023\n" + + "\023entity_mention_data\030\017 \001(\01328.googl" + + "e.cloud.contactcenterinsights.v1.EntityMentionDataH\000\022S\n" + + "\021intent_match_data\030\020 \001(\0132" + + "6.google.cloud.contactcenterinsights.v1.IntentMatchDataH\000\022S\n" + + "\021phrase_match_data\030\021" + + " \001(\01326.google.cloud.contactcenterinsights.v1.PhraseMatchDataH\000\022Q\n" + + "\020issue_match_data\030\022" + + " \001(\01325.google.cloud.contactcenterinsights.v1.IssueMatchDataH\000\022\023\n" + "\013channel_tag\030\001 \001(\005\022\\\n" - + "\031annotation_start_boundary\030\004 \001(\01329.goo" - + "gle.cloud.contactcenterinsights.v1.AnnotationBoundary\022Z\n" + + "\031annotation_start_boundary\030\004 \001(" + + "\01329.google.cloud.contactcenterinsights.v1.AnnotationBoundary\022Z\n" + "\027annotation_end_boundary\030\005" + " \001(\01329.google.cloud.contactcenterinsights.v1.AnnotationBoundaryB\006\n" + "\004data\"Y\n" @@ -631,11 +642,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006Entity\022\024\n" + "\014display_name\030\001 \001(\t\022@\n" + "\004type\030\002 \001(\01622.google.cloud.contactcenterinsights.v1.Entity.Type\022M\n" - + "\010metadata\030\003 \003(" - + "\0132;.google.cloud.contactcenterinsights.v1.Entity.MetadataEntry\022\020\n" + + "\010metadata\030\003" + + " \003(\0132;.google.cloud.contactcenterinsights.v1.Entity.MetadataEntry\022\020\n" + "\010salience\030\004 \001(\002\022G\n" - + "\tsentiment\030\005" - + " \001(\01324.google.cloud.contactcenterinsights.v1.SentimentData\032/\n\r" + + "\tsentiment\030\005 \001(\01324.google.clou" + + "d.contactcenterinsights.v1.SentimentData\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\302\001\n" @@ -668,10 +679,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010HoldData\"\217\002\n" + "\021EntityMentionData\022\030\n" + "\020entity_unique_id\030\001 \001(\t\022R\n" - + "\004type\030\002 \001(\0162D.google.cloud.conta" - + "ctcenterinsights.v1.EntityMentionData.MentionType\022G\n" - + "\tsentiment\030\003 \001(\01324.google.cl" - + "oud.contactcenterinsights.v1.SentimentData\"C\n" + + "\004type\030\002 \001(\0162D.google.clou" + + "d.contactcenterinsights.v1.EntityMentionData.MentionType\022G\n" + + "\tsentiment\030\003 \001(\01324.go" + + "ogle.cloud.contactcenterinsights.v1.SentimentData\"C\n" + "\013MentionType\022\034\n" + "\030MENTION_TYPE_UNSPECIFIED\020\000\022\n\n" + "\006PROPER\020\001\022\n\n" @@ -691,19 +702,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\030\n" + "\013issue_count\030\010 \001(\003B\003\340A\003\022K\n" - + "\005state\030\005 \001(\01627.googl" - + "e.cloud.contactcenterinsights.v1.IssueModel.StateB\003\340A\003\022\\\n" - + "\021input_data_config\030\006 \001(" - + "\0132A.google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig\022[\n" - + "\016training_stats\030\007 \001(\0132;.google.cloud.contactcente" - + "rinsights.v1.IssueModelLabelStatsB\006\340A\003\340A\005\022O\n\n" - + "model_type\030\t \001(\0162;.google.cloud.con" - + "tactcenterinsights.v1.IssueModel.ModelType\022\025\n\r" + + "\005state\030\005 \001(\0162" + + "7.google.cloud.contactcenterinsights.v1.IssueModel.StateB\003\340A\003\022\\\n" + + "\021input_data_config\030\006" + + " \001(\0132A.google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig\022[\n" + + "\016training_stats\030\007 \001(\0132;.google.cloud.conta" + + "ctcenterinsights.v1.IssueModelLabelStatsB\006\340A\003\340A\005\022O\n\n" + + "model_type\030\t \001(\0162;.google.cl" + + "oud.contactcenterinsights.v1.IssueModel.ModelType\022\025\n\r" + "language_code\030\n" + " \001(\t\032\234\001\n" + "\017InputDataConfig\022N\n" - + "\006medium\030\001 \001(\0162:.google.cloud.con" - + "tactcenterinsights.v1.Conversation.MediumB\002\030\001\022)\n" + + "\006medium\030\001 \001(\0162:.google.cl" + + "oud.contactcenterinsights.v1.Conversation.MediumB\002\030\001\022)\n" + "\034training_conversations_count\030\002 \001(\003B\003\340A\003\022\016\n" + "\006filter\030\003 \001(\t\"j\n" + "\005State\022\025\n" @@ -717,8 +728,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026MODEL_TYPE_UNSPECIFIED\020\000\022\013\n" + "\007TYPE_V1\020\001\022\013\n" + "\007TYPE_V2\020\002:w\352At\n" - + "/contactcenterinsights.googleapis.com/IssueModel\022Aprojects/{project}/locati" - + "ons/{location}/issueModels/{issue_model}\"\335\002\n" + + "/contactcenterinsights.googleapis.com/IssueModel\022Aprojects/{project}" + + "/locations/{location}/issueModels/{issue_model}\"\335\002\n" + "\005Issue\022\021\n" + "\004name\030\001 \001(\tB\003\340A\005\022\024\n" + "\014display_name\030\002 \001(\t\0224\n" @@ -727,21 +738,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\036\n" + "\021sample_utterances\030\006 \003(\tB\003\340A\003\022\033\n" + "\023display_description\030\016 \001(\t:\201\001\352A~\n" - + "*contactcenterinsights.googleapis.com/Issue\022Pprojects" - + "/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue}\"\233\003\n" + + "*contactcenterinsights.googleapis.com/Issue\022Pp" + + "rojects/{project}/locations/{location}/i" + + "ssueModels/{issue_model}/issues/{issue}\"\233\003\n" + "\024IssueModelLabelStats\022$\n" + "\034analyzed_conversations_count\030\001 \001(\003\022(\n" + " unclassified_conversations_count\030\002 \001(\003\022`\n" - + "\013issue_stats\030\003 \003(\0132K" - + ".google.cloud.contactcenterinsights.v1.IssueModelLabelStats.IssueStatsEntry\032V\n\n" + + "\013issue_stats\030\003 \003(\0132K.google.cloud.contactcenterinsigh" + + "ts.v1.IssueModelLabelStats.IssueStatsEntry\032V\n\n" + "IssueStats\022\r\n" + "\005issue\030\001 \001(\t\022#\n" + "\033labeled_conversations_count\030\002 \001(\003\022\024\n" + "\014display_name\030\003 \001(\t\032y\n" + "\017IssueStatsEntry\022\013\n" + "\003key\030\001 \001(\t\022U\n" - + "\005value\030\002 \001(\0132F.google.cloud.contactcenteri" - + "nsights.v1.IssueModelLabelStats.IssueStats:\0028\001\"\223\006\n\r" + + "\005value\030\002 \001(\0132F.google.cloud.contact" + + "centerinsights.v1.IssueModelLabelStats.IssueStats:\0028\001\"\223\006\n\r" + "PhraseMatcher\022\014\n" + "\004name\030\001 \001(\t\022\033\n" + "\013revision_id\030\002 \001(\tB\006\340A\005\340A\003\022\023\n" @@ -749,11 +761,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024revision_create_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\024\n" + "\014display_name\030\005 \001(\t\022Y\n" - + "\004type\030\006 \001(\0162F.google.clo" - + "ud.contactcenterinsights.v1.PhraseMatcher.PhraseMatcherTypeB\003\340A\002\022\016\n" + + "\004type\030\006 \001(\0162F.goo" + + "gle.cloud.contactcenterinsights.v1.PhraseMatcher.PhraseMatcherTypeB\003\340A\002\022\016\n" + "\006active\030\007 \001(\010\022]\n" - + "\030phrase_match_rule_groups\030\010 \003(\0132;.goo" - + "gle.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup\022?\n" + + "\030phrase_match_rule_groups\030\010 \003(" + + "\0132;.google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup\022?\n" + "\026activation_update_time\030\t" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022W\n\n" + "role_match\030\n" @@ -763,13 +775,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037PHRASE_MATCHER_TYPE_UNSPECIFIED\020\000\022\n\n" + "\006ALL_OF\020\001\022\n\n" + "\006ANY_OF\020\002:\200\001\352A}\n" - + "2contactcenterinsights.googleapis.com/PhraseMatc" - + "her\022Gprojects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}\"\265\002\n" + + "2contactcenterinsights.googleapis.com/PhraseMatcher\022Gprojects/{project}/locations" + + "/{location}/phraseMatchers/{phrase_matcher}\"\265\002\n" + "\024PhraseMatchRuleGroup\022g\n" - + "\004type\030\001 \001(\0162T.google.cloud.contactcenterinsights.v1.Phra" - + "seMatchRuleGroup.PhraseMatchRuleGroupTypeB\003\340A\002\022R\n" - + "\022phrase_match_rules\030\002 \003(\01326.goo" - + "gle.cloud.contactcenterinsights.v1.PhraseMatchRule\"`\n" + + "\004type\030\001 \001(\0162T.google.cloud.contactcenterinsights." + + "v1.PhraseMatchRuleGroup.PhraseMatchRuleGroupTypeB\003\340A\002\022R\n" + + "\022phrase_match_rules\030\002 \003(" + + "\01326.google.cloud.contactcenterinsights.v1.PhraseMatchRule\"`\n" + "\030PhraseMatchRuleGroupType\022,\n" + "(PHRASE_MATCH_RULE_GROUP_TYPE_UNSPECIFIED\020\000\022\n\n" + "\006ALL_OF\020\001\022\n\n" @@ -777,11 +789,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017PhraseMatchRule\022\022\n" + "\005query\030\001 \001(\tB\003\340A\002\022\017\n" + "\007negated\030\002 \001(\010\022L\n" - + "\006config\030\003 \001(\0132<.google.cloud.con" - + "tactcenterinsights.v1.PhraseMatchRuleConfig\"x\n" + + "\006config\030\003 \001(\0132<.google.cl" + + "oud.contactcenterinsights.v1.PhraseMatchRuleConfig\"x\n" + "\025PhraseMatchRuleConfig\022U\n" - + "\022exact_match_config\030\001" - + " \001(\01327.google.cloud.contactcenterinsights.v1.ExactMatchConfigH\000B\010\n" + + "\022exact_match_config\030\001 \001(\01327.google.cloud.c" + + "ontactcenterinsights.v1.ExactMatchConfigH\000B\010\n" + "\006config\"*\n" + "\020ExactMatchConfig\022\026\n" + "\016case_sensitive\030\001 \001(\010\"\274\007\n" @@ -792,24 +804,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\025\n\r" + "language_code\030\004 \001(\t\0223\n" + "\020conversation_ttl\030\005 \001(\0132\031.google.protobuf.Duration\022u\n" - + "\034pubsub_notification_settings\030\006 \003(\0132O.google.cloud.c" - + "ontactcenterinsights.v1.Settings.PubsubNotificationSettingsEntry\022W\n" - + "\017analysis_config\030\007" - + " \001(\0132>.google.cloud.contactcenterinsights.v1.Settings.AnalysisConfig\022P\n" + + "\034pubsub_notification_settings\030\006 \003(\0132O.google." + + "cloud.contactcenterinsights.v1.Settings.PubsubNotificationSettingsEntry\022W\n" + + "\017analysis_config\030\007 \001(\0132>.google.cloud.contactc" + + "enterinsights.v1.Settings.AnalysisConfig\022P\n" + "\020redaction_config\030\n" + " \001(\01326.google.cloud.contactcenterinsights.v1.RedactionConfig\022O\n\r" - + "speech_config\030\013" - + " \001(\01323.google.cloud.contactcenterinsights.v1.SpeechConfigB\003\340A\001\032\310\001\n" + + "speech_config\030\013 \001(\01323.google.cloud" + + ".contactcenterinsights.v1.SpeechConfigB\003\340A\001\032\310\001\n" + "\016AnalysisConfig\022/\n" + "\'runtime_integration_analysis_percentage\030\001 \001(\001\022/\n" + "\'upload_conversation_analysis_percentage\030\006 \001(\001\022T\n" - + "\022annotator_selector\030\005 \001(\01328.google.cloud.con" - + "tactcenterinsights.v1.AnnotatorSelector\032A\n" + + "\022annotator_selector\030\005 \001(\01328.google.cl" + + "oud.contactcenterinsights.v1.AnnotatorSelector\032A\n" + "\037PubsubNotificationSettingsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:d\352Aa\n" - + "-contactcenterinsights.googleapis.com/Settings\0220" - + "projects/{project}/locations/{location}/settings\"\367\003\n" + + "-contactcenterinsights.googleapis.com/Set" + + "tings\0220projects/{project}/locations/{location}/settings\"\367\003\n" + "\014AnalysisRule\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" @@ -817,19 +829,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\031\n" + "\014display_name\030\004 \001(\tH\000\210\001\001\022\033\n" + "\023conversation_filter\030\005 \001(\t\022T\n" - + "\022annotator_selector\030\006 \001(\01328.g" - + "oogle.cloud.contactcenterinsights.v1.AnnotatorSelector\022\033\n" + + "\022annotator_selector\030\006 " + + "\001(\01328.google.cloud.contactcenterinsights.v1.AnnotatorSelector\022\033\n" + "\023analysis_percentage\030\007 \001(\001\022\016\n" + "\006active\030\010 \001(\010:\233\001\352A\227\001\n" - + "1contactcenterinsights.googleapis.com/AnalysisRule\022Ep" - + "rojects/{project}/locations/{location}/analysisRules/{analysis_rule}*\r" + + "1contactcenterinsights.googleapis.com/Analysis" + + "Rule\022Eprojects/{project}/locations/{location}/analysisRules/{analysis_rule}*\r" + "analysisRules2\014analysisRuleB\017\n\r" + "_display_name\"\253\001\n" + "\016EncryptionSpec\022\021\n" + "\004name\030\001 \001(\tB\003\340A\005\022\024\n" + "\007kms_key\030\002 \001(\tB\003\340A\002:p\352Am\n" - + "3contactcenterinsights.googleapis.com/EncryptionSpec\0226projec" - + "ts/{project}/locations/{location}/encryptionSpec\"H\n" + + "3contactcenterinsights.googleapis.com/EncryptionSpec\022" + + "6projects/{project}/locations/{location}/encryptionSpec\"H\n" + "\017RedactionConfig\022\033\n" + "\023deidentify_template\030\001 \001(\t\022\030\n" + "\020inspect_template\030\002 \001(\t\"P\n" @@ -837,42 +849,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021speech_recognizer\030\001 \001(\tB%\372A\"\n" + " speech.googleapis.com/Recognizer\"\337\t\n" + "\021RuntimeAnnotation\022Z\n" - + "\022article_suggestion\030\006 \001(\0132<.google.cloud.contactcen" - + "terinsights.v1.ArticleSuggestionDataH\000\022J\n\n" - + "faq_answer\030\007" - + " \001(\01324.google.cloud.contactcenterinsights.v1.FaqAnswerDataH\000\022L\n" - + "\013smart_reply\030\010" - + " \001(\01325.google.cloud.contactcenterinsights.v1.SmartReplyDataH\000\022e\n" - + "\030smart_compose_suggestion\030\t \001(\0132A.google.clou" - + "d.contactcenterinsights.v1.SmartComposeSuggestionDataH\000\022b\n" + + "\022article_suggestion\030\006 \001(\0132<.google.cloud.con" + + "tactcenterinsights.v1.ArticleSuggestionDataH\000\022J\n\n" + + "faq_answer\030\007 \001(\01324.google.cloud" + + ".contactcenterinsights.v1.FaqAnswerDataH\000\022L\n" + + "\013smart_reply\030\010 \001(\01325.google.cloud.co" + + "ntactcenterinsights.v1.SmartReplyDataH\000\022e\n" + + "\030smart_compose_suggestion\030\t \001(\0132A.goog" + + "le.cloud.contactcenterinsights.v1.SmartComposeSuggestionDataH\000\022b\n" + "\026dialogflow_interaction\030\n" - + " \001(\0132@.google.cloud.contactcenterinsights.v1.DialogflowInteractionDataH\000\022\177\n" - + "%conversation_summarization_suggestion\030\014 \001" - + "(\0132N.google.cloud.contactcenterinsights." - + "v1.ConversationSummarizationSuggestionDataH\000\022\025\n\r" + + " \001(\0132@.google.cloud.contactcen" + + "terinsights.v1.DialogflowInteractionDataH\000\022\177\n" + + "%conversation_summarization_suggestion\030\014" + + " \001(\0132N.google.cloud.contactcenterin" + + "sights.v1.ConversationSummarizationSuggestionDataH\000\022\025\n\r" + "annotation_id\030\001 \001(\t\022/\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022Q\n" - + "\016start_boundary\030\003 \001(\01329.google.cloud.cont" - + "actcenterinsights.v1.AnnotationBoundary\022O\n" - + "\014end_boundary\030\004 \001(\01329.google.cloud.con" - + "tactcenterinsights.v1.AnnotationBoundary\022N\n" - + "\017answer_feedback\030\005 \001(\01325.google.cloud" - + ".contactcenterinsights.v1.AnswerFeedback\022V\n\n" - + "user_input\030\020 \001(\0132B.google.cloud.cont" - + "actcenterinsights.v1.RuntimeAnnotation.UserInput\032\353\001\n" + + "\016start_boundary\030\003 \001(\01329.google.clo" + + "ud.contactcenterinsights.v1.AnnotationBoundary\022O\n" + + "\014end_boundary\030\004 \001(\01329.google.cl" + + "oud.contactcenterinsights.v1.AnnotationBoundary\022N\n" + + "\017answer_feedback\030\005 \001(\01325.googl" + + "e.cloud.contactcenterinsights.v1.AnswerFeedback\022V\n\n" + + "user_input\030\020 \001(\0132B.google.clo" + + "ud.contactcenterinsights.v1.RuntimeAnnotation.UserInput\032\353\001\n" + "\tUserInput\022\r\n" + "\005query\030\001 \001(\t\022\026\n" + "\016generator_name\030\002 \001(\t\022d\n" - + "\014query_source\030\003 \001(\0162N.google.cloud.contactcenterinsights" - + ".v1.RuntimeAnnotation.UserInput.QuerySource\"Q\n" + + "\014query_source\030\003 \001(\0162N.google.cloud.contactcenteri" + + "nsights.v1.RuntimeAnnotation.UserInput.QuerySource\"Q\n" + "\013QuerySource\022\034\n" + "\030QUERY_SOURCE_UNSPECIFIED\020\000\022\017\n" + "\013AGENT_QUERY\020\001\022\023\n" + "\017SUGGESTED_QUERY\020\002B\006\n" + "\004data\"\211\002\n" + "\016AnswerFeedback\022a\n" - + "\021correctness_level\030\001 \001(\0162F.google.cloud.cont" - + "actcenterinsights.v1.AnswerFeedback.CorrectnessLevel\022\017\n" + + "\021correctness_level\030\001 \001(\0162F.google.clo" + + "ud.contactcenterinsights.v1.AnswerFeedback.CorrectnessLevel\022\017\n" + "\007clicked\030\002 \001(\010\022\021\n" + "\tdisplayed\030\003 \001(\010\"p\n" + "\020CorrectnessLevel\022!\n" @@ -884,21 +897,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005title\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\030\n" + "\020confidence_score\030\003 \001(\002\022\\\n" - + "\010metadata\030\004 \003(\0132J.google.cloud.cont" - + "actcenterinsights.v1.ArticleSuggestionData.MetadataEntry\022\024\n" + + "\010metadata\030\004 \003(\0132J.google.clo" + + "ud.contactcenterinsights.v1.ArticleSuggestionData.MetadataEntry\022\024\n" + "\014query_record\030\005 \001(\t\022\016\n" + "\006source\030\006 \001(\t\032/\n\r" - + "MetadataEntry\022\013\n" + + "MetadataEntry\022\013", + "\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\370\001\n\r" + "FaqAnswerData\022\016\n" + "\006answer\030\001 \001(\t\022\030\n" + "\020confidence_score\030\002 \001(\002\022\020\n" + "\010question\030\003 \001(\t\022T\n" - + "\010metadata\030\004 \003(\0132" - + "B.google.cloud.contactcenterinsights.v1.FaqAnswerData.MetadataEntry\022\024\n" - + "\014query_rec", - "ord\030\005 \001(\t\022\016\n" + + "\010metadata\030\004" + + " \003(\0132B.google.cloud.contactcenterinsights.v1.FaqAnswerData.MetadataEntry\022\024\n" + + "\014query_record\030\005 \001(\t\022\016\n" + "\006source\030\006 \001(\t\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -906,8 +919,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016SmartReplyData\022\r\n" + "\005reply\030\001 \001(\t\022\030\n" + "\020confidence_score\030\002 \001(\001\022U\n" - + "\010metadata\030\003 \003(\0132C.googl" - + "e.cloud.contactcenterinsights.v1.SmartReplyData.MetadataEntry\022\024\n" + + "\010metadata\030\003 \003(\0132" + + "C.google.cloud.contactcenterinsights.v1.SmartReplyData.MetadataEntry\022\024\n" + "\014query_record\030\004 \001(\t\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -915,8 +928,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032SmartComposeSuggestionData\022\022\n\n" + "suggestion\030\001 \001(\t\022\030\n" + "\020confidence_score\030\002 \001(\001\022a\n" - + "\010metadata\030\003 \003(\0132O.google.clo" - + "ud.contactcenterinsights.v1.SmartComposeSuggestionData.MetadataEntry\022\024\n" + + "\010metadata\030\003 \003(\0132O.goo" + + "gle.cloud.contactcenterinsights.v1.SmartComposeSuggestionData.MetadataEntry\022\024\n" + "\014query_record\030\004 \001(\t\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -926,12 +939,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "confidence\030\002 \001(\002\"\315\003\n" + "\'ConversationSummarizationSuggestionData\022\014\n" + "\004text\030\001 \001(\t\022w\n\r" - + "text_sections\030\005 \003(\0132`.google.cloud.conta" - + "ctcenterinsights.v1.ConversationSummarizationSuggestionData.TextSectionsEntry\022\022\n" - + "\n" + + "text_sections\030\005 \003(\0132`.google.cloud.contactcenterinsights.v1.ConversationS" + + "ummarizationSuggestionData.TextSectionsEntry\022\022\n\n" + "confidence\030\002 \001(\002\022n\n" - + "\010metadata\030\003 \003(\0132\\.google.cloud.contactcenterinsights.v1.Conv" - + "ersationSummarizationSuggestionData.MetadataEntry\022\025\n\r" + + "\010metadata\030\003 \003(\0132\\.google.cloud.contactcenterinsights." + + "v1.ConversationSummarizationSuggestionData.MetadataEntry\022\025\n\r" + "answer_record\030\004 \001(\t\022\032\n" + "\022conversation_model\030\006 \001(\t\0323\n" + "\021TextSectionsEntry\022\013\n" @@ -946,8 +958,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007user_id\030\006 \001(\tH\000\022\"\n" + "\026dialogflow_participant\030\001 \001(\tB\002\030\001\022#\n" + "\033obfuscated_external_user_id\030\003 \001(\t\022Q\n" - + "\004role\030\002 \001(\0162C.google.cloud.conta" - + "ctcenterinsights.v1.ConversationParticipant.Role\"_\n" + + "\004role\030\002 \001(\0162C.google.clou" + + "d.contactcenterinsights.v1.ConversationParticipant.Role\"_\n" + "\004Role\022\024\n" + "\020ROLE_UNSPECIFIED\020\000\022\017\n" + "\013HUMAN_AGENT\020\001\022\023\n" @@ -959,12 +971,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB\003\340A\005\022\024\n" + "\014display_name\030\002 \001(\t\0224\n" + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\r" - + "\n" + + "\013update_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\r\n" + "\005value\030\005 \001(\t:d\352Aa\n" - + ")contactcenterinsight" - + "s.googleapis.com/View\0224projects/{project}/locations/{location}/views/{view}\"\373" - + "\t\n" + + ")contactcenterinsights.googleapis.com/View\0224projects/{" + + "project}/locations/{location}/views/{view}\"\373\t\n" + "\021AnnotatorSelector\022\"\n" + "\032run_interruption_annotator\030\001 \001(\010\022\035\n" + "\025run_silence_annotator\030\002 \001(\010\022$\n" @@ -979,25 +989,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\tB4\372A1\n" + "/contactcenterinsights.googleapis.com/IssueModel\022#\n" + "\033run_summarization_annotator\030\t \001(\010\022j\n" - + "\024summarization_config\030\013 \001(\0132L.go" - + "ogle.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig\022\030\n" + + "\024summarization_config\030\013 \001(\0132L.google.cloud.contactcenterinsights." + + "v1.AnnotatorSelector.SummarizationConfig\022\030\n" + "\020run_qa_annotator\030\014 \001(\010\022T\n" + "\tqa_config\030\r" - + " \001(\0132A" - + ".google.cloud.contactcenterinsights.v1.AnnotatorSelector.QaConfig\032\341\002\n" + + " \001(\0132A.google.cloud.contactcenterinsights.v1.AnnotatorSelector.QaConfig\032\341\002\n" + "\023SummarizationConfig\022R\n" + "\024conversation_profile\030\001 \001(\tB2\372A/\n" + "-dialogflow.googleapis.com/ConversationProfileH\000\022~\n" - + "\023summarization_model\030\002 \001(\0162_.google.cloud.contactcenterinsights." - + "v1.AnnotatorSelector.SummarizationConfig.SummarizationModelH\000\"f\n" + + "\023summarization_model\030\002 \001(\0162_.google.cloud.contactcenterin" + + "sights.v1.AnnotatorSelector.SummarizationConfig.SummarizationModelH\000\"f\n" + "\022SummarizationModel\022#\n" + "\037SUMMARIZATION_MODEL_UNSPECIFIED\020\000\022\022\n" + "\016BASELINE_MODEL\020\001\022\027\n" + "\023BASELINE_MODEL_V2_0\020\002B\016\n" + "\014model_source\032\371\001\n" + "\010QaConfig\022i\n" - + "\016scorecard_list\030\001 \001(\0132O.google.cloud.contac" - + "tcenterinsights.v1.AnnotatorSelector.QaConfig.ScorecardListH\000\032n\n\r" + + "\016scorecard_list\030\001 \001(\0132O.google.cloud" + + ".contactcenterinsights.v1.AnnotatorSelector.QaConfig.ScorecardListH\000\032n\n\r" + "ScorecardList\022]\n" + "\026qa_scorecard_revisions\030\001 \003(\tB=\372A:\n" + "8contactcenterinsights.googleapis.com/QaScorecardRevisionB\022\n" @@ -1007,18 +1016,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014abbreviation\030\002 \001(\t\0224\n" + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\004" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\025\n" - + "\r" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\025\n\r" + "question_body\030\005 \001(\t\022\033\n" + "\023answer_instructions\030\t \001(\t\022V\n" - + "\016answer_choices\030\006 \003(\0132>.goog" - + "le.cloud.contactcenterinsights.v1.QaQuestion.AnswerChoice\022\014\n" - + "\004tags\030\007 \003(\t\022\r\n" + + "\016answer_choices\030\006 \003(\013" + + "2>.google.cloud.contactcenterinsights.v1.QaQuestion.AnswerChoice\022\014\n" + + "\004tags\030\007 \003(\t\022\r" + + "\n" + "\005order\030\010 \001(\005\022J\n" + "\007metrics\030\n" + " \001(\01329.google.cloud.contactcenterinsights.v1.QaQuestion.Metrics\022Y\n" - + "\017tuning_metadata\030\013 \001(\0132@.google.clo" - + "ud.contactcenterinsights.v1.QaQuestion.TuningMetadata\032\226\001\n" + + "\017tuning_metadata\030\013 \001(\0132@.goo" + + "gle.cloud.contactcenterinsights.v1.QaQuestion.TuningMetadata\032\226\001\n" + "\014AnswerChoice\022\023\n" + "\tstr_value\030\002 \001(\tH\000\022\023\n" + "\tnum_value\030\003 \001(\001H\000\022\024\n\n" @@ -1032,12 +1041,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010accuracy\030\001 \001(\001B\003\340A\003\032\255\001\n" + "\016TuningMetadata\022\037\n" + "\027total_valid_label_count\030\001 \001(\003\022d\n" - + "\033dataset_validation_warnings\030\002" - + " \003(\0162?.google.cloud.contactcenterinsights.v1.DatasetValidationWarning\022\024\n" + + "\033dataset_validation_warnings\030\002 \003(\0162?.google.cloud.contactc" + + "enterinsights.v1.DatasetValidationWarning\022\024\n" + "\014tuning_error\030\003 \001(\t:\302\001\352A\276\001\n" - + "/contactcenterinsights.googleapis.com/QaQuestion\022rprojec" - + "ts/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revisio" - + "n}/qaQuestions/{qa_question}*\013qaQuestions2\n" + + "/contactcenterinsights.googleapis.com/QaQuestion\022" + + "rprojects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{" + + "revision}/qaQuestions/{qa_question}*\013qaQuestions2\n" + "qaQuestion\"\320\002\n" + "\013QaScorecard\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\024\n" @@ -1046,8 +1055,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\226\001\352A\222\001\n" - + "0contactcenterinsights.googleapis.com/QaScorecard\022Cprojects/{project}/loc" - + "ations/{location}/qaScorecards/{qa_scorecard}*\014qaScorecards2\013qaScorecard\"\337\004\n" + + "0contactcenterinsights.googleapis.com/QaScorecard\022Cprojects/{proje" + + "ct}/locations/{location}/qaScorecards/{q" + + "a_scorecard}*\014qaScorecards2\013qaScorecard\"\337\004\n" + "\023QaScorecardRevision\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022D\n" + "\010snapshot\030\002" @@ -1055,8 +1065,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013create_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\032\n\r" + "alternate_ids\030\004 \003(\tB\003\340A\003\022T\n" - + "\005state\030\005 \001" - + "(\0162@.google.cloud.contactcenterinsights.v1.QaScorecardRevision.StateB\003\340A\003\"\200\001\n" + + "\005state\030\005 \001(\0162@.google.cloud.contactcenterin" + + "sights.v1.QaScorecardRevision.StateB\003\340A\003\"\200\001\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\014\n" + "\010EDITABLE\020\014\022\014\n" @@ -1065,20 +1075,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005READY\020\013\022\014\n" + "\010DELETING\020\007\022\026\n" + "\022TRAINING_CANCELLED\020\016:\303\001\352A\277\001\n" - + "8contactcenterinsights.googleapis.com/QaScorecardRevision\022Xprojects/" - + "{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}*" - + "\024qaScorecardRevisions2\023qaScorecardRevision\"\222\007\n" + + "8contactcenterinsights.googleapis.com/QaScorecardRevision\022Xpr" + + "ojects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{rev" + + "ision}*\024qaScorecardRevisions2\023qaScorecardRevision\"\222\007\n" + "\010QaAnswer\022I\n" + "\013qa_question\030\007 \001(\tB4\372A1\n" + "/contactcenterinsights.googleapis.com/QaQuestion\022L\n" + "\014conversation\030\002 \001(\tB6\372A3\n" + "1contactcenterinsights.googleapis.com/Conversation\022\025\n\r" + "question_body\030\006 \001(\t\022Q\n" - + "\014answer_value\030\003" - + " \001(\0132;.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue\022\014\n" + + "\014answer_value\030\003 \001(\0132;.google.cloud.cont" + + "actcenterinsights.v1.QaAnswer.AnswerValue\022\014\n" + "\004tags\030\005 \003(\t\022T\n" - + "\016answer_sources\030\010 \003(\0132<.googl" - + "e.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource\032\212\002\n" + + "\016answer_sources\030\010 \003(\0132" + + "<.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource\032\212\002\n" + "\013AnswerValue\022\023\n" + "\tstr_value\030\002 \001(\tH\000\022\023\n" + "\tnum_value\030\003 \001(\001H\000\022\024\n\n" @@ -1093,11 +1103,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020_potential_scoreB\023\n" + "\021_normalized_score\032\221\002\n" + "\014AnswerSource\022\\\n" - + "\013source_type\030\001 \001(" - + "\0162G.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource.SourceType\022Q\n" - + "\014answer_value\030\002" - + " \001(\0132;.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue\"P\n" - + "\n" + + "\013source_type\030\001 \001(\0162G.google.cloud.contactcenterins" + + "ights.v1.QaAnswer.AnswerSource.SourceType\022Q\n" + + "\014answer_value\030\002 \001(\0132;.google.cloud.c" + + "ontactcenterinsights.v1.QaAnswer.AnswerValue\"P\n\n" + "SourceType\022\033\n" + "\027SOURCE_TYPE_UNSPECIFIED\020\000\022\024\n" + "\020SYSTEM_GENERATED\020\001\022\017\n" @@ -1111,16 +1120,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013create_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\020\n" + "\010agent_id\030\005 \001(\t\022C\n\n" - + "qa_answers\030\006" - + " \003(\0132/.google.cloud.contactcenterinsights.v1.QaAnswer\022\022\n" + + "qa_answers\030\006 \003(\0132/.google" + + ".cloud.contactcenterinsights.v1.QaAnswer\022\022\n" + "\005score\030\007 \001(\001H\000\210\001\001\022\034\n" + "\017potential_score\030\010 \001(\001H\001\210\001\001\022\035\n" + "\020normalized_score\030\t \001(\001H\002\210\001\001\022\\\n" + "\016qa_tag_results\030\n" - + " \003(\0132D.google.cloud.contac" - + "tcenterinsights.v1.QaScorecardResult.QaTagResult\022[\n\r" - + "score_sources\030\013 \003(\0132D.google" - + ".cloud.contactcenterinsights.v1.QaScorecardResult.ScoreSource\032\236\001\n" + + " \003(\0132D.google.cloud" + + ".contactcenterinsights.v1.QaScorecardResult.QaTagResult\022[\n\r" + + "score_sources\030\013 \003(\0132D" + + ".google.cloud.contactcenterinsights.v1.QaScorecardResult.ScoreSource\032\236\001\n" + "\013QaTagResult\022\013\n" + "\003tag\030\001 \001(\t\022\022\n" + "\005score\030\002 \001(\001H\000\210\001\001\022\034\n" @@ -1130,13 +1139,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020_potential_scoreB\023\n" + "\021_normalized_score\032\266\003\n" + "\013ScoreSource\022d\n" - + "\013source_type\030\001 \001(\0162O.google.cloud.conta" - + "ctcenterinsights.v1.QaScorecardResult.ScoreSource.SourceType\022\022\n" + + "\013source_type\030\001 \001(\0162O.google.clou" + + "d.contactcenterinsights.v1.QaScorecardResult.ScoreSource.SourceType\022\022\n" + "\005score\030\002 \001(\001H\000\210\001\001\022\034\n" + "\017potential_score\030\003 \001(\001H\001\210\001\001\022\035\n" + "\020normalized_score\030\004 \001(\001H\002\210\001\001\022\\\n" - + "\016qa_tag_results\030\005" - + " \003(\0132D.google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult\"_\n\n" + + "\016qa_tag_results\030\005 \003(\0132D.google.cloud.contactcente" + + "rinsights.v1.QaScorecardResult.QaTagResult\"_\n\n" + "SourceType\022\033\n" + "\027SOURCE_TYPE_UNSPECIFIED\020\000\022\031\n" + "\025SYSTEM_GENERATED_ONLY\020\001\022\031\n" @@ -1144,9 +1153,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\022\n" + "\020_potential_scoreB\023\n" + "\021_normalized_score:\265\001\352A\261\001\n" - + "6contactcenterinsights.googleapis.com/QaScorecard" - + "Result\022Pprojects/{project}/locations/{location}/qaScorecardResults/{qa_scorecard" - + "_result}*\022qaScorecardResults2\021qaScorecardResultB\010\n" + + "6contactcenterinsights.googleapis.com/QaScorecardResult\022Pprojects/{project}/locati" + + "ons/{location}/qaScorecardResults/{qa_sc" + + "orecard_result}*\022qaScorecardResults2\021qaScorecardResultB\010\n" + "\006_scoreB\022\n" + "\020_potential_scoreB\023\n" + "\021_normalized_score*\351\001\n" @@ -1156,18 +1165,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034INSUFFICIENT_FEEDBACK_LABELS\020\002\022+\n" + "\'INSUFFICIENT_FEEDBACK_LABELS_PER_ANSWER\020\003\022,\n" + "(ALL_FEEDBACK_LABELS_HAVE_THE_SAME_ANSWER\020\004B\340\005\n" - + ")com.google.cloud.contactcenterinsights.v1B\016ResourcesProtoP\001Z_" - + "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb;contactc" - + "enterinsightspb\252\002%Google.Cloud.ContactCe" - + "nterInsights.V1\312\002%Google\\Cloud\\ContactCe" - + "nterInsights\\V1\352\002(Google::Cloud::ContactCenterInsights::V1\352A\204\001\n" - + "-dialogflow.googleapis.com/ConversationProfile\022Sprojects/" - + "{project}/locations/{location}/conversationProfiles/{conversation_profile}\352A\324\001\n" - + "%dialogflow.googleapis.com/Participant\022Jprojects/{project}/conversations/{convers" - + "ation}/participants/{participant}\022_projects/{project}/locations/{location}/conve" - + "rsations/{conversation}/participants/{participant}\352Ad\n" - + " speech.googleapis.com/Recognizer\022@projects/{project}/locations/{l" - + "ocation}/recognizers/{recognizer}b\006proto3" + + ")com.google.cloud.contactcenterinsights.v1B\016ResourcesPr" + + "otoP\001Z_cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb;c" + + "ontactcenterinsightspb\252\002%Google.Cloud.Co" + + "ntactCenterInsights.V1\312\002%Google\\Cloud\\Co" + + "ntactCenterInsights\\V1\352\002(Google::Cloud::ContactCenterInsights::V1\352A\204\001\n" + + "-dialogflow.googleapis.com/ConversationProfile\022Spr" + + "ojects/{project}/locations/{location}/co" + + "nversationProfiles/{conversation_profile}\352A\324\001\n" + + "%dialogflow.googleapis.com/Participant\022Jprojects/{project}/conversations/{" + + "conversation}/participants/{participant}\022_projects/{project}/locations/{location" + + "}/conversations/{conversation}/participants/{participant}\352Ad\n" + + " speech.googleapis.com/Recognizer\022@projects/{project}/locat" + + "ions/{location}/recognizers/{recognizer}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1234,7 +1244,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_Conversation_QualityMetadata_AgentInfo_descriptor, new java.lang.String[] { - "AgentId", "DisplayName", "Team", "DispositionCode", "AgentType", + "AgentId", + "DisplayName", + "Team", + "Teams", + "DispositionCode", + "AgentType", + "Location", + "DeploymentId", + "DeploymentDisplayName", + "VersionId", + "VersionDisplayName", + "EntrySubagentDisplayName", + "EntrySubagentId", }); internal_static_google_cloud_contactcenterinsights_v1_Conversation_Transcript_descriptor = internal_static_google_cloud_contactcenterinsights_v1_Conversation_descriptor.getNestedType( diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/proto/google/cloud/contactcenterinsights/v1/resources.proto b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/proto/google/cloud/contactcenterinsights/v1/resources.proto index 86e0c547f8ec..63e5facb40fc 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/proto/google/cloud/contactcenterinsights/v1/resources.proto +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/proto/google/cloud/contactcenterinsights/v1/resources.proto @@ -93,8 +93,12 @@ message Conversation { // The agent's name. string display_name = 2; - // A user-specified string representing the agent's team. - string team = 3; + // A user-specified string representing the agent's team. Deprecated in + // favor of the `teams` field. + string team = 3 [deprecated = true]; + + // User-specified strings representing the agent's teams. + repeated string teams = 6; // A user-provided string indicating the outcome of the agent's segment of // the call. @@ -102,6 +106,28 @@ message Conversation { // The agent type, e.g. HUMAN_AGENT. ConversationParticipant.Role agent_type = 5; + + // The agent's location. + string location = 7; + + // The agent's deployment ID. Only applicable to automated agents. + string deployment_id = 8; + + // The agent's deployment display name. Only applicable to automated + // agents. + string deployment_display_name = 9; + + // The agent's version ID. Only applicable to automated agents. + string version_id = 10; + + // The agent's version display name. Only applicable to automated agents. + string version_display_name = 11; + + // The entry subagent's display name. + string entry_subagent_display_name = 12; + + // The entry subagent's ID. + string entry_subagent_id = 13; } // An arbitrary integer value indicating the customer's satisfaction rating. diff --git a/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json b/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json index 503aa98ddce0..3e2d1001f895 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json +++ b/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json @@ -1475,6 +1475,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig$HardwareClass", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataproc.v1.FlinkJob", "queryAllDeclaredConstructors": true, @@ -2573,6 +2600,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataproc.v1.MultiZoneConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataproc.v1.MultiZoneConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataproc.v1.MultiZoneConfig$TargetShape", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataproc.v1.NodeGroup", "queryAllDeclaredConstructors": true, diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java index c2e606d1971c..aa9ce3e163d7 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java @@ -1844,6 +1844,319 @@ public com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder getAuxiliaryNode return auxiliaryNodeGroups_.get(index); } + public static final int MASTER_FLEXIBLE_CONFIG_FIELD_NUMBER = 31; + private com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig masterFlexibleConfig_; + + /** + * + * + *
+   * Optional. The High Obtainability (HO) config settings for the cluster's
+   * master instances.
+   *
+   * In High Obtainability (HO) mode, flexible configs are the single source of
+   * truth for desired cluster configuration across node groups:
+   * * For single-node clusters: `master_flexible_config` must be specified, and
+   * no worker configs should be set.
+   * * For multi-node (standard) clusters: both `master_flexible_config` and
+   * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config]
+   * must be specified. Mixing standard and flexible configs across node
+   * groups is not allowed.
+   *
+   * Only one of
+   * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or
+   * `master_flexible_config` can be set.
+   * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the masterFlexibleConfig field is set. + */ + @java.lang.Override + public boolean hasMasterFlexibleConfig() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+   * Optional. The High Obtainability (HO) config settings for the cluster's
+   * master instances.
+   *
+   * In High Obtainability (HO) mode, flexible configs are the single source of
+   * truth for desired cluster configuration across node groups:
+   * * For single-node clusters: `master_flexible_config` must be specified, and
+   * no worker configs should be set.
+   * * For multi-node (standard) clusters: both `master_flexible_config` and
+   * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config]
+   * must be specified. Mixing standard and flexible configs across node
+   * groups is not allowed.
+   *
+   * Only one of
+   * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or
+   * `master_flexible_config` can be set.
+   * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The masterFlexibleConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig getMasterFlexibleConfig() { + return masterFlexibleConfig_ == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance() + : masterFlexibleConfig_; + } + + /** + * + * + *
+   * Optional. The High Obtainability (HO) config settings for the cluster's
+   * master instances.
+   *
+   * In High Obtainability (HO) mode, flexible configs are the single source of
+   * truth for desired cluster configuration across node groups:
+   * * For single-node clusters: `master_flexible_config` must be specified, and
+   * no worker configs should be set.
+   * * For multi-node (standard) clusters: both `master_flexible_config` and
+   * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config]
+   * must be specified. Mixing standard and flexible configs across node
+   * groups is not allowed.
+   *
+   * Only one of
+   * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or
+   * `master_flexible_config` can be set.
+   * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder + getMasterFlexibleConfigOrBuilder() { + return masterFlexibleConfig_ == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance() + : masterFlexibleConfig_; + } + + public static final int WORKER_FLEXIBLE_CONFIG_FIELD_NUMBER = 32; + private com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig workerFlexibleConfig_; + + /** + * + * + *
+   * Optional. The High Obtainability (HO) config settings for the cluster's
+   * worker instances.
+   *
+   * In High Obtainability (HO) mode, flexible configs are the single source of
+   * truth for desired cluster configuration. `num_instances` represents the
+   * desired capacity of the worker group and is mutable via cluster updates and
+   * autoscaling.
+   *
+   * Only one of
+   * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or
+   * `worker_flexible_config` can be set.
+   *
+   * In High Obtainability (HO) mode, for multi-node (standard) clusters, both
+   * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config]
+   * and `worker_flexible_config` must be specified. Mixing standard and
+   * flexible configs across node groups is not allowed. Single-node clusters do
+   * not specify worker configs.
+   * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the workerFlexibleConfig field is set. + */ + @java.lang.Override + public boolean hasWorkerFlexibleConfig() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
+   * Optional. The High Obtainability (HO) config settings for the cluster's
+   * worker instances.
+   *
+   * In High Obtainability (HO) mode, flexible configs are the single source of
+   * truth for desired cluster configuration. `num_instances` represents the
+   * desired capacity of the worker group and is mutable via cluster updates and
+   * autoscaling.
+   *
+   * Only one of
+   * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or
+   * `worker_flexible_config` can be set.
+   *
+   * In High Obtainability (HO) mode, for multi-node (standard) clusters, both
+   * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config]
+   * and `worker_flexible_config` must be specified. Mixing standard and
+   * flexible configs across node groups is not allowed. Single-node clusters do
+   * not specify worker configs.
+   * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workerFlexibleConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig getWorkerFlexibleConfig() { + return workerFlexibleConfig_ == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance() + : workerFlexibleConfig_; + } + + /** + * + * + *
+   * Optional. The High Obtainability (HO) config settings for the cluster's
+   * worker instances.
+   *
+   * In High Obtainability (HO) mode, flexible configs are the single source of
+   * truth for desired cluster configuration. `num_instances` represents the
+   * desired capacity of the worker group and is mutable via cluster updates and
+   * autoscaling.
+   *
+   * Only one of
+   * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or
+   * `worker_flexible_config` can be set.
+   *
+   * In High Obtainability (HO) mode, for multi-node (standard) clusters, both
+   * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config]
+   * and `worker_flexible_config` must be specified. Mixing standard and
+   * flexible configs across node groups is not allowed. Single-node clusters do
+   * not specify worker configs.
+   * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder + getWorkerFlexibleConfigOrBuilder() { + return workerFlexibleConfig_ == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance() + : workerFlexibleConfig_; + } + + public static final int SECONDARY_WORKER_FLEXIBLE_CONFIG_FIELD_NUMBER = 33; + private com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondaryWorkerFlexibleConfig_; + + /** + * + * + *
+   * Optional. The High Obtainability (HO) config settings for a cluster's
+   * secondary worker instances.
+   *
+   * In High Obtainability (HO) mode, flexible configs are the single source of
+   * truth for desired cluster configuration. `num_instances` represents the
+   * desired capacity of the secondary worker group and is mutable via cluster
+   * updates and autoscaling.
+   *
+   * Only one of
+   * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config]
+   * or `secondary_worker_flexible_config` can be set.
+   *
+   * In High Obtainability (HO) mode, secondary workers are optional. If
+   * secondary workers are used in an HO cluster, they must be configured using
+   * `secondary_worker_flexible_config` (not `secondary_worker_config`).
+   * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the secondaryWorkerFlexibleConfig field is set. + */ + @java.lang.Override + public boolean hasSecondaryWorkerFlexibleConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
+   * Optional. The High Obtainability (HO) config settings for a cluster's
+   * secondary worker instances.
+   *
+   * In High Obtainability (HO) mode, flexible configs are the single source of
+   * truth for desired cluster configuration. `num_instances` represents the
+   * desired capacity of the secondary worker group and is mutable via cluster
+   * updates and autoscaling.
+   *
+   * Only one of
+   * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config]
+   * or `secondary_worker_flexible_config` can be set.
+   *
+   * In High Obtainability (HO) mode, secondary workers are optional. If
+   * secondary workers are used in an HO cluster, they must be configured using
+   * `secondary_worker_flexible_config` (not `secondary_worker_config`).
+   * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The secondaryWorkerFlexibleConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig + getSecondaryWorkerFlexibleConfig() { + return secondaryWorkerFlexibleConfig_ == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance() + : secondaryWorkerFlexibleConfig_; + } + + /** + * + * + *
+   * Optional. The High Obtainability (HO) config settings for a cluster's
+   * secondary worker instances.
+   *
+   * In High Obtainability (HO) mode, flexible configs are the single source of
+   * truth for desired cluster configuration. `num_instances` represents the
+   * desired capacity of the secondary worker group and is mutable via cluster
+   * updates and autoscaling.
+   *
+   * Only one of
+   * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config]
+   * or `secondary_worker_flexible_config` can be set.
+   *
+   * In High Obtainability (HO) mode, secondary workers are optional. If
+   * secondary workers are used in an HO cluster, they must be configured using
+   * `secondary_worker_flexible_config` (not `secondary_worker_config`).
+   * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder + getSecondaryWorkerFlexibleConfigOrBuilder() { + return secondaryWorkerFlexibleConfig_ == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance() + : secondaryWorkerFlexibleConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1920,6 +2233,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.cloud.dataproc.v1.ClusterConfig.Engine.ENGINE_UNSPECIFIED.getNumber()) { output.writeEnum(30, engine_); } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(31, getMasterFlexibleConfig()); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(32, getWorkerFlexibleConfig()); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(33, getSecondaryWorkerFlexibleConfig()); + } getUnknownFields().writeTo(output); } @@ -1996,6 +2318,19 @@ public int getSerializedSize() { != com.google.cloud.dataproc.v1.ClusterConfig.Engine.ENGINE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(30, engine_); } + if (((bitField0_ & 0x00001000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(31, getMasterFlexibleConfig()); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(32, getWorkerFlexibleConfig()); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 33, getSecondaryWorkerFlexibleConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2067,6 +2402,20 @@ public boolean equals(final java.lang.Object obj) { if (!getDataprocMetricConfig().equals(other.getDataprocMetricConfig())) return false; } if (!getAuxiliaryNodeGroupsList().equals(other.getAuxiliaryNodeGroupsList())) return false; + if (hasMasterFlexibleConfig() != other.hasMasterFlexibleConfig()) return false; + if (hasMasterFlexibleConfig()) { + if (!getMasterFlexibleConfig().equals(other.getMasterFlexibleConfig())) return false; + } + if (hasWorkerFlexibleConfig() != other.hasWorkerFlexibleConfig()) return false; + if (hasWorkerFlexibleConfig()) { + if (!getWorkerFlexibleConfig().equals(other.getWorkerFlexibleConfig())) return false; + } + if (hasSecondaryWorkerFlexibleConfig() != other.hasSecondaryWorkerFlexibleConfig()) + return false; + if (hasSecondaryWorkerFlexibleConfig()) { + if (!getSecondaryWorkerFlexibleConfig().equals(other.getSecondaryWorkerFlexibleConfig())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2144,6 +2493,18 @@ public int hashCode() { hash = (37 * hash) + AUXILIARY_NODE_GROUPS_FIELD_NUMBER; hash = (53 * hash) + getAuxiliaryNodeGroupsList().hashCode(); } + if (hasMasterFlexibleConfig()) { + hash = (37 * hash) + MASTER_FLEXIBLE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMasterFlexibleConfig().hashCode(); + } + if (hasWorkerFlexibleConfig()) { + hash = (37 * hash) + WORKER_FLEXIBLE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWorkerFlexibleConfig().hashCode(); + } + if (hasSecondaryWorkerFlexibleConfig()) { + hash = (37 * hash) + SECONDARY_WORKER_FLEXIBLE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryWorkerFlexibleConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2299,6 +2660,9 @@ private void maybeForceBuilderInitialization() { internalGetMetastoreConfigFieldBuilder(); internalGetDataprocMetricConfigFieldBuilder(); internalGetAuxiliaryNodeGroupsFieldBuilder(); + internalGetMasterFlexibleConfigFieldBuilder(); + internalGetWorkerFlexibleConfigFieldBuilder(); + internalGetSecondaryWorkerFlexibleConfigFieldBuilder(); } } @@ -2385,6 +2749,21 @@ public Builder clear() { auxiliaryNodeGroupsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00040000); + masterFlexibleConfig_ = null; + if (masterFlexibleConfigBuilder_ != null) { + masterFlexibleConfigBuilder_.dispose(); + masterFlexibleConfigBuilder_ = null; + } + workerFlexibleConfig_ = null; + if (workerFlexibleConfigBuilder_ != null) { + workerFlexibleConfigBuilder_.dispose(); + workerFlexibleConfigBuilder_ = null; + } + secondaryWorkerFlexibleConfig_ = null; + if (secondaryWorkerFlexibleConfigBuilder_ != null) { + secondaryWorkerFlexibleConfigBuilder_.dispose(); + secondaryWorkerFlexibleConfigBuilder_ = null; + } return this; } @@ -2525,6 +2904,27 @@ private void buildPartial0(com.google.cloud.dataproc.v1.ClusterConfig result) { : dataprocMetricConfigBuilder_.build(); to_bitField0_ |= 0x00000800; } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.masterFlexibleConfig_ = + masterFlexibleConfigBuilder_ == null + ? masterFlexibleConfig_ + : masterFlexibleConfigBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.workerFlexibleConfig_ = + workerFlexibleConfigBuilder_ == null + ? workerFlexibleConfig_ + : workerFlexibleConfigBuilder_.build(); + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.secondaryWorkerFlexibleConfig_ = + secondaryWorkerFlexibleConfigBuilder_ == null + ? secondaryWorkerFlexibleConfig_ + : secondaryWorkerFlexibleConfigBuilder_.build(); + to_bitField0_ |= 0x00004000; + } result.bitField0_ |= to_bitField0_; } @@ -2649,6 +3049,15 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { } } } + if (other.hasMasterFlexibleConfig()) { + mergeMasterFlexibleConfig(other.getMasterFlexibleConfig()); + } + if (other.hasWorkerFlexibleConfig()) { + mergeWorkerFlexibleConfig(other.getWorkerFlexibleConfig()); + } + if (other.hasSecondaryWorkerFlexibleConfig()) { + mergeSecondaryWorkerFlexibleConfig(other.getSecondaryWorkerFlexibleConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2817,6 +3226,28 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 240 + case 250: + { + input.readMessage( + internalGetMasterFlexibleConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 250 + case 258: + { + input.readMessage( + internalGetWorkerFlexibleConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 258 + case 266: + { + input.readMessage( + internalGetSecondaryWorkerFlexibleConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case 266 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7149,6 +7580,1057 @@ public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder addAuxiliaryNodeG return auxiliaryNodeGroupsBuilder_; } + private com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig masterFlexibleConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder> + masterFlexibleConfigBuilder_; + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for the cluster's
+     * master instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration across node groups:
+     * * For single-node clusters: `master_flexible_config` must be specified, and
+     * no worker configs should be set.
+     * * For multi-node (standard) clusters: both `master_flexible_config` and
+     * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config]
+     * must be specified. Mixing standard and flexible configs across node
+     * groups is not allowed.
+     *
+     * Only one of
+     * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or
+     * `master_flexible_config` can be set.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the masterFlexibleConfig field is set. + */ + public boolean hasMasterFlexibleConfig() { + return ((bitField0_ & 0x00080000) != 0); + } + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for the cluster's
+     * master instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration across node groups:
+     * * For single-node clusters: `master_flexible_config` must be specified, and
+     * no worker configs should be set.
+     * * For multi-node (standard) clusters: both `master_flexible_config` and
+     * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config]
+     * must be specified. Mixing standard and flexible configs across node
+     * groups is not allowed.
+     *
+     * Only one of
+     * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or
+     * `master_flexible_config` can be set.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The masterFlexibleConfig. + */ + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig getMasterFlexibleConfig() { + if (masterFlexibleConfigBuilder_ == null) { + return masterFlexibleConfig_ == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance() + : masterFlexibleConfig_; + } else { + return masterFlexibleConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for the cluster's
+     * master instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration across node groups:
+     * * For single-node clusters: `master_flexible_config` must be specified, and
+     * no worker configs should be set.
+     * * For multi-node (standard) clusters: both `master_flexible_config` and
+     * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config]
+     * must be specified. Mixing standard and flexible configs across node
+     * groups is not allowed.
+     *
+     * Only one of
+     * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or
+     * `master_flexible_config` can be set.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMasterFlexibleConfig( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig value) { + if (masterFlexibleConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + masterFlexibleConfig_ = value; + } else { + masterFlexibleConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for the cluster's
+     * master instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration across node groups:
+     * * For single-node clusters: `master_flexible_config` must be specified, and
+     * no worker configs should be set.
+     * * For multi-node (standard) clusters: both `master_flexible_config` and
+     * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config]
+     * must be specified. Mixing standard and flexible configs across node
+     * groups is not allowed.
+     *
+     * Only one of
+     * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or
+     * `master_flexible_config` can be set.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMasterFlexibleConfig( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder builderForValue) { + if (masterFlexibleConfigBuilder_ == null) { + masterFlexibleConfig_ = builderForValue.build(); + } else { + masterFlexibleConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for the cluster's
+     * master instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration across node groups:
+     * * For single-node clusters: `master_flexible_config` must be specified, and
+     * no worker configs should be set.
+     * * For multi-node (standard) clusters: both `master_flexible_config` and
+     * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config]
+     * must be specified. Mixing standard and flexible configs across node
+     * groups is not allowed.
+     *
+     * Only one of
+     * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or
+     * `master_flexible_config` can be set.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMasterFlexibleConfig( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig value) { + if (masterFlexibleConfigBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) + && masterFlexibleConfig_ != null + && masterFlexibleConfig_ + != com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance()) { + getMasterFlexibleConfigBuilder().mergeFrom(value); + } else { + masterFlexibleConfig_ = value; + } + } else { + masterFlexibleConfigBuilder_.mergeFrom(value); + } + if (masterFlexibleConfig_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for the cluster's
+     * master instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration across node groups:
+     * * For single-node clusters: `master_flexible_config` must be specified, and
+     * no worker configs should be set.
+     * * For multi-node (standard) clusters: both `master_flexible_config` and
+     * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config]
+     * must be specified. Mixing standard and flexible configs across node
+     * groups is not allowed.
+     *
+     * Only one of
+     * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or
+     * `master_flexible_config` can be set.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMasterFlexibleConfig() { + bitField0_ = (bitField0_ & ~0x00080000); + masterFlexibleConfig_ = null; + if (masterFlexibleConfigBuilder_ != null) { + masterFlexibleConfigBuilder_.dispose(); + masterFlexibleConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for the cluster's
+     * master instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration across node groups:
+     * * For single-node clusters: `master_flexible_config` must be specified, and
+     * no worker configs should be set.
+     * * For multi-node (standard) clusters: both `master_flexible_config` and
+     * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config]
+     * must be specified. Mixing standard and flexible configs across node
+     * groups is not allowed.
+     *
+     * Only one of
+     * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or
+     * `master_flexible_config` can be set.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder + getMasterFlexibleConfigBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return internalGetMasterFlexibleConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for the cluster's
+     * master instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration across node groups:
+     * * For single-node clusters: `master_flexible_config` must be specified, and
+     * no worker configs should be set.
+     * * For multi-node (standard) clusters: both `master_flexible_config` and
+     * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config]
+     * must be specified. Mixing standard and flexible configs across node
+     * groups is not allowed.
+     *
+     * Only one of
+     * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or
+     * `master_flexible_config` can be set.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder + getMasterFlexibleConfigOrBuilder() { + if (masterFlexibleConfigBuilder_ != null) { + return masterFlexibleConfigBuilder_.getMessageOrBuilder(); + } else { + return masterFlexibleConfig_ == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance() + : masterFlexibleConfig_; + } + } + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for the cluster's
+     * master instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration across node groups:
+     * * For single-node clusters: `master_flexible_config` must be specified, and
+     * no worker configs should be set.
+     * * For multi-node (standard) clusters: both `master_flexible_config` and
+     * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config]
+     * must be specified. Mixing standard and flexible configs across node
+     * groups is not allowed.
+     *
+     * Only one of
+     * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or
+     * `master_flexible_config` can be set.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder> + internalGetMasterFlexibleConfigFieldBuilder() { + if (masterFlexibleConfigBuilder_ == null) { + masterFlexibleConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder>( + getMasterFlexibleConfig(), getParentForChildren(), isClean()); + masterFlexibleConfig_ = null; + } + return masterFlexibleConfigBuilder_; + } + + private com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig workerFlexibleConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder> + workerFlexibleConfigBuilder_; + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for the cluster's
+     * worker instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration. `num_instances` represents the
+     * desired capacity of the worker group and is mutable via cluster updates and
+     * autoscaling.
+     *
+     * Only one of
+     * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or
+     * `worker_flexible_config` can be set.
+     *
+     * In High Obtainability (HO) mode, for multi-node (standard) clusters, both
+     * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config]
+     * and `worker_flexible_config` must be specified. Mixing standard and
+     * flexible configs across node groups is not allowed. Single-node clusters do
+     * not specify worker configs.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the workerFlexibleConfig field is set. + */ + public boolean hasWorkerFlexibleConfig() { + return ((bitField0_ & 0x00100000) != 0); + } + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for the cluster's
+     * worker instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration. `num_instances` represents the
+     * desired capacity of the worker group and is mutable via cluster updates and
+     * autoscaling.
+     *
+     * Only one of
+     * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or
+     * `worker_flexible_config` can be set.
+     *
+     * In High Obtainability (HO) mode, for multi-node (standard) clusters, both
+     * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config]
+     * and `worker_flexible_config` must be specified. Mixing standard and
+     * flexible configs across node groups is not allowed. Single-node clusters do
+     * not specify worker configs.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workerFlexibleConfig. + */ + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig getWorkerFlexibleConfig() { + if (workerFlexibleConfigBuilder_ == null) { + return workerFlexibleConfig_ == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance() + : workerFlexibleConfig_; + } else { + return workerFlexibleConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for the cluster's
+     * worker instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration. `num_instances` represents the
+     * desired capacity of the worker group and is mutable via cluster updates and
+     * autoscaling.
+     *
+     * Only one of
+     * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or
+     * `worker_flexible_config` can be set.
+     *
+     * In High Obtainability (HO) mode, for multi-node (standard) clusters, both
+     * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config]
+     * and `worker_flexible_config` must be specified. Mixing standard and
+     * flexible configs across node groups is not allowed. Single-node clusters do
+     * not specify worker configs.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setWorkerFlexibleConfig( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig value) { + if (workerFlexibleConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workerFlexibleConfig_ = value; + } else { + workerFlexibleConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for the cluster's
+     * worker instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration. `num_instances` represents the
+     * desired capacity of the worker group and is mutable via cluster updates and
+     * autoscaling.
+     *
+     * Only one of
+     * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or
+     * `worker_flexible_config` can be set.
+     *
+     * In High Obtainability (HO) mode, for multi-node (standard) clusters, both
+     * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config]
+     * and `worker_flexible_config` must be specified. Mixing standard and
+     * flexible configs across node groups is not allowed. Single-node clusters do
+     * not specify worker configs.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setWorkerFlexibleConfig( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder builderForValue) { + if (workerFlexibleConfigBuilder_ == null) { + workerFlexibleConfig_ = builderForValue.build(); + } else { + workerFlexibleConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for the cluster's
+     * worker instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration. `num_instances` represents the
+     * desired capacity of the worker group and is mutable via cluster updates and
+     * autoscaling.
+     *
+     * Only one of
+     * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or
+     * `worker_flexible_config` can be set.
+     *
+     * In High Obtainability (HO) mode, for multi-node (standard) clusters, both
+     * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config]
+     * and `worker_flexible_config` must be specified. Mixing standard and
+     * flexible configs across node groups is not allowed. Single-node clusters do
+     * not specify worker configs.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeWorkerFlexibleConfig( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig value) { + if (workerFlexibleConfigBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) + && workerFlexibleConfig_ != null + && workerFlexibleConfig_ + != com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance()) { + getWorkerFlexibleConfigBuilder().mergeFrom(value); + } else { + workerFlexibleConfig_ = value; + } + } else { + workerFlexibleConfigBuilder_.mergeFrom(value); + } + if (workerFlexibleConfig_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for the cluster's
+     * worker instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration. `num_instances` represents the
+     * desired capacity of the worker group and is mutable via cluster updates and
+     * autoscaling.
+     *
+     * Only one of
+     * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or
+     * `worker_flexible_config` can be set.
+     *
+     * In High Obtainability (HO) mode, for multi-node (standard) clusters, both
+     * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config]
+     * and `worker_flexible_config` must be specified. Mixing standard and
+     * flexible configs across node groups is not allowed. Single-node clusters do
+     * not specify worker configs.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearWorkerFlexibleConfig() { + bitField0_ = (bitField0_ & ~0x00100000); + workerFlexibleConfig_ = null; + if (workerFlexibleConfigBuilder_ != null) { + workerFlexibleConfigBuilder_.dispose(); + workerFlexibleConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for the cluster's
+     * worker instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration. `num_instances` represents the
+     * desired capacity of the worker group and is mutable via cluster updates and
+     * autoscaling.
+     *
+     * Only one of
+     * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or
+     * `worker_flexible_config` can be set.
+     *
+     * In High Obtainability (HO) mode, for multi-node (standard) clusters, both
+     * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config]
+     * and `worker_flexible_config` must be specified. Mixing standard and
+     * flexible configs across node groups is not allowed. Single-node clusters do
+     * not specify worker configs.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder + getWorkerFlexibleConfigBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return internalGetWorkerFlexibleConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for the cluster's
+     * worker instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration. `num_instances` represents the
+     * desired capacity of the worker group and is mutable via cluster updates and
+     * autoscaling.
+     *
+     * Only one of
+     * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or
+     * `worker_flexible_config` can be set.
+     *
+     * In High Obtainability (HO) mode, for multi-node (standard) clusters, both
+     * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config]
+     * and `worker_flexible_config` must be specified. Mixing standard and
+     * flexible configs across node groups is not allowed. Single-node clusters do
+     * not specify worker configs.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder + getWorkerFlexibleConfigOrBuilder() { + if (workerFlexibleConfigBuilder_ != null) { + return workerFlexibleConfigBuilder_.getMessageOrBuilder(); + } else { + return workerFlexibleConfig_ == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance() + : workerFlexibleConfig_; + } + } + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for the cluster's
+     * worker instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration. `num_instances` represents the
+     * desired capacity of the worker group and is mutable via cluster updates and
+     * autoscaling.
+     *
+     * Only one of
+     * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or
+     * `worker_flexible_config` can be set.
+     *
+     * In High Obtainability (HO) mode, for multi-node (standard) clusters, both
+     * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config]
+     * and `worker_flexible_config` must be specified. Mixing standard and
+     * flexible configs across node groups is not allowed. Single-node clusters do
+     * not specify worker configs.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder> + internalGetWorkerFlexibleConfigFieldBuilder() { + if (workerFlexibleConfigBuilder_ == null) { + workerFlexibleConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder>( + getWorkerFlexibleConfig(), getParentForChildren(), isClean()); + workerFlexibleConfig_ = null; + } + return workerFlexibleConfigBuilder_; + } + + private com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondaryWorkerFlexibleConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder> + secondaryWorkerFlexibleConfigBuilder_; + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for a cluster's
+     * secondary worker instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration. `num_instances` represents the
+     * desired capacity of the secondary worker group and is mutable via cluster
+     * updates and autoscaling.
+     *
+     * Only one of
+     * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config]
+     * or `secondary_worker_flexible_config` can be set.
+     *
+     * In High Obtainability (HO) mode, secondary workers are optional. If
+     * secondary workers are used in an HO cluster, they must be configured using
+     * `secondary_worker_flexible_config` (not `secondary_worker_config`).
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the secondaryWorkerFlexibleConfig field is set. + */ + public boolean hasSecondaryWorkerFlexibleConfig() { + return ((bitField0_ & 0x00200000) != 0); + } + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for a cluster's
+     * secondary worker instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration. `num_instances` represents the
+     * desired capacity of the secondary worker group and is mutable via cluster
+     * updates and autoscaling.
+     *
+     * Only one of
+     * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config]
+     * or `secondary_worker_flexible_config` can be set.
+     *
+     * In High Obtainability (HO) mode, secondary workers are optional. If
+     * secondary workers are used in an HO cluster, they must be configured using
+     * `secondary_worker_flexible_config` (not `secondary_worker_config`).
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The secondaryWorkerFlexibleConfig. + */ + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig + getSecondaryWorkerFlexibleConfig() { + if (secondaryWorkerFlexibleConfigBuilder_ == null) { + return secondaryWorkerFlexibleConfig_ == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance() + : secondaryWorkerFlexibleConfig_; + } else { + return secondaryWorkerFlexibleConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for a cluster's
+     * secondary worker instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration. `num_instances` represents the
+     * desired capacity of the secondary worker group and is mutable via cluster
+     * updates and autoscaling.
+     *
+     * Only one of
+     * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config]
+     * or `secondary_worker_flexible_config` can be set.
+     *
+     * In High Obtainability (HO) mode, secondary workers are optional. If
+     * secondary workers are used in an HO cluster, they must be configured using
+     * `secondary_worker_flexible_config` (not `secondary_worker_config`).
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSecondaryWorkerFlexibleConfig( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig value) { + if (secondaryWorkerFlexibleConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + secondaryWorkerFlexibleConfig_ = value; + } else { + secondaryWorkerFlexibleConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for a cluster's
+     * secondary worker instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration. `num_instances` represents the
+     * desired capacity of the secondary worker group and is mutable via cluster
+     * updates and autoscaling.
+     *
+     * Only one of
+     * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config]
+     * or `secondary_worker_flexible_config` can be set.
+     *
+     * In High Obtainability (HO) mode, secondary workers are optional. If
+     * secondary workers are used in an HO cluster, they must be configured using
+     * `secondary_worker_flexible_config` (not `secondary_worker_config`).
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSecondaryWorkerFlexibleConfig( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder builderForValue) { + if (secondaryWorkerFlexibleConfigBuilder_ == null) { + secondaryWorkerFlexibleConfig_ = builderForValue.build(); + } else { + secondaryWorkerFlexibleConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for a cluster's
+     * secondary worker instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration. `num_instances` represents the
+     * desired capacity of the secondary worker group and is mutable via cluster
+     * updates and autoscaling.
+     *
+     * Only one of
+     * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config]
+     * or `secondary_worker_flexible_config` can be set.
+     *
+     * In High Obtainability (HO) mode, secondary workers are optional. If
+     * secondary workers are used in an HO cluster, they must be configured using
+     * `secondary_worker_flexible_config` (not `secondary_worker_config`).
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSecondaryWorkerFlexibleConfig( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig value) { + if (secondaryWorkerFlexibleConfigBuilder_ == null) { + if (((bitField0_ & 0x00200000) != 0) + && secondaryWorkerFlexibleConfig_ != null + && secondaryWorkerFlexibleConfig_ + != com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance()) { + getSecondaryWorkerFlexibleConfigBuilder().mergeFrom(value); + } else { + secondaryWorkerFlexibleConfig_ = value; + } + } else { + secondaryWorkerFlexibleConfigBuilder_.mergeFrom(value); + } + if (secondaryWorkerFlexibleConfig_ != null) { + bitField0_ |= 0x00200000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for a cluster's
+     * secondary worker instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration. `num_instances` represents the
+     * desired capacity of the secondary worker group and is mutable via cluster
+     * updates and autoscaling.
+     *
+     * Only one of
+     * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config]
+     * or `secondary_worker_flexible_config` can be set.
+     *
+     * In High Obtainability (HO) mode, secondary workers are optional. If
+     * secondary workers are used in an HO cluster, they must be configured using
+     * `secondary_worker_flexible_config` (not `secondary_worker_config`).
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSecondaryWorkerFlexibleConfig() { + bitField0_ = (bitField0_ & ~0x00200000); + secondaryWorkerFlexibleConfig_ = null; + if (secondaryWorkerFlexibleConfigBuilder_ != null) { + secondaryWorkerFlexibleConfigBuilder_.dispose(); + secondaryWorkerFlexibleConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for a cluster's
+     * secondary worker instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration. `num_instances` represents the
+     * desired capacity of the secondary worker group and is mutable via cluster
+     * updates and autoscaling.
+     *
+     * Only one of
+     * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config]
+     * or `secondary_worker_flexible_config` can be set.
+     *
+     * In High Obtainability (HO) mode, secondary workers are optional. If
+     * secondary workers are used in an HO cluster, they must be configured using
+     * `secondary_worker_flexible_config` (not `secondary_worker_config`).
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder + getSecondaryWorkerFlexibleConfigBuilder() { + bitField0_ |= 0x00200000; + onChanged(); + return internalGetSecondaryWorkerFlexibleConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for a cluster's
+     * secondary worker instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration. `num_instances` represents the
+     * desired capacity of the secondary worker group and is mutable via cluster
+     * updates and autoscaling.
+     *
+     * Only one of
+     * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config]
+     * or `secondary_worker_flexible_config` can be set.
+     *
+     * In High Obtainability (HO) mode, secondary workers are optional. If
+     * secondary workers are used in an HO cluster, they must be configured using
+     * `secondary_worker_flexible_config` (not `secondary_worker_config`).
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder + getSecondaryWorkerFlexibleConfigOrBuilder() { + if (secondaryWorkerFlexibleConfigBuilder_ != null) { + return secondaryWorkerFlexibleConfigBuilder_.getMessageOrBuilder(); + } else { + return secondaryWorkerFlexibleConfig_ == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance() + : secondaryWorkerFlexibleConfig_; + } + } + + /** + * + * + *
+     * Optional. The High Obtainability (HO) config settings for a cluster's
+     * secondary worker instances.
+     *
+     * In High Obtainability (HO) mode, flexible configs are the single source of
+     * truth for desired cluster configuration. `num_instances` represents the
+     * desired capacity of the secondary worker group and is mutable via cluster
+     * updates and autoscaling.
+     *
+     * Only one of
+     * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config]
+     * or `secondary_worker_flexible_config` can be set.
+     *
+     * In High Obtainability (HO) mode, secondary workers are optional. If
+     * secondary workers are used in an HO cluster, they must be configured using
+     * `secondary_worker_flexible_config` (not `secondary_worker_config`).
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder> + internalGetSecondaryWorkerFlexibleConfigFieldBuilder() { + if (secondaryWorkerFlexibleConfigBuilder_ == null) { + secondaryWorkerFlexibleConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder>( + getSecondaryWorkerFlexibleConfig(), getParentForChildren(), isClean()); + secondaryWorkerFlexibleConfig_ = null; + } + return secondaryWorkerFlexibleConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ClusterConfig) } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java index b7ecfb34b9f1..a00b884a7084 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java @@ -933,4 +933,268 @@ com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder getInitialization */ com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder getAuxiliaryNodeGroupsOrBuilder( int index); + + /** + * + * + *
+   * Optional. The High Obtainability (HO) config settings for the cluster's
+   * master instances.
+   *
+   * In High Obtainability (HO) mode, flexible configs are the single source of
+   * truth for desired cluster configuration across node groups:
+   * * For single-node clusters: `master_flexible_config` must be specified, and
+   * no worker configs should be set.
+   * * For multi-node (standard) clusters: both `master_flexible_config` and
+   * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config]
+   * must be specified. Mixing standard and flexible configs across node
+   * groups is not allowed.
+   *
+   * Only one of
+   * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or
+   * `master_flexible_config` can be set.
+   * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the masterFlexibleConfig field is set. + */ + boolean hasMasterFlexibleConfig(); + + /** + * + * + *
+   * Optional. The High Obtainability (HO) config settings for the cluster's
+   * master instances.
+   *
+   * In High Obtainability (HO) mode, flexible configs are the single source of
+   * truth for desired cluster configuration across node groups:
+   * * For single-node clusters: `master_flexible_config` must be specified, and
+   * no worker configs should be set.
+   * * For multi-node (standard) clusters: both `master_flexible_config` and
+   * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config]
+   * must be specified. Mixing standard and flexible configs across node
+   * groups is not allowed.
+   *
+   * Only one of
+   * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or
+   * `master_flexible_config` can be set.
+   * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The masterFlexibleConfig. + */ + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig getMasterFlexibleConfig(); + + /** + * + * + *
+   * Optional. The High Obtainability (HO) config settings for the cluster's
+   * master instances.
+   *
+   * In High Obtainability (HO) mode, flexible configs are the single source of
+   * truth for desired cluster configuration across node groups:
+   * * For single-node clusters: `master_flexible_config` must be specified, and
+   * no worker configs should be set.
+   * * For multi-node (standard) clusters: both `master_flexible_config` and
+   * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config]
+   * must be specified. Mixing standard and flexible configs across node
+   * groups is not allowed.
+   *
+   * Only one of
+   * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or
+   * `master_flexible_config` can be set.
+   * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder + getMasterFlexibleConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The High Obtainability (HO) config settings for the cluster's
+   * worker instances.
+   *
+   * In High Obtainability (HO) mode, flexible configs are the single source of
+   * truth for desired cluster configuration. `num_instances` represents the
+   * desired capacity of the worker group and is mutable via cluster updates and
+   * autoscaling.
+   *
+   * Only one of
+   * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or
+   * `worker_flexible_config` can be set.
+   *
+   * In High Obtainability (HO) mode, for multi-node (standard) clusters, both
+   * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config]
+   * and `worker_flexible_config` must be specified. Mixing standard and
+   * flexible configs across node groups is not allowed. Single-node clusters do
+   * not specify worker configs.
+   * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the workerFlexibleConfig field is set. + */ + boolean hasWorkerFlexibleConfig(); + + /** + * + * + *
+   * Optional. The High Obtainability (HO) config settings for the cluster's
+   * worker instances.
+   *
+   * In High Obtainability (HO) mode, flexible configs are the single source of
+   * truth for desired cluster configuration. `num_instances` represents the
+   * desired capacity of the worker group and is mutable via cluster updates and
+   * autoscaling.
+   *
+   * Only one of
+   * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or
+   * `worker_flexible_config` can be set.
+   *
+   * In High Obtainability (HO) mode, for multi-node (standard) clusters, both
+   * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config]
+   * and `worker_flexible_config` must be specified. Mixing standard and
+   * flexible configs across node groups is not allowed. Single-node clusters do
+   * not specify worker configs.
+   * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workerFlexibleConfig. + */ + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig getWorkerFlexibleConfig(); + + /** + * + * + *
+   * Optional. The High Obtainability (HO) config settings for the cluster's
+   * worker instances.
+   *
+   * In High Obtainability (HO) mode, flexible configs are the single source of
+   * truth for desired cluster configuration. `num_instances` represents the
+   * desired capacity of the worker group and is mutable via cluster updates and
+   * autoscaling.
+   *
+   * Only one of
+   * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or
+   * `worker_flexible_config` can be set.
+   *
+   * In High Obtainability (HO) mode, for multi-node (standard) clusters, both
+   * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config]
+   * and `worker_flexible_config` must be specified. Mixing standard and
+   * flexible configs across node groups is not allowed. Single-node clusters do
+   * not specify worker configs.
+   * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder + getWorkerFlexibleConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The High Obtainability (HO) config settings for a cluster's
+   * secondary worker instances.
+   *
+   * In High Obtainability (HO) mode, flexible configs are the single source of
+   * truth for desired cluster configuration. `num_instances` represents the
+   * desired capacity of the secondary worker group and is mutable via cluster
+   * updates and autoscaling.
+   *
+   * Only one of
+   * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config]
+   * or `secondary_worker_flexible_config` can be set.
+   *
+   * In High Obtainability (HO) mode, secondary workers are optional. If
+   * secondary workers are used in an HO cluster, they must be configured using
+   * `secondary_worker_flexible_config` (not `secondary_worker_config`).
+   * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the secondaryWorkerFlexibleConfig field is set. + */ + boolean hasSecondaryWorkerFlexibleConfig(); + + /** + * + * + *
+   * Optional. The High Obtainability (HO) config settings for a cluster's
+   * secondary worker instances.
+   *
+   * In High Obtainability (HO) mode, flexible configs are the single source of
+   * truth for desired cluster configuration. `num_instances` represents the
+   * desired capacity of the secondary worker group and is mutable via cluster
+   * updates and autoscaling.
+   *
+   * Only one of
+   * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config]
+   * or `secondary_worker_flexible_config` can be set.
+   *
+   * In High Obtainability (HO) mode, secondary workers are optional. If
+   * secondary workers are used in an HO cluster, they must be configured using
+   * `secondary_worker_flexible_config` (not `secondary_worker_config`).
+   * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The secondaryWorkerFlexibleConfig. + */ + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig getSecondaryWorkerFlexibleConfig(); + + /** + * + * + *
+   * Optional. The High Obtainability (HO) config settings for a cluster's
+   * secondary worker instances.
+   *
+   * In High Obtainability (HO) mode, flexible configs are the single source of
+   * truth for desired cluster configuration. `num_instances` represents the
+   * desired capacity of the secondary worker group and is mutable via cluster
+   * updates and autoscaling.
+   *
+   * Only one of
+   * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config]
+   * or `secondary_worker_flexible_config` can be set.
+   *
+   * In High Obtainability (HO) mode, secondary workers are optional. If
+   * secondary workers are used in an HO cluster, they must be configured using
+   * `secondary_worker_flexible_config` (not `secondary_worker_config`).
+   * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder + getSecondaryWorkerFlexibleConfigOrBuilder(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java index b6f704e04ae2..2289f1c802ca 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java @@ -88,6 +88,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataproc_v1_GceClusterConfig_ResourceManagerTagsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataproc_v1_GceClusterConfig_ResourceManagerTagsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_MultiZoneConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_MultiZoneConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -132,6 +136,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_InstanceSelectionResult_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_InstanceSelectionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_FlexibleInstanceGroupConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_FlexibleInstanceGroupConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -299,7 +307,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132(.google.cloud.dataproc.v1.ClusterMetricsB\003\340A\003\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\344\014\n\r" + + "\005value\030\002 \001(\t:\0028\001\"\202\017\n\r" + "ClusterConfig\022N\n" + "\014cluster_type\030\033 \001(\01623" + ".google.cloud.dataproc.v1.ClusterConfig.ClusterTypeB\003\340A\001\022N\n" @@ -336,7 +344,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026dataproc_metric_config\030\027" + " \001(\0132..google.cloud.dataproc.v1.DataprocMetricConfigB\003\340A\001\022P\n" + "\025auxiliary_node_groups\030\031" - + " \003(\0132,.google.cloud.dataproc.v1.AuxiliaryNodeGroupB\003\340A\001\"Z\n" + + " \003(\0132,.google.cloud.dataproc.v1.AuxiliaryNodeGroupB\003\340A\001\022Z\n" + + "\026master_flexible_config\030\037" + + " \001(\01325.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigB\003\340A\001\022Z\n" + + "\026worker_flexible_config\030 \001(\01325.google.c" + + "loud.dataproc.v1.FlexibleInstanceGroupConfigB\003\340A\001\022d\n" + + " secondary_worker_flexible_config\030!" + + " \001(\01325.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigB\003\340A\001\"Z\n" + "\013ClusterType\022\034\n" + "\030CLUSTER_TYPE_UNSPECIFIED\020\000\022\014\n" + "\010STANDARD\020\001\022\017\n" @@ -354,17 +368,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016staging_bucket\030\001 \001(\tB\003\340A\001\022[\n" + "\031kubernetes_cluster_config\030\006" + " \001(\01321.google.cloud.dataproc.v1.KubernetesClusterConfigB\003\340A\002H\000\022Y\n" - + "\031auxiliary_services_config\030\007" - + " \001(\01321.google.cloud.dataproc.v1.AuxiliaryServicesConfigB\003\340A\001B\027\n" + + "\031auxiliary_services_config\030\007 \001(\01321.google.cloud" + + ".dataproc.v1.AuxiliaryServicesConfigB\003\340A\001B\027\n" + "\025infrastructure_config\"\301\001\n" + "\027AuxiliaryServicesConfig\022H\n" - + "\020metastore_config\030\001 \001(\0132).goo" - + "gle.cloud.dataproc.v1.MetastoreConfigB\003\340A\001\022\\\n" - + "\033spark_history_server_config\030\002 \001(\0132" - + "2.google.cloud.dataproc.v1.SparkHistoryServerConfigB\003\340A\001\"\272\001\n" + + "\020metastore_config\030\001 \001(\013" + + "2).google.cloud.dataproc.v1.MetastoreConfigB\003\340A\001\022\\\n" + + "\033spark_history_server_config\030\002" + + " \001(\01322.google.cloud.dataproc.v1.SparkHistoryServerConfigB\003\340A\001\"\272\001\n" + "\016EndpointConfig\022P\n\n" - + "http_ports\030\001" - + " \003(\01327.google.cloud.dataproc.v1.EndpointConfig.HttpPortsEntryB\003\340A\003\022$\n" + + "http_ports\030\001 \003(\01327.google.cloud.dat" + + "aproc.v1.EndpointConfig.HttpPortsEntryB\003\340A\003\022$\n" + "\027enable_http_port_access\030\002 \001(\010B\003\340A\001\0320\n" + "\016HttpPortsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -374,29 +388,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020EncryptionConfig\022 \n" + "\023gce_pd_kms_key_name\030\001 \001(\tB\003\340A\001\022:\n" + "\007kms_key\030\002 \001(\tB)\340A\001\372A#\n" - + "!cloudkms.googleapis.com/CryptoKey\"\337\010\n" + + "!cloudkms.googleapis.com/CryptoKey\"\252\t\n" + "\020GceClusterConfig\022\025\n" - + "\010zone_uri\030\001 \001(\tB\003\340A\001\022\030\n" + + "\010zone_uri\030\001 \001(\tB\003\340A\001\022I\n" + + "\021multi_zone_config\030\023 \001" + + "(\0132).google.cloud.dataproc.v1.MultiZoneConfigB\003\340A\001\022\030\n" + "\013network_uri\030\002 \001(\tB\003\340A\001\022\033\n" + "\016subnetwork_uri\030\006 \001(\tB\003\340A\001\022\"\n" + "\020internal_ip_only\030\007 \001(\010B\003\340A\001H\000\210\001\001\022k\n" - + "\032private_ipv6_google_access\030\014 \001(\0162B.google.cloud.dataproc" - + ".v1.GceClusterConfig.PrivateIpv6GoogleAccessB\003\340A\001\022\034\n" + + "\032private_ipv6_google_access\030\014 \001(\0162B.google.cloud.datapro" + + "c.v1.GceClusterConfig.PrivateIpv6GoogleAccessB\003\340A\001\022\034\n" + "\017service_account\030\010 \001(\tB\003\340A\001\022#\n" + "\026service_account_scopes\030\003 \003(\tB\003\340A\001\022\014\n" + "\004tags\030\004 \003(\t\022O\n" - + "\010metadata\030\005 \003(\01328.google.cl" - + "oud.dataproc.v1.GceClusterConfig.MetadataEntryB\003\340A\001\022P\n" - + "\024reservation_affinity\030\013 \001(" - + "\0132-.google.cloud.dataproc.v1.ReservationAffinityB\003\340A\001\022M\n" + + "\010metadata\030\005 \003(\01328.google.c" + + "loud.dataproc.v1.GceClusterConfig.MetadataEntryB\003\340A\001\022P\n" + + "\024reservation_affinity\030\013 \001" + + "(\0132-.google.cloud.dataproc.v1.ReservationAffinityB\003\340A\001\022M\n" + "\023node_group_affinity\030\r" + " \001(\0132+.google.cloud.dataproc.v1.NodeGroupAffinityB\003\340A\001\022W\n" + "\030shielded_instance_config\030\016" + " \001(\01320.google.cloud.dataproc.v1.ShieldedInstanceConfigB\003\340A\001\022_\n" - + "\034confidential_instance_config\030\017 \001(\01324.google.cloud.datap" - + "roc.v1.ConfidentialInstanceConfigB\003\340A\001\022g\n" - + "\025resource_manager_tags\030\020 \003(\0132C.google.c" - + "loud.dataproc.v1.GceClusterConfig.ResourceManagerTagsEntryB\003\340A\001\032/\n\r" + + "\034confidential_instance_config\030\017 \001(\01324.google.cloud.data" + + "proc.v1.ConfidentialInstanceConfigB\003\340A\001\022g\n" + + "\025resource_manager_tags\030\020 \003(\0132C.google." + + "cloud.dataproc.v1.GceClusterConfig.ResourceManagerTagsEntryB\003\340A\001\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032:\n" @@ -408,7 +424,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027INHERIT_FROM_SUBNETWORK\020\001\022\014\n" + "\010OUTBOUND\020\002\022\021\n\r" + "BIDIRECTIONAL\020\003B\023\n" - + "\021_internal_ip_only\"0\n" + + "\021_internal_ip_only\"\231\001\n" + + "\017MultiZoneConfig\022P\n" + + "\014target_shape\030\001" + + " \001(\01625.google.cloud.dataproc.v1.MultiZoneConfig.TargetShapeB\003\340A\001\"4\n" + + "\013TargetShape\022\034\n" + + "\030TARGET_SHAPE_UNSPECIFIED\020\000\022\007\n" + + "\003ANY\020\001\"0\n" + "\021NodeGroupAffinity\022\033\n" + "\016node_group_uri\030\001 \001(\tB\003\340A\002\"\323\001\n" + "\026ShieldedInstanceConfig\022$\n" @@ -421,8 +443,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034_enable_integrity_monitoring\"\247\002\n" + "\032ConfidentialInstanceConfig\022*\n" + "\033enable_confidential_compute\030\001 \001(\010B\005\030\001\340A\001\022v\n" - + "\032confidential_instance_type\030\002 \001(\0162M.google.cloud.da" - + "taproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceTypeB\003\340A\001\"e\n" + + "\032confidential_instance_type\030\002 \001(\0162M.google.cloud.datap" + + "roc.v1.ConfidentialInstanceConfig.ConfidentialInstanceTypeB\003\340A\001\"e\n" + "\030ConfidentialInstanceType\022*\n" + "&CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED\020\000\022\007\n" + "\003SEV\020\001\022\013\n" @@ -431,20 +453,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023InstanceGroupConfig\022\032\n\r" + "num_instances\030\001 \001(\005B\003\340A\001\022\033\n" + "\016instance_names\030\002 \003(\tB\003\340A\003\022M\n" - + "\023instance_references\030\013 \003(\0132" - + "+.google.cloud.dataproc.v1.InstanceReferenceB\003\340A\003\022\026\n" + + "\023instance_references\030\013 \003(\0132+.g" + + "oogle.cloud.dataproc.v1.InstanceReferenceB\003\340A\003\022\026\n" + "\timage_uri\030\003 \001(\tB\003\340A\001\022\035\n" + "\020machine_type_uri\030\004 \001(\tB\003\340A\001\022>\n" - + "\013disk_config\030\005" - + " \001(\0132$.google.cloud.dataproc.v1.DiskConfigB\003\340A\001\022\033\n" + + "\013disk_config\030\005 \001" + + "(\0132$.google.cloud.dataproc.v1.DiskConfigB\003\340A\001\022\033\n" + "\016is_preemptible\030\006 \001(\010B\003\340A\003\022Y\n" + "\016preemptibility\030\n" - + " \001(\0162<.google.cloud.dat" - + "aproc.v1.InstanceGroupConfig.PreemptibilityB\003\340A\001\022O\n" - + "\024managed_group_config\030\007 \001(\0132," - + ".google.cloud.dataproc.v1.ManagedGroupConfigB\003\340A\003\022F\n" - + "\014accelerators\030\010 \003(\0132+.google" - + ".cloud.dataproc.v1.AcceleratorConfigB\003\340A\001\022\035\n" + + " \001(\0162<.google.cloud.datapr" + + "oc.v1.InstanceGroupConfig.PreemptibilityB\003\340A\001\022O\n" + + "\024managed_group_config\030\007 \001(\0132,.go" + + "ogle.cloud.dataproc.v1.ManagedGroupConfigB\003\340A\003\022F\n" + + "\014accelerators\030\010 \003(\0132+.google.cl" + + "oud.dataproc.v1.AcceleratorConfigB\003\340A\001\022\035\n" + "\020min_cpu_platform\030\t \001(\tB\003\340A\001\022\036\n" + "\021min_num_instances\030\014 \001(\005B\003\340A\001\022]\n" + "\033instance_flexibility_policy\030\r" @@ -470,12 +492,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033instance_group_manager_name\030\002 \001(\tB\003\340A\003\022\'\n" + "\032instance_group_manager_uri\030\003 \001(\tB\003\340A\003\"\246\006\n" + "\031InstanceFlexibilityPolicy\022m\n" - + "\026provisioning_model_mix\030\001 \001(\0132H.google.cloud" - + ".dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMixB\003\340A\001\022k\n" - + "\027instance_selection_list\030\002 \003(\0132E.google.cloud.datapro" - + "c.v1.InstanceFlexibilityPolicy.InstanceSelectionB\003\340A\001\022t\n" - + "\032instance_selection_results\030\003 \003(\0132K.google.cloud.dataproc.v1.Ins" - + "tanceFlexibilityPolicy.InstanceSelectionResultB\003\340A\003\032\274\001\n" + + "\026provisioning_model_mix\030\001 \001(\0132H.google.cloud.da" + + "taproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMixB\003\340A\001\022k\n" + + "\027instance_selection_list\030\002 \003(\0132E.google.cloud.dataproc.v" + + "1.InstanceFlexibilityPolicy.InstanceSelectionB\003\340A\001\022t\n" + + "\032instance_selection_results\030\003 \003(\0132K.google.cloud.dataproc.v1.Instan" + + "ceFlexibilityPolicy.InstanceSelectionResultB\003\340A\003\032\274\001\n" + "\024ProvisioningModelMix\022(\n" + "\026standard_capacity_base\030\001 \001(\005B\003\340A\001H\000\210\001\001\0226\n" + "$standard_capacity_percent_above_base\030\002" @@ -491,7 +513,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014machine_type\030\001 \001(\tB\003\340A\003H\000\210\001\001\022\032\n" + "\010vm_count\030\002 \001(\005B\003\340A\003H\001\210\001\001B\017\n\r" + "_machine_typeB\013\n" - + "\t_vm_count\"L\n" + + "\t_vm_count\"\244\002\n" + + "\033FlexibleInstanceGroupConfig\022\032\n\r" + + "num_instances\030\001 \001(\005B\003\340A\001\022\027\n\n" + + "core_count\030\002 \001(\005B\003\340A\001\022\036\n" + + "\021boot_disk_size_gb\030\003 \001(\005B\003\340A\001\022`\n" + + "\016hardware_class\030\004 \001(\0162C.google." + + "cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClassB\003\340A\001\"N\n\r" + + "HardwareClass\022\036\n" + + "\032HARDWARE_CLASS_UNSPECIFIED\020\000\022\014\n" + + "\010STANDARD\020\001\022\017\n" + + "\013PERFORMANCE\020\002\"L\n" + "\021AcceleratorConfig\022\034\n" + "\024accelerator_type_uri\030\001 \001(\t\022\031\n" + "\021accelerator_count\030\002 \001(\005\"\200\003\n\n" @@ -503,13 +535,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032boot_disk_provisioned_iops\030\005 \001(\003B\003\340A\001H\000\210\001\001\0222\n" + " boot_disk_provisioned_throughput\030\006" + " \001(\003B\003\340A\001H\001\210\001\001\022P\n" - + "\025attached_disk_configs\030\007 \003(\0132," - + ".google.cloud.dataproc.v1.AttachedDiskConfigB\003\340A\001B\035\n" + + "\025attached_disk_configs\030\007" + + " \003(\0132,.google.cloud.dataproc.v1.AttachedDiskConfigB\003\340A\001B\035\n" + "\033_boot_disk_provisioned_iopsB#\n" + "!_boot_disk_provisioned_throughput\"\377\002\n" + "\022AttachedDiskConfig\022M\n" - + "\tdisk_type\030\001 \001(\0162" - + "5.google.cloud.dataproc.v1.AttachedDiskConfig.DiskTypeB\003\340A\001\022\031\n" + + "\tdisk_type\030\001" + + " \001(\01625.google.cloud.dataproc.v1.AttachedDiskConfig.DiskTypeB\003\340A\001\022\031\n" + "\014disk_size_gb\030\002 \001(\005B\003\340A\001\022\"\n" + "\020provisioned_iops\030\003 \001(\003B\003\340A\001H\000\210\001\001\022(\n" + "\026provisioned_throughput\030\004" @@ -523,8 +555,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021_provisioned_iopsB\031\n" + "\027_provisioned_throughput\"n\n" + "\022AuxiliaryNodeGroup\022<\n\n" - + "node_group\030\001" - + " \001(\0132#.google.cloud.dataproc.v1.NodeGroupB\003\340A\002\022\032\n\r" + + "node_group\030\001 \001(\0132#." + + "google.cloud.dataproc.v1.NodeGroupB\003\340A\002\022\032\n\r" + "node_group_id\030\002 \001(\tB\003\340A\001\"\275\003\n" + "\tNodeGroup\022\014\n" + "\004name\030\001 \001(\t\022<\n" @@ -532,16 +564,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0162(.google.cloud.dataproc.v1.NodeGroup.RoleB\003\340A\002\022M\n" + "\021node_group_config\030\003" + " \001(\0132-.google.cloud.dataproc.v1.InstanceGroupConfigB\003\340A\001\022D\n" - + "\006labels\030\004 \003(\013" - + "2/.google.cloud.dataproc.v1.NodeGroup.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\004" + + " \003(\0132/.google.cloud.dataproc.v1.NodeGroup.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"(\n" + "\004Role\022\024\n" + "\020ROLE_UNSPECIFIED\020\000\022\n\n" + "\006DRIVER\020\001:v\352As\n" - + "!dataproc.googleapis.com/NodeGroup\022Nprojects/{proje" - + "ct}/regions/{region}/clusters/{cluster}/nodeGroups/{node_group}\"s\n" + + "!dataproc.googleapis.com/NodeGroup\022Npro" + + "jects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{node_group}\"s\n" + "\030NodeInitializationAction\022\034\n" + "\017executable_file\030\001 \001(\tB\003\340A\002\0229\n" + "\021execution_timeout\030\002" @@ -595,17 +627,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022tgt_lifetime_hours\030\016 \001(\005B\003\340A\001\022\022\n" + "\005realm\030\017 \001(\tB\003\340A\001\"\306\001\n" + "\016IdentityConfig\022r\n" - + "\034user_service_account_mapping\030\001 \003(\0132G.google.cloud.dataproc.v1.Identity" - + "Config.UserServiceAccountMappingEntryB\003\340A\002\032@\n" + + "\034user_service_account_mapping\030\001 \003(\0132G.google.cloud.dataproc" + + ".v1.IdentityConfig.UserServiceAccountMappingEntryB\003\340A\002\032@\n" + "\036UserServiceAccountMappingEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\371\001\n" + "\016SoftwareConfig\022\032\n\r" + "image_version\030\001 \001(\tB\003\340A\001\022Q\n\n" - + "properties\030\002 \003(\01328.google.cloud.dataproc." - + "v1.SoftwareConfig.PropertiesEntryB\003\340A\001\022E\n" - + "\023optional_components\030\003" - + " \003(\0162#.google.cloud.dataproc.v1.ComponentB\003\340A\001\0321\n" + + "properties\030\002 \003(\01328.google.clo" + + "ud.dataproc.v1.SoftwareConfig.PropertiesEntryB\003\340A\001\022E\n" + + "\023optional_components\030\003 \003(\0162" + + "#.google.cloud.dataproc.v1.ComponentB\003\340A\001\0321\n" + "\017PropertiesEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\272\003\n" @@ -615,8 +647,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020auto_delete_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\000\0229\n" + "\017auto_delete_ttl\030\003" - + " \001(\0132\031.google.protobuf.DurationB\003\340A\001H\000\0225\n" - + "\r" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001H\000\0225\n\r" + "idle_stop_ttl\030\005 \001(\0132\031.google.protobuf.DurationB\003\340A\001\0229\n" + "\016auto_stop_time\030\006" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\001\0227\n\r" @@ -630,10 +661,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032dataproc_metastore_service\030\001 \001(\tB(\340A\002\372A\"\n" + " metastore.googleapis.com/Service\"\232\002\n" + "\016ClusterMetrics\022O\n" - + "\014hdfs_metrics\030\001 \003(\01329.google.cloud.d" - + "ataproc.v1.ClusterMetrics.HdfsMetricsEntry\022O\n" - + "\014yarn_metrics\030\002 \003(\01329.google.cloud." - + "dataproc.v1.ClusterMetrics.YarnMetricsEntry\0322\n" + + "\014hdfs_metrics\030\001 \003(\01329.go" + + "ogle.cloud.dataproc.v1.ClusterMetrics.HdfsMetricsEntry\022O\n" + + "\014yarn_metrics\030\002 \003(\01329.g" + + "oogle.cloud.dataproc.v1.ClusterMetrics.YarnMetricsEntry\0322\n" + "\020HdfsMetricsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\003:\0028\001\0322\n" @@ -641,11 +672,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\003:\0028\001\"\235\003\n" + "\024DataprocMetricConfig\022K\n" - + "\007metrics\030\001 \003(\01325.google.c" - + "loud.dataproc.v1.DataprocMetricConfig.MetricB\003\340A\002\032\200\001\n" + + "\007metrics\030\001 \003(" + + "\01325.google.cloud.dataproc.v1.DataprocMetricConfig.MetricB\003\340A\002\032\200\001\n" + "\006Metric\022W\n\r" - + "metric_source\030\001 " - + "\001(\0162;.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSourceB\003\340A\002\022\035\n" + + "metric_source\030\001 \001(\0162;.google.cloud.dataproc." + + "v1.DataprocMetricConfig.MetricSourceB\003\340A\002\022\035\n" + "\020metric_overrides\030\002 \003(\tB\003\340A\001\"\264\001\n" + "\014MetricSource\022\035\n" + "\031METRIC_SOURCE_UNSPECIFIED\020\000\022\035\n" @@ -663,8 +694,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007cluster\030\002" + " \001(\0132!.google.cloud.dataproc.v1.ClusterB\003\340A\002\022\027\n\n" + "request_id\030\004 \001(\tB\003\340A\001\022V\n" - + " action_on_failed_primary_workers\030\005 \001(\0162\'" - + ".google.cloud.dataproc.v1.FailureActionB\003\340A\001\"\256\002\n" + + " action_on_failed_primary_workers\030\005" + + " \001(\0162\'.google.cloud.dataproc.v1.FailureActionB\003\340A\001\"\256\002\n" + "\024UpdateClusterRequest\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\023\n" + "\006region\030\005 \001(\tB\003\340A\002\022\031\n" @@ -712,8 +743,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\003 \001(\tB\003\340A\002\022\031\n" + "\014cluster_name\030\002 \001(\tB\003\340A\002\022\034\n" + "\017tarball_gcs_dir\030\004 \001(\tB\003\340A\001\022[\n" - + "\016tarball_access\030\005 \001(\0162>.google.cloud.dataproc" - + ".v1.DiagnoseClusterRequest.TarballAccessB\003\340A\001\0226\n" + + "\016tarball_access\030\005 \001(\0162>.google.cl" + + "oud.dataproc.v1.DiagnoseClusterRequest.TarballAccessB\003\340A\001\0226\n" + "\022diagnosis_interval\030\006" + " \001(\0132\025.google.type.IntervalB\003\340A\001\022\021\n" + "\004jobs\030\n" @@ -726,8 +757,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026DiagnoseClusterResults\022\027\n\n" + "output_uri\030\001 \001(\tB\003\340A\003\"\370\001\n" + "\023ReservationAffinity\022Y\n" - + "\030consume_reservation_type\030\001" - + " \001(\01622.google.cloud.dataproc.v1.ReservationAffinity.TypeB\003\340A\001\022\020\n" + + "\030consume_reservation_type\030\001 \001(\01622.google.cloud.dat" + + "aproc.v1.ReservationAffinity.TypeB\003\340A\001\022\020\n" + "\003key\030\002 \001(\tB\003\340A\001\022\023\n" + "\006values\030\003 \003(\tB\003\340A\001\"_\n" + "\004Type\022\024\n" @@ -735,53 +766,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016NO_RESERVATION\020\001\022\023\n" + "\017ANY_RESERVATION\020\002\022\030\n" + "\024SPECIFIC_RESERVATION\020\0032\344\020\n" - + "\021ClusterController\022\200\002\n\r" - + "CreateCluster\022..google.cloud.dataproc.v1.CreateClus" - + "terRequest\032\035.google.longrunning.Operation\"\237\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperationMetadata\332A\031project_id" - + ",region,cluster\202\323\344\223\002>\"3/v1/projects/{pro" - + "ject_id}/regions/{region}/clusters:\007cluster\022\250\002\n\r" - + "UpdateCluster\022..google.cloud.dat" - + "aproc.v1.UpdateClusterRequest\032\035.google.longrunning.Operation\"\307\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperationMe" - + "tadata\332A2project_id,region,cluster_name," - + "cluster,update_mask\202\323\344\223\002M2B/v1/projects/" - + "{project_id}/regions/{region}/clusters/{cluster_name}:\007cluster\022\356\001\n" - + "\013StopCluster\022,.google.cloud.dataproc.v1.StopClusterReq" - + "uest\032\035.google.longrunning.Operation\"\221\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.Clu" - + "sterOperationMetadata\202\323\344\223\002L\"G/v1/project" - + "s/{project_id}/regions/{region}/clusters/{cluster_name}:stop:\001*\022\361\001\n" - + "\014StartCluster\022-.google.cloud.dataproc.v1.StartCluster" - + "Request\032\035.google.longrunning.Operation\"\222\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1." - + "ClusterOperationMetadata\202\323\344\223\002M\"H/v1/proj" - + "ects/{project_id}/regions/{region}/clusters/{cluster_name}:start:\001*\022\231\002\n\r" - + "DeleteCluster\022..google.cloud.dataproc.v1.DeleteC" - + "lusterRequest\032\035.google.longrunning.Operation\"\270\001\312AJ\n" - + "\025google.protobuf.Empty\0221google.cloud.dataproc.v1.ClusterOperationMeta" - + "data\332A\036project_id,region,cluster_name\202\323\344" - + "\223\002D*B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}\022\311\001\n\n" - + "GetCluster\022+.google.cloud.dataproc.v1.GetClu" - + "sterRequest\032!.google.cloud.dataproc.v1.C" - + "luster\"k\332A\036project_id,region,cluster_nam" - + "e\202\323\344\223\002D\022B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}\022\331\001\n" - + "\014ListClusters\022-.google.cloud.dataproc.v1." - + "ListClustersRequest\032..google.cloud.datap" - + "roc.v1.ListClustersResponse\"j\332A\021project_" - + "id,region\332A\030project_id,region,filter\202\323\344\223" - + "\0025\0223/v1/projects/{project_id}/regions/{region}/clusters\022\252\002\n" - + "\017DiagnoseCluster\0220.google.cloud.dataproc.v1.DiagnoseClusterRe" - + "quest\032\035.google.longrunning.Operation\"\305\001\312AK\n" - + "\026DiagnoseClusterResults\0221google.cloud" - + ".dataproc.v1.ClusterOperationMetadata\332A\036" - + "project_id,region,cluster_name\202\323\344\223\002P\"K/v" - + "1/projects/{project_id}/regions/{region}" - + "/clusters/{cluster_name}:diagnose:\001*\032K\312A" - + "\027dataproc.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformBl\n" - + "\034com.google.cloud.dataproc.v1B\r" - + "ClustersProtoP\001Z;cloud.google.com/go/dataproc/v2/apiv" - + "1/dataprocpb;dataprocpbb\006proto3" + + "\021ClusterController\022\200\002\n" + + "\r" + + "CreateCluster\022..google.cloud.dataproc.v" + + "1.CreateClusterRequest\032\035.google.longrunning.Operation\"\237\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperationMetadata\332" + + "A\031project_id,region,cluster\202\323\344\223\002>\"3/v1/p" + + "rojects/{project_id}/regions/{region}/clusters:\007cluster\022\250\002\n\r" + + "UpdateCluster\022..goog" + + "le.cloud.dataproc.v1.UpdateClusterRequest\032\035.google.longrunning.Operation\"\307\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.Cluste" + + "rOperationMetadata\332A2project_id,region,c" + + "luster_name,cluster,update_mask\202\323\344\223\002M2B/" + + "v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:\007cluster\022\356\001\n" + + "\013StopCluster\022,.google.cloud.dataproc.v1.St" + + "opClusterRequest\032\035.google.longrunning.Operation\"\221\001\312A<\n" + + "\007Cluster\0221google.cloud.dat" + + "aproc.v1.ClusterOperationMetadata\202\323\344\223\002L\"" + + "G/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:stop:\001*\022\361\001\n" + + "\014StartCluster\022-.google.cloud.dataproc.v1." + + "StartClusterRequest\032\035.google.longrunning.Operation\"\222\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperationMetadata\202\323\344\223" + + "\002M\"H/v1/projects/{project_id}/regions/{r" + + "egion}/clusters/{cluster_name}:start:\001*\022\231\002\n\r" + + "DeleteCluster\022..google.cloud.datapro" + + "c.v1.DeleteClusterRequest\032\035.google.longrunning.Operation\"\270\001\312AJ\n" + + "\025google.protobuf.Empty\0221google.cloud.dataproc.v1.ClusterO" + + "perationMetadata\332A\036project_id,region,clu" + + "ster_name\202\323\344\223\002D*B/v1/projects/{project_i" + + "d}/regions/{region}/clusters/{cluster_name}\022\311\001\n\n" + + "GetCluster\022+.google.cloud.dataproc.v1.GetClusterRequest\032!.google.cloud.d" + + "ataproc.v1.Cluster\"k\332A\036project_id,region" + + ",cluster_name\202\323\344\223\002D\022B/v1/projects/{proje", + "ct_id}/regions/{region}/clusters/{cluste" + + "r_name}\022\331\001\n\014ListClusters\022-.google.cloud." + + "dataproc.v1.ListClustersRequest\032..google" + + ".cloud.dataproc.v1.ListClustersResponse\"" + + "j\332A\021project_id,region\332A\030project_id,regio" + + "n,filter\202\323\344\223\0025\0223/v1/projects/{project_id" + + "}/regions/{region}/clusters\022\252\002\n\017Diagnose" + + "Cluster\0220.google.cloud.dataproc.v1.Diagn" + + "oseClusterRequest\032\035.google.longrunning.O" + + "peration\"\305\001\312AK\n\026DiagnoseClusterResults\0221" + + "google.cloud.dataproc.v1.ClusterOperatio" + + "nMetadata\332A\036project_id,region,cluster_na" + + "me\202\323\344\223\002P\"K/v1/projects/{project_id}/regi" + + "ons/{region}/clusters/{cluster_name}:dia" + + "gnose:\001*\032K\312A\027dataproc.googleapis.com\322A.h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tformBl\n\034com.google.cloud.dataproc.v1B\rC" + + "lustersProtoP\001Z;cloud.google.com/go/data" + + "proc/v2/apiv1/dataprocpb;dataprocpbb\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -849,6 +885,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MetastoreConfig", "DataprocMetricConfig", "AuxiliaryNodeGroups", + "MasterFlexibleConfig", + "WorkerFlexibleConfig", + "SecondaryWorkerFlexibleConfig", }); internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor = getDescriptor().getMessageType(2); @@ -908,6 +947,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor, new java.lang.String[] { "ZoneUri", + "MultiZoneConfig", "NetworkUri", "SubnetworkUri", "InternalIpOnly", @@ -938,8 +978,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor = + internal_static_google_cloud_dataproc_v1_MultiZoneConfig_descriptor = getDescriptor().getMessageType(8); + internal_static_google_cloud_dataproc_v1_MultiZoneConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_MultiZoneConfig_descriptor, + new java.lang.String[] { + "TargetShape", + }); + internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor = + getDescriptor().getMessageType(9); internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor, @@ -947,7 +995,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeGroupUri", }); internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(10); internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor, @@ -955,7 +1003,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", }); internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(11); internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor, @@ -963,7 +1011,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableConfidentialCompute", "ConfidentialInstanceType", }); internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(12); internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor, @@ -984,7 +1032,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StartupConfig", }); internal_static_google_cloud_dataproc_v1_StartupConfig_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(13); internal_static_google_cloud_dataproc_v1_StartupConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_StartupConfig_descriptor, @@ -992,7 +1040,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequiredRegistrationFraction", }); internal_static_google_cloud_dataproc_v1_InstanceReference_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(14); internal_static_google_cloud_dataproc_v1_InstanceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_InstanceReference_descriptor, @@ -1000,7 +1048,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceName", "InstanceId", "PublicKey", "PublicEciesKey", }); internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(15); internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor, @@ -1008,7 +1056,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceTemplateName", "InstanceGroupManagerName", "InstanceGroupManagerUri", }); internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(16); internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_descriptor, @@ -1042,8 +1090,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "MachineType", "VmCount", }); + internal_static_google_cloud_dataproc_v1_FlexibleInstanceGroupConfig_descriptor = + getDescriptor().getMessageType(17); + internal_static_google_cloud_dataproc_v1_FlexibleInstanceGroupConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_FlexibleInstanceGroupConfig_descriptor, + new java.lang.String[] { + "NumInstances", "CoreCount", "BootDiskSizeGb", "HardwareClass", + }); internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(18); internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor, @@ -1051,7 +1107,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AcceleratorTypeUri", "AcceleratorCount", }); internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(19); internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor, @@ -1065,7 +1121,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AttachedDiskConfigs", }); internal_static_google_cloud_dataproc_v1_AttachedDiskConfig_descriptor = - getDescriptor().getMessageType(18); + getDescriptor().getMessageType(20); internal_static_google_cloud_dataproc_v1_AttachedDiskConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_AttachedDiskConfig_descriptor, @@ -1073,7 +1129,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DiskType", "DiskSizeGb", "ProvisionedIops", "ProvisionedThroughput", }); internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(21); internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor, @@ -1081,7 +1137,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeGroup", "NodeGroupId", }); internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor = - getDescriptor().getMessageType(20); + getDescriptor().getMessageType(22); internal_static_google_cloud_dataproc_v1_NodeGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor, @@ -1097,7 +1153,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor = - getDescriptor().getMessageType(21); + getDescriptor().getMessageType(23); internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor, @@ -1105,7 +1161,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExecutableFile", "ExecutionTimeout", }); internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor = - getDescriptor().getMessageType(22); + getDescriptor().getMessageType(24); internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor, @@ -1113,7 +1169,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", "Detail", "StateStartTime", "Substate", }); internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor = - getDescriptor().getMessageType(23); + getDescriptor().getMessageType(25); internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor, @@ -1121,7 +1177,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "KerberosConfig", "IdentityConfig", }); internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor = - getDescriptor().getMessageType(24); + getDescriptor().getMessageType(26); internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor, @@ -1143,7 +1199,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Realm", }); internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor = - getDescriptor().getMessageType(25); + getDescriptor().getMessageType(27); internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor, @@ -1159,7 +1215,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor = - getDescriptor().getMessageType(26); + getDescriptor().getMessageType(28); internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor, @@ -1175,7 +1231,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor = - getDescriptor().getMessageType(27); + getDescriptor().getMessageType(29); internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor, @@ -1191,7 +1247,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StopTtl", }); internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor = - getDescriptor().getMessageType(28); + getDescriptor().getMessageType(30); internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor, @@ -1199,7 +1255,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataprocMetastoreService", }); internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor = - getDescriptor().getMessageType(29); + getDescriptor().getMessageType(31); internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor, @@ -1223,7 +1279,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor = - getDescriptor().getMessageType(30); + getDescriptor().getMessageType(32); internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor, @@ -1239,7 +1295,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MetricSource", "MetricOverrides", }); internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor = - getDescriptor().getMessageType(31); + getDescriptor().getMessageType(33); internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor, @@ -1247,7 +1303,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "Cluster", "RequestId", "ActionOnFailedPrimaryWorkers", }); internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor = - getDescriptor().getMessageType(32); + getDescriptor().getMessageType(34); internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor, @@ -1261,7 +1317,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", }); internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor = - getDescriptor().getMessageType(33); + getDescriptor().getMessageType(35); internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor, @@ -1269,7 +1325,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor = - getDescriptor().getMessageType(34); + getDescriptor().getMessageType(36); internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor, @@ -1277,7 +1333,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor = - getDescriptor().getMessageType(35); + getDescriptor().getMessageType(37); internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor, @@ -1285,7 +1341,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor = - getDescriptor().getMessageType(36); + getDescriptor().getMessageType(38); internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor, @@ -1293,7 +1349,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", }); internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor = - getDescriptor().getMessageType(37); + getDescriptor().getMessageType(39); internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor, @@ -1301,7 +1357,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "Filter", "PageSize", "PageToken", }); internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor = - getDescriptor().getMessageType(38); + getDescriptor().getMessageType(40); internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor, @@ -1309,7 +1365,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Clusters", "NextPageToken", }); internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor = - getDescriptor().getMessageType(39); + getDescriptor().getMessageType(41); internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor, @@ -1324,7 +1380,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "YarnApplicationIds", }); internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor = - getDescriptor().getMessageType(40); + getDescriptor().getMessageType(42); internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor, @@ -1332,7 +1388,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OutputUri", }); internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor = - getDescriptor().getMessageType(41); + getDescriptor().getMessageType(43); internal_static_google_cloud_dataproc_v1_ReservationAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor, diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java index 1fbc91c1876b..00b8ccbb8e99 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java @@ -293,7 +293,7 @@ private ConfidentialInstanceType(int value) { * * * @deprecated google.cloud.dataproc.v1.ConfidentialInstanceConfig.enable_confidential_compute is - * deprecated. See google/cloud/dataproc/v1/clusters.proto;l=678 + * deprecated. See google/cloud/dataproc/v1/clusters.proto;l=756 * @return The enableConfidentialCompute. */ @java.lang.Override @@ -701,7 +701,7 @@ public Builder mergeFrom( * * * @deprecated google.cloud.dataproc.v1.ConfidentialInstanceConfig.enable_confidential_compute - * is deprecated. See google/cloud/dataproc/v1/clusters.proto;l=678 + * is deprecated. See google/cloud/dataproc/v1/clusters.proto;l=756 * @return The enableConfidentialCompute. */ @java.lang.Override @@ -723,7 +723,7 @@ public boolean getEnableConfidentialCompute() { * * * @deprecated google.cloud.dataproc.v1.ConfidentialInstanceConfig.enable_confidential_compute - * is deprecated. See google/cloud/dataproc/v1/clusters.proto;l=678 + * is deprecated. See google/cloud/dataproc/v1/clusters.proto;l=756 * @param value The enableConfidentialCompute to set. * @return This builder for chaining. */ @@ -749,7 +749,7 @@ public Builder setEnableConfidentialCompute(boolean value) { * * * @deprecated google.cloud.dataproc.v1.ConfidentialInstanceConfig.enable_confidential_compute - * is deprecated. See google/cloud/dataproc/v1/clusters.proto;l=678 + * is deprecated. See google/cloud/dataproc/v1/clusters.proto;l=756 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java index edfdf1541329..5a781ba8da52 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java @@ -39,7 +39,7 @@ public interface ConfidentialInstanceConfigOrBuilder * * * @deprecated google.cloud.dataproc.v1.ConfidentialInstanceConfig.enable_confidential_compute is - * deprecated. See google/cloud/dataproc/v1/clusters.proto;l=678 + * deprecated. See google/cloud/dataproc/v1/clusters.proto;l=756 * @return The enableConfidentialCompute. */ @java.lang.Deprecated diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FlexibleInstanceGroupConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FlexibleInstanceGroupConfig.java new file mode 100644 index 000000000000..cb3935e7e1e5 --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FlexibleInstanceGroupConfig.java @@ -0,0 +1,1138 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataproc/v1/clusters.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * The configuration for High Obtainability (HO) flexible instance groups.
+ * Flexible instance group configs serve as the single source of truth for
+ * desired state.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.FlexibleInstanceGroupConfig} + */ +@com.google.protobuf.Generated +public final class FlexibleInstanceGroupConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.FlexibleInstanceGroupConfig) + FlexibleInstanceGroupConfigOrBuilder { + 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= */ "", + "FlexibleInstanceGroupConfig"); + } + + // Use FlexibleInstanceGroupConfig.newBuilder() to construct. + private FlexibleInstanceGroupConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FlexibleInstanceGroupConfig() { + hardwareClass_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_FlexibleInstanceGroupConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_FlexibleInstanceGroupConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.class, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder.class); + } + + /** + * + * + *
+   * Controls the hardware class for the flexible instance group.
+   * 
+ * + * Protobuf enum {@code google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass} + */ + public enum HardwareClass implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified hardware class.
+     * 
+ * + * HARDWARE_CLASS_UNSPECIFIED = 0; + */ + HARDWARE_CLASS_UNSPECIFIED(0), + /** + * + * + *
+     * Standard hardware class.
+     * Provides a balanced compute configuration with approximately 4GB of
+     * memory per vCPU and standard disk storage tiers.
+     *
+     * Candidate machine types include `n4-standard`, `n4d-standard`,
+     * `n2-standard`, and `n2d-standard` (Rank 0), and `c4-standard` and
+     * `c4d-standard` (Rank 1) (for requested core counts 2, 4, 8, 16, 32).
+     *
+     * Warning: The specific machine families and types selected for this
+     * hardware class are subject to change. Users should not take a
+     * dependency on the underlying machine type selection.
+     * 
+ * + * STANDARD = 1; + */ + STANDARD(1), + /** + * + * + *
+     * Performance hardware class.
+     * Provides a high-performance configuration with approximately 8GB of
+     * memory per vCPU (e.g. high-memory machine types) and higher-tier disk
+     * configurations (e.g. higher IOPS and throughput).
+     *
+     * Candidate machine types include `n4-highmem`, `n4d-highmem`,
+     * `n2-highmem`, and `n2d-highmem` (Rank 0), and `c4-highmem` and
+     * `c4d-highmem` (Rank 1) (for requested core counts 2, 4, 8, 16, 32).
+     * `n4`, `n4d`, `c4`, and `c4d` use Hyperdisk Balanced with provisioned
+     * storage, whereas `n2` and `n2d` use SSD persistent disks.
+     *
+     * Warning: The specific machine families and types selected for this
+     * hardware class are subject to change. Users should not take a
+     * dependency on the underlying machine type selection.
+     * 
+ * + * PERFORMANCE = 2; + */ + PERFORMANCE(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "HardwareClass"); + } + + /** + * + * + *
+     * Unspecified hardware class.
+     * 
+ * + * HARDWARE_CLASS_UNSPECIFIED = 0; + */ + public static final int HARDWARE_CLASS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Standard hardware class.
+     * Provides a balanced compute configuration with approximately 4GB of
+     * memory per vCPU and standard disk storage tiers.
+     *
+     * Candidate machine types include `n4-standard`, `n4d-standard`,
+     * `n2-standard`, and `n2d-standard` (Rank 0), and `c4-standard` and
+     * `c4d-standard` (Rank 1) (for requested core counts 2, 4, 8, 16, 32).
+     *
+     * Warning: The specific machine families and types selected for this
+     * hardware class are subject to change. Users should not take a
+     * dependency on the underlying machine type selection.
+     * 
+ * + * STANDARD = 1; + */ + public static final int STANDARD_VALUE = 1; + + /** + * + * + *
+     * Performance hardware class.
+     * Provides a high-performance configuration with approximately 8GB of
+     * memory per vCPU (e.g. high-memory machine types) and higher-tier disk
+     * configurations (e.g. higher IOPS and throughput).
+     *
+     * Candidate machine types include `n4-highmem`, `n4d-highmem`,
+     * `n2-highmem`, and `n2d-highmem` (Rank 0), and `c4-highmem` and
+     * `c4d-highmem` (Rank 1) (for requested core counts 2, 4, 8, 16, 32).
+     * `n4`, `n4d`, `c4`, and `c4d` use Hyperdisk Balanced with provisioned
+     * storage, whereas `n2` and `n2d` use SSD persistent disks.
+     *
+     * Warning: The specific machine families and types selected for this
+     * hardware class are subject to change. Users should not take a
+     * dependency on the underlying machine type selection.
+     * 
+ * + * PERFORMANCE = 2; + */ + public static final int PERFORMANCE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HardwareClass valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static HardwareClass forNumber(int value) { + switch (value) { + case 0: + return HARDWARE_CLASS_UNSPECIFIED; + case 1: + return STANDARD; + case 2: + return PERFORMANCE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HardwareClass findValueByNumber(int number) { + return HardwareClass.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final HardwareClass[] VALUES = values(); + + public static HardwareClass valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private HardwareClass(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass) + } + + public static final int NUM_INSTANCES_FIELD_NUMBER = 1; + private int numInstances_ = 0; + + /** + * + * + *
+   * Optional. The number of VM instances requested.
+   *
+   * For master instances, this must be 1. For worker and secondary worker
+   * instances, this represents the desired capacity of the group and is mutable
+   * via cluster update operations and autoscaling.
+   * 
+ * + * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The numInstances. + */ + @java.lang.Override + public int getNumInstances() { + return numInstances_; + } + + public static final int CORE_COUNT_FIELD_NUMBER = 2; + private int coreCount_ = 0; + + /** + * + * + *
+   * Optional. The number of vCPUs per instance. Must be a power of 2
+   * (2, 4, 8, 16, 32). This is a create-time specification and is not currently
+   * mutable via update masks.
+   * 
+ * + * int32 core_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The coreCount. + */ + @java.lang.Override + public int getCoreCount() { + return coreCount_; + } + + public static final int BOOT_DISK_SIZE_GB_FIELD_NUMBER = 3; + private int bootDiskSizeGb_ = 0; + + /** + * + * + *
+   * Optional. The boot disk size in GB. This is a create-time specification and
+   * is not currently mutable via update masks.
+   * 
+ * + * int32 boot_disk_size_gb = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bootDiskSizeGb. + */ + @java.lang.Override + public int getBootDiskSizeGb() { + return bootDiskSizeGb_; + } + + public static final int HARDWARE_CLASS_FIELD_NUMBER = 4; + private int hardwareClass_ = 0; + + /** + * + * + *
+   * Optional. The hardware class of the instances. This is a create-time
+   * specification and is not currently mutable via update masks.
+   * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass hardware_class = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for hardwareClass. + */ + @java.lang.Override + public int getHardwareClassValue() { + return hardwareClass_; + } + + /** + * + * + *
+   * Optional. The hardware class of the instances. This is a create-time
+   * specification and is not currently mutable via update masks.
+   * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass hardware_class = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hardwareClass. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass getHardwareClass() { + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass result = + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass.forNumber( + hardwareClass_); + return result == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (numInstances_ != 0) { + output.writeInt32(1, numInstances_); + } + if (coreCount_ != 0) { + output.writeInt32(2, coreCount_); + } + if (bootDiskSizeGb_ != 0) { + output.writeInt32(3, bootDiskSizeGb_); + } + if (hardwareClass_ + != com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass + .HARDWARE_CLASS_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, hardwareClass_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (numInstances_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, numInstances_); + } + if (coreCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, coreCount_); + } + if (bootDiskSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, bootDiskSizeGb_); + } + if (hardwareClass_ + != com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass + .HARDWARE_CLASS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, hardwareClass_); + } + 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.dataproc.v1.FlexibleInstanceGroupConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig other = + (com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig) obj; + + if (getNumInstances() != other.getNumInstances()) return false; + if (getCoreCount() != other.getCoreCount()) return false; + if (getBootDiskSizeGb() != other.getBootDiskSizeGb()) return false; + if (hardwareClass_ != other.hardwareClass_) 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) + NUM_INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getNumInstances(); + hash = (37 * hash) + CORE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCoreCount(); + hash = (37 * hash) + BOOT_DISK_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getBootDiskSizeGb(); + hash = (37 * hash) + HARDWARE_CLASS_FIELD_NUMBER; + hash = (53 * hash) + hardwareClass_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig 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.dataproc.v1.FlexibleInstanceGroupConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig 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.dataproc.v1.FlexibleInstanceGroupConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig 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.dataproc.v1.FlexibleInstanceGroupConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig 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.dataproc.v1.FlexibleInstanceGroupConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig 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.dataproc.v1.FlexibleInstanceGroupConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The configuration for High Obtainability (HO) flexible instance groups.
+   * Flexible instance group configs serve as the single source of truth for
+   * desired state.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.FlexibleInstanceGroupConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.FlexibleInstanceGroupConfig) + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_FlexibleInstanceGroupConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_FlexibleInstanceGroupConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.class, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + numInstances_ = 0; + coreCount_ = 0; + bootDiskSizeGb_ = 0; + hardwareClass_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_FlexibleInstanceGroupConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig build() { + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig buildPartial() { + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig result = + new com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.numInstances_ = numInstances_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.coreCount_ = coreCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.bootDiskSizeGb_ = bootDiskSizeGb_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.hardwareClass_ = hardwareClass_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig) { + return mergeFrom((com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig other) { + if (other == com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance()) + return this; + if (other.getNumInstances() != 0) { + setNumInstances(other.getNumInstances()); + } + if (other.getCoreCount() != 0) { + setCoreCount(other.getCoreCount()); + } + if (other.getBootDiskSizeGb() != 0) { + setBootDiskSizeGb(other.getBootDiskSizeGb()); + } + if (other.hardwareClass_ != 0) { + setHardwareClassValue(other.getHardwareClassValue()); + } + 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 8: + { + numInstances_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + coreCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + bootDiskSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + hardwareClass_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + 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 int numInstances_; + + /** + * + * + *
+     * Optional. The number of VM instances requested.
+     *
+     * For master instances, this must be 1. For worker and secondary worker
+     * instances, this represents the desired capacity of the group and is mutable
+     * via cluster update operations and autoscaling.
+     * 
+ * + * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The numInstances. + */ + @java.lang.Override + public int getNumInstances() { + return numInstances_; + } + + /** + * + * + *
+     * Optional. The number of VM instances requested.
+     *
+     * For master instances, this must be 1. For worker and secondary worker
+     * instances, this represents the desired capacity of the group and is mutable
+     * via cluster update operations and autoscaling.
+     * 
+ * + * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The numInstances to set. + * @return This builder for chaining. + */ + public Builder setNumInstances(int value) { + + numInstances_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The number of VM instances requested.
+     *
+     * For master instances, this must be 1. For worker and secondary worker
+     * instances, this represents the desired capacity of the group and is mutable
+     * via cluster update operations and autoscaling.
+     * 
+ * + * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNumInstances() { + bitField0_ = (bitField0_ & ~0x00000001); + numInstances_ = 0; + onChanged(); + return this; + } + + private int coreCount_; + + /** + * + * + *
+     * Optional. The number of vCPUs per instance. Must be a power of 2
+     * (2, 4, 8, 16, 32). This is a create-time specification and is not currently
+     * mutable via update masks.
+     * 
+ * + * int32 core_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The coreCount. + */ + @java.lang.Override + public int getCoreCount() { + return coreCount_; + } + + /** + * + * + *
+     * Optional. The number of vCPUs per instance. Must be a power of 2
+     * (2, 4, 8, 16, 32). This is a create-time specification and is not currently
+     * mutable via update masks.
+     * 
+ * + * int32 core_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The coreCount to set. + * @return This builder for chaining. + */ + public Builder setCoreCount(int value) { + + coreCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The number of vCPUs per instance. Must be a power of 2
+     * (2, 4, 8, 16, 32). This is a create-time specification and is not currently
+     * mutable via update masks.
+     * 
+ * + * int32 core_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCoreCount() { + bitField0_ = (bitField0_ & ~0x00000002); + coreCount_ = 0; + onChanged(); + return this; + } + + private int bootDiskSizeGb_; + + /** + * + * + *
+     * Optional. The boot disk size in GB. This is a create-time specification and
+     * is not currently mutable via update masks.
+     * 
+ * + * int32 boot_disk_size_gb = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bootDiskSizeGb. + */ + @java.lang.Override + public int getBootDiskSizeGb() { + return bootDiskSizeGb_; + } + + /** + * + * + *
+     * Optional. The boot disk size in GB. This is a create-time specification and
+     * is not currently mutable via update masks.
+     * 
+ * + * int32 boot_disk_size_gb = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bootDiskSizeGb to set. + * @return This builder for chaining. + */ + public Builder setBootDiskSizeGb(int value) { + + bootDiskSizeGb_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The boot disk size in GB. This is a create-time specification and
+     * is not currently mutable via update masks.
+     * 
+ * + * int32 boot_disk_size_gb = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBootDiskSizeGb() { + bitField0_ = (bitField0_ & ~0x00000004); + bootDiskSizeGb_ = 0; + onChanged(); + return this; + } + + private int hardwareClass_ = 0; + + /** + * + * + *
+     * Optional. The hardware class of the instances. This is a create-time
+     * specification and is not currently mutable via update masks.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass hardware_class = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for hardwareClass. + */ + @java.lang.Override + public int getHardwareClassValue() { + return hardwareClass_; + } + + /** + * + * + *
+     * Optional. The hardware class of the instances. This is a create-time
+     * specification and is not currently mutable via update masks.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass hardware_class = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for hardwareClass to set. + * @return This builder for chaining. + */ + public Builder setHardwareClassValue(int value) { + hardwareClass_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The hardware class of the instances. This is a create-time
+     * specification and is not currently mutable via update masks.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass hardware_class = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hardwareClass. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass + getHardwareClass() { + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass result = + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass.forNumber( + hardwareClass_); + return result == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The hardware class of the instances. This is a create-time
+     * specification and is not currently mutable via update masks.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass hardware_class = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The hardwareClass to set. + * @return This builder for chaining. + */ + public Builder setHardwareClass( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + hardwareClass_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The hardware class of the instances. This is a create-time
+     * specification and is not currently mutable via update masks.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass hardware_class = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearHardwareClass() { + bitField0_ = (bitField0_ & ~0x00000008); + hardwareClass_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.FlexibleInstanceGroupConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.FlexibleInstanceGroupConfig) + private static final com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig(); + } + + public static com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FlexibleInstanceGroupConfig 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.dataproc.v1.FlexibleInstanceGroupConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FlexibleInstanceGroupConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FlexibleInstanceGroupConfigOrBuilder.java new file mode 100644 index 000000000000..4edd91dd4282 --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FlexibleInstanceGroupConfigOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataproc/v1/clusters.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.dataproc.v1; + +@com.google.protobuf.Generated +public interface FlexibleInstanceGroupConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.FlexibleInstanceGroupConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The number of VM instances requested.
+   *
+   * For master instances, this must be 1. For worker and secondary worker
+   * instances, this represents the desired capacity of the group and is mutable
+   * via cluster update operations and autoscaling.
+   * 
+ * + * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The numInstances. + */ + int getNumInstances(); + + /** + * + * + *
+   * Optional. The number of vCPUs per instance. Must be a power of 2
+   * (2, 4, 8, 16, 32). This is a create-time specification and is not currently
+   * mutable via update masks.
+   * 
+ * + * int32 core_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The coreCount. + */ + int getCoreCount(); + + /** + * + * + *
+   * Optional. The boot disk size in GB. This is a create-time specification and
+   * is not currently mutable via update masks.
+   * 
+ * + * int32 boot_disk_size_gb = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bootDiskSizeGb. + */ + int getBootDiskSizeGb(); + + /** + * + * + *
+   * Optional. The hardware class of the instances. This is a create-time
+   * specification and is not currently mutable via update masks.
+   * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass hardware_class = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for hardwareClass. + */ + int getHardwareClassValue(); + + /** + * + * + *
+   * Optional. The hardware class of the instances. This is a create-time
+   * specification and is not currently mutable via update masks.
+   * 
+ * + * + * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass hardware_class = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hardwareClass. + */ + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass getHardwareClass(); +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java index 2a9cf308c18c..97deea63bd62 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java @@ -372,6 +372,71 @@ public com.google.protobuf.ByteString getZoneUriBytes() { } } + public static final int MULTI_ZONE_CONFIG_FIELD_NUMBER = 19; + private com.google.cloud.dataproc.v1.MultiZoneConfig multiZoneConfig_; + + /** + * + * + *
+   * Optional. Controls how instances within this Cluster are allowed to exist
+   * in multiple Zones within the Region. Only one of `zone_uri` or
+   * `multi_zone_config` must be set.
+   * 
+ * + * + * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiZoneConfig field is set. + */ + @java.lang.Override + public boolean hasMultiZoneConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Controls how instances within this Cluster are allowed to exist
+   * in multiple Zones within the Region. Only one of `zone_uri` or
+   * `multi_zone_config` must be set.
+   * 
+ * + * + * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiZoneConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.MultiZoneConfig getMultiZoneConfig() { + return multiZoneConfig_ == null + ? com.google.cloud.dataproc.v1.MultiZoneConfig.getDefaultInstance() + : multiZoneConfig_; + } + + /** + * + * + *
+   * Optional. Controls how instances within this Cluster are allowed to exist
+   * in multiple Zones within the Region. Only one of `zone_uri` or
+   * `multi_zone_config` must be set.
+   * 
+ * + * + * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.MultiZoneConfigOrBuilder getMultiZoneConfigOrBuilder() { + return multiZoneConfig_ == null + ? com.google.cloud.dataproc.v1.MultiZoneConfig.getDefaultInstance() + : multiZoneConfig_; + } + public static final int NETWORK_URI_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -545,7 +610,7 @@ public com.google.protobuf.ByteString getSubnetworkUriBytes() { */ @java.lang.Override public boolean hasInternalIpOnly() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -1026,7 +1091,7 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) { */ @java.lang.Override public boolean hasReservationAffinity() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -1086,7 +1151,7 @@ public com.google.cloud.dataproc.v1.ReservationAffinity getReservationAffinity() */ @java.lang.Override public boolean hasNodeGroupAffinity() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -1147,7 +1212,7 @@ public com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder getNodeGroupAffin */ @java.lang.Override public boolean hasShieldedInstanceConfig() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -1212,7 +1277,7 @@ public com.google.cloud.dataproc.v1.ShieldedInstanceConfig getShieldedInstanceCo */ @java.lang.Override public boolean hasConfidentialInstanceConfig() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -1418,13 +1483,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subnetworkUri_)) { com.google.protobuf.GeneratedMessage.writeString(output, 6, subnetworkUri_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(7, internalIpOnly_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { com.google.protobuf.GeneratedMessage.writeString(output, 8, serviceAccount_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(11, getReservationAffinity()); } if (privateIpv6GoogleAccess_ @@ -1433,13 +1498,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(12, privateIpv6GoogleAccess_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(13, getNodeGroupAffinity()); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(14, getShieldedInstanceConfig()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(15, getConfidentialInstanceConfig()); } com.google.protobuf.GeneratedMessage.serializeStringMapTo( @@ -1447,6 +1512,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io internalGetResourceManagerTags(), ResourceManagerTagsDefaultEntryHolder.defaultEntry, 16); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(19, getMultiZoneConfig()); + } getUnknownFields().writeTo(output); } @@ -1491,13 +1559,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subnetworkUri_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(6, subnetworkUri_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, internalIpOnly_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(8, serviceAccount_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getReservationAffinity()); } @@ -1507,14 +1575,14 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, privateIpv6GoogleAccess_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getNodeGroupAffinity()); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getShieldedInstanceConfig()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 15, getConfidentialInstanceConfig()); @@ -1529,6 +1597,9 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, resourceManagerTags__); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getMultiZoneConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1546,6 +1617,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataproc.v1.GceClusterConfig) obj; if (!getZoneUri().equals(other.getZoneUri())) return false; + if (hasMultiZoneConfig() != other.hasMultiZoneConfig()) return false; + if (hasMultiZoneConfig()) { + if (!getMultiZoneConfig().equals(other.getMultiZoneConfig())) return false; + } if (!getNetworkUri().equals(other.getNetworkUri())) return false; if (!getSubnetworkUri().equals(other.getSubnetworkUri())) return false; if (hasInternalIpOnly() != other.hasInternalIpOnly()) return false; @@ -1589,6 +1664,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ZONE_URI_FIELD_NUMBER; hash = (53 * hash) + getZoneUri().hashCode(); + if (hasMultiZoneConfig()) { + hash = (37 * hash) + MULTI_ZONE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMultiZoneConfig().hashCode(); + } hash = (37 * hash) + NETWORK_URI_FIELD_NUMBER; hash = (53 * hash) + getNetworkUri().hashCode(); hash = (37 * hash) + SUBNETWORK_URI_FIELD_NUMBER; @@ -1801,6 +1880,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMultiZoneConfigFieldBuilder(); internalGetReservationAffinityFieldBuilder(); internalGetNodeGroupAffinityFieldBuilder(); internalGetShieldedInstanceConfigFieldBuilder(); @@ -1813,6 +1893,11 @@ public Builder clear() { super.clear(); bitField0_ = 0; zoneUri_ = ""; + multiZoneConfig_ = null; + if (multiZoneConfigBuilder_ != null) { + multiZoneConfigBuilder_.dispose(); + multiZoneConfigBuilder_ = null; + } networkUri_ = ""; subnetworkUri_ = ""; internalIpOnly_ = false; @@ -1881,64 +1966,69 @@ private void buildPartial0(com.google.cloud.dataproc.v1.GceClusterConfig result) if (((from_bitField0_ & 0x00000001) != 0)) { result.zoneUri_ = zoneUri_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.networkUri_ = networkUri_; + result.multiZoneConfig_ = + multiZoneConfigBuilder_ == null ? multiZoneConfig_ : multiZoneConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.subnetworkUri_ = subnetworkUri_; + result.networkUri_ = networkUri_; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { - result.internalIpOnly_ = internalIpOnly_; - to_bitField0_ |= 0x00000001; + result.subnetworkUri_ = subnetworkUri_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.privateIpv6GoogleAccess_ = privateIpv6GoogleAccess_; + result.internalIpOnly_ = internalIpOnly_; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.serviceAccount_ = serviceAccount_; + result.privateIpv6GoogleAccess_ = privateIpv6GoogleAccess_; } if (((from_bitField0_ & 0x00000040) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { serviceAccountScopes_.makeImmutable(); result.serviceAccountScopes_ = serviceAccountScopes_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { tags_.makeImmutable(); result.tags_ = tags_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.metadata_ = internalGetMetadata(); result.metadata_.makeImmutable(); } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.reservationAffinity_ = reservationAffinityBuilder_ == null ? reservationAffinity_ : reservationAffinityBuilder_.build(); - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.nodeGroupAffinity_ = nodeGroupAffinityBuilder_ == null ? nodeGroupAffinity_ : nodeGroupAffinityBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_ == null ? shieldedInstanceConfig_ : shieldedInstanceConfigBuilder_.build(); - to_bitField0_ |= 0x00000008; + to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.confidentialInstanceConfig_ = confidentialInstanceConfigBuilder_ == null ? confidentialInstanceConfig_ : confidentialInstanceConfigBuilder_.build(); - to_bitField0_ |= 0x00000010; + to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.resourceManagerTags_ = internalGetResourceManagerTags(); result.resourceManagerTags_.makeImmutable(); } @@ -1962,14 +2052,17 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GceClusterConfig other) { bitField0_ |= 0x00000001; onChanged(); } + if (other.hasMultiZoneConfig()) { + mergeMultiZoneConfig(other.getMultiZoneConfig()); + } if (!other.getNetworkUri().isEmpty()) { networkUri_ = other.networkUri_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getSubnetworkUri().isEmpty()) { subnetworkUri_ = other.subnetworkUri_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasInternalIpOnly()) { @@ -1980,13 +2073,13 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GceClusterConfig other) { } if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } if (!other.serviceAccountScopes_.isEmpty()) { if (serviceAccountScopes_.isEmpty()) { serviceAccountScopes_ = other.serviceAccountScopes_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; } else { ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.addAll(other.serviceAccountScopes_); @@ -1996,7 +2089,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GceClusterConfig other) { if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); @@ -2004,7 +2097,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GceClusterConfig other) { onChanged(); } internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; if (other.hasReservationAffinity()) { mergeReservationAffinity(other.getReservationAffinity()); } @@ -2018,7 +2111,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GceClusterConfig other) { mergeConfidentialInstanceConfig(other.getConfidentialInstanceConfig()); } internalGetMutableResourceManagerTags().mergeFrom(other.internalGetResourceManagerTags()); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2054,7 +2147,7 @@ public Builder mergeFrom( case 18: { networkUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 18 case 26: @@ -2080,45 +2173,45 @@ public Builder mergeFrom( internalGetMutableMetadata() .getMutableMap() .put(metadata__.getKey(), metadata__.getValue()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 42 case 50: { subnetworkUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 50 case 56: { internalIpOnly_ = input.readBool(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 56 case 66: { serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 66 case 90: { input.readMessage( internalGetReservationAffinityFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 90 case 96: { privateIpv6GoogleAccess_ = input.readEnum(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 96 case 106: { input.readMessage( internalGetNodeGroupAffinityFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 106 case 114: @@ -2126,7 +2219,7 @@ public Builder mergeFrom( input.readMessage( internalGetShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 114 case 122: @@ -2134,7 +2227,7 @@ public Builder mergeFrom( input.readMessage( internalGetConfidentialInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 122 case 130: @@ -2147,9 +2240,16 @@ public Builder mergeFrom( internalGetMutableResourceManagerTags() .getMutableMap() .put(resourceManagerTags__.getKey(), resourceManagerTags__.getValue()); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 130 + case 154: + { + input.readMessage( + internalGetMultiZoneConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 154 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2320,6 +2420,238 @@ public Builder setZoneUriBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dataproc.v1.MultiZoneConfig multiZoneConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.MultiZoneConfig, + com.google.cloud.dataproc.v1.MultiZoneConfig.Builder, + com.google.cloud.dataproc.v1.MultiZoneConfigOrBuilder> + multiZoneConfigBuilder_; + + /** + * + * + *
+     * Optional. Controls how instances within this Cluster are allowed to exist
+     * in multiple Zones within the Region. Only one of `zone_uri` or
+     * `multi_zone_config` must be set.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiZoneConfig field is set. + */ + public boolean hasMultiZoneConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Controls how instances within this Cluster are allowed to exist
+     * in multiple Zones within the Region. Only one of `zone_uri` or
+     * `multi_zone_config` must be set.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiZoneConfig. + */ + public com.google.cloud.dataproc.v1.MultiZoneConfig getMultiZoneConfig() { + if (multiZoneConfigBuilder_ == null) { + return multiZoneConfig_ == null + ? com.google.cloud.dataproc.v1.MultiZoneConfig.getDefaultInstance() + : multiZoneConfig_; + } else { + return multiZoneConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Controls how instances within this Cluster are allowed to exist
+     * in multiple Zones within the Region. Only one of `zone_uri` or
+     * `multi_zone_config` must be set.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMultiZoneConfig(com.google.cloud.dataproc.v1.MultiZoneConfig value) { + if (multiZoneConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + multiZoneConfig_ = value; + } else { + multiZoneConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Controls how instances within this Cluster are allowed to exist
+     * in multiple Zones within the Region. Only one of `zone_uri` or
+     * `multi_zone_config` must be set.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMultiZoneConfig( + com.google.cloud.dataproc.v1.MultiZoneConfig.Builder builderForValue) { + if (multiZoneConfigBuilder_ == null) { + multiZoneConfig_ = builderForValue.build(); + } else { + multiZoneConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Controls how instances within this Cluster are allowed to exist
+     * in multiple Zones within the Region. Only one of `zone_uri` or
+     * `multi_zone_config` must be set.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMultiZoneConfig(com.google.cloud.dataproc.v1.MultiZoneConfig value) { + if (multiZoneConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && multiZoneConfig_ != null + && multiZoneConfig_ + != com.google.cloud.dataproc.v1.MultiZoneConfig.getDefaultInstance()) { + getMultiZoneConfigBuilder().mergeFrom(value); + } else { + multiZoneConfig_ = value; + } + } else { + multiZoneConfigBuilder_.mergeFrom(value); + } + if (multiZoneConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Controls how instances within this Cluster are allowed to exist
+     * in multiple Zones within the Region. Only one of `zone_uri` or
+     * `multi_zone_config` must be set.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMultiZoneConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + multiZoneConfig_ = null; + if (multiZoneConfigBuilder_ != null) { + multiZoneConfigBuilder_.dispose(); + multiZoneConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Controls how instances within this Cluster are allowed to exist
+     * in multiple Zones within the Region. Only one of `zone_uri` or
+     * `multi_zone_config` must be set.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.MultiZoneConfig.Builder getMultiZoneConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetMultiZoneConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Controls how instances within this Cluster are allowed to exist
+     * in multiple Zones within the Region. Only one of `zone_uri` or
+     * `multi_zone_config` must be set.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.MultiZoneConfigOrBuilder getMultiZoneConfigOrBuilder() { + if (multiZoneConfigBuilder_ != null) { + return multiZoneConfigBuilder_.getMessageOrBuilder(); + } else { + return multiZoneConfig_ == null + ? com.google.cloud.dataproc.v1.MultiZoneConfig.getDefaultInstance() + : multiZoneConfig_; + } + } + + /** + * + * + *
+     * Optional. Controls how instances within this Cluster are allowed to exist
+     * in multiple Zones within the Region. Only one of `zone_uri` or
+     * `multi_zone_config` must be set.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.MultiZoneConfig, + com.google.cloud.dataproc.v1.MultiZoneConfig.Builder, + com.google.cloud.dataproc.v1.MultiZoneConfigOrBuilder> + internalGetMultiZoneConfigFieldBuilder() { + if (multiZoneConfigBuilder_ == null) { + multiZoneConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.MultiZoneConfig, + com.google.cloud.dataproc.v1.MultiZoneConfig.Builder, + com.google.cloud.dataproc.v1.MultiZoneConfigOrBuilder>( + getMultiZoneConfig(), getParentForChildren(), isClean()); + multiZoneConfig_ = null; + } + return multiZoneConfigBuilder_; + } + private java.lang.Object networkUri_ = ""; /** @@ -2418,7 +2750,7 @@ public Builder setNetworkUri(java.lang.String value) { throw new NullPointerException(); } networkUri_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2447,7 +2779,7 @@ public Builder setNetworkUri(java.lang.String value) { */ public Builder clearNetworkUri() { networkUri_ = getDefaultInstance().getNetworkUri(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2481,7 +2813,7 @@ public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); networkUri_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2572,7 +2904,7 @@ public Builder setSubnetworkUri(java.lang.String value) { throw new NullPointerException(); } subnetworkUri_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2597,7 +2929,7 @@ public Builder setSubnetworkUri(java.lang.String value) { */ public Builder clearSubnetworkUri() { subnetworkUri_ = getDefaultInstance().getSubnetworkUri(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -2627,7 +2959,7 @@ public Builder setSubnetworkUriBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); subnetworkUri_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2662,7 +2994,7 @@ public Builder setSubnetworkUriBytes(com.google.protobuf.ByteString value) { */ @java.lang.Override public boolean hasInternalIpOnly() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -2726,7 +3058,7 @@ public boolean getInternalIpOnly() { public Builder setInternalIpOnly(boolean value) { internalIpOnly_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2758,7 +3090,7 @@ public Builder setInternalIpOnly(boolean value) { * @return This builder for chaining. */ public Builder clearInternalIpOnly() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); internalIpOnly_ = false; onChanged(); return this; @@ -2800,7 +3132,7 @@ public int getPrivateIpv6GoogleAccessValue() { */ public Builder setPrivateIpv6GoogleAccessValue(int value) { privateIpv6GoogleAccess_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2848,7 +3180,7 @@ public Builder setPrivateIpv6GoogleAccess( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; privateIpv6GoogleAccess_ = value.getNumber(); onChanged(); return this; @@ -2868,7 +3200,7 @@ public Builder setPrivateIpv6GoogleAccess( * @return This builder for chaining. */ public Builder clearPrivateIpv6GoogleAccess() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); privateIpv6GoogleAccess_ = 0; onChanged(); return this; @@ -2969,7 +3301,7 @@ public Builder setServiceAccount(java.lang.String value) { throw new NullPointerException(); } serviceAccount_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2997,7 +3329,7 @@ public Builder setServiceAccount(java.lang.String value) { */ public Builder clearServiceAccount() { serviceAccount_ = getDefaultInstance().getServiceAccount(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -3030,7 +3362,7 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); serviceAccount_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3042,7 +3374,7 @@ private void ensureServiceAccountScopesIsMutable() { if (!serviceAccountScopes_.isModifiable()) { serviceAccountScopes_ = new com.google.protobuf.LazyStringArrayList(serviceAccountScopes_); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; } /** @@ -3197,7 +3529,7 @@ public Builder setServiceAccountScopes(int index, java.lang.String value) { } ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.set(index, value); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3234,7 +3566,7 @@ public Builder addServiceAccountScopes(java.lang.String value) { } ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.add(value); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3268,7 +3600,7 @@ public Builder addServiceAccountScopes(java.lang.String value) { public Builder addAllServiceAccountScopes(java.lang.Iterable values) { ensureServiceAccountScopesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceAccountScopes_); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3300,7 +3632,7 @@ public Builder addAllServiceAccountScopes(java.lang.Iterable v */ public Builder clearServiceAccountScopes() { serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); ; onChanged(); return this; @@ -3339,7 +3671,7 @@ public Builder addServiceAccountScopesBytes(com.google.protobuf.ByteString value checkByteStringIsUtf8(value); ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.add(value); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3351,7 +3683,7 @@ private void ensureTagsIsMutable() { if (!tags_.isModifiable()) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } /** @@ -3441,7 +3773,7 @@ public Builder setTags(int index, java.lang.String value) { } ensureTagsIsMutable(); tags_.set(index, value); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3465,7 +3797,7 @@ public Builder addTags(java.lang.String value) { } ensureTagsIsMutable(); tags_.add(value); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3486,7 +3818,7 @@ public Builder addTags(java.lang.String value) { public Builder addAllTags(java.lang.Iterable values) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3505,7 +3837,7 @@ public Builder addAllTags(java.lang.Iterable values) { */ public Builder clearTags() { tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); ; onChanged(); return this; @@ -3531,7 +3863,7 @@ public Builder addTagsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3554,7 +3886,7 @@ private com.google.protobuf.MapField interna if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return metadata_; } @@ -3656,7 +3988,7 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) { } public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); internalGetMutableMetadata().getMutableMap().clear(); return this; } @@ -3684,7 +4016,7 @@ public Builder removeMetadata(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMetadata() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return internalGetMutableMetadata().getMutableMap(); } @@ -3708,7 +4040,7 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableMetadata().getMutableMap().put(key, value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return this; } @@ -3726,7 +4058,7 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) { */ public Builder putAllMetadata(java.util.Map values) { internalGetMutableMetadata().getMutableMap().putAll(values); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return this; } @@ -3751,7 +4083,7 @@ public Builder putAllMetadata(java.util.Map * @return Whether the reservationAffinity field is set. */ public boolean hasReservationAffinity() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -3797,7 +4129,7 @@ public Builder setReservationAffinity(com.google.cloud.dataproc.v1.ReservationAf } else { reservationAffinityBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3820,7 +4152,7 @@ public Builder setReservationAffinity( } else { reservationAffinityBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3839,7 +4171,7 @@ public Builder setReservationAffinity( public Builder mergeReservationAffinity( com.google.cloud.dataproc.v1.ReservationAffinity value) { if (reservationAffinityBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && reservationAffinity_ != null && reservationAffinity_ != com.google.cloud.dataproc.v1.ReservationAffinity.getDefaultInstance()) { @@ -3851,7 +4183,7 @@ public Builder mergeReservationAffinity( reservationAffinityBuilder_.mergeFrom(value); } if (reservationAffinity_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -3869,7 +4201,7 @@ public Builder mergeReservationAffinity( * */ public Builder clearReservationAffinity() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); reservationAffinity_ = null; if (reservationAffinityBuilder_ != null) { reservationAffinityBuilder_.dispose(); @@ -3892,7 +4224,7 @@ public Builder clearReservationAffinity() { */ public com.google.cloud.dataproc.v1.ReservationAffinity.Builder getReservationAffinityBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return internalGetReservationAffinityFieldBuilder().getBuilder(); } @@ -3968,7 +4300,7 @@ public Builder clearReservationAffinity() { * @return Whether the nodeGroupAffinity field is set. */ public boolean hasNodeGroupAffinity() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -4014,7 +4346,7 @@ public Builder setNodeGroupAffinity(com.google.cloud.dataproc.v1.NodeGroupAffini } else { nodeGroupAffinityBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4037,7 +4369,7 @@ public Builder setNodeGroupAffinity( } else { nodeGroupAffinityBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4055,7 +4387,7 @@ public Builder setNodeGroupAffinity( */ public Builder mergeNodeGroupAffinity(com.google.cloud.dataproc.v1.NodeGroupAffinity value) { if (nodeGroupAffinityBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && nodeGroupAffinity_ != null && nodeGroupAffinity_ != com.google.cloud.dataproc.v1.NodeGroupAffinity.getDefaultInstance()) { @@ -4067,7 +4399,7 @@ public Builder mergeNodeGroupAffinity(com.google.cloud.dataproc.v1.NodeGroupAffi nodeGroupAffinityBuilder_.mergeFrom(value); } if (nodeGroupAffinity_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -4085,7 +4417,7 @@ public Builder mergeNodeGroupAffinity(com.google.cloud.dataproc.v1.NodeGroupAffi * */ public Builder clearNodeGroupAffinity() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); nodeGroupAffinity_ = null; if (nodeGroupAffinityBuilder_ != null) { nodeGroupAffinityBuilder_.dispose(); @@ -4107,7 +4439,7 @@ public Builder clearNodeGroupAffinity() { * */ public com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder getNodeGroupAffinityBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return internalGetNodeGroupAffinityFieldBuilder().getBuilder(); } @@ -4184,7 +4516,7 @@ public com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder getNodeGroupAffin * @return Whether the shieldedInstanceConfig field is set. */ public boolean hasShieldedInstanceConfig() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -4235,7 +4567,7 @@ public Builder setShieldedInstanceConfig( } else { shieldedInstanceConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4260,7 +4592,7 @@ public Builder setShieldedInstanceConfig( } else { shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4281,7 +4613,7 @@ public Builder setShieldedInstanceConfig( public Builder mergeShieldedInstanceConfig( com.google.cloud.dataproc.v1.ShieldedInstanceConfig value) { if (shieldedInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00001000) != 0) && shieldedInstanceConfig_ != null && shieldedInstanceConfig_ != com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance()) { @@ -4293,7 +4625,7 @@ public Builder mergeShieldedInstanceConfig( shieldedInstanceConfigBuilder_.mergeFrom(value); } if (shieldedInstanceConfig_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -4313,7 +4645,7 @@ public Builder mergeShieldedInstanceConfig( * */ public Builder clearShieldedInstanceConfig() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); shieldedInstanceConfig_ = null; if (shieldedInstanceConfigBuilder_ != null) { shieldedInstanceConfigBuilder_.dispose(); @@ -4338,7 +4670,7 @@ public Builder clearShieldedInstanceConfig() { */ public com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return internalGetShieldedInstanceConfigFieldBuilder().getBuilder(); } @@ -4419,7 +4751,7 @@ public Builder clearShieldedInstanceConfig() { * @return Whether the confidentialInstanceConfig field is set. */ public boolean hasConfidentialInstanceConfig() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -4468,7 +4800,7 @@ public Builder setConfidentialInstanceConfig( } else { confidentialInstanceConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4492,7 +4824,7 @@ public Builder setConfidentialInstanceConfig( } else { confidentialInstanceConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4512,7 +4844,7 @@ public Builder setConfidentialInstanceConfig( public Builder mergeConfidentialInstanceConfig( com.google.cloud.dataproc.v1.ConfidentialInstanceConfig value) { if (confidentialInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00002000) != 0) && confidentialInstanceConfig_ != null && confidentialInstanceConfig_ != com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance()) { @@ -4524,7 +4856,7 @@ public Builder mergeConfidentialInstanceConfig( confidentialInstanceConfigBuilder_.mergeFrom(value); } if (confidentialInstanceConfig_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -4543,7 +4875,7 @@ public Builder mergeConfidentialInstanceConfig( * */ public Builder clearConfidentialInstanceConfig() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); confidentialInstanceConfig_ = null; if (confidentialInstanceConfigBuilder_ != null) { confidentialInstanceConfigBuilder_.dispose(); @@ -4567,7 +4899,7 @@ public Builder clearConfidentialInstanceConfig() { */ public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder getConfidentialInstanceConfigBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return internalGetConfidentialInstanceConfigFieldBuilder().getBuilder(); } @@ -4645,7 +4977,7 @@ public Builder clearConfidentialInstanceConfig() { if (!resourceManagerTags_.isMutable()) { resourceManagerTags_ = resourceManagerTags_.copy(); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return resourceManagerTags_; } @@ -4757,7 +5089,7 @@ public java.lang.String getResourceManagerTagsOrThrow(java.lang.String key) { } public Builder clearResourceManagerTags() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); internalGetMutableResourceManagerTags().getMutableMap().clear(); return this; } @@ -4787,7 +5119,7 @@ public Builder removeResourceManagerTags(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableResourceManagerTags() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; return internalGetMutableResourceManagerTags().getMutableMap(); } @@ -4813,7 +5145,7 @@ public Builder putResourceManagerTags(java.lang.String key, java.lang.String val throw new NullPointerException("map value"); } internalGetMutableResourceManagerTags().getMutableMap().put(key, value); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; return this; } @@ -4834,7 +5166,7 @@ public Builder putResourceManagerTags(java.lang.String key, java.lang.String val public Builder putAllResourceManagerTags( java.util.Map values) { internalGetMutableResourceManagerTags().getMutableMap().putAll(values); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; return this; } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java index fd40dbc300ee..c5f89d9a477d 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java @@ -68,6 +68,55 @@ public interface GceClusterConfigOrBuilder */ com.google.protobuf.ByteString getZoneUriBytes(); + /** + * + * + *
+   * Optional. Controls how instances within this Cluster are allowed to exist
+   * in multiple Zones within the Region. Only one of `zone_uri` or
+   * `multi_zone_config` must be set.
+   * 
+ * + * + * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiZoneConfig field is set. + */ + boolean hasMultiZoneConfig(); + + /** + * + * + *
+   * Optional. Controls how instances within this Cluster are allowed to exist
+   * in multiple Zones within the Region. Only one of `zone_uri` or
+   * `multi_zone_config` must be set.
+   * 
+ * + * + * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiZoneConfig. + */ + com.google.cloud.dataproc.v1.MultiZoneConfig getMultiZoneConfig(); + + /** + * + * + *
+   * Optional. Controls how instances within this Cluster are allowed to exist
+   * in multiple Zones within the Region. Only one of `zone_uri` or
+   * `multi_zone_config` must be set.
+   * 
+ * + * + * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.MultiZoneConfigOrBuilder getMultiZoneConfigOrBuilder(); + /** * * diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MultiZoneConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MultiZoneConfig.java new file mode 100644 index 000000000000..a6bcace32de1 --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MultiZoneConfig.java @@ -0,0 +1,731 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataproc/v1/clusters.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * Configuration for multi-zonal clusters that can create instances across
+ * multiple Zones within the Region.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.MultiZoneConfig} + */ +@com.google.protobuf.Generated +public final class MultiZoneConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.MultiZoneConfig) + MultiZoneConfigOrBuilder { + 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= */ "", + "MultiZoneConfig"); + } + + // Use MultiZoneConfig.newBuilder() to construct. + private MultiZoneConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MultiZoneConfig() { + targetShape_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_MultiZoneConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_MultiZoneConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.MultiZoneConfig.class, + com.google.cloud.dataproc.v1.MultiZoneConfig.Builder.class); + } + + /** + * + * + *
+   * The distribution shape of the nodes in the multi-zonal cluster.
+   * 
+ * + * Protobuf enum {@code google.cloud.dataproc.v1.MultiZoneConfig.TargetShape} + */ + public enum TargetShape implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Target shape is unspecified. Setting this will cause error.
+     * 
+ * + * TARGET_SHAPE_UNSPECIFIED = 0; + */ + TARGET_SHAPE_UNSPECIFIED(0), + /** + * + * + *
+     * Instances may exist in any Zones within the Region.
+     * 
+ * + * ANY = 1; + */ + ANY(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TargetShape"); + } + + /** + * + * + *
+     * Target shape is unspecified. Setting this will cause error.
+     * 
+ * + * TARGET_SHAPE_UNSPECIFIED = 0; + */ + public static final int TARGET_SHAPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Instances may exist in any Zones within the Region.
+     * 
+ * + * ANY = 1; + */ + public static final int ANY_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetShape valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TargetShape forNumber(int value) { + switch (value) { + case 0: + return TARGET_SHAPE_UNSPECIFIED; + case 1: + return ANY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TargetShape findValueByNumber(int number) { + return TargetShape.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataproc.v1.MultiZoneConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final TargetShape[] VALUES = values(); + + public static TargetShape valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TargetShape(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.MultiZoneConfig.TargetShape) + } + + public static final int TARGET_SHAPE_FIELD_NUMBER = 1; + private int targetShape_ = 0; + + /** + * + * + *
+   * Optional. The distribution shape of the nodes in the multi-zonal cluster.
+   * 
+ * + * + * .google.cloud.dataproc.v1.MultiZoneConfig.TargetShape target_shape = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for targetShape. + */ + @java.lang.Override + public int getTargetShapeValue() { + return targetShape_; + } + + /** + * + * + *
+   * Optional. The distribution shape of the nodes in the multi-zonal cluster.
+   * 
+ * + * + * .google.cloud.dataproc.v1.MultiZoneConfig.TargetShape target_shape = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The targetShape. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.MultiZoneConfig.TargetShape getTargetShape() { + com.google.cloud.dataproc.v1.MultiZoneConfig.TargetShape result = + com.google.cloud.dataproc.v1.MultiZoneConfig.TargetShape.forNumber(targetShape_); + return result == null + ? com.google.cloud.dataproc.v1.MultiZoneConfig.TargetShape.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (targetShape_ + != com.google.cloud.dataproc.v1.MultiZoneConfig.TargetShape.TARGET_SHAPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, targetShape_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (targetShape_ + != com.google.cloud.dataproc.v1.MultiZoneConfig.TargetShape.TARGET_SHAPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, targetShape_); + } + 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.dataproc.v1.MultiZoneConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.MultiZoneConfig other = + (com.google.cloud.dataproc.v1.MultiZoneConfig) obj; + + if (targetShape_ != other.targetShape_) 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) + TARGET_SHAPE_FIELD_NUMBER; + hash = (53 * hash) + targetShape_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.MultiZoneConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.MultiZoneConfig 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.dataproc.v1.MultiZoneConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.MultiZoneConfig 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.dataproc.v1.MultiZoneConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.MultiZoneConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.MultiZoneConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.MultiZoneConfig 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.dataproc.v1.MultiZoneConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.MultiZoneConfig 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.dataproc.v1.MultiZoneConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.MultiZoneConfig 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.dataproc.v1.MultiZoneConfig 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; + } + + /** + * + * + *
+   * Configuration for multi-zonal clusters that can create instances across
+   * multiple Zones within the Region.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.MultiZoneConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.MultiZoneConfig) + com.google.cloud.dataproc.v1.MultiZoneConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_MultiZoneConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_MultiZoneConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.MultiZoneConfig.class, + com.google.cloud.dataproc.v1.MultiZoneConfig.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.MultiZoneConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + targetShape_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_MultiZoneConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.MultiZoneConfig getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.MultiZoneConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.MultiZoneConfig build() { + com.google.cloud.dataproc.v1.MultiZoneConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.MultiZoneConfig buildPartial() { + com.google.cloud.dataproc.v1.MultiZoneConfig result = + new com.google.cloud.dataproc.v1.MultiZoneConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataproc.v1.MultiZoneConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.targetShape_ = targetShape_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataproc.v1.MultiZoneConfig) { + return mergeFrom((com.google.cloud.dataproc.v1.MultiZoneConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.MultiZoneConfig other) { + if (other == com.google.cloud.dataproc.v1.MultiZoneConfig.getDefaultInstance()) return this; + if (other.targetShape_ != 0) { + setTargetShapeValue(other.getTargetShapeValue()); + } + 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 8: + { + targetShape_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + 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 int targetShape_ = 0; + + /** + * + * + *
+     * Optional. The distribution shape of the nodes in the multi-zonal cluster.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MultiZoneConfig.TargetShape target_shape = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for targetShape. + */ + @java.lang.Override + public int getTargetShapeValue() { + return targetShape_; + } + + /** + * + * + *
+     * Optional. The distribution shape of the nodes in the multi-zonal cluster.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MultiZoneConfig.TargetShape target_shape = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for targetShape to set. + * @return This builder for chaining. + */ + public Builder setTargetShapeValue(int value) { + targetShape_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The distribution shape of the nodes in the multi-zonal cluster.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MultiZoneConfig.TargetShape target_shape = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The targetShape. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.MultiZoneConfig.TargetShape getTargetShape() { + com.google.cloud.dataproc.v1.MultiZoneConfig.TargetShape result = + com.google.cloud.dataproc.v1.MultiZoneConfig.TargetShape.forNumber(targetShape_); + return result == null + ? com.google.cloud.dataproc.v1.MultiZoneConfig.TargetShape.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The distribution shape of the nodes in the multi-zonal cluster.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MultiZoneConfig.TargetShape target_shape = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The targetShape to set. + * @return This builder for chaining. + */ + public Builder setTargetShape(com.google.cloud.dataproc.v1.MultiZoneConfig.TargetShape value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + targetShape_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The distribution shape of the nodes in the multi-zonal cluster.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MultiZoneConfig.TargetShape target_shape = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearTargetShape() { + bitField0_ = (bitField0_ & ~0x00000001); + targetShape_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.MultiZoneConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.MultiZoneConfig) + private static final com.google.cloud.dataproc.v1.MultiZoneConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.MultiZoneConfig(); + } + + public static com.google.cloud.dataproc.v1.MultiZoneConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MultiZoneConfig 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.dataproc.v1.MultiZoneConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MultiZoneConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MultiZoneConfigOrBuilder.java new file mode 100644 index 000000000000..3d1727788c4c --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MultiZoneConfigOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataproc/v1/clusters.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.dataproc.v1; + +@com.google.protobuf.Generated +public interface MultiZoneConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.MultiZoneConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The distribution shape of the nodes in the multi-zonal cluster.
+   * 
+ * + * + * .google.cloud.dataproc.v1.MultiZoneConfig.TargetShape target_shape = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for targetShape. + */ + int getTargetShapeValue(); + + /** + * + * + *
+   * Optional. The distribution shape of the nodes in the multi-zonal cluster.
+   * 
+ * + * + * .google.cloud.dataproc.v1.MultiZoneConfig.TargetShape target_shape = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The targetShape. + */ + com.google.cloud.dataproc.v1.MultiZoneConfig.TargetShape getTargetShape(); +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto index 2e50b5f4bb03..c173c2616ce2 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto @@ -359,6 +359,62 @@ message ClusterConfig { // Optional. The node group settings. repeated AuxiliaryNodeGroup auxiliary_node_groups = 25 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The High Obtainability (HO) config settings for the cluster's + // master instances. + // + // In High Obtainability (HO) mode, flexible configs are the single source of + // truth for desired cluster configuration across node groups: + // * For single-node clusters: `master_flexible_config` must be specified, and + // no worker configs should be set. + // * For multi-node (standard) clusters: both `master_flexible_config` and + // [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config] + // must be specified. Mixing standard and flexible configs across node + // groups is not allowed. + // + // Only one of + // [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or + // `master_flexible_config` can be set. + FlexibleInstanceGroupConfig master_flexible_config = 31 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The High Obtainability (HO) config settings for the cluster's + // worker instances. + // + // In High Obtainability (HO) mode, flexible configs are the single source of + // truth for desired cluster configuration. `num_instances` represents the + // desired capacity of the worker group and is mutable via cluster updates and + // autoscaling. + // + // Only one of + // [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or + // `worker_flexible_config` can be set. + // + // In High Obtainability (HO) mode, for multi-node (standard) clusters, both + // [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config] + // and `worker_flexible_config` must be specified. Mixing standard and + // flexible configs across node groups is not allowed. Single-node clusters do + // not specify worker configs. + FlexibleInstanceGroupConfig worker_flexible_config = 32 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The High Obtainability (HO) config settings for a cluster's + // secondary worker instances. + // + // In High Obtainability (HO) mode, flexible configs are the single source of + // truth for desired cluster configuration. `num_instances` represents the + // desired capacity of the secondary worker group and is mutable via cluster + // updates and autoscaling. + // + // Only one of + // [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config] + // or `secondary_worker_flexible_config` can be set. + // + // In High Obtainability (HO) mode, secondary workers are optional. If + // secondary workers are used in an HO cluster, they must be configured using + // `secondary_worker_flexible_config` (not `secondary_worker_config`). + FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 + [(google.api.field_behavior) = OPTIONAL]; } // The Dataproc cluster config for a cluster that does not directly control the @@ -508,6 +564,12 @@ message GceClusterConfig { // * `[zone]` string zone_uri = 1 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Controls how instances within this Cluster are allowed to exist + // in multiple Zones within the Region. Only one of `zone_uri` or + // `multi_zone_config` must be set. + MultiZoneConfig multi_zone_config = 19 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. The Compute Engine network to be used for machine // communications. Cannot be specified with subnetwork_uri. If neither // `network_uri` nor `subnetwork_uri` is specified, the "default" network of @@ -620,6 +682,22 @@ message GceClusterConfig { [(google.api.field_behavior) = OPTIONAL]; } +// Configuration for multi-zonal clusters that can create instances across +// multiple Zones within the Region. +message MultiZoneConfig { + // The distribution shape of the nodes in the multi-zonal cluster. + enum TargetShape { + // Target shape is unspecified. Setting this will cause error. + TARGET_SHAPE_UNSPECIFIED = 0; + + // Instances may exist in any Zones within the Region. + ANY = 1; + } + + // Optional. The distribution shape of the nodes in the multi-zonal cluster. + TargetShape target_shape = 1 [(google.api.field_behavior) = OPTIONAL]; +} + // Node Group Affinity for clusters using sole-tenant node groups. // **The Dataproc `NodeGroupAffinity` resource is not related to the // Dataproc [NodeGroup][google.cloud.dataproc.v1.NodeGroup] resource.** @@ -944,6 +1022,66 @@ message InstanceFlexibilityPolicy { [(google.api.field_behavior) = OUTPUT_ONLY]; } +// The configuration for High Obtainability (HO) flexible instance groups. +// Flexible instance group configs serve as the single source of truth for +// desired state. +message FlexibleInstanceGroupConfig { + // Controls the hardware class for the flexible instance group. + enum HardwareClass { + // Unspecified hardware class. + HARDWARE_CLASS_UNSPECIFIED = 0; + + // Standard hardware class. + // Provides a balanced compute configuration with approximately 4GB of + // memory per vCPU and standard disk storage tiers. + // + // Candidate machine types include `n4-standard`, `n4d-standard`, + // `n2-standard`, and `n2d-standard` (Rank 0), and `c4-standard` and + // `c4d-standard` (Rank 1) (for requested core counts 2, 4, 8, 16, 32). + // + // Warning: The specific machine families and types selected for this + // hardware class are subject to change. Users should not take a + // dependency on the underlying machine type selection. + STANDARD = 1; + + // Performance hardware class. + // Provides a high-performance configuration with approximately 8GB of + // memory per vCPU (e.g. high-memory machine types) and higher-tier disk + // configurations (e.g. higher IOPS and throughput). + // + // Candidate machine types include `n4-highmem`, `n4d-highmem`, + // `n2-highmem`, and `n2d-highmem` (Rank 0), and `c4-highmem` and + // `c4d-highmem` (Rank 1) (for requested core counts 2, 4, 8, 16, 32). + // `n4`, `n4d`, `c4`, and `c4d` use Hyperdisk Balanced with provisioned + // storage, whereas `n2` and `n2d` use SSD persistent disks. + // + // Warning: The specific machine families and types selected for this + // hardware class are subject to change. Users should not take a + // dependency on the underlying machine type selection. + PERFORMANCE = 2; + } + + // Optional. The number of VM instances requested. + // + // For master instances, this must be 1. For worker and secondary worker + // instances, this represents the desired capacity of the group and is mutable + // via cluster update operations and autoscaling. + int32 num_instances = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The number of vCPUs per instance. Must be a power of 2 + // (2, 4, 8, 16, 32). This is a create-time specification and is not currently + // mutable via update masks. + int32 core_count = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The boot disk size in GB. This is a create-time specification and + // is not currently mutable via update masks. + int32 boot_disk_size_gb = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The hardware class of the instances. This is a create-time + // specification and is not currently mutable via update masks. + HardwareClass hardware_class = 4 [(google.api.field_behavior) = OPTIONAL]; +} + // Specifies the type and number of accelerator cards attached to the instances // of an instance. See [GPUs on Compute // Engine](https://cloud.google.com/compute/docs/gpus/). diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java index e3470370e0bd..81c58b62acce 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java @@ -571,7 +571,9 @@ * * *

ListLocations - *

Lists information about the supported locations for this service. + *

Lists information about the supported locations for this service. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    @@ -2779,6 +2781,7 @@ public final StartBackfillJobResponse startBackfillJob(String object) { * StartBackfillJobRequest.newBuilder() * .setObject( * StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString()) + * .setEventFilter(EventFilter.newBuilder().build()) * .build(); * StartBackfillJobResponse response = datastreamClient.startBackfillJob(request); * } @@ -2808,6 +2811,7 @@ public final StartBackfillJobResponse startBackfillJob(StartBackfillJobRequest r * StartBackfillJobRequest.newBuilder() * .setObject( * StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString()) + * .setEventFilter(EventFilter.newBuilder().build()) * .build(); * ApiFuture future = * datastreamClient.startBackfillJobCallable().futureCall(request); @@ -4359,6 +4363,18 @@ public final UnaryCallable deleteRouteCallable() /** * Lists information about the supported locations for this service. * + *

    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

    Sample code: * *

    {@code
    @@ -4392,6 +4408,18 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
       /**
        * Lists information about the supported locations for this service.
        *
    +   * 

    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

    Sample code: * *

    {@code
    @@ -4426,6 +4454,18 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
       /**
        * Lists information about the supported locations for this service.
        *
    +   * 

    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

    Sample code: * *

    {@code
    diff --git a/java-datastream/google-cloud-datastream/src/main/resources/META-INF/native-image/com.google.cloud.datastream.v1/reflect-config.json b/java-datastream/google-cloud-datastream/src/main/resources/META-INF/native-image/com.google.cloud.datastream.v1/reflect-config.json
    index 04c35f90a64c..6b8396de0058 100644
    --- a/java-datastream/google-cloud-datastream/src/main/resources/META-INF/native-image/com.google.cloud.datastream.v1/reflect-config.json
    +++ b/java-datastream/google-cloud-datastream/src/main/resources/META-INF/native-image/com.google.cloud.datastream.v1/reflect-config.json
    @@ -170,6 +170,33 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.api.FieldInfo",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.FieldInfo$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.FieldInfo$Format",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.api.FlowControlLimitExceededBehaviorProto",
         "queryAllDeclaredConstructors": true,
    @@ -476,6 +503,24 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.api.TypeReference",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.TypeReference$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.datastream.v1.AvroFileFormat",
         "queryAllDeclaredConstructors": true,
    @@ -530,6 +575,24 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.datastream.v1.BigQueryClustering",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.BigQueryClustering$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.datastream.v1.BigQueryDestinationConfig",
         "queryAllDeclaredConstructors": true,
    @@ -674,6 +737,24 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.datastream.v1.BigQueryPartitioning",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.BigQueryPartitioning$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.datastream.v1.BigQueryProfile",
         "queryAllDeclaredConstructors": true,
    @@ -854,6 +935,42 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.datastream.v1.DataverseProfile",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.DataverseProfile$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.DataverseSourceConfig",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.DataverseSourceConfig$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.datastream.v1.DeleteConnectionProfileRequest",
         "queryAllDeclaredConstructors": true,
    @@ -998,6 +1115,24 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.datastream.v1.EventFilter",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.EventFilter$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.datastream.v1.FetchStaticIpsRequest",
         "queryAllDeclaredConstructors": true,
    @@ -1196,6 +1331,42 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.datastream.v1.IngestionTimePartition",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.IngestionTimePartition$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.IntegerRangePartition",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.IntegerRangePartition$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.datastream.v1.JsonFileFormat",
         "queryAllDeclaredConstructors": true,
    @@ -1430,6 +1601,24 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.datastream.v1.MongodbChangeStreamPosition",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.MongodbChangeStreamPosition$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.datastream.v1.MongodbCluster",
         "queryAllDeclaredConstructors": true,
    @@ -1502,6 +1691,15 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.datastream.v1.MongodbJsonMode",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.datastream.v1.MongodbProfile",
         "queryAllDeclaredConstructors": true,
    @@ -1754,6 +1952,42 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.datastream.v1.OauthClientCredentials",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.OauthClientCredentials$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.OauthRefreshTokenCredentials",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.OauthRefreshTokenCredentials$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.datastream.v1.OperationMetadata",
         "queryAllDeclaredConstructors": true,
    @@ -2042,6 +2276,15 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.datastream.v1.PartitioningTimeGranularity",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.datastream.v1.PostgresqlColumn",
         "queryAllDeclaredConstructors": true,
    @@ -2322,7 +2565,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SalesforceObject",
    +    "name": "com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2331,7 +2574,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SalesforceObject$Builder",
    +    "name": "com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2340,7 +2583,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SalesforceOrg",
    +    "name": "com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2349,7 +2592,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SalesforceOrg$Builder",
    +    "name": "com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2358,7 +2601,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SalesforceProfile",
    +    "name": "com.google.cloud.datastream.v1.SalesforceObject",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2367,7 +2610,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SalesforceProfile$Builder",
    +    "name": "com.google.cloud.datastream.v1.SalesforceObject$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2376,7 +2619,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SalesforceProfile$Oauth2ClientCredentials",
    +    "name": "com.google.cloud.datastream.v1.SalesforceOrg",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2385,7 +2628,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SalesforceProfile$Oauth2ClientCredentials$Builder",
    +    "name": "com.google.cloud.datastream.v1.SalesforceOrg$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2394,7 +2637,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SalesforceProfile$UserCredentials",
    +    "name": "com.google.cloud.datastream.v1.SalesforceProfile",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2403,7 +2646,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SalesforceProfile$UserCredentials$Builder",
    +    "name": "com.google.cloud.datastream.v1.SalesforceProfile$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2412,7 +2655,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SalesforceSourceConfig",
    +    "name": "com.google.cloud.datastream.v1.SalesforceProfile$Oauth2ClientCredentials",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2421,7 +2664,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SalesforceSourceConfig$Builder",
    +    "name": "com.google.cloud.datastream.v1.SalesforceProfile$Oauth2ClientCredentials$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2430,7 +2673,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SourceConfig",
    +    "name": "com.google.cloud.datastream.v1.SalesforceProfile$UserCredentials",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2439,7 +2682,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SourceConfig$Builder",
    +    "name": "com.google.cloud.datastream.v1.SalesforceProfile$UserCredentials$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2448,7 +2691,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier",
    +    "name": "com.google.cloud.datastream.v1.SalesforceSourceConfig",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2457,7 +2700,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$Builder",
    +    "name": "com.google.cloud.datastream.v1.SalesforceSourceConfig$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2466,7 +2709,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$MongodbObjectIdentifier",
    +    "name": "com.google.cloud.datastream.v1.Secret",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2475,7 +2718,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$MongodbObjectIdentifier$Builder",
    +    "name": "com.google.cloud.datastream.v1.Secret$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2484,7 +2727,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$MysqlObjectIdentifier",
    +    "name": "com.google.cloud.datastream.v1.ServiceNowProfile",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2493,7 +2736,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$MysqlObjectIdentifier$Builder",
    +    "name": "com.google.cloud.datastream.v1.ServiceNowProfile$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2502,7 +2745,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$OracleObjectIdentifier",
    +    "name": "com.google.cloud.datastream.v1.ServiceNowSourceConfig",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2511,7 +2754,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$OracleObjectIdentifier$Builder",
    +    "name": "com.google.cloud.datastream.v1.ServiceNowSourceConfig$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2520,7 +2763,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$PostgresqlObjectIdentifier",
    +    "name": "com.google.cloud.datastream.v1.SourceCatalog",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2529,7 +2772,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$PostgresqlObjectIdentifier$Builder",
    +    "name": "com.google.cloud.datastream.v1.SourceCatalog$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2538,7 +2781,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$SalesforceObjectIdentifier",
    +    "name": "com.google.cloud.datastream.v1.SourceConfig",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2547,7 +2790,151 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$SalesforceObjectIdentifier$Builder",
    +    "name": "com.google.cloud.datastream.v1.SourceConfig$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SourceObject",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SourceObject$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$MongodbObjectIdentifier",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$MongodbObjectIdentifier$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$MysqlObjectIdentifier",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$MysqlObjectIdentifier$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$OracleObjectIdentifier",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$OracleObjectIdentifier$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$PostgresqlObjectIdentifier",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$PostgresqlObjectIdentifier$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$SalesforceObjectIdentifier",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$SalesforceObjectIdentifier$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$SpannerObjectIdentifier",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$SpannerObjectIdentifier$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -2573,6 +2960,159 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SourceProperty",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SourceProperty$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SpannerChangeStreamPosition",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SpannerChangeStreamPosition$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SpannerColumn",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SpannerColumn$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SpannerDatabase",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SpannerDatabase$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SpannerProfile",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SpannerProfile$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SpannerSchema",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SpannerSchema$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SpannerSourceConfig",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SpannerSourceConfig$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SpannerSourceConfig$SpannerRpcPriority",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SpannerTable",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SpannerTable$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.datastream.v1.SqlServerChangeTables",
         "queryAllDeclaredConstructors": true,
    @@ -2591,6 +3131,24 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SqlServerChangeTables$SqlServerDdlConfig",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SqlServerChangeTables$SqlServerDdlConfig$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.datastream.v1.SqlServerColumn",
         "queryAllDeclaredConstructors": true,
    @@ -2699,6 +3257,78 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SqlServerSslConfig",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SqlServerSslConfig$BasicEncryption",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SqlServerSslConfig$BasicEncryption$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SqlServerSslConfig$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SqlServerSslConfig$EncryptionAndServerValidation",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SqlServerSslConfig$EncryptionAndServerValidation$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SqlServerSslConfig$EncryptionNotEnforced",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.SqlServerSslConfig$EncryptionNotEnforced$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.datastream.v1.SqlServerTable",
         "queryAllDeclaredConstructors": true,
    @@ -2915,6 +3545,60 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.datastream.v1.Stream$RuleSet",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.Stream$RuleSet$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.Stream$RuleSet$CustomizationRule",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.Stream$RuleSet$CustomizationRule$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.Stream$RuleSet$ObjectFilter",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.Stream$RuleSet$ObjectFilter$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.datastream.v1.Stream$State",
         "queryAllDeclaredConstructors": true,
    @@ -2942,6 +3626,24 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.datastream.v1.TimeUnitPartition",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.TimeUnitPartition$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.datastream.v1.UpdateConnectionProfileRequest",
         "queryAllDeclaredConstructors": true,
    @@ -2978,6 +3680,24 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.datastream.v1.UserPasswordCredentials",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.UserPasswordCredentials$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.datastream.v1.Validation",
         "queryAllDeclaredConstructors": true,
    @@ -3068,6 +3788,42 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.datastream.v1.WorkdayProfile",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.WorkdayProfile$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.WorkdaySourceConfig",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.datastream.v1.WorkdaySourceConfig$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.location.GetLocationRequest",
         "queryAllDeclaredConstructors": true,
    diff --git a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientHttpJsonTest.java b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientHttpJsonTest.java
    index 989c75224fb8..847b49aee79b 100644
    --- a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientHttpJsonTest.java
    +++ b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientHttpJsonTest.java
    @@ -764,6 +764,7 @@ public void getStreamTest() throws Exception {
                 .setLastRecoveryTime(Timestamp.newBuilder().build())
                 .setSatisfiesPzs(true)
                 .setSatisfiesPzi(true)
    +            .addAllRuleSets(new ArrayList())
                 .build();
         mockService.addResponse(expectedResponse);
     
    @@ -819,6 +820,7 @@ public void getStreamTest2() throws Exception {
                 .setLastRecoveryTime(Timestamp.newBuilder().build())
                 .setSatisfiesPzs(true)
                 .setSatisfiesPzi(true)
    +            .addAllRuleSets(new ArrayList())
                 .build();
         mockService.addResponse(expectedResponse);
     
    @@ -874,6 +876,7 @@ public void createStreamTest() throws Exception {
                 .setLastRecoveryTime(Timestamp.newBuilder().build())
                 .setSatisfiesPzs(true)
                 .setSatisfiesPzi(true)
    +            .addAllRuleSets(new ArrayList())
                 .build();
         Operation resultOperation =
             Operation.newBuilder()
    @@ -938,6 +941,7 @@ public void createStreamTest2() throws Exception {
                 .setLastRecoveryTime(Timestamp.newBuilder().build())
                 .setSatisfiesPzs(true)
                 .setSatisfiesPzi(true)
    +            .addAllRuleSets(new ArrayList())
                 .build();
         Operation resultOperation =
             Operation.newBuilder()
    @@ -1002,6 +1006,7 @@ public void updateStreamTest() throws Exception {
                 .setLastRecoveryTime(Timestamp.newBuilder().build())
                 .setSatisfiesPzs(true)
                 .setSatisfiesPzi(true)
    +            .addAllRuleSets(new ArrayList())
                 .build();
         Operation resultOperation =
             Operation.newBuilder()
    @@ -1025,6 +1030,7 @@ public void updateStreamTest() throws Exception {
                 .setLastRecoveryTime(Timestamp.newBuilder().build())
                 .setSatisfiesPzs(true)
                 .setSatisfiesPzi(true)
    +            .addAllRuleSets(new ArrayList())
                 .build();
         FieldMask updateMask = FieldMask.newBuilder().build();
     
    @@ -1068,6 +1074,7 @@ public void updateStreamExceptionTest() throws Exception {
                   .setLastRecoveryTime(Timestamp.newBuilder().build())
                   .setSatisfiesPzs(true)
                   .setSatisfiesPzi(true)
    +              .addAllRuleSets(new ArrayList())
                   .build();
           FieldMask updateMask = FieldMask.newBuilder().build();
           client.updateStreamAsync(stream, updateMask).get();
    @@ -1182,6 +1189,7 @@ public void runStreamTest() throws Exception {
                 .setLastRecoveryTime(Timestamp.newBuilder().build())
                 .setSatisfiesPzs(true)
                 .setSatisfiesPzi(true)
    +            .addAllRuleSets(new ArrayList())
                 .build();
         Operation resultOperation =
             Operation.newBuilder()
    @@ -1248,6 +1256,7 @@ public void getStreamObjectTest() throws Exception {
                 .addAllErrors(new ArrayList())
                 .setBackfillJob(BackfillJob.newBuilder().build())
                 .setSourceObject(SourceObjectIdentifier.newBuilder().build())
    +            .addAllCustomizationRules(new ArrayList())
                 .build();
         mockService.addResponse(expectedResponse);
     
    @@ -1300,6 +1309,7 @@ public void getStreamObjectTest2() throws Exception {
                 .addAllErrors(new ArrayList())
                 .setBackfillJob(BackfillJob.newBuilder().build())
                 .setSourceObject(SourceObjectIdentifier.newBuilder().build())
    +            .addAllCustomizationRules(new ArrayList())
                 .build();
         mockService.addResponse(expectedResponse);
     
    @@ -1353,6 +1363,7 @@ public void lookupStreamObjectTest() throws Exception {
                 .addAllErrors(new ArrayList())
                 .setBackfillJob(BackfillJob.newBuilder().build())
                 .setSourceObject(SourceObjectIdentifier.newBuilder().build())
    +            .addAllCustomizationRules(new ArrayList())
                 .build();
         mockService.addResponse(expectedResponse);
     
    diff --git a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java
    index 253f45a8008f..6c3ef92daf4c 100644
    --- a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java
    +++ b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java
    @@ -590,6 +590,8 @@ public void discoverConnectionProfileTest() throws Exception {
         Assert.assertEquals(request.getSqlServerRdbms(), actualRequest.getSqlServerRdbms());
         Assert.assertEquals(request.getSalesforceOrg(), actualRequest.getSalesforceOrg());
         Assert.assertEquals(request.getMongodbCluster(), actualRequest.getMongodbCluster());
    +    Assert.assertEquals(request.getSpannerDatabase(), actualRequest.getSpannerDatabase());
    +    Assert.assertEquals(request.getSourceCatalog(), actualRequest.getSourceCatalog());
         Assert.assertTrue(
             channelProvider.isHeaderSent(
                 ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    @@ -717,6 +719,7 @@ public void getStreamTest() throws Exception {
                 .setLastRecoveryTime(Timestamp.newBuilder().build())
                 .setSatisfiesPzs(true)
                 .setSatisfiesPzi(true)
    +            .addAllRuleSets(new ArrayList())
                 .build();
         mockDatastream.addResponse(expectedResponse);
     
    @@ -766,6 +769,7 @@ public void getStreamTest2() throws Exception {
                 .setLastRecoveryTime(Timestamp.newBuilder().build())
                 .setSatisfiesPzs(true)
                 .setSatisfiesPzi(true)
    +            .addAllRuleSets(new ArrayList())
                 .build();
         mockDatastream.addResponse(expectedResponse);
     
    @@ -815,6 +819,7 @@ public void createStreamTest() throws Exception {
                 .setLastRecoveryTime(Timestamp.newBuilder().build())
                 .setSatisfiesPzs(true)
                 .setSatisfiesPzi(true)
    +            .addAllRuleSets(new ArrayList())
                 .build();
         Operation resultOperation =
             Operation.newBuilder()
    @@ -878,6 +883,7 @@ public void createStreamTest2() throws Exception {
                 .setLastRecoveryTime(Timestamp.newBuilder().build())
                 .setSatisfiesPzs(true)
                 .setSatisfiesPzi(true)
    +            .addAllRuleSets(new ArrayList())
                 .build();
         Operation resultOperation =
             Operation.newBuilder()
    @@ -941,6 +947,7 @@ public void updateStreamTest() throws Exception {
                 .setLastRecoveryTime(Timestamp.newBuilder().build())
                 .setSatisfiesPzs(true)
                 .setSatisfiesPzi(true)
    +            .addAllRuleSets(new ArrayList())
                 .build();
         Operation resultOperation =
             Operation.newBuilder()
    @@ -1085,6 +1092,7 @@ public void runStreamTest() throws Exception {
                 .setLastRecoveryTime(Timestamp.newBuilder().build())
                 .setSatisfiesPzs(true)
                 .setSatisfiesPzi(true)
    +            .addAllRuleSets(new ArrayList())
                 .build();
         Operation resultOperation =
             Operation.newBuilder()
    @@ -1150,6 +1158,7 @@ public void getStreamObjectTest() throws Exception {
                 .addAllErrors(new ArrayList())
                 .setBackfillJob(BackfillJob.newBuilder().build())
                 .setSourceObject(SourceObjectIdentifier.newBuilder().build())
    +            .addAllCustomizationRules(new ArrayList())
                 .build();
         mockDatastream.addResponse(expectedResponse);
     
    @@ -1196,6 +1205,7 @@ public void getStreamObjectTest2() throws Exception {
                 .addAllErrors(new ArrayList())
                 .setBackfillJob(BackfillJob.newBuilder().build())
                 .setSourceObject(SourceObjectIdentifier.newBuilder().build())
    +            .addAllCustomizationRules(new ArrayList())
                 .build();
         mockDatastream.addResponse(expectedResponse);
     
    @@ -1241,6 +1251,7 @@ public void lookupStreamObjectTest() throws Exception {
                 .addAllErrors(new ArrayList())
                 .setBackfillJob(BackfillJob.newBuilder().build())
                 .setSourceObject(SourceObjectIdentifier.newBuilder().build())
    +            .addAllCustomizationRules(new ArrayList())
                 .build();
         mockDatastream.addResponse(expectedResponse);
     
    diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java
    index d1064e9d9f16..5b7b70cecee2 100644
    --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java
    +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java
    @@ -814,6 +814,65 @@ public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int inde
         return errors_.get(index);
       }
     
    +  public static final int EVENT_FILTER_FIELD_NUMBER = 7;
    +  private com.google.cloud.datastream.v1.EventFilter eventFilter_;
    +
    +  /**
    +   *
    +   *
    +   * 
    +   * Output only. The filter for performing a partial backfill.
    +   * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the eventFilter field is set. + */ + @java.lang.Override + public boolean hasEventFilter() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Output only. The filter for performing a partial backfill.
    +   * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The eventFilter. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.EventFilter getEventFilter() { + return eventFilter_ == null + ? com.google.cloud.datastream.v1.EventFilter.getDefaultInstance() + : eventFilter_; + } + + /** + * + * + *
    +   * Output only. The filter for performing a partial backfill.
    +   * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.EventFilterOrBuilder getEventFilterOrBuilder() { + return eventFilter_ == null + ? com.google.cloud.datastream.v1.EventFilter.getDefaultInstance() + : eventFilter_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -844,6 +903,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < errors_.size(); i++) { output.writeMessage(5, errors_.get(i)); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getEventFilter()); + } getUnknownFields().writeTo(output); } @@ -869,6 +931,9 @@ public int getSerializedSize() { for (int i = 0; i < errors_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, errors_.get(i)); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getEventFilter()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -896,6 +961,10 @@ public boolean equals(final java.lang.Object obj) { if (!getLastEndTime().equals(other.getLastEndTime())) return false; } if (!getErrorsList().equals(other.getErrorsList())) return false; + if (hasEventFilter() != other.hasEventFilter()) return false; + if (hasEventFilter()) { + if (!getEventFilter().equals(other.getEventFilter())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -923,6 +992,10 @@ public int hashCode() { hash = (37 * hash) + ERRORS_FIELD_NUMBER; hash = (53 * hash) + getErrorsList().hashCode(); } + if (hasEventFilter()) { + hash = (37 * hash) + EVENT_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getEventFilter().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1067,6 +1140,7 @@ private void maybeForceBuilderInitialization() { internalGetLastStartTimeFieldBuilder(); internalGetLastEndTimeFieldBuilder(); internalGetErrorsFieldBuilder(); + internalGetEventFilterFieldBuilder(); } } @@ -1093,6 +1167,11 @@ public Builder clear() { errorsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); + eventFilter_ = null; + if (eventFilterBuilder_ != null) { + eventFilterBuilder_.dispose(); + eventFilterBuilder_ = null; + } return this; } @@ -1159,6 +1238,11 @@ private void buildPartial0(com.google.cloud.datastream.v1.BackfillJob result) { lastEndTimeBuilder_ == null ? lastEndTime_ : lastEndTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.eventFilter_ = + eventFilterBuilder_ == null ? eventFilter_ : eventFilterBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -1213,6 +1297,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.BackfillJob other) { } } } + if (other.hasEventFilter()) { + mergeEventFilter(other.getEventFilter()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1278,6 +1365,13 @@ public Builder mergeFrom( } break; } // case 42 + case 58: + { + input.readMessage( + internalGetEventFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2326,6 +2420,219 @@ public java.util.List getErrorsBui return errorsBuilder_; } + private com.google.cloud.datastream.v1.EventFilter eventFilter_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.EventFilter, + com.google.cloud.datastream.v1.EventFilter.Builder, + com.google.cloud.datastream.v1.EventFilterOrBuilder> + eventFilterBuilder_; + + /** + * + * + *
    +     * Output only. The filter for performing a partial backfill.
    +     * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the eventFilter field is set. + */ + public boolean hasEventFilter() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +     * Output only. The filter for performing a partial backfill.
    +     * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The eventFilter. + */ + public com.google.cloud.datastream.v1.EventFilter getEventFilter() { + if (eventFilterBuilder_ == null) { + return eventFilter_ == null + ? com.google.cloud.datastream.v1.EventFilter.getDefaultInstance() + : eventFilter_; + } else { + return eventFilterBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. The filter for performing a partial backfill.
    +     * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEventFilter(com.google.cloud.datastream.v1.EventFilter value) { + if (eventFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventFilter_ = value; + } else { + eventFilterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The filter for performing a partial backfill.
    +     * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEventFilter( + com.google.cloud.datastream.v1.EventFilter.Builder builderForValue) { + if (eventFilterBuilder_ == null) { + eventFilter_ = builderForValue.build(); + } else { + eventFilterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The filter for performing a partial backfill.
    +     * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEventFilter(com.google.cloud.datastream.v1.EventFilter value) { + if (eventFilterBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && eventFilter_ != null + && eventFilter_ != com.google.cloud.datastream.v1.EventFilter.getDefaultInstance()) { + getEventFilterBuilder().mergeFrom(value); + } else { + eventFilter_ = value; + } + } else { + eventFilterBuilder_.mergeFrom(value); + } + if (eventFilter_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. The filter for performing a partial backfill.
    +     * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEventFilter() { + bitField0_ = (bitField0_ & ~0x00000020); + eventFilter_ = null; + if (eventFilterBuilder_ != null) { + eventFilterBuilder_.dispose(); + eventFilterBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The filter for performing a partial backfill.
    +     * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.datastream.v1.EventFilter.Builder getEventFilterBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetEventFilterFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. The filter for performing a partial backfill.
    +     * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.datastream.v1.EventFilterOrBuilder getEventFilterOrBuilder() { + if (eventFilterBuilder_ != null) { + return eventFilterBuilder_.getMessageOrBuilder(); + } else { + return eventFilter_ == null + ? com.google.cloud.datastream.v1.EventFilter.getDefaultInstance() + : eventFilter_; + } + } + + /** + * + * + *
    +     * Output only. The filter for performing a partial backfill.
    +     * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.EventFilter, + com.google.cloud.datastream.v1.EventFilter.Builder, + com.google.cloud.datastream.v1.EventFilterOrBuilder> + internalGetEventFilterFieldBuilder() { + if (eventFilterBuilder_ == null) { + eventFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.EventFilter, + com.google.cloud.datastream.v1.EventFilter.Builder, + com.google.cloud.datastream.v1.EventFilterOrBuilder>( + getEventFilter(), getParentForChildren(), isClean()); + eventFilter_ = null; + } + return eventFilterBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.BackfillJob) } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java index 8f1f2034f9d2..967cb5ef5f70 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java @@ -232,4 +232,47 @@ public interface BackfillJobOrBuilder * */ com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index); + + /** + * + * + *
    +   * Output only. The filter for performing a partial backfill.
    +   * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the eventFilter field is set. + */ + boolean hasEventFilter(); + + /** + * + * + *
    +   * Output only. The filter for performing a partial backfill.
    +   * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The eventFilter. + */ + com.google.cloud.datastream.v1.EventFilter getEventFilter(); + + /** + * + * + *
    +   * Output only. The filter for performing a partial backfill.
    +   * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.datastream.v1.EventFilterOrBuilder getEventFilterOrBuilder(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryClustering.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryClustering.java new file mode 100644 index 000000000000..2e6941efb776 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryClustering.java @@ -0,0 +1,697 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * BigQuery clustering configuration.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.BigQueryClustering} + */ +@com.google.protobuf.Generated +public final class BigQueryClustering extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BigQueryClustering) + BigQueryClusteringOrBuilder { + 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= */ "", + "BigQueryClustering"); + } + + // Use BigQueryClustering.newBuilder() to construct. + private BigQueryClustering(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BigQueryClustering() { + columns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryClustering_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryClustering_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryClustering.class, + com.google.cloud.datastream.v1.BigQueryClustering.Builder.class); + } + + public static final int COLUMNS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList columns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Required. Column names to set as clustering columns.
    +   * 
    + * + * repeated string columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the columns. + */ + public com.google.protobuf.ProtocolStringList getColumnsList() { + return columns_; + } + + /** + * + * + *
    +   * Required. Column names to set as clustering columns.
    +   * 
    + * + * repeated string columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of columns. + */ + public int getColumnsCount() { + return columns_.size(); + } + + /** + * + * + *
    +   * Required. Column names to set as clustering columns.
    +   * 
    + * + * repeated string columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The columns at the given index. + */ + public java.lang.String getColumns(int index) { + return columns_.get(index); + } + + /** + * + * + *
    +   * Required. Column names to set as clustering columns.
    +   * 
    + * + * repeated string columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the columns at the given index. + */ + public com.google.protobuf.ByteString getColumnsBytes(int index) { + return columns_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < columns_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, columns_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < columns_.size(); i++) { + dataSize += computeStringSizeNoTag(columns_.getRaw(i)); + } + size += dataSize; + size += 1 * getColumnsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.datastream.v1.BigQueryClustering)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.BigQueryClustering other = + (com.google.cloud.datastream.v1.BigQueryClustering) obj; + + if (!getColumnsList().equals(other.getColumnsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getColumnsCount() > 0) { + hash = (37 * hash) + COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getColumnsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.BigQueryClustering parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryClustering 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.datastream.v1.BigQueryClustering parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryClustering 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.datastream.v1.BigQueryClustering parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryClustering parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.BigQueryClustering parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryClustering 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.datastream.v1.BigQueryClustering parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryClustering 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.datastream.v1.BigQueryClustering parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryClustering 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.datastream.v1.BigQueryClustering 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; + } + + /** + * + * + *
    +   * BigQuery clustering configuration.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.BigQueryClustering} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BigQueryClustering) + com.google.cloud.datastream.v1.BigQueryClusteringOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryClustering_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryClustering_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryClustering.class, + com.google.cloud.datastream.v1.BigQueryClustering.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.BigQueryClustering.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + columns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryClustering_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryClustering getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.BigQueryClustering.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryClustering build() { + com.google.cloud.datastream.v1.BigQueryClustering result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryClustering buildPartial() { + com.google.cloud.datastream.v1.BigQueryClustering result = + new com.google.cloud.datastream.v1.BigQueryClustering(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.BigQueryClustering result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + columns_.makeImmutable(); + result.columns_ = columns_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.BigQueryClustering) { + return mergeFrom((com.google.cloud.datastream.v1.BigQueryClustering) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.BigQueryClustering other) { + if (other == com.google.cloud.datastream.v1.BigQueryClustering.getDefaultInstance()) + return this; + if (!other.columns_.isEmpty()) { + if (columns_.isEmpty()) { + columns_ = other.columns_; + bitField0_ |= 0x00000001; + } else { + ensureColumnsIsMutable(); + columns_.addAll(other.columns_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureColumnsIsMutable(); + columns_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList columns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureColumnsIsMutable() { + if (!columns_.isModifiable()) { + columns_ = new com.google.protobuf.LazyStringArrayList(columns_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
    +     * Required. Column names to set as clustering columns.
    +     * 
    + * + * repeated string columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the columns. + */ + public com.google.protobuf.ProtocolStringList getColumnsList() { + columns_.makeImmutable(); + return columns_; + } + + /** + * + * + *
    +     * Required. Column names to set as clustering columns.
    +     * 
    + * + * repeated string columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of columns. + */ + public int getColumnsCount() { + return columns_.size(); + } + + /** + * + * + *
    +     * Required. Column names to set as clustering columns.
    +     * 
    + * + * repeated string columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The columns at the given index. + */ + public java.lang.String getColumns(int index) { + return columns_.get(index); + } + + /** + * + * + *
    +     * Required. Column names to set as clustering columns.
    +     * 
    + * + * repeated string columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the columns at the given index. + */ + public com.google.protobuf.ByteString getColumnsBytes(int index) { + return columns_.getByteString(index); + } + + /** + * + * + *
    +     * Required. Column names to set as clustering columns.
    +     * 
    + * + * repeated string columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The columns to set. + * @return This builder for chaining. + */ + public Builder setColumns(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Column names to set as clustering columns.
    +     * 
    + * + * repeated string columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The columns to add. + * @return This builder for chaining. + */ + public Builder addColumns(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Column names to set as clustering columns.
    +     * 
    + * + * repeated string columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The columns to add. + * @return This builder for chaining. + */ + public Builder addAllColumns(java.lang.Iterable values) { + ensureColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columns_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Column names to set as clustering columns.
    +     * 
    + * + * repeated string columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearColumns() { + columns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Column names to set as clustering columns.
    +     * 
    + * + * repeated string columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the columns to add. + * @return This builder for chaining. + */ + public Builder addColumnsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureColumnsIsMutable(); + columns_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.BigQueryClustering) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BigQueryClustering) + private static final com.google.cloud.datastream.v1.BigQueryClustering DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.BigQueryClustering(); + } + + public static com.google.cloud.datastream.v1.BigQueryClustering getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryClustering 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.datastream.v1.BigQueryClustering getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryClusteringOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryClusteringOrBuilder.java new file mode 100644 index 000000000000..8df2c739e809 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryClusteringOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface BigQueryClusteringOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryClustering) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Column names to set as clustering columns.
    +   * 
    + * + * repeated string columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the columns. + */ + java.util.List getColumnsList(); + + /** + * + * + *
    +   * Required. Column names to set as clustering columns.
    +   * 
    + * + * repeated string columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of columns. + */ + int getColumnsCount(); + + /** + * + * + *
    +   * Required. Column names to set as clustering columns.
    +   * 
    + * + * repeated string columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The columns at the given index. + */ + java.lang.String getColumns(int index); + + /** + * + * + *
    +   * Required. Column names to set as clustering columns.
    +   * 
    + * + * repeated string columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the columns at the given index. + */ + com.google.protobuf.ByteString getColumnsBytes(int index); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryPartitioning.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryPartitioning.java new file mode 100644 index 000000000000..bf8959a767c2 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryPartitioning.java @@ -0,0 +1,1535 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * BigQuery partitioning configuration.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.BigQueryPartitioning} + */ +@com.google.protobuf.Generated +public final class BigQueryPartitioning extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BigQueryPartitioning) + BigQueryPartitioningOrBuilder { + 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= */ "", + "BigQueryPartitioning"); + } + + // Use BigQueryPartitioning.newBuilder() to construct. + private BigQueryPartitioning(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BigQueryPartitioning() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryPartitioning_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryPartitioning_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryPartitioning.class, + com.google.cloud.datastream.v1.BigQueryPartitioning.Builder.class); + } + + private int partitioningCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object partitioning_; + + public enum PartitioningCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INTEGER_RANGE_PARTITION(100), + TIME_UNIT_PARTITION(101), + INGESTION_TIME_PARTITION(102), + PARTITIONING_NOT_SET(0); + private final int value; + + private PartitioningCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PartitioningCase valueOf(int value) { + return forNumber(value); + } + + public static PartitioningCase forNumber(int value) { + switch (value) { + case 100: + return INTEGER_RANGE_PARTITION; + case 101: + return TIME_UNIT_PARTITION; + case 102: + return INGESTION_TIME_PARTITION; + case 0: + return PARTITIONING_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PartitioningCase getPartitioningCase() { + return PartitioningCase.forNumber(partitioningCase_); + } + + public static final int INTEGER_RANGE_PARTITION_FIELD_NUMBER = 100; + + /** + * + * + *
    +   * Integer range partitioning.
    +   * 
    + * + * .google.cloud.datastream.v1.IntegerRangePartition integer_range_partition = 100; + * + * @return Whether the integerRangePartition field is set. + */ + @java.lang.Override + public boolean hasIntegerRangePartition() { + return partitioningCase_ == 100; + } + + /** + * + * + *
    +   * Integer range partitioning.
    +   * 
    + * + * .google.cloud.datastream.v1.IntegerRangePartition integer_range_partition = 100; + * + * @return The integerRangePartition. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.IntegerRangePartition getIntegerRangePartition() { + if (partitioningCase_ == 100) { + return (com.google.cloud.datastream.v1.IntegerRangePartition) partitioning_; + } + return com.google.cloud.datastream.v1.IntegerRangePartition.getDefaultInstance(); + } + + /** + * + * + *
    +   * Integer range partitioning.
    +   * 
    + * + * .google.cloud.datastream.v1.IntegerRangePartition integer_range_partition = 100; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.IntegerRangePartitionOrBuilder + getIntegerRangePartitionOrBuilder() { + if (partitioningCase_ == 100) { + return (com.google.cloud.datastream.v1.IntegerRangePartition) partitioning_; + } + return com.google.cloud.datastream.v1.IntegerRangePartition.getDefaultInstance(); + } + + public static final int TIME_UNIT_PARTITION_FIELD_NUMBER = 101; + + /** + * + * + *
    +   * Time unit column partitioning.
    +   * 
    + * + * .google.cloud.datastream.v1.TimeUnitPartition time_unit_partition = 101; + * + * @return Whether the timeUnitPartition field is set. + */ + @java.lang.Override + public boolean hasTimeUnitPartition() { + return partitioningCase_ == 101; + } + + /** + * + * + *
    +   * Time unit column partitioning.
    +   * 
    + * + * .google.cloud.datastream.v1.TimeUnitPartition time_unit_partition = 101; + * + * @return The timeUnitPartition. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.TimeUnitPartition getTimeUnitPartition() { + if (partitioningCase_ == 101) { + return (com.google.cloud.datastream.v1.TimeUnitPartition) partitioning_; + } + return com.google.cloud.datastream.v1.TimeUnitPartition.getDefaultInstance(); + } + + /** + * + * + *
    +   * Time unit column partitioning.
    +   * 
    + * + * .google.cloud.datastream.v1.TimeUnitPartition time_unit_partition = 101; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.TimeUnitPartitionOrBuilder getTimeUnitPartitionOrBuilder() { + if (partitioningCase_ == 101) { + return (com.google.cloud.datastream.v1.TimeUnitPartition) partitioning_; + } + return com.google.cloud.datastream.v1.TimeUnitPartition.getDefaultInstance(); + } + + public static final int INGESTION_TIME_PARTITION_FIELD_NUMBER = 102; + + /** + * + * + *
    +   * Ingestion time partitioning.
    +   * 
    + * + * .google.cloud.datastream.v1.IngestionTimePartition ingestion_time_partition = 102; + * + * @return Whether the ingestionTimePartition field is set. + */ + @java.lang.Override + public boolean hasIngestionTimePartition() { + return partitioningCase_ == 102; + } + + /** + * + * + *
    +   * Ingestion time partitioning.
    +   * 
    + * + * .google.cloud.datastream.v1.IngestionTimePartition ingestion_time_partition = 102; + * + * @return The ingestionTimePartition. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.IngestionTimePartition getIngestionTimePartition() { + if (partitioningCase_ == 102) { + return (com.google.cloud.datastream.v1.IngestionTimePartition) partitioning_; + } + return com.google.cloud.datastream.v1.IngestionTimePartition.getDefaultInstance(); + } + + /** + * + * + *
    +   * Ingestion time partitioning.
    +   * 
    + * + * .google.cloud.datastream.v1.IngestionTimePartition ingestion_time_partition = 102; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.IngestionTimePartitionOrBuilder + getIngestionTimePartitionOrBuilder() { + if (partitioningCase_ == 102) { + return (com.google.cloud.datastream.v1.IngestionTimePartition) partitioning_; + } + return com.google.cloud.datastream.v1.IngestionTimePartition.getDefaultInstance(); + } + + public static final int REQUIRE_PARTITION_FILTER_FIELD_NUMBER = 103; + private boolean requirePartitionFilter_ = false; + + /** + * + * + *
    +   * Optional. If true, queries over the table require a partition filter.
    +   * 
    + * + * bool require_partition_filter = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requirePartitionFilter. + */ + @java.lang.Override + public boolean getRequirePartitionFilter() { + return requirePartitionFilter_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (partitioningCase_ == 100) { + output.writeMessage( + 100, (com.google.cloud.datastream.v1.IntegerRangePartition) partitioning_); + } + if (partitioningCase_ == 101) { + output.writeMessage(101, (com.google.cloud.datastream.v1.TimeUnitPartition) partitioning_); + } + if (partitioningCase_ == 102) { + output.writeMessage( + 102, (com.google.cloud.datastream.v1.IngestionTimePartition) partitioning_); + } + if (requirePartitionFilter_ != false) { + output.writeBool(103, requirePartitionFilter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (partitioningCase_ == 100) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.datastream.v1.IntegerRangePartition) partitioning_); + } + if (partitioningCase_ == 101) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.datastream.v1.TimeUnitPartition) partitioning_); + } + if (partitioningCase_ == 102) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.datastream.v1.IngestionTimePartition) partitioning_); + } + if (requirePartitionFilter_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(103, requirePartitionFilter_); + } + 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.datastream.v1.BigQueryPartitioning)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.BigQueryPartitioning other = + (com.google.cloud.datastream.v1.BigQueryPartitioning) obj; + + if (getRequirePartitionFilter() != other.getRequirePartitionFilter()) return false; + if (!getPartitioningCase().equals(other.getPartitioningCase())) return false; + switch (partitioningCase_) { + case 100: + if (!getIntegerRangePartition().equals(other.getIntegerRangePartition())) return false; + break; + case 101: + if (!getTimeUnitPartition().equals(other.getTimeUnitPartition())) return false; + break; + case 102: + if (!getIngestionTimePartition().equals(other.getIngestionTimePartition())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REQUIRE_PARTITION_FILTER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequirePartitionFilter()); + switch (partitioningCase_) { + case 100: + hash = (37 * hash) + INTEGER_RANGE_PARTITION_FIELD_NUMBER; + hash = (53 * hash) + getIntegerRangePartition().hashCode(); + break; + case 101: + hash = (37 * hash) + TIME_UNIT_PARTITION_FIELD_NUMBER; + hash = (53 * hash) + getTimeUnitPartition().hashCode(); + break; + case 102: + hash = (37 * hash) + INGESTION_TIME_PARTITION_FIELD_NUMBER; + hash = (53 * hash) + getIngestionTimePartition().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.BigQueryPartitioning parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryPartitioning 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.datastream.v1.BigQueryPartitioning parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryPartitioning 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.datastream.v1.BigQueryPartitioning parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryPartitioning parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.BigQueryPartitioning parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryPartitioning 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.datastream.v1.BigQueryPartitioning parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryPartitioning 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.datastream.v1.BigQueryPartitioning parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryPartitioning 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.datastream.v1.BigQueryPartitioning 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; + } + + /** + * + * + *
    +   * BigQuery partitioning configuration.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.BigQueryPartitioning} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BigQueryPartitioning) + com.google.cloud.datastream.v1.BigQueryPartitioningOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryPartitioning_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryPartitioning_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryPartitioning.class, + com.google.cloud.datastream.v1.BigQueryPartitioning.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.BigQueryPartitioning.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (integerRangePartitionBuilder_ != null) { + integerRangePartitionBuilder_.clear(); + } + if (timeUnitPartitionBuilder_ != null) { + timeUnitPartitionBuilder_.clear(); + } + if (ingestionTimePartitionBuilder_ != null) { + ingestionTimePartitionBuilder_.clear(); + } + requirePartitionFilter_ = false; + partitioningCase_ = 0; + partitioning_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryPartitioning_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryPartitioning getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.BigQueryPartitioning.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryPartitioning build() { + com.google.cloud.datastream.v1.BigQueryPartitioning result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryPartitioning buildPartial() { + com.google.cloud.datastream.v1.BigQueryPartitioning result = + new com.google.cloud.datastream.v1.BigQueryPartitioning(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.BigQueryPartitioning result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requirePartitionFilter_ = requirePartitionFilter_; + } + } + + private void buildPartialOneofs(com.google.cloud.datastream.v1.BigQueryPartitioning result) { + result.partitioningCase_ = partitioningCase_; + result.partitioning_ = this.partitioning_; + if (partitioningCase_ == 100 && integerRangePartitionBuilder_ != null) { + result.partitioning_ = integerRangePartitionBuilder_.build(); + } + if (partitioningCase_ == 101 && timeUnitPartitionBuilder_ != null) { + result.partitioning_ = timeUnitPartitionBuilder_.build(); + } + if (partitioningCase_ == 102 && ingestionTimePartitionBuilder_ != null) { + result.partitioning_ = ingestionTimePartitionBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.BigQueryPartitioning) { + return mergeFrom((com.google.cloud.datastream.v1.BigQueryPartitioning) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.BigQueryPartitioning other) { + if (other == com.google.cloud.datastream.v1.BigQueryPartitioning.getDefaultInstance()) + return this; + if (other.getRequirePartitionFilter() != false) { + setRequirePartitionFilter(other.getRequirePartitionFilter()); + } + switch (other.getPartitioningCase()) { + case INTEGER_RANGE_PARTITION: + { + mergeIntegerRangePartition(other.getIntegerRangePartition()); + break; + } + case TIME_UNIT_PARTITION: + { + mergeTimeUnitPartition(other.getTimeUnitPartition()); + break; + } + case INGESTION_TIME_PARTITION: + { + mergeIngestionTimePartition(other.getIngestionTimePartition()); + break; + } + case PARTITIONING_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 802: + { + input.readMessage( + internalGetIntegerRangePartitionFieldBuilder().getBuilder(), extensionRegistry); + partitioningCase_ = 100; + break; + } // case 802 + case 810: + { + input.readMessage( + internalGetTimeUnitPartitionFieldBuilder().getBuilder(), extensionRegistry); + partitioningCase_ = 101; + break; + } // case 810 + case 818: + { + input.readMessage( + internalGetIngestionTimePartitionFieldBuilder().getBuilder(), + extensionRegistry); + partitioningCase_ = 102; + break; + } // case 818 + case 824: + { + requirePartitionFilter_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 824 + 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 partitioningCase_ = 0; + private java.lang.Object partitioning_; + + public PartitioningCase getPartitioningCase() { + return PartitioningCase.forNumber(partitioningCase_); + } + + public Builder clearPartitioning() { + partitioningCase_ = 0; + partitioning_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.IntegerRangePartition, + com.google.cloud.datastream.v1.IntegerRangePartition.Builder, + com.google.cloud.datastream.v1.IntegerRangePartitionOrBuilder> + integerRangePartitionBuilder_; + + /** + * + * + *
    +     * Integer range partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.IntegerRangePartition integer_range_partition = 100; + * + * @return Whether the integerRangePartition field is set. + */ + @java.lang.Override + public boolean hasIntegerRangePartition() { + return partitioningCase_ == 100; + } + + /** + * + * + *
    +     * Integer range partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.IntegerRangePartition integer_range_partition = 100; + * + * @return The integerRangePartition. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.IntegerRangePartition getIntegerRangePartition() { + if (integerRangePartitionBuilder_ == null) { + if (partitioningCase_ == 100) { + return (com.google.cloud.datastream.v1.IntegerRangePartition) partitioning_; + } + return com.google.cloud.datastream.v1.IntegerRangePartition.getDefaultInstance(); + } else { + if (partitioningCase_ == 100) { + return integerRangePartitionBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.IntegerRangePartition.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Integer range partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.IntegerRangePartition integer_range_partition = 100; + */ + public Builder setIntegerRangePartition( + com.google.cloud.datastream.v1.IntegerRangePartition value) { + if (integerRangePartitionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partitioning_ = value; + onChanged(); + } else { + integerRangePartitionBuilder_.setMessage(value); + } + partitioningCase_ = 100; + return this; + } + + /** + * + * + *
    +     * Integer range partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.IntegerRangePartition integer_range_partition = 100; + */ + public Builder setIntegerRangePartition( + com.google.cloud.datastream.v1.IntegerRangePartition.Builder builderForValue) { + if (integerRangePartitionBuilder_ == null) { + partitioning_ = builderForValue.build(); + onChanged(); + } else { + integerRangePartitionBuilder_.setMessage(builderForValue.build()); + } + partitioningCase_ = 100; + return this; + } + + /** + * + * + *
    +     * Integer range partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.IntegerRangePartition integer_range_partition = 100; + */ + public Builder mergeIntegerRangePartition( + com.google.cloud.datastream.v1.IntegerRangePartition value) { + if (integerRangePartitionBuilder_ == null) { + if (partitioningCase_ == 100 + && partitioning_ + != com.google.cloud.datastream.v1.IntegerRangePartition.getDefaultInstance()) { + partitioning_ = + com.google.cloud.datastream.v1.IntegerRangePartition.newBuilder( + (com.google.cloud.datastream.v1.IntegerRangePartition) partitioning_) + .mergeFrom(value) + .buildPartial(); + } else { + partitioning_ = value; + } + onChanged(); + } else { + if (partitioningCase_ == 100) { + integerRangePartitionBuilder_.mergeFrom(value); + } else { + integerRangePartitionBuilder_.setMessage(value); + } + } + partitioningCase_ = 100; + return this; + } + + /** + * + * + *
    +     * Integer range partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.IntegerRangePartition integer_range_partition = 100; + */ + public Builder clearIntegerRangePartition() { + if (integerRangePartitionBuilder_ == null) { + if (partitioningCase_ == 100) { + partitioningCase_ = 0; + partitioning_ = null; + onChanged(); + } + } else { + if (partitioningCase_ == 100) { + partitioningCase_ = 0; + partitioning_ = null; + } + integerRangePartitionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Integer range partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.IntegerRangePartition integer_range_partition = 100; + */ + public com.google.cloud.datastream.v1.IntegerRangePartition.Builder + getIntegerRangePartitionBuilder() { + return internalGetIntegerRangePartitionFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Integer range partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.IntegerRangePartition integer_range_partition = 100; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.IntegerRangePartitionOrBuilder + getIntegerRangePartitionOrBuilder() { + if ((partitioningCase_ == 100) && (integerRangePartitionBuilder_ != null)) { + return integerRangePartitionBuilder_.getMessageOrBuilder(); + } else { + if (partitioningCase_ == 100) { + return (com.google.cloud.datastream.v1.IntegerRangePartition) partitioning_; + } + return com.google.cloud.datastream.v1.IntegerRangePartition.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Integer range partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.IntegerRangePartition integer_range_partition = 100; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.IntegerRangePartition, + com.google.cloud.datastream.v1.IntegerRangePartition.Builder, + com.google.cloud.datastream.v1.IntegerRangePartitionOrBuilder> + internalGetIntegerRangePartitionFieldBuilder() { + if (integerRangePartitionBuilder_ == null) { + if (!(partitioningCase_ == 100)) { + partitioning_ = com.google.cloud.datastream.v1.IntegerRangePartition.getDefaultInstance(); + } + integerRangePartitionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.IntegerRangePartition, + com.google.cloud.datastream.v1.IntegerRangePartition.Builder, + com.google.cloud.datastream.v1.IntegerRangePartitionOrBuilder>( + (com.google.cloud.datastream.v1.IntegerRangePartition) partitioning_, + getParentForChildren(), + isClean()); + partitioning_ = null; + } + partitioningCase_ = 100; + onChanged(); + return integerRangePartitionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.TimeUnitPartition, + com.google.cloud.datastream.v1.TimeUnitPartition.Builder, + com.google.cloud.datastream.v1.TimeUnitPartitionOrBuilder> + timeUnitPartitionBuilder_; + + /** + * + * + *
    +     * Time unit column partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.TimeUnitPartition time_unit_partition = 101; + * + * @return Whether the timeUnitPartition field is set. + */ + @java.lang.Override + public boolean hasTimeUnitPartition() { + return partitioningCase_ == 101; + } + + /** + * + * + *
    +     * Time unit column partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.TimeUnitPartition time_unit_partition = 101; + * + * @return The timeUnitPartition. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.TimeUnitPartition getTimeUnitPartition() { + if (timeUnitPartitionBuilder_ == null) { + if (partitioningCase_ == 101) { + return (com.google.cloud.datastream.v1.TimeUnitPartition) partitioning_; + } + return com.google.cloud.datastream.v1.TimeUnitPartition.getDefaultInstance(); + } else { + if (partitioningCase_ == 101) { + return timeUnitPartitionBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.TimeUnitPartition.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Time unit column partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.TimeUnitPartition time_unit_partition = 101; + */ + public Builder setTimeUnitPartition(com.google.cloud.datastream.v1.TimeUnitPartition value) { + if (timeUnitPartitionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partitioning_ = value; + onChanged(); + } else { + timeUnitPartitionBuilder_.setMessage(value); + } + partitioningCase_ = 101; + return this; + } + + /** + * + * + *
    +     * Time unit column partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.TimeUnitPartition time_unit_partition = 101; + */ + public Builder setTimeUnitPartition( + com.google.cloud.datastream.v1.TimeUnitPartition.Builder builderForValue) { + if (timeUnitPartitionBuilder_ == null) { + partitioning_ = builderForValue.build(); + onChanged(); + } else { + timeUnitPartitionBuilder_.setMessage(builderForValue.build()); + } + partitioningCase_ = 101; + return this; + } + + /** + * + * + *
    +     * Time unit column partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.TimeUnitPartition time_unit_partition = 101; + */ + public Builder mergeTimeUnitPartition(com.google.cloud.datastream.v1.TimeUnitPartition value) { + if (timeUnitPartitionBuilder_ == null) { + if (partitioningCase_ == 101 + && partitioning_ + != com.google.cloud.datastream.v1.TimeUnitPartition.getDefaultInstance()) { + partitioning_ = + com.google.cloud.datastream.v1.TimeUnitPartition.newBuilder( + (com.google.cloud.datastream.v1.TimeUnitPartition) partitioning_) + .mergeFrom(value) + .buildPartial(); + } else { + partitioning_ = value; + } + onChanged(); + } else { + if (partitioningCase_ == 101) { + timeUnitPartitionBuilder_.mergeFrom(value); + } else { + timeUnitPartitionBuilder_.setMessage(value); + } + } + partitioningCase_ = 101; + return this; + } + + /** + * + * + *
    +     * Time unit column partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.TimeUnitPartition time_unit_partition = 101; + */ + public Builder clearTimeUnitPartition() { + if (timeUnitPartitionBuilder_ == null) { + if (partitioningCase_ == 101) { + partitioningCase_ = 0; + partitioning_ = null; + onChanged(); + } + } else { + if (partitioningCase_ == 101) { + partitioningCase_ = 0; + partitioning_ = null; + } + timeUnitPartitionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Time unit column partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.TimeUnitPartition time_unit_partition = 101; + */ + public com.google.cloud.datastream.v1.TimeUnitPartition.Builder getTimeUnitPartitionBuilder() { + return internalGetTimeUnitPartitionFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Time unit column partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.TimeUnitPartition time_unit_partition = 101; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.TimeUnitPartitionOrBuilder + getTimeUnitPartitionOrBuilder() { + if ((partitioningCase_ == 101) && (timeUnitPartitionBuilder_ != null)) { + return timeUnitPartitionBuilder_.getMessageOrBuilder(); + } else { + if (partitioningCase_ == 101) { + return (com.google.cloud.datastream.v1.TimeUnitPartition) partitioning_; + } + return com.google.cloud.datastream.v1.TimeUnitPartition.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Time unit column partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.TimeUnitPartition time_unit_partition = 101; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.TimeUnitPartition, + com.google.cloud.datastream.v1.TimeUnitPartition.Builder, + com.google.cloud.datastream.v1.TimeUnitPartitionOrBuilder> + internalGetTimeUnitPartitionFieldBuilder() { + if (timeUnitPartitionBuilder_ == null) { + if (!(partitioningCase_ == 101)) { + partitioning_ = com.google.cloud.datastream.v1.TimeUnitPartition.getDefaultInstance(); + } + timeUnitPartitionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.TimeUnitPartition, + com.google.cloud.datastream.v1.TimeUnitPartition.Builder, + com.google.cloud.datastream.v1.TimeUnitPartitionOrBuilder>( + (com.google.cloud.datastream.v1.TimeUnitPartition) partitioning_, + getParentForChildren(), + isClean()); + partitioning_ = null; + } + partitioningCase_ = 101; + onChanged(); + return timeUnitPartitionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.IngestionTimePartition, + com.google.cloud.datastream.v1.IngestionTimePartition.Builder, + com.google.cloud.datastream.v1.IngestionTimePartitionOrBuilder> + ingestionTimePartitionBuilder_; + + /** + * + * + *
    +     * Ingestion time partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.IngestionTimePartition ingestion_time_partition = 102; + * + * + * @return Whether the ingestionTimePartition field is set. + */ + @java.lang.Override + public boolean hasIngestionTimePartition() { + return partitioningCase_ == 102; + } + + /** + * + * + *
    +     * Ingestion time partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.IngestionTimePartition ingestion_time_partition = 102; + * + * + * @return The ingestionTimePartition. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.IngestionTimePartition getIngestionTimePartition() { + if (ingestionTimePartitionBuilder_ == null) { + if (partitioningCase_ == 102) { + return (com.google.cloud.datastream.v1.IngestionTimePartition) partitioning_; + } + return com.google.cloud.datastream.v1.IngestionTimePartition.getDefaultInstance(); + } else { + if (partitioningCase_ == 102) { + return ingestionTimePartitionBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.IngestionTimePartition.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Ingestion time partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.IngestionTimePartition ingestion_time_partition = 102; + * + */ + public Builder setIngestionTimePartition( + com.google.cloud.datastream.v1.IngestionTimePartition value) { + if (ingestionTimePartitionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partitioning_ = value; + onChanged(); + } else { + ingestionTimePartitionBuilder_.setMessage(value); + } + partitioningCase_ = 102; + return this; + } + + /** + * + * + *
    +     * Ingestion time partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.IngestionTimePartition ingestion_time_partition = 102; + * + */ + public Builder setIngestionTimePartition( + com.google.cloud.datastream.v1.IngestionTimePartition.Builder builderForValue) { + if (ingestionTimePartitionBuilder_ == null) { + partitioning_ = builderForValue.build(); + onChanged(); + } else { + ingestionTimePartitionBuilder_.setMessage(builderForValue.build()); + } + partitioningCase_ = 102; + return this; + } + + /** + * + * + *
    +     * Ingestion time partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.IngestionTimePartition ingestion_time_partition = 102; + * + */ + public Builder mergeIngestionTimePartition( + com.google.cloud.datastream.v1.IngestionTimePartition value) { + if (ingestionTimePartitionBuilder_ == null) { + if (partitioningCase_ == 102 + && partitioning_ + != com.google.cloud.datastream.v1.IngestionTimePartition.getDefaultInstance()) { + partitioning_ = + com.google.cloud.datastream.v1.IngestionTimePartition.newBuilder( + (com.google.cloud.datastream.v1.IngestionTimePartition) partitioning_) + .mergeFrom(value) + .buildPartial(); + } else { + partitioning_ = value; + } + onChanged(); + } else { + if (partitioningCase_ == 102) { + ingestionTimePartitionBuilder_.mergeFrom(value); + } else { + ingestionTimePartitionBuilder_.setMessage(value); + } + } + partitioningCase_ = 102; + return this; + } + + /** + * + * + *
    +     * Ingestion time partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.IngestionTimePartition ingestion_time_partition = 102; + * + */ + public Builder clearIngestionTimePartition() { + if (ingestionTimePartitionBuilder_ == null) { + if (partitioningCase_ == 102) { + partitioningCase_ = 0; + partitioning_ = null; + onChanged(); + } + } else { + if (partitioningCase_ == 102) { + partitioningCase_ = 0; + partitioning_ = null; + } + ingestionTimePartitionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Ingestion time partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.IngestionTimePartition ingestion_time_partition = 102; + * + */ + public com.google.cloud.datastream.v1.IngestionTimePartition.Builder + getIngestionTimePartitionBuilder() { + return internalGetIngestionTimePartitionFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Ingestion time partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.IngestionTimePartition ingestion_time_partition = 102; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.IngestionTimePartitionOrBuilder + getIngestionTimePartitionOrBuilder() { + if ((partitioningCase_ == 102) && (ingestionTimePartitionBuilder_ != null)) { + return ingestionTimePartitionBuilder_.getMessageOrBuilder(); + } else { + if (partitioningCase_ == 102) { + return (com.google.cloud.datastream.v1.IngestionTimePartition) partitioning_; + } + return com.google.cloud.datastream.v1.IngestionTimePartition.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Ingestion time partitioning.
    +     * 
    + * + * .google.cloud.datastream.v1.IngestionTimePartition ingestion_time_partition = 102; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.IngestionTimePartition, + com.google.cloud.datastream.v1.IngestionTimePartition.Builder, + com.google.cloud.datastream.v1.IngestionTimePartitionOrBuilder> + internalGetIngestionTimePartitionFieldBuilder() { + if (ingestionTimePartitionBuilder_ == null) { + if (!(partitioningCase_ == 102)) { + partitioning_ = + com.google.cloud.datastream.v1.IngestionTimePartition.getDefaultInstance(); + } + ingestionTimePartitionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.IngestionTimePartition, + com.google.cloud.datastream.v1.IngestionTimePartition.Builder, + com.google.cloud.datastream.v1.IngestionTimePartitionOrBuilder>( + (com.google.cloud.datastream.v1.IngestionTimePartition) partitioning_, + getParentForChildren(), + isClean()); + partitioning_ = null; + } + partitioningCase_ = 102; + onChanged(); + return ingestionTimePartitionBuilder_; + } + + private boolean requirePartitionFilter_; + + /** + * + * + *
    +     * Optional. If true, queries over the table require a partition filter.
    +     * 
    + * + * bool require_partition_filter = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requirePartitionFilter. + */ + @java.lang.Override + public boolean getRequirePartitionFilter() { + return requirePartitionFilter_; + } + + /** + * + * + *
    +     * Optional. If true, queries over the table require a partition filter.
    +     * 
    + * + * bool require_partition_filter = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requirePartitionFilter to set. + * @return This builder for chaining. + */ + public Builder setRequirePartitionFilter(boolean value) { + + requirePartitionFilter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If true, queries over the table require a partition filter.
    +     * 
    + * + * bool require_partition_filter = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequirePartitionFilter() { + bitField0_ = (bitField0_ & ~0x00000008); + requirePartitionFilter_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.BigQueryPartitioning) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BigQueryPartitioning) + private static final com.google.cloud.datastream.v1.BigQueryPartitioning DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.BigQueryPartitioning(); + } + + public static com.google.cloud.datastream.v1.BigQueryPartitioning getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryPartitioning 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.datastream.v1.BigQueryPartitioning getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryPartitioningOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryPartitioningOrBuilder.java new file mode 100644 index 000000000000..0fb67683c3b7 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryPartitioningOrBuilder.java @@ -0,0 +1,155 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface BigQueryPartitioningOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryPartitioning) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Integer range partitioning.
    +   * 
    + * + * .google.cloud.datastream.v1.IntegerRangePartition integer_range_partition = 100; + * + * @return Whether the integerRangePartition field is set. + */ + boolean hasIntegerRangePartition(); + + /** + * + * + *
    +   * Integer range partitioning.
    +   * 
    + * + * .google.cloud.datastream.v1.IntegerRangePartition integer_range_partition = 100; + * + * @return The integerRangePartition. + */ + com.google.cloud.datastream.v1.IntegerRangePartition getIntegerRangePartition(); + + /** + * + * + *
    +   * Integer range partitioning.
    +   * 
    + * + * .google.cloud.datastream.v1.IntegerRangePartition integer_range_partition = 100; + */ + com.google.cloud.datastream.v1.IntegerRangePartitionOrBuilder getIntegerRangePartitionOrBuilder(); + + /** + * + * + *
    +   * Time unit column partitioning.
    +   * 
    + * + * .google.cloud.datastream.v1.TimeUnitPartition time_unit_partition = 101; + * + * @return Whether the timeUnitPartition field is set. + */ + boolean hasTimeUnitPartition(); + + /** + * + * + *
    +   * Time unit column partitioning.
    +   * 
    + * + * .google.cloud.datastream.v1.TimeUnitPartition time_unit_partition = 101; + * + * @return The timeUnitPartition. + */ + com.google.cloud.datastream.v1.TimeUnitPartition getTimeUnitPartition(); + + /** + * + * + *
    +   * Time unit column partitioning.
    +   * 
    + * + * .google.cloud.datastream.v1.TimeUnitPartition time_unit_partition = 101; + */ + com.google.cloud.datastream.v1.TimeUnitPartitionOrBuilder getTimeUnitPartitionOrBuilder(); + + /** + * + * + *
    +   * Ingestion time partitioning.
    +   * 
    + * + * .google.cloud.datastream.v1.IngestionTimePartition ingestion_time_partition = 102; + * + * @return Whether the ingestionTimePartition field is set. + */ + boolean hasIngestionTimePartition(); + + /** + * + * + *
    +   * Ingestion time partitioning.
    +   * 
    + * + * .google.cloud.datastream.v1.IngestionTimePartition ingestion_time_partition = 102; + * + * @return The ingestionTimePartition. + */ + com.google.cloud.datastream.v1.IngestionTimePartition getIngestionTimePartition(); + + /** + * + * + *
    +   * Ingestion time partitioning.
    +   * 
    + * + * .google.cloud.datastream.v1.IngestionTimePartition ingestion_time_partition = 102; + */ + com.google.cloud.datastream.v1.IngestionTimePartitionOrBuilder + getIngestionTimePartitionOrBuilder(); + + /** + * + * + *
    +   * Optional. If true, queries over the table require a partition filter.
    +   * 
    + * + * bool require_partition_filter = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requirePartitionFilter. + */ + boolean getRequirePartitionFilter(); + + com.google.cloud.datastream.v1.BigQueryPartitioning.PartitioningCase getPartitioningCase(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java index 933632e6451d..2e36e4e87632 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java @@ -24,7 +24,7 @@ * * *
    - * BigQuery warehouse profile.
    + * Profile for connecting to a BigQuery destination.
      * 
    * * Protobuf type {@code google.cloud.datastream.v1.BigQueryProfile} @@ -223,7 +223,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
    -   * BigQuery warehouse profile.
    +   * Profile for connecting to a BigQuery destination.
        * 
    * * Protobuf type {@code google.cloud.datastream.v1.BigQueryProfile} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CdcStrategy.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CdcStrategy.java index c2b689b9aa8d..bacb63a027b6 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CdcStrategy.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CdcStrategy.java @@ -1011,6 +1011,94 @@ public interface SpecificStartPositionOrBuilder */ com.google.cloud.datastream.v1.MysqlGtidPositionOrBuilder getMysqlGtidPositionOrBuilder(); + /** + * + * + *
    +     * MongoDB change stream position to start replicating from.
    +     * 
    + * + * + * .google.cloud.datastream.v1.MongodbChangeStreamPosition mongodb_change_stream_position = 105; + * + * + * @return Whether the mongodbChangeStreamPosition field is set. + */ + boolean hasMongodbChangeStreamPosition(); + + /** + * + * + *
    +     * MongoDB change stream position to start replicating from.
    +     * 
    + * + * + * .google.cloud.datastream.v1.MongodbChangeStreamPosition mongodb_change_stream_position = 105; + * + * + * @return The mongodbChangeStreamPosition. + */ + com.google.cloud.datastream.v1.MongodbChangeStreamPosition getMongodbChangeStreamPosition(); + + /** + * + * + *
    +     * MongoDB change stream position to start replicating from.
    +     * 
    + * + * + * .google.cloud.datastream.v1.MongodbChangeStreamPosition mongodb_change_stream_position = 105; + * + */ + com.google.cloud.datastream.v1.MongodbChangeStreamPositionOrBuilder + getMongodbChangeStreamPositionOrBuilder(); + + /** + * + * + *
    +     * Optional. Spanner change stream position to start replicating from.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerChangeStreamPosition spanner_change_stream_position = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the spannerChangeStreamPosition field is set. + */ + boolean hasSpannerChangeStreamPosition(); + + /** + * + * + *
    +     * Optional. Spanner change stream position to start replicating from.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerChangeStreamPosition spanner_change_stream_position = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The spannerChangeStreamPosition. + */ + com.google.cloud.datastream.v1.SpannerChangeStreamPosition getSpannerChangeStreamPosition(); + + /** + * + * + *
    +     * Optional. Spanner change stream position to start replicating from.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerChangeStreamPosition spanner_change_stream_position = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SpannerChangeStreamPositionOrBuilder + getSpannerChangeStreamPositionOrBuilder(); + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition.PositionCase getPositionCase(); } @@ -1074,6 +1162,8 @@ public enum PositionCase ORACLE_SCN_POSITION(102), SQL_SERVER_LSN_POSITION(103), MYSQL_GTID_POSITION(104), + MONGODB_CHANGE_STREAM_POSITION(105), + SPANNER_CHANGE_STREAM_POSITION(106), POSITION_NOT_SET(0); private final int value; @@ -1101,6 +1191,10 @@ public static PositionCase forNumber(int value) { return SQL_SERVER_LSN_POSITION; case 104: return MYSQL_GTID_POSITION; + case 105: + return MONGODB_CHANGE_STREAM_POSITION; + case 106: + return SPANNER_CHANGE_STREAM_POSITION; case 0: return POSITION_NOT_SET; default: @@ -1336,6 +1430,130 @@ public com.google.cloud.datastream.v1.MysqlGtidPosition getMysqlGtidPosition() { return com.google.cloud.datastream.v1.MysqlGtidPosition.getDefaultInstance(); } + public static final int MONGODB_CHANGE_STREAM_POSITION_FIELD_NUMBER = 105; + + /** + * + * + *
    +     * MongoDB change stream position to start replicating from.
    +     * 
    + * + * + * .google.cloud.datastream.v1.MongodbChangeStreamPosition mongodb_change_stream_position = 105; + * + * + * @return Whether the mongodbChangeStreamPosition field is set. + */ + @java.lang.Override + public boolean hasMongodbChangeStreamPosition() { + return positionCase_ == 105; + } + + /** + * + * + *
    +     * MongoDB change stream position to start replicating from.
    +     * 
    + * + * + * .google.cloud.datastream.v1.MongodbChangeStreamPosition mongodb_change_stream_position = 105; + * + * + * @return The mongodbChangeStreamPosition. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MongodbChangeStreamPosition + getMongodbChangeStreamPosition() { + if (positionCase_ == 105) { + return (com.google.cloud.datastream.v1.MongodbChangeStreamPosition) position_; + } + return com.google.cloud.datastream.v1.MongodbChangeStreamPosition.getDefaultInstance(); + } + + /** + * + * + *
    +     * MongoDB change stream position to start replicating from.
    +     * 
    + * + * + * .google.cloud.datastream.v1.MongodbChangeStreamPosition mongodb_change_stream_position = 105; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MongodbChangeStreamPositionOrBuilder + getMongodbChangeStreamPositionOrBuilder() { + if (positionCase_ == 105) { + return (com.google.cloud.datastream.v1.MongodbChangeStreamPosition) position_; + } + return com.google.cloud.datastream.v1.MongodbChangeStreamPosition.getDefaultInstance(); + } + + public static final int SPANNER_CHANGE_STREAM_POSITION_FIELD_NUMBER = 106; + + /** + * + * + *
    +     * Optional. Spanner change stream position to start replicating from.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerChangeStreamPosition spanner_change_stream_position = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the spannerChangeStreamPosition field is set. + */ + @java.lang.Override + public boolean hasSpannerChangeStreamPosition() { + return positionCase_ == 106; + } + + /** + * + * + *
    +     * Optional. Spanner change stream position to start replicating from.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerChangeStreamPosition spanner_change_stream_position = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The spannerChangeStreamPosition. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerChangeStreamPosition + getSpannerChangeStreamPosition() { + if (positionCase_ == 106) { + return (com.google.cloud.datastream.v1.SpannerChangeStreamPosition) position_; + } + return com.google.cloud.datastream.v1.SpannerChangeStreamPosition.getDefaultInstance(); + } + + /** + * + * + *
    +     * Optional. Spanner change stream position to start replicating from.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerChangeStreamPosition spanner_change_stream_position = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerChangeStreamPositionOrBuilder + getSpannerChangeStreamPositionOrBuilder() { + if (positionCase_ == 106) { + return (com.google.cloud.datastream.v1.SpannerChangeStreamPosition) position_; + } + return com.google.cloud.datastream.v1.SpannerChangeStreamPosition.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1362,6 +1580,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (positionCase_ == 104) { output.writeMessage(104, (com.google.cloud.datastream.v1.MysqlGtidPosition) position_); } + if (positionCase_ == 105) { + output.writeMessage( + 105, (com.google.cloud.datastream.v1.MongodbChangeStreamPosition) position_); + } + if (positionCase_ == 106) { + output.writeMessage( + 106, (com.google.cloud.datastream.v1.SpannerChangeStreamPosition) position_); + } getUnknownFields().writeTo(output); } @@ -1391,6 +1617,16 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 104, (com.google.cloud.datastream.v1.MysqlGtidPosition) position_); } + if (positionCase_ == 105) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 105, (com.google.cloud.datastream.v1.MongodbChangeStreamPosition) position_); + } + if (positionCase_ == 106) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 106, (com.google.cloud.datastream.v1.SpannerChangeStreamPosition) position_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1421,6 +1657,14 @@ public boolean equals(final java.lang.Object obj) { case 104: if (!getMysqlGtidPosition().equals(other.getMysqlGtidPosition())) return false; break; + case 105: + if (!getMongodbChangeStreamPosition().equals(other.getMongodbChangeStreamPosition())) + return false; + break; + case 106: + if (!getSpannerChangeStreamPosition().equals(other.getSpannerChangeStreamPosition())) + return false; + break; case 0: default: } @@ -1452,6 +1696,14 @@ public int hashCode() { hash = (37 * hash) + MYSQL_GTID_POSITION_FIELD_NUMBER; hash = (53 * hash) + getMysqlGtidPosition().hashCode(); break; + case 105: + hash = (37 * hash) + MONGODB_CHANGE_STREAM_POSITION_FIELD_NUMBER; + hash = (53 * hash) + getMongodbChangeStreamPosition().hashCode(); + break; + case 106: + hash = (37 * hash) + SPANNER_CHANGE_STREAM_POSITION_FIELD_NUMBER; + hash = (53 * hash) + getSpannerChangeStreamPosition().hashCode(); + break; case 0: default: } @@ -1610,6 +1862,12 @@ public Builder clear() { if (mysqlGtidPositionBuilder_ != null) { mysqlGtidPositionBuilder_.clear(); } + if (mongodbChangeStreamPositionBuilder_ != null) { + mongodbChangeStreamPositionBuilder_.clear(); + } + if (spannerChangeStreamPositionBuilder_ != null) { + spannerChangeStreamPositionBuilder_.clear(); + } positionCase_ = 0; position_ = null; return this; @@ -1670,6 +1928,12 @@ private void buildPartialOneofs( if (positionCase_ == 104 && mysqlGtidPositionBuilder_ != null) { result.position_ = mysqlGtidPositionBuilder_.build(); } + if (positionCase_ == 105 && mongodbChangeStreamPositionBuilder_ != null) { + result.position_ = mongodbChangeStreamPositionBuilder_.build(); + } + if (positionCase_ == 106 && spannerChangeStreamPositionBuilder_ != null) { + result.position_ = spannerChangeStreamPositionBuilder_.build(); + } } @java.lang.Override @@ -1709,6 +1973,16 @@ public Builder mergeFrom( mergeMysqlGtidPosition(other.getMysqlGtidPosition()); break; } + case MONGODB_CHANGE_STREAM_POSITION: + { + mergeMongodbChangeStreamPosition(other.getMongodbChangeStreamPosition()); + break; + } + case SPANNER_CHANGE_STREAM_POSITION: + { + mergeSpannerChangeStreamPosition(other.getSpannerChangeStreamPosition()); + break; + } case POSITION_NOT_SET: { break; @@ -1769,6 +2043,22 @@ public Builder mergeFrom( positionCase_ = 104; break; } // case 834 + case 842: + { + input.readMessage( + internalGetMongodbChangeStreamPositionFieldBuilder().getBuilder(), + extensionRegistry); + positionCase_ = 105; + break; + } // case 842 + case 850: + { + input.readMessage( + internalGetSpannerChangeStreamPositionFieldBuilder().getBuilder(), + extensionRegistry); + positionCase_ = 106; + break; + } // case 850 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2698,6 +2988,494 @@ public Builder clearMysqlGtidPosition() { return mysqlGtidPositionBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.MongodbChangeStreamPosition, + com.google.cloud.datastream.v1.MongodbChangeStreamPosition.Builder, + com.google.cloud.datastream.v1.MongodbChangeStreamPositionOrBuilder> + mongodbChangeStreamPositionBuilder_; + + /** + * + * + *
    +       * MongoDB change stream position to start replicating from.
    +       * 
    + * + * + * .google.cloud.datastream.v1.MongodbChangeStreamPosition mongodb_change_stream_position = 105; + * + * + * @return Whether the mongodbChangeStreamPosition field is set. + */ + @java.lang.Override + public boolean hasMongodbChangeStreamPosition() { + return positionCase_ == 105; + } + + /** + * + * + *
    +       * MongoDB change stream position to start replicating from.
    +       * 
    + * + * + * .google.cloud.datastream.v1.MongodbChangeStreamPosition mongodb_change_stream_position = 105; + * + * + * @return The mongodbChangeStreamPosition. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MongodbChangeStreamPosition + getMongodbChangeStreamPosition() { + if (mongodbChangeStreamPositionBuilder_ == null) { + if (positionCase_ == 105) { + return (com.google.cloud.datastream.v1.MongodbChangeStreamPosition) position_; + } + return com.google.cloud.datastream.v1.MongodbChangeStreamPosition.getDefaultInstance(); + } else { + if (positionCase_ == 105) { + return mongodbChangeStreamPositionBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.MongodbChangeStreamPosition.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * MongoDB change stream position to start replicating from.
    +       * 
    + * + * + * .google.cloud.datastream.v1.MongodbChangeStreamPosition mongodb_change_stream_position = 105; + * + */ + public Builder setMongodbChangeStreamPosition( + com.google.cloud.datastream.v1.MongodbChangeStreamPosition value) { + if (mongodbChangeStreamPositionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + position_ = value; + onChanged(); + } else { + mongodbChangeStreamPositionBuilder_.setMessage(value); + } + positionCase_ = 105; + return this; + } + + /** + * + * + *
    +       * MongoDB change stream position to start replicating from.
    +       * 
    + * + * + * .google.cloud.datastream.v1.MongodbChangeStreamPosition mongodb_change_stream_position = 105; + * + */ + public Builder setMongodbChangeStreamPosition( + com.google.cloud.datastream.v1.MongodbChangeStreamPosition.Builder builderForValue) { + if (mongodbChangeStreamPositionBuilder_ == null) { + position_ = builderForValue.build(); + onChanged(); + } else { + mongodbChangeStreamPositionBuilder_.setMessage(builderForValue.build()); + } + positionCase_ = 105; + return this; + } + + /** + * + * + *
    +       * MongoDB change stream position to start replicating from.
    +       * 
    + * + * + * .google.cloud.datastream.v1.MongodbChangeStreamPosition mongodb_change_stream_position = 105; + * + */ + public Builder mergeMongodbChangeStreamPosition( + com.google.cloud.datastream.v1.MongodbChangeStreamPosition value) { + if (mongodbChangeStreamPositionBuilder_ == null) { + if (positionCase_ == 105 + && position_ + != com.google.cloud.datastream.v1.MongodbChangeStreamPosition + .getDefaultInstance()) { + position_ = + com.google.cloud.datastream.v1.MongodbChangeStreamPosition.newBuilder( + (com.google.cloud.datastream.v1.MongodbChangeStreamPosition) position_) + .mergeFrom(value) + .buildPartial(); + } else { + position_ = value; + } + onChanged(); + } else { + if (positionCase_ == 105) { + mongodbChangeStreamPositionBuilder_.mergeFrom(value); + } else { + mongodbChangeStreamPositionBuilder_.setMessage(value); + } + } + positionCase_ = 105; + return this; + } + + /** + * + * + *
    +       * MongoDB change stream position to start replicating from.
    +       * 
    + * + * + * .google.cloud.datastream.v1.MongodbChangeStreamPosition mongodb_change_stream_position = 105; + * + */ + public Builder clearMongodbChangeStreamPosition() { + if (mongodbChangeStreamPositionBuilder_ == null) { + if (positionCase_ == 105) { + positionCase_ = 0; + position_ = null; + onChanged(); + } + } else { + if (positionCase_ == 105) { + positionCase_ = 0; + position_ = null; + } + mongodbChangeStreamPositionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * MongoDB change stream position to start replicating from.
    +       * 
    + * + * + * .google.cloud.datastream.v1.MongodbChangeStreamPosition mongodb_change_stream_position = 105; + * + */ + public com.google.cloud.datastream.v1.MongodbChangeStreamPosition.Builder + getMongodbChangeStreamPositionBuilder() { + return internalGetMongodbChangeStreamPositionFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * MongoDB change stream position to start replicating from.
    +       * 
    + * + * + * .google.cloud.datastream.v1.MongodbChangeStreamPosition mongodb_change_stream_position = 105; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MongodbChangeStreamPositionOrBuilder + getMongodbChangeStreamPositionOrBuilder() { + if ((positionCase_ == 105) && (mongodbChangeStreamPositionBuilder_ != null)) { + return mongodbChangeStreamPositionBuilder_.getMessageOrBuilder(); + } else { + if (positionCase_ == 105) { + return (com.google.cloud.datastream.v1.MongodbChangeStreamPosition) position_; + } + return com.google.cloud.datastream.v1.MongodbChangeStreamPosition.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * MongoDB change stream position to start replicating from.
    +       * 
    + * + * + * .google.cloud.datastream.v1.MongodbChangeStreamPosition mongodb_change_stream_position = 105; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.MongodbChangeStreamPosition, + com.google.cloud.datastream.v1.MongodbChangeStreamPosition.Builder, + com.google.cloud.datastream.v1.MongodbChangeStreamPositionOrBuilder> + internalGetMongodbChangeStreamPositionFieldBuilder() { + if (mongodbChangeStreamPositionBuilder_ == null) { + if (!(positionCase_ == 105)) { + position_ = + com.google.cloud.datastream.v1.MongodbChangeStreamPosition.getDefaultInstance(); + } + mongodbChangeStreamPositionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.MongodbChangeStreamPosition, + com.google.cloud.datastream.v1.MongodbChangeStreamPosition.Builder, + com.google.cloud.datastream.v1.MongodbChangeStreamPositionOrBuilder>( + (com.google.cloud.datastream.v1.MongodbChangeStreamPosition) position_, + getParentForChildren(), + isClean()); + position_ = null; + } + positionCase_ = 105; + onChanged(); + return mongodbChangeStreamPositionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SpannerChangeStreamPosition, + com.google.cloud.datastream.v1.SpannerChangeStreamPosition.Builder, + com.google.cloud.datastream.v1.SpannerChangeStreamPositionOrBuilder> + spannerChangeStreamPositionBuilder_; + + /** + * + * + *
    +       * Optional. Spanner change stream position to start replicating from.
    +       * 
    + * + * + * .google.cloud.datastream.v1.SpannerChangeStreamPosition spanner_change_stream_position = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the spannerChangeStreamPosition field is set. + */ + @java.lang.Override + public boolean hasSpannerChangeStreamPosition() { + return positionCase_ == 106; + } + + /** + * + * + *
    +       * Optional. Spanner change stream position to start replicating from.
    +       * 
    + * + * + * .google.cloud.datastream.v1.SpannerChangeStreamPosition spanner_change_stream_position = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The spannerChangeStreamPosition. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerChangeStreamPosition + getSpannerChangeStreamPosition() { + if (spannerChangeStreamPositionBuilder_ == null) { + if (positionCase_ == 106) { + return (com.google.cloud.datastream.v1.SpannerChangeStreamPosition) position_; + } + return com.google.cloud.datastream.v1.SpannerChangeStreamPosition.getDefaultInstance(); + } else { + if (positionCase_ == 106) { + return spannerChangeStreamPositionBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SpannerChangeStreamPosition.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. Spanner change stream position to start replicating from.
    +       * 
    + * + * + * .google.cloud.datastream.v1.SpannerChangeStreamPosition spanner_change_stream_position = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSpannerChangeStreamPosition( + com.google.cloud.datastream.v1.SpannerChangeStreamPosition value) { + if (spannerChangeStreamPositionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + position_ = value; + onChanged(); + } else { + spannerChangeStreamPositionBuilder_.setMessage(value); + } + positionCase_ = 106; + return this; + } + + /** + * + * + *
    +       * Optional. Spanner change stream position to start replicating from.
    +       * 
    + * + * + * .google.cloud.datastream.v1.SpannerChangeStreamPosition spanner_change_stream_position = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSpannerChangeStreamPosition( + com.google.cloud.datastream.v1.SpannerChangeStreamPosition.Builder builderForValue) { + if (spannerChangeStreamPositionBuilder_ == null) { + position_ = builderForValue.build(); + onChanged(); + } else { + spannerChangeStreamPositionBuilder_.setMessage(builderForValue.build()); + } + positionCase_ = 106; + return this; + } + + /** + * + * + *
    +       * Optional. Spanner change stream position to start replicating from.
    +       * 
    + * + * + * .google.cloud.datastream.v1.SpannerChangeStreamPosition spanner_change_stream_position = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSpannerChangeStreamPosition( + com.google.cloud.datastream.v1.SpannerChangeStreamPosition value) { + if (spannerChangeStreamPositionBuilder_ == null) { + if (positionCase_ == 106 + && position_ + != com.google.cloud.datastream.v1.SpannerChangeStreamPosition + .getDefaultInstance()) { + position_ = + com.google.cloud.datastream.v1.SpannerChangeStreamPosition.newBuilder( + (com.google.cloud.datastream.v1.SpannerChangeStreamPosition) position_) + .mergeFrom(value) + .buildPartial(); + } else { + position_ = value; + } + onChanged(); + } else { + if (positionCase_ == 106) { + spannerChangeStreamPositionBuilder_.mergeFrom(value); + } else { + spannerChangeStreamPositionBuilder_.setMessage(value); + } + } + positionCase_ = 106; + return this; + } + + /** + * + * + *
    +       * Optional. Spanner change stream position to start replicating from.
    +       * 
    + * + * + * .google.cloud.datastream.v1.SpannerChangeStreamPosition spanner_change_stream_position = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSpannerChangeStreamPosition() { + if (spannerChangeStreamPositionBuilder_ == null) { + if (positionCase_ == 106) { + positionCase_ = 0; + position_ = null; + onChanged(); + } + } else { + if (positionCase_ == 106) { + positionCase_ = 0; + position_ = null; + } + spannerChangeStreamPositionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Optional. Spanner change stream position to start replicating from.
    +       * 
    + * + * + * .google.cloud.datastream.v1.SpannerChangeStreamPosition spanner_change_stream_position = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SpannerChangeStreamPosition.Builder + getSpannerChangeStreamPositionBuilder() { + return internalGetSpannerChangeStreamPositionFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. Spanner change stream position to start replicating from.
    +       * 
    + * + * + * .google.cloud.datastream.v1.SpannerChangeStreamPosition spanner_change_stream_position = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerChangeStreamPositionOrBuilder + getSpannerChangeStreamPositionOrBuilder() { + if ((positionCase_ == 106) && (spannerChangeStreamPositionBuilder_ != null)) { + return spannerChangeStreamPositionBuilder_.getMessageOrBuilder(); + } else { + if (positionCase_ == 106) { + return (com.google.cloud.datastream.v1.SpannerChangeStreamPosition) position_; + } + return com.google.cloud.datastream.v1.SpannerChangeStreamPosition.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. Spanner change stream position to start replicating from.
    +       * 
    + * + * + * .google.cloud.datastream.v1.SpannerChangeStreamPosition spanner_change_stream_position = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SpannerChangeStreamPosition, + com.google.cloud.datastream.v1.SpannerChangeStreamPosition.Builder, + com.google.cloud.datastream.v1.SpannerChangeStreamPositionOrBuilder> + internalGetSpannerChangeStreamPositionFieldBuilder() { + if (spannerChangeStreamPositionBuilder_ == null) { + if (!(positionCase_ == 106)) { + position_ = + com.google.cloud.datastream.v1.SpannerChangeStreamPosition.getDefaultInstance(); + } + spannerChangeStreamPositionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SpannerChangeStreamPosition, + com.google.cloud.datastream.v1.SpannerChangeStreamPosition.Builder, + com.google.cloud.datastream.v1.SpannerChangeStreamPositionOrBuilder>( + (com.google.cloud.datastream.v1.SpannerChangeStreamPosition) position_, + getParentForChildren(), + isClean()); + position_ = null; + } + positionCase_ = 106; + onChanged(); + return spannerChangeStreamPositionBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition) } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java index 3260bd10b38a..2d0db04f9339 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java @@ -102,6 +102,11 @@ public enum ProfileCase SQL_SERVER_PROFILE(105), SALESFORCE_PROFILE(107), MONGODB_PROFILE(108), + SPANNER_PROFILE(109), + DATAVERSE_PROFILE(114), + SALESFORCE_MARKETING_CLOUD_PROFILE(119), + SERVICE_NOW_PROFILE(120), + WORKDAY_PROFILE(121), PROFILE_NOT_SET(0); private final int value; @@ -137,6 +142,16 @@ public static ProfileCase forNumber(int value) { return SALESFORCE_PROFILE; case 108: return MONGODB_PROFILE; + case 109: + return SPANNER_PROFILE; + case 114: + return DATAVERSE_PROFILE; + case 119: + return SALESFORCE_MARKETING_CLOUD_PROFILE; + case 120: + return SERVICE_NOW_PROFILE; + case 121: + return WORKDAY_PROFILE; case 0: return PROFILE_NOT_SET; default: @@ -603,7 +618,7 @@ public boolean getSatisfiesPzi() { * * *
    -   * Oracle ConnectionProfile configuration.
    +   * Profile for connecting to an Oracle source.
        * 
    * * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; @@ -619,7 +634,7 @@ public boolean hasOracleProfile() { * * *
    -   * Oracle ConnectionProfile configuration.
    +   * Profile for connecting to an Oracle source.
        * 
    * * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; @@ -638,7 +653,7 @@ public com.google.cloud.datastream.v1.OracleProfile getOracleProfile() { * * *
    -   * Oracle ConnectionProfile configuration.
    +   * Profile for connecting to an Oracle source.
        * 
    * * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; @@ -657,7 +672,7 @@ public com.google.cloud.datastream.v1.OracleProfileOrBuilder getOracleProfileOrB * * *
    -   * Cloud Storage ConnectionProfile configuration.
    +   * Profile for connecting to a Cloud Storage destination.
        * 
    * * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; @@ -673,7 +688,7 @@ public boolean hasGcsProfile() { * * *
    -   * Cloud Storage ConnectionProfile configuration.
    +   * Profile for connecting to a Cloud Storage destination.
        * 
    * * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; @@ -692,7 +707,7 @@ public com.google.cloud.datastream.v1.GcsProfile getGcsProfile() { * * *
    -   * Cloud Storage ConnectionProfile configuration.
    +   * Profile for connecting to a Cloud Storage destination.
        * 
    * * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; @@ -711,7 +726,7 @@ public com.google.cloud.datastream.v1.GcsProfileOrBuilder getGcsProfileOrBuilder * * *
    -   * MySQL ConnectionProfile configuration.
    +   * Profile for connecting to a MySQL source.
        * 
    * * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; @@ -727,7 +742,7 @@ public boolean hasMysqlProfile() { * * *
    -   * MySQL ConnectionProfile configuration.
    +   * Profile for connecting to a MySQL source.
        * 
    * * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; @@ -746,7 +761,7 @@ public com.google.cloud.datastream.v1.MysqlProfile getMysqlProfile() { * * *
    -   * MySQL ConnectionProfile configuration.
    +   * Profile for connecting to a MySQL source.
        * 
    * * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; @@ -765,7 +780,7 @@ public com.google.cloud.datastream.v1.MysqlProfileOrBuilder getMysqlProfileOrBui * * *
    -   * BigQuery Connection Profile configuration.
    +   * Profile for connecting to a BigQuery destination.
        * 
    * * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; @@ -781,7 +796,7 @@ public boolean hasBigqueryProfile() { * * *
    -   * BigQuery Connection Profile configuration.
    +   * Profile for connecting to a BigQuery destination.
        * 
    * * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; @@ -800,7 +815,7 @@ public com.google.cloud.datastream.v1.BigQueryProfile getBigqueryProfile() { * * *
    -   * BigQuery Connection Profile configuration.
    +   * Profile for connecting to a BigQuery destination.
        * 
    * * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; @@ -819,7 +834,7 @@ public com.google.cloud.datastream.v1.BigQueryProfileOrBuilder getBigqueryProfil * * *
    -   * PostgreSQL Connection Profile configuration.
    +   * Profile for connecting to a PostgreSQL source.
        * 
    * * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; @@ -835,7 +850,7 @@ public boolean hasPostgresqlProfile() { * * *
    -   * PostgreSQL Connection Profile configuration.
    +   * Profile for connecting to a PostgreSQL source.
        * 
    * * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; @@ -854,7 +869,7 @@ public com.google.cloud.datastream.v1.PostgresqlProfile getPostgresqlProfile() { * * *
    -   * PostgreSQL Connection Profile configuration.
    +   * Profile for connecting to a PostgreSQL source.
        * 
    * * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; @@ -873,7 +888,7 @@ public com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder getPostgresqlPr * * *
    -   * SQLServer Connection Profile configuration.
    +   * Profile for connecting to a SQLServer source.
        * 
    * * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; @@ -889,7 +904,7 @@ public boolean hasSqlServerProfile() { * * *
    -   * SQLServer Connection Profile configuration.
    +   * Profile for connecting to a SQLServer source.
        * 
    * * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; @@ -908,7 +923,7 @@ public com.google.cloud.datastream.v1.SqlServerProfile getSqlServerProfile() { * * *
    -   * SQLServer Connection Profile configuration.
    +   * Profile for connecting to a SQLServer source.
        * 
    * * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; @@ -927,7 +942,7 @@ public com.google.cloud.datastream.v1.SqlServerProfileOrBuilder getSqlServerProf * * *
    -   * Salesforce Connection Profile configuration.
    +   * Profile for connecting to a Salesforce source.
        * 
    * * .google.cloud.datastream.v1.SalesforceProfile salesforce_profile = 107; @@ -943,7 +958,7 @@ public boolean hasSalesforceProfile() { * * *
    -   * Salesforce Connection Profile configuration.
    +   * Profile for connecting to a Salesforce source.
        * 
    * * .google.cloud.datastream.v1.SalesforceProfile salesforce_profile = 107; @@ -962,7 +977,7 @@ public com.google.cloud.datastream.v1.SalesforceProfile getSalesforceProfile() { * * *
    -   * Salesforce Connection Profile configuration.
    +   * Profile for connecting to a Salesforce source.
        * 
    * * .google.cloud.datastream.v1.SalesforceProfile salesforce_profile = 107; @@ -981,7 +996,7 @@ public com.google.cloud.datastream.v1.SalesforceProfileOrBuilder getSalesforcePr * * *
    -   * MongoDB Connection Profile configuration.
    +   * Profile for connecting to a MongoDB source.
        * 
    * * .google.cloud.datastream.v1.MongodbProfile mongodb_profile = 108; @@ -997,7 +1012,7 @@ public boolean hasMongodbProfile() { * * *
    -   * MongoDB Connection Profile configuration.
    +   * Profile for connecting to a MongoDB source.
        * 
    * * .google.cloud.datastream.v1.MongodbProfile mongodb_profile = 108; @@ -1016,7 +1031,7 @@ public com.google.cloud.datastream.v1.MongodbProfile getMongodbProfile() { * * *
    -   * MongoDB Connection Profile configuration.
    +   * Profile for connecting to a MongoDB source.
        * 
    * * .google.cloud.datastream.v1.MongodbProfile mongodb_profile = 108; @@ -1029,6 +1044,290 @@ public com.google.cloud.datastream.v1.MongodbProfileOrBuilder getMongodbProfileO return com.google.cloud.datastream.v1.MongodbProfile.getDefaultInstance(); } + public static final int SPANNER_PROFILE_FIELD_NUMBER = 109; + + /** + * + * + *
    +   * Profile for connecting to a Spanner source.
    +   * 
    + * + * .google.cloud.datastream.v1.SpannerProfile spanner_profile = 109; + * + * @return Whether the spannerProfile field is set. + */ + @java.lang.Override + public boolean hasSpannerProfile() { + return profileCase_ == 109; + } + + /** + * + * + *
    +   * Profile for connecting to a Spanner source.
    +   * 
    + * + * .google.cloud.datastream.v1.SpannerProfile spanner_profile = 109; + * + * @return The spannerProfile. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerProfile getSpannerProfile() { + if (profileCase_ == 109) { + return (com.google.cloud.datastream.v1.SpannerProfile) profile_; + } + return com.google.cloud.datastream.v1.SpannerProfile.getDefaultInstance(); + } + + /** + * + * + *
    +   * Profile for connecting to a Spanner source.
    +   * 
    + * + * .google.cloud.datastream.v1.SpannerProfile spanner_profile = 109; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerProfileOrBuilder getSpannerProfileOrBuilder() { + if (profileCase_ == 109) { + return (com.google.cloud.datastream.v1.SpannerProfile) profile_; + } + return com.google.cloud.datastream.v1.SpannerProfile.getDefaultInstance(); + } + + public static final int DATAVERSE_PROFILE_FIELD_NUMBER = 114; + + /** + * + * + *
    +   * Profile for connecting to a Dataverse source.
    +   * 
    + * + * .google.cloud.datastream.v1.DataverseProfile dataverse_profile = 114; + * + * @return Whether the dataverseProfile field is set. + */ + @java.lang.Override + public boolean hasDataverseProfile() { + return profileCase_ == 114; + } + + /** + * + * + *
    +   * Profile for connecting to a Dataverse source.
    +   * 
    + * + * .google.cloud.datastream.v1.DataverseProfile dataverse_profile = 114; + * + * @return The dataverseProfile. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.DataverseProfile getDataverseProfile() { + if (profileCase_ == 114) { + return (com.google.cloud.datastream.v1.DataverseProfile) profile_; + } + return com.google.cloud.datastream.v1.DataverseProfile.getDefaultInstance(); + } + + /** + * + * + *
    +   * Profile for connecting to a Dataverse source.
    +   * 
    + * + * .google.cloud.datastream.v1.DataverseProfile dataverse_profile = 114; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.DataverseProfileOrBuilder getDataverseProfileOrBuilder() { + if (profileCase_ == 114) { + return (com.google.cloud.datastream.v1.DataverseProfile) profile_; + } + return com.google.cloud.datastream.v1.DataverseProfile.getDefaultInstance(); + } + + public static final int SALESFORCE_MARKETING_CLOUD_PROFILE_FIELD_NUMBER = 119; + + /** + * + * + *
    +   * Profile for connecting to a Salesforce Marketing Cloud source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudProfile salesforce_marketing_cloud_profile = 119; + * + * + * @return Whether the salesforceMarketingCloudProfile field is set. + */ + @java.lang.Override + public boolean hasSalesforceMarketingCloudProfile() { + return profileCase_ == 119; + } + + /** + * + * + *
    +   * Profile for connecting to a Salesforce Marketing Cloud source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudProfile salesforce_marketing_cloud_profile = 119; + * + * + * @return The salesforceMarketingCloudProfile. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile + getSalesforceMarketingCloudProfile() { + if (profileCase_ == 119) { + return (com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile) profile_; + } + return com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile.getDefaultInstance(); + } + + /** + * + * + *
    +   * Profile for connecting to a Salesforce Marketing Cloud source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudProfile salesforce_marketing_cloud_profile = 119; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SalesforceMarketingCloudProfileOrBuilder + getSalesforceMarketingCloudProfileOrBuilder() { + if (profileCase_ == 119) { + return (com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile) profile_; + } + return com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile.getDefaultInstance(); + } + + public static final int SERVICE_NOW_PROFILE_FIELD_NUMBER = 120; + + /** + * + * + *
    +   * Profile for connecting to a ServiceNow source.
    +   * 
    + * + * .google.cloud.datastream.v1.ServiceNowProfile service_now_profile = 120; + * + * @return Whether the serviceNowProfile field is set. + */ + @java.lang.Override + public boolean hasServiceNowProfile() { + return profileCase_ == 120; + } + + /** + * + * + *
    +   * Profile for connecting to a ServiceNow source.
    +   * 
    + * + * .google.cloud.datastream.v1.ServiceNowProfile service_now_profile = 120; + * + * @return The serviceNowProfile. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.ServiceNowProfile getServiceNowProfile() { + if (profileCase_ == 120) { + return (com.google.cloud.datastream.v1.ServiceNowProfile) profile_; + } + return com.google.cloud.datastream.v1.ServiceNowProfile.getDefaultInstance(); + } + + /** + * + * + *
    +   * Profile for connecting to a ServiceNow source.
    +   * 
    + * + * .google.cloud.datastream.v1.ServiceNowProfile service_now_profile = 120; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.ServiceNowProfileOrBuilder getServiceNowProfileOrBuilder() { + if (profileCase_ == 120) { + return (com.google.cloud.datastream.v1.ServiceNowProfile) profile_; + } + return com.google.cloud.datastream.v1.ServiceNowProfile.getDefaultInstance(); + } + + public static final int WORKDAY_PROFILE_FIELD_NUMBER = 121; + + /** + * + * + *
    +   * Optional. Profile for connecting to a Workday source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.WorkdayProfile workday_profile = 121 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the workdayProfile field is set. + */ + @java.lang.Override + public boolean hasWorkdayProfile() { + return profileCase_ == 121; + } + + /** + * + * + *
    +   * Optional. Profile for connecting to a Workday source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.WorkdayProfile workday_profile = 121 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workdayProfile. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.WorkdayProfile getWorkdayProfile() { + if (profileCase_ == 121) { + return (com.google.cloud.datastream.v1.WorkdayProfile) profile_; + } + return com.google.cloud.datastream.v1.WorkdayProfile.getDefaultInstance(); + } + + /** + * + * + *
    +   * Optional. Profile for connecting to a Workday source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.WorkdayProfile workday_profile = 121 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.WorkdayProfileOrBuilder getWorkdayProfileOrBuilder() { + if (profileCase_ == 121) { + return (com.google.cloud.datastream.v1.WorkdayProfile) profile_; + } + return com.google.cloud.datastream.v1.WorkdayProfile.getDefaultInstance(); + } + public static final int STATIC_SERVICE_IP_CONNECTIVITY_FIELD_NUMBER = 200; /** @@ -1262,6 +1561,22 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (profileCase_ == 108) { output.writeMessage(108, (com.google.cloud.datastream.v1.MongodbProfile) profile_); } + if (profileCase_ == 109) { + output.writeMessage(109, (com.google.cloud.datastream.v1.SpannerProfile) profile_); + } + if (profileCase_ == 114) { + output.writeMessage(114, (com.google.cloud.datastream.v1.DataverseProfile) profile_); + } + if (profileCase_ == 119) { + output.writeMessage( + 119, (com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile) profile_); + } + if (profileCase_ == 120) { + output.writeMessage(120, (com.google.cloud.datastream.v1.ServiceNowProfile) profile_); + } + if (profileCase_ == 121) { + output.writeMessage(121, (com.google.cloud.datastream.v1.WorkdayProfile) profile_); + } if (connectivityCase_ == 200) { output.writeMessage( 200, (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_); @@ -1350,6 +1665,31 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 108, (com.google.cloud.datastream.v1.MongodbProfile) profile_); } + if (profileCase_ == 109) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 109, (com.google.cloud.datastream.v1.SpannerProfile) profile_); + } + if (profileCase_ == 114) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 114, (com.google.cloud.datastream.v1.DataverseProfile) profile_); + } + if (profileCase_ == 119) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 119, (com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile) profile_); + } + if (profileCase_ == 120) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 120, (com.google.cloud.datastream.v1.ServiceNowProfile) profile_); + } + if (profileCase_ == 121) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 121, (com.google.cloud.datastream.v1.WorkdayProfile) profile_); + } if (connectivityCase_ == 200) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -1426,6 +1766,22 @@ public boolean equals(final java.lang.Object obj) { case 108: if (!getMongodbProfile().equals(other.getMongodbProfile())) return false; break; + case 109: + if (!getSpannerProfile().equals(other.getSpannerProfile())) return false; + break; + case 114: + if (!getDataverseProfile().equals(other.getDataverseProfile())) return false; + break; + case 119: + if (!getSalesforceMarketingCloudProfile() + .equals(other.getSalesforceMarketingCloudProfile())) return false; + break; + case 120: + if (!getServiceNowProfile().equals(other.getServiceNowProfile())) return false; + break; + case 121: + if (!getWorkdayProfile().equals(other.getWorkdayProfile())) return false; + break; case 0: default: } @@ -1512,6 +1868,26 @@ public int hashCode() { hash = (37 * hash) + MONGODB_PROFILE_FIELD_NUMBER; hash = (53 * hash) + getMongodbProfile().hashCode(); break; + case 109: + hash = (37 * hash) + SPANNER_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getSpannerProfile().hashCode(); + break; + case 114: + hash = (37 * hash) + DATAVERSE_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getDataverseProfile().hashCode(); + break; + case 119: + hash = (37 * hash) + SALESFORCE_MARKETING_CLOUD_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getSalesforceMarketingCloudProfile().hashCode(); + break; + case 120: + hash = (37 * hash) + SERVICE_NOW_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getServiceNowProfile().hashCode(); + break; + case 121: + hash = (37 * hash) + WORKDAY_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getWorkdayProfile().hashCode(); + break; case 0: default: } @@ -1743,6 +2119,21 @@ public Builder clear() { if (mongodbProfileBuilder_ != null) { mongodbProfileBuilder_.clear(); } + if (spannerProfileBuilder_ != null) { + spannerProfileBuilder_.clear(); + } + if (dataverseProfileBuilder_ != null) { + dataverseProfileBuilder_.clear(); + } + if (salesforceMarketingCloudProfileBuilder_ != null) { + salesforceMarketingCloudProfileBuilder_.clear(); + } + if (serviceNowProfileBuilder_ != null) { + serviceNowProfileBuilder_.clear(); + } + if (workdayProfileBuilder_ != null) { + workdayProfileBuilder_.clear(); + } if (staticServiceIpConnectivityBuilder_ != null) { staticServiceIpConnectivityBuilder_.clear(); } @@ -1850,6 +2241,21 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.ConnectionProfile if (profileCase_ == 108 && mongodbProfileBuilder_ != null) { result.profile_ = mongodbProfileBuilder_.build(); } + if (profileCase_ == 109 && spannerProfileBuilder_ != null) { + result.profile_ = spannerProfileBuilder_.build(); + } + if (profileCase_ == 114 && dataverseProfileBuilder_ != null) { + result.profile_ = dataverseProfileBuilder_.build(); + } + if (profileCase_ == 119 && salesforceMarketingCloudProfileBuilder_ != null) { + result.profile_ = salesforceMarketingCloudProfileBuilder_.build(); + } + if (profileCase_ == 120 && serviceNowProfileBuilder_ != null) { + result.profile_ = serviceNowProfileBuilder_.build(); + } + if (profileCase_ == 121 && workdayProfileBuilder_ != null) { + result.profile_ = workdayProfileBuilder_.build(); + } result.connectivityCase_ = connectivityCase_; result.connectivity_ = this.connectivity_; if (connectivityCase_ == 200 && staticServiceIpConnectivityBuilder_ != null) { @@ -1941,6 +2347,31 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ConnectionProfile other) mergeMongodbProfile(other.getMongodbProfile()); break; } + case SPANNER_PROFILE: + { + mergeSpannerProfile(other.getSpannerProfile()); + break; + } + case DATAVERSE_PROFILE: + { + mergeDataverseProfile(other.getDataverseProfile()); + break; + } + case SALESFORCE_MARKETING_CLOUD_PROFILE: + { + mergeSalesforceMarketingCloudProfile(other.getSalesforceMarketingCloudProfile()); + break; + } + case SERVICE_NOW_PROFILE: + { + mergeServiceNowProfile(other.getServiceNowProfile()); + break; + } + case WORKDAY_PROFILE: + { + mergeWorkdayProfile(other.getWorkdayProfile()); + break; + } case PROFILE_NOT_SET: { break; @@ -2099,23 +2530,59 @@ public Builder mergeFrom( profileCase_ = 108; break; } // case 866 - case 1602: + case 874: { input.readMessage( - internalGetStaticServiceIpConnectivityFieldBuilder().getBuilder(), - extensionRegistry); - connectivityCase_ = 200; + internalGetSpannerProfileFieldBuilder().getBuilder(), extensionRegistry); + profileCase_ = 109; break; - } // case 1602 - case 1610: + } // case 874 + case 914: { input.readMessage( - internalGetForwardSshConnectivityFieldBuilder().getBuilder(), + internalGetDataverseProfileFieldBuilder().getBuilder(), extensionRegistry); + profileCase_ = 114; + break; + } // case 914 + case 954: + { + input.readMessage( + internalGetSalesforceMarketingCloudProfileFieldBuilder().getBuilder(), extensionRegistry); - connectivityCase_ = 201; + profileCase_ = 119; break; - } // case 1610 - case 1618: + } // case 954 + case 962: + { + input.readMessage( + internalGetServiceNowProfileFieldBuilder().getBuilder(), extensionRegistry); + profileCase_ = 120; + break; + } // case 962 + case 970: + { + input.readMessage( + internalGetWorkdayProfileFieldBuilder().getBuilder(), extensionRegistry); + profileCase_ = 121; + break; + } // case 970 + case 1602: + { + input.readMessage( + internalGetStaticServiceIpConnectivityFieldBuilder().getBuilder(), + extensionRegistry); + connectivityCase_ = 200; + break; + } // case 1602 + case 1610: + { + input.readMessage( + internalGetForwardSshConnectivityFieldBuilder().getBuilder(), + extensionRegistry); + connectivityCase_ = 201; + break; + } // case 1610 + case 1618: { input.readMessage( internalGetPrivateConnectivityFieldBuilder().getBuilder(), extensionRegistry); @@ -3151,7 +3618,7 @@ public Builder clearSatisfiesPzi() { * * *
    -     * Oracle ConnectionProfile configuration.
    +     * Profile for connecting to an Oracle source.
          * 
    * * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; @@ -3167,7 +3634,7 @@ public boolean hasOracleProfile() { * * *
    -     * Oracle ConnectionProfile configuration.
    +     * Profile for connecting to an Oracle source.
          * 
    * * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; @@ -3193,7 +3660,7 @@ public com.google.cloud.datastream.v1.OracleProfile getOracleProfile() { * * *
    -     * Oracle ConnectionProfile configuration.
    +     * Profile for connecting to an Oracle source.
          * 
    * * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; @@ -3216,7 +3683,7 @@ public Builder setOracleProfile(com.google.cloud.datastream.v1.OracleProfile val * * *
    -     * Oracle ConnectionProfile configuration.
    +     * Profile for connecting to an Oracle source.
          * 
    * * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; @@ -3237,7 +3704,7 @@ public Builder setOracleProfile( * * *
    -     * Oracle ConnectionProfile configuration.
    +     * Profile for connecting to an Oracle source.
          * 
    * * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; @@ -3270,7 +3737,7 @@ public Builder mergeOracleProfile(com.google.cloud.datastream.v1.OracleProfile v * * *
    -     * Oracle ConnectionProfile configuration.
    +     * Profile for connecting to an Oracle source.
          * 
    * * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; @@ -3296,7 +3763,7 @@ public Builder clearOracleProfile() { * * *
    -     * Oracle ConnectionProfile configuration.
    +     * Profile for connecting to an Oracle source.
          * 
    * * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; @@ -3309,7 +3776,7 @@ public com.google.cloud.datastream.v1.OracleProfile.Builder getOracleProfileBuil * * *
    -     * Oracle ConnectionProfile configuration.
    +     * Profile for connecting to an Oracle source.
          * 
    * * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; @@ -3330,7 +3797,7 @@ public com.google.cloud.datastream.v1.OracleProfileOrBuilder getOracleProfileOrB * * *
    -     * Oracle ConnectionProfile configuration.
    +     * Profile for connecting to an Oracle source.
          * 
    * * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; @@ -3369,7 +3836,7 @@ public com.google.cloud.datastream.v1.OracleProfileOrBuilder getOracleProfileOrB * * *
    -     * Cloud Storage ConnectionProfile configuration.
    +     * Profile for connecting to a Cloud Storage destination.
          * 
    * * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; @@ -3385,7 +3852,7 @@ public boolean hasGcsProfile() { * * *
    -     * Cloud Storage ConnectionProfile configuration.
    +     * Profile for connecting to a Cloud Storage destination.
          * 
    * * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; @@ -3411,7 +3878,7 @@ public com.google.cloud.datastream.v1.GcsProfile getGcsProfile() { * * *
    -     * Cloud Storage ConnectionProfile configuration.
    +     * Profile for connecting to a Cloud Storage destination.
          * 
    * * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; @@ -3434,7 +3901,7 @@ public Builder setGcsProfile(com.google.cloud.datastream.v1.GcsProfile value) { * * *
    -     * Cloud Storage ConnectionProfile configuration.
    +     * Profile for connecting to a Cloud Storage destination.
          * 
    * * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; @@ -3455,7 +3922,7 @@ public Builder setGcsProfile( * * *
    -     * Cloud Storage ConnectionProfile configuration.
    +     * Profile for connecting to a Cloud Storage destination.
          * 
    * * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; @@ -3488,7 +3955,7 @@ public Builder mergeGcsProfile(com.google.cloud.datastream.v1.GcsProfile value) * * *
    -     * Cloud Storage ConnectionProfile configuration.
    +     * Profile for connecting to a Cloud Storage destination.
          * 
    * * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; @@ -3514,7 +3981,7 @@ public Builder clearGcsProfile() { * * *
    -     * Cloud Storage ConnectionProfile configuration.
    +     * Profile for connecting to a Cloud Storage destination.
          * 
    * * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; @@ -3527,7 +3994,7 @@ public com.google.cloud.datastream.v1.GcsProfile.Builder getGcsProfileBuilder() * * *
    -     * Cloud Storage ConnectionProfile configuration.
    +     * Profile for connecting to a Cloud Storage destination.
          * 
    * * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; @@ -3548,7 +4015,7 @@ public com.google.cloud.datastream.v1.GcsProfileOrBuilder getGcsProfileOrBuilder * * *
    -     * Cloud Storage ConnectionProfile configuration.
    +     * Profile for connecting to a Cloud Storage destination.
          * 
    * * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; @@ -3587,7 +4054,7 @@ public com.google.cloud.datastream.v1.GcsProfileOrBuilder getGcsProfileOrBuilder * * *
    -     * MySQL ConnectionProfile configuration.
    +     * Profile for connecting to a MySQL source.
          * 
    * * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; @@ -3603,7 +4070,7 @@ public boolean hasMysqlProfile() { * * *
    -     * MySQL ConnectionProfile configuration.
    +     * Profile for connecting to a MySQL source.
          * 
    * * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; @@ -3629,7 +4096,7 @@ public com.google.cloud.datastream.v1.MysqlProfile getMysqlProfile() { * * *
    -     * MySQL ConnectionProfile configuration.
    +     * Profile for connecting to a MySQL source.
          * 
    * * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; @@ -3652,7 +4119,7 @@ public Builder setMysqlProfile(com.google.cloud.datastream.v1.MysqlProfile value * * *
    -     * MySQL ConnectionProfile configuration.
    +     * Profile for connecting to a MySQL source.
          * 
    * * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; @@ -3673,7 +4140,7 @@ public Builder setMysqlProfile( * * *
    -     * MySQL ConnectionProfile configuration.
    +     * Profile for connecting to a MySQL source.
          * 
    * * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; @@ -3706,7 +4173,7 @@ public Builder mergeMysqlProfile(com.google.cloud.datastream.v1.MysqlProfile val * * *
    -     * MySQL ConnectionProfile configuration.
    +     * Profile for connecting to a MySQL source.
          * 
    * * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; @@ -3732,7 +4199,7 @@ public Builder clearMysqlProfile() { * * *
    -     * MySQL ConnectionProfile configuration.
    +     * Profile for connecting to a MySQL source.
          * 
    * * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; @@ -3745,7 +4212,7 @@ public com.google.cloud.datastream.v1.MysqlProfile.Builder getMysqlProfileBuilde * * *
    -     * MySQL ConnectionProfile configuration.
    +     * Profile for connecting to a MySQL source.
          * 
    * * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; @@ -3766,7 +4233,7 @@ public com.google.cloud.datastream.v1.MysqlProfileOrBuilder getMysqlProfileOrBui * * *
    -     * MySQL ConnectionProfile configuration.
    +     * Profile for connecting to a MySQL source.
          * 
    * * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; @@ -3805,7 +4272,7 @@ public com.google.cloud.datastream.v1.MysqlProfileOrBuilder getMysqlProfileOrBui * * *
    -     * BigQuery Connection Profile configuration.
    +     * Profile for connecting to a BigQuery destination.
          * 
    * * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; @@ -3821,7 +4288,7 @@ public boolean hasBigqueryProfile() { * * *
    -     * BigQuery Connection Profile configuration.
    +     * Profile for connecting to a BigQuery destination.
          * 
    * * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; @@ -3847,7 +4314,7 @@ public com.google.cloud.datastream.v1.BigQueryProfile getBigqueryProfile() { * * *
    -     * BigQuery Connection Profile configuration.
    +     * Profile for connecting to a BigQuery destination.
          * 
    * * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; @@ -3870,7 +4337,7 @@ public Builder setBigqueryProfile(com.google.cloud.datastream.v1.BigQueryProfile * * *
    -     * BigQuery Connection Profile configuration.
    +     * Profile for connecting to a BigQuery destination.
          * 
    * * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; @@ -3891,7 +4358,7 @@ public Builder setBigqueryProfile( * * *
    -     * BigQuery Connection Profile configuration.
    +     * Profile for connecting to a BigQuery destination.
          * 
    * * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; @@ -3924,7 +4391,7 @@ public Builder mergeBigqueryProfile(com.google.cloud.datastream.v1.BigQueryProfi * * *
    -     * BigQuery Connection Profile configuration.
    +     * Profile for connecting to a BigQuery destination.
          * 
    * * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; @@ -3950,7 +4417,7 @@ public Builder clearBigqueryProfile() { * * *
    -     * BigQuery Connection Profile configuration.
    +     * Profile for connecting to a BigQuery destination.
          * 
    * * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; @@ -3963,7 +4430,7 @@ public com.google.cloud.datastream.v1.BigQueryProfile.Builder getBigqueryProfile * * *
    -     * BigQuery Connection Profile configuration.
    +     * Profile for connecting to a BigQuery destination.
          * 
    * * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; @@ -3984,7 +4451,7 @@ public com.google.cloud.datastream.v1.BigQueryProfileOrBuilder getBigqueryProfil * * *
    -     * BigQuery Connection Profile configuration.
    +     * Profile for connecting to a BigQuery destination.
          * 
    * * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; @@ -4023,7 +4490,7 @@ public com.google.cloud.datastream.v1.BigQueryProfileOrBuilder getBigqueryProfil * * *
    -     * PostgreSQL Connection Profile configuration.
    +     * Profile for connecting to a PostgreSQL source.
          * 
    * * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; @@ -4039,7 +4506,7 @@ public boolean hasPostgresqlProfile() { * * *
    -     * PostgreSQL Connection Profile configuration.
    +     * Profile for connecting to a PostgreSQL source.
          * 
    * * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; @@ -4065,7 +4532,7 @@ public com.google.cloud.datastream.v1.PostgresqlProfile getPostgresqlProfile() { * * *
    -     * PostgreSQL Connection Profile configuration.
    +     * Profile for connecting to a PostgreSQL source.
          * 
    * * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; @@ -4088,7 +4555,7 @@ public Builder setPostgresqlProfile(com.google.cloud.datastream.v1.PostgresqlPro * * *
    -     * PostgreSQL Connection Profile configuration.
    +     * Profile for connecting to a PostgreSQL source.
          * 
    * * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; @@ -4109,7 +4576,7 @@ public Builder setPostgresqlProfile( * * *
    -     * PostgreSQL Connection Profile configuration.
    +     * Profile for connecting to a PostgreSQL source.
          * 
    * * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; @@ -4142,7 +4609,7 @@ public Builder mergePostgresqlProfile(com.google.cloud.datastream.v1.PostgresqlP * * *
    -     * PostgreSQL Connection Profile configuration.
    +     * Profile for connecting to a PostgreSQL source.
          * 
    * * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; @@ -4168,7 +4635,7 @@ public Builder clearPostgresqlProfile() { * * *
    -     * PostgreSQL Connection Profile configuration.
    +     * Profile for connecting to a PostgreSQL source.
          * 
    * * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; @@ -4181,7 +4648,7 @@ public com.google.cloud.datastream.v1.PostgresqlProfile.Builder getPostgresqlPro * * *
    -     * PostgreSQL Connection Profile configuration.
    +     * Profile for connecting to a PostgreSQL source.
          * 
    * * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; @@ -4203,7 +4670,7 @@ public com.google.cloud.datastream.v1.PostgresqlProfile.Builder getPostgresqlPro * * *
    -     * PostgreSQL Connection Profile configuration.
    +     * Profile for connecting to a PostgreSQL source.
          * 
    * * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; @@ -4242,7 +4709,7 @@ public com.google.cloud.datastream.v1.PostgresqlProfile.Builder getPostgresqlPro * * *
    -     * SQLServer Connection Profile configuration.
    +     * Profile for connecting to a SQLServer source.
          * 
    * * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; @@ -4258,7 +4725,7 @@ public boolean hasSqlServerProfile() { * * *
    -     * SQLServer Connection Profile configuration.
    +     * Profile for connecting to a SQLServer source.
          * 
    * * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; @@ -4284,7 +4751,7 @@ public com.google.cloud.datastream.v1.SqlServerProfile getSqlServerProfile() { * * *
    -     * SQLServer Connection Profile configuration.
    +     * Profile for connecting to a SQLServer source.
          * 
    * * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; @@ -4307,7 +4774,7 @@ public Builder setSqlServerProfile(com.google.cloud.datastream.v1.SqlServerProfi * * *
    -     * SQLServer Connection Profile configuration.
    +     * Profile for connecting to a SQLServer source.
          * 
    * * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; @@ -4328,7 +4795,7 @@ public Builder setSqlServerProfile( * * *
    -     * SQLServer Connection Profile configuration.
    +     * Profile for connecting to a SQLServer source.
          * 
    * * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; @@ -4361,7 +4828,7 @@ public Builder mergeSqlServerProfile(com.google.cloud.datastream.v1.SqlServerPro * * *
    -     * SQLServer Connection Profile configuration.
    +     * Profile for connecting to a SQLServer source.
          * 
    * * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; @@ -4387,7 +4854,7 @@ public Builder clearSqlServerProfile() { * * *
    -     * SQLServer Connection Profile configuration.
    +     * Profile for connecting to a SQLServer source.
          * 
    * * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; @@ -4400,7 +4867,7 @@ public com.google.cloud.datastream.v1.SqlServerProfile.Builder getSqlServerProfi * * *
    -     * SQLServer Connection Profile configuration.
    +     * Profile for connecting to a SQLServer source.
          * 
    * * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; @@ -4421,7 +4888,7 @@ public com.google.cloud.datastream.v1.SqlServerProfileOrBuilder getSqlServerProf * * *
    -     * SQLServer Connection Profile configuration.
    +     * Profile for connecting to a SQLServer source.
          * 
    * * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; @@ -4460,7 +4927,7 @@ public com.google.cloud.datastream.v1.SqlServerProfileOrBuilder getSqlServerProf * * *
    -     * Salesforce Connection Profile configuration.
    +     * Profile for connecting to a Salesforce source.
          * 
    * * .google.cloud.datastream.v1.SalesforceProfile salesforce_profile = 107; @@ -4476,7 +4943,7 @@ public boolean hasSalesforceProfile() { * * *
    -     * Salesforce Connection Profile configuration.
    +     * Profile for connecting to a Salesforce source.
          * 
    * * .google.cloud.datastream.v1.SalesforceProfile salesforce_profile = 107; @@ -4502,7 +4969,7 @@ public com.google.cloud.datastream.v1.SalesforceProfile getSalesforceProfile() { * * *
    -     * Salesforce Connection Profile configuration.
    +     * Profile for connecting to a Salesforce source.
          * 
    * * .google.cloud.datastream.v1.SalesforceProfile salesforce_profile = 107; @@ -4525,7 +4992,7 @@ public Builder setSalesforceProfile(com.google.cloud.datastream.v1.SalesforcePro * * *
    -     * Salesforce Connection Profile configuration.
    +     * Profile for connecting to a Salesforce source.
          * 
    * * .google.cloud.datastream.v1.SalesforceProfile salesforce_profile = 107; @@ -4546,7 +5013,7 @@ public Builder setSalesforceProfile( * * *
    -     * Salesforce Connection Profile configuration.
    +     * Profile for connecting to a Salesforce source.
          * 
    * * .google.cloud.datastream.v1.SalesforceProfile salesforce_profile = 107; @@ -4579,7 +5046,7 @@ public Builder mergeSalesforceProfile(com.google.cloud.datastream.v1.SalesforceP * * *
    -     * Salesforce Connection Profile configuration.
    +     * Profile for connecting to a Salesforce source.
          * 
    * * .google.cloud.datastream.v1.SalesforceProfile salesforce_profile = 107; @@ -4605,7 +5072,7 @@ public Builder clearSalesforceProfile() { * * *
    -     * Salesforce Connection Profile configuration.
    +     * Profile for connecting to a Salesforce source.
          * 
    * * .google.cloud.datastream.v1.SalesforceProfile salesforce_profile = 107; @@ -4618,7 +5085,7 @@ public com.google.cloud.datastream.v1.SalesforceProfile.Builder getSalesforcePro * * *
    -     * Salesforce Connection Profile configuration.
    +     * Profile for connecting to a Salesforce source.
          * 
    * * .google.cloud.datastream.v1.SalesforceProfile salesforce_profile = 107; @@ -4640,7 +5107,7 @@ public com.google.cloud.datastream.v1.SalesforceProfile.Builder getSalesforcePro * * *
    -     * Salesforce Connection Profile configuration.
    +     * Profile for connecting to a Salesforce source.
          * 
    * * .google.cloud.datastream.v1.SalesforceProfile salesforce_profile = 107; @@ -4679,7 +5146,7 @@ public com.google.cloud.datastream.v1.SalesforceProfile.Builder getSalesforcePro * * *
    -     * MongoDB Connection Profile configuration.
    +     * Profile for connecting to a MongoDB source.
          * 
    * * .google.cloud.datastream.v1.MongodbProfile mongodb_profile = 108; @@ -4695,7 +5162,7 @@ public boolean hasMongodbProfile() { * * *
    -     * MongoDB Connection Profile configuration.
    +     * Profile for connecting to a MongoDB source.
          * 
    * * .google.cloud.datastream.v1.MongodbProfile mongodb_profile = 108; @@ -4721,7 +5188,7 @@ public com.google.cloud.datastream.v1.MongodbProfile getMongodbProfile() { * * *
    -     * MongoDB Connection Profile configuration.
    +     * Profile for connecting to a MongoDB source.
          * 
    * * .google.cloud.datastream.v1.MongodbProfile mongodb_profile = 108; @@ -4744,7 +5211,7 @@ public Builder setMongodbProfile(com.google.cloud.datastream.v1.MongodbProfile v * * *
    -     * MongoDB Connection Profile configuration.
    +     * Profile for connecting to a MongoDB source.
          * 
    * * .google.cloud.datastream.v1.MongodbProfile mongodb_profile = 108; @@ -4765,7 +5232,7 @@ public Builder setMongodbProfile( * * *
    -     * MongoDB Connection Profile configuration.
    +     * Profile for connecting to a MongoDB source.
          * 
    * * .google.cloud.datastream.v1.MongodbProfile mongodb_profile = 108; @@ -4798,7 +5265,7 @@ public Builder mergeMongodbProfile(com.google.cloud.datastream.v1.MongodbProfile * * *
    -     * MongoDB Connection Profile configuration.
    +     * Profile for connecting to a MongoDB source.
          * 
    * * .google.cloud.datastream.v1.MongodbProfile mongodb_profile = 108; @@ -4824,7 +5291,7 @@ public Builder clearMongodbProfile() { * * *
    -     * MongoDB Connection Profile configuration.
    +     * Profile for connecting to a MongoDB source.
          * 
    * * .google.cloud.datastream.v1.MongodbProfile mongodb_profile = 108; @@ -4837,7 +5304,7 @@ public com.google.cloud.datastream.v1.MongodbProfile.Builder getMongodbProfileBu * * *
    -     * MongoDB Connection Profile configuration.
    +     * Profile for connecting to a MongoDB source.
          * 
    * * .google.cloud.datastream.v1.MongodbProfile mongodb_profile = 108; @@ -4858,7 +5325,7 @@ public com.google.cloud.datastream.v1.MongodbProfileOrBuilder getMongodbProfileO * * *
    -     * MongoDB Connection Profile configuration.
    +     * Profile for connecting to a MongoDB source.
          * 
    * * .google.cloud.datastream.v1.MongodbProfile mongodb_profile = 108; @@ -4887,6 +5354,1141 @@ public com.google.cloud.datastream.v1.MongodbProfileOrBuilder getMongodbProfileO return mongodbProfileBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SpannerProfile, + com.google.cloud.datastream.v1.SpannerProfile.Builder, + com.google.cloud.datastream.v1.SpannerProfileOrBuilder> + spannerProfileBuilder_; + + /** + * + * + *
    +     * Profile for connecting to a Spanner source.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerProfile spanner_profile = 109; + * + * @return Whether the spannerProfile field is set. + */ + @java.lang.Override + public boolean hasSpannerProfile() { + return profileCase_ == 109; + } + + /** + * + * + *
    +     * Profile for connecting to a Spanner source.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerProfile spanner_profile = 109; + * + * @return The spannerProfile. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerProfile getSpannerProfile() { + if (spannerProfileBuilder_ == null) { + if (profileCase_ == 109) { + return (com.google.cloud.datastream.v1.SpannerProfile) profile_; + } + return com.google.cloud.datastream.v1.SpannerProfile.getDefaultInstance(); + } else { + if (profileCase_ == 109) { + return spannerProfileBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SpannerProfile.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Profile for connecting to a Spanner source.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerProfile spanner_profile = 109; + */ + public Builder setSpannerProfile(com.google.cloud.datastream.v1.SpannerProfile value) { + if (spannerProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + spannerProfileBuilder_.setMessage(value); + } + profileCase_ = 109; + return this; + } + + /** + * + * + *
    +     * Profile for connecting to a Spanner source.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerProfile spanner_profile = 109; + */ + public Builder setSpannerProfile( + com.google.cloud.datastream.v1.SpannerProfile.Builder builderForValue) { + if (spannerProfileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + spannerProfileBuilder_.setMessage(builderForValue.build()); + } + profileCase_ = 109; + return this; + } + + /** + * + * + *
    +     * Profile for connecting to a Spanner source.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerProfile spanner_profile = 109; + */ + public Builder mergeSpannerProfile(com.google.cloud.datastream.v1.SpannerProfile value) { + if (spannerProfileBuilder_ == null) { + if (profileCase_ == 109 + && profile_ != com.google.cloud.datastream.v1.SpannerProfile.getDefaultInstance()) { + profile_ = + com.google.cloud.datastream.v1.SpannerProfile.newBuilder( + (com.google.cloud.datastream.v1.SpannerProfile) profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + if (profileCase_ == 109) { + spannerProfileBuilder_.mergeFrom(value); + } else { + spannerProfileBuilder_.setMessage(value); + } + } + profileCase_ = 109; + return this; + } + + /** + * + * + *
    +     * Profile for connecting to a Spanner source.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerProfile spanner_profile = 109; + */ + public Builder clearSpannerProfile() { + if (spannerProfileBuilder_ == null) { + if (profileCase_ == 109) { + profileCase_ = 0; + profile_ = null; + onChanged(); + } + } else { + if (profileCase_ == 109) { + profileCase_ = 0; + profile_ = null; + } + spannerProfileBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Profile for connecting to a Spanner source.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerProfile spanner_profile = 109; + */ + public com.google.cloud.datastream.v1.SpannerProfile.Builder getSpannerProfileBuilder() { + return internalGetSpannerProfileFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Profile for connecting to a Spanner source.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerProfile spanner_profile = 109; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerProfileOrBuilder getSpannerProfileOrBuilder() { + if ((profileCase_ == 109) && (spannerProfileBuilder_ != null)) { + return spannerProfileBuilder_.getMessageOrBuilder(); + } else { + if (profileCase_ == 109) { + return (com.google.cloud.datastream.v1.SpannerProfile) profile_; + } + return com.google.cloud.datastream.v1.SpannerProfile.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Profile for connecting to a Spanner source.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerProfile spanner_profile = 109; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SpannerProfile, + com.google.cloud.datastream.v1.SpannerProfile.Builder, + com.google.cloud.datastream.v1.SpannerProfileOrBuilder> + internalGetSpannerProfileFieldBuilder() { + if (spannerProfileBuilder_ == null) { + if (!(profileCase_ == 109)) { + profile_ = com.google.cloud.datastream.v1.SpannerProfile.getDefaultInstance(); + } + spannerProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SpannerProfile, + com.google.cloud.datastream.v1.SpannerProfile.Builder, + com.google.cloud.datastream.v1.SpannerProfileOrBuilder>( + (com.google.cloud.datastream.v1.SpannerProfile) profile_, + getParentForChildren(), + isClean()); + profile_ = null; + } + profileCase_ = 109; + onChanged(); + return spannerProfileBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.DataverseProfile, + com.google.cloud.datastream.v1.DataverseProfile.Builder, + com.google.cloud.datastream.v1.DataverseProfileOrBuilder> + dataverseProfileBuilder_; + + /** + * + * + *
    +     * Profile for connecting to a Dataverse source.
    +     * 
    + * + * .google.cloud.datastream.v1.DataverseProfile dataverse_profile = 114; + * + * @return Whether the dataverseProfile field is set. + */ + @java.lang.Override + public boolean hasDataverseProfile() { + return profileCase_ == 114; + } + + /** + * + * + *
    +     * Profile for connecting to a Dataverse source.
    +     * 
    + * + * .google.cloud.datastream.v1.DataverseProfile dataverse_profile = 114; + * + * @return The dataverseProfile. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.DataverseProfile getDataverseProfile() { + if (dataverseProfileBuilder_ == null) { + if (profileCase_ == 114) { + return (com.google.cloud.datastream.v1.DataverseProfile) profile_; + } + return com.google.cloud.datastream.v1.DataverseProfile.getDefaultInstance(); + } else { + if (profileCase_ == 114) { + return dataverseProfileBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.DataverseProfile.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Profile for connecting to a Dataverse source.
    +     * 
    + * + * .google.cloud.datastream.v1.DataverseProfile dataverse_profile = 114; + */ + public Builder setDataverseProfile(com.google.cloud.datastream.v1.DataverseProfile value) { + if (dataverseProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + dataverseProfileBuilder_.setMessage(value); + } + profileCase_ = 114; + return this; + } + + /** + * + * + *
    +     * Profile for connecting to a Dataverse source.
    +     * 
    + * + * .google.cloud.datastream.v1.DataverseProfile dataverse_profile = 114; + */ + public Builder setDataverseProfile( + com.google.cloud.datastream.v1.DataverseProfile.Builder builderForValue) { + if (dataverseProfileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + dataverseProfileBuilder_.setMessage(builderForValue.build()); + } + profileCase_ = 114; + return this; + } + + /** + * + * + *
    +     * Profile for connecting to a Dataverse source.
    +     * 
    + * + * .google.cloud.datastream.v1.DataverseProfile dataverse_profile = 114; + */ + public Builder mergeDataverseProfile(com.google.cloud.datastream.v1.DataverseProfile value) { + if (dataverseProfileBuilder_ == null) { + if (profileCase_ == 114 + && profile_ != com.google.cloud.datastream.v1.DataverseProfile.getDefaultInstance()) { + profile_ = + com.google.cloud.datastream.v1.DataverseProfile.newBuilder( + (com.google.cloud.datastream.v1.DataverseProfile) profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + if (profileCase_ == 114) { + dataverseProfileBuilder_.mergeFrom(value); + } else { + dataverseProfileBuilder_.setMessage(value); + } + } + profileCase_ = 114; + return this; + } + + /** + * + * + *
    +     * Profile for connecting to a Dataverse source.
    +     * 
    + * + * .google.cloud.datastream.v1.DataverseProfile dataverse_profile = 114; + */ + public Builder clearDataverseProfile() { + if (dataverseProfileBuilder_ == null) { + if (profileCase_ == 114) { + profileCase_ = 0; + profile_ = null; + onChanged(); + } + } else { + if (profileCase_ == 114) { + profileCase_ = 0; + profile_ = null; + } + dataverseProfileBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Profile for connecting to a Dataverse source.
    +     * 
    + * + * .google.cloud.datastream.v1.DataverseProfile dataverse_profile = 114; + */ + public com.google.cloud.datastream.v1.DataverseProfile.Builder getDataverseProfileBuilder() { + return internalGetDataverseProfileFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Profile for connecting to a Dataverse source.
    +     * 
    + * + * .google.cloud.datastream.v1.DataverseProfile dataverse_profile = 114; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.DataverseProfileOrBuilder getDataverseProfileOrBuilder() { + if ((profileCase_ == 114) && (dataverseProfileBuilder_ != null)) { + return dataverseProfileBuilder_.getMessageOrBuilder(); + } else { + if (profileCase_ == 114) { + return (com.google.cloud.datastream.v1.DataverseProfile) profile_; + } + return com.google.cloud.datastream.v1.DataverseProfile.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Profile for connecting to a Dataverse source.
    +     * 
    + * + * .google.cloud.datastream.v1.DataverseProfile dataverse_profile = 114; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.DataverseProfile, + com.google.cloud.datastream.v1.DataverseProfile.Builder, + com.google.cloud.datastream.v1.DataverseProfileOrBuilder> + internalGetDataverseProfileFieldBuilder() { + if (dataverseProfileBuilder_ == null) { + if (!(profileCase_ == 114)) { + profile_ = com.google.cloud.datastream.v1.DataverseProfile.getDefaultInstance(); + } + dataverseProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.DataverseProfile, + com.google.cloud.datastream.v1.DataverseProfile.Builder, + com.google.cloud.datastream.v1.DataverseProfileOrBuilder>( + (com.google.cloud.datastream.v1.DataverseProfile) profile_, + getParentForChildren(), + isClean()); + profile_ = null; + } + profileCase_ = 114; + onChanged(); + return dataverseProfileBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile, + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile.Builder, + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfileOrBuilder> + salesforceMarketingCloudProfileBuilder_; + + /** + * + * + *
    +     * Profile for connecting to a Salesforce Marketing Cloud source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudProfile salesforce_marketing_cloud_profile = 119; + * + * + * @return Whether the salesforceMarketingCloudProfile field is set. + */ + @java.lang.Override + public boolean hasSalesforceMarketingCloudProfile() { + return profileCase_ == 119; + } + + /** + * + * + *
    +     * Profile for connecting to a Salesforce Marketing Cloud source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudProfile salesforce_marketing_cloud_profile = 119; + * + * + * @return The salesforceMarketingCloudProfile. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile + getSalesforceMarketingCloudProfile() { + if (salesforceMarketingCloudProfileBuilder_ == null) { + if (profileCase_ == 119) { + return (com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile) profile_; + } + return com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile.getDefaultInstance(); + } else { + if (profileCase_ == 119) { + return salesforceMarketingCloudProfileBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Profile for connecting to a Salesforce Marketing Cloud source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudProfile salesforce_marketing_cloud_profile = 119; + * + */ + public Builder setSalesforceMarketingCloudProfile( + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile value) { + if (salesforceMarketingCloudProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + salesforceMarketingCloudProfileBuilder_.setMessage(value); + } + profileCase_ = 119; + return this; + } + + /** + * + * + *
    +     * Profile for connecting to a Salesforce Marketing Cloud source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudProfile salesforce_marketing_cloud_profile = 119; + * + */ + public Builder setSalesforceMarketingCloudProfile( + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile.Builder builderForValue) { + if (salesforceMarketingCloudProfileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + salesforceMarketingCloudProfileBuilder_.setMessage(builderForValue.build()); + } + profileCase_ = 119; + return this; + } + + /** + * + * + *
    +     * Profile for connecting to a Salesforce Marketing Cloud source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudProfile salesforce_marketing_cloud_profile = 119; + * + */ + public Builder mergeSalesforceMarketingCloudProfile( + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile value) { + if (salesforceMarketingCloudProfileBuilder_ == null) { + if (profileCase_ == 119 + && profile_ + != com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile + .getDefaultInstance()) { + profile_ = + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile.newBuilder( + (com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile) profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + if (profileCase_ == 119) { + salesforceMarketingCloudProfileBuilder_.mergeFrom(value); + } else { + salesforceMarketingCloudProfileBuilder_.setMessage(value); + } + } + profileCase_ = 119; + return this; + } + + /** + * + * + *
    +     * Profile for connecting to a Salesforce Marketing Cloud source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudProfile salesforce_marketing_cloud_profile = 119; + * + */ + public Builder clearSalesforceMarketingCloudProfile() { + if (salesforceMarketingCloudProfileBuilder_ == null) { + if (profileCase_ == 119) { + profileCase_ = 0; + profile_ = null; + onChanged(); + } + } else { + if (profileCase_ == 119) { + profileCase_ = 0; + profile_ = null; + } + salesforceMarketingCloudProfileBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Profile for connecting to a Salesforce Marketing Cloud source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudProfile salesforce_marketing_cloud_profile = 119; + * + */ + public com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile.Builder + getSalesforceMarketingCloudProfileBuilder() { + return internalGetSalesforceMarketingCloudProfileFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Profile for connecting to a Salesforce Marketing Cloud source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudProfile salesforce_marketing_cloud_profile = 119; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SalesforceMarketingCloudProfileOrBuilder + getSalesforceMarketingCloudProfileOrBuilder() { + if ((profileCase_ == 119) && (salesforceMarketingCloudProfileBuilder_ != null)) { + return salesforceMarketingCloudProfileBuilder_.getMessageOrBuilder(); + } else { + if (profileCase_ == 119) { + return (com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile) profile_; + } + return com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Profile for connecting to a Salesforce Marketing Cloud source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudProfile salesforce_marketing_cloud_profile = 119; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile, + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile.Builder, + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfileOrBuilder> + internalGetSalesforceMarketingCloudProfileFieldBuilder() { + if (salesforceMarketingCloudProfileBuilder_ == null) { + if (!(profileCase_ == 119)) { + profile_ = + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile.getDefaultInstance(); + } + salesforceMarketingCloudProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile, + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile.Builder, + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfileOrBuilder>( + (com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile) profile_, + getParentForChildren(), + isClean()); + profile_ = null; + } + profileCase_ = 119; + onChanged(); + return salesforceMarketingCloudProfileBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.ServiceNowProfile, + com.google.cloud.datastream.v1.ServiceNowProfile.Builder, + com.google.cloud.datastream.v1.ServiceNowProfileOrBuilder> + serviceNowProfileBuilder_; + + /** + * + * + *
    +     * Profile for connecting to a ServiceNow source.
    +     * 
    + * + * .google.cloud.datastream.v1.ServiceNowProfile service_now_profile = 120; + * + * @return Whether the serviceNowProfile field is set. + */ + @java.lang.Override + public boolean hasServiceNowProfile() { + return profileCase_ == 120; + } + + /** + * + * + *
    +     * Profile for connecting to a ServiceNow source.
    +     * 
    + * + * .google.cloud.datastream.v1.ServiceNowProfile service_now_profile = 120; + * + * @return The serviceNowProfile. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.ServiceNowProfile getServiceNowProfile() { + if (serviceNowProfileBuilder_ == null) { + if (profileCase_ == 120) { + return (com.google.cloud.datastream.v1.ServiceNowProfile) profile_; + } + return com.google.cloud.datastream.v1.ServiceNowProfile.getDefaultInstance(); + } else { + if (profileCase_ == 120) { + return serviceNowProfileBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.ServiceNowProfile.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Profile for connecting to a ServiceNow source.
    +     * 
    + * + * .google.cloud.datastream.v1.ServiceNowProfile service_now_profile = 120; + */ + public Builder setServiceNowProfile(com.google.cloud.datastream.v1.ServiceNowProfile value) { + if (serviceNowProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + serviceNowProfileBuilder_.setMessage(value); + } + profileCase_ = 120; + return this; + } + + /** + * + * + *
    +     * Profile for connecting to a ServiceNow source.
    +     * 
    + * + * .google.cloud.datastream.v1.ServiceNowProfile service_now_profile = 120; + */ + public Builder setServiceNowProfile( + com.google.cloud.datastream.v1.ServiceNowProfile.Builder builderForValue) { + if (serviceNowProfileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + serviceNowProfileBuilder_.setMessage(builderForValue.build()); + } + profileCase_ = 120; + return this; + } + + /** + * + * + *
    +     * Profile for connecting to a ServiceNow source.
    +     * 
    + * + * .google.cloud.datastream.v1.ServiceNowProfile service_now_profile = 120; + */ + public Builder mergeServiceNowProfile(com.google.cloud.datastream.v1.ServiceNowProfile value) { + if (serviceNowProfileBuilder_ == null) { + if (profileCase_ == 120 + && profile_ != com.google.cloud.datastream.v1.ServiceNowProfile.getDefaultInstance()) { + profile_ = + com.google.cloud.datastream.v1.ServiceNowProfile.newBuilder( + (com.google.cloud.datastream.v1.ServiceNowProfile) profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + if (profileCase_ == 120) { + serviceNowProfileBuilder_.mergeFrom(value); + } else { + serviceNowProfileBuilder_.setMessage(value); + } + } + profileCase_ = 120; + return this; + } + + /** + * + * + *
    +     * Profile for connecting to a ServiceNow source.
    +     * 
    + * + * .google.cloud.datastream.v1.ServiceNowProfile service_now_profile = 120; + */ + public Builder clearServiceNowProfile() { + if (serviceNowProfileBuilder_ == null) { + if (profileCase_ == 120) { + profileCase_ = 0; + profile_ = null; + onChanged(); + } + } else { + if (profileCase_ == 120) { + profileCase_ = 0; + profile_ = null; + } + serviceNowProfileBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Profile for connecting to a ServiceNow source.
    +     * 
    + * + * .google.cloud.datastream.v1.ServiceNowProfile service_now_profile = 120; + */ + public com.google.cloud.datastream.v1.ServiceNowProfile.Builder getServiceNowProfileBuilder() { + return internalGetServiceNowProfileFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Profile for connecting to a ServiceNow source.
    +     * 
    + * + * .google.cloud.datastream.v1.ServiceNowProfile service_now_profile = 120; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.ServiceNowProfileOrBuilder + getServiceNowProfileOrBuilder() { + if ((profileCase_ == 120) && (serviceNowProfileBuilder_ != null)) { + return serviceNowProfileBuilder_.getMessageOrBuilder(); + } else { + if (profileCase_ == 120) { + return (com.google.cloud.datastream.v1.ServiceNowProfile) profile_; + } + return com.google.cloud.datastream.v1.ServiceNowProfile.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Profile for connecting to a ServiceNow source.
    +     * 
    + * + * .google.cloud.datastream.v1.ServiceNowProfile service_now_profile = 120; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.ServiceNowProfile, + com.google.cloud.datastream.v1.ServiceNowProfile.Builder, + com.google.cloud.datastream.v1.ServiceNowProfileOrBuilder> + internalGetServiceNowProfileFieldBuilder() { + if (serviceNowProfileBuilder_ == null) { + if (!(profileCase_ == 120)) { + profile_ = com.google.cloud.datastream.v1.ServiceNowProfile.getDefaultInstance(); + } + serviceNowProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.ServiceNowProfile, + com.google.cloud.datastream.v1.ServiceNowProfile.Builder, + com.google.cloud.datastream.v1.ServiceNowProfileOrBuilder>( + (com.google.cloud.datastream.v1.ServiceNowProfile) profile_, + getParentForChildren(), + isClean()); + profile_ = null; + } + profileCase_ = 120; + onChanged(); + return serviceNowProfileBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.WorkdayProfile, + com.google.cloud.datastream.v1.WorkdayProfile.Builder, + com.google.cloud.datastream.v1.WorkdayProfileOrBuilder> + workdayProfileBuilder_; + + /** + * + * + *
    +     * Optional. Profile for connecting to a Workday source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.WorkdayProfile workday_profile = 121 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the workdayProfile field is set. + */ + @java.lang.Override + public boolean hasWorkdayProfile() { + return profileCase_ == 121; + } + + /** + * + * + *
    +     * Optional. Profile for connecting to a Workday source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.WorkdayProfile workday_profile = 121 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workdayProfile. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.WorkdayProfile getWorkdayProfile() { + if (workdayProfileBuilder_ == null) { + if (profileCase_ == 121) { + return (com.google.cloud.datastream.v1.WorkdayProfile) profile_; + } + return com.google.cloud.datastream.v1.WorkdayProfile.getDefaultInstance(); + } else { + if (profileCase_ == 121) { + return workdayProfileBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.WorkdayProfile.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. Profile for connecting to a Workday source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.WorkdayProfile workday_profile = 121 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setWorkdayProfile(com.google.cloud.datastream.v1.WorkdayProfile value) { + if (workdayProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + workdayProfileBuilder_.setMessage(value); + } + profileCase_ = 121; + return this; + } + + /** + * + * + *
    +     * Optional. Profile for connecting to a Workday source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.WorkdayProfile workday_profile = 121 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setWorkdayProfile( + com.google.cloud.datastream.v1.WorkdayProfile.Builder builderForValue) { + if (workdayProfileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + workdayProfileBuilder_.setMessage(builderForValue.build()); + } + profileCase_ = 121; + return this; + } + + /** + * + * + *
    +     * Optional. Profile for connecting to a Workday source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.WorkdayProfile workday_profile = 121 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeWorkdayProfile(com.google.cloud.datastream.v1.WorkdayProfile value) { + if (workdayProfileBuilder_ == null) { + if (profileCase_ == 121 + && profile_ != com.google.cloud.datastream.v1.WorkdayProfile.getDefaultInstance()) { + profile_ = + com.google.cloud.datastream.v1.WorkdayProfile.newBuilder( + (com.google.cloud.datastream.v1.WorkdayProfile) profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + if (profileCase_ == 121) { + workdayProfileBuilder_.mergeFrom(value); + } else { + workdayProfileBuilder_.setMessage(value); + } + } + profileCase_ = 121; + return this; + } + + /** + * + * + *
    +     * Optional. Profile for connecting to a Workday source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.WorkdayProfile workday_profile = 121 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearWorkdayProfile() { + if (workdayProfileBuilder_ == null) { + if (profileCase_ == 121) { + profileCase_ = 0; + profile_ = null; + onChanged(); + } + } else { + if (profileCase_ == 121) { + profileCase_ = 0; + profile_ = null; + } + workdayProfileBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Profile for connecting to a Workday source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.WorkdayProfile workday_profile = 121 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.WorkdayProfile.Builder getWorkdayProfileBuilder() { + return internalGetWorkdayProfileFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Profile for connecting to a Workday source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.WorkdayProfile workday_profile = 121 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.WorkdayProfileOrBuilder getWorkdayProfileOrBuilder() { + if ((profileCase_ == 121) && (workdayProfileBuilder_ != null)) { + return workdayProfileBuilder_.getMessageOrBuilder(); + } else { + if (profileCase_ == 121) { + return (com.google.cloud.datastream.v1.WorkdayProfile) profile_; + } + return com.google.cloud.datastream.v1.WorkdayProfile.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. Profile for connecting to a Workday source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.WorkdayProfile workday_profile = 121 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.WorkdayProfile, + com.google.cloud.datastream.v1.WorkdayProfile.Builder, + com.google.cloud.datastream.v1.WorkdayProfileOrBuilder> + internalGetWorkdayProfileFieldBuilder() { + if (workdayProfileBuilder_ == null) { + if (!(profileCase_ == 121)) { + profile_ = com.google.cloud.datastream.v1.WorkdayProfile.getDefaultInstance(); + } + workdayProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.WorkdayProfile, + com.google.cloud.datastream.v1.WorkdayProfile.Builder, + com.google.cloud.datastream.v1.WorkdayProfileOrBuilder>( + (com.google.cloud.datastream.v1.WorkdayProfile) profile_, + getParentForChildren(), + isClean()); + profile_ = null; + } + profileCase_ = 121; + onChanged(); + return workdayProfileBuilder_; + } + private com.google.protobuf.SingleFieldBuilder< com.google.cloud.datastream.v1.StaticServiceIpConnectivity, com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder, diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java index 53bceb74dd6d..9276d6b0ccee 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java @@ -281,7 +281,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Oracle ConnectionProfile configuration.
    +   * Profile for connecting to an Oracle source.
        * 
    * * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; @@ -294,7 +294,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Oracle ConnectionProfile configuration.
    +   * Profile for connecting to an Oracle source.
        * 
    * * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; @@ -307,7 +307,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Oracle ConnectionProfile configuration.
    +   * Profile for connecting to an Oracle source.
        * 
    * * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; @@ -318,7 +318,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Cloud Storage ConnectionProfile configuration.
    +   * Profile for connecting to a Cloud Storage destination.
        * 
    * * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; @@ -331,7 +331,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Cloud Storage ConnectionProfile configuration.
    +   * Profile for connecting to a Cloud Storage destination.
        * 
    * * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; @@ -344,7 +344,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Cloud Storage ConnectionProfile configuration.
    +   * Profile for connecting to a Cloud Storage destination.
        * 
    * * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; @@ -355,7 +355,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * MySQL ConnectionProfile configuration.
    +   * Profile for connecting to a MySQL source.
        * 
    * * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; @@ -368,7 +368,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * MySQL ConnectionProfile configuration.
    +   * Profile for connecting to a MySQL source.
        * 
    * * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; @@ -381,7 +381,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * MySQL ConnectionProfile configuration.
    +   * Profile for connecting to a MySQL source.
        * 
    * * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; @@ -392,7 +392,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * BigQuery Connection Profile configuration.
    +   * Profile for connecting to a BigQuery destination.
        * 
    * * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; @@ -405,7 +405,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * BigQuery Connection Profile configuration.
    +   * Profile for connecting to a BigQuery destination.
        * 
    * * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; @@ -418,7 +418,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * BigQuery Connection Profile configuration.
    +   * Profile for connecting to a BigQuery destination.
        * 
    * * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; @@ -429,7 +429,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * PostgreSQL Connection Profile configuration.
    +   * Profile for connecting to a PostgreSQL source.
        * 
    * * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; @@ -442,7 +442,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * PostgreSQL Connection Profile configuration.
    +   * Profile for connecting to a PostgreSQL source.
        * 
    * * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; @@ -455,7 +455,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * PostgreSQL Connection Profile configuration.
    +   * Profile for connecting to a PostgreSQL source.
        * 
    * * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; @@ -466,7 +466,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * SQLServer Connection Profile configuration.
    +   * Profile for connecting to a SQLServer source.
        * 
    * * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; @@ -479,7 +479,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * SQLServer Connection Profile configuration.
    +   * Profile for connecting to a SQLServer source.
        * 
    * * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; @@ -492,7 +492,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * SQLServer Connection Profile configuration.
    +   * Profile for connecting to a SQLServer source.
        * 
    * * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; @@ -503,7 +503,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Salesforce Connection Profile configuration.
    +   * Profile for connecting to a Salesforce source.
        * 
    * * .google.cloud.datastream.v1.SalesforceProfile salesforce_profile = 107; @@ -516,7 +516,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Salesforce Connection Profile configuration.
    +   * Profile for connecting to a Salesforce source.
        * 
    * * .google.cloud.datastream.v1.SalesforceProfile salesforce_profile = 107; @@ -529,7 +529,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Salesforce Connection Profile configuration.
    +   * Profile for connecting to a Salesforce source.
        * 
    * * .google.cloud.datastream.v1.SalesforceProfile salesforce_profile = 107; @@ -540,7 +540,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * MongoDB Connection Profile configuration.
    +   * Profile for connecting to a MongoDB source.
        * 
    * * .google.cloud.datastream.v1.MongodbProfile mongodb_profile = 108; @@ -553,7 +553,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * MongoDB Connection Profile configuration.
    +   * Profile for connecting to a MongoDB source.
        * 
    * * .google.cloud.datastream.v1.MongodbProfile mongodb_profile = 108; @@ -566,13 +566,212 @@ java.lang.String getLabelsOrDefault( * * *
    -   * MongoDB Connection Profile configuration.
    +   * Profile for connecting to a MongoDB source.
        * 
    * * .google.cloud.datastream.v1.MongodbProfile mongodb_profile = 108; */ com.google.cloud.datastream.v1.MongodbProfileOrBuilder getMongodbProfileOrBuilder(); + /** + * + * + *
    +   * Profile for connecting to a Spanner source.
    +   * 
    + * + * .google.cloud.datastream.v1.SpannerProfile spanner_profile = 109; + * + * @return Whether the spannerProfile field is set. + */ + boolean hasSpannerProfile(); + + /** + * + * + *
    +   * Profile for connecting to a Spanner source.
    +   * 
    + * + * .google.cloud.datastream.v1.SpannerProfile spanner_profile = 109; + * + * @return The spannerProfile. + */ + com.google.cloud.datastream.v1.SpannerProfile getSpannerProfile(); + + /** + * + * + *
    +   * Profile for connecting to a Spanner source.
    +   * 
    + * + * .google.cloud.datastream.v1.SpannerProfile spanner_profile = 109; + */ + com.google.cloud.datastream.v1.SpannerProfileOrBuilder getSpannerProfileOrBuilder(); + + /** + * + * + *
    +   * Profile for connecting to a Dataverse source.
    +   * 
    + * + * .google.cloud.datastream.v1.DataverseProfile dataverse_profile = 114; + * + * @return Whether the dataverseProfile field is set. + */ + boolean hasDataverseProfile(); + + /** + * + * + *
    +   * Profile for connecting to a Dataverse source.
    +   * 
    + * + * .google.cloud.datastream.v1.DataverseProfile dataverse_profile = 114; + * + * @return The dataverseProfile. + */ + com.google.cloud.datastream.v1.DataverseProfile getDataverseProfile(); + + /** + * + * + *
    +   * Profile for connecting to a Dataverse source.
    +   * 
    + * + * .google.cloud.datastream.v1.DataverseProfile dataverse_profile = 114; + */ + com.google.cloud.datastream.v1.DataverseProfileOrBuilder getDataverseProfileOrBuilder(); + + /** + * + * + *
    +   * Profile for connecting to a Salesforce Marketing Cloud source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudProfile salesforce_marketing_cloud_profile = 119; + * + * + * @return Whether the salesforceMarketingCloudProfile field is set. + */ + boolean hasSalesforceMarketingCloudProfile(); + + /** + * + * + *
    +   * Profile for connecting to a Salesforce Marketing Cloud source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudProfile salesforce_marketing_cloud_profile = 119; + * + * + * @return The salesforceMarketingCloudProfile. + */ + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile + getSalesforceMarketingCloudProfile(); + + /** + * + * + *
    +   * Profile for connecting to a Salesforce Marketing Cloud source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudProfile salesforce_marketing_cloud_profile = 119; + * + */ + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfileOrBuilder + getSalesforceMarketingCloudProfileOrBuilder(); + + /** + * + * + *
    +   * Profile for connecting to a ServiceNow source.
    +   * 
    + * + * .google.cloud.datastream.v1.ServiceNowProfile service_now_profile = 120; + * + * @return Whether the serviceNowProfile field is set. + */ + boolean hasServiceNowProfile(); + + /** + * + * + *
    +   * Profile for connecting to a ServiceNow source.
    +   * 
    + * + * .google.cloud.datastream.v1.ServiceNowProfile service_now_profile = 120; + * + * @return The serviceNowProfile. + */ + com.google.cloud.datastream.v1.ServiceNowProfile getServiceNowProfile(); + + /** + * + * + *
    +   * Profile for connecting to a ServiceNow source.
    +   * 
    + * + * .google.cloud.datastream.v1.ServiceNowProfile service_now_profile = 120; + */ + com.google.cloud.datastream.v1.ServiceNowProfileOrBuilder getServiceNowProfileOrBuilder(); + + /** + * + * + *
    +   * Optional. Profile for connecting to a Workday source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.WorkdayProfile workday_profile = 121 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the workdayProfile field is set. + */ + boolean hasWorkdayProfile(); + + /** + * + * + *
    +   * Optional. Profile for connecting to a Workday source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.WorkdayProfile workday_profile = 121 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workdayProfile. + */ + com.google.cloud.datastream.v1.WorkdayProfile getWorkdayProfile(); + + /** + * + * + *
    +   * Optional. Profile for connecting to a Workday source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.WorkdayProfile workday_profile = 121 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.WorkdayProfileOrBuilder getWorkdayProfileOrBuilder(); + /** * * diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java index 7ecfdd05a22c..6175d97b84c5 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java @@ -201,28 +201,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "o\032\031google/api/resource.proto\0325google/clo" + "ud/datastream/v1/datastream_resources.pr" + "oto\032#google/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\321\005\n" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\233\007\n" + " DiscoverConnectionProfileRequest\022C\n" + "\006parent\030\001 \001(\tB3\340A\002\372A-\022+d" - + "atastream.googleapis.com/ConnectionProfile\022L\n" + + "atastream.googleapis.com/ConnectionProfile\022Q\n" + "\022connection_profile\030\310\001 \001(\0132-.google" - + ".cloud.datastream.v1.ConnectionProfileH\000\022\"\n" - + "\027connection_profile_name\030\311\001 \001(\tH\000\022\030\n" - + "\016full_hierarchy\030\003 \001(\010H\001\022\031\n" - + "\017hierarchy_depth\030\004 \001(\005H\001\022?\n" - + "\014oracle_rdbms\030d \001(\0132\'.google.cloud.datastream.v1.OracleRdbmsH\002\022=\n" - + "\013mysql_rdbms\030e \001(\0132&.google.cloud.datastream.v1.MysqlRdbmsH\002\022G\n" - + "\020postgresql_rdbms\030f " - + "\001(\0132+.google.cloud.datastream.v1.PostgresqlRdbmsH\002\022F\n" - + "\020sql_server_rdbms\030g \001(\0132*.g" - + "oogle.cloud.datastream.v1.SqlServerRdbmsH\002\022C\n" + + ".cloud.datastream.v1.ConnectionProfileB\003\340A\001H\000\022\'\n" + + "\027connection_profile_name\030\311\001 \001(\tB\003\340A\001H\000\022\035\n" + + "\016full_hierarchy\030\003 \001(\010B\003\340A\001H\001\022\036\n" + + "\017hierarchy_depth\030\004 \001(\005B\003\340A\001H\001\022D\n" + + "\014oracle_rdbms\030d" + + " \001(\0132\'.google.cloud.datastream.v1.OracleRdbmsB\003\340A\001H\002\022B\n" + + "\013mysql_rdbms\030e \001(\013" + + "2&.google.cloud.datastream.v1.MysqlRdbmsB\003\340A\001H\002\022L\n" + + "\020postgresql_rdbms\030f \001(\0132+.goog" + + "le.cloud.datastream.v1.PostgresqlRdbmsB\003\340A\001H\002\022K\n" + + "\020sql_server_rdbms\030g \001(\0132*.google" + + ".cloud.datastream.v1.SqlServerRdbmsB\003\340A\001H\002\022H\n" + "\016salesforce_org\030h" - + " \001(\0132).google.cloud.datastream.v1.SalesforceOrgH\002\022E\n" + + " \001(\0132).google.cloud.datastream.v1.SalesforceOrgB\003\340A\001H\002\022J\n" + "\017mongodb_cluster\030i" - + " \001(\0132*.google.cloud.datastream.v1.MongodbClusterH\002B\010\n" + + " \001(\0132*.google.cloud.datastream.v1.MongodbClusterB\003\340A\001H\002\022L\n" + + "\020spanner_database\030j" + + " \001(\0132+.google.cloud.datastream.v1.SpannerDatabaseB\003\340A\001H\002\022H\n" + + "\016source_catalog\030l" + + " \001(\0132).google.cloud.datastream.v1.SourceCatalogB\003\340A\001H\002B\010\n" + "\006targetB\013\n" + "\thierarchyB\r\n" - + "\013data_object\"\317\003\n" + + "\013data_object\"\335\004\n" + "!DiscoverConnectionProfileResponse\022?\n" + "\014oracle_rdbms\030d \001(\0132\'.google.cloud.datastream.v1.OracleRdbmsH\000\022=\n" + "\013mysql_rdbms\030e \001(\0132&.google.cloud.datastream.v1.MysqlRdbmsH\000\022G\n" @@ -230,61 +236,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132+.google.cloud.datastream.v1.PostgresqlRdbmsH\000\022F\n" + "\020sql_server_rdbms\030g" + " \001(\0132*.google.cloud.datastream.v1.SqlServerRdbmsH\000\022C\n" - + "\016salesforce_org\030h \001(\0132).go" - + "ogle.cloud.datastream.v1.SalesforceOrgH\000\022E\n" + + "\016salesforce_org\030h \001(\0132)." + + "google.cloud.datastream.v1.SalesforceOrgH\000\022E\n" + "\017mongodb_cluster\030i" - + " \001(\0132*.google.cloud.datastream.v1.MongodbClusterH\000B\r\n" - + "\013data_object\"w\n" + + " \001(\0132*.google.cloud.datastream.v1.MongodbClusterH\000\022G\n" + + "\020spanner_database\030j" + + " \001(\0132+.google.cloud.datastream.v1.SpannerDatabaseH\000\022C\n" + + "\016source_catalog\030l \001(\0132).google.cloud.datastream.v1.SourceCatalogH\000B\r\n" + + "\013data_object\"\201\001\n" + "\025FetchStaticIpsRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" - + "!locations.googleapis.com/Location\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"E\n" + + "!locations.googleapis.com/Location\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"E\n" + "\026FetchStaticIpsResponse\022\022\n\n" + "static_ips\030\001 \003(\t\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\255\001\n" + + "\017next_page_token\030\002 \001(\t\"\301\001\n" + "\035ListConnectionProfilesRequest\022C\n" + "\006parent\030\001 \001(" - + "\tB3\340A\002\372A-\022+datastream.googleapis.com/ConnectionProfile\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\022\016\n" - + "\006filter\030\004 \001(\t\022\020\n" - + "\010order_by\030\005 \001(\t\"\232\001\n" + + "\tB3\340A\002\372A-\022+datastream.googleapis.com/ConnectionProfile\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\232\001\n" + "\036ListConnectionProfilesResponse\022J\n" - + "\023connection_profiles\030\001 \003(\0132-" - + ".google.cloud.datastream.v1.ConnectionProfile\022\027\n" + + "\023connection_profiles\030\001" + + " \003(\0132-.google.cloud.datastream.v1.ConnectionProfile\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"`\n" + "\033GetConnectionProfileRequest\022A\n" + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + "+datastream.googleapis.com/ConnectionProfile\"\242\002\n" + "\036CreateConnectionProfileRequest\022C\n" - + "\006parent\030\001 \001(\t" - + "B3\340A\002\372A-\022+datastream.googleapis.com/ConnectionProfile\022\"\n" + + "\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\022+datastream.googleapis.com/ConnectionProfile\022\"\n" + "\025connection_profile_id\030\002 \001(\tB\003\340A\002\022N\n" - + "\022connection_profile\030\003 \001(\0132-." - + "google.cloud.datastream.v1.ConnectionProfileB\003\340A\002\022\027\n\n" + + "\022connection_profile\030\003" + + " \001(\0132-.google.cloud.datastream.v1.ConnectionProfileB\003\340A\002\022\027\n\n" + "request_id\030\004 \001(\tB\003\340A\001\022\032\n\r" + "validate_only\030\005 \001(\010B\003\340A\001\022\022\n" + "\005force\030\006 \001(\010B\003\340A\001\"\357\001\n" + "\036UpdateConnectionProfileRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022N\n" - + "\022connection_profile\030\002 \001(\0132" - + "-.google.cloud.datastream.v1.ConnectionProfileB\003\340A\002\022\027\n\n" + + "\022connection_profile\030\002" + + " \001(\0132-.google.cloud.datastream.v1.ConnectionProfileB\003\340A\002\022\027\n\n" + "request_id\030\003 \001(\tB\003\340A\001\022\032\n\r" + "validate_only\030\004 \001(\010B\003\340A\001\022\022\n" + "\005force\030\005 \001(\010B\003\340A\001\"|\n" + "\036DeleteConnectionProfileRequest\022A\n" + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + "+datastream.googleapis.com/ConnectionProfile\022\027\n\n" - + "request_id\030\002 \001(\tB\003\340A\001\"\227\001\n" + + "request_id\030\002 \001(\tB\003\340A\001\"\253\001\n" + "\022ListStreamsRequest\0228\n" + "\006parent\030\001 \001(\tB(\340A\002\372A\"\022" - + " datastream.googleapis.com/Stream\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\022\016\n" - + "\006filter\030\004 \001(\t\022\020\n" - + "\010order_by\030\005 \001(\t\"x\n" + + " datastream.googleapis.com/Stream\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"x\n" + "\023ListStreamsResponse\0223\n" + "\007streams\030\001 \003(\0132\".google.cloud.datastream.v1.Stream\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" @@ -296,8 +305,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB(\340A\002\372A\"\022" + " datastream.googleapis.com/Stream\022\026\n" + "\tstream_id\030\002 \001(\tB\003\340A\002\0227\n" - + "\006stream\030\003" - + " \001(\0132\".google.cloud.datastream.v1.StreamB\003\340A\002\022\027\n\n" + + "\006stream\030\003 \001(\0132" + + "\".google.cloud.datastream.v1.StreamB\003\340A\002\022\027\n\n" + "request_id\030\004 \001(\tB\003\340A\001\022\032\n\r" + "validate_only\030\005 \001(\010B\003\340A\001\022\022\n" + "\005force\030\006 \001(\010B\003\340A\001\"\315\001\n" @@ -324,26 +333,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031LookupStreamObjectRequest\0228\n" + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + " datastream.googleapis.com/Stream\022Y\n" - + "\030source_object_identifier\030\002" - + " \001(\01322.google.cloud.datastream.v1.SourceObjectIdentifierB\003\340A\002\"Y\n" + + "\030source_object_identifier\030\002 \001(\013" + + "22.google.cloud.datastream.v1.SourceObjectIdentifierB\003\340A\002\"\235\001\n" + "\027StartBackfillJobRequest\022>\n" + "\006object\030\001 \001(\tB.\340A\002\372A(\n" - + "&datastream.googleapis.com/StreamObject\"T\n" + + "&datastream.googleapis.com/StreamObject\022B\n" + + "\014event_filter\030\002" + + " \001(\0132\'.google.cloud.datastream.v1.EventFilterB\003\340A\001\"T\n" + "\030StartBackfillJobResponse\0228\n" + "\006object\030\001 \001(\0132(.google.cloud.datastream.v1.StreamObject\"X\n" + "\026StopBackfillJobRequest\022>\n" + "\006object\030\001 \001(\tB.\340A\002\372A(\n" + "&datastream.googleapis.com/StreamObject\"S\n" + "\027StopBackfillJobResponse\0228\n" - + "\006object\030\001 \001(\0132(.google.cloud.datastream.v1.StreamObject\"\201\001\n" + + "\006object\030\001 \001(\0132(.google.cloud.datastream.v1.StreamObject\"\213\001\n" + "\030ListStreamObjectsRequest\022>\n" + "\006parent\030\001 \001(" - + "\tB.\340A\002\372A(\022&datastream.googleapis.com/StreamObject\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"v\n" + + "\tB.\340A\002\372A(\022&datastream.googleapis.com/StreamObject\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"v\n" + "\031ListStreamObjectsResponse\022@\n" - + "\016stream_objects\030\001 \003(\0132" - + "(.google.cloud.datastream.v1.StreamObject\022\027\n" + + "\016stream_objects\030\001" + + " \003(\0132(.google.cloud.datastream.v1.StreamObject\022\027\n" + "\017next_page_token\030\002 \001(\t\"\316\002\n" + "\021OperationMetadata\0224\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" @@ -353,8 +364,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016status_message\030\005 \001(\tB\003\340A\003\022#\n" + "\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n" + "\013api_version\030\007 \001(\tB\003\340A\003\022L\n" - + "\021validation_result\030\010 \001(\0132,.googl" - + "e.cloud.datastream.v1.ValidationResultB\003\340A\003\"\242\002\n" + + "\021validation_result\030\010 \001(\0132,.google.clou" + + "d.datastream.v1.ValidationResultB\003\340A\003\"\242\002\n" + "\036CreatePrivateConnectionRequest\022C\n" + "\006parent\030\001 \001(" + "\tB3\340A\002\372A-\022+datastream.googleapis.com/PrivateConnection\022\"\n" @@ -363,14 +374,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132-.google.cloud.datastream.v1.PrivateConnectionB\003\340A\002\022\027\n\n" + "request_id\030\004 \001(\tB\003\340A\001\022\022\n" + "\005force\030\006 \001(\010B\003\340A\001\022\032\n\r" - + "validate_only\030\010 \001(\010B\003\340A\001\"\255\001\n" + + "validate_only\030\010 \001(\010B\003\340A\001\"\274\001\n" + "\035ListPrivateConnectionsRequest\022C\n" - + "\006parent\030\001 \001(\tB3\340A\002\372A-\022+data" - + "stream.googleapis.com/PrivateConnection\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\022\016\n" - + "\006filter\030\004 \001(\t\022\020\n" - + "\010order_by\030\005 \001(\t\"\232\001\n" + + "\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\022+datastream.googleapis.com/PrivateConnection\022\021\n" + + "\tpage_size\030\002 \001(\005\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\232\001\n" + "\036ListPrivateConnectionsResponse\022J\n" + "\023private_connections\030\001" + " \003(\0132-.google.cloud.datastream.v1.PrivateConnection\022\027\n" @@ -388,16 +399,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB\'\340A\002\372A!\022\037datastream.googleapis.com/Route\022\025\n" + "\010route_id\030\002 \001(\tB\003\340A\002\0225\n" - + "\005route\030\003" - + " \001(\0132!.google.cloud.datastream.v1.RouteB\003\340A\002\022\027\n\n" - + "request_id\030\004 \001(\tB\003\340A\001\"\225\001\n" + + "\005route\030\003 \001(" + + "\0132!.google.cloud.datastream.v1.RouteB\003\340A\002\022\027\n\n" + + "request_id\030\004 \001(\tB\003\340A\001\"\251\001\n" + "\021ListRoutesRequest\0227\n" + "\006parent\030\001 \001(" - + "\tB\'\340A\002\372A!\022\037datastream.googleapis.com/Route\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\022\016\n" - + "\006filter\030\004 \001(\t\022\020\n" - + "\010order_by\030\005 \001(\t\"u\n" + + "\tB\'\340A\002\372A!\022\037datastream.googleapis.com/Route\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"u\n" + "\022ListRoutesResponse\0221\n" + "\006routes\030\001 \003(\0132!.google.cloud.datastream.v1.Route\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" @@ -410,123 +421,121 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" + "\037datastream.googleapis.com/Route2\262,\n\n" + "Datastream\022\330\001\n" - + "\026ListConnectionProfiles\0229.google.cloud.datastream.v1.ListConnectionProfilesRe" - + "quest\032:.google.cloud.datastream.v1.ListC" - + "onnectionProfilesResponse\"G\332A\006parent\202\323\344\223" - + "\0028\0226/v1/{parent=projects/*/locations/*}/connectionProfiles\022\305\001\n" - + "\024GetConnectionProfile\0227.google.cloud.datastream.v1.GetConn" - + "ectionProfileRequest\032-.google.cloud.data" - + "stream.v1.ConnectionProfile\"E\332A\004name\202\323\344\223" - + "\0028\0226/v1/{name=projects/*/locations/*/connectionProfiles/*}\022\244\002\n" - + "\027CreateConnectionProfile\022:.google.cloud.datastream.v1.Crea" - + "teConnectionProfileRequest\032\035.google.longrunning.Operation\"\255\001\312A&\n" - + "\021ConnectionProfile\022\021OperationMetadata\332A/parent,connectio" - + "n_profile,connection_profile_id\202\323\344\223\002L\"6/" - + "v1/{parent=projects/*/locations/*}/connectionProfiles:\022connection_profile\022\246\002\n" - + "\027UpdateConnectionProfile\022:.google.cloud.dat" - + "astream.v1.UpdateConnectionProfileRequest\032\035.google.longrunning.Operation\"\257\001\312A&\n" - + "\021ConnectionProfile\022\021OperationMetadata\332A\036c" - + "onnection_profile,update_mask\202\323\344\223\002_2I/v1" - + "/{connection_profile.name=projects/*/loc" - + "ations/*/connectionProfiles/*}:\022connection_profile\022\350\001\n" - + "\027DeleteConnectionProfile\022:.google.cloud.datastream.v1.DeleteConnec" - + "tionProfileRequest\032\035.google.longrunning.Operation\"r\312A*\n" + + "\026ListConnectionProfiles\0229.google.cloud.datastrea" + + "m.v1.ListConnectionProfilesRequest\032:.google.cloud.datastream.v1.ListConnectionPr" + + "ofilesResponse\"G\332A\006parent\202\323\344\223\0028\0226/v1/{pa" + + "rent=projects/*/locations/*}/connectionProfiles\022\305\001\n" + + "\024GetConnectionProfile\0227.google.cloud.datastream.v1.GetConnectionProfi" + + "leRequest\032-.google.cloud.datastream.v1.C" + + "onnectionProfile\"E\332A\004name\202\323\344\223\0028\0226/v1/{na" + + "me=projects/*/locations/*/connectionProfiles/*}\022\244\002\n" + + "\027CreateConnectionProfile\022:.google.cloud.datastream.v1.CreateConnectio" + + "nProfileRequest\032\035.google.longrunning.Operation\"\255\001\312A&\n" + + "\021ConnectionProfile\022\021OperationMetadata\332A/parent,connection_profile,c" + + "onnection_profile_id\202\323\344\223\002L\"6/v1/{parent=" + + "projects/*/locations/*}/connectionProfiles:\022connection_profile\022\246\002\n" + + "\027UpdateConnectionProfile\022:.google.cloud.datastream.v1." + + "UpdateConnectionProfileRequest\032\035.google.longrunning.Operation\"\257\001\312A&\n" + + "\021ConnectionProfile\022\021OperationMetadata\332A\036connection_p" + + "rofile,update_mask\202\323\344\223\002_2I/v1/{connectio" + + "n_profile.name=projects/*/locations/*/co" + + "nnectionProfiles/*}:\022connection_profile\022\350\001\n" + + "\027DeleteConnectionProfile\022:.google.cloud.datastream.v1.DeleteConnectionProfile" + + "Request\032\035.google.longrunning.Operation\"r\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMet" + + "adata\332A\004name\202\323\344\223\0028*6/v1/{name=projects/*/locations/*/connectionProfiles/*}\022\344\001\n" + + "\031DiscoverConnectionProfile\022<.google.cloud." + + "datastream.v1.DiscoverConnectionProfileRequest\032=.google.cloud.datastream.v1.Disc" + + "overConnectionProfileResponse\"J\202\323\344\223\002D\"?/" + + "v1/{parent=projects/*/locations/*}/connectionProfiles:discover:\001*\022\254\001\n" + + "\013ListStreams\022..google.cloud.datastream.v1.ListStrea" + + "msRequest\032/.google.cloud.datastream.v1.L" + + "istStreamsResponse\"<\332A\006parent\202\323\344\223\002-\022+/v1" + + "/{parent=projects/*/locations/*}/streams\022\231\001\n" + + "\tGetStream\022,.google.cloud.datastream.v1.GetStreamRequest\032\".google.cloud.data" + + "stream.v1.Stream\":\332A\004name\202\323\344\223\002-\022+/v1/{name=projects/*/locations/*/streams/*}\022\323\001\n" + + "\014CreateStream\022/.google.cloud.datastream." + + "v1.CreateStreamRequest\032\035.google.longrunning.Operation\"s\312A\033\n" + + "\006Stream\022\021OperationMet" + + "adata\332A\027parent,stream,stream_id\202\323\344\223\0025\"+/" + + "v1/{parent=projects/*/locations/*}/streams:\006stream\022\325\001\n" + + "\014UpdateStream\022/.google.clo" + + "ud.datastream.v1.UpdateStreamRequest\032\035.google.longrunning.Operation\"u\312A\033\n" + + "\006Stream\022\021OperationMetadata\332A\022stream,update_mask" + + "\202\323\344\223\002<22/v1/{stream.name=projects/*/locations/*/streams/*}:\006stream\022\307\001\n" + + "\014DeleteStream\022/.google.cloud.datastream.v1.DeleteS" + + "treamRequest\032\035.google.longrunning.Operation\"g\312A*\n" + + "\025google.protobuf.Empty\022\021Operati" + + "onMetadata\332A\004name\202\323\344\223\002-*+/v1/{name=projects/*/locations/*/streams/*}\022\262\001\n" + + "\tRunStream\022,.google.cloud.datastream.v1.RunStrea" + + "mRequest\032\035.google.longrunning.Operation\"X\312A\033\n" + + "\006Stream\022\021OperationMetadata\202\323\344\223\0024\"//" + + "v1/{name=projects/*/locations/*/streams/*}:run:\001*\022\265\001\n" + + "\017GetStreamObject\0222.google.cloud.datastream.v1.GetStreamObjectReques" + + "t\032(.google.cloud.datastream.v1.StreamObj" + + "ect\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=projects/*/locations/*/streams/*/objects/*}\022\276\001\n" + + "\022LookupStreamObject\0225.google.cloud.datastre" + + "am.v1.LookupStreamObjectRequest\032(.google" + + ".cloud.datastream.v1.StreamObject\"G\202\323\344\223\002" + + "A\"cloud.google.com/go/datastream/apiv" - + "1/datastreampb;datastreampb\252\002\032Google.Clo" - + "ud.Datastream.V1\312\002\032Google\\Cloud\\Datastre" - + "am\\V1\352\002\035Google::Cloud::Datastream::V1b\006proto3" + + "ty\022\021OperationMetadata\332A\004name\202\323\344\223\002A*?/v1/" + + "{name=projects/*/locations/*/privateConn" + + "ections/*/routes/*}\032M\312A\031datastream.googl" + + "eapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\315\001\n" + + "\036com.google.cloud.datastream.v1B\017DatastreamProtoP\001Z>cloud." + + "google.com/go/datastream/apiv1/datastrea" + + "mpb;datastreampb\252\002\032Google.Cloud.Datastre" + + "am.V1\312\002\032Google\\Cloud\\Datastream\\V1\352\002\035Goo" + + "gle::Cloud::Datastream::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -559,6 +568,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SqlServerRdbms", "SalesforceOrg", "MongodbCluster", + "SpannerDatabase", + "SourceCatalog", "Target", "Hierarchy", "DataObject", @@ -575,6 +586,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SqlServerRdbms", "SalesforceOrg", "MongodbCluster", + "SpannerDatabase", + "SourceCatalog", "DataObject", }); internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor = @@ -724,7 +737,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor, new java.lang.String[] { - "Object", + "Object", "EventFilter", }); internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor = getDescriptor().getMessageType(20); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java index 6e330c291dec..1d28eeb5e69a 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java @@ -84,10 +84,46 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_datastream_v1_MongodbProfile_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_datastream_v1_MongodbProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_MongodbProfile_AdditionalOptionsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_MongodbProfile_AdditionalOptionsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_datastream_v1_HostAddress_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_datastream_v1_HostAddress_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SpannerProfile_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SpannerProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OauthClientCredentials_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OauthClientCredentials_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OauthRefreshTokenCredentials_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OauthRefreshTokenCredentials_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_UserPasswordCredentials_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_UserPasswordCredentials_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SalesforceMarketingCloudProfile_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SalesforceMarketingCloudProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_DataverseProfile_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_DataverseProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ServiceNowProfile_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ServiceNowProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_WorkdayProfile_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_WorkdayProfile_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_datastream_v1_SrvConnectionFormat_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -140,6 +176,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_datastream_v1_Route_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_datastream_v1_Route_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_Secret_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_Secret_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_datastream_v1_MongodbSslConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -152,6 +192,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_datastream_v1_OracleSslConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_datastream_v1_OracleSslConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SqlServerSslConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SqlServerSslConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SqlServerSslConfig_EncryptionNotEnforced_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SqlServerSslConfig_EncryptionNotEnforced_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SqlServerSslConfig_BasicEncryption_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SqlServerSslConfig_BasicEncryption_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SqlServerSslConfig_EncryptionAndServerValidation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SqlServerSslConfig_EncryptionAndServerValidation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -264,6 +320,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_datastream_v1_SqlServerChangeTables_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_datastream_v1_SqlServerChangeTables_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SqlServerChangeTables_SqlServerDdlConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SqlServerChangeTables_SqlServerDdlConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -328,6 +388,54 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_datastream_v1_MongodbField_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_datastream_v1_MongodbField_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SpannerSourceConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SpannerSourceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SpannerDatabase_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SpannerDatabase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SpannerSchema_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SpannerSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SpannerTable_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SpannerTable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SpannerColumn_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SpannerColumn_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_DataverseSourceConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_DataverseSourceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SalesforceMarketingCloudSourceConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SalesforceMarketingCloudSourceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ServiceNowSourceConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ServiceNowSourceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_WorkdaySourceConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_WorkdaySourceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SourceCatalog_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SourceCatalog_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SourceObject_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SourceObject_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SourceProperty_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SourceProperty_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_datastream_v1_SourceConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -340,6 +448,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_datastream_v1_JsonFileFormat_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_BigQueryClustering_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_BigQueryClustering_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_IngestionTimePartition_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_IngestionTimePartition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_TimeUnitPartition_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_TimeUnitPartition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_IntegerRangePartition_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_IntegerRangePartition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_BigQueryPartitioning_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_BigQueryPartitioning_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -388,6 +516,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_Stream_RuleSet_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_Stream_RuleSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_Stream_RuleSet_ObjectFilter_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_Stream_RuleSet_ObjectFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_Stream_RuleSet_CustomizationRule_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_Stream_RuleSet_CustomizationRule_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -424,10 +564,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MongodbObjectIdentifier_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MongodbObjectIdentifier_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_SpannerObjectIdentifier_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_SpannerObjectIdentifier_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_datastream_v1_BackfillJob_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_datastream_v1_BackfillJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_EventFilter_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_EventFilter_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_datastream_v1_Error_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -484,6 +632,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_datastream_v1_MysqlGtidPosition_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_datastream_v1_MysqlGtidPosition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_MongodbChangeStreamPosition_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_MongodbChangeStreamPosition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SpannerChangeStreamPosition_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SpannerChangeStreamPosition_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -495,17 +651,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n" + "5google/cloud/datastream/v1/datastream_resources.proto\022\032google.cloud.datastream" - + ".v1\032\037google/api/field_behavior.proto\032\031go" - + "ogle/api/resource.proto\032\036google/protobuf" - + "/duration.proto\032\037google/protobuf/timestamp.proto\"\351\003\n\r" + + ".v1\032\037google/api/field_behavior.proto\032\033go" + + "ogle/api/field_info.proto\032\031google/api/re" + + "source.proto\032\036google/protobuf/duration.p" + + "roto\032\037google/protobuf/timestamp.proto\"\351\003\n\r" + "OracleProfile\022\025\n" + "\010hostname\030\001 \001(\tB\003\340A\002\022\014\n" + "\004port\030\002 \001(\005\022\025\n" + "\010username\030\003 \001(\tB\003\340A\002\022\025\n" + "\010password\030\004 \001(\tB\003\340A\001\022\035\n" + "\020database_service\030\005 \001(\tB\003\340A\002\022b\n" - + "\025connection_attributes\030\006 \003(\0132C.google.cloud.datastream.v1" - + ".OracleProfile.ConnectionAttributesEntry\022K\n" + + "\025connection_attributes\030\006 \003(\013" + + "2C.google.cloud.datastream.v1.OracleProfile.ConnectionAttributesEntry\022K\n" + "\021oracle_ssl_config\030\007" + " \001(\0132+.google.cloud.datastream.v1.OracleSslConfigB\003\340A\001\022K\n" + "\021oracle_asm_config\030\010" @@ -520,10 +677,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010username\030\003 \001(\tB\003\340A\002\022\025\n" + "\010password\030\004 \001(\tB\003\340A\001\022\030\n" + "\013asm_service\030\005 \001(\tB\003\340A\002\022i\n" - + "\025connection_attributes\030\006 \003(\0132E.google.cloud" - + ".datastream.v1.OracleAsmConfig.ConnectionAttributesEntryB\003\340A\001\022K\n" - + "\021oracle_ssl_config\030\007" - + " \001(\0132+.google.cloud.datastream.v1.OracleSslConfigB\003\340A\001\022+\n" + + "\025connection_attributes\030\006 \003(\0132E.google.cloud.datastream" + + ".v1.OracleAsmConfig.ConnectionAttributesEntryB\003\340A\001\022K\n" + + "\021oracle_ssl_config\030\007 \001(\0132+." + + "google.cloud.datastream.v1.OracleSslConfigB\003\340A\001\022+\n" + "\036secret_manager_stored_password\030\010 \001(\tB\003\340A\001\032;\n" + "\031ConnectionAttributesEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -542,32 +699,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010password\030\004 \001(\tB\003\340A\001\022\025\n" + "\010database\030\005 \001(\tB\003\340A\002\022+\n" + "\036secret_manager_stored_password\030\006 \001(\tB\003\340A\001\022H\n\n" - + "ssl_config\030\007" - + " \001(\0132/.google.cloud.datastream.v1.PostgresqlSslConfigB\003\340A\001\"\251\001\n" + + "ssl_config\030\007 \001(\0132/" + + ".google.cloud.datastream.v1.PostgresqlSslConfigB\003\340A\001\"\362\001\n" + "\020SqlServerProfile\022\025\n" + "\010hostname\030\001 \001(\tB\003\340A\002\022\014\n" + "\004port\030\002 \001(\005\022\025\n" + "\010username\030\003 \001(\tB\003\340A\002\022\025\n" + "\010password\030\004 \001(\tB\003\340A\001\022\025\n" - + "\010database\030\005 \001(\tB\003\340A\002\022+\n" - + "\036secret_manager_stored_password\030\007 \001(\tB\003\340A\001\"\276\004\n" + + "\010database\030\005 \001(\tB\003\340A\002\022G\n\n" + + "ssl_config\030\006 \001(\0132" + + "..google.cloud.datastream.v1.SqlServerSslConfigB\003\340A\001\022+\n" + + "\036secret_manager_stored_password\030\007 \001(\tB\003\340A\001\"\306\004\n" + "\021SalesforceProfile\022\023\n" - + "\006domain\030\001 \001(\tB\003\340A\002\022Y\n" - + "\020user_credentials\030\002 \001(\0132=.google.cloud." - + "datastream.v1.SalesforceProfile.UserCredentialsH\000\022j\n" - + "\031oauth2_client_credentials\030\003 \001(\0132E.google.cloud.datastream.v1.Salesf" - + "orceProfile.Oauth2ClientCredentialsH\000\032\274\001\n" + + "\006domain\030\001 \001(\tB\003\340A\002\022]\n" + + "\020user_credentials\030\002" + + " \001(\0132=.google.cloud.datastream.v1.SalesforceProfile.UserCredentialsB\002\030\001H\000\022j\n" + + "\031oauth2_client_credentials\030\003 \001(\0132E.google." + + "cloud.datastream.v1.SalesforceProfile.Oauth2ClientCredentialsH\000\032\300\001\n" + "\017UserCredentials\022\025\n" + "\010username\030\001 \001(\tB\003\340A\002\022\025\n" + "\010password\030\002 \001(\tB\003\340A\001\022\033\n" + "\016security_token\030\003 \001(\tB\003\340A\001\022+\n" + "\036secret_manager_stored_password\030\004 \001(\tB\003\340A\001\0221\n" - + "$secret_manager_stored_security_token\030\005 \001(\tB\003\340A\001\032\177\n" + + "$secret_manager_stored_security_token\030\005 \001(" + + "\tB\003\340A\001:\002\030\001\032\177\n" + "\027Oauth2ClientCredentials\022\026\n" + "\tclient_id\030\001 \001(\tB\003\340A\002\022\032\n\r" + "client_secret\030\002 \001(\tB\003\340A\001\0220\n" + "#secret_manager_stored_client_secret\030\003 \001(\tB\003\340A\001B\r\n" - + "\013credentials\"\335\003\n" + + "\013credentials\"\373\004\n" + "\016MongodbProfile\022D\n" + "\016host_addresses\030\001" + " \003(\0132\'.google.cloud.datastream.v1.HostAddressB\003\340A\002\022\030\n" @@ -575,22 +735,65 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010username\030\003 \001(\tB\003\340A\002\022\025\n" + "\010password\030\004 \001(\tB\003\340A\001\022+\n" + "\036secret_manager_stored_password\030\005 \001(\tB\003\340A\001\022E\n\n" - + "ssl_config\030\006 \001(\0132," - + ".google.cloud.datastream.v1.MongodbSslConfigB\003\340A\001\022P\n" - + "\025srv_connection_format\030e \001(\013" - + "2/.google.cloud.datastream.v1.SrvConnectionFormatH\000\022Z\n" - + "\032standard_connection_format\030f" - + " \001(\01324.google.cloud.datastream.v1.StandardConnectionFormatH\000B\033\n" + + "ssl_config\030\006 \001(\0132,.google.cl" + + "oud.datastream.v1.MongodbSslConfigB\003\340A\001\022P\n" + + "\025srv_connection_format\030e \001(\0132/.google." + + "cloud.datastream.v1.SrvConnectionFormatH\000\022Z\n" + + "\032standard_connection_format\030f \001(\01324." + + "google.cloud.datastream.v1.StandardConnectionFormatH\000\022b\n" + + "\022additional_options\030\007 \003(" + + "\0132A.google.cloud.datastream.v1.MongodbProfile.AdditionalOptionsEntryB\003\340A\001\0328\n" + + "\026AdditionalOptionsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001B\033\n" + "\031mongodb_connection_format\"7\n" + "\013HostAddress\022\025\n" + "\010hostname\030\001 \001(\tB\003\340A\002\022\021\n" - + "\004port\030\002 \001(\005B\003\340A\001\"\025\n" - + "\023SrvConnectionFormat\":\n" - + "\030StandardConnectionFormat\022\036\n" - + "\021direct_connection\030\001 \001(\010B\003\340A\001\"4\n\n" + + "\004port\030\002 \001(\005B\003\340A\001\"a\n" + + "\016SpannerProfile\022<\n" + + "\010database\030\001 \001(\tB*\340A\002\340A\005\372A!\n" + + "\037spanner.googleapis.com/Database\022\021\n" + + "\004host\030\002 \001(\tB\003\340A\001\"p\n" + + "\026OauthClientCredentials\022\026\n" + + "\tclient_id\030\001 \001(\tB\003\340A\002\022>\n\r" + + "client_secret\030\002" + + " \001(\0132\".google.cloud.datastream.v1.SecretB\003\340A\002\"\271\001\n" + + "\034OauthRefreshTokenCredentials\022Y\n" + + "\030oauth_client_credentials\030\001" + + " \001(\01322.google.cloud.datastream.v1.OauthClientCredentialsB\003\340A\002\022>\n\r" + + "refresh_token\030\002" + + " \001(\0132\".google.cloud.datastream.v1.SecretB\003\340A\002\"k\n" + + "\027UserPasswordCredentials\022\025\n" + + "\010username\030\001 \001(\tB\003\340A\002\0229\n" + + "\010password\030\002" + + " \001(\0132\".google.cloud.datastream.v1.SecretB\003\340A\002\"\227\001\n" + + "\037SalesforceMarketingCloudProfile\022\026\n" + + "\tsubdomain\030\001 \001(\tB\003\340A\002\022\\\n" + + "\030oauth_client_credentials\030\003 \001(\01322.google.cloud.dat" + + "astream.v1.OauthClientCredentialsB\006\340A\004\340A\002\"\243\001\n" + + "\020DataverseProfile\022\026\n" + + "\ttenant_id\030\001 \001(\tB\003\340A\002\022\034\n" + + "\017environment_url\030\005 \001(\tB\003\340A\002\022Y\n" + + "\030oauth_client_credentials\030\003 \001(\01322.google." + + "cloud.datastream.v1.OauthClientCredentialsB\003\340A\002\"\353\001\n" + + "\021ServiceNowProfile\022\025\n" + + "\010instance\030\001 \001(\tB\003\340A\002\022X\n" + + "\031user_password_credentials\030\002" + + " \001(\01323.google.cloud.datastream.v1.UserPasswordCredentialsH\000\022V\n" + + "\030oauth_client_credentials\030\003" + + " \001(\01322.google.cloud.datastream.v1.OauthClientCredentialsH\000B\r\n" + + "\013credentials\"\240\001\n" + + "\016WorkdayProfile\022\021\n" + + "\004host\030\001 \001(\tB\003\340A\002\022\023\n" + + "\006tenant\030\002 \001(\tB\003\340A\002\022f\n" + + "\037oauth_refresh_token_credentials\030\003 \001(\01328.google.cloud" + + ".datastream.v1.OauthRefreshTokenCredentialsB\003\340A\002\"\025\n" + + "\023SrvConnectionFormat\"<\n" + + "\030StandardConnectionFormat\022 \n" + + "\021direct_connection\030\001 \001(\010B\005\030\001\340A\001\"9\n\n" + "GcsProfile\022\023\n" - + "\006bucket\030\001 \001(\tB\003\340A\002\022\021\n" - + "\troot_path\030\002 \001(\t\"\021\n" + + "\006bucket\030\001 \001(\tB\003\340A\002\022\026\n" + + "\troot_path\030\002 \001(\tB\003\340A\001\"\021\n" + "\017BigQueryProfile\"\035\n" + "\033StaticServiceIpConnectivity\"\250\001\n" + "\034ForwardSshTunnelConnectivity\022\025\n" @@ -611,20 +814,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB\006\340A\010\340A\003\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022I\n" - + "\006labels\030\004 \003(\01329.google." - + "cloud.datastream.v1.PrivateConnection.LabelsEntry\022\031\n" + + "\006labels\030\004" + + " \003(\01329.google.cloud.datastream.v1.PrivateConnection.LabelsEntry\022\031\n" + "\014display_name\030\005 \001(\tB\003\340A\002\022G\n" - + "\005state\030\006" - + " \001(\01623.google.cloud.datastream.v1.PrivateConnection.StateB\003\340A\003\0225\n" + + "\005state\030\006 \001(\01623." + + "google.cloud.datastream.v1.PrivateConnection.StateB\003\340A\003\0225\n" + "\005error\030\007" + " \001(\0132!.google.cloud.datastream.v1.ErrorB\003\340A\003\022\037\n\r" - + "satisfies_pzs\030\010 \001(\010B\003\340A\003H\000\210\001\001\022\037\n" - + "\r" + + "satisfies_pzs\030\010 \001(\010B\003\340A\003H\000\210\001\001\022\037\n\r" + "satisfies_pzi\030\t \001(\010B\003\340A\003H\001\210\001\001\022H\n" + "\022vpc_peering_config\030d" + " \001(\0132,.google.cloud.datastream.v1.VpcPeeringConfig\022L\n" - + "\024psc_interface_config\030e" - + " \001(\0132..google.cloud.datastream.v1.PscInterfaceConfig\032-\n" + + "\024psc_interface_config\030e \001(\013" + + "2..google.cloud.datastream.v1.PscInterfaceConfig\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"i\n" @@ -635,8 +837,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006FAILED\020\003\022\014\n" + "\010DELETING\020\004\022\024\n" + "\020FAILED_TO_DELETE\020\005:\201\001\352A~\n" - + "+datastream.googleapis.com/PrivateConnection\022Oprojects/{p" - + "roject}/locations/{location}/privateConnections/{private_connection}B\020\n" + + "+datastream.googleapis.com/PrivateConnection\022Oprojects/{project}/locati" + + "ons/{location}/privateConnections/{private_connection}B\020\n" + "\016_satisfies_pzsB\020\n" + "\016_satisfies_pzi\"f\n" + "\023PrivateConnectivity\022O\n" @@ -653,9 +855,12 @@ 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:\205\001\352A\201\001\n" - + "\037datastream.googleapis.com/Route\022^projects/{pro" - + "ject}/locations/{location}/privateConnec" - + "tions/{private_connection}/routes/{route}\"\207\002\n" + + "\037datastream.googleapis.com/Route\022^projects/{project}/location" + + "s/{location}/privateConnections/{private_connection}/routes/{route}\"M\n" + + "\006Secret\022\033\n" + + "\traw_value\030\001 \001(\tB\006\340A\004\340A\001H\000\022\035\n" + + "\016secret_version\030\002 \001(\tB\003\340A\001H\000B\007\n" + + "\005value\"\207\002\n" + "\020MongodbSslConfig\022\032\n\n" + "client_key\030\001 \001(\tB\006\340A\004\340A\001\022\033\n" + "\016client_key_set\030\002 \001(\010B\003\340A\003\022\"\n" @@ -674,12 +879,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017OracleSslConfig\022\033\n" + "\016ca_certificate\030\001 \001(\tB\003\340A\004\022\037\n" + "\022ca_certificate_set\030\002 \001(\010B\003\340A\003\0222\n" - + "%server_certificate_distinguished_name\030\003 \001(\tB\003\340A\001\"\217\004\n" + + "%server_certificate_distinguished_name\030\003 \001(\tB\003\340A\001\"\246\004\n" + + "\022SqlServerSslConfig\022g\n" + + "\027encryption_not_enforced\030\001 \001(\0132D.google.cloud.datastream." + + "v1.SqlServerSslConfig.EncryptionNotEnforcedH\000\022Z\n" + + "\020basic_encryption\030\002 \001(\0132>.google" + + ".cloud.datastream.v1.SqlServerSslConfig.BasicEncryptionH\000\022x\n" + + " encryption_and_server_validation\030\003 \001(\0132L.google.cloud.datas" + + "tream.v1.SqlServerSslConfig.EncryptionAndServerValidationH\000\032\027\n" + + "\025EncryptionNotEnforced\032\021\n" + + "\017BasicEncryption\032\216\001\n" + + "\035EncryptionAndServerValidation\022\036\n" + + "\016ca_certificate\030\002 \001(\tB\006\340A\004\340A\001\022-\n" + + "\033server_certificate_hostname\030\003 \001(\tB\003\340A\001H\000\210\001\001B\036\n" + + "\034_server_certificate_hostnameB\024\n" + + "\022encryption_setting\"\217\004\n" + "\023PostgresqlSslConfig\022a\n" - + "\023server_verification\030\001 \001(\0132B.google.cloud" - + ".datastream.v1.PostgresqlSslConfig.ServerVerificationH\000\022u\n" - + "\036server_and_client_verification\030\002 \001(\0132K.google.cloud.datastrea" - + "m.v1.PostgresqlSslConfig.ServerAndClientVerificationH\000\032^\n" + + "\023server_verification\030\001 " + + "\001(\0132B.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerificationH\000\022u\n" + + "\036server_and_client_verification\030\002 \001(\0132K.goog" + + "le.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerificationH\000\032^\n" + "\022ServerVerification\022\036\n" + "\016ca_certificate\030\001 \001(\tB\006\340A\004\340A\002\022(\n" + "\033server_certificate_hostname\030\002 \001(\tB\003\340A\001\032\247\001\n" @@ -688,13 +907,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "client_key\030\002 \001(\tB\006\340A\004\340A\001\022\036\n" + "\016ca_certificate\030\003 \001(\tB\006\340A\004\340A\002\022(\n" + "\033server_certificate_hostname\030\005 \001(\tB\003\340A\001B\024\n" - + "\022encryption_setting\"\201\013\n" + + "\022encryption_setting\"\230\016\n" + "\021ConnectionProfile\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\003\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022I\n" - + "\006labels\030\004 \003(\01329.google." - + "cloud.datastream.v1.ConnectionProfile.LabelsEntry\022\031\n" + + "\006labels\030\004" + + " \003(\01329.google.cloud.datastream.v1.ConnectionProfile.LabelsEntry\022\031\n" + "\014display_name\030\005 \001(\tB\003\340A\002\022\037\n\r" + "satisfies_pzs\030\006 \001(\010B\003\340A\003H\002\210\001\001\022\037\n\r" + "satisfies_pzi\030\007 \001(\010B\003\340A\003H\003\210\001\001\022C\n" @@ -704,25 +923,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "mysql_profile\030f \001(\0132(.google.cloud.datastream.v1.MysqlProfileH\000\022G\n" + "\020bigquery_profile\030g" + " \001(\0132+.google.cloud.datastream.v1.BigQueryProfileH\000\022K\n" - + "\022postgresql_profile\030h \001" - + "(\0132-.google.cloud.datastream.v1.PostgresqlProfileH\000\022J\n" - + "\022sql_server_profile\030i \001(\0132" - + ",.google.cloud.datastream.v1.SqlServerProfileH\000\022K\n" - + "\022salesforce_profile\030k \001(\0132-.go" - + "ogle.cloud.datastream.v1.SalesforceProfileH\000\022E\n" + + "\022postgresql_profile\030h" + + " \001(\0132-.google.cloud.datastream.v1.PostgresqlProfileH\000\022J\n" + + "\022sql_server_profile\030i" + + " \001(\0132,.google.cloud.datastream.v1.SqlServerProfileH\000\022K\n" + + "\022salesforce_profile\030k" + + " \001(\0132-.google.cloud.datastream.v1.SalesforceProfileH\000\022E\n" + "\017mongodb_profile\030l" - + " \001(\0132*.google.cloud.datastream.v1.MongodbProfileH\000\022b\n" - + "\036static_service_ip_connectivity\030\310\001 \001(\01327.g" - + "oogle.cloud.datastream.v1.StaticServiceIpConnectivityH\001\022]\n" - + "\030forward_ssh_connectivity\030\311\001" - + " \001(\01328.google.cloud.datastream.v1.ForwardSshTunnelConnectivityH\001\022P\n" + + " \001(\0132*.google.cloud.datastream.v1.MongodbProfileH\000\022E\n" + + "\017spanner_profile\030m \001(\0132*" + + ".google.cloud.datastream.v1.SpannerProfileH\000\022I\n" + + "\021dataverse_profile\030r \001(\0132,.google" + + ".cloud.datastream.v1.DataverseProfileH\000\022i\n" + + "\"salesforce_marketing_cloud_profile\030w " + + "\001(\0132;.google.cloud.datastream.v1.SalesforceMarketingCloudProfileH\000\022L\n" + + "\023service_now_profile\030x" + + " \001(\0132-.google.cloud.datastream.v1.ServiceNowProfileH\000\022J\n" + + "\017workday_profile\030y" + + " \001(\0132*.google.cloud.datastream.v1.WorkdayProfileB\003\340A\001H\000\022b\n" + + "\036static_service_ip_connectivity\030\310\001 \001(\01327.google.cloud.dat" + + "astream.v1.StaticServiceIpConnectivityH\001\022]\n" + + "\030forward_ssh_connectivity\030\311\001 \001(\01328.go" + + "ogle.cloud.datastream.v1.ForwardSshTunnelConnectivityH\001\022P\n" + "\024private_connectivity\030\312\001" + " \001(\0132/.google.cloud.datastream.v1.PrivateConnectivityH\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\201\001\352A~\n" - + "+datastream.googleapis.com/ConnectionProfile\022Oprojects/{project}/locations" - + "/{location}/connectionProfiles/{connection_profile}B\t\n" + + "+datastream.googleapis.com/ConnectionProfile\022Opro" + + "jects/{project}/locations/{location}/connectionProfiles/{connection_profile}B\t\n" + "\007profileB\016\n" + "\014connectivityB\020\n" + "\016_satisfies_pzsB\020\n" @@ -744,31 +973,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006schema\030\001 \001(\t\022>\n\r" + "oracle_tables\030\002 \003(\0132\'.google.cloud.datastream.v1.OracleTable\"O\n" + "\013OracleRdbms\022@\n" - + "\016oracle_schemas\030\001" - + " \003(\0132(.google.cloud.datastream.v1.OracleSchema\"\273\010\n" + + "\016oracle_schemas\030\001 \003(\0132(.go" + + "ogle.cloud.datastream.v1.OracleSchema\"\273\010\n" + "\022OracleSourceConfig\022@\n" + "\017include_objects\030\001 \001(\0132\'.google.cloud.datastream.v1.OracleRdbms\022@\n" + "\017exclude_objects\030\002 \001(\0132\'.google.cloud.datastream.v1.OracleRdbms\022 \n" + "\030max_concurrent_cdc_tasks\030\003 \001(\005\022%\n" + "\035max_concurrent_backfill_tasks\030\004 \001(\005\022]\n" - + "\022drop_large_objects\030d \001(\0132?.google.cl" - + "oud.datastream.v1.OracleSourceConfig.DropLargeObjectsH\000\022a\n" - + "\024stream_large_objects\030f" - + " \001(\0132A.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsH\000\022L\n" - + "\tlog_miner\030g" - + " \001(\01327.google.cloud.datastream.v1.OracleSourceConfig.LogMinerH\001\022[\n" - + "\021binary_log_parser\030h \001(\0132>.google.cloud.datas" - + "tream.v1.OracleSourceConfig.BinaryLogParserH\001\032\022\n" + + "\022drop_large_objects\030d \001(\0132?.google.cloud.datastream." + + "v1.OracleSourceConfig.DropLargeObjectsH\000\022a\n" + + "\024stream_large_objects\030f \001(\0132A.google." + + "cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsH\000\022L\n" + + "\tlog_miner\030g \001(\01327" + + ".google.cloud.datastream.v1.OracleSourceConfig.LogMinerH\001\022[\n" + + "\021binary_log_parser\030h" + + " \001(\0132>.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParserH\001\032\022\n" + "\020DropLargeObjects\032\024\n" + "\022StreamLargeObjects\032\n\n" + "\010LogMiner\032\214\003\n" + "\017BinaryLogParser\022{\n" - + "\032oracle_asm_log_file_access\030\001 \001(\0132U.go" - + "ogle.cloud.datastream.v1.OracleSourceCon" - + "fig.BinaryLogParser.OracleAsmLogFileAccessH\000\022q\n" - + "\024log_file_directories\030\002 \001(\0132Q.goo" - + "gle.cloud.datastream.v1.OracleSourceConf" - + "ig.BinaryLogParser.LogFileDirectoriesH\000\032\030\n" + + "\032oracle_asm_log_file_access\030\001 \001(\0132U.google.cloud.data" + + "stream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccessH\000\022q\n" + + "\024log_file_directories\030\002 \001(\0132Q.google.cloud.datas" + + "tream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectoriesH\000\032\030\n" + "\026OracleAsmLogFileAccess\032\\\n" + "\022LogFileDirectories\022!\n" + "\024online_log_directory\030\001 \001(\tB\003\340A\002\022#\n" @@ -787,15 +1014,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020ordinal_position\030\t \001(\005\"j\n" + "\017PostgresqlTable\022\r\n" + "\005table\030\001 \001(\t\022H\n" - + "\022postgresql_columns\030\002" - + " \003(\0132,.google.cloud.datastream.v1.PostgresqlColumn\"j\n" + + "\022postgresql_columns\030\002 \003(\0132,.g" + + "oogle.cloud.datastream.v1.PostgresqlColumn\"j\n" + "\020PostgresqlSchema\022\016\n" + "\006schema\030\001 \001(\t\022F\n" - + "\021postgresql_tables\030\002 \003(\013" - + "2+.google.cloud.datastream.v1.PostgresqlTable\"[\n" + + "\021postgresql_tables\030\002" + + " \003(\0132+.google.cloud.datastream.v1.PostgresqlTable\"[\n" + "\017PostgresqlRdbms\022H\n" - + "\022postgresql_schemas\030\001" - + " \003(\0132,.google.cloud.datastream.v1.PostgresqlSchema\"\207\002\n" + + "\022postgresql_schemas\030\001 \003(\0132,." + + "google.cloud.datastream.v1.PostgresqlSchema\"\207\002\n" + "\026PostgresqlSourceConfig\022D\n" + "\017include_objects\030\001" + " \001(\0132+.google.cloud.datastream.v1.PostgresqlRdbms\022D\n" @@ -822,19 +1049,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016SqlServerRdbms\022<\n" + "\007schemas\030\001 \003(\0132+.google.cloud.datastream.v1.SqlServerSchema\"\226\003\n" + "\025SqlServerSourceConfig\022C\n" - + "\017include_objects\030\001" - + " \001(\0132*.google.cloud.datastream.v1.SqlServerRdbms\022C\n" + + "\017include_objects\030\001 \001(\013" + + "2*.google.cloud.datastream.v1.SqlServerRdbms\022C\n" + "\017exclude_objects\030\002 \001(\0132*.google.cloud.datastream.v1.SqlServerRdbms\022" + " \n" + "\030max_concurrent_cdc_tasks\030\003 \001(\005\022%\n" + "\035max_concurrent_backfill_tasks\030\004 \001(\005\022P\n" - + "\020transaction_logs\030e \001(\01324.google.clo" - + "ud.datastream.v1.SqlServerTransactionLogsH\000\022J\n\r" - + "change_tables\030f \001(\01321.google.clou" - + "d.datastream.v1.SqlServerChangeTablesH\000B\014\n\n" + + "\020transaction_logs\030e" + + " \001(\01324.google.cloud.datastream.v1.SqlServerTransactionLogsH\000\022J\n\r" + + "change_tables\030f" + + " \001(\01321.google.cloud.datastream.v1.SqlServerChangeTablesH\000B\014\n\n" + "cdc_method\"\032\n" - + "\030SqlServerTransactionLogs\"\027\n" - + "\025SqlServerChangeTables\"\266\001\n" + + "\030SqlServerTransactionLogs\"\361\001\n" + + "\025SqlServerChangeTables\022]\n\n" + + "ddl_config\030\001 \001(\0132D.googl" + + "e.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfigB\003\340A\001\032y\n" + + "\022SqlServerDdlConfig\0224\n" + + "\'auto_create_new_capture_instance_on_ddl\030\001 \001(\010B\003\340A\001\022-\n" + + " auto_delete_old_capture_instance\030\002 \001(\010B\003\340A\001\"\266\001\n" + "\013MysqlColumn\022\016\n" + "\006column\030\001 \001(\t\022\021\n" + "\tdata_type\030\002 \001(\t\022\016\n" @@ -852,15 +1084,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010database\030\001 \001(\t\022<\n" + "\014mysql_tables\030\002 \003(\0132&.google.cloud.datastream.v1.MysqlTable\"P\n\n" + "MysqlRdbms\022B\n" - + "\017mysql_databases\030\001 \003(\013" - + "2).google.cloud.datastream.v1.MysqlDatabase\"\255\003\n" + + "\017mysql_databases\030\001" + + " \003(\0132).google.cloud.datastream.v1.MysqlDatabase\"\255\003\n" + "\021MysqlSourceConfig\022?\n" + "\017include_objects\030\001 \001(\0132&.google.cloud.datastream.v1.MysqlRdbms\022?\n" + "\017exclude_objects\030\002 \001(\0132&.google.cloud.datastream.v1.MysqlRdbms\022 \n" + "\030max_concurrent_cdc_tasks\030\003 \001(\005\022%\n" + "\035max_concurrent_backfill_tasks\030\004 \001(\005\022^\n" - + "\023binary_log_position\030e \001(\0132?.google.cloud.datastr" - + "eam.v1.MysqlSourceConfig.BinaryLogPositionH\000\022B\n" + + "\023binary_log_position\030e \001(\0132?.google.cloud.dat" + + "astream.v1.MysqlSourceConfig.BinaryLogPositionH\000\022B\n" + "\004gtid\030f" + " \001(\01322.google.cloud.datastream.v1.MysqlSourceConfig.GtidH\000\032\023\n" + "\021BinaryLogPosition\032\006\n" @@ -869,8 +1101,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026SalesforceSourceConfig\022B\n" + "\017include_objects\030\001" + " \001(\0132).google.cloud.datastream.v1.SalesforceOrg\022B\n" - + "\017exclude_objects\030\002 \001(\0132).go" - + "ogle.cloud.datastream.v1.SalesforceOrg\0228\n" + + "\017exclude_objects\030\002 \001(\0132" + + ").google.cloud.datastream.v1.SalesforceOrg\0228\n" + "\020polling_interval\030\003" + " \001(\0132\031.google.protobuf.DurationB\003\340A\002\"N\n\r" + "SalesforceOrg\022=\n" @@ -881,13 +1113,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017SalesforceField\022\014\n" + "\004name\030\001 \001(\t\022\021\n" + "\tdata_type\030\002 \001(\t\022\020\n" - + "\010nillable\030\003 \001(\010\"\313\001\n" + + "\010nillable\030\003 \001(\010\"\220\002\n" + "\023MongodbSourceConfig\022C\n" - + "\017include_objects\030\001 \001(\0132*." - + "google.cloud.datastream.v1.MongodbCluster\022C\n" + + "\017include_objects\030\001 \001(" + + "\0132*.google.cloud.datastream.v1.MongodbCluster\022C\n" + "\017exclude_objects\030\002" + " \001(\0132*.google.cloud.datastream.v1.MongodbCluster\022*\n" - + "\035max_concurrent_backfill_tasks\030\003 \001(\005B\003\340A\001\"P\n" + + "\035max_concurrent_backfill_tasks\030\003 \001(\005B\003\340A\001\022C\n" + + "\tjson_mode\030\004" + + " \001(\0162+.google.cloud.datastream.v1.MongodbJsonModeB\003\340A\001\"P\n" + "\016MongodbCluster\022>\n" + "\tdatabases\030\001 \003(\0132+.google.cloud.datastream.v1.MongodbDatabase\"g\n" + "\017MongodbDatabase\022\020\n" @@ -897,7 +1131,82 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "collection\030\001 \001(\t\0228\n" + "\006fields\030\002 \003(\0132(.google.cloud.datastream.v1.MongodbField\"\035\n" + "\014MongodbField\022\r\n" - + "\005field\030\001 \001(\t\"\365\004\n" + + "\005field\030\001 \001(\t\"\246\004\n" + + "\023SpannerSourceConfig\022\"\n" + + "\022change_stream_name\030\001 \001(\tB\006\340A\002\340A\005\022e\n" + + "\024spanner_rpc_priority\030\002 \001(\0162B.goo" + + "gle.cloud.datastream.v1.SpannerSourceConfig.SpannerRpcPriorityB\003\340A\001\022\026\n" + + "\tfgac_role\030\003 \001(\tB\003\340A\001\022%\n" + + "\030max_concurrent_cdc_tasks\030\010 \001(\005B\003\340A\001\022*\n" + + "\035max_concurrent_backfill_tasks\030\004 \001(\005B\003\340A\001\022I\n" + + "\017include_objects\030\006 \001(\0132" + + "+.google.cloud.datastream.v1.SpannerDatabaseB\003\340A\001\022I\n" + + "\017exclude_objects\030\007 \001(\0132+.goo" + + "gle.cloud.datastream.v1.SpannerDatabaseB\003\340A\001\022(\n" + + "\033backfill_data_boost_enabled\030\t \001(\010B\003\340A\001\"Y\n" + + "\022SpannerRpcPriority\022$\n" + + " SPANNER_RPC_PRIORITY_UNSPECIFIED\020\000\022\007\n" + + "\003LOW\020\001\022\n\n" + + "\006MEDIUM\020\002\022\010\n" + + "\004HIGH\020\003\"R\n" + + "\017SpannerDatabase\022?\n" + + "\007schemas\030\001 \003(\0132).google.cloud.datastream.", + "v1.SpannerSchemaB\003\340A\001\"c\n\r" + + "SpannerSchema\022\023\n" + + "\006schema\030\001 \001(\tB\003\340A\002\022=\n" + + "\006tables\030\002 \003(\0132(.go" + + "ogle.cloud.datastream.v1.SpannerTableB\003\340A\001\"c\n" + + "\014SpannerTable\022\022\n" + + "\005table\030\001 \001(\tB\003\340A\002\022?\n" + + "\007columns\030\002" + + " \003(\0132).google.cloud.datastream.v1.SpannerColumnB\003\340A\001\"x\n\r" + + "SpannerColumn\022\023\n" + + "\006column\030\001 \001(\tB\003\340A\002\022\026\n" + + "\tdata_type\030\002 \001(\tB\003\340A\001\022\033\n" + + "\016is_primary_key\030\003 \001(\010B\003\340A\001\022\035\n" + + "\020ordinal_position\030\004 \001(\003B\003\340A\001\"\343\001\n" + + "\025DataverseSourceConfig\022G\n" + + "\017include_objects\030\001 \001(\0132).g" + + "oogle.cloud.datastream.v1.SourceCatalogB\003\340A\001\022G\n" + + "\017exclude_objects\030\002" + + " \001(\0132).google.cloud.datastream.v1.SourceCatalogB\003\340A\001\0228\n" + + "\020polling_interval\030\003" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\002\"\271\002\n" + + "$SalesforceMarketingCloudSourceConfig\022G\n" + + "\017include_objects\030\001 \001(" + + "\0132).google.cloud.datastream.v1.SourceCatalogB\003\340A\001\022G\n" + + "\017exclude_objects\030\002 \001(\0132).goo" + + "gle.cloud.datastream.v1.SourceCatalogB\003\340A\001\0228\n" + + "\020polling_interval\030\003" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\002\022E\n" + + "\035full_refresh_polling_interval\030\004" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\002\"\344\001\n" + + "\026ServiceNowSourceConfig\022G\n" + + "\017include_objects\030\001" + + " \001(\0132).google.cloud.datastream.v1.SourceCatalogB\003\340A\001\022G\n" + + "\017exclude_objects\030\002" + + " \001(\0132).google.cloud.datastream.v1.SourceCatalogB\003\340A\001\0228\n" + + "\020polling_interval\030\003" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\002\"\341\001\n" + + "\023WorkdaySourceConfig\022G\n" + + "\017include_objects\030\001" + + " \001(\0132).google.cloud.datastream.v1.SourceCatalogB\003\340A\001\022G\n" + + "\017exclude_objects\030\002" + + " \001(\0132).google.cloud.datastream.v1.SourceCatalogB\003\340A\001\0228\n" + + "\020polling_interval\030\003" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\002\"O\n\r" + + "SourceCatalog\022>\n" + + "\007objects\030\001" + + " \003(\0132(.google.cloud.datastream.v1.SourceObjectB\003\340A\001\"m\n" + + "\014SourceObject\022\030\n" + + "\013object_name\030\001 \001(\tB\003\340A\002\022C\n\n" + + "properties\030\002" + + " \003(\0132*.google.cloud.datastream.v1.SourcePropertyB\003\340A\001\"\213\001\n" + + "\016SourceProperty\022\032\n\r" + + "property_name\030\001 \001(\tB\003\340A\002\022C\n\n" + + "properties\030\002" + + " \003(\0132*.google.cloud.datastream.v1.SourcePropertyB\003\340A\001\022\030\n" + + "\013primary_key\030\004 \001(\010B\003\340A\001\"\303\010\n" + "\014SourceConfig\022V\n" + "\031source_connection_profile\030\001 \001(\tB3\340A\002\372A-\n" + "+datastream.googleapis.com/ConnectionProfile\022N\n" @@ -907,17 +1216,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132-.google.cloud.datastream.v1.MysqlSourceConfigH\000\022V\n" + "\030postgresql_source_config\030f" + " \001(\01322.google.cloud.datastream.v1.PostgresqlSourceConfigH\000\022U\n" - + "\030sql_server_source_config\030g" - + " \001(\01321.google.cloud.datastream.v1.SqlServerSourceConfigH\000\022V\n" - + "\030salesforce_source_config\030h" - + " \001(\01322.google.cloud.datastream.v1.SalesforceSourceConfigH\000\022P\n" - + "\025mongodb_source_config\030i \001(\0132/.google.cl" - + "oud.datastream.v1.MongodbSourceConfigH\000B\026\n" + + "\030sql_server_source_config\030g \001(\01321.google.c" + + "loud.datastream.v1.SqlServerSourceConfigH\000\022V\n" + + "\030salesforce_source_config\030h \001(\01322.g" + + "oogle.cloud.datastream.v1.SalesforceSourceConfigH\000\022P\n" + + "\025mongodb_source_config\030i \001(" + + "\0132/.google.cloud.datastream.v1.MongodbSourceConfigH\000\022P\n" + + "\025spanner_source_config\030j " + + "\001(\0132/.google.cloud.datastream.v1.SpannerSourceConfigH\000\022T\n" + + "\027dataverse_source_config\030o" + + " \001(\01321.google.cloud.datastream.v1.DataverseSourceConfigH\000\022t\n" + + "(salesforce_marketing_cloud_source_config\030t \001(\0132@.google." + + "cloud.datastream.v1.SalesforceMarketingCloudSourceConfigH\000\022W\n" + + "\031service_now_source_config\030u" + + " \001(\01322.google.cloud.datastream.v1.ServiceNowSourceConfigH\000\022U\n" + + "\025workday_source_config\030v" + + " \001(\0132/.google.cloud.datastream.v1.WorkdaySourceConfigB\003\340A\001H\000B\026\n" + "\024source_stream_config\"\020\n" + "\016AvroFileFormat\"\357\002\n" + "\016JsonFileFormat\022W\n" - + "\022schema_file_format\030\001" - + " \001(\0162;.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat\022O\n" + + "\022schema_file_format\030\001 " + + "\001(\0162;.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat\022O\n" + "\013compression\030\002" + " \001(\0162:.google.cloud.datastream.v1.JsonFileFormat.JsonCompression\"`\n" + "\020SchemaFileFormat\022\"\n" @@ -927,33 +1246,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017JsonCompression\022 \n" + "\034JSON_COMPRESSION_UNSPECIFIED\020\000\022\022\n" + "\016NO_COMPRESSION\020\001\022\010\n" - + "\004GZIP\020\002\"\230\002\n" + + "\004GZIP\020\002\"*\n" + + "\022BigQueryClustering\022\024\n" + + "\007columns\030\001 \003(\tB\003\340A\002\"}\n" + + "\026IngestionTimePartition\022c\n" + + "\035partitioning_time_granularity\030\001 \001(\01627.go" + + "ogle.cloud.datastream.v1.PartitioningTimeGranularityB\003\340A\001\"\215\001\n" + + "\021TimeUnitPartition\022\023\n" + + "\006column\030\001 \001(\tB\003\340A\002\022c\n" + + "\035partitioning_time_granularity\030\002 \001(\01627.google.cloud.datas" + + "tream.v1.PartitioningTimeGranularityB\003\340A\001\"i\n" + + "\025IntegerRangePartition\022\023\n" + + "\006column\030\001 \001(\tB\003\340A\002\022\022\n" + + "\005start\030\002 \001(\003B\003\340A\002\022\020\n" + + "\003end\030\003 \001(\003B\003\340A\002\022\025\n" + + "\010interval\030\004 \001(\003B\003\340A\002\"\311\002\n" + + "\024BigQueryPartitioning\022T\n" + + "\027integer_range_partition\030d" + + " \001(\01321.google.cloud.datastream.v1.IntegerRangePartitionH\000\022L\n" + + "\023time_unit_partition\030e" + + " \001(\0132-.google.cloud.datastream.v1.TimeUnitPartitionH\000\022V\n" + + "\030ingestion_time_partition\030f" + + " \001(\01322.google.cloud.datastream.v1.IngestionTimePartitionH\000\022%\n" + + "\030require_partition_filter\030g \001(\010B\003\340A\001B\016\n" + + "\014partitioning\"\230\002\n" + "\024GcsDestinationConfig\022\014\n" + "\004path\030\001 \001(\t\022\030\n" + "\020file_rotation_mb\030\002 \001(\005\0229\n" + "\026file_rotation_interval\030\003 \001(\0132\031.google.protobuf.Duration\022F\n" - + "\020avro_file_format\030d \001(" - + "\0132*.google.cloud.datastream.v1.AvroFileFormatH\000\022F\n" - + "\020json_file_format\030e \001(\0132*.goog" - + "le.cloud.datastream.v1.JsonFileFormatH\000B\r\n" + + "\020avro_file_format\030d" + + " \001(\0132*.google.cloud.datastream.v1.AvroFileFormatH\000\022F\n" + + "\020json_file_format\030e" + + " \001(\0132*.google.cloud.datastream.v1.JsonFileFormatH\000B\r\n" + "\013file_format\"\314\n\n" + "\031BigQueryDestinationConfig\022k\n" - + "\025single_target_dataset\030\311\001 \001(\0132I.g" - + "oogle.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetH\000\022s\n" - + "\031source_hierarchy_datasets\030\312\001 \001(\0132M.google.c" - + "loud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsH\000\0222\n" + + "\025single_target_dataset\030\311\001 \001(\0132I.google.cloud" + + ".datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetH\000\022s\n" + + "\031source_hierarchy_datasets\030\312\001 \001(\0132M.google.cloud.datast" + + "ream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsH\000\0222\n" + "\016data_freshness\030\254\002 \001(\0132\031.google.protobuf.Duration\022Z\n" - + "\013blmt_config\030\001 \001(\0132@.google.cloud.d" - + "atastream.v1.BigQueryDestinationConfig.BlmtConfigB\003\340A\001\022M\n" - + "\005merge\030\255\002 \001(\0132;.google." - + "cloud.datastream.v1.BigQueryDestinationConfig.MergeH\001\022X\n" - + "\013append_only\030\256\002 \001(\0132@.go" - + "ogle.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnlyH\001\032)\n" + + "\013blmt_config\030\001 \001(\0132@.google.cloud.datastream.v" + + "1.BigQueryDestinationConfig.BlmtConfigB\003\340A\001\022M\n" + + "\005merge\030\255\002 \001(\0132;.google.cloud.datas" + + "tream.v1.BigQueryDestinationConfig.MergeH\001\022X\n" + + "\013append_only\030\256\002 \001(\0132@.google.cloud." + + "datastream.v1.BigQueryDestinationConfig.AppendOnlyH\001\032)\n" + "\023SingleTargetDataset\022\022\n\n" + "dataset_id\030\001 \001(\t\032\232\002\n" + "\027SourceHierarchyDatasets\022w\n" - + "\020dataset_template\030\002 \001(\0132].google.cloud.datastream.v1.BigQueryDe" - + "stinationConfig.SourceHierarchyDatasets.DatasetTemplate\022\034\n\n" + + "\020dataset_template\030\002 \001(\0132].google.c" + + "loud.datastream.v1.BigQueryDestinationCo" + + "nfig.SourceHierarchyDatasets.DatasetTemplate\022\034\n\n" + "project_id\030\003 \001(\tB\003\340A\001H\000\210\001\001\032Y\n" + "\017DatasetTemplate\022\025\n" + "\010location\030\001 \001(\tB\003\340A\002\022\031\n" @@ -964,10 +1307,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006bucket\030\001 \001(\tB\003\340A\002\022\021\n" + "\troot_path\030\002 \001(\t\022\034\n" + "\017connection_name\030\003 \001(\tB\003\340A\002\022e\n" - + "\013file_format\030\004 \001(\0162K.google.cloud.datastr" - + "eam.v1.BigQueryDestinationConfig.BlmtConfig.FileFormatB\003\340A\002\022g\n" - + "\014table_format\030\005 \001(\0162L.google.cloud.datastream.v1.BigQueryD" - + "estinationConfig.BlmtConfig.TableFormatB\003\340A\002\"6\n\n" + + "\013file_format\030\004 \001(\0162K.google.cloud.datastream.v1.BigQ" + + "ueryDestinationConfig.BlmtConfig.FileFormatB\003\340A\002\022g\n" + + "\014table_format\030\005 \001(\0162L.google." + + "cloud.datastream.v1.BigQueryDestinationConfig.BlmtConfig.TableFormatB\003\340A\002\"6\n\n" + "FileFormat\022\033\n" + "\027FILE_FORMAT_UNSPECIFIED\020\000\022\013\n" + "\007PARQUET\020\001\"8\n" @@ -981,11 +1324,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021DestinationConfig\022[\n" + "\036destination_connection_profile\030\001 \001(\tB3\340A\002\372A-\n" + "+datastream.googleapis.com/ConnectionProfile\022R\n" - + "\026gcs_destination_config\030d \001(\013" - + "20.google.cloud.datastream.v1.GcsDestinationConfigH\000\022\\\n" - + "\033bigquery_destination_config\030e" - + " \001(\01325.google.cloud.datastream.v1.BigQueryDestinationConfigH\000B\033\n" - + "\031destination_stream_config\"\354\r\n" + + "\026gcs_destination_config\030d \001(\01320.google.c" + + "loud.datastream.v1.GcsDestinationConfigH\000\022\\\n" + + "\033bigquery_destination_config\030e \001(\01325" + + ".google.cloud.datastream.v1.BigQueryDestinationConfigH\000B\033\n" + + "\031destination_stream_config\"\305\023\n" + "\006Stream\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\003\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" @@ -997,32 +1340,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022destination_config\030\007" + " \001(\0132-.google.cloud.datastream.v1.DestinationConfigB\003\340A\002\0227\n" + "\005state\030\010 \001(\0162(.google.cloud.datastream.v1.Stream.State\022N\n" - + "\014backfill_all\030e \001(\01326.g", - "oogle.cloud.datastream.v1.Stream.BackfillAllStrategyH\000\022P\n\r" - + "backfill_none\030f \001(\01327." - + "google.cloud.datastream.v1.Stream.BackfillNoneStrategyH\000\0226\n" + + "\014backfill_all\030e \001(\01326.google.cloud" + + ".datastream.v1.Stream.BackfillAllStrategyH\000\022P\n\r" + + "backfill_none\030f \001(\01327.google.clou" + + "d.datastream.v1.Stream.BackfillNoneStrategyH\000\0226\n" + "\006errors\030\t \003(\0132!.google.cloud.datastream.v1.ErrorB\003\340A\003\0221\n" + "\037customer_managed_encryption_key\030\n" + " \001(\tB\003\340A\005H\001\210\001\001\022;\n" + "\022last_recovery_time\030\r" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\037\n\r" + "satisfies_pzs\030\017 \001(\010B\003\340A\003H\002\210\001\001\022\037\n\r" - + "satisfies_pzi\030\020 \001(\010B\003\340A\003H\003\210\001\001\032\210\004\n" + + "satisfies_pzi\030\020 \001(\010B\003\340A\003H\003\210\001\001\022B\n" + + "\trule_sets\030\023" + + " \003(\0132*.google.cloud.datastream.v1.Stream.RuleSetB\003\340A\001\032\245\005\n" + "\023BackfillAllStrategy\022J\n" + "\027oracle_excluded_objects\030\001" + " \001(\0132\'.google.cloud.datastream.v1.OracleRdbmsH\000\022H\n" - + "\026mysql_excluded_objects\030\002" - + " \001(\0132&.google.cloud.datastream.v1.MysqlRdbmsH\000\022R\n" - + "\033postgresql_excluded_objects\030\003" - + " \001(\0132+.google.cloud.datastream.v1.PostgresqlRdbmsH\000\022Q\n" - + "\033sql_server_excluded_objects\030\004" - + " \001(\0132*.google.cloud.datastream.v1.SqlServerRdbmsH\000\022P\n" + + "\026mysql_excluded_objects\030\002 \001(\0132" + + "&.google.cloud.datastream.v1.MysqlRdbmsH\000\022R\n" + + "\033postgresql_excluded_objects\030\003 \001(\0132+" + + ".google.cloud.datastream.v1.PostgresqlRdbmsH\000\022Q\n" + + "\033sql_server_excluded_objects\030\004 \001" + + "(\0132*.google.cloud.datastream.v1.SqlServerRdbmsH\000\022P\n" + "\033salesforce_excluded_objects\030\005" + " \001(\0132).google.cloud.datastream.v1.SalesforceOrgH\000\022N\n" + "\030mongodb_excluded_objects\030\006" - + " \001(\0132*.google.cloud.datastream.v1.MongodbClusterH\000B\022\n" + + " \001(\0132*.google.cloud.datastream.v1.MongodbClusterH\000\022O\n" + + "\030spanner_excluded_objects\030\007" + + " \001(\0132+.google.cloud.datastream.v1.SpannerDatabaseH\000\022J\n" + + "\025saas_excluded_objects\030\t \001" + + "(\0132).google.cloud.datastream.v1.SourceCatalogH\000B\022\n" + "\020excluded_objects\032\026\n" - + "\024BackfillNoneStrategy\032-\n" + + "\024BackfillNoneStrategy\032\365\003\n" + + "\007RuleSet\022^\n" + + "\023customization_rules\030\001 \003(\0132<.google.cloud.datastream.v" + + "1.Stream.RuleSet.CustomizationRuleB\003\340A\002\022S\n\r" + + "object_filter\030\002 \001(\01327.google.cloud.da" + + "tastream.v1.Stream.RuleSet.ObjectFilterB\003\340A\002\032u\n" + + "\014ObjectFilter\022V\n" + + "\030source_object_identifier\030\001" + + " \001(\01322.google.cloud.datastream.v1.SourceObjectIdentifierH\000B\r\n" + + "\013filter_type\032\275\001\n" + + "\021CustomizationRule\022Q\n" + + "\025bigquery_partitioning\030\001" + + " \001(\01320.google.cloud.datastream.v1.BigQueryPartitioningH\000\022M\n" + + "\023bigquery_clustering\030\002" + + " \001(\0132..google.cloud.datastream.v1.BigQueryClusteringH\000B\006\n" + + "\004rule\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\231\001\n" @@ -1036,12 +1400,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022FAILED_PERMANENTLY\020\006\022\014\n" + "\010STARTING\020\007\022\014\n" + "\010DRAINING\020\010:_\352A\\\n" - + " datastream.googleapis.com/Stream\022" - + "8projects/{project}/locations/{location}/streams/{stream}B\023\n" + + " datastream.googleapis.com/Stream\0228p" + + "rojects/{project}/locations/{location}/streams/{stream}B\023\n" + "\021backfill_strategyB\"\n" + " _customer_managed_encryption_keyB\020\n" + "\016_satisfies_pzsB\020\n" - + "\016_satisfies_pzi\"\345\003\n" + + "\016_satisfies_pzi\"\305\004\n" + "\014StreamObject\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\003\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" @@ -1050,23 +1414,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014display_name\030\005 \001(\tB\003\340A\002\0226\n" + "\006errors\030\006 \003(\0132!.google.cloud.datastream.v1.ErrorB\003\340A\003\022=\n" + "\014backfill_job\030\007 \001(\0132\'.google.cloud.datastream.v1.BackfillJob\022I\n\r" - + "source_object\030\010 \001(\01322.google.clou" - + "d.datastream.v1.SourceObjectIdentifier:v\352As\n" - + "&datastream.googleapis.com/StreamObject\022Iprojects/{project}/locations/{locat" - + "ion}/streams/{stream}/objects/{object}\"\313\010\n" + + "source_object\030\010" + + " \001(\01322.google.cloud.datastream.v1.SourceObjectIdentifier\022^\n" + + "\023customization_rules\030\t \003(\0132<.google.cloud" + + ".datastream.v1.Stream.RuleSet.CustomizationRuleB\003\340A\003:v\352As\n" + + "&datastream.googleapis.com/StreamObject\022Iprojects/{project}/lo" + + "cations/{location}/streams/{stream}/objects/{object}\"\371\t\n" + "\026SourceObjectIdentifier\022f\n" - + "\021oracle_identifier\030\001 \001(\0132I.google.cloud.datastream.v" - + "1.SourceObjectIdentifier.OracleObjectIdentifierH\000\022d\n" - + "\020mysql_identifier\030\002 \001(\0132H.go" - + "ogle.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierH\000\022n\n" - + "\025postgresql_identifier\030\003 \001(\0132M.google.cloud.da" - + "tastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierH\000\022m\n" - + "\025sql_server_identifier\030\004 \001(\0132L.google.cloud.datastream" - + ".v1.SourceObjectIdentifier.SqlServerObjectIdentifierH\000\022n\n" - + "\025salesforce_identifier\030\005 \001(\0132M.google.cloud.datastream.v1.Sourc" - + "eObjectIdentifier.SalesforceObjectIdentifierH\000\022h\n" - + "\022mongodb_identifier\030\006 \001(\0132J.goo" - + "gle.cloud.datastream.v1.SourceObjectIdentifier.MongodbObjectIdentifierH\000\032A\n" + + "\021oracle_identifier\030\001 \001(\0132I.google.clou" + + "d.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierH\000\022d\n" + + "\020mysql_identifier\030\002 \001(\0132H.google.cloud.datastream.v1.S" + + "ourceObjectIdentifier.MysqlObjectIdentifierH\000\022n\n" + + "\025postgresql_identifier\030\003 \001(\0132M.g" + + "oogle.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierH\000\022m\n" + + "\025sql_server_identifier\030\004 \001(\0132L.google.cl" + + "oud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifierH\000\022n\n" + + "\025salesforce_identifier\030\005 \001(\0132M.google.cloud.datas" + + "tream.v1.SourceObjectIdentifier.SalesforceObjectIdentifierH\000\022h\n" + + "\022mongodb_identifier\030\006 \001(\0132J.google.cloud.datastream.v1.So" + + "urceObjectIdentifier.MongodbObjectIdentifierH\000\022h\n" + + "\022spanner_identifier\030\007 \001(\0132J.goo" + + "gle.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifierH\000\032A\n" + "\026OracleObjectIdentifier\022\023\n" + "\006schema\030\001 \001(\tB\003\340A\002\022\022\n" + "\005table\030\002 \001(\tB\003\340A\002\032E\n" @@ -1083,17 +1451,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013object_name\030\001 \001(\tB\003\340A\002\032I\n" + "\027MongodbObjectIdentifier\022\025\n" + "\010database\030\001 \001(\tB\003\340A\002\022\027\n\n" - + "collection\030\002 \001(\tB\003\340A\002B\023\n" - + "\021source_identifier\"\377\003\n" + + "collection\030\002 \001(\tB\003\340A\002\032B\n" + + "\027SpannerObjectIdentifier\022\023\n" + + "\006schema\030\001 \001(\tB\003\340A\001\022\022\n" + + "\005table\030\002 \001(\tB\003\340A\002B\023\n" + + "\021source_identifier\"\303\004\n" + "\013BackfillJob\022A\n" - + "\005state\030\001" - + " \001(\0162-.google.cloud.datastream.v1.BackfillJob.StateB\003\340A\003\022@\n" + + "\005state\030\001 \001(\0162" + + "-.google.cloud.datastream.v1.BackfillJob.StateB\003\340A\003\022@\n" + "\007trigger\030\002 \001(\0162/.google.cloud.datastream.v1.BackfillJob.Trigger\0228\n" + "\017last_start_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0226\n\r" + "last_end_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0226\n" - + "\006errors\030\005" - + " \003(\0132!.google.cloud.datastream.v1.ErrorB\003\340A\003\"\201\001\n" + + "\006errors\030\005 \003(\0132!.google.cloud.datastream.v1.ErrorB\003\340A\003\022B\n" + + "\014event_filter\030\007" + + " \001(\0132\'.google.cloud.datastream.v1.EventFilterB\003\340A\003\"\201\001\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\017\n" + "\013NOT_STARTED\020\001\022\013\n" @@ -1106,24 +1478,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007Trigger\022\027\n" + "\023TRIGGER_UNSPECIFIED\020\000\022\r\n" + "\tAUTOMATIC\020\001\022\n\n" - + "\006MANUAL\020\002\"\335\001\n" + + "\006MANUAL\020\002\"3\n" + + "\013EventFilter\022\032\n" + + "\020sql_where_clause\030\001 \001(\tH\000B\010\n" + + "\006filter\"\335\001\n" + "\005Error\022\016\n" + "\006reason\030\001 \001(\t\022\022\n\n" + "error_uuid\030\002 \001(\t\022\017\n" - + "\007message\030\003 \001(\t\022.\n" - + "\n" + + "\007message\030\003 \001(\t\022.\n\n" + "error_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022?\n" + "\007details\030\005 \003(\0132..google.cloud.datastream.v1.Error.DetailsEntry\032.\n" + "\014DetailsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"O\n" + "\020ValidationResult\022;\n" - + "\013validations\030\001 \003(\0132" - + "&.google.cloud.datastream.v1.Validation\"\210\002\n\n" + + "\013validations\030\001" + + " \003(\0132&.google.cloud.datastream.v1.Validation\"\210\002\n\n" + "Validation\022\023\n" + "\013description\030\001 \001(\t\022@\n" - + "\005state\030\002" - + " \001(\0162,.google.cloud.datastream.v1.Validation.StateB\003\340A\003\022>\n" + + "\005state\030\002 \001(\0162" + + ",.google.cloud.datastream.v1.Validation.StateB\003\340A\003\022>\n" + "\007message\030\003 \003(\0132-.google.cloud.datastream.v1.ValidationMessage\022\014\n" + "\004code\030\004 \001(\t\"U\n" + "\005State\022\025\n" @@ -1134,10 +1508,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007WARNING\020\004\"\256\002\n" + "\021ValidationMessage\022\017\n" + "\007message\030\001 \001(\t\022B\n" - + "\005level\030\002 \001(\016" - + "23.google.cloud.datastream.v1.ValidationMessage.Level\022M\n" - + "\010metadata\030\003 \003(\0132;.google" - + ".cloud.datastream.v1.ValidationMessage.MetadataEntry\022\014\n" + + "\005level\030\002 \001(\01623.google.c" + + "loud.datastream.v1.ValidationMessage.Level\022M\n" + + "\010metadata\030\003 \003(\0132;.google.cloud.data" + + "stream.v1.ValidationMessage.MetadataEntry\022\014\n" + "\004code\030\004 \001(\t\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -1145,16 +1519,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005Level\022\025\n" + "\021LEVEL_UNSPECIFIED\020\000\022\013\n" + "\007WARNING\020\001\022\t\n" - + "\005ERROR\020\002\"\200\006\n" + + "\005ERROR\020\002\"\313\007\n" + "\013CdcStrategy\022j\n" - + "\032most_recent_start_position\030e \001(\0132?.google.cloud.d" - + "atastream.v1.CdcStrategy.MostRecentStartPositionB\003\340A\001H\000\022p\n" - + "\035next_available_start_position\030f \001(\0132B.google.cloud.datastream" - + ".v1.CdcStrategy.NextAvailableStartPositionB\003\340A\001H\000\022e\n" - + "\027specific_start_position\030g \001" - + "(\0132=.google.cloud.datastream.v1.CdcStrategy.SpecificStartPositionB\003\340A\001H\000\032\031\n" + + "\032most_recent_start_position\030e \001(\0132?.google.cloud.datastream.v" + + "1.CdcStrategy.MostRecentStartPositionB\003\340A\001H\000\022p\n" + + "\035next_available_start_position\030f \001(\0132B.google.cloud.datastream.v1.CdcStra" + + "tegy.NextAvailableStartPositionB\003\340A\001H\000\022e\n" + + "\027specific_start_position\030g \001(\0132=.google" + + ".cloud.datastream.v1.CdcStrategy.SpecificStartPositionB\003\340A\001H\000\032\031\n" + "\027MostRecentStartPosition\032\034\n" - + "\032NextAvailableStartPosition\032\340\002\n" + + "\032NextAvailableStartPosition\032\253\004\n" + "\025SpecificStartPosition\022J\n" + "\022mysql_log_position\030e" + " \001(\0132,.google.cloud.datastream.v1.MysqlLogPositionH\000\022L\n" @@ -1163,7 +1537,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027sql_server_lsn_position\030g" + " \001(\01320.google.cloud.datastream.v1.SqlServerLsnPositionH\000\022L\n" + "\023mysql_gtid_position\030h" - + " \001(\0132-.google.cloud.datastream.v1.MysqlGtidPositionH\000B\n\n" + + " \001(\0132-.google.cloud.datastream.v1.MysqlGtidPositionH\000\022a\n" + + "\036mongodb_change_stream_position\030i \001(\01327.google.cloud.dat" + + "astream.v1.MongodbChangeStreamPositionH\000\022f\n" + + "\036spanner_change_stream_position\030j \001(\013" + + "27.google.cloud.datastream.v1.SpannerChangeStreamPositionB\003\340A\001H\000B\n\n" + "\010positionB\020\n" + "\016start_position\"(\n" + "\024SqlServerLsnPosition\022\020\n" @@ -1175,7 +1553,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014log_position\030\002 \001(\005B\003\340A\001H\000\210\001\001B\017\n\r" + "_log_position\"*\n" + "\021MysqlGtidPosition\022\025\n" - + "\010gtid_set\030\001 \001(\tB\003\340A\002B\242\003\n" + + "\010gtid_set\030\001 \001(\tB\003\340A\002\"R\n" + + "\033MongodbChangeStreamPosition\0223\n\n" + + "start_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\002\"R\n" + + "\033SpannerChangeStreamPosition\0223\n\n" + + "start_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\002*O\n" + + "\017MongodbJsonMode\022!\n" + + "\035MONGODB_JSON_MODE_UNSPECIFIED\020\000\022\n\n" + + "\006STRICT\020\001\022\r\n" + + "\tCANONICAL\020\002*\354\001\n" + + "\033PartitioningTimeGranularity\022-\n" + + ")PARTITIONING_TIME_GRANULARITY_UNSPECIFIED\020\000\022&\n" + + "\"PARTITIONING_TIME_GRANULARITY_HOUR\020\001\022%\n" + + "!PARTITIONING_TIME_GRANULARITY_DAY\020\002\022\'\n" + + "#PARTITIONING_TIME_GRANULARITY_MONTH\020\003\022&\n" + + "\"PARTITIONING_TIME_GRANULARITY_YEAR\020\004B\204\004\n" + "\036com.google.cloud.datastream.v1B\030DatastreamResourcesProtoP\001Z>cloud.google.com" + "/go/datastream/apiv1/datastreampb;datast" + "reampb\252\002\032Google.Cloud.Datastream.V1\312\002\032Go" @@ -1183,13 +1575,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037compute.googleapis." + "com/Networks\022,projects/{project}/global/networks/{network}\352Aw\n" + "(compute.googleapis.com/NetworkAttachment\022Kprojects/{proje" - + "ct}/regions/{region}/networkAttachments/{network_attachment}b\006proto3" + + "ct}/regions/{region}/networkAttachments/{network_attachment}\352A_\n" + + "\037spanner.googleapis.com/Database\022 + * Profile for connecting to a Dataverse source. + *
    + * + * Protobuf type {@code google.cloud.datastream.v1.DataverseProfile} + */ +@com.google.protobuf.Generated +public final class DataverseProfile extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.DataverseProfile) + DataverseProfileOrBuilder { + 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= */ "", + "DataverseProfile"); + } + + // Use DataverseProfile.newBuilder() to construct. + private DataverseProfile(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DataverseProfile() { + tenantId_ = ""; + environmentUrl_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_DataverseProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_DataverseProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.DataverseProfile.class, + com.google.cloud.datastream.v1.DataverseProfile.Builder.class); + } + + private int bitField0_; + public static final int TENANT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object tenantId_ = ""; + + /** + * + * + *
    +   * Required. Tenant id of the Microsoft Dataverse instance.
    +   * 
    + * + * string tenant_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tenantId. + */ + @java.lang.Override + public java.lang.String getTenantId() { + java.lang.Object ref = tenantId_; + 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(); + tenantId_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. Tenant id of the Microsoft Dataverse instance.
    +   * 
    + * + * string tenant_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tenantId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTenantIdBytes() { + java.lang.Object ref = tenantId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tenantId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENVIRONMENT_URL_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object environmentUrl_ = ""; + + /** + * + * + *
    +   * Required. Environment URL of the Microsoft Dataverse instance.
    +   * Example:  `<subdomain>.crm.dynamics.com`
    +   * 
    + * + * string environment_url = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The environmentUrl. + */ + @java.lang.Override + public java.lang.String getEnvironmentUrl() { + java.lang.Object ref = environmentUrl_; + 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(); + environmentUrl_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. Environment URL of the Microsoft Dataverse instance.
    +   * Example:  `<subdomain>.crm.dynamics.com`
    +   * 
    + * + * string environment_url = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for environmentUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEnvironmentUrlBytes() { + java.lang.Object ref = environmentUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + environmentUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OAUTH_CLIENT_CREDENTIALS_FIELD_NUMBER = 3; + private com.google.cloud.datastream.v1.OauthClientCredentials oauthClientCredentials_; + + /** + * + * + *
    +   * Required. Credentials for authenticating with the Dataverse API.
    +   * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the oauthClientCredentials field is set. + */ + @java.lang.Override + public boolean hasOauthClientCredentials() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. Credentials for authenticating with the Dataverse API.
    +   * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The oauthClientCredentials. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OauthClientCredentials getOauthClientCredentials() { + return oauthClientCredentials_ == null + ? com.google.cloud.datastream.v1.OauthClientCredentials.getDefaultInstance() + : oauthClientCredentials_; + } + + /** + * + * + *
    +   * Required. Credentials for authenticating with the Dataverse API.
    +   * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder + getOauthClientCredentialsOrBuilder() { + return oauthClientCredentials_ == null + ? com.google.cloud.datastream.v1.OauthClientCredentials.getDefaultInstance() + : oauthClientCredentials_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tenantId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, tenantId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getOauthClientCredentials()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(environmentUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, environmentUrl_); + } + 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(tenantId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, tenantId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOauthClientCredentials()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(environmentUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, environmentUrl_); + } + 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.datastream.v1.DataverseProfile)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.DataverseProfile other = + (com.google.cloud.datastream.v1.DataverseProfile) obj; + + if (!getTenantId().equals(other.getTenantId())) return false; + if (!getEnvironmentUrl().equals(other.getEnvironmentUrl())) return false; + if (hasOauthClientCredentials() != other.hasOauthClientCredentials()) return false; + if (hasOauthClientCredentials()) { + if (!getOauthClientCredentials().equals(other.getOauthClientCredentials())) 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) + TENANT_ID_FIELD_NUMBER; + hash = (53 * hash) + getTenantId().hashCode(); + hash = (37 * hash) + ENVIRONMENT_URL_FIELD_NUMBER; + hash = (53 * hash) + getEnvironmentUrl().hashCode(); + if (hasOauthClientCredentials()) { + hash = (37 * hash) + OAUTH_CLIENT_CREDENTIALS_FIELD_NUMBER; + hash = (53 * hash) + getOauthClientCredentials().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.DataverseProfile parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.DataverseProfile 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.datastream.v1.DataverseProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.DataverseProfile 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.datastream.v1.DataverseProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.DataverseProfile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.DataverseProfile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.DataverseProfile 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.datastream.v1.DataverseProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.DataverseProfile 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.datastream.v1.DataverseProfile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.DataverseProfile 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.datastream.v1.DataverseProfile 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; + } + + /** + * + * + *
    +   * Profile for connecting to a Dataverse source.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.DataverseProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.DataverseProfile) + com.google.cloud.datastream.v1.DataverseProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_DataverseProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_DataverseProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.DataverseProfile.class, + com.google.cloud.datastream.v1.DataverseProfile.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.DataverseProfile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetOauthClientCredentialsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tenantId_ = ""; + environmentUrl_ = ""; + oauthClientCredentials_ = null; + if (oauthClientCredentialsBuilder_ != null) { + oauthClientCredentialsBuilder_.dispose(); + oauthClientCredentialsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_DataverseProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.DataverseProfile getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.DataverseProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.DataverseProfile build() { + com.google.cloud.datastream.v1.DataverseProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.DataverseProfile buildPartial() { + com.google.cloud.datastream.v1.DataverseProfile result = + new com.google.cloud.datastream.v1.DataverseProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.DataverseProfile result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tenantId_ = tenantId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.environmentUrl_ = environmentUrl_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.oauthClientCredentials_ = + oauthClientCredentialsBuilder_ == null + ? oauthClientCredentials_ + : oauthClientCredentialsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.DataverseProfile) { + return mergeFrom((com.google.cloud.datastream.v1.DataverseProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.DataverseProfile other) { + if (other == com.google.cloud.datastream.v1.DataverseProfile.getDefaultInstance()) + return this; + if (!other.getTenantId().isEmpty()) { + tenantId_ = other.tenantId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEnvironmentUrl().isEmpty()) { + environmentUrl_ = other.environmentUrl_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasOauthClientCredentials()) { + mergeOauthClientCredentials(other.getOauthClientCredentials()); + } + 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: + { + tenantId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + input.readMessage( + internalGetOauthClientCredentialsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: + { + environmentUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 42 + 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 tenantId_ = ""; + + /** + * + * + *
    +     * Required. Tenant id of the Microsoft Dataverse instance.
    +     * 
    + * + * string tenant_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tenantId. + */ + public java.lang.String getTenantId() { + java.lang.Object ref = tenantId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tenantId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. Tenant id of the Microsoft Dataverse instance.
    +     * 
    + * + * string tenant_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tenantId. + */ + public com.google.protobuf.ByteString getTenantIdBytes() { + java.lang.Object ref = tenantId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tenantId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. Tenant id of the Microsoft Dataverse instance.
    +     * 
    + * + * string tenant_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The tenantId to set. + * @return This builder for chaining. + */ + public Builder setTenantId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tenantId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Tenant id of the Microsoft Dataverse instance.
    +     * 
    + * + * string tenant_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTenantId() { + tenantId_ = getDefaultInstance().getTenantId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Tenant id of the Microsoft Dataverse instance.
    +     * 
    + * + * string tenant_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for tenantId to set. + * @return This builder for chaining. + */ + public Builder setTenantIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tenantId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object environmentUrl_ = ""; + + /** + * + * + *
    +     * Required. Environment URL of the Microsoft Dataverse instance.
    +     * Example:  `<subdomain>.crm.dynamics.com`
    +     * 
    + * + * string environment_url = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The environmentUrl. + */ + public java.lang.String getEnvironmentUrl() { + java.lang.Object ref = environmentUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + environmentUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. Environment URL of the Microsoft Dataverse instance.
    +     * Example:  `<subdomain>.crm.dynamics.com`
    +     * 
    + * + * string environment_url = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for environmentUrl. + */ + public com.google.protobuf.ByteString getEnvironmentUrlBytes() { + java.lang.Object ref = environmentUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + environmentUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. Environment URL of the Microsoft Dataverse instance.
    +     * Example:  `<subdomain>.crm.dynamics.com`
    +     * 
    + * + * string environment_url = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The environmentUrl to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + environmentUrl_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Environment URL of the Microsoft Dataverse instance.
    +     * Example:  `<subdomain>.crm.dynamics.com`
    +     * 
    + * + * string environment_url = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEnvironmentUrl() { + environmentUrl_ = getDefaultInstance().getEnvironmentUrl(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Environment URL of the Microsoft Dataverse instance.
    +     * Example:  `<subdomain>.crm.dynamics.com`
    +     * 
    + * + * string environment_url = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for environmentUrl to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + environmentUrl_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.datastream.v1.OauthClientCredentials oauthClientCredentials_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.OauthClientCredentials, + com.google.cloud.datastream.v1.OauthClientCredentials.Builder, + com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder> + oauthClientCredentialsBuilder_; + + /** + * + * + *
    +     * Required. Credentials for authenticating with the Dataverse API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the oauthClientCredentials field is set. + */ + public boolean hasOauthClientCredentials() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Required. Credentials for authenticating with the Dataverse API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The oauthClientCredentials. + */ + public com.google.cloud.datastream.v1.OauthClientCredentials getOauthClientCredentials() { + if (oauthClientCredentialsBuilder_ == null) { + return oauthClientCredentials_ == null + ? com.google.cloud.datastream.v1.OauthClientCredentials.getDefaultInstance() + : oauthClientCredentials_; + } else { + return oauthClientCredentialsBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. Credentials for authenticating with the Dataverse API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOauthClientCredentials( + com.google.cloud.datastream.v1.OauthClientCredentials value) { + if (oauthClientCredentialsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oauthClientCredentials_ = value; + } else { + oauthClientCredentialsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Credentials for authenticating with the Dataverse API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOauthClientCredentials( + com.google.cloud.datastream.v1.OauthClientCredentials.Builder builderForValue) { + if (oauthClientCredentialsBuilder_ == null) { + oauthClientCredentials_ = builderForValue.build(); + } else { + oauthClientCredentialsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Credentials for authenticating with the Dataverse API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeOauthClientCredentials( + com.google.cloud.datastream.v1.OauthClientCredentials value) { + if (oauthClientCredentialsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && oauthClientCredentials_ != null + && oauthClientCredentials_ + != com.google.cloud.datastream.v1.OauthClientCredentials.getDefaultInstance()) { + getOauthClientCredentialsBuilder().mergeFrom(value); + } else { + oauthClientCredentials_ = value; + } + } else { + oauthClientCredentialsBuilder_.mergeFrom(value); + } + if (oauthClientCredentials_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. Credentials for authenticating with the Dataverse API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearOauthClientCredentials() { + bitField0_ = (bitField0_ & ~0x00000004); + oauthClientCredentials_ = null; + if (oauthClientCredentialsBuilder_ != null) { + oauthClientCredentialsBuilder_.dispose(); + oauthClientCredentialsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Credentials for authenticating with the Dataverse API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.datastream.v1.OauthClientCredentials.Builder + getOauthClientCredentialsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetOauthClientCredentialsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. Credentials for authenticating with the Dataverse API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder + getOauthClientCredentialsOrBuilder() { + if (oauthClientCredentialsBuilder_ != null) { + return oauthClientCredentialsBuilder_.getMessageOrBuilder(); + } else { + return oauthClientCredentials_ == null + ? com.google.cloud.datastream.v1.OauthClientCredentials.getDefaultInstance() + : oauthClientCredentials_; + } + } + + /** + * + * + *
    +     * Required. Credentials for authenticating with the Dataverse API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.OauthClientCredentials, + com.google.cloud.datastream.v1.OauthClientCredentials.Builder, + com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder> + internalGetOauthClientCredentialsFieldBuilder() { + if (oauthClientCredentialsBuilder_ == null) { + oauthClientCredentialsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.OauthClientCredentials, + com.google.cloud.datastream.v1.OauthClientCredentials.Builder, + com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder>( + getOauthClientCredentials(), getParentForChildren(), isClean()); + oauthClientCredentials_ = null; + } + return oauthClientCredentialsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.DataverseProfile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.DataverseProfile) + private static final com.google.cloud.datastream.v1.DataverseProfile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.DataverseProfile(); + } + + public static com.google.cloud.datastream.v1.DataverseProfile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataverseProfile 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.datastream.v1.DataverseProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DataverseProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DataverseProfileOrBuilder.java new file mode 100644 index 000000000000..6ae3a6fae5c1 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DataverseProfileOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface DataverseProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.DataverseProfile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Tenant id of the Microsoft Dataverse instance.
    +   * 
    + * + * string tenant_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tenantId. + */ + java.lang.String getTenantId(); + + /** + * + * + *
    +   * Required. Tenant id of the Microsoft Dataverse instance.
    +   * 
    + * + * string tenant_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tenantId. + */ + com.google.protobuf.ByteString getTenantIdBytes(); + + /** + * + * + *
    +   * Required. Environment URL of the Microsoft Dataverse instance.
    +   * Example:  `<subdomain>.crm.dynamics.com`
    +   * 
    + * + * string environment_url = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The environmentUrl. + */ + java.lang.String getEnvironmentUrl(); + + /** + * + * + *
    +   * Required. Environment URL of the Microsoft Dataverse instance.
    +   * Example:  `<subdomain>.crm.dynamics.com`
    +   * 
    + * + * string environment_url = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for environmentUrl. + */ + com.google.protobuf.ByteString getEnvironmentUrlBytes(); + + /** + * + * + *
    +   * Required. Credentials for authenticating with the Dataverse API.
    +   * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the oauthClientCredentials field is set. + */ + boolean hasOauthClientCredentials(); + + /** + * + * + *
    +   * Required. Credentials for authenticating with the Dataverse API.
    +   * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The oauthClientCredentials. + */ + com.google.cloud.datastream.v1.OauthClientCredentials getOauthClientCredentials(); + + /** + * + * + *
    +   * Required. Credentials for authenticating with the Dataverse API.
    +   * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder + getOauthClientCredentialsOrBuilder(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DataverseSourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DataverseSourceConfig.java new file mode 100644 index 000000000000..3de5395b5aff --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DataverseSourceConfig.java @@ -0,0 +1,1360 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * Configuration for syncing data from a Dataverse source.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.DataverseSourceConfig} + */ +@com.google.protobuf.Generated +public final class DataverseSourceConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.DataverseSourceConfig) + DataverseSourceConfigOrBuilder { + 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= */ "", + "DataverseSourceConfig"); + } + + // Use DataverseSourceConfig.newBuilder() to construct. + private DataverseSourceConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DataverseSourceConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_DataverseSourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_DataverseSourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.DataverseSourceConfig.class, + com.google.cloud.datastream.v1.DataverseSourceConfig.Builder.class); + } + + private int bitField0_; + public static final int INCLUDE_OBJECTS_FIELD_NUMBER = 1; + private com.google.cloud.datastream.v1.SourceCatalog includeObjects_; + + /** + * + * + *
    +   * Optional. The objects to retrieve from the source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the includeObjects field is set. + */ + @java.lang.Override + public boolean hasIncludeObjects() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Optional. The objects to retrieve from the source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The includeObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalog getIncludeObjects() { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : includeObjects_; + } + + /** + * + * + *
    +   * Optional. The objects to retrieve from the source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalogOrBuilder getIncludeObjectsOrBuilder() { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : includeObjects_; + } + + public static final int EXCLUDE_OBJECTS_FIELD_NUMBER = 2; + private com.google.cloud.datastream.v1.SourceCatalog excludeObjects_; + + /** + * + * + *
    +   * Optional. The objects to exclude from the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the excludeObjects field is set. + */ + @java.lang.Override + public boolean hasExcludeObjects() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Optional. The objects to exclude from the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludeObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalog getExcludeObjects() { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : excludeObjects_; + } + + /** + * + * + *
    +   * Optional. The objects to exclude from the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalogOrBuilder getExcludeObjectsOrBuilder() { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : excludeObjects_; + } + + public static final int POLLING_INTERVAL_FIELD_NUMBER = 3; + private com.google.protobuf.Duration pollingInterval_; + + /** + * + * + *
    +   * Required. Incremental sync polling interval for all objects. If not set, a
    +   * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +   * to `24 hours`, inclusive.
    +   * 
    + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the pollingInterval field is set. + */ + @java.lang.Override + public boolean hasPollingInterval() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Required. Incremental sync polling interval for all objects. If not set, a
    +   * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +   * to `24 hours`, inclusive.
    +   * 
    + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The pollingInterval. + */ + @java.lang.Override + public com.google.protobuf.Duration getPollingInterval() { + return pollingInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : pollingInterval_; + } + + /** + * + * + *
    +   * Required. Incremental sync polling interval for all objects. If not set, a
    +   * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +   * to `24 hours`, inclusive.
    +   * 
    + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getPollingIntervalOrBuilder() { + return pollingInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : pollingInterval_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getIncludeObjects()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getExcludeObjects()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getPollingInterval()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIncludeObjects()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExcludeObjects()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPollingInterval()); + } + 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.datastream.v1.DataverseSourceConfig)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.DataverseSourceConfig other = + (com.google.cloud.datastream.v1.DataverseSourceConfig) obj; + + if (hasIncludeObjects() != other.hasIncludeObjects()) return false; + if (hasIncludeObjects()) { + if (!getIncludeObjects().equals(other.getIncludeObjects())) return false; + } + if (hasExcludeObjects() != other.hasExcludeObjects()) return false; + if (hasExcludeObjects()) { + if (!getExcludeObjects().equals(other.getExcludeObjects())) return false; + } + if (hasPollingInterval() != other.hasPollingInterval()) return false; + if (hasPollingInterval()) { + if (!getPollingInterval().equals(other.getPollingInterval())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIncludeObjects()) { + hash = (37 * hash) + INCLUDE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getIncludeObjects().hashCode(); + } + if (hasExcludeObjects()) { + hash = (37 * hash) + EXCLUDE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getExcludeObjects().hashCode(); + } + if (hasPollingInterval()) { + hash = (37 * hash) + POLLING_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getPollingInterval().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.DataverseSourceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.DataverseSourceConfig 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.datastream.v1.DataverseSourceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.DataverseSourceConfig 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.datastream.v1.DataverseSourceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.DataverseSourceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.DataverseSourceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.DataverseSourceConfig 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.datastream.v1.DataverseSourceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.DataverseSourceConfig 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.datastream.v1.DataverseSourceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.DataverseSourceConfig 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.datastream.v1.DataverseSourceConfig 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; + } + + /** + * + * + *
    +   * Configuration for syncing data from a Dataverse source.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.DataverseSourceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.DataverseSourceConfig) + com.google.cloud.datastream.v1.DataverseSourceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_DataverseSourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_DataverseSourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.DataverseSourceConfig.class, + com.google.cloud.datastream.v1.DataverseSourceConfig.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.DataverseSourceConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetIncludeObjectsFieldBuilder(); + internalGetExcludeObjectsFieldBuilder(); + internalGetPollingIntervalFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + includeObjects_ = null; + if (includeObjectsBuilder_ != null) { + includeObjectsBuilder_.dispose(); + includeObjectsBuilder_ = null; + } + excludeObjects_ = null; + if (excludeObjectsBuilder_ != null) { + excludeObjectsBuilder_.dispose(); + excludeObjectsBuilder_ = null; + } + pollingInterval_ = null; + if (pollingIntervalBuilder_ != null) { + pollingIntervalBuilder_.dispose(); + pollingIntervalBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_DataverseSourceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.DataverseSourceConfig getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.DataverseSourceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.DataverseSourceConfig build() { + com.google.cloud.datastream.v1.DataverseSourceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.DataverseSourceConfig buildPartial() { + com.google.cloud.datastream.v1.DataverseSourceConfig result = + new com.google.cloud.datastream.v1.DataverseSourceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.DataverseSourceConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.includeObjects_ = + includeObjectsBuilder_ == null ? includeObjects_ : includeObjectsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.excludeObjects_ = + excludeObjectsBuilder_ == null ? excludeObjects_ : excludeObjectsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pollingInterval_ = + pollingIntervalBuilder_ == null ? pollingInterval_ : pollingIntervalBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.DataverseSourceConfig) { + return mergeFrom((com.google.cloud.datastream.v1.DataverseSourceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.DataverseSourceConfig other) { + if (other == com.google.cloud.datastream.v1.DataverseSourceConfig.getDefaultInstance()) + return this; + if (other.hasIncludeObjects()) { + mergeIncludeObjects(other.getIncludeObjects()); + } + if (other.hasExcludeObjects()) { + mergeExcludeObjects(other.getExcludeObjects()); + } + if (other.hasPollingInterval()) { + mergePollingInterval(other.getPollingInterval()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetIncludeObjectsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetExcludeObjectsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetPollingIntervalFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.datastream.v1.SourceCatalog includeObjects_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder> + includeObjectsBuilder_; + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the includeObjects field is set. + */ + public boolean hasIncludeObjects() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The includeObjects. + */ + public com.google.cloud.datastream.v1.SourceCatalog getIncludeObjects() { + if (includeObjectsBuilder_ == null) { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : includeObjects_; + } else { + return includeObjectsBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludeObjects(com.google.cloud.datastream.v1.SourceCatalog value) { + if (includeObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + includeObjects_ = value; + } else { + includeObjectsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludeObjects( + com.google.cloud.datastream.v1.SourceCatalog.Builder builderForValue) { + if (includeObjectsBuilder_ == null) { + includeObjects_ = builderForValue.build(); + } else { + includeObjectsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.SourceCatalog value) { + if (includeObjectsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && includeObjects_ != null + && includeObjects_ + != com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance()) { + getIncludeObjectsBuilder().mergeFrom(value); + } else { + includeObjects_ = value; + } + } else { + includeObjectsBuilder_.mergeFrom(value); + } + if (includeObjects_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIncludeObjects() { + bitField0_ = (bitField0_ & ~0x00000001); + includeObjects_ = null; + if (includeObjectsBuilder_ != null) { + includeObjectsBuilder_.dispose(); + includeObjectsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceCatalog.Builder getIncludeObjectsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetIncludeObjectsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceCatalogOrBuilder getIncludeObjectsOrBuilder() { + if (includeObjectsBuilder_ != null) { + return includeObjectsBuilder_.getMessageOrBuilder(); + } else { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : includeObjects_; + } + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder> + internalGetIncludeObjectsFieldBuilder() { + if (includeObjectsBuilder_ == null) { + includeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder>( + getIncludeObjects(), getParentForChildren(), isClean()); + includeObjects_ = null; + } + return includeObjectsBuilder_; + } + + private com.google.cloud.datastream.v1.SourceCatalog excludeObjects_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder> + excludeObjectsBuilder_; + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the excludeObjects field is set. + */ + public boolean hasExcludeObjects() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludeObjects. + */ + public com.google.cloud.datastream.v1.SourceCatalog getExcludeObjects() { + if (excludeObjectsBuilder_ == null) { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : excludeObjects_; + } else { + return excludeObjectsBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExcludeObjects(com.google.cloud.datastream.v1.SourceCatalog value) { + if (excludeObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + excludeObjects_ = value; + } else { + excludeObjectsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExcludeObjects( + com.google.cloud.datastream.v1.SourceCatalog.Builder builderForValue) { + if (excludeObjectsBuilder_ == null) { + excludeObjects_ = builderForValue.build(); + } else { + excludeObjectsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.SourceCatalog value) { + if (excludeObjectsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && excludeObjects_ != null + && excludeObjects_ + != com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance()) { + getExcludeObjectsBuilder().mergeFrom(value); + } else { + excludeObjects_ = value; + } + } else { + excludeObjectsBuilder_.mergeFrom(value); + } + if (excludeObjects_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExcludeObjects() { + bitField0_ = (bitField0_ & ~0x00000002); + excludeObjects_ = null; + if (excludeObjectsBuilder_ != null) { + excludeObjectsBuilder_.dispose(); + excludeObjectsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceCatalog.Builder getExcludeObjectsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetExcludeObjectsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceCatalogOrBuilder getExcludeObjectsOrBuilder() { + if (excludeObjectsBuilder_ != null) { + return excludeObjectsBuilder_.getMessageOrBuilder(); + } else { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : excludeObjects_; + } + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder> + internalGetExcludeObjectsFieldBuilder() { + if (excludeObjectsBuilder_ == null) { + excludeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder>( + getExcludeObjects(), getParentForChildren(), isClean()); + excludeObjects_ = null; + } + return excludeObjectsBuilder_; + } + + private com.google.protobuf.Duration pollingInterval_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + pollingIntervalBuilder_; + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the pollingInterval field is set. + */ + public boolean hasPollingInterval() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The pollingInterval. + */ + public com.google.protobuf.Duration getPollingInterval() { + if (pollingIntervalBuilder_ == null) { + return pollingInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : pollingInterval_; + } else { + return pollingIntervalBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPollingInterval(com.google.protobuf.Duration value) { + if (pollingIntervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pollingInterval_ = value; + } else { + pollingIntervalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPollingInterval(com.google.protobuf.Duration.Builder builderForValue) { + if (pollingIntervalBuilder_ == null) { + pollingInterval_ = builderForValue.build(); + } else { + pollingIntervalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePollingInterval(com.google.protobuf.Duration value) { + if (pollingIntervalBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && pollingInterval_ != null + && pollingInterval_ != com.google.protobuf.Duration.getDefaultInstance()) { + getPollingIntervalBuilder().mergeFrom(value); + } else { + pollingInterval_ = value; + } + } else { + pollingIntervalBuilder_.mergeFrom(value); + } + if (pollingInterval_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPollingInterval() { + bitField0_ = (bitField0_ & ~0x00000004); + pollingInterval_ = null; + if (pollingIntervalBuilder_ != null) { + pollingIntervalBuilder_.dispose(); + pollingIntervalBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Duration.Builder getPollingIntervalBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetPollingIntervalFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.DurationOrBuilder getPollingIntervalOrBuilder() { + if (pollingIntervalBuilder_ != null) { + return pollingIntervalBuilder_.getMessageOrBuilder(); + } else { + return pollingInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : pollingInterval_; + } + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetPollingIntervalFieldBuilder() { + if (pollingIntervalBuilder_ == null) { + pollingIntervalBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getPollingInterval(), getParentForChildren(), isClean()); + pollingInterval_ = null; + } + return pollingIntervalBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.DataverseSourceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.DataverseSourceConfig) + private static final com.google.cloud.datastream.v1.DataverseSourceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.DataverseSourceConfig(); + } + + public static com.google.cloud.datastream.v1.DataverseSourceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataverseSourceConfig 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.datastream.v1.DataverseSourceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DataverseSourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DataverseSourceConfigOrBuilder.java new file mode 100644 index 000000000000..0a5af11a78cf --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DataverseSourceConfigOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface DataverseSourceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.DataverseSourceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. The objects to retrieve from the source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the includeObjects field is set. + */ + boolean hasIncludeObjects(); + + /** + * + * + *
    +   * Optional. The objects to retrieve from the source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The includeObjects. + */ + com.google.cloud.datastream.v1.SourceCatalog getIncludeObjects(); + + /** + * + * + *
    +   * Optional. The objects to retrieve from the source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SourceCatalogOrBuilder getIncludeObjectsOrBuilder(); + + /** + * + * + *
    +   * Optional. The objects to exclude from the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the excludeObjects field is set. + */ + boolean hasExcludeObjects(); + + /** + * + * + *
    +   * Optional. The objects to exclude from the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludeObjects. + */ + com.google.cloud.datastream.v1.SourceCatalog getExcludeObjects(); + + /** + * + * + *
    +   * Optional. The objects to exclude from the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SourceCatalogOrBuilder getExcludeObjectsOrBuilder(); + + /** + * + * + *
    +   * Required. Incremental sync polling interval for all objects. If not set, a
    +   * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +   * to `24 hours`, inclusive.
    +   * 
    + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the pollingInterval field is set. + */ + boolean hasPollingInterval(); + + /** + * + * + *
    +   * Required. Incremental sync polling interval for all objects. If not set, a
    +   * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +   * to `24 hours`, inclusive.
    +   * 
    + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The pollingInterval. + */ + com.google.protobuf.Duration getPollingInterval(); + + /** + * + * + *
    +   * Required. Incremental sync polling interval for all objects. If not set, a
    +   * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +   * to `24 hours`, inclusive.
    +   * 
    + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.DurationOrBuilder getPollingIntervalOrBuilder(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java index 7da08899137c..71fe868eb25e 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java @@ -186,6 +186,8 @@ public enum DataObjectCase SQL_SERVER_RDBMS(103), SALESFORCE_ORG(104), MONGODB_CLUSTER(105), + SPANNER_DATABASE(106), + SOURCE_CATALOG(108), DATAOBJECT_NOT_SET(0); private final int value; @@ -217,6 +219,10 @@ public static DataObjectCase forNumber(int value) { return SALESFORCE_ORG; case 105: return MONGODB_CLUSTER; + case 106: + return SPANNER_DATABASE; + case 108: + return SOURCE_CATALOG; case 0: return DATAOBJECT_NOT_SET; default: @@ -298,10 +304,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
    -   * An ad-hoc connection profile configuration.
    +   * Optional. An ad-hoc connection profile configuration.
        * 
    * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the connectionProfile field is set. */ @@ -314,10 +322,12 @@ public boolean hasConnectionProfile() { * * *
    -   * An ad-hoc connection profile configuration.
    +   * Optional. An ad-hoc connection profile configuration.
        * 
    * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The connectionProfile. */ @@ -333,10 +343,12 @@ public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile() { * * *
    -   * An ad-hoc connection profile configuration.
    +   * Optional. An ad-hoc connection profile configuration.
        * 
    * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { @@ -352,10 +364,10 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr * * *
    -   * A reference to an existing connection profile.
    +   * Optional. A reference to an existing connection profile.
        * 
    * - * string connection_profile_name = 201; + * string connection_profile_name = 201 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the connectionProfileName field is set. */ @@ -367,10 +379,10 @@ public boolean hasConnectionProfileName() { * * *
    -   * A reference to an existing connection profile.
    +   * Optional. A reference to an existing connection profile.
        * 
    * - * string connection_profile_name = 201; + * string connection_profile_name = 201 [(.google.api.field_behavior) = OPTIONAL]; * * @return The connectionProfileName. */ @@ -395,10 +407,10 @@ public java.lang.String getConnectionProfileName() { * * *
    -   * A reference to an existing connection profile.
    +   * Optional. A reference to an existing connection profile.
        * 
    * - * string connection_profile_name = 201; + * string connection_profile_name = 201 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for connectionProfileName. */ @@ -425,11 +437,11 @@ public com.google.protobuf.ByteString getConnectionProfileNameBytes() { * * *
    -   * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    -   * current level (FALSE).
    +   * Optional. Whether to retrieve the full hierarchy of data objects (TRUE)
    +   * or only the current level (FALSE).
        * 
    * - * bool full_hierarchy = 3; + * bool full_hierarchy = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the fullHierarchy field is set. */ @@ -442,11 +454,11 @@ public boolean hasFullHierarchy() { * * *
    -   * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    -   * current level (FALSE).
    +   * Optional. Whether to retrieve the full hierarchy of data objects (TRUE)
    +   * or only the current level (FALSE).
        * 
    * - * bool full_hierarchy = 3; + * bool full_hierarchy = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The fullHierarchy. */ @@ -464,10 +476,11 @@ public boolean getFullHierarchy() { * * *
    -   * The number of hierarchy levels below the current level to be retrieved.
    +   * Optional. The number of hierarchy levels below the current level to be
    +   * retrieved.
        * 
    * - * int32 hierarchy_depth = 4; + * int32 hierarchy_depth = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the hierarchyDepth field is set. */ @@ -480,10 +493,11 @@ public boolean hasHierarchyDepth() { * * *
    -   * The number of hierarchy levels below the current level to be retrieved.
    +   * Optional. The number of hierarchy levels below the current level to be
    +   * retrieved.
        * 
    * - * int32 hierarchy_depth = 4; + * int32 hierarchy_depth = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The hierarchyDepth. */ @@ -501,10 +515,12 @@ public int getHierarchyDepth() { * * *
    -   * Oracle RDBMS to enrich with child data objects and metadata.
    +   * Optional. Oracle RDBMS to enrich with child data objects and metadata.
        * 
    * - * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the oracleRdbms field is set. */ @@ -517,10 +533,12 @@ public boolean hasOracleRdbms() { * * *
    -   * Oracle RDBMS to enrich with child data objects and metadata.
    +   * Optional. Oracle RDBMS to enrich with child data objects and metadata.
        * 
    * - * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The oracleRdbms. */ @@ -536,10 +554,12 @@ public com.google.cloud.datastream.v1.OracleRdbms getOracleRdbms() { * * *
    -   * Oracle RDBMS to enrich with child data objects and metadata.
    +   * Optional. Oracle RDBMS to enrich with child data objects and metadata.
        * 
    * - * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder() { @@ -555,10 +575,12 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuild * * *
    -   * MySQL RDBMS to enrich with child data objects and metadata.
    +   * Optional. MySQL RDBMS to enrich with child data objects and metadata.
        * 
    * - * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the mysqlRdbms field is set. */ @@ -571,10 +593,12 @@ public boolean hasMysqlRdbms() { * * *
    -   * MySQL RDBMS to enrich with child data objects and metadata.
    +   * Optional. MySQL RDBMS to enrich with child data objects and metadata.
        * 
    * - * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The mysqlRdbms. */ @@ -590,10 +614,12 @@ public com.google.cloud.datastream.v1.MysqlRdbms getMysqlRdbms() { * * *
    -   * MySQL RDBMS to enrich with child data objects and metadata.
    +   * Optional. MySQL RDBMS to enrich with child data objects and metadata.
        * 
    * - * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder() { @@ -609,10 +635,13 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder * * *
    -   * PostgreSQL RDBMS to enrich with child data objects and metadata.
    +   * Optional. PostgreSQL RDBMS to enrich with child data objects and
    +   * metadata.
        * 
    * - * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the postgresqlRdbms field is set. */ @@ -625,10 +654,13 @@ public boolean hasPostgresqlRdbms() { * * *
    -   * PostgreSQL RDBMS to enrich with child data objects and metadata.
    +   * Optional. PostgreSQL RDBMS to enrich with child data objects and
    +   * metadata.
        * 
    * - * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The postgresqlRdbms. */ @@ -644,10 +676,13 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms() { * * *
    -   * PostgreSQL RDBMS to enrich with child data objects and metadata.
    +   * Optional. PostgreSQL RDBMS to enrich with child data objects and
    +   * metadata.
        * 
    * - * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbmsOrBuilder() { @@ -663,10 +698,12 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbm * * *
    -   * SQLServer RDBMS to enrich with child data objects and metadata.
    +   * Optional. SQLServer RDBMS to enrich with child data objects and metadata.
        * 
    * - * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the sqlServerRdbms field is set. */ @@ -679,10 +716,12 @@ public boolean hasSqlServerRdbms() { * * *
    -   * SQLServer RDBMS to enrich with child data objects and metadata.
    +   * Optional. SQLServer RDBMS to enrich with child data objects and metadata.
        * 
    * - * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The sqlServerRdbms. */ @@ -698,10 +737,12 @@ public com.google.cloud.datastream.v1.SqlServerRdbms getSqlServerRdbms() { * * *
    -   * SQLServer RDBMS to enrich with child data objects and metadata.
    +   * Optional. SQLServer RDBMS to enrich with child data objects and metadata.
        * 
    * - * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder getSqlServerRdbmsOrBuilder() { @@ -717,10 +758,13 @@ public com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder getSqlServerRdbmsO * * *
    -   * Salesforce organization to enrich with child data objects and metadata.
    +   * Optional. Salesforce organization to enrich with child data objects and
    +   * metadata.
        * 
    * - * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104; + * + * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the salesforceOrg field is set. */ @@ -733,10 +777,13 @@ public boolean hasSalesforceOrg() { * * *
    -   * Salesforce organization to enrich with child data objects and metadata.
    +   * Optional. Salesforce organization to enrich with child data objects and
    +   * metadata.
        * 
    * - * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104; + * + * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The salesforceOrg. */ @@ -752,10 +799,13 @@ public com.google.cloud.datastream.v1.SalesforceOrg getSalesforceOrg() { * * *
    -   * Salesforce organization to enrich with child data objects and metadata.
    +   * Optional. Salesforce organization to enrich with child data objects and
    +   * metadata.
        * 
    * - * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104; + * + * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.SalesforceOrgOrBuilder getSalesforceOrgOrBuilder() { @@ -771,10 +821,12 @@ public com.google.cloud.datastream.v1.SalesforceOrgOrBuilder getSalesforceOrgOrB * * *
    -   * MongoDB cluster to enrich with child data objects and metadata.
    +   * Optional. MongoDB cluster to enrich with child data objects and metadata.
        * 
    * - * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105; + * + * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the mongodbCluster field is set. */ @@ -787,10 +839,12 @@ public boolean hasMongodbCluster() { * * *
    -   * MongoDB cluster to enrich with child data objects and metadata.
    +   * Optional. MongoDB cluster to enrich with child data objects and metadata.
        * 
    * - * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105; + * + * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The mongodbCluster. */ @@ -806,10 +860,12 @@ public com.google.cloud.datastream.v1.MongodbCluster getMongodbCluster() { * * *
    -   * MongoDB cluster to enrich with child data objects and metadata.
    +   * Optional. MongoDB cluster to enrich with child data objects and metadata.
        * 
    * - * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105; + * + * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.MongodbClusterOrBuilder getMongodbClusterOrBuilder() { @@ -819,6 +875,132 @@ public com.google.cloud.datastream.v1.MongodbClusterOrBuilder getMongodbClusterO return com.google.cloud.datastream.v1.MongodbCluster.getDefaultInstance(); } + public static final int SPANNER_DATABASE_FIELD_NUMBER = 106; + + /** + * + * + *
    +   * Optional. Spanner database to enrich with child data objects and
    +   * metadata.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the spannerDatabase field is set. + */ + @java.lang.Override + public boolean hasSpannerDatabase() { + return dataObjectCase_ == 106; + } + + /** + * + * + *
    +   * Optional. Spanner database to enrich with child data objects and
    +   * metadata.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The spannerDatabase. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerDatabase getSpannerDatabase() { + if (dataObjectCase_ == 106) { + return (com.google.cloud.datastream.v1.SpannerDatabase) dataObject_; + } + return com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance(); + } + + /** + * + * + *
    +   * Optional. Spanner database to enrich with child data objects and
    +   * metadata.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder getSpannerDatabaseOrBuilder() { + if (dataObjectCase_ == 106) { + return (com.google.cloud.datastream.v1.SpannerDatabase) dataObject_; + } + return com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance(); + } + + public static final int SOURCE_CATALOG_FIELD_NUMBER = 108; + + /** + * + * + *
    +   * Optional. Source catalog to enrich with child data objects and metadata.
    +   * This is mainly used to represent SaaS sources databases.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceCatalog field is set. + */ + @java.lang.Override + public boolean hasSourceCatalog() { + return dataObjectCase_ == 108; + } + + /** + * + * + *
    +   * Optional. Source catalog to enrich with child data objects and metadata.
    +   * This is mainly used to represent SaaS sources databases.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceCatalog. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalog getSourceCatalog() { + if (dataObjectCase_ == 108) { + return (com.google.cloud.datastream.v1.SourceCatalog) dataObject_; + } + return com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance(); + } + + /** + * + * + *
    +   * Optional. Source catalog to enrich with child data objects and metadata.
    +   * This is mainly used to represent SaaS sources databases.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalogOrBuilder getSourceCatalogOrBuilder() { + if (dataObjectCase_ == 108) { + return (com.google.cloud.datastream.v1.SourceCatalog) dataObject_; + } + return com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -860,6 +1042,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dataObjectCase_ == 105) { output.writeMessage(105, (com.google.cloud.datastream.v1.MongodbCluster) dataObject_); } + if (dataObjectCase_ == 106) { + output.writeMessage(106, (com.google.cloud.datastream.v1.SpannerDatabase) dataObject_); + } + if (dataObjectCase_ == 108) { + output.writeMessage(108, (com.google.cloud.datastream.v1.SourceCatalog) dataObject_); + } if (targetCase_ == 200) { output.writeMessage(200, (com.google.cloud.datastream.v1.ConnectionProfile) target_); } @@ -918,6 +1106,16 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 105, (com.google.cloud.datastream.v1.MongodbCluster) dataObject_); } + if (dataObjectCase_ == 106) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 106, (com.google.cloud.datastream.v1.SpannerDatabase) dataObject_); + } + if (dataObjectCase_ == 108) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 108, (com.google.cloud.datastream.v1.SourceCatalog) dataObject_); + } if (targetCase_ == 200) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -985,6 +1183,12 @@ public boolean equals(final java.lang.Object obj) { case 105: if (!getMongodbCluster().equals(other.getMongodbCluster())) return false; break; + case 106: + if (!getSpannerDatabase().equals(other.getSpannerDatabase())) return false; + break; + case 108: + if (!getSourceCatalog().equals(other.getSourceCatalog())) return false; + break; case 0: default: } @@ -1050,6 +1254,14 @@ public int hashCode() { hash = (37 * hash) + MONGODB_CLUSTER_FIELD_NUMBER; hash = (53 * hash) + getMongodbCluster().hashCode(); break; + case 106: + hash = (37 * hash) + SPANNER_DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getSpannerDatabase().hashCode(); + break; + case 108: + hash = (37 * hash) + SOURCE_CATALOG_FIELD_NUMBER; + hash = (53 * hash) + getSourceCatalog().hashCode(); + break; case 0: default: } @@ -1216,6 +1428,12 @@ public Builder clear() { if (mongodbClusterBuilder_ != null) { mongodbClusterBuilder_.clear(); } + if (spannerDatabaseBuilder_ != null) { + spannerDatabaseBuilder_.clear(); + } + if (sourceCatalogBuilder_ != null) { + sourceCatalogBuilder_.clear(); + } targetCase_ = 0; target_ = null; hierarchyCase_ = 0; @@ -1295,6 +1513,12 @@ private void buildPartialOneofs( if (dataObjectCase_ == 105 && mongodbClusterBuilder_ != null) { result.dataObject_ = mongodbClusterBuilder_.build(); } + if (dataObjectCase_ == 106 && spannerDatabaseBuilder_ != null) { + result.dataObject_ = spannerDatabaseBuilder_.build(); + } + if (dataObjectCase_ == 108 && sourceCatalogBuilder_ != null) { + result.dataObject_ = sourceCatalogBuilder_.build(); + } } @java.lang.Override @@ -1382,6 +1606,16 @@ public Builder mergeFrom( mergeMongodbCluster(other.getMongodbCluster()); break; } + case SPANNER_DATABASE: + { + mergeSpannerDatabase(other.getSpannerDatabase()); + break; + } + case SOURCE_CATALOG: + { + mergeSourceCatalog(other.getSourceCatalog()); + break; + } case DATAOBJECT_NOT_SET: { break; @@ -1473,6 +1707,20 @@ public Builder mergeFrom( dataObjectCase_ = 105; break; } // case 842 + case 850: + { + input.readMessage( + internalGetSpannerDatabaseFieldBuilder().getBuilder(), extensionRegistry); + dataObjectCase_ = 106; + break; + } // case 850 + case 866: + { + input.readMessage( + internalGetSourceCatalogFieldBuilder().getBuilder(), extensionRegistry); + dataObjectCase_ = 108; + break; + } // case 866 case 1602: { input.readMessage( @@ -1684,10 +1932,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
    -     * An ad-hoc connection profile configuration.
    +     * Optional. An ad-hoc connection profile configuration.
          * 
    * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the connectionProfile field is set. */ @@ -1700,10 +1950,12 @@ public boolean hasConnectionProfile() { * * *
    -     * An ad-hoc connection profile configuration.
    +     * Optional. An ad-hoc connection profile configuration.
          * 
    * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The connectionProfile. */ @@ -1726,10 +1978,12 @@ public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile() { * * *
    -     * An ad-hoc connection profile configuration.
    +     * Optional. An ad-hoc connection profile configuration.
          * 
    * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setConnectionProfile(com.google.cloud.datastream.v1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { @@ -1749,10 +2003,12 @@ public Builder setConnectionProfile(com.google.cloud.datastream.v1.ConnectionPro * * *
    -     * An ad-hoc connection profile configuration.
    +     * Optional. An ad-hoc connection profile configuration.
          * 
    * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setConnectionProfile( com.google.cloud.datastream.v1.ConnectionProfile.Builder builderForValue) { @@ -1770,10 +2026,12 @@ public Builder setConnectionProfile( * * *
    -     * An ad-hoc connection profile configuration.
    +     * Optional. An ad-hoc connection profile configuration.
          * 
    * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeConnectionProfile(com.google.cloud.datastream.v1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { @@ -1803,10 +2061,12 @@ public Builder mergeConnectionProfile(com.google.cloud.datastream.v1.ConnectionP * * *
    -     * An ad-hoc connection profile configuration.
    +     * Optional. An ad-hoc connection profile configuration.
          * 
    * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearConnectionProfile() { if (connectionProfileBuilder_ == null) { @@ -1829,10 +2089,12 @@ public Builder clearConnectionProfile() { * * *
    -     * An ad-hoc connection profile configuration.
    +     * Optional. An ad-hoc connection profile configuration.
          * 
    * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionProfileBuilder() { return internalGetConnectionProfileFieldBuilder().getBuilder(); @@ -1842,10 +2104,12 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro * * *
    -     * An ad-hoc connection profile configuration.
    +     * Optional. An ad-hoc connection profile configuration.
          * 
    * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder @@ -1864,10 +2128,12 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro * * *
    -     * An ad-hoc connection profile configuration.
    +     * Optional. An ad-hoc connection profile configuration.
          * 
    * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilder< com.google.cloud.datastream.v1.ConnectionProfile, @@ -1897,10 +2163,10 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro * * *
    -     * A reference to an existing connection profile.
    +     * Optional. A reference to an existing connection profile.
          * 
    * - * string connection_profile_name = 201; + * string connection_profile_name = 201 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the connectionProfileName field is set. */ @@ -1913,10 +2179,10 @@ public boolean hasConnectionProfileName() { * * *
    -     * A reference to an existing connection profile.
    +     * Optional. A reference to an existing connection profile.
          * 
    * - * string connection_profile_name = 201; + * string connection_profile_name = 201 [(.google.api.field_behavior) = OPTIONAL]; * * @return The connectionProfileName. */ @@ -1942,10 +2208,10 @@ public java.lang.String getConnectionProfileName() { * * *
    -     * A reference to an existing connection profile.
    +     * Optional. A reference to an existing connection profile.
          * 
    * - * string connection_profile_name = 201; + * string connection_profile_name = 201 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for connectionProfileName. */ @@ -1971,10 +2237,10 @@ public com.google.protobuf.ByteString getConnectionProfileNameBytes() { * * *
    -     * A reference to an existing connection profile.
    +     * Optional. A reference to an existing connection profile.
          * 
    * - * string connection_profile_name = 201; + * string connection_profile_name = 201 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The connectionProfileName to set. * @return This builder for chaining. @@ -1993,10 +2259,10 @@ public Builder setConnectionProfileName(java.lang.String value) { * * *
    -     * A reference to an existing connection profile.
    +     * Optional. A reference to an existing connection profile.
          * 
    * - * string connection_profile_name = 201; + * string connection_profile_name = 201 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2013,10 +2279,10 @@ public Builder clearConnectionProfileName() { * * *
    -     * A reference to an existing connection profile.
    +     * Optional. A reference to an existing connection profile.
          * 
    * - * string connection_profile_name = 201; + * string connection_profile_name = 201 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for connectionProfileName to set. * @return This builder for chaining. @@ -2036,11 +2302,11 @@ public Builder setConnectionProfileNameBytes(com.google.protobuf.ByteString valu * * *
    -     * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    -     * current level (FALSE).
    +     * Optional. Whether to retrieve the full hierarchy of data objects (TRUE)
    +     * or only the current level (FALSE).
          * 
    * - * bool full_hierarchy = 3; + * bool full_hierarchy = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the fullHierarchy field is set. */ @@ -2052,11 +2318,11 @@ public boolean hasFullHierarchy() { * * *
    -     * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    -     * current level (FALSE).
    +     * Optional. Whether to retrieve the full hierarchy of data objects (TRUE)
    +     * or only the current level (FALSE).
          * 
    * - * bool full_hierarchy = 3; + * bool full_hierarchy = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The fullHierarchy. */ @@ -2071,11 +2337,11 @@ public boolean getFullHierarchy() { * * *
    -     * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    -     * current level (FALSE).
    +     * Optional. Whether to retrieve the full hierarchy of data objects (TRUE)
    +     * or only the current level (FALSE).
          * 
    * - * bool full_hierarchy = 3; + * bool full_hierarchy = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The fullHierarchy to set. * @return This builder for chaining. @@ -2092,11 +2358,11 @@ public Builder setFullHierarchy(boolean value) { * * *
    -     * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    -     * current level (FALSE).
    +     * Optional. Whether to retrieve the full hierarchy of data objects (TRUE)
    +     * or only the current level (FALSE).
          * 
    * - * bool full_hierarchy = 3; + * bool full_hierarchy = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2113,10 +2379,11 @@ public Builder clearFullHierarchy() { * * *
    -     * The number of hierarchy levels below the current level to be retrieved.
    +     * Optional. The number of hierarchy levels below the current level to be
    +     * retrieved.
          * 
    * - * int32 hierarchy_depth = 4; + * int32 hierarchy_depth = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the hierarchyDepth field is set. */ @@ -2128,10 +2395,11 @@ public boolean hasHierarchyDepth() { * * *
    -     * The number of hierarchy levels below the current level to be retrieved.
    +     * Optional. The number of hierarchy levels below the current level to be
    +     * retrieved.
          * 
    * - * int32 hierarchy_depth = 4; + * int32 hierarchy_depth = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The hierarchyDepth. */ @@ -2146,10 +2414,11 @@ public int getHierarchyDepth() { * * *
    -     * The number of hierarchy levels below the current level to be retrieved.
    +     * Optional. The number of hierarchy levels below the current level to be
    +     * retrieved.
          * 
    * - * int32 hierarchy_depth = 4; + * int32 hierarchy_depth = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The hierarchyDepth to set. * @return This builder for chaining. @@ -2166,10 +2435,11 @@ public Builder setHierarchyDepth(int value) { * * *
    -     * The number of hierarchy levels below the current level to be retrieved.
    +     * Optional. The number of hierarchy levels below the current level to be
    +     * retrieved.
          * 
    * - * int32 hierarchy_depth = 4; + * int32 hierarchy_depth = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2192,10 +2462,12 @@ public Builder clearHierarchyDepth() { * * *
    -     * Oracle RDBMS to enrich with child data objects and metadata.
    +     * Optional. Oracle RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the oracleRdbms field is set. */ @@ -2208,10 +2480,12 @@ public boolean hasOracleRdbms() { * * *
    -     * Oracle RDBMS to enrich with child data objects and metadata.
    +     * Optional. Oracle RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The oracleRdbms. */ @@ -2234,10 +2508,12 @@ public com.google.cloud.datastream.v1.OracleRdbms getOracleRdbms() { * * *
    -     * Oracle RDBMS to enrich with child data objects and metadata.
    +     * Optional. Oracle RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value) { if (oracleRdbmsBuilder_ == null) { @@ -2257,10 +2533,12 @@ public Builder setOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value) * * *
    -     * Oracle RDBMS to enrich with child data objects and metadata.
    +     * Optional. Oracle RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOracleRdbms( com.google.cloud.datastream.v1.OracleRdbms.Builder builderForValue) { @@ -2278,10 +2556,12 @@ public Builder setOracleRdbms( * * *
    -     * Oracle RDBMS to enrich with child data objects and metadata.
    +     * Optional. Oracle RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value) { if (oracleRdbmsBuilder_ == null) { @@ -2311,10 +2591,12 @@ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value * * *
    -     * Oracle RDBMS to enrich with child data objects and metadata.
    +     * Optional. Oracle RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearOracleRdbms() { if (oracleRdbmsBuilder_ == null) { @@ -2337,10 +2619,12 @@ public Builder clearOracleRdbms() { * * *
    -     * Oracle RDBMS to enrich with child data objects and metadata.
    +     * Optional. Oracle RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.datastream.v1.OracleRdbms.Builder getOracleRdbmsBuilder() { return internalGetOracleRdbmsFieldBuilder().getBuilder(); @@ -2350,10 +2634,12 @@ public com.google.cloud.datastream.v1.OracleRdbms.Builder getOracleRdbmsBuilder( * * *
    -     * Oracle RDBMS to enrich with child data objects and metadata.
    +     * Optional. Oracle RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder() { @@ -2371,10 +2657,12 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuild * * *
    -     * Oracle RDBMS to enrich with child data objects and metadata.
    +     * Optional. Oracle RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilder< com.google.cloud.datastream.v1.OracleRdbms, @@ -2410,10 +2698,12 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuild * * *
    -     * MySQL RDBMS to enrich with child data objects and metadata.
    +     * Optional. MySQL RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the mysqlRdbms field is set. */ @@ -2426,10 +2716,12 @@ public boolean hasMysqlRdbms() { * * *
    -     * MySQL RDBMS to enrich with child data objects and metadata.
    +     * Optional. MySQL RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The mysqlRdbms. */ @@ -2452,10 +2744,12 @@ public com.google.cloud.datastream.v1.MysqlRdbms getMysqlRdbms() { * * *
    -     * MySQL RDBMS to enrich with child data objects and metadata.
    +     * Optional. MySQL RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) { if (mysqlRdbmsBuilder_ == null) { @@ -2475,10 +2769,12 @@ public Builder setMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) { * * *
    -     * MySQL RDBMS to enrich with child data objects and metadata.
    +     * Optional. MySQL RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMysqlRdbms( com.google.cloud.datastream.v1.MysqlRdbms.Builder builderForValue) { @@ -2496,10 +2792,12 @@ public Builder setMysqlRdbms( * * *
    -     * MySQL RDBMS to enrich with child data objects and metadata.
    +     * Optional. MySQL RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) { if (mysqlRdbmsBuilder_ == null) { @@ -2529,10 +2827,12 @@ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) * * *
    -     * MySQL RDBMS to enrich with child data objects and metadata.
    +     * Optional. MySQL RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMysqlRdbms() { if (mysqlRdbmsBuilder_ == null) { @@ -2555,10 +2855,12 @@ public Builder clearMysqlRdbms() { * * *
    -     * MySQL RDBMS to enrich with child data objects and metadata.
    +     * Optional. MySQL RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.datastream.v1.MysqlRdbms.Builder getMysqlRdbmsBuilder() { return internalGetMysqlRdbmsFieldBuilder().getBuilder(); @@ -2568,10 +2870,12 @@ public com.google.cloud.datastream.v1.MysqlRdbms.Builder getMysqlRdbmsBuilder() * * *
    -     * MySQL RDBMS to enrich with child data objects and metadata.
    +     * Optional. MySQL RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder() { @@ -2589,10 +2893,12 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder * * *
    -     * MySQL RDBMS to enrich with child data objects and metadata.
    +     * Optional. MySQL RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilder< com.google.cloud.datastream.v1.MysqlRdbms, @@ -2628,10 +2934,13 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder * * *
    -     * PostgreSQL RDBMS to enrich with child data objects and metadata.
    +     * Optional. PostgreSQL RDBMS to enrich with child data objects and
    +     * metadata.
          * 
    * - * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the postgresqlRdbms field is set. */ @@ -2644,10 +2953,13 @@ public boolean hasPostgresqlRdbms() { * * *
    -     * PostgreSQL RDBMS to enrich with child data objects and metadata.
    +     * Optional. PostgreSQL RDBMS to enrich with child data objects and
    +     * metadata.
          * 
    * - * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The postgresqlRdbms. */ @@ -2670,10 +2982,13 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms() { * * *
    -     * PostgreSQL RDBMS to enrich with child data objects and metadata.
    +     * Optional. PostgreSQL RDBMS to enrich with child data objects and
    +     * metadata.
          * 
    * - * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdbms value) { if (postgresqlRdbmsBuilder_ == null) { @@ -2693,10 +3008,13 @@ public Builder setPostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdbms * * *
    -     * PostgreSQL RDBMS to enrich with child data objects and metadata.
    +     * Optional. PostgreSQL RDBMS to enrich with child data objects and
    +     * metadata.
          * 
    * - * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPostgresqlRdbms( com.google.cloud.datastream.v1.PostgresqlRdbms.Builder builderForValue) { @@ -2714,10 +3032,13 @@ public Builder setPostgresqlRdbms( * * *
    -     * PostgreSQL RDBMS to enrich with child data objects and metadata.
    +     * Optional. PostgreSQL RDBMS to enrich with child data objects and
    +     * metadata.
          * 
    * - * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergePostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdbms value) { if (postgresqlRdbmsBuilder_ == null) { @@ -2747,10 +3068,13 @@ public Builder mergePostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdb * * *
    -     * PostgreSQL RDBMS to enrich with child data objects and metadata.
    +     * Optional. PostgreSQL RDBMS to enrich with child data objects and
    +     * metadata.
          * 
    * - * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPostgresqlRdbms() { if (postgresqlRdbmsBuilder_ == null) { @@ -2773,10 +3097,13 @@ public Builder clearPostgresqlRdbms() { * * *
    -     * PostgreSQL RDBMS to enrich with child data objects and metadata.
    +     * Optional. PostgreSQL RDBMS to enrich with child data objects and
    +     * metadata.
          * 
    * - * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getPostgresqlRdbmsBuilder() { return internalGetPostgresqlRdbmsFieldBuilder().getBuilder(); @@ -2786,10 +3113,13 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getPostgresqlRdbms * * *
    -     * PostgreSQL RDBMS to enrich with child data objects and metadata.
    +     * Optional. PostgreSQL RDBMS to enrich with child data objects and
    +     * metadata.
          * 
    * - * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbmsOrBuilder() { @@ -2807,10 +3137,13 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbm * * *
    -     * PostgreSQL RDBMS to enrich with child data objects and metadata.
    +     * Optional. PostgreSQL RDBMS to enrich with child data objects and
    +     * metadata.
          * 
    * - * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilder< com.google.cloud.datastream.v1.PostgresqlRdbms, @@ -2846,10 +3179,12 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbm * * *
    -     * SQLServer RDBMS to enrich with child data objects and metadata.
    +     * Optional. SQLServer RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the sqlServerRdbms field is set. */ @@ -2862,10 +3197,12 @@ public boolean hasSqlServerRdbms() { * * *
    -     * SQLServer RDBMS to enrich with child data objects and metadata.
    +     * Optional. SQLServer RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The sqlServerRdbms. */ @@ -2888,10 +3225,12 @@ public com.google.cloud.datastream.v1.SqlServerRdbms getSqlServerRdbms() { * * *
    -     * SQLServer RDBMS to enrich with child data objects and metadata.
    +     * Optional. SQLServer RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSqlServerRdbms(com.google.cloud.datastream.v1.SqlServerRdbms value) { if (sqlServerRdbmsBuilder_ == null) { @@ -2911,10 +3250,12 @@ public Builder setSqlServerRdbms(com.google.cloud.datastream.v1.SqlServerRdbms v * * *
    -     * SQLServer RDBMS to enrich with child data objects and metadata.
    +     * Optional. SQLServer RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSqlServerRdbms( com.google.cloud.datastream.v1.SqlServerRdbms.Builder builderForValue) { @@ -2932,10 +3273,12 @@ public Builder setSqlServerRdbms( * * *
    -     * SQLServer RDBMS to enrich with child data objects and metadata.
    +     * Optional. SQLServer RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSqlServerRdbms(com.google.cloud.datastream.v1.SqlServerRdbms value) { if (sqlServerRdbmsBuilder_ == null) { @@ -2965,10 +3308,12 @@ public Builder mergeSqlServerRdbms(com.google.cloud.datastream.v1.SqlServerRdbms * * *
    -     * SQLServer RDBMS to enrich with child data objects and metadata.
    +     * Optional. SQLServer RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSqlServerRdbms() { if (sqlServerRdbmsBuilder_ == null) { @@ -2991,10 +3336,12 @@ public Builder clearSqlServerRdbms() { * * *
    -     * SQLServer RDBMS to enrich with child data objects and metadata.
    +     * Optional. SQLServer RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.datastream.v1.SqlServerRdbms.Builder getSqlServerRdbmsBuilder() { return internalGetSqlServerRdbmsFieldBuilder().getBuilder(); @@ -3004,10 +3351,12 @@ public com.google.cloud.datastream.v1.SqlServerRdbms.Builder getSqlServerRdbmsBu * * *
    -     * SQLServer RDBMS to enrich with child data objects and metadata.
    +     * Optional. SQLServer RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder getSqlServerRdbmsOrBuilder() { @@ -3025,10 +3374,12 @@ public com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder getSqlServerRdbmsO * * *
    -     * SQLServer RDBMS to enrich with child data objects and metadata.
    +     * Optional. SQLServer RDBMS to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilder< com.google.cloud.datastream.v1.SqlServerRdbms, @@ -3064,10 +3415,13 @@ public com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder getSqlServerRdbmsO * * *
    -     * Salesforce organization to enrich with child data objects and metadata.
    +     * Optional. Salesforce organization to enrich with child data objects and
    +     * metadata.
          * 
    * - * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104; + * + * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the salesforceOrg field is set. */ @@ -3080,10 +3434,13 @@ public boolean hasSalesforceOrg() { * * *
    -     * Salesforce organization to enrich with child data objects and metadata.
    +     * Optional. Salesforce organization to enrich with child data objects and
    +     * metadata.
          * 
    * - * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104; + * + * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The salesforceOrg. */ @@ -3106,10 +3463,13 @@ public com.google.cloud.datastream.v1.SalesforceOrg getSalesforceOrg() { * * *
    -     * Salesforce organization to enrich with child data objects and metadata.
    +     * Optional. Salesforce organization to enrich with child data objects and
    +     * metadata.
          * 
    * - * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104; + * + * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSalesforceOrg(com.google.cloud.datastream.v1.SalesforceOrg value) { if (salesforceOrgBuilder_ == null) { @@ -3129,10 +3489,13 @@ public Builder setSalesforceOrg(com.google.cloud.datastream.v1.SalesforceOrg val * * *
    -     * Salesforce organization to enrich with child data objects and metadata.
    +     * Optional. Salesforce organization to enrich with child data objects and
    +     * metadata.
          * 
    * - * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104; + * + * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSalesforceOrg( com.google.cloud.datastream.v1.SalesforceOrg.Builder builderForValue) { @@ -3150,10 +3513,13 @@ public Builder setSalesforceOrg( * * *
    -     * Salesforce organization to enrich with child data objects and metadata.
    +     * Optional. Salesforce organization to enrich with child data objects and
    +     * metadata.
          * 
    * - * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104; + * + * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSalesforceOrg(com.google.cloud.datastream.v1.SalesforceOrg value) { if (salesforceOrgBuilder_ == null) { @@ -3183,10 +3549,13 @@ public Builder mergeSalesforceOrg(com.google.cloud.datastream.v1.SalesforceOrg v * * *
    -     * Salesforce organization to enrich with child data objects and metadata.
    +     * Optional. Salesforce organization to enrich with child data objects and
    +     * metadata.
          * 
    * - * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104; + * + * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSalesforceOrg() { if (salesforceOrgBuilder_ == null) { @@ -3209,10 +3578,13 @@ public Builder clearSalesforceOrg() { * * *
    -     * Salesforce organization to enrich with child data objects and metadata.
    +     * Optional. Salesforce organization to enrich with child data objects and
    +     * metadata.
          * 
    * - * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104; + * + * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.datastream.v1.SalesforceOrg.Builder getSalesforceOrgBuilder() { return internalGetSalesforceOrgFieldBuilder().getBuilder(); @@ -3222,10 +3594,13 @@ public com.google.cloud.datastream.v1.SalesforceOrg.Builder getSalesforceOrgBuil * * *
    -     * Salesforce organization to enrich with child data objects and metadata.
    +     * Optional. Salesforce organization to enrich with child data objects and
    +     * metadata.
          * 
    * - * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104; + * + * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.SalesforceOrgOrBuilder getSalesforceOrgOrBuilder() { @@ -3243,10 +3618,13 @@ public com.google.cloud.datastream.v1.SalesforceOrgOrBuilder getSalesforceOrgOrB * * *
    -     * Salesforce organization to enrich with child data objects and metadata.
    +     * Optional. Salesforce organization to enrich with child data objects and
    +     * metadata.
          * 
    * - * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104; + * + * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilder< com.google.cloud.datastream.v1.SalesforceOrg, @@ -3282,10 +3660,12 @@ public com.google.cloud.datastream.v1.SalesforceOrgOrBuilder getSalesforceOrgOrB * * *
    -     * MongoDB cluster to enrich with child data objects and metadata.
    +     * Optional. MongoDB cluster to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105; + * + * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the mongodbCluster field is set. */ @@ -3298,10 +3678,12 @@ public boolean hasMongodbCluster() { * * *
    -     * MongoDB cluster to enrich with child data objects and metadata.
    +     * Optional. MongoDB cluster to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105; + * + * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The mongodbCluster. */ @@ -3324,10 +3706,12 @@ public com.google.cloud.datastream.v1.MongodbCluster getMongodbCluster() { * * *
    -     * MongoDB cluster to enrich with child data objects and metadata.
    +     * Optional. MongoDB cluster to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105; + * + * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMongodbCluster(com.google.cloud.datastream.v1.MongodbCluster value) { if (mongodbClusterBuilder_ == null) { @@ -3347,10 +3731,12 @@ public Builder setMongodbCluster(com.google.cloud.datastream.v1.MongodbCluster v * * *
    -     * MongoDB cluster to enrich with child data objects and metadata.
    +     * Optional. MongoDB cluster to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105; + * + * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMongodbCluster( com.google.cloud.datastream.v1.MongodbCluster.Builder builderForValue) { @@ -3368,10 +3754,12 @@ public Builder setMongodbCluster( * * *
    -     * MongoDB cluster to enrich with child data objects and metadata.
    +     * Optional. MongoDB cluster to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105; + * + * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMongodbCluster(com.google.cloud.datastream.v1.MongodbCluster value) { if (mongodbClusterBuilder_ == null) { @@ -3401,10 +3789,12 @@ public Builder mergeMongodbCluster(com.google.cloud.datastream.v1.MongodbCluster * * *
    -     * MongoDB cluster to enrich with child data objects and metadata.
    +     * Optional. MongoDB cluster to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105; + * + * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMongodbCluster() { if (mongodbClusterBuilder_ == null) { @@ -3427,10 +3817,12 @@ public Builder clearMongodbCluster() { * * *
    -     * MongoDB cluster to enrich with child data objects and metadata.
    +     * Optional. MongoDB cluster to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105; + * + * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.datastream.v1.MongodbCluster.Builder getMongodbClusterBuilder() { return internalGetMongodbClusterFieldBuilder().getBuilder(); @@ -3440,10 +3832,12 @@ public com.google.cloud.datastream.v1.MongodbCluster.Builder getMongodbClusterBu * * *
    -     * MongoDB cluster to enrich with child data objects and metadata.
    +     * Optional. MongoDB cluster to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105; + * + * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.MongodbClusterOrBuilder getMongodbClusterOrBuilder() { @@ -3461,10 +3855,12 @@ public com.google.cloud.datastream.v1.MongodbClusterOrBuilder getMongodbClusterO * * *
    -     * MongoDB cluster to enrich with child data objects and metadata.
    +     * Optional. MongoDB cluster to enrich with child data objects and metadata.
          * 
    * - * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105; + * + * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilder< com.google.cloud.datastream.v1.MongodbCluster, @@ -3490,6 +3886,496 @@ public com.google.cloud.datastream.v1.MongodbClusterOrBuilder getMongodbClusterO return mongodbClusterBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SpannerDatabase, + com.google.cloud.datastream.v1.SpannerDatabase.Builder, + com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder> + spannerDatabaseBuilder_; + + /** + * + * + *
    +     * Optional. Spanner database to enrich with child data objects and
    +     * metadata.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the spannerDatabase field is set. + */ + @java.lang.Override + public boolean hasSpannerDatabase() { + return dataObjectCase_ == 106; + } + + /** + * + * + *
    +     * Optional. Spanner database to enrich with child data objects and
    +     * metadata.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The spannerDatabase. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerDatabase getSpannerDatabase() { + if (spannerDatabaseBuilder_ == null) { + if (dataObjectCase_ == 106) { + return (com.google.cloud.datastream.v1.SpannerDatabase) dataObject_; + } + return com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance(); + } else { + if (dataObjectCase_ == 106) { + return spannerDatabaseBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. Spanner database to enrich with child data objects and
    +     * metadata.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSpannerDatabase(com.google.cloud.datastream.v1.SpannerDatabase value) { + if (spannerDatabaseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataObject_ = value; + onChanged(); + } else { + spannerDatabaseBuilder_.setMessage(value); + } + dataObjectCase_ = 106; + return this; + } + + /** + * + * + *
    +     * Optional. Spanner database to enrich with child data objects and
    +     * metadata.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSpannerDatabase( + com.google.cloud.datastream.v1.SpannerDatabase.Builder builderForValue) { + if (spannerDatabaseBuilder_ == null) { + dataObject_ = builderForValue.build(); + onChanged(); + } else { + spannerDatabaseBuilder_.setMessage(builderForValue.build()); + } + dataObjectCase_ = 106; + return this; + } + + /** + * + * + *
    +     * Optional. Spanner database to enrich with child data objects and
    +     * metadata.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSpannerDatabase(com.google.cloud.datastream.v1.SpannerDatabase value) { + if (spannerDatabaseBuilder_ == null) { + if (dataObjectCase_ == 106 + && dataObject_ != com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance()) { + dataObject_ = + com.google.cloud.datastream.v1.SpannerDatabase.newBuilder( + (com.google.cloud.datastream.v1.SpannerDatabase) dataObject_) + .mergeFrom(value) + .buildPartial(); + } else { + dataObject_ = value; + } + onChanged(); + } else { + if (dataObjectCase_ == 106) { + spannerDatabaseBuilder_.mergeFrom(value); + } else { + spannerDatabaseBuilder_.setMessage(value); + } + } + dataObjectCase_ = 106; + return this; + } + + /** + * + * + *
    +     * Optional. Spanner database to enrich with child data objects and
    +     * metadata.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSpannerDatabase() { + if (spannerDatabaseBuilder_ == null) { + if (dataObjectCase_ == 106) { + dataObjectCase_ = 0; + dataObject_ = null; + onChanged(); + } + } else { + if (dataObjectCase_ == 106) { + dataObjectCase_ = 0; + dataObject_ = null; + } + spannerDatabaseBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner database to enrich with child data objects and
    +     * metadata.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SpannerDatabase.Builder getSpannerDatabaseBuilder() { + return internalGetSpannerDatabaseFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Spanner database to enrich with child data objects and
    +     * metadata.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder getSpannerDatabaseOrBuilder() { + if ((dataObjectCase_ == 106) && (spannerDatabaseBuilder_ != null)) { + return spannerDatabaseBuilder_.getMessageOrBuilder(); + } else { + if (dataObjectCase_ == 106) { + return (com.google.cloud.datastream.v1.SpannerDatabase) dataObject_; + } + return com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. Spanner database to enrich with child data objects and
    +     * metadata.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SpannerDatabase, + com.google.cloud.datastream.v1.SpannerDatabase.Builder, + com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder> + internalGetSpannerDatabaseFieldBuilder() { + if (spannerDatabaseBuilder_ == null) { + if (!(dataObjectCase_ == 106)) { + dataObject_ = com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance(); + } + spannerDatabaseBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SpannerDatabase, + com.google.cloud.datastream.v1.SpannerDatabase.Builder, + com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder>( + (com.google.cloud.datastream.v1.SpannerDatabase) dataObject_, + getParentForChildren(), + isClean()); + dataObject_ = null; + } + dataObjectCase_ = 106; + onChanged(); + return spannerDatabaseBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder> + sourceCatalogBuilder_; + + /** + * + * + *
    +     * Optional. Source catalog to enrich with child data objects and metadata.
    +     * This is mainly used to represent SaaS sources databases.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceCatalog field is set. + */ + @java.lang.Override + public boolean hasSourceCatalog() { + return dataObjectCase_ == 108; + } + + /** + * + * + *
    +     * Optional. Source catalog to enrich with child data objects and metadata.
    +     * This is mainly used to represent SaaS sources databases.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceCatalog. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalog getSourceCatalog() { + if (sourceCatalogBuilder_ == null) { + if (dataObjectCase_ == 108) { + return (com.google.cloud.datastream.v1.SourceCatalog) dataObject_; + } + return com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance(); + } else { + if (dataObjectCase_ == 108) { + return sourceCatalogBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. Source catalog to enrich with child data objects and metadata.
    +     * This is mainly used to represent SaaS sources databases.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSourceCatalog(com.google.cloud.datastream.v1.SourceCatalog value) { + if (sourceCatalogBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataObject_ = value; + onChanged(); + } else { + sourceCatalogBuilder_.setMessage(value); + } + dataObjectCase_ = 108; + return this; + } + + /** + * + * + *
    +     * Optional. Source catalog to enrich with child data objects and metadata.
    +     * This is mainly used to represent SaaS sources databases.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSourceCatalog( + com.google.cloud.datastream.v1.SourceCatalog.Builder builderForValue) { + if (sourceCatalogBuilder_ == null) { + dataObject_ = builderForValue.build(); + onChanged(); + } else { + sourceCatalogBuilder_.setMessage(builderForValue.build()); + } + dataObjectCase_ = 108; + return this; + } + + /** + * + * + *
    +     * Optional. Source catalog to enrich with child data objects and metadata.
    +     * This is mainly used to represent SaaS sources databases.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSourceCatalog(com.google.cloud.datastream.v1.SourceCatalog value) { + if (sourceCatalogBuilder_ == null) { + if (dataObjectCase_ == 108 + && dataObject_ != com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance()) { + dataObject_ = + com.google.cloud.datastream.v1.SourceCatalog.newBuilder( + (com.google.cloud.datastream.v1.SourceCatalog) dataObject_) + .mergeFrom(value) + .buildPartial(); + } else { + dataObject_ = value; + } + onChanged(); + } else { + if (dataObjectCase_ == 108) { + sourceCatalogBuilder_.mergeFrom(value); + } else { + sourceCatalogBuilder_.setMessage(value); + } + } + dataObjectCase_ = 108; + return this; + } + + /** + * + * + *
    +     * Optional. Source catalog to enrich with child data objects and metadata.
    +     * This is mainly used to represent SaaS sources databases.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSourceCatalog() { + if (sourceCatalogBuilder_ == null) { + if (dataObjectCase_ == 108) { + dataObjectCase_ = 0; + dataObject_ = null; + onChanged(); + } + } else { + if (dataObjectCase_ == 108) { + dataObjectCase_ = 0; + dataObject_ = null; + } + sourceCatalogBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source catalog to enrich with child data objects and metadata.
    +     * This is mainly used to represent SaaS sources databases.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceCatalog.Builder getSourceCatalogBuilder() { + return internalGetSourceCatalogFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Source catalog to enrich with child data objects and metadata.
    +     * This is mainly used to represent SaaS sources databases.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalogOrBuilder getSourceCatalogOrBuilder() { + if ((dataObjectCase_ == 108) && (sourceCatalogBuilder_ != null)) { + return sourceCatalogBuilder_.getMessageOrBuilder(); + } else { + if (dataObjectCase_ == 108) { + return (com.google.cloud.datastream.v1.SourceCatalog) dataObject_; + } + return com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. Source catalog to enrich with child data objects and metadata.
    +     * This is mainly used to represent SaaS sources databases.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder> + internalGetSourceCatalogFieldBuilder() { + if (sourceCatalogBuilder_ == null) { + if (!(dataObjectCase_ == 108)) { + dataObject_ = com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance(); + } + sourceCatalogBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder>( + (com.google.cloud.datastream.v1.SourceCatalog) dataObject_, + getParentForChildren(), + isClean()); + dataObject_ = null; + } + dataObjectCase_ = 108; + onChanged(); + return sourceCatalogBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.DiscoverConnectionProfileRequest) } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java index 46b9a7b15743..0046fefab8bb 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java @@ -62,10 +62,12 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * An ad-hoc connection profile configuration.
    +   * Optional. An ad-hoc connection profile configuration.
        * 
    * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the connectionProfile field is set. */ @@ -75,10 +77,12 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * An ad-hoc connection profile configuration.
    +   * Optional. An ad-hoc connection profile configuration.
        * 
    * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The connectionProfile. */ @@ -88,10 +92,12 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * An ad-hoc connection profile configuration.
    +   * Optional. An ad-hoc connection profile configuration.
        * 
    * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder(); @@ -99,10 +105,10 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * A reference to an existing connection profile.
    +   * Optional. A reference to an existing connection profile.
        * 
    * - * string connection_profile_name = 201; + * string connection_profile_name = 201 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the connectionProfileName field is set. */ @@ -112,10 +118,10 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * A reference to an existing connection profile.
    +   * Optional. A reference to an existing connection profile.
        * 
    * - * string connection_profile_name = 201; + * string connection_profile_name = 201 [(.google.api.field_behavior) = OPTIONAL]; * * @return The connectionProfileName. */ @@ -125,10 +131,10 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * A reference to an existing connection profile.
    +   * Optional. A reference to an existing connection profile.
        * 
    * - * string connection_profile_name = 201; + * string connection_profile_name = 201 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for connectionProfileName. */ @@ -138,11 +144,11 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    -   * current level (FALSE).
    +   * Optional. Whether to retrieve the full hierarchy of data objects (TRUE)
    +   * or only the current level (FALSE).
        * 
    * - * bool full_hierarchy = 3; + * bool full_hierarchy = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the fullHierarchy field is set. */ @@ -152,11 +158,11 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    -   * current level (FALSE).
    +   * Optional. Whether to retrieve the full hierarchy of data objects (TRUE)
    +   * or only the current level (FALSE).
        * 
    * - * bool full_hierarchy = 3; + * bool full_hierarchy = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The fullHierarchy. */ @@ -166,10 +172,11 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * The number of hierarchy levels below the current level to be retrieved.
    +   * Optional. The number of hierarchy levels below the current level to be
    +   * retrieved.
        * 
    * - * int32 hierarchy_depth = 4; + * int32 hierarchy_depth = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the hierarchyDepth field is set. */ @@ -179,10 +186,11 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * The number of hierarchy levels below the current level to be retrieved.
    +   * Optional. The number of hierarchy levels below the current level to be
    +   * retrieved.
        * 
    * - * int32 hierarchy_depth = 4; + * int32 hierarchy_depth = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The hierarchyDepth. */ @@ -192,10 +200,12 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * Oracle RDBMS to enrich with child data objects and metadata.
    +   * Optional. Oracle RDBMS to enrich with child data objects and metadata.
        * 
    * - * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the oracleRdbms field is set. */ @@ -205,10 +215,12 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * Oracle RDBMS to enrich with child data objects and metadata.
    +   * Optional. Oracle RDBMS to enrich with child data objects and metadata.
        * 
    * - * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The oracleRdbms. */ @@ -218,10 +230,12 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * Oracle RDBMS to enrich with child data objects and metadata.
    +   * Optional. Oracle RDBMS to enrich with child data objects and metadata.
        * 
    * - * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder(); @@ -229,10 +243,12 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * MySQL RDBMS to enrich with child data objects and metadata.
    +   * Optional. MySQL RDBMS to enrich with child data objects and metadata.
        * 
    * - * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the mysqlRdbms field is set. */ @@ -242,10 +258,12 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * MySQL RDBMS to enrich with child data objects and metadata.
    +   * Optional. MySQL RDBMS to enrich with child data objects and metadata.
        * 
    * - * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The mysqlRdbms. */ @@ -255,10 +273,12 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * MySQL RDBMS to enrich with child data objects and metadata.
    +   * Optional. MySQL RDBMS to enrich with child data objects and metadata.
        * 
    * - * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder(); @@ -266,10 +286,13 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * PostgreSQL RDBMS to enrich with child data objects and metadata.
    +   * Optional. PostgreSQL RDBMS to enrich with child data objects and
    +   * metadata.
        * 
    * - * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the postgresqlRdbms field is set. */ @@ -279,10 +302,13 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * PostgreSQL RDBMS to enrich with child data objects and metadata.
    +   * Optional. PostgreSQL RDBMS to enrich with child data objects and
    +   * metadata.
        * 
    * - * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The postgresqlRdbms. */ @@ -292,10 +318,13 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * PostgreSQL RDBMS to enrich with child data objects and metadata.
    +   * Optional. PostgreSQL RDBMS to enrich with child data objects and
    +   * metadata.
        * 
    * - * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbmsOrBuilder(); @@ -303,10 +332,12 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * SQLServer RDBMS to enrich with child data objects and metadata.
    +   * Optional. SQLServer RDBMS to enrich with child data objects and metadata.
        * 
    * - * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the sqlServerRdbms field is set. */ @@ -316,10 +347,12 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * SQLServer RDBMS to enrich with child data objects and metadata.
    +   * Optional. SQLServer RDBMS to enrich with child data objects and metadata.
        * 
    * - * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The sqlServerRdbms. */ @@ -329,10 +362,12 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * SQLServer RDBMS to enrich with child data objects and metadata.
    +   * Optional. SQLServer RDBMS to enrich with child data objects and metadata.
        * 
    * - * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder getSqlServerRdbmsOrBuilder(); @@ -340,10 +375,13 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * Salesforce organization to enrich with child data objects and metadata.
    +   * Optional. Salesforce organization to enrich with child data objects and
    +   * metadata.
        * 
    * - * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104; + * + * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the salesforceOrg field is set. */ @@ -353,10 +391,13 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * Salesforce organization to enrich with child data objects and metadata.
    +   * Optional. Salesforce organization to enrich with child data objects and
    +   * metadata.
        * 
    * - * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104; + * + * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The salesforceOrg. */ @@ -366,10 +407,13 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * Salesforce organization to enrich with child data objects and metadata.
    +   * Optional. Salesforce organization to enrich with child data objects and
    +   * metadata.
        * 
    * - * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104; + * + * .google.cloud.datastream.v1.SalesforceOrg salesforce_org = 104 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.datastream.v1.SalesforceOrgOrBuilder getSalesforceOrgOrBuilder(); @@ -377,10 +421,12 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * MongoDB cluster to enrich with child data objects and metadata.
    +   * Optional. MongoDB cluster to enrich with child data objects and metadata.
        * 
    * - * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105; + * + * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the mongodbCluster field is set. */ @@ -390,10 +436,12 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * MongoDB cluster to enrich with child data objects and metadata.
    +   * Optional. MongoDB cluster to enrich with child data objects and metadata.
        * 
    * - * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105; + * + * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The mongodbCluster. */ @@ -403,13 +451,107 @@ public interface DiscoverConnectionProfileRequestOrBuilder * * *
    -   * MongoDB cluster to enrich with child data objects and metadata.
    +   * Optional. MongoDB cluster to enrich with child data objects and metadata.
        * 
    * - * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105; + * + * .google.cloud.datastream.v1.MongodbCluster mongodb_cluster = 105 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.datastream.v1.MongodbClusterOrBuilder getMongodbClusterOrBuilder(); + /** + * + * + *
    +   * Optional. Spanner database to enrich with child data objects and
    +   * metadata.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the spannerDatabase field is set. + */ + boolean hasSpannerDatabase(); + + /** + * + * + *
    +   * Optional. Spanner database to enrich with child data objects and
    +   * metadata.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The spannerDatabase. + */ + com.google.cloud.datastream.v1.SpannerDatabase getSpannerDatabase(); + + /** + * + * + *
    +   * Optional. Spanner database to enrich with child data objects and
    +   * metadata.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder getSpannerDatabaseOrBuilder(); + + /** + * + * + *
    +   * Optional. Source catalog to enrich with child data objects and metadata.
    +   * This is mainly used to represent SaaS sources databases.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceCatalog field is set. + */ + boolean hasSourceCatalog(); + + /** + * + * + *
    +   * Optional. Source catalog to enrich with child data objects and metadata.
    +   * This is mainly used to represent SaaS sources databases.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceCatalog. + */ + com.google.cloud.datastream.v1.SourceCatalog getSourceCatalog(); + + /** + * + * + *
    +   * Optional. Source catalog to enrich with child data objects and metadata.
    +   * This is mainly used to represent SaaS sources databases.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SourceCatalogOrBuilder getSourceCatalogOrBuilder(); + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.TargetCase getTargetCase(); com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.HierarchyCase getHierarchyCase(); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java index f422c859ee7c..4c1d2a1cbcd6 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java @@ -84,6 +84,8 @@ public enum DataObjectCase SQL_SERVER_RDBMS(103), SALESFORCE_ORG(104), MONGODB_CLUSTER(105), + SPANNER_DATABASE(106), + SOURCE_CATALOG(108), DATAOBJECT_NOT_SET(0); private final int value; @@ -115,6 +117,10 @@ public static DataObjectCase forNumber(int value) { return SALESFORCE_ORG; case 105: return MONGODB_CLUSTER; + case 106: + return SPANNER_DATABASE; + case 108: + return SOURCE_CATALOG; case 0: return DATAOBJECT_NOT_SET; default: @@ -455,6 +461,117 @@ public com.google.cloud.datastream.v1.MongodbClusterOrBuilder getMongodbClusterO return com.google.cloud.datastream.v1.MongodbCluster.getDefaultInstance(); } + public static final int SPANNER_DATABASE_FIELD_NUMBER = 106; + + /** + * + * + *
    +   * Enriched Spanner database.
    +   * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106; + * + * @return Whether the spannerDatabase field is set. + */ + @java.lang.Override + public boolean hasSpannerDatabase() { + return dataObjectCase_ == 106; + } + + /** + * + * + *
    +   * Enriched Spanner database.
    +   * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106; + * + * @return The spannerDatabase. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerDatabase getSpannerDatabase() { + if (dataObjectCase_ == 106) { + return (com.google.cloud.datastream.v1.SpannerDatabase) dataObject_; + } + return com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance(); + } + + /** + * + * + *
    +   * Enriched Spanner database.
    +   * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder getSpannerDatabaseOrBuilder() { + if (dataObjectCase_ == 106) { + return (com.google.cloud.datastream.v1.SpannerDatabase) dataObject_; + } + return com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance(); + } + + public static final int SOURCE_CATALOG_FIELD_NUMBER = 108; + + /** + * + * + *
    +   * Enriched source catalog. This is mainly used to represent SaaS sources
    +   * databases.
    +   * 
    + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108; + * + * @return Whether the sourceCatalog field is set. + */ + @java.lang.Override + public boolean hasSourceCatalog() { + return dataObjectCase_ == 108; + } + + /** + * + * + *
    +   * Enriched source catalog. This is mainly used to represent SaaS sources
    +   * databases.
    +   * 
    + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108; + * + * @return The sourceCatalog. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalog getSourceCatalog() { + if (dataObjectCase_ == 108) { + return (com.google.cloud.datastream.v1.SourceCatalog) dataObject_; + } + return com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance(); + } + + /** + * + * + *
    +   * Enriched source catalog. This is mainly used to represent SaaS sources
    +   * databases.
    +   * 
    + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalogOrBuilder getSourceCatalogOrBuilder() { + if (dataObjectCase_ == 108) { + return (com.google.cloud.datastream.v1.SourceCatalog) dataObject_; + } + return com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -487,6 +604,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dataObjectCase_ == 105) { output.writeMessage(105, (com.google.cloud.datastream.v1.MongodbCluster) dataObject_); } + if (dataObjectCase_ == 106) { + output.writeMessage(106, (com.google.cloud.datastream.v1.SpannerDatabase) dataObject_); + } + if (dataObjectCase_ == 108) { + output.writeMessage(108, (com.google.cloud.datastream.v1.SourceCatalog) dataObject_); + } getUnknownFields().writeTo(output); } @@ -526,6 +649,16 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 105, (com.google.cloud.datastream.v1.MongodbCluster) dataObject_); } + if (dataObjectCase_ == 106) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 106, (com.google.cloud.datastream.v1.SpannerDatabase) dataObject_); + } + if (dataObjectCase_ == 108) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 108, (com.google.cloud.datastream.v1.SourceCatalog) dataObject_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -562,6 +695,12 @@ public boolean equals(final java.lang.Object obj) { case 105: if (!getMongodbCluster().equals(other.getMongodbCluster())) return false; break; + case 106: + if (!getSpannerDatabase().equals(other.getSpannerDatabase())) return false; + break; + case 108: + if (!getSourceCatalog().equals(other.getSourceCatalog())) return false; + break; case 0: default: } @@ -601,6 +740,14 @@ public int hashCode() { hash = (37 * hash) + MONGODB_CLUSTER_FIELD_NUMBER; hash = (53 * hash) + getMongodbCluster().hashCode(); break; + case 106: + hash = (37 * hash) + SPANNER_DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getSpannerDatabase().hashCode(); + break; + case 108: + hash = (37 * hash) + SOURCE_CATALOG_FIELD_NUMBER; + hash = (53 * hash) + getSourceCatalog().hashCode(); + break; case 0: default: } @@ -763,6 +910,12 @@ public Builder clear() { if (mongodbClusterBuilder_ != null) { mongodbClusterBuilder_.clear(); } + if (spannerDatabaseBuilder_ != null) { + spannerDatabaseBuilder_.clear(); + } + if (sourceCatalogBuilder_ != null) { + sourceCatalogBuilder_.clear(); + } dataObjectCase_ = 0; dataObject_ = null; return this; @@ -828,6 +981,12 @@ private void buildPartialOneofs( if (dataObjectCase_ == 105 && mongodbClusterBuilder_ != null) { result.dataObject_ = mongodbClusterBuilder_.build(); } + if (dataObjectCase_ == 106 && spannerDatabaseBuilder_ != null) { + result.dataObject_ = spannerDatabaseBuilder_.build(); + } + if (dataObjectCase_ == 108 && sourceCatalogBuilder_ != null) { + result.dataObject_ = sourceCatalogBuilder_.build(); + } } @java.lang.Override @@ -876,6 +1035,16 @@ public Builder mergeFrom( mergeMongodbCluster(other.getMongodbCluster()); break; } + case SPANNER_DATABASE: + { + mergeSpannerDatabase(other.getSpannerDatabase()); + break; + } + case SOURCE_CATALOG: + { + mergeSourceCatalog(other.getSourceCatalog()); + break; + } case DATAOBJECT_NOT_SET: { break; @@ -949,6 +1118,20 @@ public Builder mergeFrom( dataObjectCase_ = 105; break; } // case 842 + case 850: + { + input.readMessage( + internalGetSpannerDatabaseFieldBuilder().getBuilder(), extensionRegistry); + dataObjectCase_ = 106; + break; + } // case 850 + case 866: + { + input.readMessage( + internalGetSourceCatalogFieldBuilder().getBuilder(), extensionRegistry); + dataObjectCase_ = 108; + break; + } // case 866 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2290,6 +2473,451 @@ public com.google.cloud.datastream.v1.MongodbClusterOrBuilder getMongodbClusterO return mongodbClusterBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SpannerDatabase, + com.google.cloud.datastream.v1.SpannerDatabase.Builder, + com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder> + spannerDatabaseBuilder_; + + /** + * + * + *
    +     * Enriched Spanner database.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106; + * + * @return Whether the spannerDatabase field is set. + */ + @java.lang.Override + public boolean hasSpannerDatabase() { + return dataObjectCase_ == 106; + } + + /** + * + * + *
    +     * Enriched Spanner database.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106; + * + * @return The spannerDatabase. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerDatabase getSpannerDatabase() { + if (spannerDatabaseBuilder_ == null) { + if (dataObjectCase_ == 106) { + return (com.google.cloud.datastream.v1.SpannerDatabase) dataObject_; + } + return com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance(); + } else { + if (dataObjectCase_ == 106) { + return spannerDatabaseBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Enriched Spanner database.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106; + */ + public Builder setSpannerDatabase(com.google.cloud.datastream.v1.SpannerDatabase value) { + if (spannerDatabaseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataObject_ = value; + onChanged(); + } else { + spannerDatabaseBuilder_.setMessage(value); + } + dataObjectCase_ = 106; + return this; + } + + /** + * + * + *
    +     * Enriched Spanner database.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106; + */ + public Builder setSpannerDatabase( + com.google.cloud.datastream.v1.SpannerDatabase.Builder builderForValue) { + if (spannerDatabaseBuilder_ == null) { + dataObject_ = builderForValue.build(); + onChanged(); + } else { + spannerDatabaseBuilder_.setMessage(builderForValue.build()); + } + dataObjectCase_ = 106; + return this; + } + + /** + * + * + *
    +     * Enriched Spanner database.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106; + */ + public Builder mergeSpannerDatabase(com.google.cloud.datastream.v1.SpannerDatabase value) { + if (spannerDatabaseBuilder_ == null) { + if (dataObjectCase_ == 106 + && dataObject_ != com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance()) { + dataObject_ = + com.google.cloud.datastream.v1.SpannerDatabase.newBuilder( + (com.google.cloud.datastream.v1.SpannerDatabase) dataObject_) + .mergeFrom(value) + .buildPartial(); + } else { + dataObject_ = value; + } + onChanged(); + } else { + if (dataObjectCase_ == 106) { + spannerDatabaseBuilder_.mergeFrom(value); + } else { + spannerDatabaseBuilder_.setMessage(value); + } + } + dataObjectCase_ = 106; + return this; + } + + /** + * + * + *
    +     * Enriched Spanner database.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106; + */ + public Builder clearSpannerDatabase() { + if (spannerDatabaseBuilder_ == null) { + if (dataObjectCase_ == 106) { + dataObjectCase_ = 0; + dataObject_ = null; + onChanged(); + } + } else { + if (dataObjectCase_ == 106) { + dataObjectCase_ = 0; + dataObject_ = null; + } + spannerDatabaseBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Enriched Spanner database.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106; + */ + public com.google.cloud.datastream.v1.SpannerDatabase.Builder getSpannerDatabaseBuilder() { + return internalGetSpannerDatabaseFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Enriched Spanner database.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder getSpannerDatabaseOrBuilder() { + if ((dataObjectCase_ == 106) && (spannerDatabaseBuilder_ != null)) { + return spannerDatabaseBuilder_.getMessageOrBuilder(); + } else { + if (dataObjectCase_ == 106) { + return (com.google.cloud.datastream.v1.SpannerDatabase) dataObject_; + } + return com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Enriched Spanner database.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SpannerDatabase, + com.google.cloud.datastream.v1.SpannerDatabase.Builder, + com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder> + internalGetSpannerDatabaseFieldBuilder() { + if (spannerDatabaseBuilder_ == null) { + if (!(dataObjectCase_ == 106)) { + dataObject_ = com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance(); + } + spannerDatabaseBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SpannerDatabase, + com.google.cloud.datastream.v1.SpannerDatabase.Builder, + com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder>( + (com.google.cloud.datastream.v1.SpannerDatabase) dataObject_, + getParentForChildren(), + isClean()); + dataObject_ = null; + } + dataObjectCase_ = 106; + onChanged(); + return spannerDatabaseBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder> + sourceCatalogBuilder_; + + /** + * + * + *
    +     * Enriched source catalog. This is mainly used to represent SaaS sources
    +     * databases.
    +     * 
    + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108; + * + * @return Whether the sourceCatalog field is set. + */ + @java.lang.Override + public boolean hasSourceCatalog() { + return dataObjectCase_ == 108; + } + + /** + * + * + *
    +     * Enriched source catalog. This is mainly used to represent SaaS sources
    +     * databases.
    +     * 
    + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108; + * + * @return The sourceCatalog. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalog getSourceCatalog() { + if (sourceCatalogBuilder_ == null) { + if (dataObjectCase_ == 108) { + return (com.google.cloud.datastream.v1.SourceCatalog) dataObject_; + } + return com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance(); + } else { + if (dataObjectCase_ == 108) { + return sourceCatalogBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Enriched source catalog. This is mainly used to represent SaaS sources
    +     * databases.
    +     * 
    + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108; + */ + public Builder setSourceCatalog(com.google.cloud.datastream.v1.SourceCatalog value) { + if (sourceCatalogBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataObject_ = value; + onChanged(); + } else { + sourceCatalogBuilder_.setMessage(value); + } + dataObjectCase_ = 108; + return this; + } + + /** + * + * + *
    +     * Enriched source catalog. This is mainly used to represent SaaS sources
    +     * databases.
    +     * 
    + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108; + */ + public Builder setSourceCatalog( + com.google.cloud.datastream.v1.SourceCatalog.Builder builderForValue) { + if (sourceCatalogBuilder_ == null) { + dataObject_ = builderForValue.build(); + onChanged(); + } else { + sourceCatalogBuilder_.setMessage(builderForValue.build()); + } + dataObjectCase_ = 108; + return this; + } + + /** + * + * + *
    +     * Enriched source catalog. This is mainly used to represent SaaS sources
    +     * databases.
    +     * 
    + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108; + */ + public Builder mergeSourceCatalog(com.google.cloud.datastream.v1.SourceCatalog value) { + if (sourceCatalogBuilder_ == null) { + if (dataObjectCase_ == 108 + && dataObject_ != com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance()) { + dataObject_ = + com.google.cloud.datastream.v1.SourceCatalog.newBuilder( + (com.google.cloud.datastream.v1.SourceCatalog) dataObject_) + .mergeFrom(value) + .buildPartial(); + } else { + dataObject_ = value; + } + onChanged(); + } else { + if (dataObjectCase_ == 108) { + sourceCatalogBuilder_.mergeFrom(value); + } else { + sourceCatalogBuilder_.setMessage(value); + } + } + dataObjectCase_ = 108; + return this; + } + + /** + * + * + *
    +     * Enriched source catalog. This is mainly used to represent SaaS sources
    +     * databases.
    +     * 
    + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108; + */ + public Builder clearSourceCatalog() { + if (sourceCatalogBuilder_ == null) { + if (dataObjectCase_ == 108) { + dataObjectCase_ = 0; + dataObject_ = null; + onChanged(); + } + } else { + if (dataObjectCase_ == 108) { + dataObjectCase_ = 0; + dataObject_ = null; + } + sourceCatalogBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Enriched source catalog. This is mainly used to represent SaaS sources
    +     * databases.
    +     * 
    + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108; + */ + public com.google.cloud.datastream.v1.SourceCatalog.Builder getSourceCatalogBuilder() { + return internalGetSourceCatalogFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Enriched source catalog. This is mainly used to represent SaaS sources
    +     * databases.
    +     * 
    + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalogOrBuilder getSourceCatalogOrBuilder() { + if ((dataObjectCase_ == 108) && (sourceCatalogBuilder_ != null)) { + return sourceCatalogBuilder_.getMessageOrBuilder(); + } else { + if (dataObjectCase_ == 108) { + return (com.google.cloud.datastream.v1.SourceCatalog) dataObject_; + } + return com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Enriched source catalog. This is mainly used to represent SaaS sources
    +     * databases.
    +     * 
    + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder> + internalGetSourceCatalogFieldBuilder() { + if (sourceCatalogBuilder_ == null) { + if (!(dataObjectCase_ == 108)) { + dataObject_ = com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance(); + } + sourceCatalogBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder>( + (com.google.cloud.datastream.v1.SourceCatalog) dataObject_, + getParentForChildren(), + isClean()); + dataObject_ = null; + } + dataObjectCase_ = 108; + onChanged(); + return sourceCatalogBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.DiscoverConnectionProfileResponse) } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java index a97a62a46681..d75103ba7a8e 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java @@ -248,6 +248,83 @@ public interface DiscoverConnectionProfileResponseOrBuilder */ com.google.cloud.datastream.v1.MongodbClusterOrBuilder getMongodbClusterOrBuilder(); + /** + * + * + *
    +   * Enriched Spanner database.
    +   * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106; + * + * @return Whether the spannerDatabase field is set. + */ + boolean hasSpannerDatabase(); + + /** + * + * + *
    +   * Enriched Spanner database.
    +   * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106; + * + * @return The spannerDatabase. + */ + com.google.cloud.datastream.v1.SpannerDatabase getSpannerDatabase(); + + /** + * + * + *
    +   * Enriched Spanner database.
    +   * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_database = 106; + */ + com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder getSpannerDatabaseOrBuilder(); + + /** + * + * + *
    +   * Enriched source catalog. This is mainly used to represent SaaS sources
    +   * databases.
    +   * 
    + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108; + * + * @return Whether the sourceCatalog field is set. + */ + boolean hasSourceCatalog(); + + /** + * + * + *
    +   * Enriched source catalog. This is mainly used to represent SaaS sources
    +   * databases.
    +   * 
    + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108; + * + * @return The sourceCatalog. + */ + com.google.cloud.datastream.v1.SourceCatalog getSourceCatalog(); + + /** + * + * + *
    +   * Enriched source catalog. This is mainly used to represent SaaS sources
    +   * databases.
    +   * 
    + * + * .google.cloud.datastream.v1.SourceCatalog source_catalog = 108; + */ + com.google.cloud.datastream.v1.SourceCatalogOrBuilder getSourceCatalogOrBuilder(); + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.DataObjectCase getDataObjectCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/EventFilter.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/EventFilter.java new file mode 100644 index 000000000000..3c7ca981d82a --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/EventFilter.java @@ -0,0 +1,746 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * Represents a filter for included data on a stream object.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.EventFilter} + */ +@com.google.protobuf.Generated +public final class EventFilter extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.EventFilter) + EventFilterOrBuilder { + 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= */ "", + "EventFilter"); + } + + // Use EventFilter.newBuilder() to construct. + private EventFilter(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EventFilter() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_EventFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_EventFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.EventFilter.class, + com.google.cloud.datastream.v1.EventFilter.Builder.class); + } + + private int filterCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object filter_; + + public enum FilterCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SQL_WHERE_CLAUSE(1), + FILTER_NOT_SET(0); + private final int value; + + private FilterCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FilterCase valueOf(int value) { + return forNumber(value); + } + + public static FilterCase forNumber(int value) { + switch (value) { + case 1: + return SQL_WHERE_CLAUSE; + case 0: + return FILTER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public FilterCase getFilterCase() { + return FilterCase.forNumber(filterCase_); + } + + public static final int SQL_WHERE_CLAUSE_FIELD_NUMBER = 1; + + /** + * + * + *
    +   * An SQL-query Where clause selecting which data should be included, not
    +   * including the "WHERE" keyword. e.g., `t.key1 = 'value1' AND t.key2 =
    +   * 'value2'`
    +   * 
    + * + * string sql_where_clause = 1; + * + * @return Whether the sqlWhereClause field is set. + */ + public boolean hasSqlWhereClause() { + return filterCase_ == 1; + } + + /** + * + * + *
    +   * An SQL-query Where clause selecting which data should be included, not
    +   * including the "WHERE" keyword. e.g., `t.key1 = 'value1' AND t.key2 =
    +   * 'value2'`
    +   * 
    + * + * string sql_where_clause = 1; + * + * @return The sqlWhereClause. + */ + public java.lang.String getSqlWhereClause() { + java.lang.Object ref = ""; + if (filterCase_ == 1) { + ref = filter_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (filterCase_ == 1) { + filter_ = s; + } + return s; + } + } + + /** + * + * + *
    +   * An SQL-query Where clause selecting which data should be included, not
    +   * including the "WHERE" keyword. e.g., `t.key1 = 'value1' AND t.key2 =
    +   * 'value2'`
    +   * 
    + * + * string sql_where_clause = 1; + * + * @return The bytes for sqlWhereClause. + */ + public com.google.protobuf.ByteString getSqlWhereClauseBytes() { + java.lang.Object ref = ""; + if (filterCase_ == 1) { + ref = filter_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (filterCase_ == 1) { + filter_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (filterCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (filterCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, filter_); + } + 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.datastream.v1.EventFilter)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.EventFilter other = + (com.google.cloud.datastream.v1.EventFilter) obj; + + if (!getFilterCase().equals(other.getFilterCase())) return false; + switch (filterCase_) { + case 1: + if (!getSqlWhereClause().equals(other.getSqlWhereClause())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (filterCase_) { + case 1: + hash = (37 * hash) + SQL_WHERE_CLAUSE_FIELD_NUMBER; + hash = (53 * hash) + getSqlWhereClause().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.EventFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.EventFilter 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.datastream.v1.EventFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.EventFilter 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.datastream.v1.EventFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.EventFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.EventFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.EventFilter 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.datastream.v1.EventFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.EventFilter 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.datastream.v1.EventFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.EventFilter 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.datastream.v1.EventFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Represents a filter for included data on a stream object.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.EventFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.EventFilter) + com.google.cloud.datastream.v1.EventFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_EventFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_EventFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.EventFilter.class, + com.google.cloud.datastream.v1.EventFilter.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.EventFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filterCase_ = 0; + filter_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_EventFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.EventFilter getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.EventFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.EventFilter build() { + com.google.cloud.datastream.v1.EventFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.EventFilter buildPartial() { + com.google.cloud.datastream.v1.EventFilter result = + new com.google.cloud.datastream.v1.EventFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.EventFilter result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.datastream.v1.EventFilter result) { + result.filterCase_ = filterCase_; + result.filter_ = this.filter_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.EventFilter) { + return mergeFrom((com.google.cloud.datastream.v1.EventFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.EventFilter other) { + if (other == com.google.cloud.datastream.v1.EventFilter.getDefaultInstance()) return this; + switch (other.getFilterCase()) { + case SQL_WHERE_CLAUSE: + { + filterCase_ = 1; + filter_ = other.filter_; + onChanged(); + break; + } + case FILTER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + filterCase_ = 1; + filter_ = s; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int filterCase_ = 0; + private java.lang.Object filter_; + + public FilterCase getFilterCase() { + return FilterCase.forNumber(filterCase_); + } + + public Builder clearFilter() { + filterCase_ = 0; + filter_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
    +     * An SQL-query Where clause selecting which data should be included, not
    +     * including the "WHERE" keyword. e.g., `t.key1 = 'value1' AND t.key2 =
    +     * 'value2'`
    +     * 
    + * + * string sql_where_clause = 1; + * + * @return Whether the sqlWhereClause field is set. + */ + @java.lang.Override + public boolean hasSqlWhereClause() { + return filterCase_ == 1; + } + + /** + * + * + *
    +     * An SQL-query Where clause selecting which data should be included, not
    +     * including the "WHERE" keyword. e.g., `t.key1 = 'value1' AND t.key2 =
    +     * 'value2'`
    +     * 
    + * + * string sql_where_clause = 1; + * + * @return The sqlWhereClause. + */ + @java.lang.Override + public java.lang.String getSqlWhereClause() { + java.lang.Object ref = ""; + if (filterCase_ == 1) { + ref = filter_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (filterCase_ == 1) { + filter_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * An SQL-query Where clause selecting which data should be included, not
    +     * including the "WHERE" keyword. e.g., `t.key1 = 'value1' AND t.key2 =
    +     * 'value2'`
    +     * 
    + * + * string sql_where_clause = 1; + * + * @return The bytes for sqlWhereClause. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSqlWhereClauseBytes() { + java.lang.Object ref = ""; + if (filterCase_ == 1) { + ref = filter_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (filterCase_ == 1) { + filter_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * An SQL-query Where clause selecting which data should be included, not
    +     * including the "WHERE" keyword. e.g., `t.key1 = 'value1' AND t.key2 =
    +     * 'value2'`
    +     * 
    + * + * string sql_where_clause = 1; + * + * @param value The sqlWhereClause to set. + * @return This builder for chaining. + */ + public Builder setSqlWhereClause(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filterCase_ = 1; + filter_ = value; + onChanged(); + return this; + } + + /** + * + * + *
    +     * An SQL-query Where clause selecting which data should be included, not
    +     * including the "WHERE" keyword. e.g., `t.key1 = 'value1' AND t.key2 =
    +     * 'value2'`
    +     * 
    + * + * string sql_where_clause = 1; + * + * @return This builder for chaining. + */ + public Builder clearSqlWhereClause() { + if (filterCase_ == 1) { + filterCase_ = 0; + filter_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * An SQL-query Where clause selecting which data should be included, not
    +     * including the "WHERE" keyword. e.g., `t.key1 = 'value1' AND t.key2 =
    +     * 'value2'`
    +     * 
    + * + * string sql_where_clause = 1; + * + * @param value The bytes for sqlWhereClause to set. + * @return This builder for chaining. + */ + public Builder setSqlWhereClauseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filterCase_ = 1; + filter_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.EventFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.EventFilter) + private static final com.google.cloud.datastream.v1.EventFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.EventFilter(); + } + + public static com.google.cloud.datastream.v1.EventFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventFilter 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.datastream.v1.EventFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/EventFilterOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/EventFilterOrBuilder.java new file mode 100644 index 000000000000..d862ed76ac4e --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/EventFilterOrBuilder.java @@ -0,0 +1,75 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface EventFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.EventFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * An SQL-query Where clause selecting which data should be included, not
    +   * including the "WHERE" keyword. e.g., `t.key1 = 'value1' AND t.key2 =
    +   * 'value2'`
    +   * 
    + * + * string sql_where_clause = 1; + * + * @return Whether the sqlWhereClause field is set. + */ + boolean hasSqlWhereClause(); + + /** + * + * + *
    +   * An SQL-query Where clause selecting which data should be included, not
    +   * including the "WHERE" keyword. e.g., `t.key1 = 'value1' AND t.key2 =
    +   * 'value2'`
    +   * 
    + * + * string sql_where_clause = 1; + * + * @return The sqlWhereClause. + */ + java.lang.String getSqlWhereClause(); + + /** + * + * + *
    +   * An SQL-query Where clause selecting which data should be included, not
    +   * including the "WHERE" keyword. e.g., `t.key1 = 'value1' AND t.key2 =
    +   * 'value2'`
    +   * 
    + * + * string sql_where_clause = 1; + * + * @return The bytes for sqlWhereClause. + */ + com.google.protobuf.ByteString getSqlWhereClauseBytes(); + + com.google.cloud.datastream.v1.EventFilter.FilterCase getFilterCase(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java index 282d0fc4a81c..758b2329e2a6 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java @@ -137,10 +137,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
    -   * Maximum number of Ips to return, will likely not be specified.
    +   * Optional. Maximum number of Ips to return, will likely not be specified.
        * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -158,11 +158,11 @@ public int getPageSize() { * * *
    -   * A page token, received from a previous `ListStaticIps` call.
    +   * Optional. A page token, received from a previous `ListStaticIps` call.
        * will likely not be specified.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -183,11 +183,11 @@ public java.lang.String getPageToken() { * * *
    -   * A page token, received from a previous `ListStaticIps` call.
    +   * Optional. A page token, received from a previous `ListStaticIps` call.
        * will likely not be specified.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -692,10 +692,10 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
    -     * Maximum number of Ips to return, will likely not be specified.
    +     * Optional. Maximum number of Ips to return, will likely not be specified.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -708,10 +708,10 @@ public int getPageSize() { * * *
    -     * Maximum number of Ips to return, will likely not be specified.
    +     * Optional. Maximum number of Ips to return, will likely not be specified.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -728,10 +728,10 @@ public Builder setPageSize(int value) { * * *
    -     * Maximum number of Ips to return, will likely not be specified.
    +     * Optional. Maximum number of Ips to return, will likely not be specified.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -748,11 +748,11 @@ public Builder clearPageSize() { * * *
    -     * A page token, received from a previous `ListStaticIps` call.
    +     * Optional. A page token, received from a previous `ListStaticIps` call.
          * will likely not be specified.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -772,11 +772,11 @@ public java.lang.String getPageToken() { * * *
    -     * A page token, received from a previous `ListStaticIps` call.
    +     * Optional. A page token, received from a previous `ListStaticIps` call.
          * will likely not be specified.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -796,11 +796,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
    -     * A page token, received from a previous `ListStaticIps` call.
    +     * Optional. A page token, received from a previous `ListStaticIps` call.
          * will likely not be specified.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -819,11 +819,11 @@ public Builder setPageToken(java.lang.String value) { * * *
    -     * A page token, received from a previous `ListStaticIps` call.
    +     * Optional. A page token, received from a previous `ListStaticIps` call.
          * will likely not be specified.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -838,11 +838,11 @@ public Builder clearPageToken() { * * *
    -     * A page token, received from a previous `ListStaticIps` call.
    +     * Optional. A page token, received from a previous `ListStaticIps` call.
          * will likely not be specified.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java index 49d4f5f6553c..41d4f40d8f6e 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java @@ -62,10 +62,10 @@ public interface FetchStaticIpsRequestOrBuilder * * *
    -   * Maximum number of Ips to return, will likely not be specified.
    +   * Optional. Maximum number of Ips to return, will likely not be specified.
        * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -75,11 +75,11 @@ public interface FetchStaticIpsRequestOrBuilder * * *
    -   * A page token, received from a previous `ListStaticIps` call.
    +   * Optional. A page token, received from a previous `ListStaticIps` call.
        * will likely not be specified.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -89,11 +89,11 @@ public interface FetchStaticIpsRequestOrBuilder * * *
    -   * A page token, received from a previous `ListStaticIps` call.
    +   * Optional. A page token, received from a previous `ListStaticIps` call.
        * will likely not be specified.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java index 3b600a8abf79..c3feefb8a7dc 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java @@ -24,7 +24,7 @@ * * *
    - * Cloud Storage bucket profile.
    + * Profile for connecting to a Cloud Storage destination.
      * 
    * * Protobuf type {@code google.cloud.datastream.v1.GcsProfile} @@ -133,10 +133,10 @@ public com.google.protobuf.ByteString getBucketBytes() { * * *
    -   * The root path inside the Cloud Storage bucket.
    +   * Optional. The root path inside the Cloud Storage bucket.
        * 
    * - * string root_path = 2; + * string root_path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The rootPath. */ @@ -157,10 +157,10 @@ public java.lang.String getRootPath() { * * *
    -   * The root path inside the Cloud Storage bucket.
    +   * Optional. The root path inside the Cloud Storage bucket.
        * 
    * - * string root_path = 2; + * string root_path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for rootPath. */ @@ -350,7 +350,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
    -   * Cloud Storage bucket profile.
    +   * Profile for connecting to a Cloud Storage destination.
        * 
    * * Protobuf type {@code google.cloud.datastream.v1.GcsProfile} @@ -627,10 +627,10 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { * * *
    -     * The root path inside the Cloud Storage bucket.
    +     * Optional. The root path inside the Cloud Storage bucket.
          * 
    * - * string root_path = 2; + * string root_path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The rootPath. */ @@ -650,10 +650,10 @@ public java.lang.String getRootPath() { * * *
    -     * The root path inside the Cloud Storage bucket.
    +     * Optional. The root path inside the Cloud Storage bucket.
          * 
    * - * string root_path = 2; + * string root_path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for rootPath. */ @@ -673,10 +673,10 @@ public com.google.protobuf.ByteString getRootPathBytes() { * * *
    -     * The root path inside the Cloud Storage bucket.
    +     * Optional. The root path inside the Cloud Storage bucket.
          * 
    * - * string root_path = 2; + * string root_path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The rootPath to set. * @return This builder for chaining. @@ -695,10 +695,10 @@ public Builder setRootPath(java.lang.String value) { * * *
    -     * The root path inside the Cloud Storage bucket.
    +     * Optional. The root path inside the Cloud Storage bucket.
          * 
    * - * string root_path = 2; + * string root_path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -713,10 +713,10 @@ public Builder clearRootPath() { * * *
    -     * The root path inside the Cloud Storage bucket.
    +     * Optional. The root path inside the Cloud Storage bucket.
          * 
    * - * string root_path = 2; + * string root_path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for rootPath to set. * @return This builder for chaining. diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java index 08dcb4f72f63..d6ee8f6a79fe 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java @@ -56,10 +56,10 @@ public interface GcsProfileOrBuilder * * *
    -   * The root path inside the Cloud Storage bucket.
    +   * Optional. The root path inside the Cloud Storage bucket.
        * 
    * - * string root_path = 2; + * string root_path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The rootPath. */ @@ -69,10 +69,10 @@ public interface GcsProfileOrBuilder * * *
    -   * The root path inside the Cloud Storage bucket.
    +   * Optional. The root path inside the Cloud Storage bucket.
        * 
    * - * string root_path = 2; + * string root_path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for rootPath. */ diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/IngestionTimePartition.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/IngestionTimePartition.java new file mode 100644 index 000000000000..a3d1f2c6af9b --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/IngestionTimePartition.java @@ -0,0 +1,595 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * Ingestion time partitioning. see
    + * https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.IngestionTimePartition} + */ +@com.google.protobuf.Generated +public final class IngestionTimePartition extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.IngestionTimePartition) + IngestionTimePartitionOrBuilder { + 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= */ "", + "IngestionTimePartition"); + } + + // Use IngestionTimePartition.newBuilder() to construct. + private IngestionTimePartition(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IngestionTimePartition() { + partitioningTimeGranularity_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_IngestionTimePartition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_IngestionTimePartition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.IngestionTimePartition.class, + com.google.cloud.datastream.v1.IngestionTimePartition.Builder.class); + } + + public static final int PARTITIONING_TIME_GRANULARITY_FIELD_NUMBER = 1; + private int partitioningTimeGranularity_ = 0; + + /** + * + * + *
    +   * Optional. Partition granularity
    +   * 
    + * + * + * .google.cloud.datastream.v1.PartitioningTimeGranularity partitioning_time_granularity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for partitioningTimeGranularity. + */ + @java.lang.Override + public int getPartitioningTimeGranularityValue() { + return partitioningTimeGranularity_; + } + + /** + * + * + *
    +   * Optional. Partition granularity
    +   * 
    + * + * + * .google.cloud.datastream.v1.PartitioningTimeGranularity partitioning_time_granularity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The partitioningTimeGranularity. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PartitioningTimeGranularity + getPartitioningTimeGranularity() { + com.google.cloud.datastream.v1.PartitioningTimeGranularity result = + com.google.cloud.datastream.v1.PartitioningTimeGranularity.forNumber( + partitioningTimeGranularity_); + return result == null + ? com.google.cloud.datastream.v1.PartitioningTimeGranularity.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (partitioningTimeGranularity_ + != com.google.cloud.datastream.v1.PartitioningTimeGranularity + .PARTITIONING_TIME_GRANULARITY_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, partitioningTimeGranularity_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (partitioningTimeGranularity_ + != com.google.cloud.datastream.v1.PartitioningTimeGranularity + .PARTITIONING_TIME_GRANULARITY_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(1, partitioningTimeGranularity_); + } + 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.datastream.v1.IngestionTimePartition)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.IngestionTimePartition other = + (com.google.cloud.datastream.v1.IngestionTimePartition) obj; + + if (partitioningTimeGranularity_ != other.partitioningTimeGranularity_) 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) + PARTITIONING_TIME_GRANULARITY_FIELD_NUMBER; + hash = (53 * hash) + partitioningTimeGranularity_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.IngestionTimePartition parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.IngestionTimePartition 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.datastream.v1.IngestionTimePartition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.IngestionTimePartition 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.datastream.v1.IngestionTimePartition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.IngestionTimePartition parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.IngestionTimePartition parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.IngestionTimePartition 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.datastream.v1.IngestionTimePartition parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.IngestionTimePartition 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.datastream.v1.IngestionTimePartition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.IngestionTimePartition 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.datastream.v1.IngestionTimePartition 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; + } + + /** + * + * + *
    +   * Ingestion time partitioning. see
    +   * https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.IngestionTimePartition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.IngestionTimePartition) + com.google.cloud.datastream.v1.IngestionTimePartitionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_IngestionTimePartition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_IngestionTimePartition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.IngestionTimePartition.class, + com.google.cloud.datastream.v1.IngestionTimePartition.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.IngestionTimePartition.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + partitioningTimeGranularity_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_IngestionTimePartition_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.IngestionTimePartition getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.IngestionTimePartition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.IngestionTimePartition build() { + com.google.cloud.datastream.v1.IngestionTimePartition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.IngestionTimePartition buildPartial() { + com.google.cloud.datastream.v1.IngestionTimePartition result = + new com.google.cloud.datastream.v1.IngestionTimePartition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.IngestionTimePartition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.partitioningTimeGranularity_ = partitioningTimeGranularity_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.IngestionTimePartition) { + return mergeFrom((com.google.cloud.datastream.v1.IngestionTimePartition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.IngestionTimePartition other) { + if (other == com.google.cloud.datastream.v1.IngestionTimePartition.getDefaultInstance()) + return this; + if (other.partitioningTimeGranularity_ != 0) { + setPartitioningTimeGranularityValue(other.getPartitioningTimeGranularityValue()); + } + 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 8: + { + partitioningTimeGranularity_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + 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 int partitioningTimeGranularity_ = 0; + + /** + * + * + *
    +     * Optional. Partition granularity
    +     * 
    + * + * + * .google.cloud.datastream.v1.PartitioningTimeGranularity partitioning_time_granularity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for partitioningTimeGranularity. + */ + @java.lang.Override + public int getPartitioningTimeGranularityValue() { + return partitioningTimeGranularity_; + } + + /** + * + * + *
    +     * Optional. Partition granularity
    +     * 
    + * + * + * .google.cloud.datastream.v1.PartitioningTimeGranularity partitioning_time_granularity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for partitioningTimeGranularity to set. + * @return This builder for chaining. + */ + public Builder setPartitioningTimeGranularityValue(int value) { + partitioningTimeGranularity_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Partition granularity
    +     * 
    + * + * + * .google.cloud.datastream.v1.PartitioningTimeGranularity partitioning_time_granularity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The partitioningTimeGranularity. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PartitioningTimeGranularity + getPartitioningTimeGranularity() { + com.google.cloud.datastream.v1.PartitioningTimeGranularity result = + com.google.cloud.datastream.v1.PartitioningTimeGranularity.forNumber( + partitioningTimeGranularity_); + return result == null + ? com.google.cloud.datastream.v1.PartitioningTimeGranularity.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Optional. Partition granularity
    +     * 
    + * + * + * .google.cloud.datastream.v1.PartitioningTimeGranularity partitioning_time_granularity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The partitioningTimeGranularity to set. + * @return This builder for chaining. + */ + public Builder setPartitioningTimeGranularity( + com.google.cloud.datastream.v1.PartitioningTimeGranularity value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + partitioningTimeGranularity_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Partition granularity
    +     * 
    + * + * + * .google.cloud.datastream.v1.PartitioningTimeGranularity partitioning_time_granularity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPartitioningTimeGranularity() { + bitField0_ = (bitField0_ & ~0x00000001); + partitioningTimeGranularity_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.IngestionTimePartition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.IngestionTimePartition) + private static final com.google.cloud.datastream.v1.IngestionTimePartition DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.IngestionTimePartition(); + } + + public static com.google.cloud.datastream.v1.IngestionTimePartition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestionTimePartition 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.datastream.v1.IngestionTimePartition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/IngestionTimePartitionOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/IngestionTimePartitionOrBuilder.java new file mode 100644 index 000000000000..e035a426459a --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/IngestionTimePartitionOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface IngestionTimePartitionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.IngestionTimePartition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. Partition granularity
    +   * 
    + * + * + * .google.cloud.datastream.v1.PartitioningTimeGranularity partitioning_time_granularity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for partitioningTimeGranularity. + */ + int getPartitioningTimeGranularityValue(); + + /** + * + * + *
    +   * Optional. Partition granularity
    +   * 
    + * + * + * .google.cloud.datastream.v1.PartitioningTimeGranularity partitioning_time_granularity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The partitioningTimeGranularity. + */ + com.google.cloud.datastream.v1.PartitioningTimeGranularity getPartitioningTimeGranularity(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/IntegerRangePartition.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/IntegerRangePartition.java new file mode 100644 index 000000000000..18df6d08b92f --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/IntegerRangePartition.java @@ -0,0 +1,889 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * Integer range partitioning. see
    + * https://cloud.google.com/bigquery/docs/partitioned-tables#integer_range
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.IntegerRangePartition} + */ +@com.google.protobuf.Generated +public final class IntegerRangePartition extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.IntegerRangePartition) + IntegerRangePartitionOrBuilder { + 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= */ "", + "IntegerRangePartition"); + } + + // Use IntegerRangePartition.newBuilder() to construct. + private IntegerRangePartition(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IntegerRangePartition() { + column_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_IntegerRangePartition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_IntegerRangePartition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.IntegerRangePartition.class, + com.google.cloud.datastream.v1.IntegerRangePartition.Builder.class); + } + + public static final int COLUMN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object column_ = ""; + + /** + * + * + *
    +   * Required. The partitioning column.
    +   * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The column. + */ + @java.lang.Override + public java.lang.String getColumn() { + java.lang.Object ref = column_; + 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(); + column_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The partitioning column.
    +   * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for column. + */ + @java.lang.Override + public com.google.protobuf.ByteString getColumnBytes() { + java.lang.Object ref = column_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + column_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_FIELD_NUMBER = 2; + private long start_ = 0L; + + /** + * + * + *
    +   * Required. The starting value for range partitioning (inclusive).
    +   * 
    + * + * int64 start = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The start. + */ + @java.lang.Override + public long getStart() { + return start_; + } + + public static final int END_FIELD_NUMBER = 3; + private long end_ = 0L; + + /** + * + * + *
    +   * Required. The ending value for range partitioning (exclusive).
    +   * 
    + * + * int64 end = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The end. + */ + @java.lang.Override + public long getEnd() { + return end_; + } + + public static final int INTERVAL_FIELD_NUMBER = 4; + private long interval_ = 0L; + + /** + * + * + *
    +   * Required. The interval of each range within the partition.
    +   * 
    + * + * int64 interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The interval. + */ + @java.lang.Override + public long getInterval() { + return interval_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(column_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, column_); + } + if (start_ != 0L) { + output.writeInt64(2, start_); + } + if (end_ != 0L) { + output.writeInt64(3, end_); + } + if (interval_ != 0L) { + output.writeInt64(4, interval_); + } + 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(column_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, column_); + } + if (start_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, start_); + } + if (end_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, end_); + } + if (interval_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, interval_); + } + 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.datastream.v1.IntegerRangePartition)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.IntegerRangePartition other = + (com.google.cloud.datastream.v1.IntegerRangePartition) obj; + + if (!getColumn().equals(other.getColumn())) return false; + if (getStart() != other.getStart()) return false; + if (getEnd() != other.getEnd()) return false; + if (getInterval() != other.getInterval()) 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) + COLUMN_FIELD_NUMBER; + hash = (53 * hash) + getColumn().hashCode(); + hash = (37 * hash) + START_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStart()); + hash = (37 * hash) + END_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEnd()); + hash = (37 * hash) + INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInterval()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.IntegerRangePartition parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.IntegerRangePartition 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.datastream.v1.IntegerRangePartition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.IntegerRangePartition 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.datastream.v1.IntegerRangePartition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.IntegerRangePartition parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.IntegerRangePartition parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.IntegerRangePartition 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.datastream.v1.IntegerRangePartition parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.IntegerRangePartition 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.datastream.v1.IntegerRangePartition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.IntegerRangePartition 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.datastream.v1.IntegerRangePartition 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; + } + + /** + * + * + *
    +   * Integer range partitioning. see
    +   * https://cloud.google.com/bigquery/docs/partitioned-tables#integer_range
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.IntegerRangePartition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.IntegerRangePartition) + com.google.cloud.datastream.v1.IntegerRangePartitionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_IntegerRangePartition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_IntegerRangePartition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.IntegerRangePartition.class, + com.google.cloud.datastream.v1.IntegerRangePartition.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.IntegerRangePartition.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + column_ = ""; + start_ = 0L; + end_ = 0L; + interval_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_IntegerRangePartition_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.IntegerRangePartition getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.IntegerRangePartition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.IntegerRangePartition build() { + com.google.cloud.datastream.v1.IntegerRangePartition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.IntegerRangePartition buildPartial() { + com.google.cloud.datastream.v1.IntegerRangePartition result = + new com.google.cloud.datastream.v1.IntegerRangePartition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.IntegerRangePartition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.column_ = column_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.start_ = start_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.end_ = end_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.interval_ = interval_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.IntegerRangePartition) { + return mergeFrom((com.google.cloud.datastream.v1.IntegerRangePartition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.IntegerRangePartition other) { + if (other == com.google.cloud.datastream.v1.IntegerRangePartition.getDefaultInstance()) + return this; + if (!other.getColumn().isEmpty()) { + column_ = other.column_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getStart() != 0L) { + setStart(other.getStart()); + } + if (other.getEnd() != 0L) { + setEnd(other.getEnd()); + } + if (other.getInterval() != 0L) { + setInterval(other.getInterval()); + } + 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: + { + column_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + start_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + end_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + interval_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + 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 column_ = ""; + + /** + * + * + *
    +     * Required. The partitioning column.
    +     * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The column. + */ + public java.lang.String getColumn() { + java.lang.Object ref = column_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + column_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The partitioning column.
    +     * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for column. + */ + public com.google.protobuf.ByteString getColumnBytes() { + java.lang.Object ref = column_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + column_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The partitioning column.
    +     * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The column to set. + * @return This builder for chaining. + */ + public Builder setColumn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + column_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The partitioning column.
    +     * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearColumn() { + column_ = getDefaultInstance().getColumn(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The partitioning column.
    +     * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for column to set. + * @return This builder for chaining. + */ + public Builder setColumnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + column_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long start_; + + /** + * + * + *
    +     * Required. The starting value for range partitioning (inclusive).
    +     * 
    + * + * int64 start = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The start. + */ + @java.lang.Override + public long getStart() { + return start_; + } + + /** + * + * + *
    +     * Required. The starting value for range partitioning (inclusive).
    +     * 
    + * + * int64 start = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The start to set. + * @return This builder for chaining. + */ + public Builder setStart(long value) { + + start_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The starting value for range partitioning (inclusive).
    +     * 
    + * + * int64 start = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearStart() { + bitField0_ = (bitField0_ & ~0x00000002); + start_ = 0L; + onChanged(); + return this; + } + + private long end_; + + /** + * + * + *
    +     * Required. The ending value for range partitioning (exclusive).
    +     * 
    + * + * int64 end = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The end. + */ + @java.lang.Override + public long getEnd() { + return end_; + } + + /** + * + * + *
    +     * Required. The ending value for range partitioning (exclusive).
    +     * 
    + * + * int64 end = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The end to set. + * @return This builder for chaining. + */ + public Builder setEnd(long value) { + + end_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The ending value for range partitioning (exclusive).
    +     * 
    + * + * int64 end = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEnd() { + bitField0_ = (bitField0_ & ~0x00000004); + end_ = 0L; + onChanged(); + return this; + } + + private long interval_; + + /** + * + * + *
    +     * Required. The interval of each range within the partition.
    +     * 
    + * + * int64 interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The interval. + */ + @java.lang.Override + public long getInterval() { + return interval_; + } + + /** + * + * + *
    +     * Required. The interval of each range within the partition.
    +     * 
    + * + * int64 interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The interval to set. + * @return This builder for chaining. + */ + public Builder setInterval(long value) { + + interval_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The interval of each range within the partition.
    +     * 
    + * + * int64 interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearInterval() { + bitField0_ = (bitField0_ & ~0x00000008); + interval_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.IntegerRangePartition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.IntegerRangePartition) + private static final com.google.cloud.datastream.v1.IntegerRangePartition DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.IntegerRangePartition(); + } + + public static com.google.cloud.datastream.v1.IntegerRangePartition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IntegerRangePartition 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.datastream.v1.IntegerRangePartition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/IntegerRangePartitionOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/IntegerRangePartitionOrBuilder.java new file mode 100644 index 000000000000..3419f512c054 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/IntegerRangePartitionOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface IntegerRangePartitionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.IntegerRangePartition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The partitioning column.
    +   * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The column. + */ + java.lang.String getColumn(); + + /** + * + * + *
    +   * Required. The partitioning column.
    +   * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for column. + */ + com.google.protobuf.ByteString getColumnBytes(); + + /** + * + * + *
    +   * Required. The starting value for range partitioning (inclusive).
    +   * 
    + * + * int64 start = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The start. + */ + long getStart(); + + /** + * + * + *
    +   * Required. The ending value for range partitioning (exclusive).
    +   * 
    + * + * int64 end = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The end. + */ + long getEnd(); + + /** + * + * + *
    +   * Required. The interval of each range within the partition.
    +   * 
    + * + * int64 interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The interval. + */ + long getInterval(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java index 371320e96c0c..c811fb82fcb9 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java @@ -137,12 +137,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
    -   * Maximum number of connection profiles to return.
    +   * Optional. Maximum number of connection profiles to return.
        * If unspecified, at most 50 connection profiles will be returned.
        * The maximum value is 1000; values above 1000 will be coerced to 1000.
        * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -160,14 +160,14 @@ public int getPageSize() { * * *
    -   * Page token received from a previous `ListConnectionProfiles` call.
    -   * Provide this to retrieve the subsequent page.
    +   * Optional. Page token received from a previous `ListConnectionProfiles`
    +   * call. Provide this to retrieve the subsequent page.
        *
        * When paginating, all other parameters provided to `ListConnectionProfiles`
        * must match the call that provided the page token.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -188,14 +188,14 @@ public java.lang.String getPageToken() { * * *
    -   * Page token received from a previous `ListConnectionProfiles` call.
    -   * Provide this to retrieve the subsequent page.
    +   * Optional. Page token received from a previous `ListConnectionProfiles`
    +   * call. Provide this to retrieve the subsequent page.
        *
        * When paginating, all other parameters provided to `ListConnectionProfiles`
        * must match the call that provided the page token.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -221,10 +221,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
    -   * Filter request.
    +   * Optional. Filter request.
        * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -245,10 +245,10 @@ public java.lang.String getFilter() { * * *
    -   * Filter request.
    +   * Optional. Filter request.
        * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -274,10 +274,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
    -   * Order by fields for the result.
    +   * Optional. Order by fields for the result.
        * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -298,10 +298,10 @@ public java.lang.String getOrderBy() { * * *
    -   * Order by fields for the result.
    +   * Optional. Order by fields for the result.
        * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ @@ -853,12 +853,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
    -     * Maximum number of connection profiles to return.
    +     * Optional. Maximum number of connection profiles to return.
          * If unspecified, at most 50 connection profiles will be returned.
          * The maximum value is 1000; values above 1000 will be coerced to 1000.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -871,12 +871,12 @@ public int getPageSize() { * * *
    -     * Maximum number of connection profiles to return.
    +     * Optional. Maximum number of connection profiles to return.
          * If unspecified, at most 50 connection profiles will be returned.
          * The maximum value is 1000; values above 1000 will be coerced to 1000.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -893,12 +893,12 @@ public Builder setPageSize(int value) { * * *
    -     * Maximum number of connection profiles to return.
    +     * Optional. Maximum number of connection profiles to return.
          * If unspecified, at most 50 connection profiles will be returned.
          * The maximum value is 1000; values above 1000 will be coerced to 1000.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -915,14 +915,14 @@ public Builder clearPageSize() { * * *
    -     * Page token received from a previous `ListConnectionProfiles` call.
    -     * Provide this to retrieve the subsequent page.
    +     * Optional. Page token received from a previous `ListConnectionProfiles`
    +     * call. Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to `ListConnectionProfiles`
          * must match the call that provided the page token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -942,14 +942,14 @@ public java.lang.String getPageToken() { * * *
    -     * Page token received from a previous `ListConnectionProfiles` call.
    -     * Provide this to retrieve the subsequent page.
    +     * Optional. Page token received from a previous `ListConnectionProfiles`
    +     * call. Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to `ListConnectionProfiles`
          * must match the call that provided the page token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -969,14 +969,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
    -     * Page token received from a previous `ListConnectionProfiles` call.
    -     * Provide this to retrieve the subsequent page.
    +     * Optional. Page token received from a previous `ListConnectionProfiles`
    +     * call. Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to `ListConnectionProfiles`
          * must match the call that provided the page token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -995,14 +995,14 @@ public Builder setPageToken(java.lang.String value) { * * *
    -     * Page token received from a previous `ListConnectionProfiles` call.
    -     * Provide this to retrieve the subsequent page.
    +     * Optional. Page token received from a previous `ListConnectionProfiles`
    +     * call. Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to `ListConnectionProfiles`
          * must match the call that provided the page token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1017,14 +1017,14 @@ public Builder clearPageToken() { * * *
    -     * Page token received from a previous `ListConnectionProfiles` call.
    -     * Provide this to retrieve the subsequent page.
    +     * Optional. Page token received from a previous `ListConnectionProfiles`
    +     * call. Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to `ListConnectionProfiles`
          * must match the call that provided the page token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. @@ -1046,10 +1046,10 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
    -     * Filter request.
    +     * Optional. Filter request.
          * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -1069,10 +1069,10 @@ public java.lang.String getFilter() { * * *
    -     * Filter request.
    +     * Optional. Filter request.
          * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -1092,10 +1092,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
    -     * Filter request.
    +     * Optional. Filter request.
          * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -1114,10 +1114,10 @@ public Builder setFilter(java.lang.String value) { * * *
    -     * Filter request.
    +     * Optional. Filter request.
          * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1132,10 +1132,10 @@ public Builder clearFilter() { * * *
    -     * Filter request.
    +     * Optional. Filter request.
          * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -1157,10 +1157,10 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
    -     * Order by fields for the result.
    +     * Optional. Order by fields for the result.
          * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -1180,10 +1180,10 @@ public java.lang.String getOrderBy() { * * *
    -     * Order by fields for the result.
    +     * Optional. Order by fields for the result.
          * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ @@ -1203,10 +1203,10 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
    -     * Order by fields for the result.
    +     * Optional. Order by fields for the result.
          * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The orderBy to set. * @return This builder for chaining. @@ -1225,10 +1225,10 @@ public Builder setOrderBy(java.lang.String value) { * * *
    -     * Order by fields for the result.
    +     * Optional. Order by fields for the result.
          * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1243,10 +1243,10 @@ public Builder clearOrderBy() { * * *
    -     * Order by fields for the result.
    +     * Optional. Order by fields for the result.
          * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for orderBy to set. * @return This builder for chaining. diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java index e205c6963e7a..3bd42f73a468 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java @@ -60,12 +60,12 @@ public interface ListConnectionProfilesRequestOrBuilder * * *
    -   * Maximum number of connection profiles to return.
    +   * Optional. Maximum number of connection profiles to return.
        * If unspecified, at most 50 connection profiles will be returned.
        * The maximum value is 1000; values above 1000 will be coerced to 1000.
        * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -75,14 +75,14 @@ public interface ListConnectionProfilesRequestOrBuilder * * *
    -   * Page token received from a previous `ListConnectionProfiles` call.
    -   * Provide this to retrieve the subsequent page.
    +   * Optional. Page token received from a previous `ListConnectionProfiles`
    +   * call. Provide this to retrieve the subsequent page.
        *
        * When paginating, all other parameters provided to `ListConnectionProfiles`
        * must match the call that provided the page token.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -92,14 +92,14 @@ public interface ListConnectionProfilesRequestOrBuilder * * *
    -   * Page token received from a previous `ListConnectionProfiles` call.
    -   * Provide this to retrieve the subsequent page.
    +   * Optional. Page token received from a previous `ListConnectionProfiles`
    +   * call. Provide this to retrieve the subsequent page.
        *
        * When paginating, all other parameters provided to `ListConnectionProfiles`
        * must match the call that provided the page token.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -109,10 +109,10 @@ public interface ListConnectionProfilesRequestOrBuilder * * *
    -   * Filter request.
    +   * Optional. Filter request.
        * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -122,10 +122,10 @@ public interface ListConnectionProfilesRequestOrBuilder * * *
    -   * Filter request.
    +   * Optional. Filter request.
        * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -135,10 +135,10 @@ public interface ListConnectionProfilesRequestOrBuilder * * *
    -   * Order by fields for the result.
    +   * Optional. Order by fields for the result.
        * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -148,10 +148,10 @@ public interface ListConnectionProfilesRequestOrBuilder * * *
    -   * Order by fields for the result.
    +   * Optional. Order by fields for the result.
        * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java index 74c6236cbebe..135da4f87cc8 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java @@ -163,15 +163,15 @@ public int getPageSize() { * * *
    -   * Page token received from a previous `ListPrivateConnections` call.
    -   * Provide this to retrieve the subsequent page.
    +   * Optional. Page token received from a previous `ListPrivateConnections`
    +   * call. Provide this to retrieve the subsequent page.
        *
        * When paginating, all other parameters provided to
        * `ListPrivateConnections` must match the call that provided the page
        * token.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -192,15 +192,15 @@ public java.lang.String getPageToken() { * * *
    -   * Page token received from a previous `ListPrivateConnections` call.
    -   * Provide this to retrieve the subsequent page.
    +   * Optional. Page token received from a previous `ListPrivateConnections`
    +   * call. Provide this to retrieve the subsequent page.
        *
        * When paginating, all other parameters provided to
        * `ListPrivateConnections` must match the call that provided the page
        * token.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -226,10 +226,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
    -   * Filter request.
    +   * Optional. Filter request.
        * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -250,10 +250,10 @@ public java.lang.String getFilter() { * * *
    -   * Filter request.
    +   * Optional. Filter request.
        * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -279,10 +279,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
    -   * Order by fields for the result.
    +   * Optional. Order by fields for the result.
        * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -303,10 +303,10 @@ public java.lang.String getOrderBy() { * * *
    -   * Order by fields for the result.
    +   * Optional. Order by fields for the result.
        * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ @@ -928,15 +928,15 @@ public Builder clearPageSize() { * * *
    -     * Page token received from a previous `ListPrivateConnections` call.
    -     * Provide this to retrieve the subsequent page.
    +     * Optional. Page token received from a previous `ListPrivateConnections`
    +     * call. Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to
          * `ListPrivateConnections` must match the call that provided the page
          * token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -956,15 +956,15 @@ public java.lang.String getPageToken() { * * *
    -     * Page token received from a previous `ListPrivateConnections` call.
    -     * Provide this to retrieve the subsequent page.
    +     * Optional. Page token received from a previous `ListPrivateConnections`
    +     * call. Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to
          * `ListPrivateConnections` must match the call that provided the page
          * token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -984,15 +984,15 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
    -     * Page token received from a previous `ListPrivateConnections` call.
    -     * Provide this to retrieve the subsequent page.
    +     * Optional. Page token received from a previous `ListPrivateConnections`
    +     * call. Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to
          * `ListPrivateConnections` must match the call that provided the page
          * token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -1011,15 +1011,15 @@ public Builder setPageToken(java.lang.String value) { * * *
    -     * Page token received from a previous `ListPrivateConnections` call.
    -     * Provide this to retrieve the subsequent page.
    +     * Optional. Page token received from a previous `ListPrivateConnections`
    +     * call. Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to
          * `ListPrivateConnections` must match the call that provided the page
          * token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1034,15 +1034,15 @@ public Builder clearPageToken() { * * *
    -     * Page token received from a previous `ListPrivateConnections` call.
    -     * Provide this to retrieve the subsequent page.
    +     * Optional. Page token received from a previous `ListPrivateConnections`
    +     * call. Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to
          * `ListPrivateConnections` must match the call that provided the page
          * token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. @@ -1064,10 +1064,10 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
    -     * Filter request.
    +     * Optional. Filter request.
          * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -1087,10 +1087,10 @@ public java.lang.String getFilter() { * * *
    -     * Filter request.
    +     * Optional. Filter request.
          * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -1110,10 +1110,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
    -     * Filter request.
    +     * Optional. Filter request.
          * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -1132,10 +1132,10 @@ public Builder setFilter(java.lang.String value) { * * *
    -     * Filter request.
    +     * Optional. Filter request.
          * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1150,10 +1150,10 @@ public Builder clearFilter() { * * *
    -     * Filter request.
    +     * Optional. Filter request.
          * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -1175,10 +1175,10 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
    -     * Order by fields for the result.
    +     * Optional. Order by fields for the result.
          * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -1198,10 +1198,10 @@ public java.lang.String getOrderBy() { * * *
    -     * Order by fields for the result.
    +     * Optional. Order by fields for the result.
          * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ @@ -1221,10 +1221,10 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
    -     * Order by fields for the result.
    +     * Optional. Order by fields for the result.
          * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The orderBy to set. * @return This builder for chaining. @@ -1243,10 +1243,10 @@ public Builder setOrderBy(java.lang.String value) { * * *
    -     * Order by fields for the result.
    +     * Optional. Order by fields for the result.
          * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1261,10 +1261,10 @@ public Builder clearOrderBy() { * * *
    -     * Order by fields for the result.
    +     * Optional. Order by fields for the result.
          * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for orderBy to set. * @return This builder for chaining. diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java index a416d832166d..a90bf331cdbf 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java @@ -78,15 +78,15 @@ public interface ListPrivateConnectionsRequestOrBuilder * * *
    -   * Page token received from a previous `ListPrivateConnections` call.
    -   * Provide this to retrieve the subsequent page.
    +   * Optional. Page token received from a previous `ListPrivateConnections`
    +   * call. Provide this to retrieve the subsequent page.
        *
        * When paginating, all other parameters provided to
        * `ListPrivateConnections` must match the call that provided the page
        * token.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -96,15 +96,15 @@ public interface ListPrivateConnectionsRequestOrBuilder * * *
    -   * Page token received from a previous `ListPrivateConnections` call.
    -   * Provide this to retrieve the subsequent page.
    +   * Optional. Page token received from a previous `ListPrivateConnections`
    +   * call. Provide this to retrieve the subsequent page.
        *
        * When paginating, all other parameters provided to
        * `ListPrivateConnections` must match the call that provided the page
        * token.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -114,10 +114,10 @@ public interface ListPrivateConnectionsRequestOrBuilder * * *
    -   * Filter request.
    +   * Optional. Filter request.
        * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -127,10 +127,10 @@ public interface ListPrivateConnectionsRequestOrBuilder * * *
    -   * Filter request.
    +   * Optional. Filter request.
        * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -140,10 +140,10 @@ public interface ListPrivateConnectionsRequestOrBuilder * * *
    -   * Order by fields for the result.
    +   * Optional. Order by fields for the result.
        * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -153,10 +153,10 @@ public interface ListPrivateConnectionsRequestOrBuilder * * *
    -   * Order by fields for the result.
    +   * Optional. Order by fields for the result.
        * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java index f4391f41d8fd..7e03f1c662dd 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java @@ -137,13 +137,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
    -   * Maximum number of Routes to return. The service may return
    +   * Optional. Maximum number of Routes to return. The service may return
        * fewer than this value. If unspecified, at most 50 Routes
        * will be returned. The maximum value is 1000; values above 1000 will be
        * coerced to 1000.
        * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -161,7 +161,7 @@ public int getPageSize() { * * *
    -   * Page token received from a previous `ListRoutes` call.
    +   * Optional. Page token received from a previous `ListRoutes` call.
        * Provide this to retrieve the subsequent page.
        *
        * When paginating, all other parameters provided to
    @@ -169,7 +169,7 @@ public int getPageSize() {
        * token.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -190,7 +190,7 @@ public java.lang.String getPageToken() { * * *
    -   * Page token received from a previous `ListRoutes` call.
    +   * Optional. Page token received from a previous `ListRoutes` call.
        * Provide this to retrieve the subsequent page.
        *
        * When paginating, all other parameters provided to
    @@ -198,7 +198,7 @@ public java.lang.String getPageToken() {
        * token.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -224,10 +224,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
    -   * Filter request.
    +   * Optional. Filter request.
        * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -248,10 +248,10 @@ public java.lang.String getFilter() { * * *
    -   * Filter request.
    +   * Optional. Filter request.
        * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -277,10 +277,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
    -   * Order by fields for the result.
    +   * Optional. Order by fields for the result.
        * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -301,10 +301,10 @@ public java.lang.String getOrderBy() { * * *
    -   * Order by fields for the result.
    +   * Optional. Order by fields for the result.
        * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ @@ -852,13 +852,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
    -     * Maximum number of Routes to return. The service may return
    +     * Optional. Maximum number of Routes to return. The service may return
          * fewer than this value. If unspecified, at most 50 Routes
          * will be returned. The maximum value is 1000; values above 1000 will be
          * coerced to 1000.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -871,13 +871,13 @@ public int getPageSize() { * * *
    -     * Maximum number of Routes to return. The service may return
    +     * Optional. Maximum number of Routes to return. The service may return
          * fewer than this value. If unspecified, at most 50 Routes
          * will be returned. The maximum value is 1000; values above 1000 will be
          * coerced to 1000.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -894,13 +894,13 @@ public Builder setPageSize(int value) { * * *
    -     * Maximum number of Routes to return. The service may return
    +     * Optional. Maximum number of Routes to return. The service may return
          * fewer than this value. If unspecified, at most 50 Routes
          * will be returned. The maximum value is 1000; values above 1000 will be
          * coerced to 1000.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -917,7 +917,7 @@ public Builder clearPageSize() { * * *
    -     * Page token received from a previous `ListRoutes` call.
    +     * Optional. Page token received from a previous `ListRoutes` call.
          * Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to
    @@ -925,7 +925,7 @@ public Builder clearPageSize() {
          * token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -945,7 +945,7 @@ public java.lang.String getPageToken() { * * *
    -     * Page token received from a previous `ListRoutes` call.
    +     * Optional. Page token received from a previous `ListRoutes` call.
          * Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to
    @@ -953,7 +953,7 @@ public java.lang.String getPageToken() {
          * token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -973,7 +973,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
    -     * Page token received from a previous `ListRoutes` call.
    +     * Optional. Page token received from a previous `ListRoutes` call.
          * Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to
    @@ -981,7 +981,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
          * token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -1000,7 +1000,7 @@ public Builder setPageToken(java.lang.String value) { * * *
    -     * Page token received from a previous `ListRoutes` call.
    +     * Optional. Page token received from a previous `ListRoutes` call.
          * Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to
    @@ -1008,7 +1008,7 @@ public Builder setPageToken(java.lang.String value) {
          * token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1023,7 +1023,7 @@ public Builder clearPageToken() { * * *
    -     * Page token received from a previous `ListRoutes` call.
    +     * Optional. Page token received from a previous `ListRoutes` call.
          * Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to
    @@ -1031,7 +1031,7 @@ public Builder clearPageToken() {
          * token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. @@ -1053,10 +1053,10 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
    -     * Filter request.
    +     * Optional. Filter request.
          * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -1076,10 +1076,10 @@ public java.lang.String getFilter() { * * *
    -     * Filter request.
    +     * Optional. Filter request.
          * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -1099,10 +1099,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
    -     * Filter request.
    +     * Optional. Filter request.
          * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -1121,10 +1121,10 @@ public Builder setFilter(java.lang.String value) { * * *
    -     * Filter request.
    +     * Optional. Filter request.
          * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1139,10 +1139,10 @@ public Builder clearFilter() { * * *
    -     * Filter request.
    +     * Optional. Filter request.
          * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -1164,10 +1164,10 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
    -     * Order by fields for the result.
    +     * Optional. Order by fields for the result.
          * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -1187,10 +1187,10 @@ public java.lang.String getOrderBy() { * * *
    -     * Order by fields for the result.
    +     * Optional. Order by fields for the result.
          * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ @@ -1210,10 +1210,10 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
    -     * Order by fields for the result.
    +     * Optional. Order by fields for the result.
          * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The orderBy to set. * @return This builder for chaining. @@ -1232,10 +1232,10 @@ public Builder setOrderBy(java.lang.String value) { * * *
    -     * Order by fields for the result.
    +     * Optional. Order by fields for the result.
          * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1250,10 +1250,10 @@ public Builder clearOrderBy() { * * *
    -     * Order by fields for the result.
    +     * Optional. Order by fields for the result.
          * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for orderBy to set. * @return This builder for chaining. diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java index f28f51d7c60b..eca03ed442b7 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java @@ -60,13 +60,13 @@ public interface ListRoutesRequestOrBuilder * * *
    -   * Maximum number of Routes to return. The service may return
    +   * Optional. Maximum number of Routes to return. The service may return
        * fewer than this value. If unspecified, at most 50 Routes
        * will be returned. The maximum value is 1000; values above 1000 will be
        * coerced to 1000.
        * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -76,7 +76,7 @@ public interface ListRoutesRequestOrBuilder * * *
    -   * Page token received from a previous `ListRoutes` call.
    +   * Optional. Page token received from a previous `ListRoutes` call.
        * Provide this to retrieve the subsequent page.
        *
        * When paginating, all other parameters provided to
    @@ -84,7 +84,7 @@ public interface ListRoutesRequestOrBuilder
        * token.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -94,7 +94,7 @@ public interface ListRoutesRequestOrBuilder * * *
    -   * Page token received from a previous `ListRoutes` call.
    +   * Optional. Page token received from a previous `ListRoutes` call.
        * Provide this to retrieve the subsequent page.
        *
        * When paginating, all other parameters provided to
    @@ -102,7 +102,7 @@ public interface ListRoutesRequestOrBuilder
        * token.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -112,10 +112,10 @@ public interface ListRoutesRequestOrBuilder * * *
    -   * Filter request.
    +   * Optional. Filter request.
        * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -125,10 +125,10 @@ public interface ListRoutesRequestOrBuilder * * *
    -   * Filter request.
    +   * Optional. Filter request.
        * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -138,10 +138,10 @@ public interface ListRoutesRequestOrBuilder * * *
    -   * Order by fields for the result.
    +   * Optional. Order by fields for the result.
        * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -151,10 +151,10 @@ public interface ListRoutesRequestOrBuilder * * *
    -   * Order by fields for the result.
    +   * Optional. Order by fields for the result.
        * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java index d15be8dc7cc3..533edd623d47 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java @@ -135,11 +135,11 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
    -   * Maximum number of objects to return. Default is 50.
    +   * Optional. Maximum number of objects to return. Default is 50.
        * The maximum value is 1000; values above 1000 will be coerced to 1000.
        * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -157,15 +157,15 @@ public int getPageSize() { * * *
    -   * Page token received from a previous `ListStreamObjectsRequest` call.
    -   * Provide this to retrieve the subsequent page.
    +   * Optional. Page token received from a previous `ListStreamObjectsRequest`
    +   * call. Provide this to retrieve the subsequent page.
        *
        * When paginating, all other parameters provided to
        * `ListStreamObjectsRequest` must match the call that provided the page
        * token.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -186,15 +186,15 @@ public java.lang.String getPageToken() { * * *
    -   * Page token received from a previous `ListStreamObjectsRequest` call.
    -   * Provide this to retrieve the subsequent page.
    +   * Optional. Page token received from a previous `ListStreamObjectsRequest`
    +   * call. Provide this to retrieve the subsequent page.
        *
        * When paginating, all other parameters provided to
        * `ListStreamObjectsRequest` must match the call that provided the page
        * token.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -695,11 +695,11 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
    -     * Maximum number of objects to return. Default is 50.
    +     * Optional. Maximum number of objects to return. Default is 50.
          * The maximum value is 1000; values above 1000 will be coerced to 1000.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -712,11 +712,11 @@ public int getPageSize() { * * *
    -     * Maximum number of objects to return. Default is 50.
    +     * Optional. Maximum number of objects to return. Default is 50.
          * The maximum value is 1000; values above 1000 will be coerced to 1000.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -733,11 +733,11 @@ public Builder setPageSize(int value) { * * *
    -     * Maximum number of objects to return. Default is 50.
    +     * Optional. Maximum number of objects to return. Default is 50.
          * The maximum value is 1000; values above 1000 will be coerced to 1000.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -754,15 +754,15 @@ public Builder clearPageSize() { * * *
    -     * Page token received from a previous `ListStreamObjectsRequest` call.
    -     * Provide this to retrieve the subsequent page.
    +     * Optional. Page token received from a previous `ListStreamObjectsRequest`
    +     * call. Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to
          * `ListStreamObjectsRequest` must match the call that provided the page
          * token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -782,15 +782,15 @@ public java.lang.String getPageToken() { * * *
    -     * Page token received from a previous `ListStreamObjectsRequest` call.
    -     * Provide this to retrieve the subsequent page.
    +     * Optional. Page token received from a previous `ListStreamObjectsRequest`
    +     * call. Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to
          * `ListStreamObjectsRequest` must match the call that provided the page
          * token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -810,15 +810,15 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
    -     * Page token received from a previous `ListStreamObjectsRequest` call.
    -     * Provide this to retrieve the subsequent page.
    +     * Optional. Page token received from a previous `ListStreamObjectsRequest`
    +     * call. Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to
          * `ListStreamObjectsRequest` must match the call that provided the page
          * token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -837,15 +837,15 @@ public Builder setPageToken(java.lang.String value) { * * *
    -     * Page token received from a previous `ListStreamObjectsRequest` call.
    -     * Provide this to retrieve the subsequent page.
    +     * Optional. Page token received from a previous `ListStreamObjectsRequest`
    +     * call. Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to
          * `ListStreamObjectsRequest` must match the call that provided the page
          * token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -860,15 +860,15 @@ public Builder clearPageToken() { * * *
    -     * Page token received from a previous `ListStreamObjectsRequest` call.
    -     * Provide this to retrieve the subsequent page.
    +     * Optional. Page token received from a previous `ListStreamObjectsRequest`
    +     * call. Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to
          * `ListStreamObjectsRequest` must match the call that provided the page
          * token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java index 83336a48bcc3..a381109e9c84 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java @@ -60,11 +60,11 @@ public interface ListStreamObjectsRequestOrBuilder * * *
    -   * Maximum number of objects to return. Default is 50.
    +   * Optional. Maximum number of objects to return. Default is 50.
        * The maximum value is 1000; values above 1000 will be coerced to 1000.
        * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -74,15 +74,15 @@ public interface ListStreamObjectsRequestOrBuilder * * *
    -   * Page token received from a previous `ListStreamObjectsRequest` call.
    -   * Provide this to retrieve the subsequent page.
    +   * Optional. Page token received from a previous `ListStreamObjectsRequest`
    +   * call. Provide this to retrieve the subsequent page.
        *
        * When paginating, all other parameters provided to
        * `ListStreamObjectsRequest` must match the call that provided the page
        * token.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -92,15 +92,15 @@ public interface ListStreamObjectsRequestOrBuilder * * *
    -   * Page token received from a previous `ListStreamObjectsRequest` call.
    -   * Provide this to retrieve the subsequent page.
    +   * Optional. Page token received from a previous `ListStreamObjectsRequest`
    +   * call. Provide this to retrieve the subsequent page.
        *
        * When paginating, all other parameters provided to
        * `ListStreamObjectsRequest` must match the call that provided the page
        * token.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java index e7e5be73a63c..73c388fe4f30 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java @@ -137,12 +137,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
    -   * Maximum number of streams to return.
    +   * Optional. Maximum number of streams to return.
        * If unspecified, at most 50 streams will  be returned. The maximum
        * value is 1000; values above 1000 will be coerced to 1000.
        * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -160,14 +160,14 @@ public int getPageSize() { * * *
    -   * Page token received from a previous `ListStreams` call.
    +   * Optional. Page token received from a previous `ListStreams` call.
        * Provide this to retrieve the subsequent page.
        *
        * When paginating, all other parameters provided to `ListStreams`
        * must match the call that provided the page token.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -188,14 +188,14 @@ public java.lang.String getPageToken() { * * *
    -   * Page token received from a previous `ListStreams` call.
    +   * Optional. Page token received from a previous `ListStreams` call.
        * Provide this to retrieve the subsequent page.
        *
        * When paginating, all other parameters provided to `ListStreams`
        * must match the call that provided the page token.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -221,10 +221,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
    -   * Filter request.
    +   * Optional. Filter request.
        * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -245,10 +245,10 @@ public java.lang.String getFilter() { * * *
    -   * Filter request.
    +   * Optional. Filter request.
        * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -274,10 +274,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
    -   * Order by fields for the result.
    +   * Optional. Order by fields for the result.
        * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -298,10 +298,10 @@ public java.lang.String getOrderBy() { * * *
    -   * Order by fields for the result.
    +   * Optional. Order by fields for the result.
        * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ @@ -849,12 +849,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
    -     * Maximum number of streams to return.
    +     * Optional. Maximum number of streams to return.
          * If unspecified, at most 50 streams will  be returned. The maximum
          * value is 1000; values above 1000 will be coerced to 1000.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -867,12 +867,12 @@ public int getPageSize() { * * *
    -     * Maximum number of streams to return.
    +     * Optional. Maximum number of streams to return.
          * If unspecified, at most 50 streams will  be returned. The maximum
          * value is 1000; values above 1000 will be coerced to 1000.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -889,12 +889,12 @@ public Builder setPageSize(int value) { * * *
    -     * Maximum number of streams to return.
    +     * Optional. Maximum number of streams to return.
          * If unspecified, at most 50 streams will  be returned. The maximum
          * value is 1000; values above 1000 will be coerced to 1000.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -911,14 +911,14 @@ public Builder clearPageSize() { * * *
    -     * Page token received from a previous `ListStreams` call.
    +     * Optional. Page token received from a previous `ListStreams` call.
          * Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to `ListStreams`
          * must match the call that provided the page token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -938,14 +938,14 @@ public java.lang.String getPageToken() { * * *
    -     * Page token received from a previous `ListStreams` call.
    +     * Optional. Page token received from a previous `ListStreams` call.
          * Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to `ListStreams`
          * must match the call that provided the page token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -965,14 +965,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
    -     * Page token received from a previous `ListStreams` call.
    +     * Optional. Page token received from a previous `ListStreams` call.
          * Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to `ListStreams`
          * must match the call that provided the page token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -991,14 +991,14 @@ public Builder setPageToken(java.lang.String value) { * * *
    -     * Page token received from a previous `ListStreams` call.
    +     * Optional. Page token received from a previous `ListStreams` call.
          * Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to `ListStreams`
          * must match the call that provided the page token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1013,14 +1013,14 @@ public Builder clearPageToken() { * * *
    -     * Page token received from a previous `ListStreams` call.
    +     * Optional. Page token received from a previous `ListStreams` call.
          * Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to `ListStreams`
          * must match the call that provided the page token.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. @@ -1042,10 +1042,10 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
    -     * Filter request.
    +     * Optional. Filter request.
          * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -1065,10 +1065,10 @@ public java.lang.String getFilter() { * * *
    -     * Filter request.
    +     * Optional. Filter request.
          * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -1088,10 +1088,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
    -     * Filter request.
    +     * Optional. Filter request.
          * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -1110,10 +1110,10 @@ public Builder setFilter(java.lang.String value) { * * *
    -     * Filter request.
    +     * Optional. Filter request.
          * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1128,10 +1128,10 @@ public Builder clearFilter() { * * *
    -     * Filter request.
    +     * Optional. Filter request.
          * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -1153,10 +1153,10 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
    -     * Order by fields for the result.
    +     * Optional. Order by fields for the result.
          * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -1176,10 +1176,10 @@ public java.lang.String getOrderBy() { * * *
    -     * Order by fields for the result.
    +     * Optional. Order by fields for the result.
          * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ @@ -1199,10 +1199,10 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
    -     * Order by fields for the result.
    +     * Optional. Order by fields for the result.
          * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The orderBy to set. * @return This builder for chaining. @@ -1221,10 +1221,10 @@ public Builder setOrderBy(java.lang.String value) { * * *
    -     * Order by fields for the result.
    +     * Optional. Order by fields for the result.
          * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1239,10 +1239,10 @@ public Builder clearOrderBy() { * * *
    -     * Order by fields for the result.
    +     * Optional. Order by fields for the result.
          * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for orderBy to set. * @return This builder for chaining. diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java index d50f4487ae20..14998290a121 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java @@ -60,12 +60,12 @@ public interface ListStreamsRequestOrBuilder * * *
    -   * Maximum number of streams to return.
    +   * Optional. Maximum number of streams to return.
        * If unspecified, at most 50 streams will  be returned. The maximum
        * value is 1000; values above 1000 will be coerced to 1000.
        * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -75,14 +75,14 @@ public interface ListStreamsRequestOrBuilder * * *
    -   * Page token received from a previous `ListStreams` call.
    +   * Optional. Page token received from a previous `ListStreams` call.
        * Provide this to retrieve the subsequent page.
        *
        * When paginating, all other parameters provided to `ListStreams`
        * must match the call that provided the page token.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -92,14 +92,14 @@ public interface ListStreamsRequestOrBuilder * * *
    -   * Page token received from a previous `ListStreams` call.
    +   * Optional. Page token received from a previous `ListStreams` call.
        * Provide this to retrieve the subsequent page.
        *
        * When paginating, all other parameters provided to `ListStreams`
        * must match the call that provided the page token.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -109,10 +109,10 @@ public interface ListStreamsRequestOrBuilder * * *
    -   * Filter request.
    +   * Optional. Filter request.
        * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -122,10 +122,10 @@ public interface ListStreamsRequestOrBuilder * * *
    -   * Filter request.
    +   * Optional. Filter request.
        * 
    * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -135,10 +135,10 @@ public interface ListStreamsRequestOrBuilder * * *
    -   * Order by fields for the result.
    +   * Optional. Order by fields for the result.
        * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -148,10 +148,10 @@ public interface ListStreamsRequestOrBuilder * * *
    -   * Order by fields for the result.
    +   * Optional. Order by fields for the result.
        * 
    * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbChangeStreamPosition.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbChangeStreamPosition.java new file mode 100644 index 000000000000..7005edbb8791 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbChangeStreamPosition.java @@ -0,0 +1,703 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * MongoDB change stream position
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.MongodbChangeStreamPosition} + */ +@com.google.protobuf.Generated +public final class MongodbChangeStreamPosition extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MongodbChangeStreamPosition) + MongodbChangeStreamPositionOrBuilder { + 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= */ "", + "MongodbChangeStreamPosition"); + } + + // Use MongodbChangeStreamPosition.newBuilder() to construct. + private MongodbChangeStreamPosition(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MongodbChangeStreamPosition() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MongodbChangeStreamPosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MongodbChangeStreamPosition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.MongodbChangeStreamPosition.class, + com.google.cloud.datastream.v1.MongodbChangeStreamPosition.Builder.class); + } + + private int bitField0_; + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
    +   * Required. The timestamp to start change stream from.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. The timestamp to start change stream from.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
    +   * Required. The timestamp to start change stream from.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStartTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + } + 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.datastream.v1.MongodbChangeStreamPosition)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.MongodbChangeStreamPosition other = + (com.google.cloud.datastream.v1.MongodbChangeStreamPosition) obj; + + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.MongodbChangeStreamPosition parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.MongodbChangeStreamPosition 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.datastream.v1.MongodbChangeStreamPosition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.MongodbChangeStreamPosition 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.datastream.v1.MongodbChangeStreamPosition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.MongodbChangeStreamPosition parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.MongodbChangeStreamPosition parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.MongodbChangeStreamPosition 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.datastream.v1.MongodbChangeStreamPosition parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.MongodbChangeStreamPosition 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.datastream.v1.MongodbChangeStreamPosition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.MongodbChangeStreamPosition 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.datastream.v1.MongodbChangeStreamPosition 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; + } + + /** + * + * + *
    +   * MongoDB change stream position
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.MongodbChangeStreamPosition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.MongodbChangeStreamPosition) + com.google.cloud.datastream.v1.MongodbChangeStreamPositionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MongodbChangeStreamPosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MongodbChangeStreamPosition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.MongodbChangeStreamPosition.class, + com.google.cloud.datastream.v1.MongodbChangeStreamPosition.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.MongodbChangeStreamPosition.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStartTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MongodbChangeStreamPosition_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MongodbChangeStreamPosition getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.MongodbChangeStreamPosition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MongodbChangeStreamPosition build() { + com.google.cloud.datastream.v1.MongodbChangeStreamPosition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MongodbChangeStreamPosition buildPartial() { + com.google.cloud.datastream.v1.MongodbChangeStreamPosition result = + new com.google.cloud.datastream.v1.MongodbChangeStreamPosition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.MongodbChangeStreamPosition result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.MongodbChangeStreamPosition) { + return mergeFrom((com.google.cloud.datastream.v1.MongodbChangeStreamPosition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.MongodbChangeStreamPosition other) { + if (other == com.google.cloud.datastream.v1.MongodbChangeStreamPosition.getDefaultInstance()) + return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
    +     * Required. The timestamp to start change stream from.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Required. The timestamp to start change stream from.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. The timestamp to start change stream from.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The timestamp to start change stream from.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The timestamp to start change stream from.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. The timestamp to start change stream from.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000001); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The timestamp to start change stream from.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. The timestamp to start change stream from.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + + /** + * + * + *
    +     * Required. The timestamp to start change stream from.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.MongodbChangeStreamPosition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.MongodbChangeStreamPosition) + private static final com.google.cloud.datastream.v1.MongodbChangeStreamPosition DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.MongodbChangeStreamPosition(); + } + + public static com.google.cloud.datastream.v1.MongodbChangeStreamPosition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MongodbChangeStreamPosition 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.datastream.v1.MongodbChangeStreamPosition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbChangeStreamPositionOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbChangeStreamPositionOrBuilder.java new file mode 100644 index 000000000000..0e4f8252e11b --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbChangeStreamPositionOrBuilder.java @@ -0,0 +1,68 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface MongodbChangeStreamPositionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.MongodbChangeStreamPosition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The timestamp to start change stream from.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
    +   * Required. The timestamp to start change stream from.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
    +   * Required. The timestamp to start change stream from.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbCollection.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbCollection.java index 0f0eda09a342..0c514ee6cda7 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbCollection.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbCollection.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Collection name.
    +   * The collection name.
        * 
    * * string collection = 1; @@ -104,7 +104,7 @@ public java.lang.String getCollection() { * * *
    -   * Collection name.
    +   * The collection name.
        * 
    * * string collection = 1; @@ -588,7 +588,7 @@ public Builder mergeFrom( * * *
    -     * Collection name.
    +     * The collection name.
          * 
    * * string collection = 1; @@ -611,7 +611,7 @@ public java.lang.String getCollection() { * * *
    -     * Collection name.
    +     * The collection name.
          * 
    * * string collection = 1; @@ -634,7 +634,7 @@ public com.google.protobuf.ByteString getCollectionBytes() { * * *
    -     * Collection name.
    +     * The collection name.
          * 
    * * string collection = 1; @@ -656,7 +656,7 @@ public Builder setCollection(java.lang.String value) { * * *
    -     * Collection name.
    +     * The collection name.
          * 
    * * string collection = 1; @@ -674,7 +674,7 @@ public Builder clearCollection() { * * *
    -     * Collection name.
    +     * The collection name.
          * 
    * * string collection = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbCollectionOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbCollectionOrBuilder.java index 7d0a494187a4..cf0b15f441c1 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbCollectionOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbCollectionOrBuilder.java @@ -30,7 +30,7 @@ public interface MongodbCollectionOrBuilder * * *
    -   * Collection name.
    +   * The collection name.
        * 
    * * string collection = 1; @@ -43,7 +43,7 @@ public interface MongodbCollectionOrBuilder * * *
    -   * Collection name.
    +   * The collection name.
        * 
    * * string collection = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbDatabase.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbDatabase.java index a84096e91c7f..3a14410ff4cf 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbDatabase.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbDatabase.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Database name.
    +   * The database name.
        * 
    * * string database = 1; @@ -104,7 +104,7 @@ public java.lang.String getDatabase() { * * *
    -   * Database name.
    +   * The database name.
        * 
    * * string database = 1; @@ -588,7 +588,7 @@ public Builder mergeFrom( * * *
    -     * Database name.
    +     * The database name.
          * 
    * * string database = 1; @@ -611,7 +611,7 @@ public java.lang.String getDatabase() { * * *
    -     * Database name.
    +     * The database name.
          * 
    * * string database = 1; @@ -634,7 +634,7 @@ public com.google.protobuf.ByteString getDatabaseBytes() { * * *
    -     * Database name.
    +     * The database name.
          * 
    * * string database = 1; @@ -656,7 +656,7 @@ public Builder setDatabase(java.lang.String value) { * * *
    -     * Database name.
    +     * The database name.
          * 
    * * string database = 1; @@ -674,7 +674,7 @@ public Builder clearDatabase() { * * *
    -     * Database name.
    +     * The database name.
          * 
    * * string database = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbDatabaseOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbDatabaseOrBuilder.java index b12aa44d1069..866f426ca36e 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbDatabaseOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbDatabaseOrBuilder.java @@ -30,7 +30,7 @@ public interface MongodbDatabaseOrBuilder * * *
    -   * Database name.
    +   * The database name.
        * 
    * * string database = 1; @@ -43,7 +43,7 @@ public interface MongodbDatabaseOrBuilder * * *
    -   * Database name.
    +   * The database name.
        * 
    * * string database = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbField.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbField.java index dc0521fc0fb3..d1e43ae005af 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbField.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbField.java @@ -79,7 +79,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Field name.
    +   * The field name.
        * 
    * * string field = 1; @@ -103,7 +103,7 @@ public java.lang.String getField() { * * *
    -   * Field name.
    +   * The field name.
        * 
    * * string field = 1; @@ -438,7 +438,7 @@ public Builder mergeFrom( * * *
    -     * Field name.
    +     * The field name.
          * 
    * * string field = 1; @@ -461,7 +461,7 @@ public java.lang.String getField() { * * *
    -     * Field name.
    +     * The field name.
          * 
    * * string field = 1; @@ -484,7 +484,7 @@ public com.google.protobuf.ByteString getFieldBytes() { * * *
    -     * Field name.
    +     * The field name.
          * 
    * * string field = 1; @@ -506,7 +506,7 @@ public Builder setField(java.lang.String value) { * * *
    -     * Field name.
    +     * The field name.
          * 
    * * string field = 1; @@ -524,7 +524,7 @@ public Builder clearField() { * * *
    -     * Field name.
    +     * The field name.
          * 
    * * string field = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbFieldOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbFieldOrBuilder.java index 1411f1e56358..84665d7e6499 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbFieldOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbFieldOrBuilder.java @@ -30,7 +30,7 @@ public interface MongodbFieldOrBuilder * * *
    -   * Field name.
    +   * The field name.
        * 
    * * string field = 1; @@ -43,7 +43,7 @@ public interface MongodbFieldOrBuilder * * *
    -   * Field name.
    +   * The field name.
        * 
    * * string field = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbJsonMode.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbJsonMode.java new file mode 100644 index 000000000000..06916fbf8bd7 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbJsonMode.java @@ -0,0 +1,193 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * MongoDB JSON mode.
    + * 
    + * + * Protobuf enum {@code google.cloud.datastream.v1.MongodbJsonMode} + */ +@com.google.protobuf.Generated +public enum MongodbJsonMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +   * Unspecified JSON mode.
    +   * 
    + * + * MONGODB_JSON_MODE_UNSPECIFIED = 0; + */ + MONGODB_JSON_MODE_UNSPECIFIED(0), + /** + * + * + *
    +   * Strict JSON mode.
    +   * 
    + * + * STRICT = 1; + */ + STRICT(1), + /** + * + * + *
    +   * Canonical JSON mode.
    +   * 
    + * + * CANONICAL = 2; + */ + CANONICAL(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "MongodbJsonMode"); + } + + /** + * + * + *
    +   * Unspecified JSON mode.
    +   * 
    + * + * MONGODB_JSON_MODE_UNSPECIFIED = 0; + */ + public static final int MONGODB_JSON_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +   * Strict JSON mode.
    +   * 
    + * + * STRICT = 1; + */ + public static final int STRICT_VALUE = 1; + + /** + * + * + *
    +   * Canonical JSON mode.
    +   * 
    + * + * CANONICAL = 2; + */ + public static final int CANONICAL_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MongodbJsonMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static MongodbJsonMode forNumber(int value) { + switch (value) { + case 0: + return MONGODB_JSON_MODE_UNSPECIFIED; + case 1: + return STRICT; + case 2: + return CANONICAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MongodbJsonMode findValueByNumber(int number) { + return MongodbJsonMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MongodbJsonMode[] VALUES = values(); + + public static MongodbJsonMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MongodbJsonMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.datastream.v1.MongodbJsonMode) +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbProfile.java index b85d65261794..79c06f28a58d 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbProfile.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbProfile.java @@ -24,7 +24,7 @@ * * *
    - * MongoDB profile.
    + * Profile for connecting to a MongoDB source.
      * 
    * * Protobuf type {@code google.cloud.datastream.v1.MongodbProfile} @@ -64,6 +64,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_datastream_v1_MongodbProfile_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetAdditionalOptions(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { @@ -622,6 +634,163 @@ public com.google.cloud.datastream.v1.StandardConnectionFormat getStandardConnec return com.google.cloud.datastream.v1.StandardConnectionFormat.getDefaultInstance(); } + public static final int ADDITIONAL_OPTIONS_FIELD_NUMBER = 7; + + private static final class AdditionalOptionsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MongodbProfile_AdditionalOptionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField additionalOptions_; + + private com.google.protobuf.MapField + internalGetAdditionalOptions() { + if (additionalOptions_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AdditionalOptionsDefaultEntryHolder.defaultEntry); + } + return additionalOptions_; + } + + public int getAdditionalOptionsCount() { + return internalGetAdditionalOptions().getMap().size(); + } + + /** + * + * + *
    +   * Optional. Specifies additional options for the MongoDB connection.
    +   *
    +   * The options should be sent as key-value pairs, for example:
    +   * `additional_options =
    +   * {"serverSelectionTimeoutMS": "10000", "directConnection": "true"}`.
    +   *
    +   * Keys are case-sensitive and should match the official MongoDB connection
    +   * string options:
    +   * https://www.mongodb.com/docs/manual/reference/connection-string-options/
    +   *
    +   * The server will not modify the values provided by the user.
    +   * 
    + * + * + * map<string, string> additional_options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAdditionalOptions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAdditionalOptions().getMap().containsKey(key); + } + + /** Use {@link #getAdditionalOptionsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAdditionalOptions() { + return getAdditionalOptionsMap(); + } + + /** + * + * + *
    +   * Optional. Specifies additional options for the MongoDB connection.
    +   *
    +   * The options should be sent as key-value pairs, for example:
    +   * `additional_options =
    +   * {"serverSelectionTimeoutMS": "10000", "directConnection": "true"}`.
    +   *
    +   * Keys are case-sensitive and should match the official MongoDB connection
    +   * string options:
    +   * https://www.mongodb.com/docs/manual/reference/connection-string-options/
    +   *
    +   * The server will not modify the values provided by the user.
    +   * 
    + * + * + * map<string, string> additional_options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAdditionalOptionsMap() { + return internalGetAdditionalOptions().getMap(); + } + + /** + * + * + *
    +   * Optional. Specifies additional options for the MongoDB connection.
    +   *
    +   * The options should be sent as key-value pairs, for example:
    +   * `additional_options =
    +   * {"serverSelectionTimeoutMS": "10000", "directConnection": "true"}`.
    +   *
    +   * Keys are case-sensitive and should match the official MongoDB connection
    +   * string options:
    +   * https://www.mongodb.com/docs/manual/reference/connection-string-options/
    +   *
    +   * The server will not modify the values provided by the user.
    +   * 
    + * + * + * map<string, string> additional_options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAdditionalOptionsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAdditionalOptions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +   * Optional. Specifies additional options for the MongoDB connection.
    +   *
    +   * The options should be sent as key-value pairs, for example:
    +   * `additional_options =
    +   * {"serverSelectionTimeoutMS": "10000", "directConnection": "true"}`.
    +   *
    +   * Keys are case-sensitive and should match the official MongoDB connection
    +   * string options:
    +   * https://www.mongodb.com/docs/manual/reference/connection-string-options/
    +   *
    +   * The server will not modify the values provided by the user.
    +   * 
    + * + * + * map<string, string> additional_options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAdditionalOptionsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAdditionalOptions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -654,6 +823,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getSslConfig()); } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetAdditionalOptions(), + AdditionalOptionsDefaultEntryHolder.defaultEntry, + 7); if (mongodbConnectionFormatCase_ == 101) { output.writeMessage( 101, (com.google.cloud.datastream.v1.SrvConnectionFormat) mongodbConnectionFormat_); @@ -690,6 +864,16 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSslConfig()); } + for (java.util.Map.Entry entry : + internalGetAdditionalOptions().getMap().entrySet()) { + com.google.protobuf.MapEntry additionalOptions__ = + AdditionalOptionsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, additionalOptions__); + } if (mongodbConnectionFormatCase_ == 101) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -727,6 +911,7 @@ public boolean equals(final java.lang.Object obj) { if (hasSslConfig()) { if (!getSslConfig().equals(other.getSslConfig())) return false; } + if (!internalGetAdditionalOptions().equals(other.internalGetAdditionalOptions())) return false; if (!getMongodbConnectionFormatCase().equals(other.getMongodbConnectionFormatCase())) return false; switch (mongodbConnectionFormatCase_) { @@ -767,6 +952,10 @@ public int hashCode() { hash = (37 * hash) + SSL_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getSslConfig().hashCode(); } + if (!internalGetAdditionalOptions().getMap().isEmpty()) { + hash = (37 * hash) + ADDITIONAL_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAdditionalOptions().hashCode(); + } switch (mongodbConnectionFormatCase_) { case 101: hash = (37 * hash) + SRV_CONNECTION_FORMAT_FIELD_NUMBER; @@ -884,7 +1073,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
    -   * MongoDB profile.
    +   * Profile for connecting to a MongoDB source.
        * 
    * * Protobuf type {@code google.cloud.datastream.v1.MongodbProfile} @@ -898,6 +1087,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_datastream_v1_MongodbProfile_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetAdditionalOptions(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetMutableAdditionalOptions(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { @@ -951,6 +1162,7 @@ public Builder clear() { if (standardConnectionFormatBuilder_ != null) { standardConnectionFormatBuilder_.clear(); } + internalGetMutableAdditionalOptions().clear(); mongodbConnectionFormatCase_ = 0; mongodbConnectionFormat_ = null; return this; @@ -1020,6 +1232,10 @@ private void buildPartial0(com.google.cloud.datastream.v1.MongodbProfile result) result.sslConfig_ = sslConfigBuilder_ == null ? sslConfig_ : sslConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.additionalOptions_ = internalGetAdditionalOptions(); + result.additionalOptions_.makeImmutable(); + } result.bitField0_ |= to_bitField0_; } @@ -1096,6 +1312,8 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.MongodbProfile other) { if (other.hasSslConfig()) { mergeSslConfig(other.getSslConfig()); } + internalGetMutableAdditionalOptions().mergeFrom(other.internalGetAdditionalOptions()); + bitField0_ |= 0x00000100; switch (other.getMongodbConnectionFormatCase()) { case SRV_CONNECTION_FORMAT: { @@ -1182,6 +1400,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 50 + case 58: + { + com.google.protobuf.MapEntry + additionalOptions__ = + input.readMessage( + AdditionalOptionsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAdditionalOptions() + .getMutableMap() + .put(additionalOptions__.getKey(), additionalOptions__.getValue()); + bitField0_ |= 0x00000100; + break; + } // case 58 case 810: { input.readMessage( @@ -2837,6 +3068,269 @@ public Builder clearStandardConnectionFormat() { return standardConnectionFormatBuilder_; } + private com.google.protobuf.MapField additionalOptions_; + + private com.google.protobuf.MapField + internalGetAdditionalOptions() { + if (additionalOptions_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AdditionalOptionsDefaultEntryHolder.defaultEntry); + } + return additionalOptions_; + } + + private com.google.protobuf.MapField + internalGetMutableAdditionalOptions() { + if (additionalOptions_ == null) { + additionalOptions_ = + com.google.protobuf.MapField.newMapField( + AdditionalOptionsDefaultEntryHolder.defaultEntry); + } + if (!additionalOptions_.isMutable()) { + additionalOptions_ = additionalOptions_.copy(); + } + bitField0_ |= 0x00000100; + onChanged(); + return additionalOptions_; + } + + public int getAdditionalOptionsCount() { + return internalGetAdditionalOptions().getMap().size(); + } + + /** + * + * + *
    +     * Optional. Specifies additional options for the MongoDB connection.
    +     *
    +     * The options should be sent as key-value pairs, for example:
    +     * `additional_options =
    +     * {"serverSelectionTimeoutMS": "10000", "directConnection": "true"}`.
    +     *
    +     * Keys are case-sensitive and should match the official MongoDB connection
    +     * string options:
    +     * https://www.mongodb.com/docs/manual/reference/connection-string-options/
    +     *
    +     * The server will not modify the values provided by the user.
    +     * 
    + * + * + * map<string, string> additional_options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAdditionalOptions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAdditionalOptions().getMap().containsKey(key); + } + + /** Use {@link #getAdditionalOptionsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAdditionalOptions() { + return getAdditionalOptionsMap(); + } + + /** + * + * + *
    +     * Optional. Specifies additional options for the MongoDB connection.
    +     *
    +     * The options should be sent as key-value pairs, for example:
    +     * `additional_options =
    +     * {"serverSelectionTimeoutMS": "10000", "directConnection": "true"}`.
    +     *
    +     * Keys are case-sensitive and should match the official MongoDB connection
    +     * string options:
    +     * https://www.mongodb.com/docs/manual/reference/connection-string-options/
    +     *
    +     * The server will not modify the values provided by the user.
    +     * 
    + * + * + * map<string, string> additional_options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAdditionalOptionsMap() { + return internalGetAdditionalOptions().getMap(); + } + + /** + * + * + *
    +     * Optional. Specifies additional options for the MongoDB connection.
    +     *
    +     * The options should be sent as key-value pairs, for example:
    +     * `additional_options =
    +     * {"serverSelectionTimeoutMS": "10000", "directConnection": "true"}`.
    +     *
    +     * Keys are case-sensitive and should match the official MongoDB connection
    +     * string options:
    +     * https://www.mongodb.com/docs/manual/reference/connection-string-options/
    +     *
    +     * The server will not modify the values provided by the user.
    +     * 
    + * + * + * map<string, string> additional_options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAdditionalOptionsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetAdditionalOptions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +     * Optional. Specifies additional options for the MongoDB connection.
    +     *
    +     * The options should be sent as key-value pairs, for example:
    +     * `additional_options =
    +     * {"serverSelectionTimeoutMS": "10000", "directConnection": "true"}`.
    +     *
    +     * Keys are case-sensitive and should match the official MongoDB connection
    +     * string options:
    +     * https://www.mongodb.com/docs/manual/reference/connection-string-options/
    +     *
    +     * The server will not modify the values provided by the user.
    +     * 
    + * + * + * map<string, string> additional_options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAdditionalOptionsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetAdditionalOptions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAdditionalOptions() { + bitField0_ = (bitField0_ & ~0x00000100); + internalGetMutableAdditionalOptions().getMutableMap().clear(); + return this; + } + + /** + * + * + *
    +     * Optional. Specifies additional options for the MongoDB connection.
    +     *
    +     * The options should be sent as key-value pairs, for example:
    +     * `additional_options =
    +     * {"serverSelectionTimeoutMS": "10000", "directConnection": "true"}`.
    +     *
    +     * Keys are case-sensitive and should match the official MongoDB connection
    +     * string options:
    +     * https://www.mongodb.com/docs/manual/reference/connection-string-options/
    +     *
    +     * The server will not modify the values provided by the user.
    +     * 
    + * + * + * map<string, string> additional_options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAdditionalOptions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAdditionalOptions().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAdditionalOptions() { + bitField0_ |= 0x00000100; + return internalGetMutableAdditionalOptions().getMutableMap(); + } + + /** + * + * + *
    +     * Optional. Specifies additional options for the MongoDB connection.
    +     *
    +     * The options should be sent as key-value pairs, for example:
    +     * `additional_options =
    +     * {"serverSelectionTimeoutMS": "10000", "directConnection": "true"}`.
    +     *
    +     * Keys are case-sensitive and should match the official MongoDB connection
    +     * string options:
    +     * https://www.mongodb.com/docs/manual/reference/connection-string-options/
    +     *
    +     * The server will not modify the values provided by the user.
    +     * 
    + * + * + * map<string, string> additional_options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAdditionalOptions(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAdditionalOptions().getMutableMap().put(key, value); + bitField0_ |= 0x00000100; + return this; + } + + /** + * + * + *
    +     * Optional. Specifies additional options for the MongoDB connection.
    +     *
    +     * The options should be sent as key-value pairs, for example:
    +     * `additional_options =
    +     * {"serverSelectionTimeoutMS": "10000", "directConnection": "true"}`.
    +     *
    +     * Keys are case-sensitive and should match the official MongoDB connection
    +     * string options:
    +     * https://www.mongodb.com/docs/manual/reference/connection-string-options/
    +     *
    +     * The server will not modify the values provided by the user.
    +     * 
    + * + * + * map<string, string> additional_options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAdditionalOptions( + java.util.Map values) { + internalGetMutableAdditionalOptions().getMutableMap().putAll(values); + bitField0_ |= 0x00000100; + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.MongodbProfile) } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbProfileOrBuilder.java index 3a7c5327735f..8df54f0d94ef 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbProfileOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbProfileOrBuilder.java @@ -344,6 +344,129 @@ public interface MongodbProfileOrBuilder com.google.cloud.datastream.v1.StandardConnectionFormatOrBuilder getStandardConnectionFormatOrBuilder(); + /** + * + * + *
    +   * Optional. Specifies additional options for the MongoDB connection.
    +   *
    +   * The options should be sent as key-value pairs, for example:
    +   * `additional_options =
    +   * {"serverSelectionTimeoutMS": "10000", "directConnection": "true"}`.
    +   *
    +   * Keys are case-sensitive and should match the official MongoDB connection
    +   * string options:
    +   * https://www.mongodb.com/docs/manual/reference/connection-string-options/
    +   *
    +   * The server will not modify the values provided by the user.
    +   * 
    + * + * + * map<string, string> additional_options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAdditionalOptionsCount(); + + /** + * + * + *
    +   * Optional. Specifies additional options for the MongoDB connection.
    +   *
    +   * The options should be sent as key-value pairs, for example:
    +   * `additional_options =
    +   * {"serverSelectionTimeoutMS": "10000", "directConnection": "true"}`.
    +   *
    +   * Keys are case-sensitive and should match the official MongoDB connection
    +   * string options:
    +   * https://www.mongodb.com/docs/manual/reference/connection-string-options/
    +   *
    +   * The server will not modify the values provided by the user.
    +   * 
    + * + * + * map<string, string> additional_options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAdditionalOptions(java.lang.String key); + + /** Use {@link #getAdditionalOptionsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAdditionalOptions(); + + /** + * + * + *
    +   * Optional. Specifies additional options for the MongoDB connection.
    +   *
    +   * The options should be sent as key-value pairs, for example:
    +   * `additional_options =
    +   * {"serverSelectionTimeoutMS": "10000", "directConnection": "true"}`.
    +   *
    +   * Keys are case-sensitive and should match the official MongoDB connection
    +   * string options:
    +   * https://www.mongodb.com/docs/manual/reference/connection-string-options/
    +   *
    +   * The server will not modify the values provided by the user.
    +   * 
    + * + * + * map<string, string> additional_options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAdditionalOptionsMap(); + + /** + * + * + *
    +   * Optional. Specifies additional options for the MongoDB connection.
    +   *
    +   * The options should be sent as key-value pairs, for example:
    +   * `additional_options =
    +   * {"serverSelectionTimeoutMS": "10000", "directConnection": "true"}`.
    +   *
    +   * Keys are case-sensitive and should match the official MongoDB connection
    +   * string options:
    +   * https://www.mongodb.com/docs/manual/reference/connection-string-options/
    +   *
    +   * The server will not modify the values provided by the user.
    +   * 
    + * + * + * map<string, string> additional_options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getAdditionalOptionsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
    +   * Optional. Specifies additional options for the MongoDB connection.
    +   *
    +   * The options should be sent as key-value pairs, for example:
    +   * `additional_options =
    +   * {"serverSelectionTimeoutMS": "10000", "directConnection": "true"}`.
    +   *
    +   * Keys are case-sensitive and should match the official MongoDB connection
    +   * string options:
    +   * https://www.mongodb.com/docs/manual/reference/connection-string-options/
    +   *
    +   * The server will not modify the values provided by the user.
    +   * 
    + * + * + * map<string, string> additional_options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getAdditionalOptionsOrThrow(java.lang.String key); + com.google.cloud.datastream.v1.MongodbProfile.MongodbConnectionFormatCase getMongodbConnectionFormatCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbSourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbSourceConfig.java index 6dc9d1508f60..a092c59a200b 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbSourceConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbSourceConfig.java @@ -24,7 +24,7 @@ * * *
    - * MongoDB source configuration.
    + * Configuration for syncing data from a MongoDB source.
      * 
    * * Protobuf type {@code google.cloud.datastream.v1.MongodbSourceConfig} @@ -51,7 +51,9 @@ private MongodbSourceConfig(com.google.protobuf.GeneratedMessage.Builder buil super(builder); } - private MongodbSourceConfig() {} + private MongodbSourceConfig() { + jsonMode_ = 0; + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.datastream.v1.DatastreamResourcesProto @@ -76,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * MongoDB collections to include in the stream.
    +   * The MongoDB collections to include in the stream.
        * 
    * * .google.cloud.datastream.v1.MongodbCluster include_objects = 1; @@ -92,7 +94,7 @@ public boolean hasIncludeObjects() { * * *
    -   * MongoDB collections to include in the stream.
    +   * The MongoDB collections to include in the stream.
        * 
    * * .google.cloud.datastream.v1.MongodbCluster include_objects = 1; @@ -110,7 +112,7 @@ public com.google.cloud.datastream.v1.MongodbCluster getIncludeObjects() { * * *
    -   * MongoDB collections to include in the stream.
    +   * The MongoDB collections to include in the stream.
        * 
    * * .google.cloud.datastream.v1.MongodbCluster include_objects = 1; @@ -129,7 +131,7 @@ public com.google.cloud.datastream.v1.MongodbClusterOrBuilder getIncludeObjectsO * * *
    -   * MongoDB collections to exclude from the stream.
    +   * The MongoDB collections to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.MongodbCluster exclude_objects = 2; @@ -145,7 +147,7 @@ public boolean hasExcludeObjects() { * * *
    -   * MongoDB collections to exclude from the stream.
    +   * The MongoDB collections to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.MongodbCluster exclude_objects = 2; @@ -163,7 +165,7 @@ public com.google.cloud.datastream.v1.MongodbCluster getExcludeObjects() { * * *
    -   * MongoDB collections to exclude from the stream.
    +   * The MongoDB collections to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.MongodbCluster exclude_objects = 2; @@ -196,6 +198,47 @@ public int getMaxConcurrentBackfillTasks() { return maxConcurrentBackfillTasks_; } + public static final int JSON_MODE_FIELD_NUMBER = 4; + private int jsonMode_ = 0; + + /** + * + * + *
    +   * Optional. MongoDB JSON mode to use for the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.MongodbJsonMode json_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for jsonMode. + */ + @java.lang.Override + public int getJsonModeValue() { + return jsonMode_; + } + + /** + * + * + *
    +   * Optional. MongoDB JSON mode to use for the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.MongodbJsonMode json_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The jsonMode. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MongodbJsonMode getJsonMode() { + com.google.cloud.datastream.v1.MongodbJsonMode result = + com.google.cloud.datastream.v1.MongodbJsonMode.forNumber(jsonMode_); + return result == null ? com.google.cloud.datastream.v1.MongodbJsonMode.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -219,6 +262,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxConcurrentBackfillTasks_ != 0) { output.writeInt32(3, maxConcurrentBackfillTasks_); } + if (jsonMode_ + != com.google.cloud.datastream.v1.MongodbJsonMode.MONGODB_JSON_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, jsonMode_); + } getUnknownFields().writeTo(output); } @@ -238,6 +286,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxConcurrentBackfillTasks_); } + if (jsonMode_ + != com.google.cloud.datastream.v1.MongodbJsonMode.MONGODB_JSON_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, jsonMode_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -263,6 +316,7 @@ public boolean equals(final java.lang.Object obj) { if (!getExcludeObjects().equals(other.getExcludeObjects())) return false; } if (getMaxConcurrentBackfillTasks() != other.getMaxConcurrentBackfillTasks()) return false; + if (jsonMode_ != other.jsonMode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -284,6 +338,8 @@ public int hashCode() { } hash = (37 * hash) + MAX_CONCURRENT_BACKFILL_TASKS_FIELD_NUMBER; hash = (53 * hash) + getMaxConcurrentBackfillTasks(); + hash = (37 * hash) + JSON_MODE_FIELD_NUMBER; + hash = (53 * hash) + jsonMode_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -389,7 +445,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
    -   * MongoDB source configuration.
    +   * Configuration for syncing data from a MongoDB source.
        * 
    * * Protobuf type {@code google.cloud.datastream.v1.MongodbSourceConfig} @@ -445,6 +501,7 @@ public Builder clear() { excludeObjectsBuilder_ = null; } maxConcurrentBackfillTasks_ = 0; + jsonMode_ = 0; return this; } @@ -495,6 +552,9 @@ private void buildPartial0(com.google.cloud.datastream.v1.MongodbSourceConfig re if (((from_bitField0_ & 0x00000004) != 0)) { result.maxConcurrentBackfillTasks_ = maxConcurrentBackfillTasks_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.jsonMode_ = jsonMode_; + } result.bitField0_ |= to_bitField0_; } @@ -520,6 +580,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.MongodbSourceConfig othe if (other.getMaxConcurrentBackfillTasks() != 0) { setMaxConcurrentBackfillTasks(other.getMaxConcurrentBackfillTasks()); } + if (other.jsonMode_ != 0) { + setJsonModeValue(other.getJsonModeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -566,6 +629,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 24 + case 32: + { + jsonMode_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -596,7 +665,7 @@ public Builder mergeFrom( * * *
    -     * MongoDB collections to include in the stream.
    +     * The MongoDB collections to include in the stream.
          * 
    * * .google.cloud.datastream.v1.MongodbCluster include_objects = 1; @@ -611,7 +680,7 @@ public boolean hasIncludeObjects() { * * *
    -     * MongoDB collections to include in the stream.
    +     * The MongoDB collections to include in the stream.
          * 
    * * .google.cloud.datastream.v1.MongodbCluster include_objects = 1; @@ -632,7 +701,7 @@ public com.google.cloud.datastream.v1.MongodbCluster getIncludeObjects() { * * *
    -     * MongoDB collections to include in the stream.
    +     * The MongoDB collections to include in the stream.
          * 
    * * .google.cloud.datastream.v1.MongodbCluster include_objects = 1; @@ -655,7 +724,7 @@ public Builder setIncludeObjects(com.google.cloud.datastream.v1.MongodbCluster v * * *
    -     * MongoDB collections to include in the stream.
    +     * The MongoDB collections to include in the stream.
          * 
    * * .google.cloud.datastream.v1.MongodbCluster include_objects = 1; @@ -676,7 +745,7 @@ public Builder setIncludeObjects( * * *
    -     * MongoDB collections to include in the stream.
    +     * The MongoDB collections to include in the stream.
          * 
    * * .google.cloud.datastream.v1.MongodbCluster include_objects = 1; @@ -705,7 +774,7 @@ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.MongodbCluster * * *
    -     * MongoDB collections to include in the stream.
    +     * The MongoDB collections to include in the stream.
          * 
    * * .google.cloud.datastream.v1.MongodbCluster include_objects = 1; @@ -725,7 +794,7 @@ public Builder clearIncludeObjects() { * * *
    -     * MongoDB collections to include in the stream.
    +     * The MongoDB collections to include in the stream.
          * 
    * * .google.cloud.datastream.v1.MongodbCluster include_objects = 1; @@ -740,7 +809,7 @@ public com.google.cloud.datastream.v1.MongodbCluster.Builder getIncludeObjectsBu * * *
    -     * MongoDB collections to include in the stream.
    +     * The MongoDB collections to include in the stream.
          * 
    * * .google.cloud.datastream.v1.MongodbCluster include_objects = 1; @@ -759,7 +828,7 @@ public com.google.cloud.datastream.v1.MongodbClusterOrBuilder getIncludeObjectsO * * *
    -     * MongoDB collections to include in the stream.
    +     * The MongoDB collections to include in the stream.
          * 
    * * .google.cloud.datastream.v1.MongodbCluster include_objects = 1; @@ -792,7 +861,7 @@ public com.google.cloud.datastream.v1.MongodbClusterOrBuilder getIncludeObjectsO * * *
    -     * MongoDB collections to exclude from the stream.
    +     * The MongoDB collections to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.MongodbCluster exclude_objects = 2; @@ -807,7 +876,7 @@ public boolean hasExcludeObjects() { * * *
    -     * MongoDB collections to exclude from the stream.
    +     * The MongoDB collections to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.MongodbCluster exclude_objects = 2; @@ -828,7 +897,7 @@ public com.google.cloud.datastream.v1.MongodbCluster getExcludeObjects() { * * *
    -     * MongoDB collections to exclude from the stream.
    +     * The MongoDB collections to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.MongodbCluster exclude_objects = 2; @@ -851,7 +920,7 @@ public Builder setExcludeObjects(com.google.cloud.datastream.v1.MongodbCluster v * * *
    -     * MongoDB collections to exclude from the stream.
    +     * The MongoDB collections to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.MongodbCluster exclude_objects = 2; @@ -872,7 +941,7 @@ public Builder setExcludeObjects( * * *
    -     * MongoDB collections to exclude from the stream.
    +     * The MongoDB collections to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.MongodbCluster exclude_objects = 2; @@ -901,7 +970,7 @@ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.MongodbCluster * * *
    -     * MongoDB collections to exclude from the stream.
    +     * The MongoDB collections to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.MongodbCluster exclude_objects = 2; @@ -921,7 +990,7 @@ public Builder clearExcludeObjects() { * * *
    -     * MongoDB collections to exclude from the stream.
    +     * The MongoDB collections to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.MongodbCluster exclude_objects = 2; @@ -936,7 +1005,7 @@ public com.google.cloud.datastream.v1.MongodbCluster.Builder getExcludeObjectsBu * * *
    -     * MongoDB collections to exclude from the stream.
    +     * The MongoDB collections to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.MongodbCluster exclude_objects = 2; @@ -955,7 +1024,7 @@ public com.google.cloud.datastream.v1.MongodbClusterOrBuilder getExcludeObjectsO * * *
    -     * MongoDB collections to exclude from the stream.
    +     * The MongoDB collections to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.MongodbCluster exclude_objects = 2; @@ -1042,6 +1111,111 @@ public Builder clearMaxConcurrentBackfillTasks() { return this; } + private int jsonMode_ = 0; + + /** + * + * + *
    +     * Optional. MongoDB JSON mode to use for the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.MongodbJsonMode json_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for jsonMode. + */ + @java.lang.Override + public int getJsonModeValue() { + return jsonMode_; + } + + /** + * + * + *
    +     * Optional. MongoDB JSON mode to use for the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.MongodbJsonMode json_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for jsonMode to set. + * @return This builder for chaining. + */ + public Builder setJsonModeValue(int value) { + jsonMode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. MongoDB JSON mode to use for the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.MongodbJsonMode json_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The jsonMode. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MongodbJsonMode getJsonMode() { + com.google.cloud.datastream.v1.MongodbJsonMode result = + com.google.cloud.datastream.v1.MongodbJsonMode.forNumber(jsonMode_); + return result == null ? com.google.cloud.datastream.v1.MongodbJsonMode.UNRECOGNIZED : result; + } + + /** + * + * + *
    +     * Optional. MongoDB JSON mode to use for the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.MongodbJsonMode json_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The jsonMode to set. + * @return This builder for chaining. + */ + public Builder setJsonMode(com.google.cloud.datastream.v1.MongodbJsonMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + jsonMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. MongoDB JSON mode to use for the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.MongodbJsonMode json_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearJsonMode() { + bitField0_ = (bitField0_ & ~0x00000008); + jsonMode_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.MongodbSourceConfig) } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbSourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbSourceConfigOrBuilder.java index a70620a7ec50..3376e507c628 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbSourceConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MongodbSourceConfigOrBuilder.java @@ -30,7 +30,7 @@ public interface MongodbSourceConfigOrBuilder * * *
    -   * MongoDB collections to include in the stream.
    +   * The MongoDB collections to include in the stream.
        * 
    * * .google.cloud.datastream.v1.MongodbCluster include_objects = 1; @@ -43,7 +43,7 @@ public interface MongodbSourceConfigOrBuilder * * *
    -   * MongoDB collections to include in the stream.
    +   * The MongoDB collections to include in the stream.
        * 
    * * .google.cloud.datastream.v1.MongodbCluster include_objects = 1; @@ -56,7 +56,7 @@ public interface MongodbSourceConfigOrBuilder * * *
    -   * MongoDB collections to include in the stream.
    +   * The MongoDB collections to include in the stream.
        * 
    * * .google.cloud.datastream.v1.MongodbCluster include_objects = 1; @@ -67,7 +67,7 @@ public interface MongodbSourceConfigOrBuilder * * *
    -   * MongoDB collections to exclude from the stream.
    +   * The MongoDB collections to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.MongodbCluster exclude_objects = 2; @@ -80,7 +80,7 @@ public interface MongodbSourceConfigOrBuilder * * *
    -   * MongoDB collections to exclude from the stream.
    +   * The MongoDB collections to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.MongodbCluster exclude_objects = 2; @@ -93,7 +93,7 @@ public interface MongodbSourceConfigOrBuilder * * *
    -   * MongoDB collections to exclude from the stream.
    +   * The MongoDB collections to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.MongodbCluster exclude_objects = 2; @@ -114,4 +114,34 @@ public interface MongodbSourceConfigOrBuilder * @return The maxConcurrentBackfillTasks. */ int getMaxConcurrentBackfillTasks(); + + /** + * + * + *
    +   * Optional. MongoDB JSON mode to use for the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.MongodbJsonMode json_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for jsonMode. + */ + int getJsonModeValue(); + + /** + * + * + *
    +   * Optional. MongoDB JSON mode to use for the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.MongodbJsonMode json_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The jsonMode. + */ + com.google.cloud.datastream.v1.MongodbJsonMode getJsonMode(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java index 213b39ad4fa1..c147fbc26e76 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Column name.
    +   * The column name.
        * 
    * * string column = 1; @@ -105,7 +105,7 @@ public java.lang.String getColumn() { * * *
    -   * Column name.
    +   * The column name.
        * 
    * * string column = 1; @@ -842,7 +842,7 @@ public Builder mergeFrom( * * *
    -     * Column name.
    +     * The column name.
          * 
    * * string column = 1; @@ -865,7 +865,7 @@ public java.lang.String getColumn() { * * *
    -     * Column name.
    +     * The column name.
          * 
    * * string column = 1; @@ -888,7 +888,7 @@ public com.google.protobuf.ByteString getColumnBytes() { * * *
    -     * Column name.
    +     * The column name.
          * 
    * * string column = 1; @@ -910,7 +910,7 @@ public Builder setColumn(java.lang.String value) { * * *
    -     * Column name.
    +     * The column name.
          * 
    * * string column = 1; @@ -928,7 +928,7 @@ public Builder clearColumn() { * * *
    -     * Column name.
    +     * The column name.
          * 
    * * string column = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java index 554f16372a4d..8f029f712273 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java @@ -30,7 +30,7 @@ public interface MysqlColumnOrBuilder * * *
    -   * Column name.
    +   * The column name.
        * 
    * * string column = 1; @@ -43,7 +43,7 @@ public interface MysqlColumnOrBuilder * * *
    -   * Column name.
    +   * The column name.
        * 
    * * string column = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java index f40751d76b83..a510212f8e5d 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Database name.
    +   * The database name.
        * 
    * * string database = 1; @@ -104,7 +104,7 @@ public java.lang.String getDatabase() { * * *
    -   * Database name.
    +   * The database name.
        * 
    * * string database = 1; @@ -586,7 +586,7 @@ public Builder mergeFrom( * * *
    -     * Database name.
    +     * The database name.
          * 
    * * string database = 1; @@ -609,7 +609,7 @@ public java.lang.String getDatabase() { * * *
    -     * Database name.
    +     * The database name.
          * 
    * * string database = 1; @@ -632,7 +632,7 @@ public com.google.protobuf.ByteString getDatabaseBytes() { * * *
    -     * Database name.
    +     * The database name.
          * 
    * * string database = 1; @@ -654,7 +654,7 @@ public Builder setDatabase(java.lang.String value) { * * *
    -     * Database name.
    +     * The database name.
          * 
    * * string database = 1; @@ -672,7 +672,7 @@ public Builder clearDatabase() { * * *
    -     * Database name.
    +     * The database name.
          * 
    * * string database = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java index 340e0da46d0a..b25b4e1d3e48 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java @@ -30,7 +30,7 @@ public interface MysqlDatabaseOrBuilder * * *
    -   * Database name.
    +   * The database name.
        * 
    * * string database = 1; @@ -43,7 +43,7 @@ public interface MysqlDatabaseOrBuilder * * *
    -   * Database name.
    +   * The database name.
        * 
    * * string database = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java index 5371f6c1f126..3c15ab429546 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java @@ -24,7 +24,7 @@ * * *
    - * MySQL database profile.
    + * Profile for connecting to a MySQL source.
      * 
    * * Protobuf type {@code google.cloud.datastream.v1.MysqlProfile} @@ -584,7 +584,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
    -   * MySQL database profile.
    +   * Profile for connecting to a MySQL source.
        * 
    * * Protobuf type {@code google.cloud.datastream.v1.MysqlProfile} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java index e322aaa6df24..b1e0c0c091d7 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java @@ -24,7 +24,7 @@ * * *
    - * MySQL source configuration
    + * Configuration for syncing data from a MySQL source.
      * 
    * * Protobuf type {@code google.cloud.datastream.v1.MysqlSourceConfig} @@ -898,7 +898,7 @@ public CdcMethodCase getCdcMethodCase() { * * *
    -   * MySQL objects to retrieve from the source.
    +   * The MySQL objects to retrieve from the source.
        * 
    * * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; @@ -914,7 +914,7 @@ public boolean hasIncludeObjects() { * * *
    -   * MySQL objects to retrieve from the source.
    +   * The MySQL objects to retrieve from the source.
        * 
    * * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; @@ -932,7 +932,7 @@ public com.google.cloud.datastream.v1.MysqlRdbms getIncludeObjects() { * * *
    -   * MySQL objects to retrieve from the source.
    +   * The MySQL objects to retrieve from the source.
        * 
    * * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; @@ -951,7 +951,7 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getIncludeObjectsOrBui * * *
    -   * MySQL objects to exclude from the stream.
    +   * The MySQL objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; @@ -967,7 +967,7 @@ public boolean hasExcludeObjects() { * * *
    -   * MySQL objects to exclude from the stream.
    +   * The MySQL objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; @@ -985,7 +985,7 @@ public com.google.cloud.datastream.v1.MysqlRdbms getExcludeObjects() { * * *
    -   * MySQL objects to exclude from the stream.
    +   * The MySQL objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; @@ -1395,7 +1395,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
    -   * MySQL source configuration
    +   * Configuration for syncing data from a MySQL source.
        * 
    * * Protobuf type {@code google.cloud.datastream.v1.MysqlSourceConfig} @@ -1678,7 +1678,7 @@ public Builder clearCdcMethod() { * * *
    -     * MySQL objects to retrieve from the source.
    +     * The MySQL objects to retrieve from the source.
          * 
    * * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; @@ -1693,7 +1693,7 @@ public boolean hasIncludeObjects() { * * *
    -     * MySQL objects to retrieve from the source.
    +     * The MySQL objects to retrieve from the source.
          * 
    * * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; @@ -1714,7 +1714,7 @@ public com.google.cloud.datastream.v1.MysqlRdbms getIncludeObjects() { * * *
    -     * MySQL objects to retrieve from the source.
    +     * The MySQL objects to retrieve from the source.
          * 
    * * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; @@ -1737,7 +1737,7 @@ public Builder setIncludeObjects(com.google.cloud.datastream.v1.MysqlRdbms value * * *
    -     * MySQL objects to retrieve from the source.
    +     * The MySQL objects to retrieve from the source.
          * 
    * * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; @@ -1758,7 +1758,7 @@ public Builder setIncludeObjects( * * *
    -     * MySQL objects to retrieve from the source.
    +     * The MySQL objects to retrieve from the source.
          * 
    * * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; @@ -1786,7 +1786,7 @@ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.MysqlRdbms val * * *
    -     * MySQL objects to retrieve from the source.
    +     * The MySQL objects to retrieve from the source.
          * 
    * * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; @@ -1806,7 +1806,7 @@ public Builder clearIncludeObjects() { * * *
    -     * MySQL objects to retrieve from the source.
    +     * The MySQL objects to retrieve from the source.
          * 
    * * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; @@ -1821,7 +1821,7 @@ public com.google.cloud.datastream.v1.MysqlRdbms.Builder getIncludeObjectsBuilde * * *
    -     * MySQL objects to retrieve from the source.
    +     * The MySQL objects to retrieve from the source.
          * 
    * * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; @@ -1840,7 +1840,7 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getIncludeObjectsOrBui * * *
    -     * MySQL objects to retrieve from the source.
    +     * The MySQL objects to retrieve from the source.
          * 
    * * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; @@ -1873,7 +1873,7 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getIncludeObjectsOrBui * * *
    -     * MySQL objects to exclude from the stream.
    +     * The MySQL objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; @@ -1888,7 +1888,7 @@ public boolean hasExcludeObjects() { * * *
    -     * MySQL objects to exclude from the stream.
    +     * The MySQL objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; @@ -1909,7 +1909,7 @@ public com.google.cloud.datastream.v1.MysqlRdbms getExcludeObjects() { * * *
    -     * MySQL objects to exclude from the stream.
    +     * The MySQL objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; @@ -1932,7 +1932,7 @@ public Builder setExcludeObjects(com.google.cloud.datastream.v1.MysqlRdbms value * * *
    -     * MySQL objects to exclude from the stream.
    +     * The MySQL objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; @@ -1953,7 +1953,7 @@ public Builder setExcludeObjects( * * *
    -     * MySQL objects to exclude from the stream.
    +     * The MySQL objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; @@ -1981,7 +1981,7 @@ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.MysqlRdbms val * * *
    -     * MySQL objects to exclude from the stream.
    +     * The MySQL objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; @@ -2001,7 +2001,7 @@ public Builder clearExcludeObjects() { * * *
    -     * MySQL objects to exclude from the stream.
    +     * The MySQL objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; @@ -2016,7 +2016,7 @@ public com.google.cloud.datastream.v1.MysqlRdbms.Builder getExcludeObjectsBuilde * * *
    -     * MySQL objects to exclude from the stream.
    +     * The MySQL objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; @@ -2035,7 +2035,7 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getExcludeObjectsOrBui * * *
    -     * MySQL objects to exclude from the stream.
    +     * The MySQL objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java index e40580716f2d..38382d56f27b 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java @@ -30,7 +30,7 @@ public interface MysqlSourceConfigOrBuilder * * *
    -   * MySQL objects to retrieve from the source.
    +   * The MySQL objects to retrieve from the source.
        * 
    * * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; @@ -43,7 +43,7 @@ public interface MysqlSourceConfigOrBuilder * * *
    -   * MySQL objects to retrieve from the source.
    +   * The MySQL objects to retrieve from the source.
        * 
    * * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; @@ -56,7 +56,7 @@ public interface MysqlSourceConfigOrBuilder * * *
    -   * MySQL objects to retrieve from the source.
    +   * The MySQL objects to retrieve from the source.
        * 
    * * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; @@ -67,7 +67,7 @@ public interface MysqlSourceConfigOrBuilder * * *
    -   * MySQL objects to exclude from the stream.
    +   * The MySQL objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; @@ -80,7 +80,7 @@ public interface MysqlSourceConfigOrBuilder * * *
    -   * MySQL objects to exclude from the stream.
    +   * The MySQL objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; @@ -93,7 +93,7 @@ public interface MysqlSourceConfigOrBuilder * * *
    -   * MySQL objects to exclude from the stream.
    +   * The MySQL objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java index 1ce446160769..a6735bc6770f 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Table name.
    +   * The table name.
        * 
    * * string table = 1; @@ -104,7 +104,7 @@ public java.lang.String getTable() { * * *
    -   * Table name.
    +   * The table name.
        * 
    * * string table = 1; @@ -596,7 +596,7 @@ public Builder mergeFrom( * * *
    -     * Table name.
    +     * The table name.
          * 
    * * string table = 1; @@ -619,7 +619,7 @@ public java.lang.String getTable() { * * *
    -     * Table name.
    +     * The table name.
          * 
    * * string table = 1; @@ -642,7 +642,7 @@ public com.google.protobuf.ByteString getTableBytes() { * * *
    -     * Table name.
    +     * The table name.
          * 
    * * string table = 1; @@ -664,7 +664,7 @@ public Builder setTable(java.lang.String value) { * * *
    -     * Table name.
    +     * The table name.
          * 
    * * string table = 1; @@ -682,7 +682,7 @@ public Builder clearTable() { * * *
    -     * Table name.
    +     * The table name.
          * 
    * * string table = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java index 42ca93ec556b..b1b0704fc1ae 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java @@ -30,7 +30,7 @@ public interface MysqlTableOrBuilder * * *
    -   * Table name.
    +   * The table name.
        * 
    * * string table = 1; @@ -43,7 +43,7 @@ public interface MysqlTableOrBuilder * * *
    -   * Table name.
    +   * The table name.
        * 
    * * string table = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OauthClientCredentials.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OauthClientCredentials.java new file mode 100644 index 000000000000..adae650d509b --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OauthClientCredentials.java @@ -0,0 +1,914 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * OAuth Client Credentials.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.OauthClientCredentials} + */ +@com.google.protobuf.Generated +public final class OauthClientCredentials extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OauthClientCredentials) + OauthClientCredentialsOrBuilder { + 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= */ "", + "OauthClientCredentials"); + } + + // Use OauthClientCredentials.newBuilder() to construct. + private OauthClientCredentials(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OauthClientCredentials() { + clientId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OauthClientCredentials_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OauthClientCredentials_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OauthClientCredentials.class, + com.google.cloud.datastream.v1.OauthClientCredentials.Builder.class); + } + + private int bitField0_; + public static final int CLIENT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientId_ = ""; + + /** + * + * + *
    +   * Required. Client ID for OAuth Client Credentials.
    +   * 
    + * + * string client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clientId. + */ + @java.lang.Override + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + 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(); + clientId_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. Client ID for OAuth Client Credentials.
    +   * 
    + * + * string client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clientId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_SECRET_FIELD_NUMBER = 2; + private com.google.cloud.datastream.v1.Secret clientSecret_; + + /** + * + * + *
    +   * Required. Client secret for OAuth Client Credentials.
    +   * 
    + * + * + * .google.cloud.datastream.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the clientSecret field is set. + */ + @java.lang.Override + public boolean hasClientSecret() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. Client secret for OAuth Client Credentials.
    +   * 
    + * + * + * .google.cloud.datastream.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clientSecret. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.Secret getClientSecret() { + return clientSecret_ == null + ? com.google.cloud.datastream.v1.Secret.getDefaultInstance() + : clientSecret_; + } + + /** + * + * + *
    +   * Required. Client secret for OAuth Client Credentials.
    +   * 
    + * + * + * .google.cloud.datastream.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SecretOrBuilder getClientSecretOrBuilder() { + return clientSecret_ == null + ? com.google.cloud.datastream.v1.Secret.getDefaultInstance() + : clientSecret_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, clientId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getClientSecret()); + } + 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(clientId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, clientId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getClientSecret()); + } + 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.datastream.v1.OauthClientCredentials)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.OauthClientCredentials other = + (com.google.cloud.datastream.v1.OauthClientCredentials) obj; + + if (!getClientId().equals(other.getClientId())) return false; + if (hasClientSecret() != other.hasClientSecret()) return false; + if (hasClientSecret()) { + if (!getClientSecret().equals(other.getClientSecret())) 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) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); + if (hasClientSecret()) { + hash = (37 * hash) + CLIENT_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getClientSecret().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.OauthClientCredentials parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OauthClientCredentials 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.datastream.v1.OauthClientCredentials parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OauthClientCredentials 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.datastream.v1.OauthClientCredentials parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OauthClientCredentials parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.OauthClientCredentials parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OauthClientCredentials 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.datastream.v1.OauthClientCredentials parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OauthClientCredentials 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.datastream.v1.OauthClientCredentials parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OauthClientCredentials 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.datastream.v1.OauthClientCredentials 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; + } + + /** + * + * + *
    +   * OAuth Client Credentials.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.OauthClientCredentials} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OauthClientCredentials) + com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OauthClientCredentials_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OauthClientCredentials_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OauthClientCredentials.class, + com.google.cloud.datastream.v1.OauthClientCredentials.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.OauthClientCredentials.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetClientSecretFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clientId_ = ""; + clientSecret_ = null; + if (clientSecretBuilder_ != null) { + clientSecretBuilder_.dispose(); + clientSecretBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OauthClientCredentials_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OauthClientCredentials getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OauthClientCredentials.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OauthClientCredentials build() { + com.google.cloud.datastream.v1.OauthClientCredentials result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OauthClientCredentials buildPartial() { + com.google.cloud.datastream.v1.OauthClientCredentials result = + new com.google.cloud.datastream.v1.OauthClientCredentials(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.OauthClientCredentials result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clientId_ = clientId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clientSecret_ = + clientSecretBuilder_ == null ? clientSecret_ : clientSecretBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.OauthClientCredentials) { + return mergeFrom((com.google.cloud.datastream.v1.OauthClientCredentials) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.OauthClientCredentials other) { + if (other == com.google.cloud.datastream.v1.OauthClientCredentials.getDefaultInstance()) + return this; + if (!other.getClientId().isEmpty()) { + clientId_ = other.clientId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasClientSecret()) { + mergeClientSecret(other.getClientSecret()); + } + 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: + { + clientId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetClientSecretFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object clientId_ = ""; + + /** + * + * + *
    +     * Required. Client ID for OAuth Client Credentials.
    +     * 
    + * + * string client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clientId. + */ + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. Client ID for OAuth Client Credentials.
    +     * 
    + * + * string client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clientId. + */ + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. Client ID for OAuth Client Credentials.
    +     * 
    + * + * string client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clientId to set. + * @return This builder for chaining. + */ + public Builder setClientId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Client ID for OAuth Client Credentials.
    +     * 
    + * + * string client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClientId() { + clientId_ = getDefaultInstance().getClientId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Client ID for OAuth Client Credentials.
    +     * 
    + * + * string client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clientId to set. + * @return This builder for chaining. + */ + public Builder setClientIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.datastream.v1.Secret clientSecret_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.Secret, + com.google.cloud.datastream.v1.Secret.Builder, + com.google.cloud.datastream.v1.SecretOrBuilder> + clientSecretBuilder_; + + /** + * + * + *
    +     * Required. Client secret for OAuth Client Credentials.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the clientSecret field is set. + */ + public boolean hasClientSecret() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. Client secret for OAuth Client Credentials.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clientSecret. + */ + public com.google.cloud.datastream.v1.Secret getClientSecret() { + if (clientSecretBuilder_ == null) { + return clientSecret_ == null + ? com.google.cloud.datastream.v1.Secret.getDefaultInstance() + : clientSecret_; + } else { + return clientSecretBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. Client secret for OAuth Client Credentials.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setClientSecret(com.google.cloud.datastream.v1.Secret value) { + if (clientSecretBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clientSecret_ = value; + } else { + clientSecretBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Client secret for OAuth Client Credentials.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setClientSecret(com.google.cloud.datastream.v1.Secret.Builder builderForValue) { + if (clientSecretBuilder_ == null) { + clientSecret_ = builderForValue.build(); + } else { + clientSecretBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Client secret for OAuth Client Credentials.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeClientSecret(com.google.cloud.datastream.v1.Secret value) { + if (clientSecretBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && clientSecret_ != null + && clientSecret_ != com.google.cloud.datastream.v1.Secret.getDefaultInstance()) { + getClientSecretBuilder().mergeFrom(value); + } else { + clientSecret_ = value; + } + } else { + clientSecretBuilder_.mergeFrom(value); + } + if (clientSecret_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. Client secret for OAuth Client Credentials.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearClientSecret() { + bitField0_ = (bitField0_ & ~0x00000002); + clientSecret_ = null; + if (clientSecretBuilder_ != null) { + clientSecretBuilder_.dispose(); + clientSecretBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Client secret for OAuth Client Credentials.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.datastream.v1.Secret.Builder getClientSecretBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetClientSecretFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. Client secret for OAuth Client Credentials.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.datastream.v1.SecretOrBuilder getClientSecretOrBuilder() { + if (clientSecretBuilder_ != null) { + return clientSecretBuilder_.getMessageOrBuilder(); + } else { + return clientSecret_ == null + ? com.google.cloud.datastream.v1.Secret.getDefaultInstance() + : clientSecret_; + } + } + + /** + * + * + *
    +     * Required. Client secret for OAuth Client Credentials.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.Secret, + com.google.cloud.datastream.v1.Secret.Builder, + com.google.cloud.datastream.v1.SecretOrBuilder> + internalGetClientSecretFieldBuilder() { + if (clientSecretBuilder_ == null) { + clientSecretBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.Secret, + com.google.cloud.datastream.v1.Secret.Builder, + com.google.cloud.datastream.v1.SecretOrBuilder>( + getClientSecret(), getParentForChildren(), isClean()); + clientSecret_ = null; + } + return clientSecretBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.OauthClientCredentials) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OauthClientCredentials) + private static final com.google.cloud.datastream.v1.OauthClientCredentials DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OauthClientCredentials(); + } + + public static com.google.cloud.datastream.v1.OauthClientCredentials getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OauthClientCredentials 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.datastream.v1.OauthClientCredentials getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OauthClientCredentialsOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OauthClientCredentialsOrBuilder.java new file mode 100644 index 000000000000..3246e40ba0ae --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OauthClientCredentialsOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface OauthClientCredentialsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OauthClientCredentials) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Client ID for OAuth Client Credentials.
    +   * 
    + * + * string client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clientId. + */ + java.lang.String getClientId(); + + /** + * + * + *
    +   * Required. Client ID for OAuth Client Credentials.
    +   * 
    + * + * string client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clientId. + */ + com.google.protobuf.ByteString getClientIdBytes(); + + /** + * + * + *
    +   * Required. Client secret for OAuth Client Credentials.
    +   * 
    + * + * + * .google.cloud.datastream.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the clientSecret field is set. + */ + boolean hasClientSecret(); + + /** + * + * + *
    +   * Required. Client secret for OAuth Client Credentials.
    +   * 
    + * + * + * .google.cloud.datastream.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clientSecret. + */ + com.google.cloud.datastream.v1.Secret getClientSecret(); + + /** + * + * + *
    +   * Required. Client secret for OAuth Client Credentials.
    +   * 
    + * + * + * .google.cloud.datastream.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.datastream.v1.SecretOrBuilder getClientSecretOrBuilder(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OauthRefreshTokenCredentials.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OauthRefreshTokenCredentials.java new file mode 100644 index 000000000000..4a7b952529dd --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OauthRefreshTokenCredentials.java @@ -0,0 +1,1041 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * OAuth Refresh Token Credentials.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.OauthRefreshTokenCredentials} + */ +@com.google.protobuf.Generated +public final class OauthRefreshTokenCredentials extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OauthRefreshTokenCredentials) + OauthRefreshTokenCredentialsOrBuilder { + 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= */ "", + "OauthRefreshTokenCredentials"); + } + + // Use OauthRefreshTokenCredentials.newBuilder() to construct. + private OauthRefreshTokenCredentials(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OauthRefreshTokenCredentials() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OauthRefreshTokenCredentials_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OauthRefreshTokenCredentials_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OauthRefreshTokenCredentials.class, + com.google.cloud.datastream.v1.OauthRefreshTokenCredentials.Builder.class); + } + + private int bitField0_; + public static final int OAUTH_CLIENT_CREDENTIALS_FIELD_NUMBER = 1; + private com.google.cloud.datastream.v1.OauthClientCredentials oauthClientCredentials_; + + /** + * + * + *
    +   * Required. Specifies the OAuth Client Credentials.
    +   * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the oauthClientCredentials field is set. + */ + @java.lang.Override + public boolean hasOauthClientCredentials() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. Specifies the OAuth Client Credentials.
    +   * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The oauthClientCredentials. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OauthClientCredentials getOauthClientCredentials() { + return oauthClientCredentials_ == null + ? com.google.cloud.datastream.v1.OauthClientCredentials.getDefaultInstance() + : oauthClientCredentials_; + } + + /** + * + * + *
    +   * Required. Specifies the OAuth Client Credentials.
    +   * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder + getOauthClientCredentialsOrBuilder() { + return oauthClientCredentials_ == null + ? com.google.cloud.datastream.v1.OauthClientCredentials.getDefaultInstance() + : oauthClientCredentials_; + } + + public static final int REFRESH_TOKEN_FIELD_NUMBER = 2; + private com.google.cloud.datastream.v1.Secret refreshToken_; + + /** + * + * + *
    +   * Required. Specifies the OAuth Refresh Token.
    +   * 
    + * + * + * .google.cloud.datastream.v1.Secret refresh_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the refreshToken field is set. + */ + @java.lang.Override + public boolean hasRefreshToken() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Required. Specifies the OAuth Refresh Token.
    +   * 
    + * + * + * .google.cloud.datastream.v1.Secret refresh_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The refreshToken. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.Secret getRefreshToken() { + return refreshToken_ == null + ? com.google.cloud.datastream.v1.Secret.getDefaultInstance() + : refreshToken_; + } + + /** + * + * + *
    +   * Required. Specifies the OAuth Refresh Token.
    +   * 
    + * + * + * .google.cloud.datastream.v1.Secret refresh_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SecretOrBuilder getRefreshTokenOrBuilder() { + return refreshToken_ == null + ? com.google.cloud.datastream.v1.Secret.getDefaultInstance() + : refreshToken_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getOauthClientCredentials()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getRefreshToken()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOauthClientCredentials()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRefreshToken()); + } + 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.datastream.v1.OauthRefreshTokenCredentials)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.OauthRefreshTokenCredentials other = + (com.google.cloud.datastream.v1.OauthRefreshTokenCredentials) obj; + + if (hasOauthClientCredentials() != other.hasOauthClientCredentials()) return false; + if (hasOauthClientCredentials()) { + if (!getOauthClientCredentials().equals(other.getOauthClientCredentials())) return false; + } + if (hasRefreshToken() != other.hasRefreshToken()) return false; + if (hasRefreshToken()) { + if (!getRefreshToken().equals(other.getRefreshToken())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOauthClientCredentials()) { + hash = (37 * hash) + OAUTH_CLIENT_CREDENTIALS_FIELD_NUMBER; + hash = (53 * hash) + getOauthClientCredentials().hashCode(); + } + if (hasRefreshToken()) { + hash = (37 * hash) + REFRESH_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getRefreshToken().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.OauthRefreshTokenCredentials parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OauthRefreshTokenCredentials 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.datastream.v1.OauthRefreshTokenCredentials parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OauthRefreshTokenCredentials 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.datastream.v1.OauthRefreshTokenCredentials parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OauthRefreshTokenCredentials parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.OauthRefreshTokenCredentials parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OauthRefreshTokenCredentials 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.datastream.v1.OauthRefreshTokenCredentials parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OauthRefreshTokenCredentials 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.datastream.v1.OauthRefreshTokenCredentials parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OauthRefreshTokenCredentials 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.datastream.v1.OauthRefreshTokenCredentials 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; + } + + /** + * + * + *
    +   * OAuth Refresh Token Credentials.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.OauthRefreshTokenCredentials} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OauthRefreshTokenCredentials) + com.google.cloud.datastream.v1.OauthRefreshTokenCredentialsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OauthRefreshTokenCredentials_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OauthRefreshTokenCredentials_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OauthRefreshTokenCredentials.class, + com.google.cloud.datastream.v1.OauthRefreshTokenCredentials.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.OauthRefreshTokenCredentials.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetOauthClientCredentialsFieldBuilder(); + internalGetRefreshTokenFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + oauthClientCredentials_ = null; + if (oauthClientCredentialsBuilder_ != null) { + oauthClientCredentialsBuilder_.dispose(); + oauthClientCredentialsBuilder_ = null; + } + refreshToken_ = null; + if (refreshTokenBuilder_ != null) { + refreshTokenBuilder_.dispose(); + refreshTokenBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OauthRefreshTokenCredentials_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OauthRefreshTokenCredentials getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OauthRefreshTokenCredentials.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OauthRefreshTokenCredentials build() { + com.google.cloud.datastream.v1.OauthRefreshTokenCredentials result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OauthRefreshTokenCredentials buildPartial() { + com.google.cloud.datastream.v1.OauthRefreshTokenCredentials result = + new com.google.cloud.datastream.v1.OauthRefreshTokenCredentials(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.OauthRefreshTokenCredentials result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.oauthClientCredentials_ = + oauthClientCredentialsBuilder_ == null + ? oauthClientCredentials_ + : oauthClientCredentialsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.refreshToken_ = + refreshTokenBuilder_ == null ? refreshToken_ : refreshTokenBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.OauthRefreshTokenCredentials) { + return mergeFrom((com.google.cloud.datastream.v1.OauthRefreshTokenCredentials) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.OauthRefreshTokenCredentials other) { + if (other == com.google.cloud.datastream.v1.OauthRefreshTokenCredentials.getDefaultInstance()) + return this; + if (other.hasOauthClientCredentials()) { + mergeOauthClientCredentials(other.getOauthClientCredentials()); + } + if (other.hasRefreshToken()) { + mergeRefreshToken(other.getRefreshToken()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetOauthClientCredentialsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetRefreshTokenFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.datastream.v1.OauthClientCredentials oauthClientCredentials_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.OauthClientCredentials, + com.google.cloud.datastream.v1.OauthClientCredentials.Builder, + com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder> + oauthClientCredentialsBuilder_; + + /** + * + * + *
    +     * Required. Specifies the OAuth Client Credentials.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the oauthClientCredentials field is set. + */ + public boolean hasOauthClientCredentials() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Required. Specifies the OAuth Client Credentials.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The oauthClientCredentials. + */ + public com.google.cloud.datastream.v1.OauthClientCredentials getOauthClientCredentials() { + if (oauthClientCredentialsBuilder_ == null) { + return oauthClientCredentials_ == null + ? com.google.cloud.datastream.v1.OauthClientCredentials.getDefaultInstance() + : oauthClientCredentials_; + } else { + return oauthClientCredentialsBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. Specifies the OAuth Client Credentials.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOauthClientCredentials( + com.google.cloud.datastream.v1.OauthClientCredentials value) { + if (oauthClientCredentialsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oauthClientCredentials_ = value; + } else { + oauthClientCredentialsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Specifies the OAuth Client Credentials.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOauthClientCredentials( + com.google.cloud.datastream.v1.OauthClientCredentials.Builder builderForValue) { + if (oauthClientCredentialsBuilder_ == null) { + oauthClientCredentials_ = builderForValue.build(); + } else { + oauthClientCredentialsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Specifies the OAuth Client Credentials.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeOauthClientCredentials( + com.google.cloud.datastream.v1.OauthClientCredentials value) { + if (oauthClientCredentialsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && oauthClientCredentials_ != null + && oauthClientCredentials_ + != com.google.cloud.datastream.v1.OauthClientCredentials.getDefaultInstance()) { + getOauthClientCredentialsBuilder().mergeFrom(value); + } else { + oauthClientCredentials_ = value; + } + } else { + oauthClientCredentialsBuilder_.mergeFrom(value); + } + if (oauthClientCredentials_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. Specifies the OAuth Client Credentials.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearOauthClientCredentials() { + bitField0_ = (bitField0_ & ~0x00000001); + oauthClientCredentials_ = null; + if (oauthClientCredentialsBuilder_ != null) { + oauthClientCredentialsBuilder_.dispose(); + oauthClientCredentialsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Specifies the OAuth Client Credentials.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.datastream.v1.OauthClientCredentials.Builder + getOauthClientCredentialsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetOauthClientCredentialsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. Specifies the OAuth Client Credentials.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder + getOauthClientCredentialsOrBuilder() { + if (oauthClientCredentialsBuilder_ != null) { + return oauthClientCredentialsBuilder_.getMessageOrBuilder(); + } else { + return oauthClientCredentials_ == null + ? com.google.cloud.datastream.v1.OauthClientCredentials.getDefaultInstance() + : oauthClientCredentials_; + } + } + + /** + * + * + *
    +     * Required. Specifies the OAuth Client Credentials.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.OauthClientCredentials, + com.google.cloud.datastream.v1.OauthClientCredentials.Builder, + com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder> + internalGetOauthClientCredentialsFieldBuilder() { + if (oauthClientCredentialsBuilder_ == null) { + oauthClientCredentialsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.OauthClientCredentials, + com.google.cloud.datastream.v1.OauthClientCredentials.Builder, + com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder>( + getOauthClientCredentials(), getParentForChildren(), isClean()); + oauthClientCredentials_ = null; + } + return oauthClientCredentialsBuilder_; + } + + private com.google.cloud.datastream.v1.Secret refreshToken_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.Secret, + com.google.cloud.datastream.v1.Secret.Builder, + com.google.cloud.datastream.v1.SecretOrBuilder> + refreshTokenBuilder_; + + /** + * + * + *
    +     * Required. Specifies the OAuth Refresh Token.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret refresh_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the refreshToken field is set. + */ + public boolean hasRefreshToken() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. Specifies the OAuth Refresh Token.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret refresh_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The refreshToken. + */ + public com.google.cloud.datastream.v1.Secret getRefreshToken() { + if (refreshTokenBuilder_ == null) { + return refreshToken_ == null + ? com.google.cloud.datastream.v1.Secret.getDefaultInstance() + : refreshToken_; + } else { + return refreshTokenBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. Specifies the OAuth Refresh Token.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret refresh_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRefreshToken(com.google.cloud.datastream.v1.Secret value) { + if (refreshTokenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + refreshToken_ = value; + } else { + refreshTokenBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Specifies the OAuth Refresh Token.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret refresh_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRefreshToken(com.google.cloud.datastream.v1.Secret.Builder builderForValue) { + if (refreshTokenBuilder_ == null) { + refreshToken_ = builderForValue.build(); + } else { + refreshTokenBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Specifies the OAuth Refresh Token.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret refresh_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRefreshToken(com.google.cloud.datastream.v1.Secret value) { + if (refreshTokenBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && refreshToken_ != null + && refreshToken_ != com.google.cloud.datastream.v1.Secret.getDefaultInstance()) { + getRefreshTokenBuilder().mergeFrom(value); + } else { + refreshToken_ = value; + } + } else { + refreshTokenBuilder_.mergeFrom(value); + } + if (refreshToken_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. Specifies the OAuth Refresh Token.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret refresh_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRefreshToken() { + bitField0_ = (bitField0_ & ~0x00000002); + refreshToken_ = null; + if (refreshTokenBuilder_ != null) { + refreshTokenBuilder_.dispose(); + refreshTokenBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Specifies the OAuth Refresh Token.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret refresh_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.datastream.v1.Secret.Builder getRefreshTokenBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetRefreshTokenFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. Specifies the OAuth Refresh Token.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret refresh_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.datastream.v1.SecretOrBuilder getRefreshTokenOrBuilder() { + if (refreshTokenBuilder_ != null) { + return refreshTokenBuilder_.getMessageOrBuilder(); + } else { + return refreshToken_ == null + ? com.google.cloud.datastream.v1.Secret.getDefaultInstance() + : refreshToken_; + } + } + + /** + * + * + *
    +     * Required. Specifies the OAuth Refresh Token.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret refresh_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.Secret, + com.google.cloud.datastream.v1.Secret.Builder, + com.google.cloud.datastream.v1.SecretOrBuilder> + internalGetRefreshTokenFieldBuilder() { + if (refreshTokenBuilder_ == null) { + refreshTokenBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.Secret, + com.google.cloud.datastream.v1.Secret.Builder, + com.google.cloud.datastream.v1.SecretOrBuilder>( + getRefreshToken(), getParentForChildren(), isClean()); + refreshToken_ = null; + } + return refreshTokenBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.OauthRefreshTokenCredentials) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OauthRefreshTokenCredentials) + private static final com.google.cloud.datastream.v1.OauthRefreshTokenCredentials DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OauthRefreshTokenCredentials(); + } + + public static com.google.cloud.datastream.v1.OauthRefreshTokenCredentials getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OauthRefreshTokenCredentials 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.datastream.v1.OauthRefreshTokenCredentials getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OauthRefreshTokenCredentialsOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OauthRefreshTokenCredentialsOrBuilder.java new file mode 100644 index 000000000000..1dab05a75d0c --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OauthRefreshTokenCredentialsOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface OauthRefreshTokenCredentialsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OauthRefreshTokenCredentials) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Specifies the OAuth Client Credentials.
    +   * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the oauthClientCredentials field is set. + */ + boolean hasOauthClientCredentials(); + + /** + * + * + *
    +   * Required. Specifies the OAuth Client Credentials.
    +   * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The oauthClientCredentials. + */ + com.google.cloud.datastream.v1.OauthClientCredentials getOauthClientCredentials(); + + /** + * + * + *
    +   * Required. Specifies the OAuth Client Credentials.
    +   * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder + getOauthClientCredentialsOrBuilder(); + + /** + * + * + *
    +   * Required. Specifies the OAuth Refresh Token.
    +   * 
    + * + * + * .google.cloud.datastream.v1.Secret refresh_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the refreshToken field is set. + */ + boolean hasRefreshToken(); + + /** + * + * + *
    +   * Required. Specifies the OAuth Refresh Token.
    +   * 
    + * + * + * .google.cloud.datastream.v1.Secret refresh_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The refreshToken. + */ + com.google.cloud.datastream.v1.Secret getRefreshToken(); + + /** + * + * + *
    +   * Required. Specifies the OAuth Refresh Token.
    +   * 
    + * + * + * .google.cloud.datastream.v1.Secret refresh_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.datastream.v1.SecretOrBuilder getRefreshTokenOrBuilder(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java index d7019d5ff8a8..ab30482a6af7 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Column name.
    +   * The column name.
        * 
    * * string column = 1; @@ -105,7 +105,7 @@ public java.lang.String getColumn() { * * *
    -   * Column name.
    +   * The column name.
        * 
    * * string column = 1; @@ -840,7 +840,7 @@ public Builder mergeFrom( * * *
    -     * Column name.
    +     * The column name.
          * 
    * * string column = 1; @@ -863,7 +863,7 @@ public java.lang.String getColumn() { * * *
    -     * Column name.
    +     * The column name.
          * 
    * * string column = 1; @@ -886,7 +886,7 @@ public com.google.protobuf.ByteString getColumnBytes() { * * *
    -     * Column name.
    +     * The column name.
          * 
    * * string column = 1; @@ -908,7 +908,7 @@ public Builder setColumn(java.lang.String value) { * * *
    -     * Column name.
    +     * The column name.
          * 
    * * string column = 1; @@ -926,7 +926,7 @@ public Builder clearColumn() { * * *
    -     * Column name.
    +     * The column name.
          * 
    * * string column = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java index 207a120fc33f..8f7751e328bc 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java @@ -30,7 +30,7 @@ public interface OracleColumnOrBuilder * * *
    -   * Column name.
    +   * The column name.
        * 
    * * string column = 1; @@ -43,7 +43,7 @@ public interface OracleColumnOrBuilder * * *
    -   * Column name.
    +   * The column name.
        * 
    * * string column = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java index f324692b9944..b7c36d8cc958 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java @@ -24,7 +24,7 @@ * * *
    - * Oracle database profile.
    + * Profile for connecting to an Oracle source.
      * 
    * * Protobuf type {@code google.cloud.datastream.v1.OracleProfile} @@ -866,7 +866,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
    -   * Oracle database profile.
    +   * Profile for connecting to an Oracle source.
        * 
    * * Protobuf type {@code google.cloud.datastream.v1.OracleProfile} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java index ab8e25b6443b..8ffbe437505f 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Schema name.
    +   * The schema name.
        * 
    * * string schema = 1; @@ -104,7 +104,7 @@ public java.lang.String getSchema() { * * *
    -   * Schema name.
    +   * The schema name.
        * 
    * * string schema = 1; @@ -586,7 +586,7 @@ public Builder mergeFrom( * * *
    -     * Schema name.
    +     * The schema name.
          * 
    * * string schema = 1; @@ -609,7 +609,7 @@ public java.lang.String getSchema() { * * *
    -     * Schema name.
    +     * The schema name.
          * 
    * * string schema = 1; @@ -632,7 +632,7 @@ public com.google.protobuf.ByteString getSchemaBytes() { * * *
    -     * Schema name.
    +     * The schema name.
          * 
    * * string schema = 1; @@ -654,7 +654,7 @@ public Builder setSchema(java.lang.String value) { * * *
    -     * Schema name.
    +     * The schema name.
          * 
    * * string schema = 1; @@ -672,7 +672,7 @@ public Builder clearSchema() { * * *
    -     * Schema name.
    +     * The schema name.
          * 
    * * string schema = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java index 69e41346b5b5..3c4ae297b1c2 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java @@ -30,7 +30,7 @@ public interface OracleSchemaOrBuilder * * *
    -   * Schema name.
    +   * The schema name.
        * 
    * * string schema = 1; @@ -43,7 +43,7 @@ public interface OracleSchemaOrBuilder * * *
    -   * Schema name.
    +   * The schema name.
        * 
    * * string schema = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java index 6deb948ec3f2..75b03eb809c8 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java @@ -24,7 +24,7 @@ * * *
    - * Oracle data source configuration
    + * Configuration for syncing data from an Oracle source.
      * 
    * * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig} @@ -4016,7 +4016,7 @@ public CdcMethodCase getCdcMethodCase() { * * *
    -   * Oracle objects to include in the stream.
    +   * The Oracle objects to include in the stream.
        * 
    * * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; @@ -4032,7 +4032,7 @@ public boolean hasIncludeObjects() { * * *
    -   * Oracle objects to include in the stream.
    +   * The Oracle objects to include in the stream.
        * 
    * * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; @@ -4050,7 +4050,7 @@ public com.google.cloud.datastream.v1.OracleRdbms getIncludeObjects() { * * *
    -   * Oracle objects to include in the stream.
    +   * The Oracle objects to include in the stream.
        * 
    * * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; @@ -4069,7 +4069,7 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getIncludeObjectsOrBu * * *
    -   * Oracle objects to exclude from the stream.
    +   * The Oracle objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; @@ -4085,7 +4085,7 @@ public boolean hasExcludeObjects() { * * *
    -   * Oracle objects to exclude from the stream.
    +   * The Oracle objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; @@ -4103,7 +4103,7 @@ public com.google.cloud.datastream.v1.OracleRdbms getExcludeObjects() { * * *
    -   * Oracle objects to exclude from the stream.
    +   * The Oracle objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; @@ -4686,7 +4686,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
    -   * Oracle data source configuration
    +   * Configuration for syncing data from an Oracle source.
        * 
    * * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig} @@ -5030,7 +5030,7 @@ public Builder clearCdcMethod() { * * *
    -     * Oracle objects to include in the stream.
    +     * The Oracle objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; @@ -5045,7 +5045,7 @@ public boolean hasIncludeObjects() { * * *
    -     * Oracle objects to include in the stream.
    +     * The Oracle objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; @@ -5066,7 +5066,7 @@ public com.google.cloud.datastream.v1.OracleRdbms getIncludeObjects() { * * *
    -     * Oracle objects to include in the stream.
    +     * The Oracle objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; @@ -5089,7 +5089,7 @@ public Builder setIncludeObjects(com.google.cloud.datastream.v1.OracleRdbms valu * * *
    -     * Oracle objects to include in the stream.
    +     * The Oracle objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; @@ -5110,7 +5110,7 @@ public Builder setIncludeObjects( * * *
    -     * Oracle objects to include in the stream.
    +     * The Oracle objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; @@ -5138,7 +5138,7 @@ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.OracleRdbms va * * *
    -     * Oracle objects to include in the stream.
    +     * The Oracle objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; @@ -5158,7 +5158,7 @@ public Builder clearIncludeObjects() { * * *
    -     * Oracle objects to include in the stream.
    +     * The Oracle objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; @@ -5173,7 +5173,7 @@ public com.google.cloud.datastream.v1.OracleRdbms.Builder getIncludeObjectsBuild * * *
    -     * Oracle objects to include in the stream.
    +     * The Oracle objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; @@ -5192,7 +5192,7 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getIncludeObjectsOrBu * * *
    -     * Oracle objects to include in the stream.
    +     * The Oracle objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; @@ -5225,7 +5225,7 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getIncludeObjectsOrBu * * *
    -     * Oracle objects to exclude from the stream.
    +     * The Oracle objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; @@ -5240,7 +5240,7 @@ public boolean hasExcludeObjects() { * * *
    -     * Oracle objects to exclude from the stream.
    +     * The Oracle objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; @@ -5261,7 +5261,7 @@ public com.google.cloud.datastream.v1.OracleRdbms getExcludeObjects() { * * *
    -     * Oracle objects to exclude from the stream.
    +     * The Oracle objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; @@ -5284,7 +5284,7 @@ public Builder setExcludeObjects(com.google.cloud.datastream.v1.OracleRdbms valu * * *
    -     * Oracle objects to exclude from the stream.
    +     * The Oracle objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; @@ -5305,7 +5305,7 @@ public Builder setExcludeObjects( * * *
    -     * Oracle objects to exclude from the stream.
    +     * The Oracle objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; @@ -5333,7 +5333,7 @@ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.OracleRdbms va * * *
    -     * Oracle objects to exclude from the stream.
    +     * The Oracle objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; @@ -5353,7 +5353,7 @@ public Builder clearExcludeObjects() { * * *
    -     * Oracle objects to exclude from the stream.
    +     * The Oracle objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; @@ -5368,7 +5368,7 @@ public com.google.cloud.datastream.v1.OracleRdbms.Builder getExcludeObjectsBuild * * *
    -     * Oracle objects to exclude from the stream.
    +     * The Oracle objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; @@ -5387,7 +5387,7 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getExcludeObjectsOrBu * * *
    -     * Oracle objects to exclude from the stream.
    +     * The Oracle objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java index acfbcb33049b..63fcb8fc5455 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java @@ -30,7 +30,7 @@ public interface OracleSourceConfigOrBuilder * * *
    -   * Oracle objects to include in the stream.
    +   * The Oracle objects to include in the stream.
        * 
    * * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; @@ -43,7 +43,7 @@ public interface OracleSourceConfigOrBuilder * * *
    -   * Oracle objects to include in the stream.
    +   * The Oracle objects to include in the stream.
        * 
    * * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; @@ -56,7 +56,7 @@ public interface OracleSourceConfigOrBuilder * * *
    -   * Oracle objects to include in the stream.
    +   * The Oracle objects to include in the stream.
        * 
    * * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; @@ -67,7 +67,7 @@ public interface OracleSourceConfigOrBuilder * * *
    -   * Oracle objects to exclude from the stream.
    +   * The Oracle objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; @@ -80,7 +80,7 @@ public interface OracleSourceConfigOrBuilder * * *
    -   * Oracle objects to exclude from the stream.
    +   * The Oracle objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; @@ -93,7 +93,7 @@ public interface OracleSourceConfigOrBuilder * * *
    -   * Oracle objects to exclude from the stream.
    +   * The Oracle objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java index 0cac888a93f6..549257f32694 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Table name.
    +   * The table name.
        * 
    * * string table = 1; @@ -104,7 +104,7 @@ public java.lang.String getTable() { * * *
    -   * Table name.
    +   * The table name.
        * 
    * * string table = 1; @@ -596,7 +596,7 @@ public Builder mergeFrom( * * *
    -     * Table name.
    +     * The table name.
          * 
    * * string table = 1; @@ -619,7 +619,7 @@ public java.lang.String getTable() { * * *
    -     * Table name.
    +     * The table name.
          * 
    * * string table = 1; @@ -642,7 +642,7 @@ public com.google.protobuf.ByteString getTableBytes() { * * *
    -     * Table name.
    +     * The table name.
          * 
    * * string table = 1; @@ -664,7 +664,7 @@ public Builder setTable(java.lang.String value) { * * *
    -     * Table name.
    +     * The table name.
          * 
    * * string table = 1; @@ -682,7 +682,7 @@ public Builder clearTable() { * * *
    -     * Table name.
    +     * The table name.
          * 
    * * string table = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java index 51848595f932..fb298b52a907 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java @@ -30,7 +30,7 @@ public interface OracleTableOrBuilder * * *
    -   * Table name.
    +   * The table name.
        * 
    * * string table = 1; @@ -43,7 +43,7 @@ public interface OracleTableOrBuilder * * *
    -   * Table name.
    +   * The table name.
        * 
    * * string table = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PartitioningTimeGranularity.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PartitioningTimeGranularity.java new file mode 100644 index 000000000000..eaf8a5d88bc9 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PartitioningTimeGranularity.java @@ -0,0 +1,242 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * Partitioning granularity for time partitions.
    + * 
    + * + * Protobuf enum {@code google.cloud.datastream.v1.PartitioningTimeGranularity} + */ +@com.google.protobuf.Generated +public enum PartitioningTimeGranularity implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +   * Unspecified partitioing interval.
    +   * 
    + * + * PARTITIONING_TIME_GRANULARITY_UNSPECIFIED = 0; + */ + PARTITIONING_TIME_GRANULARITY_UNSPECIFIED(0), + /** + * + * + *
    +   * Hourly partitioning.
    +   * 
    + * + * PARTITIONING_TIME_GRANULARITY_HOUR = 1; + */ + PARTITIONING_TIME_GRANULARITY_HOUR(1), + /** + * + * + *
    +   * Daily partitioning.
    +   * 
    + * + * PARTITIONING_TIME_GRANULARITY_DAY = 2; + */ + PARTITIONING_TIME_GRANULARITY_DAY(2), + /** + * + * + *
    +   * Monthly partitioning.
    +   * 
    + * + * PARTITIONING_TIME_GRANULARITY_MONTH = 3; + */ + PARTITIONING_TIME_GRANULARITY_MONTH(3), + /** + * + * + *
    +   * Yearly partitioning.
    +   * 
    + * + * PARTITIONING_TIME_GRANULARITY_YEAR = 4; + */ + PARTITIONING_TIME_GRANULARITY_YEAR(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PartitioningTimeGranularity"); + } + + /** + * + * + *
    +   * Unspecified partitioing interval.
    +   * 
    + * + * PARTITIONING_TIME_GRANULARITY_UNSPECIFIED = 0; + */ + public static final int PARTITIONING_TIME_GRANULARITY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +   * Hourly partitioning.
    +   * 
    + * + * PARTITIONING_TIME_GRANULARITY_HOUR = 1; + */ + public static final int PARTITIONING_TIME_GRANULARITY_HOUR_VALUE = 1; + + /** + * + * + *
    +   * Daily partitioning.
    +   * 
    + * + * PARTITIONING_TIME_GRANULARITY_DAY = 2; + */ + public static final int PARTITIONING_TIME_GRANULARITY_DAY_VALUE = 2; + + /** + * + * + *
    +   * Monthly partitioning.
    +   * 
    + * + * PARTITIONING_TIME_GRANULARITY_MONTH = 3; + */ + public static final int PARTITIONING_TIME_GRANULARITY_MONTH_VALUE = 3; + + /** + * + * + *
    +   * Yearly partitioning.
    +   * 
    + * + * PARTITIONING_TIME_GRANULARITY_YEAR = 4; + */ + public static final int PARTITIONING_TIME_GRANULARITY_YEAR_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PartitioningTimeGranularity valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static PartitioningTimeGranularity forNumber(int value) { + switch (value) { + case 0: + return PARTITIONING_TIME_GRANULARITY_UNSPECIFIED; + case 1: + return PARTITIONING_TIME_GRANULARITY_HOUR; + case 2: + return PARTITIONING_TIME_GRANULARITY_DAY; + case 3: + return PARTITIONING_TIME_GRANULARITY_MONTH; + case 4: + return PARTITIONING_TIME_GRANULARITY_YEAR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PartitioningTimeGranularity findValueByNumber(int number) { + return PartitioningTimeGranularity.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final PartitioningTimeGranularity[] VALUES = values(); + + public static PartitioningTimeGranularity valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PartitioningTimeGranularity(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.datastream.v1.PartitioningTimeGranularity) +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java index 4080b1749b01..f213c0b541c8 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Column name.
    +   * The column name.
        * 
    * * string column = 1; @@ -104,7 +104,7 @@ public java.lang.String getColumn() { * * *
    -   * Column name.
    +   * The column name.
        * 
    * * string column = 1; @@ -763,7 +763,7 @@ public Builder mergeFrom( * * *
    -     * Column name.
    +     * The column name.
          * 
    * * string column = 1; @@ -786,7 +786,7 @@ public java.lang.String getColumn() { * * *
    -     * Column name.
    +     * The column name.
          * 
    * * string column = 1; @@ -809,7 +809,7 @@ public com.google.protobuf.ByteString getColumnBytes() { * * *
    -     * Column name.
    +     * The column name.
          * 
    * * string column = 1; @@ -831,7 +831,7 @@ public Builder setColumn(java.lang.String value) { * * *
    -     * Column name.
    +     * The column name.
          * 
    * * string column = 1; @@ -849,7 +849,7 @@ public Builder clearColumn() { * * *
    -     * Column name.
    +     * The column name.
          * 
    * * string column = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java index 1542ac069496..0e80e355acd5 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java @@ -30,7 +30,7 @@ public interface PostgresqlColumnOrBuilder * * *
    -   * Column name.
    +   * The column name.
        * 
    * * string column = 1; @@ -43,7 +43,7 @@ public interface PostgresqlColumnOrBuilder * * *
    -   * Column name.
    +   * The column name.
        * 
    * * string column = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java index 8acce7392a67..9b7232f3a83e 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java @@ -24,7 +24,7 @@ * * *
    - * PostgreSQL database profile.
    + * Profile for connecting to a PostgreSQL source.
      * 
    * * Protobuf type {@code google.cloud.datastream.v1.PostgresqlProfile} @@ -660,7 +660,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
    -   * PostgreSQL database profile.
    +   * Profile for connecting to a PostgreSQL source.
        * 
    * * Protobuf type {@code google.cloud.datastream.v1.PostgresqlProfile} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java index 275082c48274..c26b5d0c4eae 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Schema name.
    +   * The schema name.
        * 
    * * string schema = 1; @@ -104,7 +104,7 @@ public java.lang.String getSchema() { * * *
    -   * Schema name.
    +   * The schema name.
        * 
    * * string schema = 1; @@ -589,7 +589,7 @@ public Builder mergeFrom( * * *
    -     * Schema name.
    +     * The schema name.
          * 
    * * string schema = 1; @@ -612,7 +612,7 @@ public java.lang.String getSchema() { * * *
    -     * Schema name.
    +     * The schema name.
          * 
    * * string schema = 1; @@ -635,7 +635,7 @@ public com.google.protobuf.ByteString getSchemaBytes() { * * *
    -     * Schema name.
    +     * The schema name.
          * 
    * * string schema = 1; @@ -657,7 +657,7 @@ public Builder setSchema(java.lang.String value) { * * *
    -     * Schema name.
    +     * The schema name.
          * 
    * * string schema = 1; @@ -675,7 +675,7 @@ public Builder clearSchema() { * * *
    -     * Schema name.
    +     * The schema name.
          * 
    * * string schema = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java index 2b2549926476..03c4a7f805ef 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java @@ -30,7 +30,7 @@ public interface PostgresqlSchemaOrBuilder * * *
    -   * Schema name.
    +   * The schema name.
        * 
    * * string schema = 1; @@ -43,7 +43,7 @@ public interface PostgresqlSchemaOrBuilder * * *
    -   * Schema name.
    +   * The schema name.
        * 
    * * string schema = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java index c689dbd99dbb..1e110e81a4aa 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java @@ -24,7 +24,7 @@ * * *
    - * PostgreSQL data source configuration
    + * Configuration for syncing data from a PostgreSQL source.
      * 
    * * Protobuf type {@code google.cloud.datastream.v1.PostgresqlSourceConfig} @@ -79,7 +79,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * PostgreSQL objects to include in the stream.
    +   * The PostgreSQL objects to include in the stream.
        * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; @@ -95,7 +95,7 @@ public boolean hasIncludeObjects() { * * *
    -   * PostgreSQL objects to include in the stream.
    +   * The PostgreSQL objects to include in the stream.
        * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; @@ -113,7 +113,7 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getIncludeObjects() { * * *
    -   * PostgreSQL objects to include in the stream.
    +   * The PostgreSQL objects to include in the stream.
        * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; @@ -132,7 +132,7 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getIncludeObjects * * *
    -   * PostgreSQL objects to exclude from the stream.
    +   * The PostgreSQL objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; @@ -148,7 +148,7 @@ public boolean hasExcludeObjects() { * * *
    -   * PostgreSQL objects to exclude from the stream.
    +   * The PostgreSQL objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; @@ -166,7 +166,7 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getExcludeObjects() { * * *
    -   * PostgreSQL objects to exclude from the stream.
    +   * The PostgreSQL objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; @@ -525,7 +525,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
    -   * PostgreSQL data source configuration
    +   * Configuration for syncing data from a PostgreSQL source.
        * 
    * * Protobuf type {@code google.cloud.datastream.v1.PostgresqlSourceConfig} @@ -762,7 +762,7 @@ public Builder mergeFrom( * * *
    -     * PostgreSQL objects to include in the stream.
    +     * The PostgreSQL objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; @@ -777,7 +777,7 @@ public boolean hasIncludeObjects() { * * *
    -     * PostgreSQL objects to include in the stream.
    +     * The PostgreSQL objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; @@ -798,7 +798,7 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getIncludeObjects() { * * *
    -     * PostgreSQL objects to include in the stream.
    +     * The PostgreSQL objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; @@ -821,7 +821,7 @@ public Builder setIncludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbms * * *
    -     * PostgreSQL objects to include in the stream.
    +     * The PostgreSQL objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; @@ -842,7 +842,7 @@ public Builder setIncludeObjects( * * *
    -     * PostgreSQL objects to include in the stream.
    +     * The PostgreSQL objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; @@ -871,7 +871,7 @@ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbm * * *
    -     * PostgreSQL objects to include in the stream.
    +     * The PostgreSQL objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; @@ -891,7 +891,7 @@ public Builder clearIncludeObjects() { * * *
    -     * PostgreSQL objects to include in the stream.
    +     * The PostgreSQL objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; @@ -906,7 +906,7 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getIncludeObjectsB * * *
    -     * PostgreSQL objects to include in the stream.
    +     * The PostgreSQL objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; @@ -925,7 +925,7 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getIncludeObjects * * *
    -     * PostgreSQL objects to include in the stream.
    +     * The PostgreSQL objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; @@ -958,7 +958,7 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getIncludeObjects * * *
    -     * PostgreSQL objects to exclude from the stream.
    +     * The PostgreSQL objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; @@ -973,7 +973,7 @@ public boolean hasExcludeObjects() { * * *
    -     * PostgreSQL objects to exclude from the stream.
    +     * The PostgreSQL objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; @@ -994,7 +994,7 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getExcludeObjects() { * * *
    -     * PostgreSQL objects to exclude from the stream.
    +     * The PostgreSQL objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; @@ -1017,7 +1017,7 @@ public Builder setExcludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbms * * *
    -     * PostgreSQL objects to exclude from the stream.
    +     * The PostgreSQL objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; @@ -1038,7 +1038,7 @@ public Builder setExcludeObjects( * * *
    -     * PostgreSQL objects to exclude from the stream.
    +     * The PostgreSQL objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; @@ -1067,7 +1067,7 @@ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbm * * *
    -     * PostgreSQL objects to exclude from the stream.
    +     * The PostgreSQL objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; @@ -1087,7 +1087,7 @@ public Builder clearExcludeObjects() { * * *
    -     * PostgreSQL objects to exclude from the stream.
    +     * The PostgreSQL objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; @@ -1102,7 +1102,7 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getExcludeObjectsB * * *
    -     * PostgreSQL objects to exclude from the stream.
    +     * The PostgreSQL objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; @@ -1121,7 +1121,7 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getExcludeObjects * * *
    -     * PostgreSQL objects to exclude from the stream.
    +     * The PostgreSQL objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java index 6d9ece907787..d3f9466b4c00 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java @@ -30,7 +30,7 @@ public interface PostgresqlSourceConfigOrBuilder * * *
    -   * PostgreSQL objects to include in the stream.
    +   * The PostgreSQL objects to include in the stream.
        * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; @@ -43,7 +43,7 @@ public interface PostgresqlSourceConfigOrBuilder * * *
    -   * PostgreSQL objects to include in the stream.
    +   * The PostgreSQL objects to include in the stream.
        * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; @@ -56,7 +56,7 @@ public interface PostgresqlSourceConfigOrBuilder * * *
    -   * PostgreSQL objects to include in the stream.
    +   * The PostgreSQL objects to include in the stream.
        * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; @@ -67,7 +67,7 @@ public interface PostgresqlSourceConfigOrBuilder * * *
    -   * PostgreSQL objects to exclude from the stream.
    +   * The PostgreSQL objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; @@ -80,7 +80,7 @@ public interface PostgresqlSourceConfigOrBuilder * * *
    -   * PostgreSQL objects to exclude from the stream.
    +   * The PostgreSQL objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; @@ -93,7 +93,7 @@ public interface PostgresqlSourceConfigOrBuilder * * *
    -   * PostgreSQL objects to exclude from the stream.
    +   * The PostgreSQL objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java index 92edb1f81cf7..4ebdbeb9c327 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Table name.
    +   * The table name.
        * 
    * * string table = 1; @@ -104,7 +104,7 @@ public java.lang.String getTable() { * * *
    -   * Table name.
    +   * The table name.
        * 
    * * string table = 1; @@ -600,7 +600,7 @@ public Builder mergeFrom( * * *
    -     * Table name.
    +     * The table name.
          * 
    * * string table = 1; @@ -623,7 +623,7 @@ public java.lang.String getTable() { * * *
    -     * Table name.
    +     * The table name.
          * 
    * * string table = 1; @@ -646,7 +646,7 @@ public com.google.protobuf.ByteString getTableBytes() { * * *
    -     * Table name.
    +     * The table name.
          * 
    * * string table = 1; @@ -668,7 +668,7 @@ public Builder setTable(java.lang.String value) { * * *
    -     * Table name.
    +     * The table name.
          * 
    * * string table = 1; @@ -686,7 +686,7 @@ public Builder clearTable() { * * *
    -     * Table name.
    +     * The table name.
          * 
    * * string table = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java index b65a22eb3600..e17b60a411a1 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java @@ -30,7 +30,7 @@ public interface PostgresqlTableOrBuilder * * *
    -   * Table name.
    +   * The table name.
        * 
    * * string table = 1; @@ -43,7 +43,7 @@ public interface PostgresqlTableOrBuilder * * *
    -   * Table name.
    +   * The table name.
        * 
    * * string table = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceField.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceField.java index ff3db56845ed..98499d5a397f 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceField.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceField.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Field name.
    +   * The field name.
        * 
    * * string name = 1; @@ -104,7 +104,7 @@ public java.lang.String getName() { * * *
    -   * Field name.
    +   * The field name.
        * 
    * * string name = 1; @@ -557,7 +557,7 @@ public Builder mergeFrom( * * *
    -     * Field name.
    +     * The field name.
          * 
    * * string name = 1; @@ -580,7 +580,7 @@ public java.lang.String getName() { * * *
    -     * Field name.
    +     * The field name.
          * 
    * * string name = 1; @@ -603,7 +603,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
    -     * Field name.
    +     * The field name.
          * 
    * * string name = 1; @@ -625,7 +625,7 @@ public Builder setName(java.lang.String value) { * * *
    -     * Field name.
    +     * The field name.
          * 
    * * string name = 1; @@ -643,7 +643,7 @@ public Builder clearName() { * * *
    -     * Field name.
    +     * The field name.
          * 
    * * string name = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceFieldOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceFieldOrBuilder.java index 605fa439ec75..9cacfee32497 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceFieldOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceFieldOrBuilder.java @@ -30,7 +30,7 @@ public interface SalesforceFieldOrBuilder * * *
    -   * Field name.
    +   * The field name.
        * 
    * * string name = 1; @@ -43,7 +43,7 @@ public interface SalesforceFieldOrBuilder * * *
    -   * Field name.
    +   * The field name.
        * 
    * * string name = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceMarketingCloudProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceMarketingCloudProfile.java new file mode 100644 index 000000000000..2e046fa20c1e --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceMarketingCloudProfile.java @@ -0,0 +1,978 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * Profile for connecting to a Salesforce Marketing Cloud source.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SalesforceMarketingCloudProfile} + */ +@com.google.protobuf.Generated +public final class SalesforceMarketingCloudProfile extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SalesforceMarketingCloudProfile) + SalesforceMarketingCloudProfileOrBuilder { + 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= */ "", + "SalesforceMarketingCloudProfile"); + } + + // Use SalesforceMarketingCloudProfile.newBuilder() to construct. + private SalesforceMarketingCloudProfile(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SalesforceMarketingCloudProfile() { + subdomain_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SalesforceMarketingCloudProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SalesforceMarketingCloudProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile.class, + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile.Builder.class); + } + + private int bitField0_; + public static final int SUBDOMAIN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object subdomain_ = ""; + + /** + * + * + *
    +   * Required. Subdomain for the Salesforce Marketing Cloud connection.
    +   * Example: if your specific endpoint is
    +   * `https://{your-specific-subdomain}.rest.marketingcloudapis.com/`,
    +   * the subdomain is `{your-specific-subdomain}`.
    +   * Must be 1-63 characters, start and end with an alphanumeric character,
    +   * and contain only lowercase letters, numbers, and hyphens (-).
    +   * 
    + * + * string subdomain = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The subdomain. + */ + @java.lang.Override + public java.lang.String getSubdomain() { + java.lang.Object ref = subdomain_; + 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(); + subdomain_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. Subdomain for the Salesforce Marketing Cloud connection.
    +   * Example: if your specific endpoint is
    +   * `https://{your-specific-subdomain}.rest.marketingcloudapis.com/`,
    +   * the subdomain is `{your-specific-subdomain}`.
    +   * Must be 1-63 characters, start and end with an alphanumeric character,
    +   * and contain only lowercase letters, numbers, and hyphens (-).
    +   * 
    + * + * string subdomain = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for subdomain. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubdomainBytes() { + java.lang.Object ref = subdomain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subdomain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OAUTH_CLIENT_CREDENTIALS_FIELD_NUMBER = 3; + private com.google.cloud.datastream.v1.OauthClientCredentials oauthClientCredentials_; + + /** + * + * + *
    +   * Required. Input only. Credentials for authenticating with the Salesforce
    +   * Marketing Cloud API.
    +   * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the oauthClientCredentials field is set. + */ + @java.lang.Override + public boolean hasOauthClientCredentials() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. Input only. Credentials for authenticating with the Salesforce
    +   * Marketing Cloud API.
    +   * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The oauthClientCredentials. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OauthClientCredentials getOauthClientCredentials() { + return oauthClientCredentials_ == null + ? com.google.cloud.datastream.v1.OauthClientCredentials.getDefaultInstance() + : oauthClientCredentials_; + } + + /** + * + * + *
    +   * Required. Input only. Credentials for authenticating with the Salesforce
    +   * Marketing Cloud API.
    +   * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder + getOauthClientCredentialsOrBuilder() { + return oauthClientCredentials_ == null + ? com.google.cloud.datastream.v1.OauthClientCredentials.getDefaultInstance() + : oauthClientCredentials_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subdomain_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, subdomain_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getOauthClientCredentials()); + } + 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(subdomain_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, subdomain_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOauthClientCredentials()); + } + 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.datastream.v1.SalesforceMarketingCloudProfile)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile other = + (com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile) obj; + + if (!getSubdomain().equals(other.getSubdomain())) return false; + if (hasOauthClientCredentials() != other.hasOauthClientCredentials()) return false; + if (hasOauthClientCredentials()) { + if (!getOauthClientCredentials().equals(other.getOauthClientCredentials())) 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) + SUBDOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getSubdomain().hashCode(); + if (hasOauthClientCredentials()) { + hash = (37 * hash) + OAUTH_CLIENT_CREDENTIALS_FIELD_NUMBER; + hash = (53 * hash) + getOauthClientCredentials().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile 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.datastream.v1.SalesforceMarketingCloudProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile 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.datastream.v1.SalesforceMarketingCloudProfile parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile 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.datastream.v1.SalesforceMarketingCloudProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile 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.datastream.v1.SalesforceMarketingCloudProfile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile 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.datastream.v1.SalesforceMarketingCloudProfile 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; + } + + /** + * + * + *
    +   * Profile for connecting to a Salesforce Marketing Cloud source.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SalesforceMarketingCloudProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SalesforceMarketingCloudProfile) + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SalesforceMarketingCloudProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SalesforceMarketingCloudProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile.class, + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetOauthClientCredentialsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + subdomain_ = ""; + oauthClientCredentials_ = null; + if (oauthClientCredentialsBuilder_ != null) { + oauthClientCredentialsBuilder_.dispose(); + oauthClientCredentialsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SalesforceMarketingCloudProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile build() { + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile buildPartial() { + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile result = + new com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subdomain_ = subdomain_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.oauthClientCredentials_ = + oauthClientCredentialsBuilder_ == null + ? oauthClientCredentials_ + : oauthClientCredentialsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile) { + return mergeFrom((com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile other) { + if (other + == com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile.getDefaultInstance()) + return this; + if (!other.getSubdomain().isEmpty()) { + subdomain_ = other.subdomain_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasOauthClientCredentials()) { + mergeOauthClientCredentials(other.getOauthClientCredentials()); + } + 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: + { + subdomain_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + input.readMessage( + internalGetOauthClientCredentialsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + 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 subdomain_ = ""; + + /** + * + * + *
    +     * Required. Subdomain for the Salesforce Marketing Cloud connection.
    +     * Example: if your specific endpoint is
    +     * `https://{your-specific-subdomain}.rest.marketingcloudapis.com/`,
    +     * the subdomain is `{your-specific-subdomain}`.
    +     * Must be 1-63 characters, start and end with an alphanumeric character,
    +     * and contain only lowercase letters, numbers, and hyphens (-).
    +     * 
    + * + * string subdomain = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The subdomain. + */ + public java.lang.String getSubdomain() { + java.lang.Object ref = subdomain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subdomain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. Subdomain for the Salesforce Marketing Cloud connection.
    +     * Example: if your specific endpoint is
    +     * `https://{your-specific-subdomain}.rest.marketingcloudapis.com/`,
    +     * the subdomain is `{your-specific-subdomain}`.
    +     * Must be 1-63 characters, start and end with an alphanumeric character,
    +     * and contain only lowercase letters, numbers, and hyphens (-).
    +     * 
    + * + * string subdomain = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for subdomain. + */ + public com.google.protobuf.ByteString getSubdomainBytes() { + java.lang.Object ref = subdomain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subdomain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. Subdomain for the Salesforce Marketing Cloud connection.
    +     * Example: if your specific endpoint is
    +     * `https://{your-specific-subdomain}.rest.marketingcloudapis.com/`,
    +     * the subdomain is `{your-specific-subdomain}`.
    +     * Must be 1-63 characters, start and end with an alphanumeric character,
    +     * and contain only lowercase letters, numbers, and hyphens (-).
    +     * 
    + * + * string subdomain = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The subdomain to set. + * @return This builder for chaining. + */ + public Builder setSubdomain(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + subdomain_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Subdomain for the Salesforce Marketing Cloud connection.
    +     * Example: if your specific endpoint is
    +     * `https://{your-specific-subdomain}.rest.marketingcloudapis.com/`,
    +     * the subdomain is `{your-specific-subdomain}`.
    +     * Must be 1-63 characters, start and end with an alphanumeric character,
    +     * and contain only lowercase letters, numbers, and hyphens (-).
    +     * 
    + * + * string subdomain = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSubdomain() { + subdomain_ = getDefaultInstance().getSubdomain(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Subdomain for the Salesforce Marketing Cloud connection.
    +     * Example: if your specific endpoint is
    +     * `https://{your-specific-subdomain}.rest.marketingcloudapis.com/`,
    +     * the subdomain is `{your-specific-subdomain}`.
    +     * Must be 1-63 characters, start and end with an alphanumeric character,
    +     * and contain only lowercase letters, numbers, and hyphens (-).
    +     * 
    + * + * string subdomain = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for subdomain to set. + * @return This builder for chaining. + */ + public Builder setSubdomainBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subdomain_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.datastream.v1.OauthClientCredentials oauthClientCredentials_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.OauthClientCredentials, + com.google.cloud.datastream.v1.OauthClientCredentials.Builder, + com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder> + oauthClientCredentialsBuilder_; + + /** + * + * + *
    +     * Required. Input only. Credentials for authenticating with the Salesforce
    +     * Marketing Cloud API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the oauthClientCredentials field is set. + */ + public boolean hasOauthClientCredentials() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. Input only. Credentials for authenticating with the Salesforce
    +     * Marketing Cloud API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The oauthClientCredentials. + */ + public com.google.cloud.datastream.v1.OauthClientCredentials getOauthClientCredentials() { + if (oauthClientCredentialsBuilder_ == null) { + return oauthClientCredentials_ == null + ? com.google.cloud.datastream.v1.OauthClientCredentials.getDefaultInstance() + : oauthClientCredentials_; + } else { + return oauthClientCredentialsBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. Input only. Credentials for authenticating with the Salesforce
    +     * Marketing Cloud API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOauthClientCredentials( + com.google.cloud.datastream.v1.OauthClientCredentials value) { + if (oauthClientCredentialsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oauthClientCredentials_ = value; + } else { + oauthClientCredentialsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Input only. Credentials for authenticating with the Salesforce
    +     * Marketing Cloud API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOauthClientCredentials( + com.google.cloud.datastream.v1.OauthClientCredentials.Builder builderForValue) { + if (oauthClientCredentialsBuilder_ == null) { + oauthClientCredentials_ = builderForValue.build(); + } else { + oauthClientCredentialsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Input only. Credentials for authenticating with the Salesforce
    +     * Marketing Cloud API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeOauthClientCredentials( + com.google.cloud.datastream.v1.OauthClientCredentials value) { + if (oauthClientCredentialsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && oauthClientCredentials_ != null + && oauthClientCredentials_ + != com.google.cloud.datastream.v1.OauthClientCredentials.getDefaultInstance()) { + getOauthClientCredentialsBuilder().mergeFrom(value); + } else { + oauthClientCredentials_ = value; + } + } else { + oauthClientCredentialsBuilder_.mergeFrom(value); + } + if (oauthClientCredentials_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. Input only. Credentials for authenticating with the Salesforce
    +     * Marketing Cloud API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearOauthClientCredentials() { + bitField0_ = (bitField0_ & ~0x00000002); + oauthClientCredentials_ = null; + if (oauthClientCredentialsBuilder_ != null) { + oauthClientCredentialsBuilder_.dispose(); + oauthClientCredentialsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Input only. Credentials for authenticating with the Salesforce
    +     * Marketing Cloud API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.datastream.v1.OauthClientCredentials.Builder + getOauthClientCredentialsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetOauthClientCredentialsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. Input only. Credentials for authenticating with the Salesforce
    +     * Marketing Cloud API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder + getOauthClientCredentialsOrBuilder() { + if (oauthClientCredentialsBuilder_ != null) { + return oauthClientCredentialsBuilder_.getMessageOrBuilder(); + } else { + return oauthClientCredentials_ == null + ? com.google.cloud.datastream.v1.OauthClientCredentials.getDefaultInstance() + : oauthClientCredentials_; + } + } + + /** + * + * + *
    +     * Required. Input only. Credentials for authenticating with the Salesforce
    +     * Marketing Cloud API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.OauthClientCredentials, + com.google.cloud.datastream.v1.OauthClientCredentials.Builder, + com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder> + internalGetOauthClientCredentialsFieldBuilder() { + if (oauthClientCredentialsBuilder_ == null) { + oauthClientCredentialsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.OauthClientCredentials, + com.google.cloud.datastream.v1.OauthClientCredentials.Builder, + com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder>( + getOauthClientCredentials(), getParentForChildren(), isClean()); + oauthClientCredentials_ = null; + } + return oauthClientCredentialsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SalesforceMarketingCloudProfile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SalesforceMarketingCloudProfile) + private static final com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile(); + } + + public static com.google.cloud.datastream.v1.SalesforceMarketingCloudProfile + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SalesforceMarketingCloudProfile 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.datastream.v1.SalesforceMarketingCloudProfile + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceMarketingCloudProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceMarketingCloudProfileOrBuilder.java new file mode 100644 index 000000000000..b45dffbe4909 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceMarketingCloudProfileOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface SalesforceMarketingCloudProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SalesforceMarketingCloudProfile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Subdomain for the Salesforce Marketing Cloud connection.
    +   * Example: if your specific endpoint is
    +   * `https://{your-specific-subdomain}.rest.marketingcloudapis.com/`,
    +   * the subdomain is `{your-specific-subdomain}`.
    +   * Must be 1-63 characters, start and end with an alphanumeric character,
    +   * and contain only lowercase letters, numbers, and hyphens (-).
    +   * 
    + * + * string subdomain = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The subdomain. + */ + java.lang.String getSubdomain(); + + /** + * + * + *
    +   * Required. Subdomain for the Salesforce Marketing Cloud connection.
    +   * Example: if your specific endpoint is
    +   * `https://{your-specific-subdomain}.rest.marketingcloudapis.com/`,
    +   * the subdomain is `{your-specific-subdomain}`.
    +   * Must be 1-63 characters, start and end with an alphanumeric character,
    +   * and contain only lowercase letters, numbers, and hyphens (-).
    +   * 
    + * + * string subdomain = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for subdomain. + */ + com.google.protobuf.ByteString getSubdomainBytes(); + + /** + * + * + *
    +   * Required. Input only. Credentials for authenticating with the Salesforce
    +   * Marketing Cloud API.
    +   * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the oauthClientCredentials field is set. + */ + boolean hasOauthClientCredentials(); + + /** + * + * + *
    +   * Required. Input only. Credentials for authenticating with the Salesforce
    +   * Marketing Cloud API.
    +   * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The oauthClientCredentials. + */ + com.google.cloud.datastream.v1.OauthClientCredentials getOauthClientCredentials(); + + /** + * + * + *
    +   * Required. Input only. Credentials for authenticating with the Salesforce
    +   * Marketing Cloud API.
    +   * 
    + * + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder + getOauthClientCredentialsOrBuilder(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceMarketingCloudSourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceMarketingCloudSourceConfig.java new file mode 100644 index 000000000000..9cadaec7a9ee --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceMarketingCloudSourceConfig.java @@ -0,0 +1,1710 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * Configuration for syncing data from a Salesforce Marketing Cloud source.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig} + */ +@com.google.protobuf.Generated +public final class SalesforceMarketingCloudSourceConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig) + SalesforceMarketingCloudSourceConfigOrBuilder { + 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= */ "", + "SalesforceMarketingCloudSourceConfig"); + } + + // Use SalesforceMarketingCloudSourceConfig.newBuilder() to construct. + private SalesforceMarketingCloudSourceConfig( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SalesforceMarketingCloudSourceConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SalesforceMarketingCloudSourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SalesforceMarketingCloudSourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig.class, + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig.Builder.class); + } + + private int bitField0_; + public static final int INCLUDE_OBJECTS_FIELD_NUMBER = 1; + private com.google.cloud.datastream.v1.SourceCatalog includeObjects_; + + /** + * + * + *
    +   * Optional. The objects to retrieve from the source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the includeObjects field is set. + */ + @java.lang.Override + public boolean hasIncludeObjects() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Optional. The objects to retrieve from the source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The includeObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalog getIncludeObjects() { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : includeObjects_; + } + + /** + * + * + *
    +   * Optional. The objects to retrieve from the source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalogOrBuilder getIncludeObjectsOrBuilder() { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : includeObjects_; + } + + public static final int EXCLUDE_OBJECTS_FIELD_NUMBER = 2; + private com.google.cloud.datastream.v1.SourceCatalog excludeObjects_; + + /** + * + * + *
    +   * Optional. The objects to exclude from the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the excludeObjects field is set. + */ + @java.lang.Override + public boolean hasExcludeObjects() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Optional. The objects to exclude from the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludeObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalog getExcludeObjects() { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : excludeObjects_; + } + + /** + * + * + *
    +   * Optional. The objects to exclude from the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalogOrBuilder getExcludeObjectsOrBuilder() { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : excludeObjects_; + } + + public static final int POLLING_INTERVAL_FIELD_NUMBER = 3; + private com.google.protobuf.Duration pollingInterval_; + + /** + * + * + *
    +   * Required. Incremental sync polling interval for all objects. If not set, a
    +   * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +   * to `24 hours`, inclusive.
    +   * 
    + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the pollingInterval field is set. + */ + @java.lang.Override + public boolean hasPollingInterval() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Required. Incremental sync polling interval for all objects. If not set, a
    +   * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +   * to `24 hours`, inclusive.
    +   * 
    + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The pollingInterval. + */ + @java.lang.Override + public com.google.protobuf.Duration getPollingInterval() { + return pollingInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : pollingInterval_; + } + + /** + * + * + *
    +   * Required. Incremental sync polling interval for all objects. If not set, a
    +   * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +   * to `24 hours`, inclusive.
    +   * 
    + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getPollingIntervalOrBuilder() { + return pollingInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : pollingInterval_; + } + + public static final int FULL_REFRESH_POLLING_INTERVAL_FIELD_NUMBER = 4; + private com.google.protobuf.Duration fullRefreshPollingInterval_; + + /** + * + * + *
    +   * Required. Specifies the polling interval for a full refresh of objects that
    +   * do not support incremental sync. If not set, a default value of 24 hours is
    +   * used. The duration must be between 1 and 24 hours, inclusive.
    +   * 
    + * + * + * .google.protobuf.Duration full_refresh_polling_interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the fullRefreshPollingInterval field is set. + */ + @java.lang.Override + public boolean hasFullRefreshPollingInterval() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +   * Required. Specifies the polling interval for a full refresh of objects that
    +   * do not support incremental sync. If not set, a default value of 24 hours is
    +   * used. The duration must be between 1 and 24 hours, inclusive.
    +   * 
    + * + * + * .google.protobuf.Duration full_refresh_polling_interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The fullRefreshPollingInterval. + */ + @java.lang.Override + public com.google.protobuf.Duration getFullRefreshPollingInterval() { + return fullRefreshPollingInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : fullRefreshPollingInterval_; + } + + /** + * + * + *
    +   * Required. Specifies the polling interval for a full refresh of objects that
    +   * do not support incremental sync. If not set, a default value of 24 hours is
    +   * used. The duration must be between 1 and 24 hours, inclusive.
    +   * 
    + * + * + * .google.protobuf.Duration full_refresh_polling_interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getFullRefreshPollingIntervalOrBuilder() { + return fullRefreshPollingInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : fullRefreshPollingInterval_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getIncludeObjects()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getExcludeObjects()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getPollingInterval()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getFullRefreshPollingInterval()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIncludeObjects()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExcludeObjects()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPollingInterval()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getFullRefreshPollingInterval()); + } + 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.datastream.v1.SalesforceMarketingCloudSourceConfig)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig other = + (com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig) obj; + + if (hasIncludeObjects() != other.hasIncludeObjects()) return false; + if (hasIncludeObjects()) { + if (!getIncludeObjects().equals(other.getIncludeObjects())) return false; + } + if (hasExcludeObjects() != other.hasExcludeObjects()) return false; + if (hasExcludeObjects()) { + if (!getExcludeObjects().equals(other.getExcludeObjects())) return false; + } + if (hasPollingInterval() != other.hasPollingInterval()) return false; + if (hasPollingInterval()) { + if (!getPollingInterval().equals(other.getPollingInterval())) return false; + } + if (hasFullRefreshPollingInterval() != other.hasFullRefreshPollingInterval()) return false; + if (hasFullRefreshPollingInterval()) { + if (!getFullRefreshPollingInterval().equals(other.getFullRefreshPollingInterval())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIncludeObjects()) { + hash = (37 * hash) + INCLUDE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getIncludeObjects().hashCode(); + } + if (hasExcludeObjects()) { + hash = (37 * hash) + EXCLUDE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getExcludeObjects().hashCode(); + } + if (hasPollingInterval()) { + hash = (37 * hash) + POLLING_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getPollingInterval().hashCode(); + } + if (hasFullRefreshPollingInterval()) { + hash = (37 * hash) + FULL_REFRESH_POLLING_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getFullRefreshPollingInterval().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig 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.datastream.v1.SalesforceMarketingCloudSourceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig 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.datastream.v1.SalesforceMarketingCloudSourceConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig 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.datastream.v1.SalesforceMarketingCloudSourceConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig + 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.datastream.v1.SalesforceMarketingCloudSourceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig 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.datastream.v1.SalesforceMarketingCloudSourceConfig 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; + } + + /** + * + * + *
    +   * Configuration for syncing data from a Salesforce Marketing Cloud source.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig) + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SalesforceMarketingCloudSourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SalesforceMarketingCloudSourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig.class, + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig.Builder.class); + } + + // Construct using + // com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetIncludeObjectsFieldBuilder(); + internalGetExcludeObjectsFieldBuilder(); + internalGetPollingIntervalFieldBuilder(); + internalGetFullRefreshPollingIntervalFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + includeObjects_ = null; + if (includeObjectsBuilder_ != null) { + includeObjectsBuilder_.dispose(); + includeObjectsBuilder_ = null; + } + excludeObjects_ = null; + if (excludeObjectsBuilder_ != null) { + excludeObjectsBuilder_.dispose(); + excludeObjectsBuilder_ = null; + } + pollingInterval_ = null; + if (pollingIntervalBuilder_ != null) { + pollingIntervalBuilder_.dispose(); + pollingIntervalBuilder_ = null; + } + fullRefreshPollingInterval_ = null; + if (fullRefreshPollingIntervalBuilder_ != null) { + fullRefreshPollingIntervalBuilder_.dispose(); + fullRefreshPollingIntervalBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SalesforceMarketingCloudSourceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig build() { + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig buildPartial() { + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig result = + new com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.includeObjects_ = + includeObjectsBuilder_ == null ? includeObjects_ : includeObjectsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.excludeObjects_ = + excludeObjectsBuilder_ == null ? excludeObjects_ : excludeObjectsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pollingInterval_ = + pollingIntervalBuilder_ == null ? pollingInterval_ : pollingIntervalBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.fullRefreshPollingInterval_ = + fullRefreshPollingIntervalBuilder_ == null + ? fullRefreshPollingInterval_ + : fullRefreshPollingIntervalBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig) { + return mergeFrom( + (com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig other) { + if (other + == com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig + .getDefaultInstance()) return this; + if (other.hasIncludeObjects()) { + mergeIncludeObjects(other.getIncludeObjects()); + } + if (other.hasExcludeObjects()) { + mergeExcludeObjects(other.getExcludeObjects()); + } + if (other.hasPollingInterval()) { + mergePollingInterval(other.getPollingInterval()); + } + if (other.hasFullRefreshPollingInterval()) { + mergeFullRefreshPollingInterval(other.getFullRefreshPollingInterval()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetIncludeObjectsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetExcludeObjectsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetPollingIntervalFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetFullRefreshPollingIntervalFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.datastream.v1.SourceCatalog includeObjects_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder> + includeObjectsBuilder_; + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the includeObjects field is set. + */ + public boolean hasIncludeObjects() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The includeObjects. + */ + public com.google.cloud.datastream.v1.SourceCatalog getIncludeObjects() { + if (includeObjectsBuilder_ == null) { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : includeObjects_; + } else { + return includeObjectsBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludeObjects(com.google.cloud.datastream.v1.SourceCatalog value) { + if (includeObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + includeObjects_ = value; + } else { + includeObjectsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludeObjects( + com.google.cloud.datastream.v1.SourceCatalog.Builder builderForValue) { + if (includeObjectsBuilder_ == null) { + includeObjects_ = builderForValue.build(); + } else { + includeObjectsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.SourceCatalog value) { + if (includeObjectsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && includeObjects_ != null + && includeObjects_ + != com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance()) { + getIncludeObjectsBuilder().mergeFrom(value); + } else { + includeObjects_ = value; + } + } else { + includeObjectsBuilder_.mergeFrom(value); + } + if (includeObjects_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIncludeObjects() { + bitField0_ = (bitField0_ & ~0x00000001); + includeObjects_ = null; + if (includeObjectsBuilder_ != null) { + includeObjectsBuilder_.dispose(); + includeObjectsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceCatalog.Builder getIncludeObjectsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetIncludeObjectsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceCatalogOrBuilder getIncludeObjectsOrBuilder() { + if (includeObjectsBuilder_ != null) { + return includeObjectsBuilder_.getMessageOrBuilder(); + } else { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : includeObjects_; + } + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder> + internalGetIncludeObjectsFieldBuilder() { + if (includeObjectsBuilder_ == null) { + includeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder>( + getIncludeObjects(), getParentForChildren(), isClean()); + includeObjects_ = null; + } + return includeObjectsBuilder_; + } + + private com.google.cloud.datastream.v1.SourceCatalog excludeObjects_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder> + excludeObjectsBuilder_; + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the excludeObjects field is set. + */ + public boolean hasExcludeObjects() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludeObjects. + */ + public com.google.cloud.datastream.v1.SourceCatalog getExcludeObjects() { + if (excludeObjectsBuilder_ == null) { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : excludeObjects_; + } else { + return excludeObjectsBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExcludeObjects(com.google.cloud.datastream.v1.SourceCatalog value) { + if (excludeObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + excludeObjects_ = value; + } else { + excludeObjectsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExcludeObjects( + com.google.cloud.datastream.v1.SourceCatalog.Builder builderForValue) { + if (excludeObjectsBuilder_ == null) { + excludeObjects_ = builderForValue.build(); + } else { + excludeObjectsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.SourceCatalog value) { + if (excludeObjectsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && excludeObjects_ != null + && excludeObjects_ + != com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance()) { + getExcludeObjectsBuilder().mergeFrom(value); + } else { + excludeObjects_ = value; + } + } else { + excludeObjectsBuilder_.mergeFrom(value); + } + if (excludeObjects_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExcludeObjects() { + bitField0_ = (bitField0_ & ~0x00000002); + excludeObjects_ = null; + if (excludeObjectsBuilder_ != null) { + excludeObjectsBuilder_.dispose(); + excludeObjectsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceCatalog.Builder getExcludeObjectsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetExcludeObjectsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceCatalogOrBuilder getExcludeObjectsOrBuilder() { + if (excludeObjectsBuilder_ != null) { + return excludeObjectsBuilder_.getMessageOrBuilder(); + } else { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : excludeObjects_; + } + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder> + internalGetExcludeObjectsFieldBuilder() { + if (excludeObjectsBuilder_ == null) { + excludeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder>( + getExcludeObjects(), getParentForChildren(), isClean()); + excludeObjects_ = null; + } + return excludeObjectsBuilder_; + } + + private com.google.protobuf.Duration pollingInterval_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + pollingIntervalBuilder_; + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the pollingInterval field is set. + */ + public boolean hasPollingInterval() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The pollingInterval. + */ + public com.google.protobuf.Duration getPollingInterval() { + if (pollingIntervalBuilder_ == null) { + return pollingInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : pollingInterval_; + } else { + return pollingIntervalBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPollingInterval(com.google.protobuf.Duration value) { + if (pollingIntervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pollingInterval_ = value; + } else { + pollingIntervalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPollingInterval(com.google.protobuf.Duration.Builder builderForValue) { + if (pollingIntervalBuilder_ == null) { + pollingInterval_ = builderForValue.build(); + } else { + pollingIntervalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePollingInterval(com.google.protobuf.Duration value) { + if (pollingIntervalBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && pollingInterval_ != null + && pollingInterval_ != com.google.protobuf.Duration.getDefaultInstance()) { + getPollingIntervalBuilder().mergeFrom(value); + } else { + pollingInterval_ = value; + } + } else { + pollingIntervalBuilder_.mergeFrom(value); + } + if (pollingInterval_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPollingInterval() { + bitField0_ = (bitField0_ & ~0x00000004); + pollingInterval_ = null; + if (pollingIntervalBuilder_ != null) { + pollingIntervalBuilder_.dispose(); + pollingIntervalBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Duration.Builder getPollingIntervalBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetPollingIntervalFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.DurationOrBuilder getPollingIntervalOrBuilder() { + if (pollingIntervalBuilder_ != null) { + return pollingIntervalBuilder_.getMessageOrBuilder(); + } else { + return pollingInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : pollingInterval_; + } + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetPollingIntervalFieldBuilder() { + if (pollingIntervalBuilder_ == null) { + pollingIntervalBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getPollingInterval(), getParentForChildren(), isClean()); + pollingInterval_ = null; + } + return pollingIntervalBuilder_; + } + + private com.google.protobuf.Duration fullRefreshPollingInterval_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + fullRefreshPollingIntervalBuilder_; + + /** + * + * + *
    +     * Required. Specifies the polling interval for a full refresh of objects that
    +     * do not support incremental sync. If not set, a default value of 24 hours is
    +     * used. The duration must be between 1 and 24 hours, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration full_refresh_polling_interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the fullRefreshPollingInterval field is set. + */ + public boolean hasFullRefreshPollingInterval() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +     * Required. Specifies the polling interval for a full refresh of objects that
    +     * do not support incremental sync. If not set, a default value of 24 hours is
    +     * used. The duration must be between 1 and 24 hours, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration full_refresh_polling_interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The fullRefreshPollingInterval. + */ + public com.google.protobuf.Duration getFullRefreshPollingInterval() { + if (fullRefreshPollingIntervalBuilder_ == null) { + return fullRefreshPollingInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : fullRefreshPollingInterval_; + } else { + return fullRefreshPollingIntervalBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. Specifies the polling interval for a full refresh of objects that
    +     * do not support incremental sync. If not set, a default value of 24 hours is
    +     * used. The duration must be between 1 and 24 hours, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration full_refresh_polling_interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFullRefreshPollingInterval(com.google.protobuf.Duration value) { + if (fullRefreshPollingIntervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fullRefreshPollingInterval_ = value; + } else { + fullRefreshPollingIntervalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Specifies the polling interval for a full refresh of objects that
    +     * do not support incremental sync. If not set, a default value of 24 hours is
    +     * used. The duration must be between 1 and 24 hours, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration full_refresh_polling_interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFullRefreshPollingInterval( + com.google.protobuf.Duration.Builder builderForValue) { + if (fullRefreshPollingIntervalBuilder_ == null) { + fullRefreshPollingInterval_ = builderForValue.build(); + } else { + fullRefreshPollingIntervalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Specifies the polling interval for a full refresh of objects that
    +     * do not support incremental sync. If not set, a default value of 24 hours is
    +     * used. The duration must be between 1 and 24 hours, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration full_refresh_polling_interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFullRefreshPollingInterval(com.google.protobuf.Duration value) { + if (fullRefreshPollingIntervalBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && fullRefreshPollingInterval_ != null + && fullRefreshPollingInterval_ != com.google.protobuf.Duration.getDefaultInstance()) { + getFullRefreshPollingIntervalBuilder().mergeFrom(value); + } else { + fullRefreshPollingInterval_ = value; + } + } else { + fullRefreshPollingIntervalBuilder_.mergeFrom(value); + } + if (fullRefreshPollingInterval_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. Specifies the polling interval for a full refresh of objects that
    +     * do not support incremental sync. If not set, a default value of 24 hours is
    +     * used. The duration must be between 1 and 24 hours, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration full_refresh_polling_interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFullRefreshPollingInterval() { + bitField0_ = (bitField0_ & ~0x00000008); + fullRefreshPollingInterval_ = null; + if (fullRefreshPollingIntervalBuilder_ != null) { + fullRefreshPollingIntervalBuilder_.dispose(); + fullRefreshPollingIntervalBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Specifies the polling interval for a full refresh of objects that
    +     * do not support incremental sync. If not set, a default value of 24 hours is
    +     * used. The duration must be between 1 and 24 hours, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration full_refresh_polling_interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Duration.Builder getFullRefreshPollingIntervalBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetFullRefreshPollingIntervalFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. Specifies the polling interval for a full refresh of objects that
    +     * do not support incremental sync. If not set, a default value of 24 hours is
    +     * used. The duration must be between 1 and 24 hours, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration full_refresh_polling_interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.DurationOrBuilder getFullRefreshPollingIntervalOrBuilder() { + if (fullRefreshPollingIntervalBuilder_ != null) { + return fullRefreshPollingIntervalBuilder_.getMessageOrBuilder(); + } else { + return fullRefreshPollingInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : fullRefreshPollingInterval_; + } + } + + /** + * + * + *
    +     * Required. Specifies the polling interval for a full refresh of objects that
    +     * do not support incremental sync. If not set, a default value of 24 hours is
    +     * used. The duration must be between 1 and 24 hours, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration full_refresh_polling_interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetFullRefreshPollingIntervalFieldBuilder() { + if (fullRefreshPollingIntervalBuilder_ == null) { + fullRefreshPollingIntervalBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getFullRefreshPollingInterval(), getParentForChildren(), isClean()); + fullRefreshPollingInterval_ = null; + } + return fullRefreshPollingIntervalBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig) + private static final com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig(); + } + + public static com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SalesforceMarketingCloudSourceConfig 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.datastream.v1.SalesforceMarketingCloudSourceConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceMarketingCloudSourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceMarketingCloudSourceConfigOrBuilder.java new file mode 100644 index 000000000000..0add72935b67 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceMarketingCloudSourceConfigOrBuilder.java @@ -0,0 +1,209 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface SalesforceMarketingCloudSourceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. The objects to retrieve from the source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the includeObjects field is set. + */ + boolean hasIncludeObjects(); + + /** + * + * + *
    +   * Optional. The objects to retrieve from the source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The includeObjects. + */ + com.google.cloud.datastream.v1.SourceCatalog getIncludeObjects(); + + /** + * + * + *
    +   * Optional. The objects to retrieve from the source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SourceCatalogOrBuilder getIncludeObjectsOrBuilder(); + + /** + * + * + *
    +   * Optional. The objects to exclude from the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the excludeObjects field is set. + */ + boolean hasExcludeObjects(); + + /** + * + * + *
    +   * Optional. The objects to exclude from the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludeObjects. + */ + com.google.cloud.datastream.v1.SourceCatalog getExcludeObjects(); + + /** + * + * + *
    +   * Optional. The objects to exclude from the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SourceCatalogOrBuilder getExcludeObjectsOrBuilder(); + + /** + * + * + *
    +   * Required. Incremental sync polling interval for all objects. If not set, a
    +   * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +   * to `24 hours`, inclusive.
    +   * 
    + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the pollingInterval field is set. + */ + boolean hasPollingInterval(); + + /** + * + * + *
    +   * Required. Incremental sync polling interval for all objects. If not set, a
    +   * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +   * to `24 hours`, inclusive.
    +   * 
    + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The pollingInterval. + */ + com.google.protobuf.Duration getPollingInterval(); + + /** + * + * + *
    +   * Required. Incremental sync polling interval for all objects. If not set, a
    +   * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +   * to `24 hours`, inclusive.
    +   * 
    + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.DurationOrBuilder getPollingIntervalOrBuilder(); + + /** + * + * + *
    +   * Required. Specifies the polling interval for a full refresh of objects that
    +   * do not support incremental sync. If not set, a default value of 24 hours is
    +   * used. The duration must be between 1 and 24 hours, inclusive.
    +   * 
    + * + * + * .google.protobuf.Duration full_refresh_polling_interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the fullRefreshPollingInterval field is set. + */ + boolean hasFullRefreshPollingInterval(); + + /** + * + * + *
    +   * Required. Specifies the polling interval for a full refresh of objects that
    +   * do not support incremental sync. If not set, a default value of 24 hours is
    +   * used. The duration must be between 1 and 24 hours, inclusive.
    +   * 
    + * + * + * .google.protobuf.Duration full_refresh_polling_interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The fullRefreshPollingInterval. + */ + com.google.protobuf.Duration getFullRefreshPollingInterval(); + + /** + * + * + *
    +   * Required. Specifies the polling interval for a full refresh of objects that
    +   * do not support incremental sync. If not set, a default value of 24 hours is
    +   * used. The duration must be between 1 and 24 hours, inclusive.
    +   * 
    + * + * + * .google.protobuf.Duration full_refresh_polling_interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.DurationOrBuilder getFullRefreshPollingIntervalOrBuilder(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceObject.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceObject.java index 1a3afa709c98..4f810ea6cce2 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceObject.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceObject.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Object name.
    +   * The object name.
        * 
    * * string object_name = 1; @@ -104,7 +104,7 @@ public java.lang.String getObjectName() { * * *
    -   * Object name.
    +   * The object name.
        * 
    * * string object_name = 1; @@ -603,7 +603,7 @@ public Builder mergeFrom( * * *
    -     * Object name.
    +     * The object name.
          * 
    * * string object_name = 1; @@ -626,7 +626,7 @@ public java.lang.String getObjectName() { * * *
    -     * Object name.
    +     * The object name.
          * 
    * * string object_name = 1; @@ -649,7 +649,7 @@ public com.google.protobuf.ByteString getObjectNameBytes() { * * *
    -     * Object name.
    +     * The object name.
          * 
    * * string object_name = 1; @@ -671,7 +671,7 @@ public Builder setObjectName(java.lang.String value) { * * *
    -     * Object name.
    +     * The object name.
          * 
    * * string object_name = 1; @@ -689,7 +689,7 @@ public Builder clearObjectName() { * * *
    -     * Object name.
    +     * The object name.
          * 
    * * string object_name = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceObjectOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceObjectOrBuilder.java index 307115a5d053..96a3297cffd8 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceObjectOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceObjectOrBuilder.java @@ -30,7 +30,7 @@ public interface SalesforceObjectOrBuilder * * *
    -   * Object name.
    +   * The object name.
        * 
    * * string object_name = 1; @@ -43,7 +43,7 @@ public interface SalesforceObjectOrBuilder * * *
    -   * Object name.
    +   * The object name.
        * 
    * * string object_name = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceProfile.java index a98d9945e07e..2f45aaca2a54 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceProfile.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceProfile.java @@ -24,7 +24,7 @@ * * *
    - * Salesforce profile
    + * Profile for connecting to a Salesforce source.
      * 
    * * Protobuf type {@code google.cloud.datastream.v1.SalesforceProfile} @@ -70,6 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.datastream.v1.SalesforceProfile.Builder.class); } + @java.lang.Deprecated public interface UserCredentialsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SalesforceProfile.UserCredentials) @@ -228,11 +229,13 @@ public interface UserCredentialsOrBuilder * * *
    -   * Username-password credentials.
    +   * Deprecated: Salesforce is retiring Username-Password authentication.
    +   * Use `Oauth2ClientCredentials` instead.
        * 
    * * Protobuf type {@code google.cloud.datastream.v1.SalesforceProfile.UserCredentials} */ + @java.lang.Deprecated public static final class UserCredentials extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SalesforceProfile.UserCredentials) @@ -768,7 +771,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
    -     * Username-password credentials.
    +     * Deprecated: Salesforce is retiring Username-Password authentication.
    +     * Use `Oauth2ClientCredentials` instead.
          * 
    * * Protobuf type {@code google.cloud.datastream.v1.SalesforceProfile.UserCredentials} @@ -2758,6 +2762,7 @@ public enum CredentialsCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { + @java.lang.Deprecated USER_CREDENTIALS(2), OAUTH2_CLIENT_CREDENTIALS(3), CREDENTIALS_NOT_SET(0); @@ -2858,15 +2863,20 @@ public com.google.protobuf.ByteString getDomainBytes() { * * *
    -   * User-password authentication.
    +   * Deprecated: Salesforce is retiring Username-Password authentication.
    +   * Use `oauth2_client_credentials` instead.
        * 
    * - * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2; + * + * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2 [deprecated = true]; * * + * @deprecated google.cloud.datastream.v1.SalesforceProfile.user_credentials is deprecated. See + * google/cloud/datastream/v1/datastream_resources.proto;l=251 * @return Whether the userCredentials field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasUserCredentials() { return credentialsCase_ == 2; } @@ -2875,15 +2885,20 @@ public boolean hasUserCredentials() { * * *
    -   * User-password authentication.
    +   * Deprecated: Salesforce is retiring Username-Password authentication.
    +   * Use `oauth2_client_credentials` instead.
        * 
    * - * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2; + * + * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2 [deprecated = true]; * * + * @deprecated google.cloud.datastream.v1.SalesforceProfile.user_credentials is deprecated. See + * google/cloud/datastream/v1/datastream_resources.proto;l=251 * @return The userCredentials. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.datastream.v1.SalesforceProfile.UserCredentials getUserCredentials() { if (credentialsCase_ == 2) { return (com.google.cloud.datastream.v1.SalesforceProfile.UserCredentials) credentials_; @@ -2895,13 +2910,16 @@ public com.google.cloud.datastream.v1.SalesforceProfile.UserCredentials getUserC * * *
    -   * User-password authentication.
    +   * Deprecated: Salesforce is retiring Username-Password authentication.
    +   * Use `oauth2_client_credentials` instead.
        * 
    * - * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2; + * + * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.datastream.v1.SalesforceProfile.UserCredentialsOrBuilder getUserCredentialsOrBuilder() { if (credentialsCase_ == 2) { @@ -3184,7 +3202,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
    -   * Salesforce profile
    +   * Profile for connecting to a Salesforce source.
        * 
    * * Protobuf type {@code google.cloud.datastream.v1.SalesforceProfile} @@ -3516,15 +3534,20 @@ public Builder setDomainBytes(com.google.protobuf.ByteString value) { * * *
    -     * User-password authentication.
    +     * Deprecated: Salesforce is retiring Username-Password authentication.
    +     * Use `oauth2_client_credentials` instead.
          * 
    * - * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2; + * + * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2 [deprecated = true]; * * + * @deprecated google.cloud.datastream.v1.SalesforceProfile.user_credentials is deprecated. See + * google/cloud/datastream/v1/datastream_resources.proto;l=251 * @return Whether the userCredentials field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasUserCredentials() { return credentialsCase_ == 2; } @@ -3533,15 +3556,20 @@ public boolean hasUserCredentials() { * * *
    -     * User-password authentication.
    +     * Deprecated: Salesforce is retiring Username-Password authentication.
    +     * Use `oauth2_client_credentials` instead.
          * 
    * - * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2; + * + * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2 [deprecated = true]; * * + * @deprecated google.cloud.datastream.v1.SalesforceProfile.user_credentials is deprecated. See + * google/cloud/datastream/v1/datastream_resources.proto;l=251 * @return The userCredentials. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.datastream.v1.SalesforceProfile.UserCredentials getUserCredentials() { if (userCredentialsBuilder_ == null) { if (credentialsCase_ == 2) { @@ -3562,12 +3590,15 @@ public com.google.cloud.datastream.v1.SalesforceProfile.UserCredentials getUserC * * *
    -     * User-password authentication.
    +     * Deprecated: Salesforce is retiring Username-Password authentication.
    +     * Use `oauth2_client_credentials` instead.
          * 
    * - * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2; + * + * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setUserCredentials( com.google.cloud.datastream.v1.SalesforceProfile.UserCredentials value) { if (userCredentialsBuilder_ == null) { @@ -3587,12 +3618,15 @@ public Builder setUserCredentials( * * *
    -     * User-password authentication.
    +     * Deprecated: Salesforce is retiring Username-Password authentication.
    +     * Use `oauth2_client_credentials` instead.
          * 
    * - * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2; + * + * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setUserCredentials( com.google.cloud.datastream.v1.SalesforceProfile.UserCredentials.Builder builderForValue) { if (userCredentialsBuilder_ == null) { @@ -3609,12 +3643,15 @@ public Builder setUserCredentials( * * *
    -     * User-password authentication.
    +     * Deprecated: Salesforce is retiring Username-Password authentication.
    +     * Use `oauth2_client_credentials` instead.
          * 
    * - * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2; + * + * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2 [deprecated = true]; * */ + @java.lang.Deprecated public Builder mergeUserCredentials( com.google.cloud.datastream.v1.SalesforceProfile.UserCredentials value) { if (userCredentialsBuilder_ == null) { @@ -3647,12 +3684,15 @@ public Builder mergeUserCredentials( * * *
    -     * User-password authentication.
    +     * Deprecated: Salesforce is retiring Username-Password authentication.
    +     * Use `oauth2_client_credentials` instead.
          * 
    * - * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2; + * + * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2 [deprecated = true]; * */ + @java.lang.Deprecated public Builder clearUserCredentials() { if (userCredentialsBuilder_ == null) { if (credentialsCase_ == 2) { @@ -3674,12 +3714,15 @@ public Builder clearUserCredentials() { * * *
    -     * User-password authentication.
    +     * Deprecated: Salesforce is retiring Username-Password authentication.
    +     * Use `oauth2_client_credentials` instead.
          * 
    * - * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2; + * + * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.datastream.v1.SalesforceProfile.UserCredentials.Builder getUserCredentialsBuilder() { return internalGetUserCredentialsFieldBuilder().getBuilder(); @@ -3689,13 +3732,16 @@ public Builder clearUserCredentials() { * * *
    -     * User-password authentication.
    +     * Deprecated: Salesforce is retiring Username-Password authentication.
    +     * Use `oauth2_client_credentials` instead.
          * 
    * - * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2; + * + * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.datastream.v1.SalesforceProfile.UserCredentialsOrBuilder getUserCredentialsOrBuilder() { if ((credentialsCase_ == 2) && (userCredentialsBuilder_ != null)) { @@ -3713,10 +3759,12 @@ public Builder clearUserCredentials() { * * *
    -     * User-password authentication.
    +     * Deprecated: Salesforce is retiring Username-Password authentication.
    +     * Use `oauth2_client_credentials` instead.
          * 
    * - * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2; + * + * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2 [deprecated = true]; * */ private com.google.protobuf.SingleFieldBuilder< diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceProfileOrBuilder.java index 2edc684fece4..20e909f03a76 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceProfileOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceProfileOrBuilder.java @@ -56,40 +56,53 @@ public interface SalesforceProfileOrBuilder * * *
    -   * User-password authentication.
    +   * Deprecated: Salesforce is retiring Username-Password authentication.
    +   * Use `oauth2_client_credentials` instead.
        * 
    * - * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2; + * + * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2 [deprecated = true]; * * + * @deprecated google.cloud.datastream.v1.SalesforceProfile.user_credentials is deprecated. See + * google/cloud/datastream/v1/datastream_resources.proto;l=251 * @return Whether the userCredentials field is set. */ + @java.lang.Deprecated boolean hasUserCredentials(); /** * * *
    -   * User-password authentication.
    +   * Deprecated: Salesforce is retiring Username-Password authentication.
    +   * Use `oauth2_client_credentials` instead.
        * 
    * - * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2; + * + * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2 [deprecated = true]; * * + * @deprecated google.cloud.datastream.v1.SalesforceProfile.user_credentials is deprecated. See + * google/cloud/datastream/v1/datastream_resources.proto;l=251 * @return The userCredentials. */ + @java.lang.Deprecated com.google.cloud.datastream.v1.SalesforceProfile.UserCredentials getUserCredentials(); /** * * *
    -   * User-password authentication.
    +   * Deprecated: Salesforce is retiring Username-Password authentication.
    +   * Use `oauth2_client_credentials` instead.
        * 
    * - * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2; + * + * .google.cloud.datastream.v1.SalesforceProfile.UserCredentials user_credentials = 2 [deprecated = true]; * */ + @java.lang.Deprecated com.google.cloud.datastream.v1.SalesforceProfile.UserCredentialsOrBuilder getUserCredentialsOrBuilder(); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceSourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceSourceConfig.java index 37e27987add8..9628446b0730 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceSourceConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceSourceConfig.java @@ -24,7 +24,7 @@ * * *
    - * Salesforce source configuration
    + * Configuration for syncing data from a Salesforce source.
      * 
    * * Protobuf type {@code google.cloud.datastream.v1.SalesforceSourceConfig} @@ -76,7 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Salesforce objects to retrieve from the source.
    +   * The Salesforce objects to retrieve from the source.
        * 
    * * .google.cloud.datastream.v1.SalesforceOrg include_objects = 1; @@ -92,7 +92,7 @@ public boolean hasIncludeObjects() { * * *
    -   * Salesforce objects to retrieve from the source.
    +   * The Salesforce objects to retrieve from the source.
        * 
    * * .google.cloud.datastream.v1.SalesforceOrg include_objects = 1; @@ -110,7 +110,7 @@ public com.google.cloud.datastream.v1.SalesforceOrg getIncludeObjects() { * * *
    -   * Salesforce objects to retrieve from the source.
    +   * The Salesforce objects to retrieve from the source.
        * 
    * * .google.cloud.datastream.v1.SalesforceOrg include_objects = 1; @@ -129,7 +129,7 @@ public com.google.cloud.datastream.v1.SalesforceOrgOrBuilder getIncludeObjectsOr * * *
    -   * Salesforce objects to exclude from the stream.
    +   * The Salesforce objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.SalesforceOrg exclude_objects = 2; @@ -145,7 +145,7 @@ public boolean hasExcludeObjects() { * * *
    -   * Salesforce objects to exclude from the stream.
    +   * The Salesforce objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.SalesforceOrg exclude_objects = 2; @@ -163,7 +163,7 @@ public com.google.cloud.datastream.v1.SalesforceOrg getExcludeObjects() { * * *
    -   * Salesforce objects to exclude from the stream.
    +   * The Salesforce objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.SalesforceOrg exclude_objects = 2; @@ -183,8 +183,8 @@ public com.google.cloud.datastream.v1.SalesforceOrgOrBuilder getExcludeObjectsOr * *
        * Required. Salesforce objects polling interval. The interval at which new
    -   * changes will be polled for each object. The duration must be between 5
    -   * minutes and 24 hours.
    +   * changes will be polled for each object. The duration must be from `5
    +   * minutes` to `24 hours`, inclusive.
        * 
    * * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -202,8 +202,8 @@ public boolean hasPollingInterval() { * *
        * Required. Salesforce objects polling interval. The interval at which new
    -   * changes will be polled for each object. The duration must be between 5
    -   * minutes and 24 hours.
    +   * changes will be polled for each object. The duration must be from `5
    +   * minutes` to `24 hours`, inclusive.
        * 
    * * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -223,8 +223,8 @@ public com.google.protobuf.Duration getPollingInterval() { * *
        * Required. Salesforce objects polling interval. The interval at which new
    -   * changes will be polled for each object. The duration must be between 5
    -   * minutes and 24 hours.
    +   * changes will be polled for each object. The duration must be from `5
    +   * minutes` to `24 hours`, inclusive.
        * 
    * * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -435,7 +435,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
    -   * Salesforce source configuration
    +   * Configuration for syncing data from a Salesforce source.
        * 
    * * Protobuf type {@code google.cloud.datastream.v1.SalesforceSourceConfig} @@ -650,7 +650,7 @@ public Builder mergeFrom( * * *
    -     * Salesforce objects to retrieve from the source.
    +     * The Salesforce objects to retrieve from the source.
          * 
    * * .google.cloud.datastream.v1.SalesforceOrg include_objects = 1; @@ -665,7 +665,7 @@ public boolean hasIncludeObjects() { * * *
    -     * Salesforce objects to retrieve from the source.
    +     * The Salesforce objects to retrieve from the source.
          * 
    * * .google.cloud.datastream.v1.SalesforceOrg include_objects = 1; @@ -686,7 +686,7 @@ public com.google.cloud.datastream.v1.SalesforceOrg getIncludeObjects() { * * *
    -     * Salesforce objects to retrieve from the source.
    +     * The Salesforce objects to retrieve from the source.
          * 
    * * .google.cloud.datastream.v1.SalesforceOrg include_objects = 1; @@ -709,7 +709,7 @@ public Builder setIncludeObjects(com.google.cloud.datastream.v1.SalesforceOrg va * * *
    -     * Salesforce objects to retrieve from the source.
    +     * The Salesforce objects to retrieve from the source.
          * 
    * * .google.cloud.datastream.v1.SalesforceOrg include_objects = 1; @@ -730,7 +730,7 @@ public Builder setIncludeObjects( * * *
    -     * Salesforce objects to retrieve from the source.
    +     * The Salesforce objects to retrieve from the source.
          * 
    * * .google.cloud.datastream.v1.SalesforceOrg include_objects = 1; @@ -759,7 +759,7 @@ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.SalesforceOrg * * *
    -     * Salesforce objects to retrieve from the source.
    +     * The Salesforce objects to retrieve from the source.
          * 
    * * .google.cloud.datastream.v1.SalesforceOrg include_objects = 1; @@ -779,7 +779,7 @@ public Builder clearIncludeObjects() { * * *
    -     * Salesforce objects to retrieve from the source.
    +     * The Salesforce objects to retrieve from the source.
          * 
    * * .google.cloud.datastream.v1.SalesforceOrg include_objects = 1; @@ -794,7 +794,7 @@ public com.google.cloud.datastream.v1.SalesforceOrg.Builder getIncludeObjectsBui * * *
    -     * Salesforce objects to retrieve from the source.
    +     * The Salesforce objects to retrieve from the source.
          * 
    * * .google.cloud.datastream.v1.SalesforceOrg include_objects = 1; @@ -813,7 +813,7 @@ public com.google.cloud.datastream.v1.SalesforceOrgOrBuilder getIncludeObjectsOr * * *
    -     * Salesforce objects to retrieve from the source.
    +     * The Salesforce objects to retrieve from the source.
          * 
    * * .google.cloud.datastream.v1.SalesforceOrg include_objects = 1; @@ -846,7 +846,7 @@ public com.google.cloud.datastream.v1.SalesforceOrgOrBuilder getIncludeObjectsOr * * *
    -     * Salesforce objects to exclude from the stream.
    +     * The Salesforce objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.SalesforceOrg exclude_objects = 2; @@ -861,7 +861,7 @@ public boolean hasExcludeObjects() { * * *
    -     * Salesforce objects to exclude from the stream.
    +     * The Salesforce objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.SalesforceOrg exclude_objects = 2; @@ -882,7 +882,7 @@ public com.google.cloud.datastream.v1.SalesforceOrg getExcludeObjects() { * * *
    -     * Salesforce objects to exclude from the stream.
    +     * The Salesforce objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.SalesforceOrg exclude_objects = 2; @@ -905,7 +905,7 @@ public Builder setExcludeObjects(com.google.cloud.datastream.v1.SalesforceOrg va * * *
    -     * Salesforce objects to exclude from the stream.
    +     * The Salesforce objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.SalesforceOrg exclude_objects = 2; @@ -926,7 +926,7 @@ public Builder setExcludeObjects( * * *
    -     * Salesforce objects to exclude from the stream.
    +     * The Salesforce objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.SalesforceOrg exclude_objects = 2; @@ -955,7 +955,7 @@ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.SalesforceOrg * * *
    -     * Salesforce objects to exclude from the stream.
    +     * The Salesforce objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.SalesforceOrg exclude_objects = 2; @@ -975,7 +975,7 @@ public Builder clearExcludeObjects() { * * *
    -     * Salesforce objects to exclude from the stream.
    +     * The Salesforce objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.SalesforceOrg exclude_objects = 2; @@ -990,7 +990,7 @@ public com.google.cloud.datastream.v1.SalesforceOrg.Builder getExcludeObjectsBui * * *
    -     * Salesforce objects to exclude from the stream.
    +     * The Salesforce objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.SalesforceOrg exclude_objects = 2; @@ -1009,7 +1009,7 @@ public com.google.cloud.datastream.v1.SalesforceOrgOrBuilder getExcludeObjectsOr * * *
    -     * Salesforce objects to exclude from the stream.
    +     * The Salesforce objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.SalesforceOrg exclude_objects = 2; @@ -1043,8 +1043,8 @@ public com.google.cloud.datastream.v1.SalesforceOrgOrBuilder getExcludeObjectsOr * *
          * Required. Salesforce objects polling interval. The interval at which new
    -     * changes will be polled for each object. The duration must be between 5
    -     * minutes and 24 hours.
    +     * changes will be polled for each object. The duration must be from `5
    +     * minutes` to `24 hours`, inclusive.
          * 
    * * @@ -1062,8 +1062,8 @@ public boolean hasPollingInterval() { * *
          * Required. Salesforce objects polling interval. The interval at which new
    -     * changes will be polled for each object. The duration must be between 5
    -     * minutes and 24 hours.
    +     * changes will be polled for each object. The duration must be from `5
    +     * minutes` to `24 hours`, inclusive.
          * 
    * * @@ -1087,8 +1087,8 @@ public com.google.protobuf.Duration getPollingInterval() { * *
          * Required. Salesforce objects polling interval. The interval at which new
    -     * changes will be polled for each object. The duration must be between 5
    -     * minutes and 24 hours.
    +     * changes will be polled for each object. The duration must be from `5
    +     * minutes` to `24 hours`, inclusive.
          * 
    * * @@ -1114,8 +1114,8 @@ public Builder setPollingInterval(com.google.protobuf.Duration value) { * *
          * Required. Salesforce objects polling interval. The interval at which new
    -     * changes will be polled for each object. The duration must be between 5
    -     * minutes and 24 hours.
    +     * changes will be polled for each object. The duration must be from `5
    +     * minutes` to `24 hours`, inclusive.
          * 
    * * @@ -1138,8 +1138,8 @@ public Builder setPollingInterval(com.google.protobuf.Duration.Builder builderFo * *
          * Required. Salesforce objects polling interval. The interval at which new
    -     * changes will be polled for each object. The duration must be between 5
    -     * minutes and 24 hours.
    +     * changes will be polled for each object. The duration must be from `5
    +     * minutes` to `24 hours`, inclusive.
          * 
    * * @@ -1170,8 +1170,8 @@ public Builder mergePollingInterval(com.google.protobuf.Duration value) { * *
          * Required. Salesforce objects polling interval. The interval at which new
    -     * changes will be polled for each object. The duration must be between 5
    -     * minutes and 24 hours.
    +     * changes will be polled for each object. The duration must be from `5
    +     * minutes` to `24 hours`, inclusive.
          * 
    * * @@ -1194,8 +1194,8 @@ public Builder clearPollingInterval() { * *
          * Required. Salesforce objects polling interval. The interval at which new
    -     * changes will be polled for each object. The duration must be between 5
    -     * minutes and 24 hours.
    +     * changes will be polled for each object. The duration must be from `5
    +     * minutes` to `24 hours`, inclusive.
          * 
    * * @@ -1213,8 +1213,8 @@ public com.google.protobuf.Duration.Builder getPollingIntervalBuilder() { * *
          * Required. Salesforce objects polling interval. The interval at which new
    -     * changes will be polled for each object. The duration must be between 5
    -     * minutes and 24 hours.
    +     * changes will be polled for each object. The duration must be from `5
    +     * minutes` to `24 hours`, inclusive.
          * 
    * * @@ -1236,8 +1236,8 @@ public com.google.protobuf.DurationOrBuilder getPollingIntervalOrBuilder() { * *
          * Required. Salesforce objects polling interval. The interval at which new
    -     * changes will be polled for each object. The duration must be between 5
    -     * minutes and 24 hours.
    +     * changes will be polled for each object. The duration must be from `5
    +     * minutes` to `24 hours`, inclusive.
          * 
    * * diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceSourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceSourceConfigOrBuilder.java index 763f49da1696..f73d0800bb90 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceSourceConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SalesforceSourceConfigOrBuilder.java @@ -30,7 +30,7 @@ public interface SalesforceSourceConfigOrBuilder * * *
    -   * Salesforce objects to retrieve from the source.
    +   * The Salesforce objects to retrieve from the source.
        * 
    * * .google.cloud.datastream.v1.SalesforceOrg include_objects = 1; @@ -43,7 +43,7 @@ public interface SalesforceSourceConfigOrBuilder * * *
    -   * Salesforce objects to retrieve from the source.
    +   * The Salesforce objects to retrieve from the source.
        * 
    * * .google.cloud.datastream.v1.SalesforceOrg include_objects = 1; @@ -56,7 +56,7 @@ public interface SalesforceSourceConfigOrBuilder * * *
    -   * Salesforce objects to retrieve from the source.
    +   * The Salesforce objects to retrieve from the source.
        * 
    * * .google.cloud.datastream.v1.SalesforceOrg include_objects = 1; @@ -67,7 +67,7 @@ public interface SalesforceSourceConfigOrBuilder * * *
    -   * Salesforce objects to exclude from the stream.
    +   * The Salesforce objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.SalesforceOrg exclude_objects = 2; @@ -80,7 +80,7 @@ public interface SalesforceSourceConfigOrBuilder * * *
    -   * Salesforce objects to exclude from the stream.
    +   * The Salesforce objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.SalesforceOrg exclude_objects = 2; @@ -93,7 +93,7 @@ public interface SalesforceSourceConfigOrBuilder * * *
    -   * Salesforce objects to exclude from the stream.
    +   * The Salesforce objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.SalesforceOrg exclude_objects = 2; @@ -105,8 +105,8 @@ public interface SalesforceSourceConfigOrBuilder * *
        * Required. Salesforce objects polling interval. The interval at which new
    -   * changes will be polled for each object. The duration must be between 5
    -   * minutes and 24 hours.
    +   * changes will be polled for each object. The duration must be from `5
    +   * minutes` to `24 hours`, inclusive.
        * 
    * * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -121,8 +121,8 @@ public interface SalesforceSourceConfigOrBuilder * *
        * Required. Salesforce objects polling interval. The interval at which new
    -   * changes will be polled for each object. The duration must be between 5
    -   * minutes and 24 hours.
    +   * changes will be polled for each object. The duration must be from `5
    +   * minutes` to `24 hours`, inclusive.
        * 
    * * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -137,8 +137,8 @@ public interface SalesforceSourceConfigOrBuilder * *
        * Required. Salesforce objects polling interval. The interval at which new
    -   * changes will be polled for each object. The duration must be between 5
    -   * minutes and 24 hours.
    +   * changes will be polled for each object. The duration must be from `5
    +   * minutes` to `24 hours`, inclusive.
        * 
    * * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Secret.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Secret.java new file mode 100644 index 000000000000..5dfb3b56e8bf --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Secret.java @@ -0,0 +1,1015 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * A confidential piece of information where the actual value is either directly
    + * specified in the message as a raw string or stored in GCP secret manager.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.Secret} + */ +@com.google.protobuf.Generated +public final class Secret extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Secret) + SecretOrBuilder { + 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= */ "", + "Secret"); + } + + // Use Secret.newBuilder() to construct. + private Secret(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Secret() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Secret_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Secret_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.Secret.class, + com.google.cloud.datastream.v1.Secret.Builder.class); + } + + private int valueCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object value_; + + public enum ValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + RAW_VALUE(1), + SECRET_VERSION(2), + VALUE_NOT_SET(0); + private final int value; + + private ValueCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: + return RAW_VALUE; + case 2: + return SECRET_VERSION; + case 0: + return VALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public static final int RAW_VALUE_FIELD_NUMBER = 1; + + /** + * + * + *
    +   * Optional. Input only. The actual raw value of the secret as plain text.
    +   * 
    + * + * + * string raw_value = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rawValue field is set. + */ + public boolean hasRawValue() { + return valueCase_ == 1; + } + + /** + * + * + *
    +   * Optional. Input only. The actual raw value of the secret as plain text.
    +   * 
    + * + * + * string raw_value = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rawValue. + */ + public java.lang.String getRawValue() { + java.lang.Object ref = ""; + if (valueCase_ == 1) { + ref = value_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valueCase_ == 1) { + value_ = s; + } + return s; + } + } + + /** + * + * + *
    +   * Optional. Input only. The actual raw value of the secret as plain text.
    +   * 
    + * + * + * string raw_value = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for rawValue. + */ + public com.google.protobuf.ByteString getRawValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 1) { + ref = value_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (valueCase_ == 1) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECRET_VERSION_FIELD_NUMBER = 2; + + /** + * + * + *
    +   * Optional. A Secret Manager resource name storing the actual value of the
    +   * secret. Supported formats:
    +   * * projects/{project}/locations/{location}/secrets/{secret}/versions/{version}
    +   * * projects/{project}/secrets/{secret}/versions/{version}
    +   * 
    + * + * string secret_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the secretVersion field is set. + */ + public boolean hasSecretVersion() { + return valueCase_ == 2; + } + + /** + * + * + *
    +   * Optional. A Secret Manager resource name storing the actual value of the
    +   * secret. Supported formats:
    +   * * projects/{project}/locations/{location}/secrets/{secret}/versions/{version}
    +   * * projects/{project}/secrets/{secret}/versions/{version}
    +   * 
    + * + * string secret_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The secretVersion. + */ + public java.lang.String getSecretVersion() { + java.lang.Object ref = ""; + if (valueCase_ == 2) { + ref = value_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valueCase_ == 2) { + value_ = s; + } + return s; + } + } + + /** + * + * + *
    +   * Optional. A Secret Manager resource name storing the actual value of the
    +   * secret. Supported formats:
    +   * * projects/{project}/locations/{location}/secrets/{secret}/versions/{version}
    +   * * projects/{project}/secrets/{secret}/versions/{version}
    +   * 
    + * + * string secret_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for secretVersion. + */ + public com.google.protobuf.ByteString getSecretVersionBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 2) { + ref = value_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (valueCase_ == 2) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (valueCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, value_); + } + if (valueCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, value_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, value_); + } + 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.datastream.v1.Secret)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.Secret other = (com.google.cloud.datastream.v1.Secret) obj; + + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 1: + if (!getRawValue().equals(other.getRawValue())) return false; + break; + case 2: + if (!getSecretVersion().equals(other.getSecretVersion())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + RAW_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getRawValue().hashCode(); + break; + case 2: + hash = (37 * hash) + SECRET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getSecretVersion().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.Secret parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.Secret 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.datastream.v1.Secret parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.Secret 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.datastream.v1.Secret parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.Secret parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.Secret parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.Secret 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.datastream.v1.Secret parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.Secret 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.datastream.v1.Secret parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.Secret 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.datastream.v1.Secret prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * A confidential piece of information where the actual value is either directly
    +   * specified in the message as a raw string or stored in GCP secret manager.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.Secret} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.Secret) + com.google.cloud.datastream.v1.SecretOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Secret_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Secret_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.Secret.class, + com.google.cloud.datastream.v1.Secret.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.Secret.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Secret_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Secret getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.Secret.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Secret build() { + com.google.cloud.datastream.v1.Secret result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Secret buildPartial() { + com.google.cloud.datastream.v1.Secret result = + new com.google.cloud.datastream.v1.Secret(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.Secret result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.datastream.v1.Secret result) { + result.valueCase_ = valueCase_; + result.value_ = this.value_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.Secret) { + return mergeFrom((com.google.cloud.datastream.v1.Secret) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.Secret other) { + if (other == com.google.cloud.datastream.v1.Secret.getDefaultInstance()) return this; + switch (other.getValueCase()) { + case RAW_VALUE: + { + valueCase_ = 1; + value_ = other.value_; + onChanged(); + break; + } + case SECRET_VERSION: + { + valueCase_ = 2; + value_ = other.value_; + onChanged(); + break; + } + case VALUE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + valueCase_ = 1; + value_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + valueCase_ = 2; + value_ = s; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
    +     * Optional. Input only. The actual raw value of the secret as plain text.
    +     * 
    + * + * + * string raw_value = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rawValue field is set. + */ + @java.lang.Override + public boolean hasRawValue() { + return valueCase_ == 1; + } + + /** + * + * + *
    +     * Optional. Input only. The actual raw value of the secret as plain text.
    +     * 
    + * + * + * string raw_value = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rawValue. + */ + @java.lang.Override + public java.lang.String getRawValue() { + java.lang.Object ref = ""; + if (valueCase_ == 1) { + ref = value_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valueCase_ == 1) { + value_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Input only. The actual raw value of the secret as plain text.
    +     * 
    + * + * + * string raw_value = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for rawValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRawValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 1) { + ref = value_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (valueCase_ == 1) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Input only. The actual raw value of the secret as plain text.
    +     * 
    + * + * + * string raw_value = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The rawValue to set. + * @return This builder for chaining. + */ + public Builder setRawValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + valueCase_ = 1; + value_ = value; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Input only. The actual raw value of the secret as plain text.
    +     * 
    + * + * + * string raw_value = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRawValue() { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Input only. The actual raw value of the secret as plain text.
    +     * 
    + * + * + * string raw_value = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for rawValue to set. + * @return This builder for chaining. + */ + public Builder setRawValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + valueCase_ = 1; + value_ = value; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A Secret Manager resource name storing the actual value of the
    +     * secret. Supported formats:
    +     * * projects/{project}/locations/{location}/secrets/{secret}/versions/{version}
    +     * * projects/{project}/secrets/{secret}/versions/{version}
    +     * 
    + * + * string secret_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the secretVersion field is set. + */ + @java.lang.Override + public boolean hasSecretVersion() { + return valueCase_ == 2; + } + + /** + * + * + *
    +     * Optional. A Secret Manager resource name storing the actual value of the
    +     * secret. Supported formats:
    +     * * projects/{project}/locations/{location}/secrets/{secret}/versions/{version}
    +     * * projects/{project}/secrets/{secret}/versions/{version}
    +     * 
    + * + * string secret_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The secretVersion. + */ + @java.lang.Override + public java.lang.String getSecretVersion() { + java.lang.Object ref = ""; + if (valueCase_ == 2) { + ref = value_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valueCase_ == 2) { + value_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. A Secret Manager resource name storing the actual value of the
    +     * secret. Supported formats:
    +     * * projects/{project}/locations/{location}/secrets/{secret}/versions/{version}
    +     * * projects/{project}/secrets/{secret}/versions/{version}
    +     * 
    + * + * string secret_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for secretVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecretVersionBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 2) { + ref = value_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (valueCase_ == 2) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. A Secret Manager resource name storing the actual value of the
    +     * secret. Supported formats:
    +     * * projects/{project}/locations/{location}/secrets/{secret}/versions/{version}
    +     * * projects/{project}/secrets/{secret}/versions/{version}
    +     * 
    + * + * string secret_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The secretVersion to set. + * @return This builder for chaining. + */ + public Builder setSecretVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + valueCase_ = 2; + value_ = value; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A Secret Manager resource name storing the actual value of the
    +     * secret. Supported formats:
    +     * * projects/{project}/locations/{location}/secrets/{secret}/versions/{version}
    +     * * projects/{project}/secrets/{secret}/versions/{version}
    +     * 
    + * + * string secret_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSecretVersion() { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. A Secret Manager resource name storing the actual value of the
    +     * secret. Supported formats:
    +     * * projects/{project}/locations/{location}/secrets/{secret}/versions/{version}
    +     * * projects/{project}/secrets/{secret}/versions/{version}
    +     * 
    + * + * string secret_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for secretVersion to set. + * @return This builder for chaining. + */ + public Builder setSecretVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + valueCase_ = 2; + value_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.Secret) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.Secret) + private static final com.google.cloud.datastream.v1.Secret DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.Secret(); + } + + public static com.google.cloud.datastream.v1.Secret getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Secret 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.datastream.v1.Secret getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SecretOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SecretOrBuilder.java new file mode 100644 index 000000000000..8d0f607770c3 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SecretOrBuilder.java @@ -0,0 +1,123 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface SecretOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.Secret) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. Input only. The actual raw value of the secret as plain text.
    +   * 
    + * + * + * string raw_value = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rawValue field is set. + */ + boolean hasRawValue(); + + /** + * + * + *
    +   * Optional. Input only. The actual raw value of the secret as plain text.
    +   * 
    + * + * + * string raw_value = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rawValue. + */ + java.lang.String getRawValue(); + + /** + * + * + *
    +   * Optional. Input only. The actual raw value of the secret as plain text.
    +   * 
    + * + * + * string raw_value = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for rawValue. + */ + com.google.protobuf.ByteString getRawValueBytes(); + + /** + * + * + *
    +   * Optional. A Secret Manager resource name storing the actual value of the
    +   * secret. Supported formats:
    +   * * projects/{project}/locations/{location}/secrets/{secret}/versions/{version}
    +   * * projects/{project}/secrets/{secret}/versions/{version}
    +   * 
    + * + * string secret_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the secretVersion field is set. + */ + boolean hasSecretVersion(); + + /** + * + * + *
    +   * Optional. A Secret Manager resource name storing the actual value of the
    +   * secret. Supported formats:
    +   * * projects/{project}/locations/{location}/secrets/{secret}/versions/{version}
    +   * * projects/{project}/secrets/{secret}/versions/{version}
    +   * 
    + * + * string secret_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The secretVersion. + */ + java.lang.String getSecretVersion(); + + /** + * + * + *
    +   * Optional. A Secret Manager resource name storing the actual value of the
    +   * secret. Supported formats:
    +   * * projects/{project}/locations/{location}/secrets/{secret}/versions/{version}
    +   * * projects/{project}/secrets/{secret}/versions/{version}
    +   * 
    + * + * string secret_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for secretVersion. + */ + com.google.protobuf.ByteString getSecretVersionBytes(); + + com.google.cloud.datastream.v1.Secret.ValueCase getValueCase(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ServiceNowProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ServiceNowProfile.java new file mode 100644 index 000000000000..574861a798c0 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ServiceNowProfile.java @@ -0,0 +1,1324 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * Profile for connecting to a ServiceNow source.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.ServiceNowProfile} + */ +@com.google.protobuf.Generated +public final class ServiceNowProfile extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ServiceNowProfile) + ServiceNowProfileOrBuilder { + 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= */ "", + "ServiceNowProfile"); + } + + // Use ServiceNowProfile.newBuilder() to construct. + private ServiceNowProfile(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ServiceNowProfile() { + instance_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ServiceNowProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ServiceNowProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.ServiceNowProfile.class, + com.google.cloud.datastream.v1.ServiceNowProfile.Builder.class); + } + + private int credentialsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object credentials_; + + public enum CredentialsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + USER_PASSWORD_CREDENTIALS(2), + OAUTH_CLIENT_CREDENTIALS(3), + CREDENTIALS_NOT_SET(0); + private final int value; + + private CredentialsCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CredentialsCase valueOf(int value) { + return forNumber(value); + } + + public static CredentialsCase forNumber(int value) { + switch (value) { + case 2: + return USER_PASSWORD_CREDENTIALS; + case 3: + return OAUTH_CLIENT_CREDENTIALS; + case 0: + return CREDENTIALS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public CredentialsCase getCredentialsCase() { + return CredentialsCase.forNumber(credentialsCase_); + } + + public static final int INSTANCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object instance_ = ""; + + /** + * + * + *
    +   * Required. The instance of the ServiceNow account. This is the `<instance>`
    +   * part of the URL `https://<instance>.service-now.com`.
    +   * 
    + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instance. + */ + @java.lang.Override + public java.lang.String getInstance() { + java.lang.Object ref = instance_; + 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(); + instance_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The instance of the ServiceNow account. This is the `<instance>`
    +   * part of the URL `https://<instance>.service-now.com`.
    +   * 
    + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instance. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceBytes() { + java.lang.Object ref = instance_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_PASSWORD_CREDENTIALS_FIELD_NUMBER = 2; + + /** + * + * + *
    +   * User-password authentication.
    +   * 
    + * + * .google.cloud.datastream.v1.UserPasswordCredentials user_password_credentials = 2; + * + * @return Whether the userPasswordCredentials field is set. + */ + @java.lang.Override + public boolean hasUserPasswordCredentials() { + return credentialsCase_ == 2; + } + + /** + * + * + *
    +   * User-password authentication.
    +   * 
    + * + * .google.cloud.datastream.v1.UserPasswordCredentials user_password_credentials = 2; + * + * @return The userPasswordCredentials. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.UserPasswordCredentials getUserPasswordCredentials() { + if (credentialsCase_ == 2) { + return (com.google.cloud.datastream.v1.UserPasswordCredentials) credentials_; + } + return com.google.cloud.datastream.v1.UserPasswordCredentials.getDefaultInstance(); + } + + /** + * + * + *
    +   * User-password authentication.
    +   * 
    + * + * .google.cloud.datastream.v1.UserPasswordCredentials user_password_credentials = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.UserPasswordCredentialsOrBuilder + getUserPasswordCredentialsOrBuilder() { + if (credentialsCase_ == 2) { + return (com.google.cloud.datastream.v1.UserPasswordCredentials) credentials_; + } + return com.google.cloud.datastream.v1.UserPasswordCredentials.getDefaultInstance(); + } + + public static final int OAUTH_CLIENT_CREDENTIALS_FIELD_NUMBER = 3; + + /** + * + * + *
    +   * Credentials for authenticating with the ServiceNow API.
    +   * 
    + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3; + * + * @return Whether the oauthClientCredentials field is set. + */ + @java.lang.Override + public boolean hasOauthClientCredentials() { + return credentialsCase_ == 3; + } + + /** + * + * + *
    +   * Credentials for authenticating with the ServiceNow API.
    +   * 
    + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3; + * + * @return The oauthClientCredentials. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OauthClientCredentials getOauthClientCredentials() { + if (credentialsCase_ == 3) { + return (com.google.cloud.datastream.v1.OauthClientCredentials) credentials_; + } + return com.google.cloud.datastream.v1.OauthClientCredentials.getDefaultInstance(); + } + + /** + * + * + *
    +   * Credentials for authenticating with the ServiceNow API.
    +   * 
    + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder + getOauthClientCredentialsOrBuilder() { + if (credentialsCase_ == 3) { + return (com.google.cloud.datastream.v1.OauthClientCredentials) credentials_; + } + return com.google.cloud.datastream.v1.OauthClientCredentials.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instance_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, instance_); + } + if (credentialsCase_ == 2) { + output.writeMessage(2, (com.google.cloud.datastream.v1.UserPasswordCredentials) credentials_); + } + if (credentialsCase_ == 3) { + output.writeMessage(3, (com.google.cloud.datastream.v1.OauthClientCredentials) credentials_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instance_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, instance_); + } + if (credentialsCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.datastream.v1.UserPasswordCredentials) credentials_); + } + if (credentialsCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.datastream.v1.OauthClientCredentials) credentials_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.datastream.v1.ServiceNowProfile)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.ServiceNowProfile other = + (com.google.cloud.datastream.v1.ServiceNowProfile) obj; + + if (!getInstance().equals(other.getInstance())) return false; + if (!getCredentialsCase().equals(other.getCredentialsCase())) return false; + switch (credentialsCase_) { + case 2: + if (!getUserPasswordCredentials().equals(other.getUserPasswordCredentials())) return false; + break; + case 3: + if (!getOauthClientCredentials().equals(other.getOauthClientCredentials())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getInstance().hashCode(); + switch (credentialsCase_) { + case 2: + hash = (37 * hash) + USER_PASSWORD_CREDENTIALS_FIELD_NUMBER; + hash = (53 * hash) + getUserPasswordCredentials().hashCode(); + break; + case 3: + hash = (37 * hash) + OAUTH_CLIENT_CREDENTIALS_FIELD_NUMBER; + hash = (53 * hash) + getOauthClientCredentials().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.ServiceNowProfile parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.ServiceNowProfile 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.datastream.v1.ServiceNowProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.ServiceNowProfile 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.datastream.v1.ServiceNowProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.ServiceNowProfile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.ServiceNowProfile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.ServiceNowProfile 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.datastream.v1.ServiceNowProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.ServiceNowProfile 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.datastream.v1.ServiceNowProfile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.ServiceNowProfile 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.datastream.v1.ServiceNowProfile 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; + } + + /** + * + * + *
    +   * Profile for connecting to a ServiceNow source.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.ServiceNowProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ServiceNowProfile) + com.google.cloud.datastream.v1.ServiceNowProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ServiceNowProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ServiceNowProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.ServiceNowProfile.class, + com.google.cloud.datastream.v1.ServiceNowProfile.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.ServiceNowProfile.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instance_ = ""; + if (userPasswordCredentialsBuilder_ != null) { + userPasswordCredentialsBuilder_.clear(); + } + if (oauthClientCredentialsBuilder_ != null) { + oauthClientCredentialsBuilder_.clear(); + } + credentialsCase_ = 0; + credentials_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ServiceNowProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ServiceNowProfile getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.ServiceNowProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ServiceNowProfile build() { + com.google.cloud.datastream.v1.ServiceNowProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ServiceNowProfile buildPartial() { + com.google.cloud.datastream.v1.ServiceNowProfile result = + new com.google.cloud.datastream.v1.ServiceNowProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.ServiceNowProfile result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instance_ = instance_; + } + } + + private void buildPartialOneofs(com.google.cloud.datastream.v1.ServiceNowProfile result) { + result.credentialsCase_ = credentialsCase_; + result.credentials_ = this.credentials_; + if (credentialsCase_ == 2 && userPasswordCredentialsBuilder_ != null) { + result.credentials_ = userPasswordCredentialsBuilder_.build(); + } + if (credentialsCase_ == 3 && oauthClientCredentialsBuilder_ != null) { + result.credentials_ = oauthClientCredentialsBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.ServiceNowProfile) { + return mergeFrom((com.google.cloud.datastream.v1.ServiceNowProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.ServiceNowProfile other) { + if (other == com.google.cloud.datastream.v1.ServiceNowProfile.getDefaultInstance()) + return this; + if (!other.getInstance().isEmpty()) { + instance_ = other.instance_; + bitField0_ |= 0x00000001; + onChanged(); + } + switch (other.getCredentialsCase()) { + case USER_PASSWORD_CREDENTIALS: + { + mergeUserPasswordCredentials(other.getUserPasswordCredentials()); + break; + } + case OAUTH_CLIENT_CREDENTIALS: + { + mergeOauthClientCredentials(other.getOauthClientCredentials()); + break; + } + case CREDENTIALS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + instance_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUserPasswordCredentialsFieldBuilder().getBuilder(), + extensionRegistry); + credentialsCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetOauthClientCredentialsFieldBuilder().getBuilder(), + extensionRegistry); + credentialsCase_ = 3; + 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 credentialsCase_ = 0; + private java.lang.Object credentials_; + + public CredentialsCase getCredentialsCase() { + return CredentialsCase.forNumber(credentialsCase_); + } + + public Builder clearCredentials() { + credentialsCase_ = 0; + credentials_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object instance_ = ""; + + /** + * + * + *
    +     * Required. The instance of the ServiceNow account. This is the `<instance>`
    +     * part of the URL `https://<instance>.service-now.com`.
    +     * 
    + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instance. + */ + public java.lang.String getInstance() { + java.lang.Object ref = instance_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instance_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The instance of the ServiceNow account. This is the `<instance>`
    +     * part of the URL `https://<instance>.service-now.com`.
    +     * 
    + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instance. + */ + public com.google.protobuf.ByteString getInstanceBytes() { + java.lang.Object ref = instance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The instance of the ServiceNow account. This is the `<instance>`
    +     * part of the URL `https://<instance>.service-now.com`.
    +     * 
    + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The instance to set. + * @return This builder for chaining. + */ + public Builder setInstance(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instance_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The instance of the ServiceNow account. This is the `<instance>`
    +     * part of the URL `https://<instance>.service-now.com`.
    +     * 
    + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearInstance() { + instance_ = getDefaultInstance().getInstance(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The instance of the ServiceNow account. This is the `<instance>`
    +     * part of the URL `https://<instance>.service-now.com`.
    +     * 
    + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for instance to set. + * @return This builder for chaining. + */ + public Builder setInstanceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instance_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.UserPasswordCredentials, + com.google.cloud.datastream.v1.UserPasswordCredentials.Builder, + com.google.cloud.datastream.v1.UserPasswordCredentialsOrBuilder> + userPasswordCredentialsBuilder_; + + /** + * + * + *
    +     * User-password authentication.
    +     * 
    + * + * .google.cloud.datastream.v1.UserPasswordCredentials user_password_credentials = 2; + * + * + * @return Whether the userPasswordCredentials field is set. + */ + @java.lang.Override + public boolean hasUserPasswordCredentials() { + return credentialsCase_ == 2; + } + + /** + * + * + *
    +     * User-password authentication.
    +     * 
    + * + * .google.cloud.datastream.v1.UserPasswordCredentials user_password_credentials = 2; + * + * + * @return The userPasswordCredentials. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.UserPasswordCredentials getUserPasswordCredentials() { + if (userPasswordCredentialsBuilder_ == null) { + if (credentialsCase_ == 2) { + return (com.google.cloud.datastream.v1.UserPasswordCredentials) credentials_; + } + return com.google.cloud.datastream.v1.UserPasswordCredentials.getDefaultInstance(); + } else { + if (credentialsCase_ == 2) { + return userPasswordCredentialsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.UserPasswordCredentials.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * User-password authentication.
    +     * 
    + * + * .google.cloud.datastream.v1.UserPasswordCredentials user_password_credentials = 2; + * + */ + public Builder setUserPasswordCredentials( + com.google.cloud.datastream.v1.UserPasswordCredentials value) { + if (userPasswordCredentialsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + credentials_ = value; + onChanged(); + } else { + userPasswordCredentialsBuilder_.setMessage(value); + } + credentialsCase_ = 2; + return this; + } + + /** + * + * + *
    +     * User-password authentication.
    +     * 
    + * + * .google.cloud.datastream.v1.UserPasswordCredentials user_password_credentials = 2; + * + */ + public Builder setUserPasswordCredentials( + com.google.cloud.datastream.v1.UserPasswordCredentials.Builder builderForValue) { + if (userPasswordCredentialsBuilder_ == null) { + credentials_ = builderForValue.build(); + onChanged(); + } else { + userPasswordCredentialsBuilder_.setMessage(builderForValue.build()); + } + credentialsCase_ = 2; + return this; + } + + /** + * + * + *
    +     * User-password authentication.
    +     * 
    + * + * .google.cloud.datastream.v1.UserPasswordCredentials user_password_credentials = 2; + * + */ + public Builder mergeUserPasswordCredentials( + com.google.cloud.datastream.v1.UserPasswordCredentials value) { + if (userPasswordCredentialsBuilder_ == null) { + if (credentialsCase_ == 2 + && credentials_ + != com.google.cloud.datastream.v1.UserPasswordCredentials.getDefaultInstance()) { + credentials_ = + com.google.cloud.datastream.v1.UserPasswordCredentials.newBuilder( + (com.google.cloud.datastream.v1.UserPasswordCredentials) credentials_) + .mergeFrom(value) + .buildPartial(); + } else { + credentials_ = value; + } + onChanged(); + } else { + if (credentialsCase_ == 2) { + userPasswordCredentialsBuilder_.mergeFrom(value); + } else { + userPasswordCredentialsBuilder_.setMessage(value); + } + } + credentialsCase_ = 2; + return this; + } + + /** + * + * + *
    +     * User-password authentication.
    +     * 
    + * + * .google.cloud.datastream.v1.UserPasswordCredentials user_password_credentials = 2; + * + */ + public Builder clearUserPasswordCredentials() { + if (userPasswordCredentialsBuilder_ == null) { + if (credentialsCase_ == 2) { + credentialsCase_ = 0; + credentials_ = null; + onChanged(); + } + } else { + if (credentialsCase_ == 2) { + credentialsCase_ = 0; + credentials_ = null; + } + userPasswordCredentialsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * User-password authentication.
    +     * 
    + * + * .google.cloud.datastream.v1.UserPasswordCredentials user_password_credentials = 2; + * + */ + public com.google.cloud.datastream.v1.UserPasswordCredentials.Builder + getUserPasswordCredentialsBuilder() { + return internalGetUserPasswordCredentialsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * User-password authentication.
    +     * 
    + * + * .google.cloud.datastream.v1.UserPasswordCredentials user_password_credentials = 2; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.UserPasswordCredentialsOrBuilder + getUserPasswordCredentialsOrBuilder() { + if ((credentialsCase_ == 2) && (userPasswordCredentialsBuilder_ != null)) { + return userPasswordCredentialsBuilder_.getMessageOrBuilder(); + } else { + if (credentialsCase_ == 2) { + return (com.google.cloud.datastream.v1.UserPasswordCredentials) credentials_; + } + return com.google.cloud.datastream.v1.UserPasswordCredentials.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * User-password authentication.
    +     * 
    + * + * .google.cloud.datastream.v1.UserPasswordCredentials user_password_credentials = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.UserPasswordCredentials, + com.google.cloud.datastream.v1.UserPasswordCredentials.Builder, + com.google.cloud.datastream.v1.UserPasswordCredentialsOrBuilder> + internalGetUserPasswordCredentialsFieldBuilder() { + if (userPasswordCredentialsBuilder_ == null) { + if (!(credentialsCase_ == 2)) { + credentials_ = + com.google.cloud.datastream.v1.UserPasswordCredentials.getDefaultInstance(); + } + userPasswordCredentialsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.UserPasswordCredentials, + com.google.cloud.datastream.v1.UserPasswordCredentials.Builder, + com.google.cloud.datastream.v1.UserPasswordCredentialsOrBuilder>( + (com.google.cloud.datastream.v1.UserPasswordCredentials) credentials_, + getParentForChildren(), + isClean()); + credentials_ = null; + } + credentialsCase_ = 2; + onChanged(); + return userPasswordCredentialsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.OauthClientCredentials, + com.google.cloud.datastream.v1.OauthClientCredentials.Builder, + com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder> + oauthClientCredentialsBuilder_; + + /** + * + * + *
    +     * Credentials for authenticating with the ServiceNow API.
    +     * 
    + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3; + * + * @return Whether the oauthClientCredentials field is set. + */ + @java.lang.Override + public boolean hasOauthClientCredentials() { + return credentialsCase_ == 3; + } + + /** + * + * + *
    +     * Credentials for authenticating with the ServiceNow API.
    +     * 
    + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3; + * + * @return The oauthClientCredentials. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OauthClientCredentials getOauthClientCredentials() { + if (oauthClientCredentialsBuilder_ == null) { + if (credentialsCase_ == 3) { + return (com.google.cloud.datastream.v1.OauthClientCredentials) credentials_; + } + return com.google.cloud.datastream.v1.OauthClientCredentials.getDefaultInstance(); + } else { + if (credentialsCase_ == 3) { + return oauthClientCredentialsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.OauthClientCredentials.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Credentials for authenticating with the ServiceNow API.
    +     * 
    + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3; + */ + public Builder setOauthClientCredentials( + com.google.cloud.datastream.v1.OauthClientCredentials value) { + if (oauthClientCredentialsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + credentials_ = value; + onChanged(); + } else { + oauthClientCredentialsBuilder_.setMessage(value); + } + credentialsCase_ = 3; + return this; + } + + /** + * + * + *
    +     * Credentials for authenticating with the ServiceNow API.
    +     * 
    + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3; + */ + public Builder setOauthClientCredentials( + com.google.cloud.datastream.v1.OauthClientCredentials.Builder builderForValue) { + if (oauthClientCredentialsBuilder_ == null) { + credentials_ = builderForValue.build(); + onChanged(); + } else { + oauthClientCredentialsBuilder_.setMessage(builderForValue.build()); + } + credentialsCase_ = 3; + return this; + } + + /** + * + * + *
    +     * Credentials for authenticating with the ServiceNow API.
    +     * 
    + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3; + */ + public Builder mergeOauthClientCredentials( + com.google.cloud.datastream.v1.OauthClientCredentials value) { + if (oauthClientCredentialsBuilder_ == null) { + if (credentialsCase_ == 3 + && credentials_ + != com.google.cloud.datastream.v1.OauthClientCredentials.getDefaultInstance()) { + credentials_ = + com.google.cloud.datastream.v1.OauthClientCredentials.newBuilder( + (com.google.cloud.datastream.v1.OauthClientCredentials) credentials_) + .mergeFrom(value) + .buildPartial(); + } else { + credentials_ = value; + } + onChanged(); + } else { + if (credentialsCase_ == 3) { + oauthClientCredentialsBuilder_.mergeFrom(value); + } else { + oauthClientCredentialsBuilder_.setMessage(value); + } + } + credentialsCase_ = 3; + return this; + } + + /** + * + * + *
    +     * Credentials for authenticating with the ServiceNow API.
    +     * 
    + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3; + */ + public Builder clearOauthClientCredentials() { + if (oauthClientCredentialsBuilder_ == null) { + if (credentialsCase_ == 3) { + credentialsCase_ = 0; + credentials_ = null; + onChanged(); + } + } else { + if (credentialsCase_ == 3) { + credentialsCase_ = 0; + credentials_ = null; + } + oauthClientCredentialsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Credentials for authenticating with the ServiceNow API.
    +     * 
    + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3; + */ + public com.google.cloud.datastream.v1.OauthClientCredentials.Builder + getOauthClientCredentialsBuilder() { + return internalGetOauthClientCredentialsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Credentials for authenticating with the ServiceNow API.
    +     * 
    + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder + getOauthClientCredentialsOrBuilder() { + if ((credentialsCase_ == 3) && (oauthClientCredentialsBuilder_ != null)) { + return oauthClientCredentialsBuilder_.getMessageOrBuilder(); + } else { + if (credentialsCase_ == 3) { + return (com.google.cloud.datastream.v1.OauthClientCredentials) credentials_; + } + return com.google.cloud.datastream.v1.OauthClientCredentials.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Credentials for authenticating with the ServiceNow API.
    +     * 
    + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.OauthClientCredentials, + com.google.cloud.datastream.v1.OauthClientCredentials.Builder, + com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder> + internalGetOauthClientCredentialsFieldBuilder() { + if (oauthClientCredentialsBuilder_ == null) { + if (!(credentialsCase_ == 3)) { + credentials_ = com.google.cloud.datastream.v1.OauthClientCredentials.getDefaultInstance(); + } + oauthClientCredentialsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.OauthClientCredentials, + com.google.cloud.datastream.v1.OauthClientCredentials.Builder, + com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder>( + (com.google.cloud.datastream.v1.OauthClientCredentials) credentials_, + getParentForChildren(), + isClean()); + credentials_ = null; + } + credentialsCase_ = 3; + onChanged(); + return oauthClientCredentialsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ServiceNowProfile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ServiceNowProfile) + private static final com.google.cloud.datastream.v1.ServiceNowProfile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ServiceNowProfile(); + } + + public static com.google.cloud.datastream.v1.ServiceNowProfile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceNowProfile 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.datastream.v1.ServiceNowProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ServiceNowProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ServiceNowProfileOrBuilder.java new file mode 100644 index 000000000000..dea146add1f4 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ServiceNowProfileOrBuilder.java @@ -0,0 +1,134 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface ServiceNowProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ServiceNowProfile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The instance of the ServiceNow account. This is the `<instance>`
    +   * part of the URL `https://<instance>.service-now.com`.
    +   * 
    + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instance. + */ + java.lang.String getInstance(); + + /** + * + * + *
    +   * Required. The instance of the ServiceNow account. This is the `<instance>`
    +   * part of the URL `https://<instance>.service-now.com`.
    +   * 
    + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instance. + */ + com.google.protobuf.ByteString getInstanceBytes(); + + /** + * + * + *
    +   * User-password authentication.
    +   * 
    + * + * .google.cloud.datastream.v1.UserPasswordCredentials user_password_credentials = 2; + * + * @return Whether the userPasswordCredentials field is set. + */ + boolean hasUserPasswordCredentials(); + + /** + * + * + *
    +   * User-password authentication.
    +   * 
    + * + * .google.cloud.datastream.v1.UserPasswordCredentials user_password_credentials = 2; + * + * @return The userPasswordCredentials. + */ + com.google.cloud.datastream.v1.UserPasswordCredentials getUserPasswordCredentials(); + + /** + * + * + *
    +   * User-password authentication.
    +   * 
    + * + * .google.cloud.datastream.v1.UserPasswordCredentials user_password_credentials = 2; + */ + com.google.cloud.datastream.v1.UserPasswordCredentialsOrBuilder + getUserPasswordCredentialsOrBuilder(); + + /** + * + * + *
    +   * Credentials for authenticating with the ServiceNow API.
    +   * 
    + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3; + * + * @return Whether the oauthClientCredentials field is set. + */ + boolean hasOauthClientCredentials(); + + /** + * + * + *
    +   * Credentials for authenticating with the ServiceNow API.
    +   * 
    + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3; + * + * @return The oauthClientCredentials. + */ + com.google.cloud.datastream.v1.OauthClientCredentials getOauthClientCredentials(); + + /** + * + * + *
    +   * Credentials for authenticating with the ServiceNow API.
    +   * 
    + * + * .google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3; + */ + com.google.cloud.datastream.v1.OauthClientCredentialsOrBuilder + getOauthClientCredentialsOrBuilder(); + + com.google.cloud.datastream.v1.ServiceNowProfile.CredentialsCase getCredentialsCase(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ServiceNowSourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ServiceNowSourceConfig.java new file mode 100644 index 000000000000..c8f2e4a49311 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ServiceNowSourceConfig.java @@ -0,0 +1,1361 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * Configuration for syncing data from a ServiceNow source.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.ServiceNowSourceConfig} + */ +@com.google.protobuf.Generated +public final class ServiceNowSourceConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ServiceNowSourceConfig) + ServiceNowSourceConfigOrBuilder { + 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= */ "", + "ServiceNowSourceConfig"); + } + + // Use ServiceNowSourceConfig.newBuilder() to construct. + private ServiceNowSourceConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ServiceNowSourceConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ServiceNowSourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ServiceNowSourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.ServiceNowSourceConfig.class, + com.google.cloud.datastream.v1.ServiceNowSourceConfig.Builder.class); + } + + private int bitField0_; + public static final int INCLUDE_OBJECTS_FIELD_NUMBER = 1; + private com.google.cloud.datastream.v1.SourceCatalog includeObjects_; + + /** + * + * + *
    +   * Optional. The objects to retrieve from the source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the includeObjects field is set. + */ + @java.lang.Override + public boolean hasIncludeObjects() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Optional. The objects to retrieve from the source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The includeObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalog getIncludeObjects() { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : includeObjects_; + } + + /** + * + * + *
    +   * Optional. The objects to retrieve from the source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalogOrBuilder getIncludeObjectsOrBuilder() { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : includeObjects_; + } + + public static final int EXCLUDE_OBJECTS_FIELD_NUMBER = 2; + private com.google.cloud.datastream.v1.SourceCatalog excludeObjects_; + + /** + * + * + *
    +   * Optional. The objects to exclude from the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the excludeObjects field is set. + */ + @java.lang.Override + public boolean hasExcludeObjects() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Optional. The objects to exclude from the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludeObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalog getExcludeObjects() { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : excludeObjects_; + } + + /** + * + * + *
    +   * Optional. The objects to exclude from the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalogOrBuilder getExcludeObjectsOrBuilder() { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : excludeObjects_; + } + + public static final int POLLING_INTERVAL_FIELD_NUMBER = 3; + private com.google.protobuf.Duration pollingInterval_; + + /** + * + * + *
    +   * Required. Incremental sync polling interval for all objects. If not set, a
    +   * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +   * to `24 hours`, inclusive.
    +   * 
    + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the pollingInterval field is set. + */ + @java.lang.Override + public boolean hasPollingInterval() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Required. Incremental sync polling interval for all objects. If not set, a
    +   * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +   * to `24 hours`, inclusive.
    +   * 
    + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The pollingInterval. + */ + @java.lang.Override + public com.google.protobuf.Duration getPollingInterval() { + return pollingInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : pollingInterval_; + } + + /** + * + * + *
    +   * Required. Incremental sync polling interval for all objects. If not set, a
    +   * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +   * to `24 hours`, inclusive.
    +   * 
    + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getPollingIntervalOrBuilder() { + return pollingInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : pollingInterval_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getIncludeObjects()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getExcludeObjects()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getPollingInterval()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIncludeObjects()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExcludeObjects()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPollingInterval()); + } + 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.datastream.v1.ServiceNowSourceConfig)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.ServiceNowSourceConfig other = + (com.google.cloud.datastream.v1.ServiceNowSourceConfig) obj; + + if (hasIncludeObjects() != other.hasIncludeObjects()) return false; + if (hasIncludeObjects()) { + if (!getIncludeObjects().equals(other.getIncludeObjects())) return false; + } + if (hasExcludeObjects() != other.hasExcludeObjects()) return false; + if (hasExcludeObjects()) { + if (!getExcludeObjects().equals(other.getExcludeObjects())) return false; + } + if (hasPollingInterval() != other.hasPollingInterval()) return false; + if (hasPollingInterval()) { + if (!getPollingInterval().equals(other.getPollingInterval())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIncludeObjects()) { + hash = (37 * hash) + INCLUDE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getIncludeObjects().hashCode(); + } + if (hasExcludeObjects()) { + hash = (37 * hash) + EXCLUDE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getExcludeObjects().hashCode(); + } + if (hasPollingInterval()) { + hash = (37 * hash) + POLLING_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getPollingInterval().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.ServiceNowSourceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.ServiceNowSourceConfig 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.datastream.v1.ServiceNowSourceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.ServiceNowSourceConfig 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.datastream.v1.ServiceNowSourceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.ServiceNowSourceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.ServiceNowSourceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.ServiceNowSourceConfig 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.datastream.v1.ServiceNowSourceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.ServiceNowSourceConfig 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.datastream.v1.ServiceNowSourceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.ServiceNowSourceConfig 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.datastream.v1.ServiceNowSourceConfig 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; + } + + /** + * + * + *
    +   * Configuration for syncing data from a ServiceNow source.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.ServiceNowSourceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ServiceNowSourceConfig) + com.google.cloud.datastream.v1.ServiceNowSourceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ServiceNowSourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ServiceNowSourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.ServiceNowSourceConfig.class, + com.google.cloud.datastream.v1.ServiceNowSourceConfig.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.ServiceNowSourceConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetIncludeObjectsFieldBuilder(); + internalGetExcludeObjectsFieldBuilder(); + internalGetPollingIntervalFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + includeObjects_ = null; + if (includeObjectsBuilder_ != null) { + includeObjectsBuilder_.dispose(); + includeObjectsBuilder_ = null; + } + excludeObjects_ = null; + if (excludeObjectsBuilder_ != null) { + excludeObjectsBuilder_.dispose(); + excludeObjectsBuilder_ = null; + } + pollingInterval_ = null; + if (pollingIntervalBuilder_ != null) { + pollingIntervalBuilder_.dispose(); + pollingIntervalBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ServiceNowSourceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ServiceNowSourceConfig getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.ServiceNowSourceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ServiceNowSourceConfig build() { + com.google.cloud.datastream.v1.ServiceNowSourceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ServiceNowSourceConfig buildPartial() { + com.google.cloud.datastream.v1.ServiceNowSourceConfig result = + new com.google.cloud.datastream.v1.ServiceNowSourceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.ServiceNowSourceConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.includeObjects_ = + includeObjectsBuilder_ == null ? includeObjects_ : includeObjectsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.excludeObjects_ = + excludeObjectsBuilder_ == null ? excludeObjects_ : excludeObjectsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pollingInterval_ = + pollingIntervalBuilder_ == null ? pollingInterval_ : pollingIntervalBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.ServiceNowSourceConfig) { + return mergeFrom((com.google.cloud.datastream.v1.ServiceNowSourceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.ServiceNowSourceConfig other) { + if (other == com.google.cloud.datastream.v1.ServiceNowSourceConfig.getDefaultInstance()) + return this; + if (other.hasIncludeObjects()) { + mergeIncludeObjects(other.getIncludeObjects()); + } + if (other.hasExcludeObjects()) { + mergeExcludeObjects(other.getExcludeObjects()); + } + if (other.hasPollingInterval()) { + mergePollingInterval(other.getPollingInterval()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetIncludeObjectsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetExcludeObjectsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetPollingIntervalFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.datastream.v1.SourceCatalog includeObjects_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder> + includeObjectsBuilder_; + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the includeObjects field is set. + */ + public boolean hasIncludeObjects() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The includeObjects. + */ + public com.google.cloud.datastream.v1.SourceCatalog getIncludeObjects() { + if (includeObjectsBuilder_ == null) { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : includeObjects_; + } else { + return includeObjectsBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludeObjects(com.google.cloud.datastream.v1.SourceCatalog value) { + if (includeObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + includeObjects_ = value; + } else { + includeObjectsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludeObjects( + com.google.cloud.datastream.v1.SourceCatalog.Builder builderForValue) { + if (includeObjectsBuilder_ == null) { + includeObjects_ = builderForValue.build(); + } else { + includeObjectsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.SourceCatalog value) { + if (includeObjectsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && includeObjects_ != null + && includeObjects_ + != com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance()) { + getIncludeObjectsBuilder().mergeFrom(value); + } else { + includeObjects_ = value; + } + } else { + includeObjectsBuilder_.mergeFrom(value); + } + if (includeObjects_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIncludeObjects() { + bitField0_ = (bitField0_ & ~0x00000001); + includeObjects_ = null; + if (includeObjectsBuilder_ != null) { + includeObjectsBuilder_.dispose(); + includeObjectsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceCatalog.Builder getIncludeObjectsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetIncludeObjectsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceCatalogOrBuilder getIncludeObjectsOrBuilder() { + if (includeObjectsBuilder_ != null) { + return includeObjectsBuilder_.getMessageOrBuilder(); + } else { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : includeObjects_; + } + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder> + internalGetIncludeObjectsFieldBuilder() { + if (includeObjectsBuilder_ == null) { + includeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder>( + getIncludeObjects(), getParentForChildren(), isClean()); + includeObjects_ = null; + } + return includeObjectsBuilder_; + } + + private com.google.cloud.datastream.v1.SourceCatalog excludeObjects_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder> + excludeObjectsBuilder_; + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the excludeObjects field is set. + */ + public boolean hasExcludeObjects() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludeObjects. + */ + public com.google.cloud.datastream.v1.SourceCatalog getExcludeObjects() { + if (excludeObjectsBuilder_ == null) { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : excludeObjects_; + } else { + return excludeObjectsBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExcludeObjects(com.google.cloud.datastream.v1.SourceCatalog value) { + if (excludeObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + excludeObjects_ = value; + } else { + excludeObjectsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExcludeObjects( + com.google.cloud.datastream.v1.SourceCatalog.Builder builderForValue) { + if (excludeObjectsBuilder_ == null) { + excludeObjects_ = builderForValue.build(); + } else { + excludeObjectsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.SourceCatalog value) { + if (excludeObjectsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && excludeObjects_ != null + && excludeObjects_ + != com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance()) { + getExcludeObjectsBuilder().mergeFrom(value); + } else { + excludeObjects_ = value; + } + } else { + excludeObjectsBuilder_.mergeFrom(value); + } + if (excludeObjects_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExcludeObjects() { + bitField0_ = (bitField0_ & ~0x00000002); + excludeObjects_ = null; + if (excludeObjectsBuilder_ != null) { + excludeObjectsBuilder_.dispose(); + excludeObjectsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceCatalog.Builder getExcludeObjectsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetExcludeObjectsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceCatalogOrBuilder getExcludeObjectsOrBuilder() { + if (excludeObjectsBuilder_ != null) { + return excludeObjectsBuilder_.getMessageOrBuilder(); + } else { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : excludeObjects_; + } + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder> + internalGetExcludeObjectsFieldBuilder() { + if (excludeObjectsBuilder_ == null) { + excludeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder>( + getExcludeObjects(), getParentForChildren(), isClean()); + excludeObjects_ = null; + } + return excludeObjectsBuilder_; + } + + private com.google.protobuf.Duration pollingInterval_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + pollingIntervalBuilder_; + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the pollingInterval field is set. + */ + public boolean hasPollingInterval() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The pollingInterval. + */ + public com.google.protobuf.Duration getPollingInterval() { + if (pollingIntervalBuilder_ == null) { + return pollingInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : pollingInterval_; + } else { + return pollingIntervalBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPollingInterval(com.google.protobuf.Duration value) { + if (pollingIntervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pollingInterval_ = value; + } else { + pollingIntervalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPollingInterval(com.google.protobuf.Duration.Builder builderForValue) { + if (pollingIntervalBuilder_ == null) { + pollingInterval_ = builderForValue.build(); + } else { + pollingIntervalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePollingInterval(com.google.protobuf.Duration value) { + if (pollingIntervalBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && pollingInterval_ != null + && pollingInterval_ != com.google.protobuf.Duration.getDefaultInstance()) { + getPollingIntervalBuilder().mergeFrom(value); + } else { + pollingInterval_ = value; + } + } else { + pollingIntervalBuilder_.mergeFrom(value); + } + if (pollingInterval_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPollingInterval() { + bitField0_ = (bitField0_ & ~0x00000004); + pollingInterval_ = null; + if (pollingIntervalBuilder_ != null) { + pollingIntervalBuilder_.dispose(); + pollingIntervalBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Duration.Builder getPollingIntervalBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetPollingIntervalFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.DurationOrBuilder getPollingIntervalOrBuilder() { + if (pollingIntervalBuilder_ != null) { + return pollingIntervalBuilder_.getMessageOrBuilder(); + } else { + return pollingInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : pollingInterval_; + } + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetPollingIntervalFieldBuilder() { + if (pollingIntervalBuilder_ == null) { + pollingIntervalBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getPollingInterval(), getParentForChildren(), isClean()); + pollingInterval_ = null; + } + return pollingIntervalBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ServiceNowSourceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ServiceNowSourceConfig) + private static final com.google.cloud.datastream.v1.ServiceNowSourceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ServiceNowSourceConfig(); + } + + public static com.google.cloud.datastream.v1.ServiceNowSourceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceNowSourceConfig 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.datastream.v1.ServiceNowSourceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ServiceNowSourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ServiceNowSourceConfigOrBuilder.java new file mode 100644 index 000000000000..61a910d3e3dc --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ServiceNowSourceConfigOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface ServiceNowSourceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ServiceNowSourceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. The objects to retrieve from the source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the includeObjects field is set. + */ + boolean hasIncludeObjects(); + + /** + * + * + *
    +   * Optional. The objects to retrieve from the source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The includeObjects. + */ + com.google.cloud.datastream.v1.SourceCatalog getIncludeObjects(); + + /** + * + * + *
    +   * Optional. The objects to retrieve from the source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SourceCatalogOrBuilder getIncludeObjectsOrBuilder(); + + /** + * + * + *
    +   * Optional. The objects to exclude from the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the excludeObjects field is set. + */ + boolean hasExcludeObjects(); + + /** + * + * + *
    +   * Optional. The objects to exclude from the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludeObjects. + */ + com.google.cloud.datastream.v1.SourceCatalog getExcludeObjects(); + + /** + * + * + *
    +   * Optional. The objects to exclude from the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SourceCatalogOrBuilder getExcludeObjectsOrBuilder(); + + /** + * + * + *
    +   * Required. Incremental sync polling interval for all objects. If not set, a
    +   * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +   * to `24 hours`, inclusive.
    +   * 
    + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the pollingInterval field is set. + */ + boolean hasPollingInterval(); + + /** + * + * + *
    +   * Required. Incremental sync polling interval for all objects. If not set, a
    +   * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +   * to `24 hours`, inclusive.
    +   * 
    + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The pollingInterval. + */ + com.google.protobuf.Duration getPollingInterval(); + + /** + * + * + *
    +   * Required. Incremental sync polling interval for all objects. If not set, a
    +   * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +   * to `24 hours`, inclusive.
    +   * 
    + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.DurationOrBuilder getPollingIntervalOrBuilder(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceCatalog.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceCatalog.java new file mode 100644 index 000000000000..3f6cb0fdaf61 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceCatalog.java @@ -0,0 +1,966 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * Source catalog.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SourceCatalog} + */ +@com.google.protobuf.Generated +public final class SourceCatalog extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SourceCatalog) + SourceCatalogOrBuilder { + 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= */ "", + "SourceCatalog"); + } + + // Use SourceCatalog.newBuilder() to construct. + private SourceCatalog(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SourceCatalog() { + objects_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceCatalog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceCatalog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SourceCatalog.class, + com.google.cloud.datastream.v1.SourceCatalog.Builder.class); + } + + public static final int OBJECTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List objects_; + + /** + * + * + *
    +   * Optional. Source objects in the catalog.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getObjectsList() { + return objects_; + } + + /** + * + * + *
    +   * Optional. Source objects in the catalog.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getObjectsOrBuilderList() { + return objects_; + } + + /** + * + * + *
    +   * Optional. Source objects in the catalog.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getObjectsCount() { + return objects_.size(); + } + + /** + * + * + *
    +   * Optional. Source objects in the catalog.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObject getObjects(int index) { + return objects_.get(index); + } + + /** + * + * + *
    +   * Optional. Source objects in the catalog.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectOrBuilder getObjectsOrBuilder(int index) { + return objects_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < objects_.size(); i++) { + output.writeMessage(1, objects_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < objects_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, objects_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.datastream.v1.SourceCatalog)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SourceCatalog other = + (com.google.cloud.datastream.v1.SourceCatalog) obj; + + if (!getObjectsList().equals(other.getObjectsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getObjectsCount() > 0) { + hash = (37 * hash) + OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getObjectsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SourceCatalog parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SourceCatalog 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.datastream.v1.SourceCatalog parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SourceCatalog 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.datastream.v1.SourceCatalog parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SourceCatalog parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SourceCatalog parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SourceCatalog 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.datastream.v1.SourceCatalog parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SourceCatalog 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.datastream.v1.SourceCatalog parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SourceCatalog 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.datastream.v1.SourceCatalog 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; + } + + /** + * + * + *
    +   * Source catalog.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SourceCatalog} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SourceCatalog) + com.google.cloud.datastream.v1.SourceCatalogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceCatalog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceCatalog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SourceCatalog.class, + com.google.cloud.datastream.v1.SourceCatalog.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SourceCatalog.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (objectsBuilder_ == null) { + objects_ = java.util.Collections.emptyList(); + } else { + objects_ = null; + objectsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceCatalog_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalog getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalog build() { + com.google.cloud.datastream.v1.SourceCatalog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalog buildPartial() { + com.google.cloud.datastream.v1.SourceCatalog result = + new com.google.cloud.datastream.v1.SourceCatalog(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.SourceCatalog result) { + if (objectsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + objects_ = java.util.Collections.unmodifiableList(objects_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.objects_ = objects_; + } else { + result.objects_ = objectsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.datastream.v1.SourceCatalog result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.SourceCatalog) { + return mergeFrom((com.google.cloud.datastream.v1.SourceCatalog) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.SourceCatalog other) { + if (other == com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance()) return this; + if (objectsBuilder_ == null) { + if (!other.objects_.isEmpty()) { + if (objects_.isEmpty()) { + objects_ = other.objects_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureObjectsIsMutable(); + objects_.addAll(other.objects_); + } + onChanged(); + } + } else { + if (!other.objects_.isEmpty()) { + if (objectsBuilder_.isEmpty()) { + objectsBuilder_.dispose(); + objectsBuilder_ = null; + objects_ = other.objects_; + bitField0_ = (bitField0_ & ~0x00000001); + objectsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetObjectsFieldBuilder() + : null; + } else { + objectsBuilder_.addAllMessages(other.objects_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.datastream.v1.SourceObject m = + input.readMessage( + com.google.cloud.datastream.v1.SourceObject.parser(), extensionRegistry); + if (objectsBuilder_ == null) { + ensureObjectsIsMutable(); + objects_.add(m); + } else { + objectsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List objects_ = + java.util.Collections.emptyList(); + + private void ensureObjectsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + objects_ = new java.util.ArrayList(objects_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.SourceObject, + com.google.cloud.datastream.v1.SourceObject.Builder, + com.google.cloud.datastream.v1.SourceObjectOrBuilder> + objectsBuilder_; + + /** + * + * + *
    +     * Optional. Source objects in the catalog.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getObjectsList() { + if (objectsBuilder_ == null) { + return java.util.Collections.unmodifiableList(objects_); + } else { + return objectsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Optional. Source objects in the catalog.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getObjectsCount() { + if (objectsBuilder_ == null) { + return objects_.size(); + } else { + return objectsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Optional. Source objects in the catalog.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceObject getObjects(int index) { + if (objectsBuilder_ == null) { + return objects_.get(index); + } else { + return objectsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Optional. Source objects in the catalog.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setObjects(int index, com.google.cloud.datastream.v1.SourceObject value) { + if (objectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectsIsMutable(); + objects_.set(index, value); + onChanged(); + } else { + objectsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source objects in the catalog.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setObjects( + int index, com.google.cloud.datastream.v1.SourceObject.Builder builderForValue) { + if (objectsBuilder_ == null) { + ensureObjectsIsMutable(); + objects_.set(index, builderForValue.build()); + onChanged(); + } else { + objectsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source objects in the catalog.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addObjects(com.google.cloud.datastream.v1.SourceObject value) { + if (objectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectsIsMutable(); + objects_.add(value); + onChanged(); + } else { + objectsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source objects in the catalog.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addObjects(int index, com.google.cloud.datastream.v1.SourceObject value) { + if (objectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectsIsMutable(); + objects_.add(index, value); + onChanged(); + } else { + objectsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source objects in the catalog.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addObjects(com.google.cloud.datastream.v1.SourceObject.Builder builderForValue) { + if (objectsBuilder_ == null) { + ensureObjectsIsMutable(); + objects_.add(builderForValue.build()); + onChanged(); + } else { + objectsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source objects in the catalog.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addObjects( + int index, com.google.cloud.datastream.v1.SourceObject.Builder builderForValue) { + if (objectsBuilder_ == null) { + ensureObjectsIsMutable(); + objects_.add(index, builderForValue.build()); + onChanged(); + } else { + objectsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source objects in the catalog.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllObjects( + java.lang.Iterable values) { + if (objectsBuilder_ == null) { + ensureObjectsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, objects_); + onChanged(); + } else { + objectsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source objects in the catalog.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearObjects() { + if (objectsBuilder_ == null) { + objects_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + objectsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source objects in the catalog.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeObjects(int index) { + if (objectsBuilder_ == null) { + ensureObjectsIsMutable(); + objects_.remove(index); + onChanged(); + } else { + objectsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source objects in the catalog.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceObject.Builder getObjectsBuilder(int index) { + return internalGetObjectsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Optional. Source objects in the catalog.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceObjectOrBuilder getObjectsOrBuilder(int index) { + if (objectsBuilder_ == null) { + return objects_.get(index); + } else { + return objectsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Optional. Source objects in the catalog.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getObjectsOrBuilderList() { + if (objectsBuilder_ != null) { + return objectsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(objects_); + } + } + + /** + * + * + *
    +     * Optional. Source objects in the catalog.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceObject.Builder addObjectsBuilder() { + return internalGetObjectsFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.SourceObject.getDefaultInstance()); + } + + /** + * + * + *
    +     * Optional. Source objects in the catalog.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceObject.Builder addObjectsBuilder(int index) { + return internalGetObjectsFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.SourceObject.getDefaultInstance()); + } + + /** + * + * + *
    +     * Optional. Source objects in the catalog.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getObjectsBuilderList() { + return internalGetObjectsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.SourceObject, + com.google.cloud.datastream.v1.SourceObject.Builder, + com.google.cloud.datastream.v1.SourceObjectOrBuilder> + internalGetObjectsFieldBuilder() { + if (objectsBuilder_ == null) { + objectsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.SourceObject, + com.google.cloud.datastream.v1.SourceObject.Builder, + com.google.cloud.datastream.v1.SourceObjectOrBuilder>( + objects_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + objects_ = null; + } + return objectsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SourceCatalog) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SourceCatalog) + private static final com.google.cloud.datastream.v1.SourceCatalog DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SourceCatalog(); + } + + public static com.google.cloud.datastream.v1.SourceCatalog getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceCatalog 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.datastream.v1.SourceCatalog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceCatalogOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceCatalogOrBuilder.java new file mode 100644 index 000000000000..9a21899b91fe --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceCatalogOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface SourceCatalogOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SourceCatalog) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. Source objects in the catalog.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getObjectsList(); + + /** + * + * + *
    +   * Optional. Source objects in the catalog.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SourceObject getObjects(int index); + + /** + * + * + *
    +   * Optional. Source objects in the catalog.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getObjectsCount(); + + /** + * + * + *
    +   * Optional. Source objects in the catalog.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getObjectsOrBuilderList(); + + /** + * + * + *
    +   * Optional. Source objects in the catalog.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SourceObjectOrBuilder getObjectsOrBuilder(int index); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java index 97ebfa4ea144..5b8e3520ac93 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java @@ -85,6 +85,11 @@ public enum SourceStreamConfigCase SQL_SERVER_SOURCE_CONFIG(103), SALESFORCE_SOURCE_CONFIG(104), MONGODB_SOURCE_CONFIG(105), + SPANNER_SOURCE_CONFIG(106), + DATAVERSE_SOURCE_CONFIG(111), + SALESFORCE_MARKETING_CLOUD_SOURCE_CONFIG(116), + SERVICE_NOW_SOURCE_CONFIG(117), + WORKDAY_SOURCE_CONFIG(118), SOURCESTREAMCONFIG_NOT_SET(0); private final int value; @@ -116,6 +121,16 @@ public static SourceStreamConfigCase forNumber(int value) { return SALESFORCE_SOURCE_CONFIG; case 105: return MONGODB_SOURCE_CONFIG; + case 106: + return SPANNER_SOURCE_CONFIG; + case 111: + return DATAVERSE_SOURCE_CONFIG; + case 116: + return SALESFORCE_MARKETING_CLOUD_SOURCE_CONFIG; + case 117: + return SERVICE_NOW_SOURCE_CONFIG; + case 118: + return WORKDAY_SOURCE_CONFIG; case 0: return SOURCESTREAMCONFIG_NOT_SET; default: @@ -520,6 +535,299 @@ public com.google.cloud.datastream.v1.MongodbSourceConfig getMongodbSourceConfig return com.google.cloud.datastream.v1.MongodbSourceConfig.getDefaultInstance(); } + public static final int SPANNER_SOURCE_CONFIG_FIELD_NUMBER = 106; + + /** + * + * + *
    +   * Spanner data source configuration.
    +   * 
    + * + * .google.cloud.datastream.v1.SpannerSourceConfig spanner_source_config = 106; + * + * @return Whether the spannerSourceConfig field is set. + */ + @java.lang.Override + public boolean hasSpannerSourceConfig() { + return sourceStreamConfigCase_ == 106; + } + + /** + * + * + *
    +   * Spanner data source configuration.
    +   * 
    + * + * .google.cloud.datastream.v1.SpannerSourceConfig spanner_source_config = 106; + * + * @return The spannerSourceConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerSourceConfig getSpannerSourceConfig() { + if (sourceStreamConfigCase_ == 106) { + return (com.google.cloud.datastream.v1.SpannerSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.SpannerSourceConfig.getDefaultInstance(); + } + + /** + * + * + *
    +   * Spanner data source configuration.
    +   * 
    + * + * .google.cloud.datastream.v1.SpannerSourceConfig spanner_source_config = 106; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerSourceConfigOrBuilder + getSpannerSourceConfigOrBuilder() { + if (sourceStreamConfigCase_ == 106) { + return (com.google.cloud.datastream.v1.SpannerSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.SpannerSourceConfig.getDefaultInstance(); + } + + public static final int DATAVERSE_SOURCE_CONFIG_FIELD_NUMBER = 111; + + /** + * + * + *
    +   * Dataverse data source configuration.
    +   * 
    + * + * .google.cloud.datastream.v1.DataverseSourceConfig dataverse_source_config = 111; + * + * @return Whether the dataverseSourceConfig field is set. + */ + @java.lang.Override + public boolean hasDataverseSourceConfig() { + return sourceStreamConfigCase_ == 111; + } + + /** + * + * + *
    +   * Dataverse data source configuration.
    +   * 
    + * + * .google.cloud.datastream.v1.DataverseSourceConfig dataverse_source_config = 111; + * + * @return The dataverseSourceConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.DataverseSourceConfig getDataverseSourceConfig() { + if (sourceStreamConfigCase_ == 111) { + return (com.google.cloud.datastream.v1.DataverseSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.DataverseSourceConfig.getDefaultInstance(); + } + + /** + * + * + *
    +   * Dataverse data source configuration.
    +   * 
    + * + * .google.cloud.datastream.v1.DataverseSourceConfig dataverse_source_config = 111; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.DataverseSourceConfigOrBuilder + getDataverseSourceConfigOrBuilder() { + if (sourceStreamConfigCase_ == 111) { + return (com.google.cloud.datastream.v1.DataverseSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.DataverseSourceConfig.getDefaultInstance(); + } + + public static final int SALESFORCE_MARKETING_CLOUD_SOURCE_CONFIG_FIELD_NUMBER = 116; + + /** + * + * + *
    +   * Salesforce Marketing Cloud data source configuration.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig salesforce_marketing_cloud_source_config = 116; + * + * + * @return Whether the salesforceMarketingCloudSourceConfig field is set. + */ + @java.lang.Override + public boolean hasSalesforceMarketingCloudSourceConfig() { + return sourceStreamConfigCase_ == 116; + } + + /** + * + * + *
    +   * Salesforce Marketing Cloud data source configuration.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig salesforce_marketing_cloud_source_config = 116; + * + * + * @return The salesforceMarketingCloudSourceConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig + getSalesforceMarketingCloudSourceConfig() { + if (sourceStreamConfigCase_ == 116) { + return (com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig) + sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig.getDefaultInstance(); + } + + /** + * + * + *
    +   * Salesforce Marketing Cloud data source configuration.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig salesforce_marketing_cloud_source_config = 116; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfigOrBuilder + getSalesforceMarketingCloudSourceConfigOrBuilder() { + if (sourceStreamConfigCase_ == 116) { + return (com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig) + sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig.getDefaultInstance(); + } + + public static final int SERVICE_NOW_SOURCE_CONFIG_FIELD_NUMBER = 117; + + /** + * + * + *
    +   * ServiceNow data source configuration.
    +   * 
    + * + * .google.cloud.datastream.v1.ServiceNowSourceConfig service_now_source_config = 117; + * + * + * @return Whether the serviceNowSourceConfig field is set. + */ + @java.lang.Override + public boolean hasServiceNowSourceConfig() { + return sourceStreamConfigCase_ == 117; + } + + /** + * + * + *
    +   * ServiceNow data source configuration.
    +   * 
    + * + * .google.cloud.datastream.v1.ServiceNowSourceConfig service_now_source_config = 117; + * + * + * @return The serviceNowSourceConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.ServiceNowSourceConfig getServiceNowSourceConfig() { + if (sourceStreamConfigCase_ == 117) { + return (com.google.cloud.datastream.v1.ServiceNowSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.ServiceNowSourceConfig.getDefaultInstance(); + } + + /** + * + * + *
    +   * ServiceNow data source configuration.
    +   * 
    + * + * .google.cloud.datastream.v1.ServiceNowSourceConfig service_now_source_config = 117; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.ServiceNowSourceConfigOrBuilder + getServiceNowSourceConfigOrBuilder() { + if (sourceStreamConfigCase_ == 117) { + return (com.google.cloud.datastream.v1.ServiceNowSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.ServiceNowSourceConfig.getDefaultInstance(); + } + + public static final int WORKDAY_SOURCE_CONFIG_FIELD_NUMBER = 118; + + /** + * + * + *
    +   * Optional. Workday data source configuration.
    +   * 
    + * + * + * .google.cloud.datastream.v1.WorkdaySourceConfig workday_source_config = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the workdaySourceConfig field is set. + */ + @java.lang.Override + public boolean hasWorkdaySourceConfig() { + return sourceStreamConfigCase_ == 118; + } + + /** + * + * + *
    +   * Optional. Workday data source configuration.
    +   * 
    + * + * + * .google.cloud.datastream.v1.WorkdaySourceConfig workday_source_config = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workdaySourceConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.WorkdaySourceConfig getWorkdaySourceConfig() { + if (sourceStreamConfigCase_ == 118) { + return (com.google.cloud.datastream.v1.WorkdaySourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.WorkdaySourceConfig.getDefaultInstance(); + } + + /** + * + * + *
    +   * Optional. Workday data source configuration.
    +   * 
    + * + * + * .google.cloud.datastream.v1.WorkdaySourceConfig workday_source_config = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.WorkdaySourceConfigOrBuilder + getWorkdaySourceConfigOrBuilder() { + if (sourceStreamConfigCase_ == 118) { + return (com.google.cloud.datastream.v1.WorkdaySourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.WorkdaySourceConfig.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -561,6 +869,28 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 105, (com.google.cloud.datastream.v1.MongodbSourceConfig) sourceStreamConfig_); } + if (sourceStreamConfigCase_ == 106) { + output.writeMessage( + 106, (com.google.cloud.datastream.v1.SpannerSourceConfig) sourceStreamConfig_); + } + if (sourceStreamConfigCase_ == 111) { + output.writeMessage( + 111, (com.google.cloud.datastream.v1.DataverseSourceConfig) sourceStreamConfig_); + } + if (sourceStreamConfigCase_ == 116) { + output.writeMessage( + 116, + (com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig) + sourceStreamConfig_); + } + if (sourceStreamConfigCase_ == 117) { + output.writeMessage( + 117, (com.google.cloud.datastream.v1.ServiceNowSourceConfig) sourceStreamConfig_); + } + if (sourceStreamConfigCase_ == 118) { + output.writeMessage( + 118, (com.google.cloud.datastream.v1.WorkdaySourceConfig) sourceStreamConfig_); + } getUnknownFields().writeTo(output); } @@ -603,6 +933,33 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 105, (com.google.cloud.datastream.v1.MongodbSourceConfig) sourceStreamConfig_); } + if (sourceStreamConfigCase_ == 106) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 106, (com.google.cloud.datastream.v1.SpannerSourceConfig) sourceStreamConfig_); + } + if (sourceStreamConfigCase_ == 111) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 111, (com.google.cloud.datastream.v1.DataverseSourceConfig) sourceStreamConfig_); + } + if (sourceStreamConfigCase_ == 116) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 116, + (com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig) + sourceStreamConfig_); + } + if (sourceStreamConfigCase_ == 117) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 117, (com.google.cloud.datastream.v1.ServiceNowSourceConfig) sourceStreamConfig_); + } + if (sourceStreamConfigCase_ == 118) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 118, (com.google.cloud.datastream.v1.WorkdaySourceConfig) sourceStreamConfig_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -640,6 +997,22 @@ public boolean equals(final java.lang.Object obj) { case 105: if (!getMongodbSourceConfig().equals(other.getMongodbSourceConfig())) return false; break; + case 106: + if (!getSpannerSourceConfig().equals(other.getSpannerSourceConfig())) return false; + break; + case 111: + if (!getDataverseSourceConfig().equals(other.getDataverseSourceConfig())) return false; + break; + case 116: + if (!getSalesforceMarketingCloudSourceConfig() + .equals(other.getSalesforceMarketingCloudSourceConfig())) return false; + break; + case 117: + if (!getServiceNowSourceConfig().equals(other.getServiceNowSourceConfig())) return false; + break; + case 118: + if (!getWorkdaySourceConfig().equals(other.getWorkdaySourceConfig())) return false; + break; case 0: default: } @@ -681,6 +1054,26 @@ public int hashCode() { hash = (37 * hash) + MONGODB_SOURCE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getMongodbSourceConfig().hashCode(); break; + case 106: + hash = (37 * hash) + SPANNER_SOURCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSpannerSourceConfig().hashCode(); + break; + case 111: + hash = (37 * hash) + DATAVERSE_SOURCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDataverseSourceConfig().hashCode(); + break; + case 116: + hash = (37 * hash) + SALESFORCE_MARKETING_CLOUD_SOURCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSalesforceMarketingCloudSourceConfig().hashCode(); + break; + case 117: + hash = (37 * hash) + SERVICE_NOW_SOURCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServiceNowSourceConfig().hashCode(); + break; + case 118: + hash = (37 * hash) + WORKDAY_SOURCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWorkdaySourceConfig().hashCode(); + break; case 0: default: } @@ -843,6 +1236,21 @@ public Builder clear() { if (mongodbSourceConfigBuilder_ != null) { mongodbSourceConfigBuilder_.clear(); } + if (spannerSourceConfigBuilder_ != null) { + spannerSourceConfigBuilder_.clear(); + } + if (dataverseSourceConfigBuilder_ != null) { + dataverseSourceConfigBuilder_.clear(); + } + if (salesforceMarketingCloudSourceConfigBuilder_ != null) { + salesforceMarketingCloudSourceConfigBuilder_.clear(); + } + if (serviceNowSourceConfigBuilder_ != null) { + serviceNowSourceConfigBuilder_.clear(); + } + if (workdaySourceConfigBuilder_ != null) { + workdaySourceConfigBuilder_.clear(); + } sourceStreamConfigCase_ = 0; sourceStreamConfig_ = null; return this; @@ -908,6 +1316,21 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.SourceConfig resu if (sourceStreamConfigCase_ == 105 && mongodbSourceConfigBuilder_ != null) { result.sourceStreamConfig_ = mongodbSourceConfigBuilder_.build(); } + if (sourceStreamConfigCase_ == 106 && spannerSourceConfigBuilder_ != null) { + result.sourceStreamConfig_ = spannerSourceConfigBuilder_.build(); + } + if (sourceStreamConfigCase_ == 111 && dataverseSourceConfigBuilder_ != null) { + result.sourceStreamConfig_ = dataverseSourceConfigBuilder_.build(); + } + if (sourceStreamConfigCase_ == 116 && salesforceMarketingCloudSourceConfigBuilder_ != null) { + result.sourceStreamConfig_ = salesforceMarketingCloudSourceConfigBuilder_.build(); + } + if (sourceStreamConfigCase_ == 117 && serviceNowSourceConfigBuilder_ != null) { + result.sourceStreamConfig_ = serviceNowSourceConfigBuilder_.build(); + } + if (sourceStreamConfigCase_ == 118 && workdaySourceConfigBuilder_ != null) { + result.sourceStreamConfig_ = workdaySourceConfigBuilder_.build(); + } } @java.lang.Override @@ -958,6 +1381,32 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.SourceConfig other) { mergeMongodbSourceConfig(other.getMongodbSourceConfig()); break; } + case SPANNER_SOURCE_CONFIG: + { + mergeSpannerSourceConfig(other.getSpannerSourceConfig()); + break; + } + case DATAVERSE_SOURCE_CONFIG: + { + mergeDataverseSourceConfig(other.getDataverseSourceConfig()); + break; + } + case SALESFORCE_MARKETING_CLOUD_SOURCE_CONFIG: + { + mergeSalesforceMarketingCloudSourceConfig( + other.getSalesforceMarketingCloudSourceConfig()); + break; + } + case SERVICE_NOW_SOURCE_CONFIG: + { + mergeServiceNowSourceConfig(other.getServiceNowSourceConfig()); + break; + } + case WORKDAY_SOURCE_CONFIG: + { + mergeWorkdaySourceConfig(other.getWorkdaySourceConfig()); + break; + } case SOURCESTREAMCONFIG_NOT_SET: { break; @@ -1039,13 +1488,50 @@ public Builder mergeFrom( sourceStreamConfigCase_ = 105; break; } // case 842 - default: + case 850: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } + input.readMessage( + internalGetSpannerSourceConfigFieldBuilder().getBuilder(), extensionRegistry); + sourceStreamConfigCase_ = 106; break; - } // default: + } // case 850 + case 890: + { + input.readMessage( + internalGetDataverseSourceConfigFieldBuilder().getBuilder(), extensionRegistry); + sourceStreamConfigCase_ = 111; + break; + } // case 890 + case 930: + { + input.readMessage( + internalGetSalesforceMarketingCloudSourceConfigFieldBuilder().getBuilder(), + extensionRegistry); + sourceStreamConfigCase_ = 116; + break; + } // case 930 + case 938: + { + input.readMessage( + internalGetServiceNowSourceConfigFieldBuilder().getBuilder(), + extensionRegistry); + sourceStreamConfigCase_ = 117; + break; + } // case 938 + case 946: + { + input.readMessage( + internalGetWorkdaySourceConfigFieldBuilder().getBuilder(), extensionRegistry); + sourceStreamConfigCase_ = 118; + break; + } // case 946 + 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) { @@ -2565,6 +3051,1183 @@ public Builder clearMongodbSourceConfig() { return mongodbSourceConfigBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SpannerSourceConfig, + com.google.cloud.datastream.v1.SpannerSourceConfig.Builder, + com.google.cloud.datastream.v1.SpannerSourceConfigOrBuilder> + spannerSourceConfigBuilder_; + + /** + * + * + *
    +     * Spanner data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerSourceConfig spanner_source_config = 106; + * + * @return Whether the spannerSourceConfig field is set. + */ + @java.lang.Override + public boolean hasSpannerSourceConfig() { + return sourceStreamConfigCase_ == 106; + } + + /** + * + * + *
    +     * Spanner data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerSourceConfig spanner_source_config = 106; + * + * @return The spannerSourceConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerSourceConfig getSpannerSourceConfig() { + if (spannerSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 106) { + return (com.google.cloud.datastream.v1.SpannerSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.SpannerSourceConfig.getDefaultInstance(); + } else { + if (sourceStreamConfigCase_ == 106) { + return spannerSourceConfigBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SpannerSourceConfig.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Spanner data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerSourceConfig spanner_source_config = 106; + */ + public Builder setSpannerSourceConfig( + com.google.cloud.datastream.v1.SpannerSourceConfig value) { + if (spannerSourceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceStreamConfig_ = value; + onChanged(); + } else { + spannerSourceConfigBuilder_.setMessage(value); + } + sourceStreamConfigCase_ = 106; + return this; + } + + /** + * + * + *
    +     * Spanner data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerSourceConfig spanner_source_config = 106; + */ + public Builder setSpannerSourceConfig( + com.google.cloud.datastream.v1.SpannerSourceConfig.Builder builderForValue) { + if (spannerSourceConfigBuilder_ == null) { + sourceStreamConfig_ = builderForValue.build(); + onChanged(); + } else { + spannerSourceConfigBuilder_.setMessage(builderForValue.build()); + } + sourceStreamConfigCase_ = 106; + return this; + } + + /** + * + * + *
    +     * Spanner data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerSourceConfig spanner_source_config = 106; + */ + public Builder mergeSpannerSourceConfig( + com.google.cloud.datastream.v1.SpannerSourceConfig value) { + if (spannerSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 106 + && sourceStreamConfig_ + != com.google.cloud.datastream.v1.SpannerSourceConfig.getDefaultInstance()) { + sourceStreamConfig_ = + com.google.cloud.datastream.v1.SpannerSourceConfig.newBuilder( + (com.google.cloud.datastream.v1.SpannerSourceConfig) sourceStreamConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceStreamConfig_ = value; + } + onChanged(); + } else { + if (sourceStreamConfigCase_ == 106) { + spannerSourceConfigBuilder_.mergeFrom(value); + } else { + spannerSourceConfigBuilder_.setMessage(value); + } + } + sourceStreamConfigCase_ = 106; + return this; + } + + /** + * + * + *
    +     * Spanner data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerSourceConfig spanner_source_config = 106; + */ + public Builder clearSpannerSourceConfig() { + if (spannerSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 106) { + sourceStreamConfigCase_ = 0; + sourceStreamConfig_ = null; + onChanged(); + } + } else { + if (sourceStreamConfigCase_ == 106) { + sourceStreamConfigCase_ = 0; + sourceStreamConfig_ = null; + } + spannerSourceConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Spanner data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerSourceConfig spanner_source_config = 106; + */ + public com.google.cloud.datastream.v1.SpannerSourceConfig.Builder + getSpannerSourceConfigBuilder() { + return internalGetSpannerSourceConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Spanner data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerSourceConfig spanner_source_config = 106; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerSourceConfigOrBuilder + getSpannerSourceConfigOrBuilder() { + if ((sourceStreamConfigCase_ == 106) && (spannerSourceConfigBuilder_ != null)) { + return spannerSourceConfigBuilder_.getMessageOrBuilder(); + } else { + if (sourceStreamConfigCase_ == 106) { + return (com.google.cloud.datastream.v1.SpannerSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.SpannerSourceConfig.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Spanner data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerSourceConfig spanner_source_config = 106; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SpannerSourceConfig, + com.google.cloud.datastream.v1.SpannerSourceConfig.Builder, + com.google.cloud.datastream.v1.SpannerSourceConfigOrBuilder> + internalGetSpannerSourceConfigFieldBuilder() { + if (spannerSourceConfigBuilder_ == null) { + if (!(sourceStreamConfigCase_ == 106)) { + sourceStreamConfig_ = + com.google.cloud.datastream.v1.SpannerSourceConfig.getDefaultInstance(); + } + spannerSourceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SpannerSourceConfig, + com.google.cloud.datastream.v1.SpannerSourceConfig.Builder, + com.google.cloud.datastream.v1.SpannerSourceConfigOrBuilder>( + (com.google.cloud.datastream.v1.SpannerSourceConfig) sourceStreamConfig_, + getParentForChildren(), + isClean()); + sourceStreamConfig_ = null; + } + sourceStreamConfigCase_ = 106; + onChanged(); + return spannerSourceConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.DataverseSourceConfig, + com.google.cloud.datastream.v1.DataverseSourceConfig.Builder, + com.google.cloud.datastream.v1.DataverseSourceConfigOrBuilder> + dataverseSourceConfigBuilder_; + + /** + * + * + *
    +     * Dataverse data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.DataverseSourceConfig dataverse_source_config = 111; + * + * @return Whether the dataverseSourceConfig field is set. + */ + @java.lang.Override + public boolean hasDataverseSourceConfig() { + return sourceStreamConfigCase_ == 111; + } + + /** + * + * + *
    +     * Dataverse data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.DataverseSourceConfig dataverse_source_config = 111; + * + * @return The dataverseSourceConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.DataverseSourceConfig getDataverseSourceConfig() { + if (dataverseSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 111) { + return (com.google.cloud.datastream.v1.DataverseSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.DataverseSourceConfig.getDefaultInstance(); + } else { + if (sourceStreamConfigCase_ == 111) { + return dataverseSourceConfigBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.DataverseSourceConfig.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Dataverse data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.DataverseSourceConfig dataverse_source_config = 111; + */ + public Builder setDataverseSourceConfig( + com.google.cloud.datastream.v1.DataverseSourceConfig value) { + if (dataverseSourceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceStreamConfig_ = value; + onChanged(); + } else { + dataverseSourceConfigBuilder_.setMessage(value); + } + sourceStreamConfigCase_ = 111; + return this; + } + + /** + * + * + *
    +     * Dataverse data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.DataverseSourceConfig dataverse_source_config = 111; + */ + public Builder setDataverseSourceConfig( + com.google.cloud.datastream.v1.DataverseSourceConfig.Builder builderForValue) { + if (dataverseSourceConfigBuilder_ == null) { + sourceStreamConfig_ = builderForValue.build(); + onChanged(); + } else { + dataverseSourceConfigBuilder_.setMessage(builderForValue.build()); + } + sourceStreamConfigCase_ = 111; + return this; + } + + /** + * + * + *
    +     * Dataverse data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.DataverseSourceConfig dataverse_source_config = 111; + */ + public Builder mergeDataverseSourceConfig( + com.google.cloud.datastream.v1.DataverseSourceConfig value) { + if (dataverseSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 111 + && sourceStreamConfig_ + != com.google.cloud.datastream.v1.DataverseSourceConfig.getDefaultInstance()) { + sourceStreamConfig_ = + com.google.cloud.datastream.v1.DataverseSourceConfig.newBuilder( + (com.google.cloud.datastream.v1.DataverseSourceConfig) sourceStreamConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceStreamConfig_ = value; + } + onChanged(); + } else { + if (sourceStreamConfigCase_ == 111) { + dataverseSourceConfigBuilder_.mergeFrom(value); + } else { + dataverseSourceConfigBuilder_.setMessage(value); + } + } + sourceStreamConfigCase_ = 111; + return this; + } + + /** + * + * + *
    +     * Dataverse data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.DataverseSourceConfig dataverse_source_config = 111; + */ + public Builder clearDataverseSourceConfig() { + if (dataverseSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 111) { + sourceStreamConfigCase_ = 0; + sourceStreamConfig_ = null; + onChanged(); + } + } else { + if (sourceStreamConfigCase_ == 111) { + sourceStreamConfigCase_ = 0; + sourceStreamConfig_ = null; + } + dataverseSourceConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Dataverse data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.DataverseSourceConfig dataverse_source_config = 111; + */ + public com.google.cloud.datastream.v1.DataverseSourceConfig.Builder + getDataverseSourceConfigBuilder() { + return internalGetDataverseSourceConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Dataverse data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.DataverseSourceConfig dataverse_source_config = 111; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.DataverseSourceConfigOrBuilder + getDataverseSourceConfigOrBuilder() { + if ((sourceStreamConfigCase_ == 111) && (dataverseSourceConfigBuilder_ != null)) { + return dataverseSourceConfigBuilder_.getMessageOrBuilder(); + } else { + if (sourceStreamConfigCase_ == 111) { + return (com.google.cloud.datastream.v1.DataverseSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.DataverseSourceConfig.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Dataverse data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.DataverseSourceConfig dataverse_source_config = 111; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.DataverseSourceConfig, + com.google.cloud.datastream.v1.DataverseSourceConfig.Builder, + com.google.cloud.datastream.v1.DataverseSourceConfigOrBuilder> + internalGetDataverseSourceConfigFieldBuilder() { + if (dataverseSourceConfigBuilder_ == null) { + if (!(sourceStreamConfigCase_ == 111)) { + sourceStreamConfig_ = + com.google.cloud.datastream.v1.DataverseSourceConfig.getDefaultInstance(); + } + dataverseSourceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.DataverseSourceConfig, + com.google.cloud.datastream.v1.DataverseSourceConfig.Builder, + com.google.cloud.datastream.v1.DataverseSourceConfigOrBuilder>( + (com.google.cloud.datastream.v1.DataverseSourceConfig) sourceStreamConfig_, + getParentForChildren(), + isClean()); + sourceStreamConfig_ = null; + } + sourceStreamConfigCase_ = 111; + onChanged(); + return dataverseSourceConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig, + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig.Builder, + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfigOrBuilder> + salesforceMarketingCloudSourceConfigBuilder_; + + /** + * + * + *
    +     * Salesforce Marketing Cloud data source configuration.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig salesforce_marketing_cloud_source_config = 116; + * + * + * @return Whether the salesforceMarketingCloudSourceConfig field is set. + */ + @java.lang.Override + public boolean hasSalesforceMarketingCloudSourceConfig() { + return sourceStreamConfigCase_ == 116; + } + + /** + * + * + *
    +     * Salesforce Marketing Cloud data source configuration.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig salesforce_marketing_cloud_source_config = 116; + * + * + * @return The salesforceMarketingCloudSourceConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig + getSalesforceMarketingCloudSourceConfig() { + if (salesforceMarketingCloudSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 116) { + return (com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig) + sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig + .getDefaultInstance(); + } else { + if (sourceStreamConfigCase_ == 116) { + return salesforceMarketingCloudSourceConfigBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Salesforce Marketing Cloud data source configuration.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig salesforce_marketing_cloud_source_config = 116; + * + */ + public Builder setSalesforceMarketingCloudSourceConfig( + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig value) { + if (salesforceMarketingCloudSourceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceStreamConfig_ = value; + onChanged(); + } else { + salesforceMarketingCloudSourceConfigBuilder_.setMessage(value); + } + sourceStreamConfigCase_ = 116; + return this; + } + + /** + * + * + *
    +     * Salesforce Marketing Cloud data source configuration.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig salesforce_marketing_cloud_source_config = 116; + * + */ + public Builder setSalesforceMarketingCloudSourceConfig( + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig.Builder + builderForValue) { + if (salesforceMarketingCloudSourceConfigBuilder_ == null) { + sourceStreamConfig_ = builderForValue.build(); + onChanged(); + } else { + salesforceMarketingCloudSourceConfigBuilder_.setMessage(builderForValue.build()); + } + sourceStreamConfigCase_ = 116; + return this; + } + + /** + * + * + *
    +     * Salesforce Marketing Cloud data source configuration.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig salesforce_marketing_cloud_source_config = 116; + * + */ + public Builder mergeSalesforceMarketingCloudSourceConfig( + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig value) { + if (salesforceMarketingCloudSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 116 + && sourceStreamConfig_ + != com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig + .getDefaultInstance()) { + sourceStreamConfig_ = + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig.newBuilder( + (com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig) + sourceStreamConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceStreamConfig_ = value; + } + onChanged(); + } else { + if (sourceStreamConfigCase_ == 116) { + salesforceMarketingCloudSourceConfigBuilder_.mergeFrom(value); + } else { + salesforceMarketingCloudSourceConfigBuilder_.setMessage(value); + } + } + sourceStreamConfigCase_ = 116; + return this; + } + + /** + * + * + *
    +     * Salesforce Marketing Cloud data source configuration.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig salesforce_marketing_cloud_source_config = 116; + * + */ + public Builder clearSalesforceMarketingCloudSourceConfig() { + if (salesforceMarketingCloudSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 116) { + sourceStreamConfigCase_ = 0; + sourceStreamConfig_ = null; + onChanged(); + } + } else { + if (sourceStreamConfigCase_ == 116) { + sourceStreamConfigCase_ = 0; + sourceStreamConfig_ = null; + } + salesforceMarketingCloudSourceConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Salesforce Marketing Cloud data source configuration.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig salesforce_marketing_cloud_source_config = 116; + * + */ + public com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig.Builder + getSalesforceMarketingCloudSourceConfigBuilder() { + return internalGetSalesforceMarketingCloudSourceConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Salesforce Marketing Cloud data source configuration.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig salesforce_marketing_cloud_source_config = 116; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfigOrBuilder + getSalesforceMarketingCloudSourceConfigOrBuilder() { + if ((sourceStreamConfigCase_ == 116) + && (salesforceMarketingCloudSourceConfigBuilder_ != null)) { + return salesforceMarketingCloudSourceConfigBuilder_.getMessageOrBuilder(); + } else { + if (sourceStreamConfigCase_ == 116) { + return (com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig) + sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Salesforce Marketing Cloud data source configuration.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig salesforce_marketing_cloud_source_config = 116; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig, + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig.Builder, + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfigOrBuilder> + internalGetSalesforceMarketingCloudSourceConfigFieldBuilder() { + if (salesforceMarketingCloudSourceConfigBuilder_ == null) { + if (!(sourceStreamConfigCase_ == 116)) { + sourceStreamConfig_ = + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig + .getDefaultInstance(); + } + salesforceMarketingCloudSourceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig, + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig.Builder, + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfigOrBuilder>( + (com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig) + sourceStreamConfig_, + getParentForChildren(), + isClean()); + sourceStreamConfig_ = null; + } + sourceStreamConfigCase_ = 116; + onChanged(); + return salesforceMarketingCloudSourceConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.ServiceNowSourceConfig, + com.google.cloud.datastream.v1.ServiceNowSourceConfig.Builder, + com.google.cloud.datastream.v1.ServiceNowSourceConfigOrBuilder> + serviceNowSourceConfigBuilder_; + + /** + * + * + *
    +     * ServiceNow data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.ServiceNowSourceConfig service_now_source_config = 117; + * + * + * @return Whether the serviceNowSourceConfig field is set. + */ + @java.lang.Override + public boolean hasServiceNowSourceConfig() { + return sourceStreamConfigCase_ == 117; + } + + /** + * + * + *
    +     * ServiceNow data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.ServiceNowSourceConfig service_now_source_config = 117; + * + * + * @return The serviceNowSourceConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.ServiceNowSourceConfig getServiceNowSourceConfig() { + if (serviceNowSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 117) { + return (com.google.cloud.datastream.v1.ServiceNowSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.ServiceNowSourceConfig.getDefaultInstance(); + } else { + if (sourceStreamConfigCase_ == 117) { + return serviceNowSourceConfigBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.ServiceNowSourceConfig.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * ServiceNow data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.ServiceNowSourceConfig service_now_source_config = 117; + * + */ + public Builder setServiceNowSourceConfig( + com.google.cloud.datastream.v1.ServiceNowSourceConfig value) { + if (serviceNowSourceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceStreamConfig_ = value; + onChanged(); + } else { + serviceNowSourceConfigBuilder_.setMessage(value); + } + sourceStreamConfigCase_ = 117; + return this; + } + + /** + * + * + *
    +     * ServiceNow data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.ServiceNowSourceConfig service_now_source_config = 117; + * + */ + public Builder setServiceNowSourceConfig( + com.google.cloud.datastream.v1.ServiceNowSourceConfig.Builder builderForValue) { + if (serviceNowSourceConfigBuilder_ == null) { + sourceStreamConfig_ = builderForValue.build(); + onChanged(); + } else { + serviceNowSourceConfigBuilder_.setMessage(builderForValue.build()); + } + sourceStreamConfigCase_ = 117; + return this; + } + + /** + * + * + *
    +     * ServiceNow data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.ServiceNowSourceConfig service_now_source_config = 117; + * + */ + public Builder mergeServiceNowSourceConfig( + com.google.cloud.datastream.v1.ServiceNowSourceConfig value) { + if (serviceNowSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 117 + && sourceStreamConfig_ + != com.google.cloud.datastream.v1.ServiceNowSourceConfig.getDefaultInstance()) { + sourceStreamConfig_ = + com.google.cloud.datastream.v1.ServiceNowSourceConfig.newBuilder( + (com.google.cloud.datastream.v1.ServiceNowSourceConfig) sourceStreamConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceStreamConfig_ = value; + } + onChanged(); + } else { + if (sourceStreamConfigCase_ == 117) { + serviceNowSourceConfigBuilder_.mergeFrom(value); + } else { + serviceNowSourceConfigBuilder_.setMessage(value); + } + } + sourceStreamConfigCase_ = 117; + return this; + } + + /** + * + * + *
    +     * ServiceNow data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.ServiceNowSourceConfig service_now_source_config = 117; + * + */ + public Builder clearServiceNowSourceConfig() { + if (serviceNowSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 117) { + sourceStreamConfigCase_ = 0; + sourceStreamConfig_ = null; + onChanged(); + } + } else { + if (sourceStreamConfigCase_ == 117) { + sourceStreamConfigCase_ = 0; + sourceStreamConfig_ = null; + } + serviceNowSourceConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * ServiceNow data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.ServiceNowSourceConfig service_now_source_config = 117; + * + */ + public com.google.cloud.datastream.v1.ServiceNowSourceConfig.Builder + getServiceNowSourceConfigBuilder() { + return internalGetServiceNowSourceConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * ServiceNow data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.ServiceNowSourceConfig service_now_source_config = 117; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.ServiceNowSourceConfigOrBuilder + getServiceNowSourceConfigOrBuilder() { + if ((sourceStreamConfigCase_ == 117) && (serviceNowSourceConfigBuilder_ != null)) { + return serviceNowSourceConfigBuilder_.getMessageOrBuilder(); + } else { + if (sourceStreamConfigCase_ == 117) { + return (com.google.cloud.datastream.v1.ServiceNowSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.ServiceNowSourceConfig.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * ServiceNow data source configuration.
    +     * 
    + * + * .google.cloud.datastream.v1.ServiceNowSourceConfig service_now_source_config = 117; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.ServiceNowSourceConfig, + com.google.cloud.datastream.v1.ServiceNowSourceConfig.Builder, + com.google.cloud.datastream.v1.ServiceNowSourceConfigOrBuilder> + internalGetServiceNowSourceConfigFieldBuilder() { + if (serviceNowSourceConfigBuilder_ == null) { + if (!(sourceStreamConfigCase_ == 117)) { + sourceStreamConfig_ = + com.google.cloud.datastream.v1.ServiceNowSourceConfig.getDefaultInstance(); + } + serviceNowSourceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.ServiceNowSourceConfig, + com.google.cloud.datastream.v1.ServiceNowSourceConfig.Builder, + com.google.cloud.datastream.v1.ServiceNowSourceConfigOrBuilder>( + (com.google.cloud.datastream.v1.ServiceNowSourceConfig) sourceStreamConfig_, + getParentForChildren(), + isClean()); + sourceStreamConfig_ = null; + } + sourceStreamConfigCase_ = 117; + onChanged(); + return serviceNowSourceConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.WorkdaySourceConfig, + com.google.cloud.datastream.v1.WorkdaySourceConfig.Builder, + com.google.cloud.datastream.v1.WorkdaySourceConfigOrBuilder> + workdaySourceConfigBuilder_; + + /** + * + * + *
    +     * Optional. Workday data source configuration.
    +     * 
    + * + * + * .google.cloud.datastream.v1.WorkdaySourceConfig workday_source_config = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the workdaySourceConfig field is set. + */ + @java.lang.Override + public boolean hasWorkdaySourceConfig() { + return sourceStreamConfigCase_ == 118; + } + + /** + * + * + *
    +     * Optional. Workday data source configuration.
    +     * 
    + * + * + * .google.cloud.datastream.v1.WorkdaySourceConfig workday_source_config = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workdaySourceConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.WorkdaySourceConfig getWorkdaySourceConfig() { + if (workdaySourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 118) { + return (com.google.cloud.datastream.v1.WorkdaySourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.WorkdaySourceConfig.getDefaultInstance(); + } else { + if (sourceStreamConfigCase_ == 118) { + return workdaySourceConfigBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.WorkdaySourceConfig.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. Workday data source configuration.
    +     * 
    + * + * + * .google.cloud.datastream.v1.WorkdaySourceConfig workday_source_config = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setWorkdaySourceConfig( + com.google.cloud.datastream.v1.WorkdaySourceConfig value) { + if (workdaySourceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceStreamConfig_ = value; + onChanged(); + } else { + workdaySourceConfigBuilder_.setMessage(value); + } + sourceStreamConfigCase_ = 118; + return this; + } + + /** + * + * + *
    +     * Optional. Workday data source configuration.
    +     * 
    + * + * + * .google.cloud.datastream.v1.WorkdaySourceConfig workday_source_config = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setWorkdaySourceConfig( + com.google.cloud.datastream.v1.WorkdaySourceConfig.Builder builderForValue) { + if (workdaySourceConfigBuilder_ == null) { + sourceStreamConfig_ = builderForValue.build(); + onChanged(); + } else { + workdaySourceConfigBuilder_.setMessage(builderForValue.build()); + } + sourceStreamConfigCase_ = 118; + return this; + } + + /** + * + * + *
    +     * Optional. Workday data source configuration.
    +     * 
    + * + * + * .google.cloud.datastream.v1.WorkdaySourceConfig workday_source_config = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeWorkdaySourceConfig( + com.google.cloud.datastream.v1.WorkdaySourceConfig value) { + if (workdaySourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 118 + && sourceStreamConfig_ + != com.google.cloud.datastream.v1.WorkdaySourceConfig.getDefaultInstance()) { + sourceStreamConfig_ = + com.google.cloud.datastream.v1.WorkdaySourceConfig.newBuilder( + (com.google.cloud.datastream.v1.WorkdaySourceConfig) sourceStreamConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceStreamConfig_ = value; + } + onChanged(); + } else { + if (sourceStreamConfigCase_ == 118) { + workdaySourceConfigBuilder_.mergeFrom(value); + } else { + workdaySourceConfigBuilder_.setMessage(value); + } + } + sourceStreamConfigCase_ = 118; + return this; + } + + /** + * + * + *
    +     * Optional. Workday data source configuration.
    +     * 
    + * + * + * .google.cloud.datastream.v1.WorkdaySourceConfig workday_source_config = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearWorkdaySourceConfig() { + if (workdaySourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 118) { + sourceStreamConfigCase_ = 0; + sourceStreamConfig_ = null; + onChanged(); + } + } else { + if (sourceStreamConfigCase_ == 118) { + sourceStreamConfigCase_ = 0; + sourceStreamConfig_ = null; + } + workdaySourceConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Workday data source configuration.
    +     * 
    + * + * + * .google.cloud.datastream.v1.WorkdaySourceConfig workday_source_config = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.WorkdaySourceConfig.Builder + getWorkdaySourceConfigBuilder() { + return internalGetWorkdaySourceConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Workday data source configuration.
    +     * 
    + * + * + * .google.cloud.datastream.v1.WorkdaySourceConfig workday_source_config = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.WorkdaySourceConfigOrBuilder + getWorkdaySourceConfigOrBuilder() { + if ((sourceStreamConfigCase_ == 118) && (workdaySourceConfigBuilder_ != null)) { + return workdaySourceConfigBuilder_.getMessageOrBuilder(); + } else { + if (sourceStreamConfigCase_ == 118) { + return (com.google.cloud.datastream.v1.WorkdaySourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.WorkdaySourceConfig.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. Workday data source configuration.
    +     * 
    + * + * + * .google.cloud.datastream.v1.WorkdaySourceConfig workday_source_config = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.WorkdaySourceConfig, + com.google.cloud.datastream.v1.WorkdaySourceConfig.Builder, + com.google.cloud.datastream.v1.WorkdaySourceConfigOrBuilder> + internalGetWorkdaySourceConfigFieldBuilder() { + if (workdaySourceConfigBuilder_ == null) { + if (!(sourceStreamConfigCase_ == 118)) { + sourceStreamConfig_ = + com.google.cloud.datastream.v1.WorkdaySourceConfig.getDefaultInstance(); + } + workdaySourceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.WorkdaySourceConfig, + com.google.cloud.datastream.v1.WorkdaySourceConfig.Builder, + com.google.cloud.datastream.v1.WorkdaySourceConfigOrBuilder>( + (com.google.cloud.datastream.v1.WorkdaySourceConfig) sourceStreamConfig_, + getParentForChildren(), + isClean()); + sourceStreamConfig_ = null; + } + sourceStreamConfigCase_ = 118; + onChanged(); + return workdaySourceConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SourceConfig) } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java index f7469917311a..382d51da25f3 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java @@ -282,5 +282,208 @@ public interface SourceConfigOrBuilder */ com.google.cloud.datastream.v1.MongodbSourceConfigOrBuilder getMongodbSourceConfigOrBuilder(); + /** + * + * + *
    +   * Spanner data source configuration.
    +   * 
    + * + * .google.cloud.datastream.v1.SpannerSourceConfig spanner_source_config = 106; + * + * @return Whether the spannerSourceConfig field is set. + */ + boolean hasSpannerSourceConfig(); + + /** + * + * + *
    +   * Spanner data source configuration.
    +   * 
    + * + * .google.cloud.datastream.v1.SpannerSourceConfig spanner_source_config = 106; + * + * @return The spannerSourceConfig. + */ + com.google.cloud.datastream.v1.SpannerSourceConfig getSpannerSourceConfig(); + + /** + * + * + *
    +   * Spanner data source configuration.
    +   * 
    + * + * .google.cloud.datastream.v1.SpannerSourceConfig spanner_source_config = 106; + */ + com.google.cloud.datastream.v1.SpannerSourceConfigOrBuilder getSpannerSourceConfigOrBuilder(); + + /** + * + * + *
    +   * Dataverse data source configuration.
    +   * 
    + * + * .google.cloud.datastream.v1.DataverseSourceConfig dataverse_source_config = 111; + * + * @return Whether the dataverseSourceConfig field is set. + */ + boolean hasDataverseSourceConfig(); + + /** + * + * + *
    +   * Dataverse data source configuration.
    +   * 
    + * + * .google.cloud.datastream.v1.DataverseSourceConfig dataverse_source_config = 111; + * + * @return The dataverseSourceConfig. + */ + com.google.cloud.datastream.v1.DataverseSourceConfig getDataverseSourceConfig(); + + /** + * + * + *
    +   * Dataverse data source configuration.
    +   * 
    + * + * .google.cloud.datastream.v1.DataverseSourceConfig dataverse_source_config = 111; + */ + com.google.cloud.datastream.v1.DataverseSourceConfigOrBuilder getDataverseSourceConfigOrBuilder(); + + /** + * + * + *
    +   * Salesforce Marketing Cloud data source configuration.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig salesforce_marketing_cloud_source_config = 116; + * + * + * @return Whether the salesforceMarketingCloudSourceConfig field is set. + */ + boolean hasSalesforceMarketingCloudSourceConfig(); + + /** + * + * + *
    +   * Salesforce Marketing Cloud data source configuration.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig salesforce_marketing_cloud_source_config = 116; + * + * + * @return The salesforceMarketingCloudSourceConfig. + */ + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig + getSalesforceMarketingCloudSourceConfig(); + + /** + * + * + *
    +   * Salesforce Marketing Cloud data source configuration.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfig salesforce_marketing_cloud_source_config = 116; + * + */ + com.google.cloud.datastream.v1.SalesforceMarketingCloudSourceConfigOrBuilder + getSalesforceMarketingCloudSourceConfigOrBuilder(); + + /** + * + * + *
    +   * ServiceNow data source configuration.
    +   * 
    + * + * .google.cloud.datastream.v1.ServiceNowSourceConfig service_now_source_config = 117; + * + * + * @return Whether the serviceNowSourceConfig field is set. + */ + boolean hasServiceNowSourceConfig(); + + /** + * + * + *
    +   * ServiceNow data source configuration.
    +   * 
    + * + * .google.cloud.datastream.v1.ServiceNowSourceConfig service_now_source_config = 117; + * + * + * @return The serviceNowSourceConfig. + */ + com.google.cloud.datastream.v1.ServiceNowSourceConfig getServiceNowSourceConfig(); + + /** + * + * + *
    +   * ServiceNow data source configuration.
    +   * 
    + * + * .google.cloud.datastream.v1.ServiceNowSourceConfig service_now_source_config = 117; + * + */ + com.google.cloud.datastream.v1.ServiceNowSourceConfigOrBuilder + getServiceNowSourceConfigOrBuilder(); + + /** + * + * + *
    +   * Optional. Workday data source configuration.
    +   * 
    + * + * + * .google.cloud.datastream.v1.WorkdaySourceConfig workday_source_config = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the workdaySourceConfig field is set. + */ + boolean hasWorkdaySourceConfig(); + + /** + * + * + *
    +   * Optional. Workday data source configuration.
    +   * 
    + * + * + * .google.cloud.datastream.v1.WorkdaySourceConfig workday_source_config = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workdaySourceConfig. + */ + com.google.cloud.datastream.v1.WorkdaySourceConfig getWorkdaySourceConfig(); + + /** + * + * + *
    +   * Optional. Workday data source configuration.
    +   * 
    + * + * + * .google.cloud.datastream.v1.WorkdaySourceConfig workday_source_config = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.WorkdaySourceConfigOrBuilder getWorkdaySourceConfigOrBuilder(); + com.google.cloud.datastream.v1.SourceConfig.SourceStreamConfigCase getSourceStreamConfigCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObject.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObject.java new file mode 100644 index 000000000000..7f31ebfd0a0a --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObject.java @@ -0,0 +1,1204 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * Source object.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SourceObject} + */ +@com.google.protobuf.Generated +public final class SourceObject extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SourceObject) + SourceObjectOrBuilder { + 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= */ "", + "SourceObject"); + } + + // Use SourceObject.newBuilder() to construct. + private SourceObject(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SourceObject() { + objectName_ = ""; + properties_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObject_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SourceObject.class, + com.google.cloud.datastream.v1.SourceObject.Builder.class); + } + + public static final int OBJECT_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object objectName_ = ""; + + /** + * + * + *
    +   * Required. The object name.
    +   * 
    + * + * string object_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The objectName. + */ + @java.lang.Override + public java.lang.String getObjectName() { + java.lang.Object ref = objectName_; + 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(); + objectName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The object name.
    +   * 
    + * + * string object_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for objectName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getObjectNameBytes() { + java.lang.Object ref = objectName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + objectName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTIES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List properties_; + + /** + * + * + *
    +   * Optional. Source properties. When unspecified as part of include objects,
    +   * includes everything, when unspecified as part of exclude objects, excludes
    +   * nothing.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getPropertiesList() { + return properties_; + } + + /** + * + * + *
    +   * Optional. Source properties. When unspecified as part of include objects,
    +   * includes everything, when unspecified as part of exclude objects, excludes
    +   * nothing.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getPropertiesOrBuilderList() { + return properties_; + } + + /** + * + * + *
    +   * Optional. Source properties. When unspecified as part of include objects,
    +   * includes everything, when unspecified as part of exclude objects, excludes
    +   * nothing.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getPropertiesCount() { + return properties_.size(); + } + + /** + * + * + *
    +   * Optional. Source properties. When unspecified as part of include objects,
    +   * includes everything, when unspecified as part of exclude objects, excludes
    +   * nothing.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceProperty getProperties(int index) { + return properties_.get(index); + } + + /** + * + * + *
    +   * Optional. Source properties. When unspecified as part of include objects,
    +   * includes everything, when unspecified as part of exclude objects, excludes
    +   * nothing.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourcePropertyOrBuilder getPropertiesOrBuilder(int index) { + return properties_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(objectName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, objectName_); + } + for (int i = 0; i < properties_.size(); i++) { + output.writeMessage(2, properties_.get(i)); + } + 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(objectName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, objectName_); + } + for (int i = 0; i < properties_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, properties_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.datastream.v1.SourceObject)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SourceObject other = + (com.google.cloud.datastream.v1.SourceObject) obj; + + if (!getObjectName().equals(other.getObjectName())) return false; + if (!getPropertiesList().equals(other.getPropertiesList())) 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) + OBJECT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getObjectName().hashCode(); + if (getPropertiesCount() > 0) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getPropertiesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SourceObject parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SourceObject 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.datastream.v1.SourceObject parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SourceObject 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.datastream.v1.SourceObject parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SourceObject parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SourceObject parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SourceObject 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.datastream.v1.SourceObject parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SourceObject 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.datastream.v1.SourceObject parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SourceObject 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.datastream.v1.SourceObject 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; + } + + /** + * + * + *
    +   * Source object.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SourceObject} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SourceObject) + com.google.cloud.datastream.v1.SourceObjectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObject_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SourceObject.class, + com.google.cloud.datastream.v1.SourceObject.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SourceObject.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + objectName_ = ""; + if (propertiesBuilder_ == null) { + properties_ = java.util.Collections.emptyList(); + } else { + properties_ = null; + propertiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObject_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObject getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SourceObject.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObject build() { + com.google.cloud.datastream.v1.SourceObject result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObject buildPartial() { + com.google.cloud.datastream.v1.SourceObject result = + new com.google.cloud.datastream.v1.SourceObject(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.SourceObject result) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + properties_ = java.util.Collections.unmodifiableList(properties_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.properties_ = properties_; + } else { + result.properties_ = propertiesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.datastream.v1.SourceObject result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.objectName_ = objectName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.SourceObject) { + return mergeFrom((com.google.cloud.datastream.v1.SourceObject) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.SourceObject other) { + if (other == com.google.cloud.datastream.v1.SourceObject.getDefaultInstance()) return this; + if (!other.getObjectName().isEmpty()) { + objectName_ = other.objectName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (propertiesBuilder_ == null) { + if (!other.properties_.isEmpty()) { + if (properties_.isEmpty()) { + properties_ = other.properties_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePropertiesIsMutable(); + properties_.addAll(other.properties_); + } + onChanged(); + } + } else { + if (!other.properties_.isEmpty()) { + if (propertiesBuilder_.isEmpty()) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + properties_ = other.properties_; + bitField0_ = (bitField0_ & ~0x00000002); + propertiesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetPropertiesFieldBuilder() + : null; + } else { + propertiesBuilder_.addAllMessages(other.properties_); + } + } + } + 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: + { + objectName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.datastream.v1.SourceProperty m = + input.readMessage( + com.google.cloud.datastream.v1.SourceProperty.parser(), extensionRegistry); + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.add(m); + } else { + propertiesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object objectName_ = ""; + + /** + * + * + *
    +     * Required. The object name.
    +     * 
    + * + * string object_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The objectName. + */ + public java.lang.String getObjectName() { + java.lang.Object ref = objectName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The object name.
    +     * 
    + * + * string object_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for objectName. + */ + public com.google.protobuf.ByteString getObjectNameBytes() { + java.lang.Object ref = objectName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + objectName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The object name.
    +     * 
    + * + * string object_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The objectName to set. + * @return This builder for chaining. + */ + public Builder setObjectName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + objectName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The object name.
    +     * 
    + * + * string object_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearObjectName() { + objectName_ = getDefaultInstance().getObjectName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The object name.
    +     * 
    + * + * string object_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for objectName to set. + * @return This builder for chaining. + */ + public Builder setObjectNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + objectName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List properties_ = + java.util.Collections.emptyList(); + + private void ensurePropertiesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + properties_ = + new java.util.ArrayList(properties_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.SourceProperty, + com.google.cloud.datastream.v1.SourceProperty.Builder, + com.google.cloud.datastream.v1.SourcePropertyOrBuilder> + propertiesBuilder_; + + /** + * + * + *
    +     * Optional. Source properties. When unspecified as part of include objects,
    +     * includes everything, when unspecified as part of exclude objects, excludes
    +     * nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getPropertiesList() { + if (propertiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(properties_); + } else { + return propertiesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Optional. Source properties. When unspecified as part of include objects,
    +     * includes everything, when unspecified as part of exclude objects, excludes
    +     * nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getPropertiesCount() { + if (propertiesBuilder_ == null) { + return properties_.size(); + } else { + return propertiesBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Optional. Source properties. When unspecified as part of include objects,
    +     * includes everything, when unspecified as part of exclude objects, excludes
    +     * nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceProperty getProperties(int index) { + if (propertiesBuilder_ == null) { + return properties_.get(index); + } else { + return propertiesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Optional. Source properties. When unspecified as part of include objects,
    +     * includes everything, when unspecified as part of exclude objects, excludes
    +     * nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProperties(int index, com.google.cloud.datastream.v1.SourceProperty value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertiesIsMutable(); + properties_.set(index, value); + onChanged(); + } else { + propertiesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source properties. When unspecified as part of include objects,
    +     * includes everything, when unspecified as part of exclude objects, excludes
    +     * nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProperties( + int index, com.google.cloud.datastream.v1.SourceProperty.Builder builderForValue) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.set(index, builderForValue.build()); + onChanged(); + } else { + propertiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source properties. When unspecified as part of include objects,
    +     * includes everything, when unspecified as part of exclude objects, excludes
    +     * nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addProperties(com.google.cloud.datastream.v1.SourceProperty value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertiesIsMutable(); + properties_.add(value); + onChanged(); + } else { + propertiesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source properties. When unspecified as part of include objects,
    +     * includes everything, when unspecified as part of exclude objects, excludes
    +     * nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addProperties(int index, com.google.cloud.datastream.v1.SourceProperty value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertiesIsMutable(); + properties_.add(index, value); + onChanged(); + } else { + propertiesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source properties. When unspecified as part of include objects,
    +     * includes everything, when unspecified as part of exclude objects, excludes
    +     * nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addProperties( + com.google.cloud.datastream.v1.SourceProperty.Builder builderForValue) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.add(builderForValue.build()); + onChanged(); + } else { + propertiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source properties. When unspecified as part of include objects,
    +     * includes everything, when unspecified as part of exclude objects, excludes
    +     * nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addProperties( + int index, com.google.cloud.datastream.v1.SourceProperty.Builder builderForValue) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.add(index, builderForValue.build()); + onChanged(); + } else { + propertiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source properties. When unspecified as part of include objects,
    +     * includes everything, when unspecified as part of exclude objects, excludes
    +     * nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllProperties( + java.lang.Iterable values) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, properties_); + onChanged(); + } else { + propertiesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source properties. When unspecified as part of include objects,
    +     * includes everything, when unspecified as part of exclude objects, excludes
    +     * nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearProperties() { + if (propertiesBuilder_ == null) { + properties_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + propertiesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source properties. When unspecified as part of include objects,
    +     * includes everything, when unspecified as part of exclude objects, excludes
    +     * nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeProperties(int index) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.remove(index); + onChanged(); + } else { + propertiesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source properties. When unspecified as part of include objects,
    +     * includes everything, when unspecified as part of exclude objects, excludes
    +     * nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceProperty.Builder getPropertiesBuilder(int index) { + return internalGetPropertiesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Optional. Source properties. When unspecified as part of include objects,
    +     * includes everything, when unspecified as part of exclude objects, excludes
    +     * nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourcePropertyOrBuilder getPropertiesOrBuilder( + int index) { + if (propertiesBuilder_ == null) { + return properties_.get(index); + } else { + return propertiesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Optional. Source properties. When unspecified as part of include objects,
    +     * includes everything, when unspecified as part of exclude objects, excludes
    +     * nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getPropertiesOrBuilderList() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(properties_); + } + } + + /** + * + * + *
    +     * Optional. Source properties. When unspecified as part of include objects,
    +     * includes everything, when unspecified as part of exclude objects, excludes
    +     * nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceProperty.Builder addPropertiesBuilder() { + return internalGetPropertiesFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.SourceProperty.getDefaultInstance()); + } + + /** + * + * + *
    +     * Optional. Source properties. When unspecified as part of include objects,
    +     * includes everything, when unspecified as part of exclude objects, excludes
    +     * nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceProperty.Builder addPropertiesBuilder(int index) { + return internalGetPropertiesFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.SourceProperty.getDefaultInstance()); + } + + /** + * + * + *
    +     * Optional. Source properties. When unspecified as part of include objects,
    +     * includes everything, when unspecified as part of exclude objects, excludes
    +     * nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getPropertiesBuilderList() { + return internalGetPropertiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.SourceProperty, + com.google.cloud.datastream.v1.SourceProperty.Builder, + com.google.cloud.datastream.v1.SourcePropertyOrBuilder> + internalGetPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.SourceProperty, + com.google.cloud.datastream.v1.SourceProperty.Builder, + com.google.cloud.datastream.v1.SourcePropertyOrBuilder>( + properties_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SourceObject) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SourceObject) + private static final com.google.cloud.datastream.v1.SourceObject DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SourceObject(); + } + + public static com.google.cloud.datastream.v1.SourceObject getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceObject 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.datastream.v1.SourceObject getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java index dc6b55904119..f74577cad61b 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java @@ -4970,6 +4970,857 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface SpannerObjectIdentifierOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. The schema name.
    +     * 
    + * + * string schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The schema. + */ + java.lang.String getSchema(); + + /** + * + * + *
    +     * Optional. The schema name.
    +     * 
    + * + * string schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for schema. + */ + com.google.protobuf.ByteString getSchemaBytes(); + + /** + * + * + *
    +     * Required. The table name.
    +     * 
    + * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. + */ + java.lang.String getTable(); + + /** + * + * + *
    +     * Required. The table name.
    +     * 
    + * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. + */ + com.google.protobuf.ByteString getTableBytes(); + } + + /** + * + * + *
    +   * Spanner data source object identifier.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier} + */ + public static final class SpannerObjectIdentifier extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier) + SpannerObjectIdentifierOrBuilder { + 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= */ "", + "SpannerObjectIdentifier"); + } + + // Use SpannerObjectIdentifier.newBuilder() to construct. + private SpannerObjectIdentifier(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SpannerObjectIdentifier() { + schema_ = ""; + table_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_SpannerObjectIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_SpannerObjectIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier.class, + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier.Builder + .class); + } + + public static final int SCHEMA_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object schema_ = ""; + + /** + * + * + *
    +     * Optional. The schema name.
    +     * 
    + * + * string schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The schema. + */ + @java.lang.Override + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + 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(); + schema_ = s; + return s; + } + } + + /** + * + * + *
    +     * Optional. The schema name.
    +     * 
    + * + * string schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for schema. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TABLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object table_ = ""; + + /** + * + * + *
    +     * Required. The table name.
    +     * 
    + * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. + */ + @java.lang.Override + public java.lang.String getTable() { + java.lang.Object ref = table_; + 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(); + table_ = s; + return s; + } + } + + /** + * + * + *
    +     * Required. The table name.
    +     * 
    + * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(schema_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, schema_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(table_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, table_); + } + 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(schema_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, schema_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(table_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, table_); + } + 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.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier other = + (com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier) obj; + + if (!getSchema().equals(other.getSchema())) return false; + if (!getTable().equals(other.getTable())) 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) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + hash = (37 * hash) + TABLE_FIELD_NUMBER; + hash = (53 * hash) + getTable().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + 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.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + 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.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + 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.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + 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.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + 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.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier 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; + } + + /** + * + * + *
    +     * Spanner data source object identifier.
    +     * 
    + * + * Protobuf type {@code + * google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier) + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_SpannerObjectIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_SpannerObjectIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier.class, + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + .Builder.class); + } + + // Construct using + // com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + schema_ = ""; + table_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_SpannerObjectIdentifier_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier build() { + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + buildPartial() { + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier result = + new com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.schema_ = schema_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.table_ = table_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier) { + return mergeFrom( + (com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier other) { + if (other + == com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + .getDefaultInstance()) return this; + if (!other.getSchema().isEmpty()) { + schema_ = other.schema_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTable().isEmpty()) { + table_ = other.table_; + bitField0_ |= 0x00000002; + 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: + { + schema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object schema_ = ""; + + /** + * + * + *
    +       * Optional. The schema name.
    +       * 
    + * + * string schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The schema. + */ + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Optional. The schema name.
    +       * 
    + * + * string schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for schema. + */ + public com.google.protobuf.ByteString getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Optional. The schema name.
    +       * 
    + * + * string schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The schema to set. + * @return This builder for chaining. + */ + public Builder setSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + schema_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The schema name.
    +       * 
    + * + * string schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSchema() { + schema_ = getDefaultInstance().getSchema(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The schema name.
    +       * 
    + * + * string schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for schema to set. + * @return This builder for chaining. + */ + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schema_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object table_ = ""; + + /** + * + * + *
    +       * Required. The table name.
    +       * 
    + * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. + */ + public java.lang.String getTable() { + java.lang.Object ref = table_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + table_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Required. The table name.
    +       * 
    + * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. + */ + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Required. The table name.
    +       * 
    + * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The table to set. + * @return This builder for chaining. + */ + public Builder setTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + table_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Required. The table name.
    +       * 
    + * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTable() { + table_ = getDefaultInstance().getTable(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Required. The table name.
    +       * 
    + * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for table to set. + * @return This builder for chaining. + */ + public Builder setTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + table_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier) + private static final com.google.cloud.datastream.v1.SourceObjectIdentifier + .SpannerObjectIdentifier + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier(); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpannerObjectIdentifier 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.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int sourceIdentifierCase_ = 0; @SuppressWarnings("serial") @@ -4985,6 +5836,7 @@ public enum SourceIdentifierCase SQL_SERVER_IDENTIFIER(4), SALESFORCE_IDENTIFIER(5), MONGODB_IDENTIFIER(6), + SPANNER_IDENTIFIER(7), SOURCEIDENTIFIER_NOT_SET(0); private final int value; @@ -5016,6 +5868,8 @@ public static SourceIdentifierCase forNumber(int value) { return SALESFORCE_IDENTIFIER; case 6: return MONGODB_IDENTIFIER; + case 7: + return SPANNER_IDENTIFIER; case 0: return SOURCEIDENTIFIER_NOT_SET; default: @@ -5428,6 +6282,72 @@ public boolean hasMongodbIdentifier() { .getDefaultInstance(); } + public static final int SPANNER_IDENTIFIER_FIELD_NUMBER = 7; + + /** + * + * + *
    +   * Spanner data source object identifier.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier spanner_identifier = 7; + * + * + * @return Whether the spannerIdentifier field is set. + */ + @java.lang.Override + public boolean hasSpannerIdentifier() { + return sourceIdentifierCase_ == 7; + } + + /** + * + * + *
    +   * Spanner data source object identifier.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier spanner_identifier = 7; + * + * + * @return The spannerIdentifier. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + getSpannerIdentifier() { + if (sourceIdentifierCase_ == 7) { + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier) + sourceIdentifier_; + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + .getDefaultInstance(); + } + + /** + * + * + *
    +   * Spanner data source object identifier.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier spanner_identifier = 7; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifierOrBuilder + getSpannerIdentifierOrBuilder() { + if (sourceIdentifierCase_ == 7) { + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier) + sourceIdentifier_; + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + .getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -5478,6 +6398,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.datastream.v1.SourceObjectIdentifier.MongodbObjectIdentifier) sourceIdentifier_); } + if (sourceIdentifierCase_ == 7) { + output.writeMessage( + 7, + (com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier) + sourceIdentifier_); + } getUnknownFields().writeTo(output); } @@ -5529,6 +6455,13 @@ public int getSerializedSize() { (com.google.cloud.datastream.v1.SourceObjectIdentifier.MongodbObjectIdentifier) sourceIdentifier_); } + if (sourceIdentifierCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier) + sourceIdentifier_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5565,6 +6498,9 @@ public boolean equals(final java.lang.Object obj) { case 6: if (!getMongodbIdentifier().equals(other.getMongodbIdentifier())) return false; break; + case 7: + if (!getSpannerIdentifier().equals(other.getSpannerIdentifier())) return false; + break; case 0: default: } @@ -5604,6 +6540,10 @@ public int hashCode() { hash = (37 * hash) + MONGODB_IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getMongodbIdentifier().hashCode(); break; + case 7: + hash = (37 * hash) + SPANNER_IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getSpannerIdentifier().hashCode(); + break; case 0: default: } @@ -5766,6 +6706,9 @@ public Builder clear() { if (mongodbIdentifierBuilder_ != null) { mongodbIdentifierBuilder_.clear(); } + if (spannerIdentifierBuilder_ != null) { + spannerIdentifierBuilder_.clear(); + } sourceIdentifierCase_ = 0; sourceIdentifier_ = null; return this; @@ -5828,6 +6771,9 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.SourceObjectIdent if (sourceIdentifierCase_ == 6 && mongodbIdentifierBuilder_ != null) { result.sourceIdentifier_ = mongodbIdentifierBuilder_.build(); } + if (sourceIdentifierCase_ == 7 && spannerIdentifierBuilder_ != null) { + result.sourceIdentifier_ = spannerIdentifierBuilder_.build(); + } } @java.lang.Override @@ -5874,6 +6820,11 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.SourceObjectIdentifier o mergeMongodbIdentifier(other.getMongodbIdentifier()); break; } + case SPANNER_IDENTIFIER: + { + mergeSpannerIdentifier(other.getSpannerIdentifier()); + break; + } case SOURCEIDENTIFIER_NOT_SET: { break; @@ -5947,6 +6898,13 @@ public Builder mergeFrom( sourceIdentifierCase_ = 6; break; } // case 50 + case 58: + { + input.readMessage( + internalGetSpannerIdentifierFieldBuilder().getBuilder(), extensionRegistry); + sourceIdentifierCase_ = 7; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7529,6 +8487,263 @@ public Builder clearMongodbIdentifier() { return mongodbIdentifierBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier.Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifierOrBuilder> + spannerIdentifierBuilder_; + + /** + * + * + *
    +     * Spanner data source object identifier.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier spanner_identifier = 7; + * + * + * @return Whether the spannerIdentifier field is set. + */ + @java.lang.Override + public boolean hasSpannerIdentifier() { + return sourceIdentifierCase_ == 7; + } + + /** + * + * + *
    +     * Spanner data source object identifier.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier spanner_identifier = 7; + * + * + * @return The spannerIdentifier. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + getSpannerIdentifier() { + if (spannerIdentifierBuilder_ == null) { + if (sourceIdentifierCase_ == 7) { + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier) + sourceIdentifier_; + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + .getDefaultInstance(); + } else { + if (sourceIdentifierCase_ == 7) { + return spannerIdentifierBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Spanner data source object identifier.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier spanner_identifier = 7; + * + */ + public Builder setSpannerIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier value) { + if (spannerIdentifierBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceIdentifier_ = value; + onChanged(); + } else { + spannerIdentifierBuilder_.setMessage(value); + } + sourceIdentifierCase_ = 7; + return this; + } + + /** + * + * + *
    +     * Spanner data source object identifier.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier spanner_identifier = 7; + * + */ + public Builder setSpannerIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier.Builder + builderForValue) { + if (spannerIdentifierBuilder_ == null) { + sourceIdentifier_ = builderForValue.build(); + onChanged(); + } else { + spannerIdentifierBuilder_.setMessage(builderForValue.build()); + } + sourceIdentifierCase_ = 7; + return this; + } + + /** + * + * + *
    +     * Spanner data source object identifier.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier spanner_identifier = 7; + * + */ + public Builder mergeSpannerIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier value) { + if (spannerIdentifierBuilder_ == null) { + if (sourceIdentifierCase_ == 7 + && sourceIdentifier_ + != com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + .getDefaultInstance()) { + sourceIdentifier_ = + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + .newBuilder( + (com.google.cloud.datastream.v1.SourceObjectIdentifier + .SpannerObjectIdentifier) + sourceIdentifier_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceIdentifier_ = value; + } + onChanged(); + } else { + if (sourceIdentifierCase_ == 7) { + spannerIdentifierBuilder_.mergeFrom(value); + } else { + spannerIdentifierBuilder_.setMessage(value); + } + } + sourceIdentifierCase_ = 7; + return this; + } + + /** + * + * + *
    +     * Spanner data source object identifier.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier spanner_identifier = 7; + * + */ + public Builder clearSpannerIdentifier() { + if (spannerIdentifierBuilder_ == null) { + if (sourceIdentifierCase_ == 7) { + sourceIdentifierCase_ = 0; + sourceIdentifier_ = null; + onChanged(); + } + } else { + if (sourceIdentifierCase_ == 7) { + sourceIdentifierCase_ = 0; + sourceIdentifier_ = null; + } + spannerIdentifierBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Spanner data source object identifier.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier spanner_identifier = 7; + * + */ + public com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier.Builder + getSpannerIdentifierBuilder() { + return internalGetSpannerIdentifierFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Spanner data source object identifier.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier spanner_identifier = 7; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifierOrBuilder + getSpannerIdentifierOrBuilder() { + if ((sourceIdentifierCase_ == 7) && (spannerIdentifierBuilder_ != null)) { + return spannerIdentifierBuilder_.getMessageOrBuilder(); + } else { + if (sourceIdentifierCase_ == 7) { + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier) + sourceIdentifier_; + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Spanner data source object identifier.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier spanner_identifier = 7; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier.Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifierOrBuilder> + internalGetSpannerIdentifierFieldBuilder() { + if (spannerIdentifierBuilder_ == null) { + if (!(sourceIdentifierCase_ == 7)) { + sourceIdentifier_ = + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + .getDefaultInstance(); + } + spannerIdentifierBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + .Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifier + .SpannerObjectIdentifierOrBuilder>( + (com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier) + sourceIdentifier_, + getParentForChildren(), + isClean()); + sourceIdentifier_ = null; + } + sourceIdentifierCase_ = 7; + onChanged(); + return spannerIdentifierBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SourceObjectIdentifier) } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java index 1ad069837953..98f6435c9000 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java @@ -295,6 +295,51 @@ public interface SourceObjectIdentifierOrBuilder com.google.cloud.datastream.v1.SourceObjectIdentifier.MongodbObjectIdentifierOrBuilder getMongodbIdentifierOrBuilder(); + /** + * + * + *
    +   * Spanner data source object identifier.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier spanner_identifier = 7; + * + * + * @return Whether the spannerIdentifier field is set. + */ + boolean hasSpannerIdentifier(); + + /** + * + * + *
    +   * Spanner data source object identifier.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier spanner_identifier = 7; + * + * + * @return The spannerIdentifier. + */ + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier + getSpannerIdentifier(); + + /** + * + * + *
    +   * Spanner data source object identifier.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifier spanner_identifier = 7; + * + */ + com.google.cloud.datastream.v1.SourceObjectIdentifier.SpannerObjectIdentifierOrBuilder + getSpannerIdentifierOrBuilder(); + com.google.cloud.datastream.v1.SourceObjectIdentifier.SourceIdentifierCase getSourceIdentifierCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectOrBuilder.java new file mode 100644 index 000000000000..a21baa66f245 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface SourceObjectOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SourceObject) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The object name.
    +   * 
    + * + * string object_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The objectName. + */ + java.lang.String getObjectName(); + + /** + * + * + *
    +   * Required. The object name.
    +   * 
    + * + * string object_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for objectName. + */ + com.google.protobuf.ByteString getObjectNameBytes(); + + /** + * + * + *
    +   * Optional. Source properties. When unspecified as part of include objects,
    +   * includes everything, when unspecified as part of exclude objects, excludes
    +   * nothing.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getPropertiesList(); + + /** + * + * + *
    +   * Optional. Source properties. When unspecified as part of include objects,
    +   * includes everything, when unspecified as part of exclude objects, excludes
    +   * nothing.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SourceProperty getProperties(int index); + + /** + * + * + *
    +   * Optional. Source properties. When unspecified as part of include objects,
    +   * includes everything, when unspecified as part of exclude objects, excludes
    +   * nothing.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getPropertiesCount(); + + /** + * + * + *
    +   * Optional. Source properties. When unspecified as part of include objects,
    +   * includes everything, when unspecified as part of exclude objects, excludes
    +   * nothing.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getPropertiesOrBuilderList(); + + /** + * + * + *
    +   * Optional. Source properties. When unspecified as part of include objects,
    +   * includes everything, when unspecified as part of exclude objects, excludes
    +   * nothing.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SourcePropertyOrBuilder getPropertiesOrBuilder(int index); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceProperty.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceProperty.java new file mode 100644 index 000000000000..94f0fa2c6b8f --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceProperty.java @@ -0,0 +1,1324 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * Source property.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SourceProperty} + */ +@com.google.protobuf.Generated +public final class SourceProperty extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SourceProperty) + SourcePropertyOrBuilder { + 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= */ "", + "SourceProperty"); + } + + // Use SourceProperty.newBuilder() to construct. + private SourceProperty(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SourceProperty() { + propertyName_ = ""; + properties_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceProperty_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceProperty_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SourceProperty.class, + com.google.cloud.datastream.v1.SourceProperty.Builder.class); + } + + public static final int PROPERTY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object propertyName_ = ""; + + /** + * + * + *
    +   * Required. The property name.
    +   * 
    + * + * string property_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The propertyName. + */ + @java.lang.Override + public java.lang.String getPropertyName() { + java.lang.Object ref = propertyName_; + 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(); + propertyName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The property name.
    +   * 
    + * + * string property_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for propertyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPropertyNameBytes() { + java.lang.Object ref = propertyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + propertyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTIES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List properties_; + + /** + * + * + *
    +   * Optional. Source properties. When specified, it means that the current
    +   * property contains nested properties of its own. When unspecified as part of
    +   * include objects, includes everything, when unspecified as part of exclude
    +   * objects, excludes nothing.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getPropertiesList() { + return properties_; + } + + /** + * + * + *
    +   * Optional. Source properties. When specified, it means that the current
    +   * property contains nested properties of its own. When unspecified as part of
    +   * include objects, includes everything, when unspecified as part of exclude
    +   * objects, excludes nothing.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getPropertiesOrBuilderList() { + return properties_; + } + + /** + * + * + *
    +   * Optional. Source properties. When specified, it means that the current
    +   * property contains nested properties of its own. When unspecified as part of
    +   * include objects, includes everything, when unspecified as part of exclude
    +   * objects, excludes nothing.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getPropertiesCount() { + return properties_.size(); + } + + /** + * + * + *
    +   * Optional. Source properties. When specified, it means that the current
    +   * property contains nested properties of its own. When unspecified as part of
    +   * include objects, includes everything, when unspecified as part of exclude
    +   * objects, excludes nothing.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceProperty getProperties(int index) { + return properties_.get(index); + } + + /** + * + * + *
    +   * Optional. Source properties. When specified, it means that the current
    +   * property contains nested properties of its own. When unspecified as part of
    +   * include objects, includes everything, when unspecified as part of exclude
    +   * objects, excludes nothing.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourcePropertyOrBuilder getPropertiesOrBuilder(int index) { + return properties_.get(index); + } + + public static final int PRIMARY_KEY_FIELD_NUMBER = 4; + private boolean primaryKey_ = false; + + /** + * + * + *
    +   * Optional. Whether or not the property is a primary key.
    +   * 
    + * + * bool primary_key = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The primaryKey. + */ + @java.lang.Override + public boolean getPrimaryKey() { + return primaryKey_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(propertyName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, propertyName_); + } + for (int i = 0; i < properties_.size(); i++) { + output.writeMessage(2, properties_.get(i)); + } + if (primaryKey_ != false) { + output.writeBool(4, primaryKey_); + } + 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(propertyName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, propertyName_); + } + for (int i = 0; i < properties_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, properties_.get(i)); + } + if (primaryKey_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, primaryKey_); + } + 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.datastream.v1.SourceProperty)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SourceProperty other = + (com.google.cloud.datastream.v1.SourceProperty) obj; + + if (!getPropertyName().equals(other.getPropertyName())) return false; + if (!getPropertiesList().equals(other.getPropertiesList())) return false; + if (getPrimaryKey() != other.getPrimaryKey()) 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) + PROPERTY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPropertyName().hashCode(); + if (getPropertiesCount() > 0) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getPropertiesList().hashCode(); + } + hash = (37 * hash) + PRIMARY_KEY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrimaryKey()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SourceProperty parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SourceProperty 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.datastream.v1.SourceProperty parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SourceProperty 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.datastream.v1.SourceProperty parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SourceProperty parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SourceProperty parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SourceProperty 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.datastream.v1.SourceProperty parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SourceProperty 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.datastream.v1.SourceProperty parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SourceProperty 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.datastream.v1.SourceProperty 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; + } + + /** + * + * + *
    +   * Source property.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SourceProperty} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SourceProperty) + com.google.cloud.datastream.v1.SourcePropertyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceProperty_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceProperty_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SourceProperty.class, + com.google.cloud.datastream.v1.SourceProperty.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SourceProperty.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + propertyName_ = ""; + if (propertiesBuilder_ == null) { + properties_ = java.util.Collections.emptyList(); + } else { + properties_ = null; + propertiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + primaryKey_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceProperty_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceProperty getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SourceProperty.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceProperty build() { + com.google.cloud.datastream.v1.SourceProperty result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceProperty buildPartial() { + com.google.cloud.datastream.v1.SourceProperty result = + new com.google.cloud.datastream.v1.SourceProperty(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.SourceProperty result) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + properties_ = java.util.Collections.unmodifiableList(properties_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.properties_ = properties_; + } else { + result.properties_ = propertiesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.datastream.v1.SourceProperty result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.propertyName_ = propertyName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.primaryKey_ = primaryKey_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.SourceProperty) { + return mergeFrom((com.google.cloud.datastream.v1.SourceProperty) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.SourceProperty other) { + if (other == com.google.cloud.datastream.v1.SourceProperty.getDefaultInstance()) return this; + if (!other.getPropertyName().isEmpty()) { + propertyName_ = other.propertyName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (propertiesBuilder_ == null) { + if (!other.properties_.isEmpty()) { + if (properties_.isEmpty()) { + properties_ = other.properties_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePropertiesIsMutable(); + properties_.addAll(other.properties_); + } + onChanged(); + } + } else { + if (!other.properties_.isEmpty()) { + if (propertiesBuilder_.isEmpty()) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + properties_ = other.properties_; + bitField0_ = (bitField0_ & ~0x00000002); + propertiesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetPropertiesFieldBuilder() + : null; + } else { + propertiesBuilder_.addAllMessages(other.properties_); + } + } + } + if (other.getPrimaryKey() != false) { + setPrimaryKey(other.getPrimaryKey()); + } + 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: + { + propertyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.datastream.v1.SourceProperty m = + input.readMessage( + com.google.cloud.datastream.v1.SourceProperty.parser(), extensionRegistry); + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.add(m); + } else { + propertiesBuilder_.addMessage(m); + } + break; + } // case 18 + case 32: + { + primaryKey_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 + 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 propertyName_ = ""; + + /** + * + * + *
    +     * Required. The property name.
    +     * 
    + * + * string property_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The propertyName. + */ + public java.lang.String getPropertyName() { + java.lang.Object ref = propertyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + propertyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The property name.
    +     * 
    + * + * string property_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for propertyName. + */ + public com.google.protobuf.ByteString getPropertyNameBytes() { + java.lang.Object ref = propertyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + propertyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The property name.
    +     * 
    + * + * string property_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The propertyName to set. + * @return This builder for chaining. + */ + public Builder setPropertyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + propertyName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The property name.
    +     * 
    + * + * string property_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPropertyName() { + propertyName_ = getDefaultInstance().getPropertyName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The property name.
    +     * 
    + * + * string property_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for propertyName to set. + * @return This builder for chaining. + */ + public Builder setPropertyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + propertyName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List properties_ = + java.util.Collections.emptyList(); + + private void ensurePropertiesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + properties_ = + new java.util.ArrayList(properties_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.SourceProperty, + com.google.cloud.datastream.v1.SourceProperty.Builder, + com.google.cloud.datastream.v1.SourcePropertyOrBuilder> + propertiesBuilder_; + + /** + * + * + *
    +     * Optional. Source properties. When specified, it means that the current
    +     * property contains nested properties of its own. When unspecified as part of
    +     * include objects, includes everything, when unspecified as part of exclude
    +     * objects, excludes nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getPropertiesList() { + if (propertiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(properties_); + } else { + return propertiesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Optional. Source properties. When specified, it means that the current
    +     * property contains nested properties of its own. When unspecified as part of
    +     * include objects, includes everything, when unspecified as part of exclude
    +     * objects, excludes nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getPropertiesCount() { + if (propertiesBuilder_ == null) { + return properties_.size(); + } else { + return propertiesBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Optional. Source properties. When specified, it means that the current
    +     * property contains nested properties of its own. When unspecified as part of
    +     * include objects, includes everything, when unspecified as part of exclude
    +     * objects, excludes nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceProperty getProperties(int index) { + if (propertiesBuilder_ == null) { + return properties_.get(index); + } else { + return propertiesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Optional. Source properties. When specified, it means that the current
    +     * property contains nested properties of its own. When unspecified as part of
    +     * include objects, includes everything, when unspecified as part of exclude
    +     * objects, excludes nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProperties(int index, com.google.cloud.datastream.v1.SourceProperty value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertiesIsMutable(); + properties_.set(index, value); + onChanged(); + } else { + propertiesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source properties. When specified, it means that the current
    +     * property contains nested properties of its own. When unspecified as part of
    +     * include objects, includes everything, when unspecified as part of exclude
    +     * objects, excludes nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProperties( + int index, com.google.cloud.datastream.v1.SourceProperty.Builder builderForValue) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.set(index, builderForValue.build()); + onChanged(); + } else { + propertiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source properties. When specified, it means that the current
    +     * property contains nested properties of its own. When unspecified as part of
    +     * include objects, includes everything, when unspecified as part of exclude
    +     * objects, excludes nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addProperties(com.google.cloud.datastream.v1.SourceProperty value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertiesIsMutable(); + properties_.add(value); + onChanged(); + } else { + propertiesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source properties. When specified, it means that the current
    +     * property contains nested properties of its own. When unspecified as part of
    +     * include objects, includes everything, when unspecified as part of exclude
    +     * objects, excludes nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addProperties(int index, com.google.cloud.datastream.v1.SourceProperty value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertiesIsMutable(); + properties_.add(index, value); + onChanged(); + } else { + propertiesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source properties. When specified, it means that the current
    +     * property contains nested properties of its own. When unspecified as part of
    +     * include objects, includes everything, when unspecified as part of exclude
    +     * objects, excludes nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addProperties( + com.google.cloud.datastream.v1.SourceProperty.Builder builderForValue) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.add(builderForValue.build()); + onChanged(); + } else { + propertiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source properties. When specified, it means that the current
    +     * property contains nested properties of its own. When unspecified as part of
    +     * include objects, includes everything, when unspecified as part of exclude
    +     * objects, excludes nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addProperties( + int index, com.google.cloud.datastream.v1.SourceProperty.Builder builderForValue) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.add(index, builderForValue.build()); + onChanged(); + } else { + propertiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source properties. When specified, it means that the current
    +     * property contains nested properties of its own. When unspecified as part of
    +     * include objects, includes everything, when unspecified as part of exclude
    +     * objects, excludes nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllProperties( + java.lang.Iterable values) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, properties_); + onChanged(); + } else { + propertiesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source properties. When specified, it means that the current
    +     * property contains nested properties of its own. When unspecified as part of
    +     * include objects, includes everything, when unspecified as part of exclude
    +     * objects, excludes nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearProperties() { + if (propertiesBuilder_ == null) { + properties_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + propertiesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source properties. When specified, it means that the current
    +     * property contains nested properties of its own. When unspecified as part of
    +     * include objects, includes everything, when unspecified as part of exclude
    +     * objects, excludes nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeProperties(int index) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.remove(index); + onChanged(); + } else { + propertiesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Optional. Source properties. When specified, it means that the current
    +     * property contains nested properties of its own. When unspecified as part of
    +     * include objects, includes everything, when unspecified as part of exclude
    +     * objects, excludes nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceProperty.Builder getPropertiesBuilder(int index) { + return internalGetPropertiesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Optional. Source properties. When specified, it means that the current
    +     * property contains nested properties of its own. When unspecified as part of
    +     * include objects, includes everything, when unspecified as part of exclude
    +     * objects, excludes nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourcePropertyOrBuilder getPropertiesOrBuilder( + int index) { + if (propertiesBuilder_ == null) { + return properties_.get(index); + } else { + return propertiesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Optional. Source properties. When specified, it means that the current
    +     * property contains nested properties of its own. When unspecified as part of
    +     * include objects, includes everything, when unspecified as part of exclude
    +     * objects, excludes nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getPropertiesOrBuilderList() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(properties_); + } + } + + /** + * + * + *
    +     * Optional. Source properties. When specified, it means that the current
    +     * property contains nested properties of its own. When unspecified as part of
    +     * include objects, includes everything, when unspecified as part of exclude
    +     * objects, excludes nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceProperty.Builder addPropertiesBuilder() { + return internalGetPropertiesFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.SourceProperty.getDefaultInstance()); + } + + /** + * + * + *
    +     * Optional. Source properties. When specified, it means that the current
    +     * property contains nested properties of its own. When unspecified as part of
    +     * include objects, includes everything, when unspecified as part of exclude
    +     * objects, excludes nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceProperty.Builder addPropertiesBuilder(int index) { + return internalGetPropertiesFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.SourceProperty.getDefaultInstance()); + } + + /** + * + * + *
    +     * Optional. Source properties. When specified, it means that the current
    +     * property contains nested properties of its own. When unspecified as part of
    +     * include objects, includes everything, when unspecified as part of exclude
    +     * objects, excludes nothing.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getPropertiesBuilderList() { + return internalGetPropertiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.SourceProperty, + com.google.cloud.datastream.v1.SourceProperty.Builder, + com.google.cloud.datastream.v1.SourcePropertyOrBuilder> + internalGetPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.SourceProperty, + com.google.cloud.datastream.v1.SourceProperty.Builder, + com.google.cloud.datastream.v1.SourcePropertyOrBuilder>( + properties_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + private boolean primaryKey_; + + /** + * + * + *
    +     * Optional. Whether or not the property is a primary key.
    +     * 
    + * + * bool primary_key = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The primaryKey. + */ + @java.lang.Override + public boolean getPrimaryKey() { + return primaryKey_; + } + + /** + * + * + *
    +     * Optional. Whether or not the property is a primary key.
    +     * 
    + * + * bool primary_key = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The primaryKey to set. + * @return This builder for chaining. + */ + public Builder setPrimaryKey(boolean value) { + + primaryKey_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Whether or not the property is a primary key.
    +     * 
    + * + * bool primary_key = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPrimaryKey() { + bitField0_ = (bitField0_ & ~0x00000004); + primaryKey_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SourceProperty) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SourceProperty) + private static final com.google.cloud.datastream.v1.SourceProperty DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SourceProperty(); + } + + public static com.google.cloud.datastream.v1.SourceProperty getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceProperty 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.datastream.v1.SourceProperty getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourcePropertyOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourcePropertyOrBuilder.java new file mode 100644 index 000000000000..a3aa9062f2d6 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourcePropertyOrBuilder.java @@ -0,0 +1,148 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface SourcePropertyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SourceProperty) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The property name.
    +   * 
    + * + * string property_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The propertyName. + */ + java.lang.String getPropertyName(); + + /** + * + * + *
    +   * Required. The property name.
    +   * 
    + * + * string property_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for propertyName. + */ + com.google.protobuf.ByteString getPropertyNameBytes(); + + /** + * + * + *
    +   * Optional. Source properties. When specified, it means that the current
    +   * property contains nested properties of its own. When unspecified as part of
    +   * include objects, includes everything, when unspecified as part of exclude
    +   * objects, excludes nothing.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getPropertiesList(); + + /** + * + * + *
    +   * Optional. Source properties. When specified, it means that the current
    +   * property contains nested properties of its own. When unspecified as part of
    +   * include objects, includes everything, when unspecified as part of exclude
    +   * objects, excludes nothing.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SourceProperty getProperties(int index); + + /** + * + * + *
    +   * Optional. Source properties. When specified, it means that the current
    +   * property contains nested properties of its own. When unspecified as part of
    +   * include objects, includes everything, when unspecified as part of exclude
    +   * objects, excludes nothing.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getPropertiesCount(); + + /** + * + * + *
    +   * Optional. Source properties. When specified, it means that the current
    +   * property contains nested properties of its own. When unspecified as part of
    +   * include objects, includes everything, when unspecified as part of exclude
    +   * objects, excludes nothing.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getPropertiesOrBuilderList(); + + /** + * + * + *
    +   * Optional. Source properties. When specified, it means that the current
    +   * property contains nested properties of its own. When unspecified as part of
    +   * include objects, includes everything, when unspecified as part of exclude
    +   * objects, excludes nothing.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SourcePropertyOrBuilder getPropertiesOrBuilder(int index); + + /** + * + * + *
    +   * Optional. Whether or not the property is a primary key.
    +   * 
    + * + * bool primary_key = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The primaryKey. + */ + boolean getPrimaryKey(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerChangeStreamPosition.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerChangeStreamPosition.java new file mode 100644 index 000000000000..71e6d59a7af8 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerChangeStreamPosition.java @@ -0,0 +1,717 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * Represents a position in a Spanner change stream from which to start
    + * replicating.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SpannerChangeStreamPosition} + */ +@com.google.protobuf.Generated +public final class SpannerChangeStreamPosition extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SpannerChangeStreamPosition) + SpannerChangeStreamPositionOrBuilder { + 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= */ "", + "SpannerChangeStreamPosition"); + } + + // Use SpannerChangeStreamPosition.newBuilder() to construct. + private SpannerChangeStreamPosition(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SpannerChangeStreamPosition() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerChangeStreamPosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerChangeStreamPosition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SpannerChangeStreamPosition.class, + com.google.cloud.datastream.v1.SpannerChangeStreamPosition.Builder.class); + } + + private int bitField0_; + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
    +   * Required. The timestamp to start change stream queries from.
    +   * The timestamp must be a positive value.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. The timestamp to start change stream queries from.
    +   * The timestamp must be a positive value.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
    +   * Required. The timestamp to start change stream queries from.
    +   * The timestamp must be a positive value.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStartTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + } + 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.datastream.v1.SpannerChangeStreamPosition)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SpannerChangeStreamPosition other = + (com.google.cloud.datastream.v1.SpannerChangeStreamPosition) obj; + + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SpannerChangeStreamPosition parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SpannerChangeStreamPosition 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.datastream.v1.SpannerChangeStreamPosition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SpannerChangeStreamPosition 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.datastream.v1.SpannerChangeStreamPosition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SpannerChangeStreamPosition parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SpannerChangeStreamPosition parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SpannerChangeStreamPosition 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.datastream.v1.SpannerChangeStreamPosition parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SpannerChangeStreamPosition 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.datastream.v1.SpannerChangeStreamPosition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SpannerChangeStreamPosition 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.datastream.v1.SpannerChangeStreamPosition prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Represents a position in a Spanner change stream from which to start
    +   * replicating.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SpannerChangeStreamPosition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SpannerChangeStreamPosition) + com.google.cloud.datastream.v1.SpannerChangeStreamPositionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerChangeStreamPosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerChangeStreamPosition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SpannerChangeStreamPosition.class, + com.google.cloud.datastream.v1.SpannerChangeStreamPosition.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SpannerChangeStreamPosition.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStartTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerChangeStreamPosition_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerChangeStreamPosition getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SpannerChangeStreamPosition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerChangeStreamPosition build() { + com.google.cloud.datastream.v1.SpannerChangeStreamPosition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerChangeStreamPosition buildPartial() { + com.google.cloud.datastream.v1.SpannerChangeStreamPosition result = + new com.google.cloud.datastream.v1.SpannerChangeStreamPosition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.SpannerChangeStreamPosition result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.SpannerChangeStreamPosition) { + return mergeFrom((com.google.cloud.datastream.v1.SpannerChangeStreamPosition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.SpannerChangeStreamPosition other) { + if (other == com.google.cloud.datastream.v1.SpannerChangeStreamPosition.getDefaultInstance()) + return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
    +     * Required. The timestamp to start change stream queries from.
    +     * The timestamp must be a positive value.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Required. The timestamp to start change stream queries from.
    +     * The timestamp must be a positive value.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. The timestamp to start change stream queries from.
    +     * The timestamp must be a positive value.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The timestamp to start change stream queries from.
    +     * The timestamp must be a positive value.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The timestamp to start change stream queries from.
    +     * The timestamp must be a positive value.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. The timestamp to start change stream queries from.
    +     * The timestamp must be a positive value.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000001); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The timestamp to start change stream queries from.
    +     * The timestamp must be a positive value.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. The timestamp to start change stream queries from.
    +     * The timestamp must be a positive value.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + + /** + * + * + *
    +     * Required. The timestamp to start change stream queries from.
    +     * The timestamp must be a positive value.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SpannerChangeStreamPosition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SpannerChangeStreamPosition) + private static final com.google.cloud.datastream.v1.SpannerChangeStreamPosition DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SpannerChangeStreamPosition(); + } + + public static com.google.cloud.datastream.v1.SpannerChangeStreamPosition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpannerChangeStreamPosition 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.datastream.v1.SpannerChangeStreamPosition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerChangeStreamPositionOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerChangeStreamPositionOrBuilder.java new file mode 100644 index 000000000000..94b2942dfc73 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerChangeStreamPositionOrBuilder.java @@ -0,0 +1,71 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface SpannerChangeStreamPositionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SpannerChangeStreamPosition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The timestamp to start change stream queries from.
    +   * The timestamp must be a positive value.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
    +   * Required. The timestamp to start change stream queries from.
    +   * The timestamp must be a positive value.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
    +   * Required. The timestamp to start change stream queries from.
    +   * The timestamp must be a positive value.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerColumn.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerColumn.java new file mode 100644 index 000000000000..fc14cc8c1430 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerColumn.java @@ -0,0 +1,978 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * Spanner column.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SpannerColumn} + */ +@com.google.protobuf.Generated +public final class SpannerColumn extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SpannerColumn) + SpannerColumnOrBuilder { + 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= */ "", + "SpannerColumn"); + } + + // Use SpannerColumn.newBuilder() to construct. + private SpannerColumn(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SpannerColumn() { + column_ = ""; + dataType_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SpannerColumn.class, + com.google.cloud.datastream.v1.SpannerColumn.Builder.class); + } + + public static final int COLUMN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object column_ = ""; + + /** + * + * + *
    +   * Required. The column name.
    +   * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The column. + */ + @java.lang.Override + public java.lang.String getColumn() { + java.lang.Object ref = column_; + 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(); + column_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The column name.
    +   * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for column. + */ + @java.lang.Override + public com.google.protobuf.ByteString getColumnBytes() { + java.lang.Object ref = column_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + column_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_TYPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataType_ = ""; + + /** + * + * + *
    +   * Optional. Spanner data type.
    +   * 
    + * + * string data_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataType. + */ + @java.lang.Override + public java.lang.String getDataType() { + java.lang.Object ref = dataType_; + 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(); + dataType_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Spanner data type.
    +   * 
    + * + * string data_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dataType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataTypeBytes() { + java.lang.Object ref = dataType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_PRIMARY_KEY_FIELD_NUMBER = 3; + private boolean isPrimaryKey_ = false; + + /** + * + * + *
    +   * Optional. Whether or not the column is a primary key.
    +   * 
    + * + * bool is_primary_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isPrimaryKey. + */ + @java.lang.Override + public boolean getIsPrimaryKey() { + return isPrimaryKey_; + } + + public static final int ORDINAL_POSITION_FIELD_NUMBER = 4; + private long ordinalPosition_ = 0L; + + /** + * + * + *
    +   * Optional. The ordinal position of the column in the table.
    +   * 
    + * + * int64 ordinal_position = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ordinalPosition. + */ + @java.lang.Override + public long getOrdinalPosition() { + return ordinalPosition_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(column_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, column_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, dataType_); + } + if (isPrimaryKey_ != false) { + output.writeBool(3, isPrimaryKey_); + } + if (ordinalPosition_ != 0L) { + output.writeInt64(4, ordinalPosition_); + } + 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(column_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, column_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, dataType_); + } + if (isPrimaryKey_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isPrimaryKey_); + } + if (ordinalPosition_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ordinalPosition_); + } + 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.datastream.v1.SpannerColumn)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SpannerColumn other = + (com.google.cloud.datastream.v1.SpannerColumn) obj; + + if (!getColumn().equals(other.getColumn())) return false; + if (!getDataType().equals(other.getDataType())) return false; + if (getIsPrimaryKey() != other.getIsPrimaryKey()) return false; + if (getOrdinalPosition() != other.getOrdinalPosition()) 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) + COLUMN_FIELD_NUMBER; + hash = (53 * hash) + getColumn().hashCode(); + hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDataType().hashCode(); + hash = (37 * hash) + IS_PRIMARY_KEY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPrimaryKey()); + hash = (37 * hash) + ORDINAL_POSITION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOrdinalPosition()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SpannerColumn parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SpannerColumn 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.datastream.v1.SpannerColumn parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SpannerColumn 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.datastream.v1.SpannerColumn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SpannerColumn parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SpannerColumn parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SpannerColumn 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.datastream.v1.SpannerColumn parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SpannerColumn 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.datastream.v1.SpannerColumn parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SpannerColumn 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.datastream.v1.SpannerColumn 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; + } + + /** + * + * + *
    +   * Spanner column.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SpannerColumn} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SpannerColumn) + com.google.cloud.datastream.v1.SpannerColumnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SpannerColumn.class, + com.google.cloud.datastream.v1.SpannerColumn.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SpannerColumn.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + column_ = ""; + dataType_ = ""; + isPrimaryKey_ = false; + ordinalPosition_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerColumn_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerColumn getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SpannerColumn.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerColumn build() { + com.google.cloud.datastream.v1.SpannerColumn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerColumn buildPartial() { + com.google.cloud.datastream.v1.SpannerColumn result = + new com.google.cloud.datastream.v1.SpannerColumn(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.SpannerColumn result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.column_ = column_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataType_ = dataType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isPrimaryKey_ = isPrimaryKey_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.ordinalPosition_ = ordinalPosition_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.SpannerColumn) { + return mergeFrom((com.google.cloud.datastream.v1.SpannerColumn) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.SpannerColumn other) { + if (other == com.google.cloud.datastream.v1.SpannerColumn.getDefaultInstance()) return this; + if (!other.getColumn().isEmpty()) { + column_ = other.column_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDataType().isEmpty()) { + dataType_ = other.dataType_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getIsPrimaryKey() != false) { + setIsPrimaryKey(other.getIsPrimaryKey()); + } + if (other.getOrdinalPosition() != 0L) { + setOrdinalPosition(other.getOrdinalPosition()); + } + 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: + { + column_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + dataType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + isPrimaryKey_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + ordinalPosition_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + 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 column_ = ""; + + /** + * + * + *
    +     * Required. The column name.
    +     * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The column. + */ + public java.lang.String getColumn() { + java.lang.Object ref = column_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + column_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The column name.
    +     * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for column. + */ + public com.google.protobuf.ByteString getColumnBytes() { + java.lang.Object ref = column_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + column_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The column name.
    +     * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The column to set. + * @return This builder for chaining. + */ + public Builder setColumn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + column_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The column name.
    +     * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearColumn() { + column_ = getDefaultInstance().getColumn(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The column name.
    +     * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for column to set. + * @return This builder for chaining. + */ + public Builder setColumnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + column_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object dataType_ = ""; + + /** + * + * + *
    +     * Optional. Spanner data type.
    +     * 
    + * + * string data_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataType. + */ + public java.lang.String getDataType() { + java.lang.Object ref = dataType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Spanner data type.
    +     * 
    + * + * string data_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dataType. + */ + public com.google.protobuf.ByteString getDataTypeBytes() { + java.lang.Object ref = dataType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Spanner data type.
    +     * 
    + * + * string data_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dataType to set. + * @return This builder for chaining. + */ + public Builder setDataType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Spanner data type.
    +     * 
    + * + * string data_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDataType() { + dataType_ = getDefaultInstance().getDataType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Spanner data type.
    +     * 
    + * + * string data_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for dataType to set. + * @return This builder for chaining. + */ + public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean isPrimaryKey_; + + /** + * + * + *
    +     * Optional. Whether or not the column is a primary key.
    +     * 
    + * + * bool is_primary_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isPrimaryKey. + */ + @java.lang.Override + public boolean getIsPrimaryKey() { + return isPrimaryKey_; + } + + /** + * + * + *
    +     * Optional. Whether or not the column is a primary key.
    +     * 
    + * + * bool is_primary_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The isPrimaryKey to set. + * @return This builder for chaining. + */ + public Builder setIsPrimaryKey(boolean value) { + + isPrimaryKey_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Whether or not the column is a primary key.
    +     * 
    + * + * bool is_primary_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIsPrimaryKey() { + bitField0_ = (bitField0_ & ~0x00000004); + isPrimaryKey_ = false; + onChanged(); + return this; + } + + private long ordinalPosition_; + + /** + * + * + *
    +     * Optional. The ordinal position of the column in the table.
    +     * 
    + * + * int64 ordinal_position = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ordinalPosition. + */ + @java.lang.Override + public long getOrdinalPosition() { + return ordinalPosition_; + } + + /** + * + * + *
    +     * Optional. The ordinal position of the column in the table.
    +     * 
    + * + * int64 ordinal_position = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The ordinalPosition to set. + * @return This builder for chaining. + */ + public Builder setOrdinalPosition(long value) { + + ordinalPosition_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The ordinal position of the column in the table.
    +     * 
    + * + * int64 ordinal_position = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrdinalPosition() { + bitField0_ = (bitField0_ & ~0x00000008); + ordinalPosition_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SpannerColumn) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SpannerColumn) + private static final com.google.cloud.datastream.v1.SpannerColumn DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SpannerColumn(); + } + + public static com.google.cloud.datastream.v1.SpannerColumn getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpannerColumn 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.datastream.v1.SpannerColumn getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerColumnOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerColumnOrBuilder.java new file mode 100644 index 000000000000..418fdd2fdc5a --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerColumnOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface SpannerColumnOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SpannerColumn) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The column name.
    +   * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The column. + */ + java.lang.String getColumn(); + + /** + * + * + *
    +   * Required. The column name.
    +   * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for column. + */ + com.google.protobuf.ByteString getColumnBytes(); + + /** + * + * + *
    +   * Optional. Spanner data type.
    +   * 
    + * + * string data_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataType. + */ + java.lang.String getDataType(); + + /** + * + * + *
    +   * Optional. Spanner data type.
    +   * 
    + * + * string data_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dataType. + */ + com.google.protobuf.ByteString getDataTypeBytes(); + + /** + * + * + *
    +   * Optional. Whether or not the column is a primary key.
    +   * 
    + * + * bool is_primary_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isPrimaryKey. + */ + boolean getIsPrimaryKey(); + + /** + * + * + *
    +   * Optional. The ordinal position of the column in the table.
    +   * 
    + * + * int64 ordinal_position = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ordinalPosition. + */ + long getOrdinalPosition(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerDatabase.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerDatabase.java new file mode 100644 index 000000000000..cc9db9e784f1 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerDatabase.java @@ -0,0 +1,967 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * Spanner database structure.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SpannerDatabase} + */ +@com.google.protobuf.Generated +public final class SpannerDatabase extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SpannerDatabase) + SpannerDatabaseOrBuilder { + 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= */ "", + "SpannerDatabase"); + } + + // Use SpannerDatabase.newBuilder() to construct. + private SpannerDatabase(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SpannerDatabase() { + schemas_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerDatabase_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerDatabase_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SpannerDatabase.class, + com.google.cloud.datastream.v1.SpannerDatabase.Builder.class); + } + + public static final int SCHEMAS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List schemas_; + + /** + * + * + *
    +   * Optional. Spanner schemas in the database.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getSchemasList() { + return schemas_; + } + + /** + * + * + *
    +   * Optional. Spanner schemas in the database.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getSchemasOrBuilderList() { + return schemas_; + } + + /** + * + * + *
    +   * Optional. Spanner schemas in the database.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSchemasCount() { + return schemas_.size(); + } + + /** + * + * + *
    +   * Optional. Spanner schemas in the database.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerSchema getSchemas(int index) { + return schemas_.get(index); + } + + /** + * + * + *
    +   * Optional. Spanner schemas in the database.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerSchemaOrBuilder getSchemasOrBuilder(int index) { + return schemas_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < schemas_.size(); i++) { + output.writeMessage(1, schemas_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < schemas_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, schemas_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.datastream.v1.SpannerDatabase)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SpannerDatabase other = + (com.google.cloud.datastream.v1.SpannerDatabase) obj; + + if (!getSchemasList().equals(other.getSchemasList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSchemasCount() > 0) { + hash = (37 * hash) + SCHEMAS_FIELD_NUMBER; + hash = (53 * hash) + getSchemasList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SpannerDatabase parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SpannerDatabase 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.datastream.v1.SpannerDatabase parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SpannerDatabase 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.datastream.v1.SpannerDatabase parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SpannerDatabase parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SpannerDatabase parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SpannerDatabase 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.datastream.v1.SpannerDatabase parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SpannerDatabase 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.datastream.v1.SpannerDatabase parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SpannerDatabase 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.datastream.v1.SpannerDatabase 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; + } + + /** + * + * + *
    +   * Spanner database structure.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SpannerDatabase} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SpannerDatabase) + com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerDatabase_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerDatabase_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SpannerDatabase.class, + com.google.cloud.datastream.v1.SpannerDatabase.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SpannerDatabase.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (schemasBuilder_ == null) { + schemas_ = java.util.Collections.emptyList(); + } else { + schemas_ = null; + schemasBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerDatabase_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerDatabase getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerDatabase build() { + com.google.cloud.datastream.v1.SpannerDatabase result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerDatabase buildPartial() { + com.google.cloud.datastream.v1.SpannerDatabase result = + new com.google.cloud.datastream.v1.SpannerDatabase(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.SpannerDatabase result) { + if (schemasBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + schemas_ = java.util.Collections.unmodifiableList(schemas_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.schemas_ = schemas_; + } else { + result.schemas_ = schemasBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.datastream.v1.SpannerDatabase result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.SpannerDatabase) { + return mergeFrom((com.google.cloud.datastream.v1.SpannerDatabase) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.SpannerDatabase other) { + if (other == com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance()) return this; + if (schemasBuilder_ == null) { + if (!other.schemas_.isEmpty()) { + if (schemas_.isEmpty()) { + schemas_ = other.schemas_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSchemasIsMutable(); + schemas_.addAll(other.schemas_); + } + onChanged(); + } + } else { + if (!other.schemas_.isEmpty()) { + if (schemasBuilder_.isEmpty()) { + schemasBuilder_.dispose(); + schemasBuilder_ = null; + schemas_ = other.schemas_; + bitField0_ = (bitField0_ & ~0x00000001); + schemasBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSchemasFieldBuilder() + : null; + } else { + schemasBuilder_.addAllMessages(other.schemas_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.datastream.v1.SpannerSchema m = + input.readMessage( + com.google.cloud.datastream.v1.SpannerSchema.parser(), extensionRegistry); + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.add(m); + } else { + schemasBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List schemas_ = + java.util.Collections.emptyList(); + + private void ensureSchemasIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + schemas_ = new java.util.ArrayList(schemas_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.SpannerSchema, + com.google.cloud.datastream.v1.SpannerSchema.Builder, + com.google.cloud.datastream.v1.SpannerSchemaOrBuilder> + schemasBuilder_; + + /** + * + * + *
    +     * Optional. Spanner schemas in the database.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getSchemasList() { + if (schemasBuilder_ == null) { + return java.util.Collections.unmodifiableList(schemas_); + } else { + return schemasBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Optional. Spanner schemas in the database.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getSchemasCount() { + if (schemasBuilder_ == null) { + return schemas_.size(); + } else { + return schemasBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Optional. Spanner schemas in the database.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SpannerSchema getSchemas(int index) { + if (schemasBuilder_ == null) { + return schemas_.get(index); + } else { + return schemasBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Optional. Spanner schemas in the database.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSchemas(int index, com.google.cloud.datastream.v1.SpannerSchema value) { + if (schemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchemasIsMutable(); + schemas_.set(index, value); + onChanged(); + } else { + schemasBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner schemas in the database.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSchemas( + int index, com.google.cloud.datastream.v1.SpannerSchema.Builder builderForValue) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.set(index, builderForValue.build()); + onChanged(); + } else { + schemasBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner schemas in the database.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSchemas(com.google.cloud.datastream.v1.SpannerSchema value) { + if (schemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchemasIsMutable(); + schemas_.add(value); + onChanged(); + } else { + schemasBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner schemas in the database.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSchemas(int index, com.google.cloud.datastream.v1.SpannerSchema value) { + if (schemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchemasIsMutable(); + schemas_.add(index, value); + onChanged(); + } else { + schemasBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner schemas in the database.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSchemas( + com.google.cloud.datastream.v1.SpannerSchema.Builder builderForValue) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.add(builderForValue.build()); + onChanged(); + } else { + schemasBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner schemas in the database.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSchemas( + int index, com.google.cloud.datastream.v1.SpannerSchema.Builder builderForValue) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.add(index, builderForValue.build()); + onChanged(); + } else { + schemasBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner schemas in the database.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllSchemas( + java.lang.Iterable values) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schemas_); + onChanged(); + } else { + schemasBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner schemas in the database.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSchemas() { + if (schemasBuilder_ == null) { + schemas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + schemasBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner schemas in the database.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeSchemas(int index) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.remove(index); + onChanged(); + } else { + schemasBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner schemas in the database.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SpannerSchema.Builder getSchemasBuilder(int index) { + return internalGetSchemasFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Optional. Spanner schemas in the database.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SpannerSchemaOrBuilder getSchemasOrBuilder(int index) { + if (schemasBuilder_ == null) { + return schemas_.get(index); + } else { + return schemasBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Optional. Spanner schemas in the database.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSchemasOrBuilderList() { + if (schemasBuilder_ != null) { + return schemasBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(schemas_); + } + } + + /** + * + * + *
    +     * Optional. Spanner schemas in the database.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SpannerSchema.Builder addSchemasBuilder() { + return internalGetSchemasFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.SpannerSchema.getDefaultInstance()); + } + + /** + * + * + *
    +     * Optional. Spanner schemas in the database.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SpannerSchema.Builder addSchemasBuilder(int index) { + return internalGetSchemasFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.SpannerSchema.getDefaultInstance()); + } + + /** + * + * + *
    +     * Optional. Spanner schemas in the database.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSchemasBuilderList() { + return internalGetSchemasFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.SpannerSchema, + com.google.cloud.datastream.v1.SpannerSchema.Builder, + com.google.cloud.datastream.v1.SpannerSchemaOrBuilder> + internalGetSchemasFieldBuilder() { + if (schemasBuilder_ == null) { + schemasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.SpannerSchema, + com.google.cloud.datastream.v1.SpannerSchema.Builder, + com.google.cloud.datastream.v1.SpannerSchemaOrBuilder>( + schemas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + schemas_ = null; + } + return schemasBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SpannerDatabase) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SpannerDatabase) + private static final com.google.cloud.datastream.v1.SpannerDatabase DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SpannerDatabase(); + } + + public static com.google.cloud.datastream.v1.SpannerDatabase getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpannerDatabase 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.datastream.v1.SpannerDatabase getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerDatabaseOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerDatabaseOrBuilder.java new file mode 100644 index 000000000000..8d041f8e386a --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerDatabaseOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface SpannerDatabaseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SpannerDatabase) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. Spanner schemas in the database.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getSchemasList(); + + /** + * + * + *
    +   * Optional. Spanner schemas in the database.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SpannerSchema getSchemas(int index); + + /** + * + * + *
    +   * Optional. Spanner schemas in the database.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSchemasCount(); + + /** + * + * + *
    +   * Optional. Spanner schemas in the database.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getSchemasOrBuilderList(); + + /** + * + * + *
    +   * Optional. Spanner schemas in the database.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerSchema schemas = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SpannerSchemaOrBuilder getSchemasOrBuilder(int index); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerProfile.java new file mode 100644 index 000000000000..50c60a188c2d --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerProfile.java @@ -0,0 +1,833 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * Profile for connecting to a Spanner source.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SpannerProfile} + */ +@com.google.protobuf.Generated +public final class SpannerProfile extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SpannerProfile) + SpannerProfileOrBuilder { + 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= */ "", + "SpannerProfile"); + } + + // Use SpannerProfile.newBuilder() to construct. + private SpannerProfile(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SpannerProfile() { + database_ = ""; + host_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SpannerProfile.class, + com.google.cloud.datastream.v1.SpannerProfile.Builder.class); + } + + public static final int DATABASE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object database_ = ""; + + /** + * + * + *
    +   * Required. Immutable. Cloud Spanner database resource.
    +   * This field is immutable.
    +   * Must be in the format:
    +   * projects/{project}/instances/{instance}/databases/{database_id}.
    +   * 
    + * + * + * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The database. + */ + @java.lang.Override + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + 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(); + database_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. Immutable. Cloud Spanner database resource.
    +   * This field is immutable.
    +   * Must be in the format:
    +   * projects/{project}/instances/{instance}/databases/{database_id}.
    +   * 
    + * + * + * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for database. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatabaseBytes() { + java.lang.Object ref = database_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HOST_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object host_ = ""; + + /** + * + * + *
    +   * Optional. The Spanner endpoint to connect to. Defaults to the global
    +   * endpoint (https://spanner.googleapis.com). Must be in the format:
    +   * https://spanner.{region}.rep.googleapis.com.
    +   * 
    + * + * string host = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The host. + */ + @java.lang.Override + public java.lang.String getHost() { + java.lang.Object ref = host_; + 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(); + host_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. The Spanner endpoint to connect to. Defaults to the global
    +   * endpoint (https://spanner.googleapis.com). Must be in the format:
    +   * https://spanner.{region}.rep.googleapis.com.
    +   * 
    + * + * string host = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for host. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(database_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, database_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, host_); + } + 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(database_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, database_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, host_); + } + 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.datastream.v1.SpannerProfile)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SpannerProfile other = + (com.google.cloud.datastream.v1.SpannerProfile) obj; + + if (!getDatabase().equals(other.getDatabase())) return false; + if (!getHost().equals(other.getHost())) 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) + DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getDatabase().hashCode(); + hash = (37 * hash) + HOST_FIELD_NUMBER; + hash = (53 * hash) + getHost().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SpannerProfile parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SpannerProfile 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.datastream.v1.SpannerProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SpannerProfile 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.datastream.v1.SpannerProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SpannerProfile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SpannerProfile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SpannerProfile 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.datastream.v1.SpannerProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SpannerProfile 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.datastream.v1.SpannerProfile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SpannerProfile 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.datastream.v1.SpannerProfile 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; + } + + /** + * + * + *
    +   * Profile for connecting to a Spanner source.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SpannerProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SpannerProfile) + com.google.cloud.datastream.v1.SpannerProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SpannerProfile.class, + com.google.cloud.datastream.v1.SpannerProfile.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SpannerProfile.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + database_ = ""; + host_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerProfile getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SpannerProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerProfile build() { + com.google.cloud.datastream.v1.SpannerProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerProfile buildPartial() { + com.google.cloud.datastream.v1.SpannerProfile result = + new com.google.cloud.datastream.v1.SpannerProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.SpannerProfile result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.database_ = database_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.host_ = host_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.SpannerProfile) { + return mergeFrom((com.google.cloud.datastream.v1.SpannerProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.SpannerProfile other) { + if (other == com.google.cloud.datastream.v1.SpannerProfile.getDefaultInstance()) return this; + if (!other.getDatabase().isEmpty()) { + database_ = other.database_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getHost().isEmpty()) { + host_ = other.host_; + bitField0_ |= 0x00000002; + 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: + { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + host_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object database_ = ""; + + /** + * + * + *
    +     * Required. Immutable. Cloud Spanner database resource.
    +     * This field is immutable.
    +     * Must be in the format:
    +     * projects/{project}/instances/{instance}/databases/{database_id}.
    +     * 
    + * + * + * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The database. + */ + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + database_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. Immutable. Cloud Spanner database resource.
    +     * This field is immutable.
    +     * Must be in the format:
    +     * projects/{project}/instances/{instance}/databases/{database_id}.
    +     * 
    + * + * + * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for database. + */ + public com.google.protobuf.ByteString getDatabaseBytes() { + java.lang.Object ref = database_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. Immutable. Cloud Spanner database resource.
    +     * This field is immutable.
    +     * Must be in the format:
    +     * projects/{project}/instances/{instance}/databases/{database_id}.
    +     * 
    + * + * + * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The database to set. + * @return This builder for chaining. + */ + public Builder setDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + database_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Immutable. Cloud Spanner database resource.
    +     * This field is immutable.
    +     * Must be in the format:
    +     * projects/{project}/instances/{instance}/databases/{database_id}.
    +     * 
    + * + * + * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDatabase() { + database_ = getDefaultInstance().getDatabase(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Immutable. Cloud Spanner database resource.
    +     * This field is immutable.
    +     * Must be in the format:
    +     * projects/{project}/instances/{instance}/databases/{database_id}.
    +     * 
    + * + * + * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for database to set. + * @return This builder for chaining. + */ + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + database_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object host_ = ""; + + /** + * + * + *
    +     * Optional. The Spanner endpoint to connect to. Defaults to the global
    +     * endpoint (https://spanner.googleapis.com). Must be in the format:
    +     * https://spanner.{region}.rep.googleapis.com.
    +     * 
    + * + * string host = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The host. + */ + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. The Spanner endpoint to connect to. Defaults to the global
    +     * endpoint (https://spanner.googleapis.com). Must be in the format:
    +     * https://spanner.{region}.rep.googleapis.com.
    +     * 
    + * + * string host = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for host. + */ + public com.google.protobuf.ByteString getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. The Spanner endpoint to connect to. Defaults to the global
    +     * endpoint (https://spanner.googleapis.com). Must be in the format:
    +     * https://spanner.{region}.rep.googleapis.com.
    +     * 
    + * + * string host = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The host to set. + * @return This builder for chaining. + */ + public Builder setHost(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + host_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The Spanner endpoint to connect to. Defaults to the global
    +     * endpoint (https://spanner.googleapis.com). Must be in the format:
    +     * https://spanner.{region}.rep.googleapis.com.
    +     * 
    + * + * string host = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearHost() { + host_ = getDefaultInstance().getHost(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The Spanner endpoint to connect to. Defaults to the global
    +     * endpoint (https://spanner.googleapis.com). Must be in the format:
    +     * https://spanner.{region}.rep.googleapis.com.
    +     * 
    + * + * string host = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for host to set. + * @return This builder for chaining. + */ + public Builder setHostBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + host_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SpannerProfile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SpannerProfile) + private static final com.google.cloud.datastream.v1.SpannerProfile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SpannerProfile(); + } + + public static com.google.cloud.datastream.v1.SpannerProfile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpannerProfile 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.datastream.v1.SpannerProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerProfileOrBuilder.java new file mode 100644 index 000000000000..3809bb40a320 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerProfileOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface SpannerProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SpannerProfile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Immutable. Cloud Spanner database resource.
    +   * This field is immutable.
    +   * Must be in the format:
    +   * projects/{project}/instances/{instance}/databases/{database_id}.
    +   * 
    + * + * + * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The database. + */ + java.lang.String getDatabase(); + + /** + * + * + *
    +   * Required. Immutable. Cloud Spanner database resource.
    +   * This field is immutable.
    +   * Must be in the format:
    +   * projects/{project}/instances/{instance}/databases/{database_id}.
    +   * 
    + * + * + * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for database. + */ + com.google.protobuf.ByteString getDatabaseBytes(); + + /** + * + * + *
    +   * Optional. The Spanner endpoint to connect to. Defaults to the global
    +   * endpoint (https://spanner.googleapis.com). Must be in the format:
    +   * https://spanner.{region}.rep.googleapis.com.
    +   * 
    + * + * string host = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The host. + */ + java.lang.String getHost(); + + /** + * + * + *
    +   * Optional. The Spanner endpoint to connect to. Defaults to the global
    +   * endpoint (https://spanner.googleapis.com). Must be in the format:
    +   * https://spanner.{region}.rep.googleapis.com.
    +   * 
    + * + * string host = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for host. + */ + com.google.protobuf.ByteString getHostBytes(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerSchema.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerSchema.java new file mode 100644 index 000000000000..e15f45e74605 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerSchema.java @@ -0,0 +1,1155 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * Spanner schema.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SpannerSchema} + */ +@com.google.protobuf.Generated +public final class SpannerSchema extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SpannerSchema) + SpannerSchemaOrBuilder { + 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= */ "", + "SpannerSchema"); + } + + // Use SpannerSchema.newBuilder() to construct. + private SpannerSchema(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SpannerSchema() { + schema_ = ""; + tables_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SpannerSchema.class, + com.google.cloud.datastream.v1.SpannerSchema.Builder.class); + } + + public static final int SCHEMA_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object schema_ = ""; + + /** + * + * + *
    +   * Required. The schema name.
    +   * 
    + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The schema. + */ + @java.lang.Override + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + 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(); + schema_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The schema name.
    +   * 
    + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for schema. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TABLES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List tables_; + + /** + * + * + *
    +   * Optional. Spanner tables in the schema.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getTablesList() { + return tables_; + } + + /** + * + * + *
    +   * Optional. Spanner tables in the schema.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getTablesOrBuilderList() { + return tables_; + } + + /** + * + * + *
    +   * Optional. Spanner tables in the schema.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getTablesCount() { + return tables_.size(); + } + + /** + * + * + *
    +   * Optional. Spanner tables in the schema.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerTable getTables(int index) { + return tables_.get(index); + } + + /** + * + * + *
    +   * Optional. Spanner tables in the schema.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerTableOrBuilder getTablesOrBuilder(int index) { + return tables_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(schema_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, schema_); + } + for (int i = 0; i < tables_.size(); i++) { + output.writeMessage(2, tables_.get(i)); + } + 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(schema_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, schema_); + } + for (int i = 0; i < tables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, tables_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.datastream.v1.SpannerSchema)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SpannerSchema other = + (com.google.cloud.datastream.v1.SpannerSchema) obj; + + if (!getSchema().equals(other.getSchema())) return false; + if (!getTablesList().equals(other.getTablesList())) 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) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + if (getTablesCount() > 0) { + hash = (37 * hash) + TABLES_FIELD_NUMBER; + hash = (53 * hash) + getTablesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SpannerSchema parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SpannerSchema 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.datastream.v1.SpannerSchema parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SpannerSchema 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.datastream.v1.SpannerSchema parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SpannerSchema parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SpannerSchema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SpannerSchema 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.datastream.v1.SpannerSchema parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SpannerSchema 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.datastream.v1.SpannerSchema parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SpannerSchema 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.datastream.v1.SpannerSchema 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; + } + + /** + * + * + *
    +   * Spanner schema.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SpannerSchema} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SpannerSchema) + com.google.cloud.datastream.v1.SpannerSchemaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SpannerSchema.class, + com.google.cloud.datastream.v1.SpannerSchema.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SpannerSchema.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + schema_ = ""; + if (tablesBuilder_ == null) { + tables_ = java.util.Collections.emptyList(); + } else { + tables_ = null; + tablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerSchema_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerSchema getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SpannerSchema.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerSchema build() { + com.google.cloud.datastream.v1.SpannerSchema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerSchema buildPartial() { + com.google.cloud.datastream.v1.SpannerSchema result = + new com.google.cloud.datastream.v1.SpannerSchema(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.SpannerSchema result) { + if (tablesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + tables_ = java.util.Collections.unmodifiableList(tables_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.tables_ = tables_; + } else { + result.tables_ = tablesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.datastream.v1.SpannerSchema result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.schema_ = schema_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.SpannerSchema) { + return mergeFrom((com.google.cloud.datastream.v1.SpannerSchema) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.SpannerSchema other) { + if (other == com.google.cloud.datastream.v1.SpannerSchema.getDefaultInstance()) return this; + if (!other.getSchema().isEmpty()) { + schema_ = other.schema_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (tablesBuilder_ == null) { + if (!other.tables_.isEmpty()) { + if (tables_.isEmpty()) { + tables_ = other.tables_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureTablesIsMutable(); + tables_.addAll(other.tables_); + } + onChanged(); + } + } else { + if (!other.tables_.isEmpty()) { + if (tablesBuilder_.isEmpty()) { + tablesBuilder_.dispose(); + tablesBuilder_ = null; + tables_ = other.tables_; + bitField0_ = (bitField0_ & ~0x00000002); + tablesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetTablesFieldBuilder() + : null; + } else { + tablesBuilder_.addAllMessages(other.tables_); + } + } + } + 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: + { + schema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.datastream.v1.SpannerTable m = + input.readMessage( + com.google.cloud.datastream.v1.SpannerTable.parser(), extensionRegistry); + if (tablesBuilder_ == null) { + ensureTablesIsMutable(); + tables_.add(m); + } else { + tablesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object schema_ = ""; + + /** + * + * + *
    +     * Required. The schema name.
    +     * 
    + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The schema. + */ + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The schema name.
    +     * 
    + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for schema. + */ + public com.google.protobuf.ByteString getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The schema name.
    +     * 
    + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The schema to set. + * @return This builder for chaining. + */ + public Builder setSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + schema_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The schema name.
    +     * 
    + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSchema() { + schema_ = getDefaultInstance().getSchema(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The schema name.
    +     * 
    + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for schema to set. + * @return This builder for chaining. + */ + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schema_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List tables_ = + java.util.Collections.emptyList(); + + private void ensureTablesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + tables_ = new java.util.ArrayList(tables_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.SpannerTable, + com.google.cloud.datastream.v1.SpannerTable.Builder, + com.google.cloud.datastream.v1.SpannerTableOrBuilder> + tablesBuilder_; + + /** + * + * + *
    +     * Optional. Spanner tables in the schema.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getTablesList() { + if (tablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(tables_); + } else { + return tablesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Optional. Spanner tables in the schema.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getTablesCount() { + if (tablesBuilder_ == null) { + return tables_.size(); + } else { + return tablesBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Optional. Spanner tables in the schema.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SpannerTable getTables(int index) { + if (tablesBuilder_ == null) { + return tables_.get(index); + } else { + return tablesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Optional. Spanner tables in the schema.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTables(int index, com.google.cloud.datastream.v1.SpannerTable value) { + if (tablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTablesIsMutable(); + tables_.set(index, value); + onChanged(); + } else { + tablesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner tables in the schema.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTables( + int index, com.google.cloud.datastream.v1.SpannerTable.Builder builderForValue) { + if (tablesBuilder_ == null) { + ensureTablesIsMutable(); + tables_.set(index, builderForValue.build()); + onChanged(); + } else { + tablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner tables in the schema.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTables(com.google.cloud.datastream.v1.SpannerTable value) { + if (tablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTablesIsMutable(); + tables_.add(value); + onChanged(); + } else { + tablesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner tables in the schema.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTables(int index, com.google.cloud.datastream.v1.SpannerTable value) { + if (tablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTablesIsMutable(); + tables_.add(index, value); + onChanged(); + } else { + tablesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner tables in the schema.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTables(com.google.cloud.datastream.v1.SpannerTable.Builder builderForValue) { + if (tablesBuilder_ == null) { + ensureTablesIsMutable(); + tables_.add(builderForValue.build()); + onChanged(); + } else { + tablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner tables in the schema.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTables( + int index, com.google.cloud.datastream.v1.SpannerTable.Builder builderForValue) { + if (tablesBuilder_ == null) { + ensureTablesIsMutable(); + tables_.add(index, builderForValue.build()); + onChanged(); + } else { + tablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner tables in the schema.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllTables( + java.lang.Iterable values) { + if (tablesBuilder_ == null) { + ensureTablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tables_); + onChanged(); + } else { + tablesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner tables in the schema.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTables() { + if (tablesBuilder_ == null) { + tables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + tablesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner tables in the schema.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTables(int index) { + if (tablesBuilder_ == null) { + ensureTablesIsMutable(); + tables_.remove(index); + onChanged(); + } else { + tablesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner tables in the schema.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SpannerTable.Builder getTablesBuilder(int index) { + return internalGetTablesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Optional. Spanner tables in the schema.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SpannerTableOrBuilder getTablesOrBuilder(int index) { + if (tablesBuilder_ == null) { + return tables_.get(index); + } else { + return tablesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Optional. Spanner tables in the schema.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getTablesOrBuilderList() { + if (tablesBuilder_ != null) { + return tablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tables_); + } + } + + /** + * + * + *
    +     * Optional. Spanner tables in the schema.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SpannerTable.Builder addTablesBuilder() { + return internalGetTablesFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.SpannerTable.getDefaultInstance()); + } + + /** + * + * + *
    +     * Optional. Spanner tables in the schema.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SpannerTable.Builder addTablesBuilder(int index) { + return internalGetTablesFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.SpannerTable.getDefaultInstance()); + } + + /** + * + * + *
    +     * Optional. Spanner tables in the schema.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getTablesBuilderList() { + return internalGetTablesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.SpannerTable, + com.google.cloud.datastream.v1.SpannerTable.Builder, + com.google.cloud.datastream.v1.SpannerTableOrBuilder> + internalGetTablesFieldBuilder() { + if (tablesBuilder_ == null) { + tablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.SpannerTable, + com.google.cloud.datastream.v1.SpannerTable.Builder, + com.google.cloud.datastream.v1.SpannerTableOrBuilder>( + tables_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + tables_ = null; + } + return tablesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SpannerSchema) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SpannerSchema) + private static final com.google.cloud.datastream.v1.SpannerSchema DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SpannerSchema(); + } + + public static com.google.cloud.datastream.v1.SpannerSchema getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpannerSchema 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.datastream.v1.SpannerSchema getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerSchemaOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerSchemaOrBuilder.java new file mode 100644 index 000000000000..33b7b0b20d95 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerSchemaOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface SpannerSchemaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SpannerSchema) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The schema name.
    +   * 
    + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The schema. + */ + java.lang.String getSchema(); + + /** + * + * + *
    +   * Required. The schema name.
    +   * 
    + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for schema. + */ + com.google.protobuf.ByteString getSchemaBytes(); + + /** + * + * + *
    +   * Optional. Spanner tables in the schema.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getTablesList(); + + /** + * + * + *
    +   * Optional. Spanner tables in the schema.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SpannerTable getTables(int index); + + /** + * + * + *
    +   * Optional. Spanner tables in the schema.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getTablesCount(); + + /** + * + * + *
    +   * Optional. Spanner tables in the schema.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getTablesOrBuilderList(); + + /** + * + * + *
    +   * Optional. Spanner tables in the schema.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SpannerTableOrBuilder getTablesOrBuilder(int index); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerSourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerSourceConfig.java new file mode 100644 index 000000000000..9b2c05064a56 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerSourceConfig.java @@ -0,0 +1,2130 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * Configuration for syncing data from a Spanner source.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SpannerSourceConfig} + */ +@com.google.protobuf.Generated +public final class SpannerSourceConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SpannerSourceConfig) + SpannerSourceConfigOrBuilder { + 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= */ "", + "SpannerSourceConfig"); + } + + // Use SpannerSourceConfig.newBuilder() to construct. + private SpannerSourceConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SpannerSourceConfig() { + changeStreamName_ = ""; + spannerRpcPriority_ = 0; + fgacRole_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerSourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerSourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SpannerSourceConfig.class, + com.google.cloud.datastream.v1.SpannerSourceConfig.Builder.class); + } + + /** + * + * + *
    +   * The RPC priority to use for the stream.
    +   * 
    + * + * Protobuf enum {@code google.cloud.datastream.v1.SpannerSourceConfig.SpannerRpcPriority} + */ + public enum SpannerRpcPriority implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Unspecified RPC priority.
    +     * 
    + * + * SPANNER_RPC_PRIORITY_UNSPECIFIED = 0; + */ + SPANNER_RPC_PRIORITY_UNSPECIFIED(0), + /** + * + * + *
    +     * Low RPC priority.
    +     * 
    + * + * LOW = 1; + */ + LOW(1), + /** + * + * + *
    +     * Medium RPC priority.
    +     * 
    + * + * MEDIUM = 2; + */ + MEDIUM(2), + /** + * + * + *
    +     * High RPC priority.
    +     * 
    + * + * HIGH = 3; + */ + HIGH(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SpannerRpcPriority"); + } + + /** + * + * + *
    +     * Unspecified RPC priority.
    +     * 
    + * + * SPANNER_RPC_PRIORITY_UNSPECIFIED = 0; + */ + public static final int SPANNER_RPC_PRIORITY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Low RPC priority.
    +     * 
    + * + * LOW = 1; + */ + public static final int LOW_VALUE = 1; + + /** + * + * + *
    +     * Medium RPC priority.
    +     * 
    + * + * MEDIUM = 2; + */ + public static final int MEDIUM_VALUE = 2; + + /** + * + * + *
    +     * High RPC priority.
    +     * 
    + * + * HIGH = 3; + */ + public static final int HIGH_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SpannerRpcPriority valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SpannerRpcPriority forNumber(int value) { + switch (value) { + case 0: + return SPANNER_RPC_PRIORITY_UNSPECIFIED; + case 1: + return LOW; + case 2: + return MEDIUM; + case 3: + return HIGH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SpannerRpcPriority findValueByNumber(int number) { + return SpannerRpcPriority.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.datastream.v1.SpannerSourceConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final SpannerRpcPriority[] VALUES = values(); + + public static SpannerRpcPriority valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SpannerRpcPriority(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.datastream.v1.SpannerSourceConfig.SpannerRpcPriority) + } + + private int bitField0_; + public static final int CHANGE_STREAM_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object changeStreamName_ = ""; + + /** + * + * + *
    +   * Required. Immutable. The change stream name to use for the stream.
    +   * 
    + * + * + * string change_stream_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The changeStreamName. + */ + @java.lang.Override + public java.lang.String getChangeStreamName() { + java.lang.Object ref = changeStreamName_; + 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(); + changeStreamName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. Immutable. The change stream name to use for the stream.
    +   * 
    + * + * + * string change_stream_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for changeStreamName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChangeStreamNameBytes() { + java.lang.Object ref = changeStreamName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + changeStreamName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPANNER_RPC_PRIORITY_FIELD_NUMBER = 2; + private int spannerRpcPriority_ = 0; + + /** + * + * + *
    +   * Optional. The RPC priority to use for the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SpannerSourceConfig.SpannerRpcPriority spanner_rpc_priority = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for spannerRpcPriority. + */ + @java.lang.Override + public int getSpannerRpcPriorityValue() { + return spannerRpcPriority_; + } + + /** + * + * + *
    +   * Optional. The RPC priority to use for the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SpannerSourceConfig.SpannerRpcPriority spanner_rpc_priority = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The spannerRpcPriority. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerSourceConfig.SpannerRpcPriority + getSpannerRpcPriority() { + com.google.cloud.datastream.v1.SpannerSourceConfig.SpannerRpcPriority result = + com.google.cloud.datastream.v1.SpannerSourceConfig.SpannerRpcPriority.forNumber( + spannerRpcPriority_); + return result == null + ? com.google.cloud.datastream.v1.SpannerSourceConfig.SpannerRpcPriority.UNRECOGNIZED + : result; + } + + public static final int FGAC_ROLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object fgacRole_ = ""; + + /** + * + * + *
    +   * Optional. The FGAC role to use for the stream.
    +   * 
    + * + * string fgac_role = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fgacRole. + */ + @java.lang.Override + public java.lang.String getFgacRole() { + java.lang.Object ref = fgacRole_; + 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(); + fgacRole_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. The FGAC role to use for the stream.
    +   * 
    + * + * string fgac_role = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fgacRole. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFgacRoleBytes() { + java.lang.Object ref = fgacRole_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fgacRole_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAX_CONCURRENT_CDC_TASKS_FIELD_NUMBER = 8; + private int maxConcurrentCdcTasks_ = 0; + + /** + * + * + *
    +   * Optional. Maximum number of concurrent CDC tasks.
    +   * 
    + * + * int32 max_concurrent_cdc_tasks = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxConcurrentCdcTasks. + */ + @java.lang.Override + public int getMaxConcurrentCdcTasks() { + return maxConcurrentCdcTasks_; + } + + public static final int MAX_CONCURRENT_BACKFILL_TASKS_FIELD_NUMBER = 4; + private int maxConcurrentBackfillTasks_ = 0; + + /** + * + * + *
    +   * Optional. Maximum number of concurrent backfill tasks.
    +   * 
    + * + * int32 max_concurrent_backfill_tasks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxConcurrentBackfillTasks. + */ + @java.lang.Override + public int getMaxConcurrentBackfillTasks() { + return maxConcurrentBackfillTasks_; + } + + public static final int INCLUDE_OBJECTS_FIELD_NUMBER = 6; + private com.google.cloud.datastream.v1.SpannerDatabase includeObjects_; + + /** + * + * + *
    +   * Optional. The Spanner objects to retrieve from the data source. If some
    +   * objects are both included and excluded, an error will be thrown.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase include_objects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the includeObjects field is set. + */ + @java.lang.Override + public boolean hasIncludeObjects() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Optional. The Spanner objects to retrieve from the data source. If some
    +   * objects are both included and excluded, an error will be thrown.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase include_objects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The includeObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerDatabase getIncludeObjects() { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance() + : includeObjects_; + } + + /** + * + * + *
    +   * Optional. The Spanner objects to retrieve from the data source. If some
    +   * objects are both included and excluded, an error will be thrown.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase include_objects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder getIncludeObjectsOrBuilder() { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance() + : includeObjects_; + } + + public static final int EXCLUDE_OBJECTS_FIELD_NUMBER = 7; + private com.google.cloud.datastream.v1.SpannerDatabase excludeObjects_; + + /** + * + * + *
    +   * Optional. The Spanner objects to avoid retrieving. If some objects are both
    +   * included and excluded, an error will be thrown.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase exclude_objects = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the excludeObjects field is set. + */ + @java.lang.Override + public boolean hasExcludeObjects() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Optional. The Spanner objects to avoid retrieving. If some objects are both
    +   * included and excluded, an error will be thrown.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase exclude_objects = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludeObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerDatabase getExcludeObjects() { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance() + : excludeObjects_; + } + + /** + * + * + *
    +   * Optional. The Spanner objects to avoid retrieving. If some objects are both
    +   * included and excluded, an error will be thrown.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase exclude_objects = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder getExcludeObjectsOrBuilder() { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance() + : excludeObjects_; + } + + public static final int BACKFILL_DATA_BOOST_ENABLED_FIELD_NUMBER = 9; + private boolean backfillDataBoostEnabled_ = false; + + /** + * + * + *
    +   * Optional. Whether to use Data Boost for Spanner backfills. Defaults to
    +   * false if not set.
    +   * 
    + * + * bool backfill_data_boost_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The backfillDataBoostEnabled. + */ + @java.lang.Override + public boolean getBackfillDataBoostEnabled() { + return backfillDataBoostEnabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(changeStreamName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, changeStreamName_); + } + if (spannerRpcPriority_ + != com.google.cloud.datastream.v1.SpannerSourceConfig.SpannerRpcPriority + .SPANNER_RPC_PRIORITY_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, spannerRpcPriority_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fgacRole_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, fgacRole_); + } + if (maxConcurrentBackfillTasks_ != 0) { + output.writeInt32(4, maxConcurrentBackfillTasks_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getIncludeObjects()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getExcludeObjects()); + } + if (maxConcurrentCdcTasks_ != 0) { + output.writeInt32(8, maxConcurrentCdcTasks_); + } + if (backfillDataBoostEnabled_ != false) { + output.writeBool(9, backfillDataBoostEnabled_); + } + 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(changeStreamName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, changeStreamName_); + } + if (spannerRpcPriority_ + != com.google.cloud.datastream.v1.SpannerSourceConfig.SpannerRpcPriority + .SPANNER_RPC_PRIORITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, spannerRpcPriority_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fgacRole_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, fgacRole_); + } + if (maxConcurrentBackfillTasks_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(4, maxConcurrentBackfillTasks_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getIncludeObjects()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getExcludeObjects()); + } + if (maxConcurrentCdcTasks_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, maxConcurrentCdcTasks_); + } + if (backfillDataBoostEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, backfillDataBoostEnabled_); + } + 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.datastream.v1.SpannerSourceConfig)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SpannerSourceConfig other = + (com.google.cloud.datastream.v1.SpannerSourceConfig) obj; + + if (!getChangeStreamName().equals(other.getChangeStreamName())) return false; + if (spannerRpcPriority_ != other.spannerRpcPriority_) return false; + if (!getFgacRole().equals(other.getFgacRole())) return false; + if (getMaxConcurrentCdcTasks() != other.getMaxConcurrentCdcTasks()) return false; + if (getMaxConcurrentBackfillTasks() != other.getMaxConcurrentBackfillTasks()) return false; + if (hasIncludeObjects() != other.hasIncludeObjects()) return false; + if (hasIncludeObjects()) { + if (!getIncludeObjects().equals(other.getIncludeObjects())) return false; + } + if (hasExcludeObjects() != other.hasExcludeObjects()) return false; + if (hasExcludeObjects()) { + if (!getExcludeObjects().equals(other.getExcludeObjects())) return false; + } + if (getBackfillDataBoostEnabled() != other.getBackfillDataBoostEnabled()) 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) + CHANGE_STREAM_NAME_FIELD_NUMBER; + hash = (53 * hash) + getChangeStreamName().hashCode(); + hash = (37 * hash) + SPANNER_RPC_PRIORITY_FIELD_NUMBER; + hash = (53 * hash) + spannerRpcPriority_; + hash = (37 * hash) + FGAC_ROLE_FIELD_NUMBER; + hash = (53 * hash) + getFgacRole().hashCode(); + hash = (37 * hash) + MAX_CONCURRENT_CDC_TASKS_FIELD_NUMBER; + hash = (53 * hash) + getMaxConcurrentCdcTasks(); + hash = (37 * hash) + MAX_CONCURRENT_BACKFILL_TASKS_FIELD_NUMBER; + hash = (53 * hash) + getMaxConcurrentBackfillTasks(); + if (hasIncludeObjects()) { + hash = (37 * hash) + INCLUDE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getIncludeObjects().hashCode(); + } + if (hasExcludeObjects()) { + hash = (37 * hash) + EXCLUDE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getExcludeObjects().hashCode(); + } + hash = (37 * hash) + BACKFILL_DATA_BOOST_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBackfillDataBoostEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SpannerSourceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SpannerSourceConfig 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.datastream.v1.SpannerSourceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SpannerSourceConfig 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.datastream.v1.SpannerSourceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SpannerSourceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SpannerSourceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SpannerSourceConfig 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.datastream.v1.SpannerSourceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SpannerSourceConfig 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.datastream.v1.SpannerSourceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SpannerSourceConfig 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.datastream.v1.SpannerSourceConfig 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; + } + + /** + * + * + *
    +   * Configuration for syncing data from a Spanner source.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SpannerSourceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SpannerSourceConfig) + com.google.cloud.datastream.v1.SpannerSourceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerSourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerSourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SpannerSourceConfig.class, + com.google.cloud.datastream.v1.SpannerSourceConfig.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SpannerSourceConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetIncludeObjectsFieldBuilder(); + internalGetExcludeObjectsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + changeStreamName_ = ""; + spannerRpcPriority_ = 0; + fgacRole_ = ""; + maxConcurrentCdcTasks_ = 0; + maxConcurrentBackfillTasks_ = 0; + includeObjects_ = null; + if (includeObjectsBuilder_ != null) { + includeObjectsBuilder_.dispose(); + includeObjectsBuilder_ = null; + } + excludeObjects_ = null; + if (excludeObjectsBuilder_ != null) { + excludeObjectsBuilder_.dispose(); + excludeObjectsBuilder_ = null; + } + backfillDataBoostEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerSourceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerSourceConfig getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SpannerSourceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerSourceConfig build() { + com.google.cloud.datastream.v1.SpannerSourceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerSourceConfig buildPartial() { + com.google.cloud.datastream.v1.SpannerSourceConfig result = + new com.google.cloud.datastream.v1.SpannerSourceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.SpannerSourceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.changeStreamName_ = changeStreamName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.spannerRpcPriority_ = spannerRpcPriority_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.fgacRole_ = fgacRole_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.maxConcurrentCdcTasks_ = maxConcurrentCdcTasks_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.maxConcurrentBackfillTasks_ = maxConcurrentBackfillTasks_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.includeObjects_ = + includeObjectsBuilder_ == null ? includeObjects_ : includeObjectsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.excludeObjects_ = + excludeObjectsBuilder_ == null ? excludeObjects_ : excludeObjectsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.backfillDataBoostEnabled_ = backfillDataBoostEnabled_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.SpannerSourceConfig) { + return mergeFrom((com.google.cloud.datastream.v1.SpannerSourceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.SpannerSourceConfig other) { + if (other == com.google.cloud.datastream.v1.SpannerSourceConfig.getDefaultInstance()) + return this; + if (!other.getChangeStreamName().isEmpty()) { + changeStreamName_ = other.changeStreamName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.spannerRpcPriority_ != 0) { + setSpannerRpcPriorityValue(other.getSpannerRpcPriorityValue()); + } + if (!other.getFgacRole().isEmpty()) { + fgacRole_ = other.fgacRole_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getMaxConcurrentCdcTasks() != 0) { + setMaxConcurrentCdcTasks(other.getMaxConcurrentCdcTasks()); + } + if (other.getMaxConcurrentBackfillTasks() != 0) { + setMaxConcurrentBackfillTasks(other.getMaxConcurrentBackfillTasks()); + } + if (other.hasIncludeObjects()) { + mergeIncludeObjects(other.getIncludeObjects()); + } + if (other.hasExcludeObjects()) { + mergeExcludeObjects(other.getExcludeObjects()); + } + if (other.getBackfillDataBoostEnabled() != false) { + setBackfillDataBoostEnabled(other.getBackfillDataBoostEnabled()); + } + 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: + { + changeStreamName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + spannerRpcPriority_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + fgacRole_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + maxConcurrentBackfillTasks_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 50: + { + input.readMessage( + internalGetIncludeObjectsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetExcludeObjectsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + maxConcurrentCdcTasks_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 64 + case 72: + { + backfillDataBoostEnabled_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 72 + 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 changeStreamName_ = ""; + + /** + * + * + *
    +     * Required. Immutable. The change stream name to use for the stream.
    +     * 
    + * + * + * string change_stream_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The changeStreamName. + */ + public java.lang.String getChangeStreamName() { + java.lang.Object ref = changeStreamName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + changeStreamName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. Immutable. The change stream name to use for the stream.
    +     * 
    + * + * + * string change_stream_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for changeStreamName. + */ + public com.google.protobuf.ByteString getChangeStreamNameBytes() { + java.lang.Object ref = changeStreamName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + changeStreamName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. Immutable. The change stream name to use for the stream.
    +     * 
    + * + * + * string change_stream_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The changeStreamName to set. + * @return This builder for chaining. + */ + public Builder setChangeStreamName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + changeStreamName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Immutable. The change stream name to use for the stream.
    +     * 
    + * + * + * string change_stream_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearChangeStreamName() { + changeStreamName_ = getDefaultInstance().getChangeStreamName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Immutable. The change stream name to use for the stream.
    +     * 
    + * + * + * string change_stream_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for changeStreamName to set. + * @return This builder for chaining. + */ + public Builder setChangeStreamNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + changeStreamName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int spannerRpcPriority_ = 0; + + /** + * + * + *
    +     * Optional. The RPC priority to use for the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerSourceConfig.SpannerRpcPriority spanner_rpc_priority = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for spannerRpcPriority. + */ + @java.lang.Override + public int getSpannerRpcPriorityValue() { + return spannerRpcPriority_; + } + + /** + * + * + *
    +     * Optional. The RPC priority to use for the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerSourceConfig.SpannerRpcPriority spanner_rpc_priority = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for spannerRpcPriority to set. + * @return This builder for chaining. + */ + public Builder setSpannerRpcPriorityValue(int value) { + spannerRpcPriority_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The RPC priority to use for the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerSourceConfig.SpannerRpcPriority spanner_rpc_priority = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The spannerRpcPriority. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerSourceConfig.SpannerRpcPriority + getSpannerRpcPriority() { + com.google.cloud.datastream.v1.SpannerSourceConfig.SpannerRpcPriority result = + com.google.cloud.datastream.v1.SpannerSourceConfig.SpannerRpcPriority.forNumber( + spannerRpcPriority_); + return result == null + ? com.google.cloud.datastream.v1.SpannerSourceConfig.SpannerRpcPriority.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Optional. The RPC priority to use for the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerSourceConfig.SpannerRpcPriority spanner_rpc_priority = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The spannerRpcPriority to set. + * @return This builder for chaining. + */ + public Builder setSpannerRpcPriority( + com.google.cloud.datastream.v1.SpannerSourceConfig.SpannerRpcPriority value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + spannerRpcPriority_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The RPC priority to use for the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerSourceConfig.SpannerRpcPriority spanner_rpc_priority = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSpannerRpcPriority() { + bitField0_ = (bitField0_ & ~0x00000002); + spannerRpcPriority_ = 0; + onChanged(); + return this; + } + + private java.lang.Object fgacRole_ = ""; + + /** + * + * + *
    +     * Optional. The FGAC role to use for the stream.
    +     * 
    + * + * string fgac_role = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fgacRole. + */ + public java.lang.String getFgacRole() { + java.lang.Object ref = fgacRole_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fgacRole_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. The FGAC role to use for the stream.
    +     * 
    + * + * string fgac_role = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fgacRole. + */ + public com.google.protobuf.ByteString getFgacRoleBytes() { + java.lang.Object ref = fgacRole_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fgacRole_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. The FGAC role to use for the stream.
    +     * 
    + * + * string fgac_role = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The fgacRole to set. + * @return This builder for chaining. + */ + public Builder setFgacRole(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fgacRole_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The FGAC role to use for the stream.
    +     * 
    + * + * string fgac_role = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFgacRole() { + fgacRole_ = getDefaultInstance().getFgacRole(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The FGAC role to use for the stream.
    +     * 
    + * + * string fgac_role = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for fgacRole to set. + * @return This builder for chaining. + */ + public Builder setFgacRoleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fgacRole_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int maxConcurrentCdcTasks_; + + /** + * + * + *
    +     * Optional. Maximum number of concurrent CDC tasks.
    +     * 
    + * + * int32 max_concurrent_cdc_tasks = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxConcurrentCdcTasks. + */ + @java.lang.Override + public int getMaxConcurrentCdcTasks() { + return maxConcurrentCdcTasks_; + } + + /** + * + * + *
    +     * Optional. Maximum number of concurrent CDC tasks.
    +     * 
    + * + * int32 max_concurrent_cdc_tasks = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxConcurrentCdcTasks to set. + * @return This builder for chaining. + */ + public Builder setMaxConcurrentCdcTasks(int value) { + + maxConcurrentCdcTasks_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Maximum number of concurrent CDC tasks.
    +     * 
    + * + * int32 max_concurrent_cdc_tasks = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxConcurrentCdcTasks() { + bitField0_ = (bitField0_ & ~0x00000008); + maxConcurrentCdcTasks_ = 0; + onChanged(); + return this; + } + + private int maxConcurrentBackfillTasks_; + + /** + * + * + *
    +     * Optional. Maximum number of concurrent backfill tasks.
    +     * 
    + * + * int32 max_concurrent_backfill_tasks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxConcurrentBackfillTasks. + */ + @java.lang.Override + public int getMaxConcurrentBackfillTasks() { + return maxConcurrentBackfillTasks_; + } + + /** + * + * + *
    +     * Optional. Maximum number of concurrent backfill tasks.
    +     * 
    + * + * int32 max_concurrent_backfill_tasks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The maxConcurrentBackfillTasks to set. + * @return This builder for chaining. + */ + public Builder setMaxConcurrentBackfillTasks(int value) { + + maxConcurrentBackfillTasks_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Maximum number of concurrent backfill tasks.
    +     * 
    + * + * int32 max_concurrent_backfill_tasks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMaxConcurrentBackfillTasks() { + bitField0_ = (bitField0_ & ~0x00000010); + maxConcurrentBackfillTasks_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.datastream.v1.SpannerDatabase includeObjects_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SpannerDatabase, + com.google.cloud.datastream.v1.SpannerDatabase.Builder, + com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder> + includeObjectsBuilder_; + + /** + * + * + *
    +     * Optional. The Spanner objects to retrieve from the data source. If some
    +     * objects are both included and excluded, an error will be thrown.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase include_objects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the includeObjects field is set. + */ + public boolean hasIncludeObjects() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +     * Optional. The Spanner objects to retrieve from the data source. If some
    +     * objects are both included and excluded, an error will be thrown.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase include_objects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The includeObjects. + */ + public com.google.cloud.datastream.v1.SpannerDatabase getIncludeObjects() { + if (includeObjectsBuilder_ == null) { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance() + : includeObjects_; + } else { + return includeObjectsBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. The Spanner objects to retrieve from the data source. If some
    +     * objects are both included and excluded, an error will be thrown.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase include_objects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludeObjects(com.google.cloud.datastream.v1.SpannerDatabase value) { + if (includeObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + includeObjects_ = value; + } else { + includeObjectsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The Spanner objects to retrieve from the data source. If some
    +     * objects are both included and excluded, an error will be thrown.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase include_objects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludeObjects( + com.google.cloud.datastream.v1.SpannerDatabase.Builder builderForValue) { + if (includeObjectsBuilder_ == null) { + includeObjects_ = builderForValue.build(); + } else { + includeObjectsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The Spanner objects to retrieve from the data source. If some
    +     * objects are both included and excluded, an error will be thrown.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase include_objects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.SpannerDatabase value) { + if (includeObjectsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && includeObjects_ != null + && includeObjects_ + != com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance()) { + getIncludeObjectsBuilder().mergeFrom(value); + } else { + includeObjects_ = value; + } + } else { + includeObjectsBuilder_.mergeFrom(value); + } + if (includeObjects_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. The Spanner objects to retrieve from the data source. If some
    +     * objects are both included and excluded, an error will be thrown.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase include_objects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIncludeObjects() { + bitField0_ = (bitField0_ & ~0x00000020); + includeObjects_ = null; + if (includeObjectsBuilder_ != null) { + includeObjectsBuilder_.dispose(); + includeObjectsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The Spanner objects to retrieve from the data source. If some
    +     * objects are both included and excluded, an error will be thrown.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase include_objects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SpannerDatabase.Builder getIncludeObjectsBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetIncludeObjectsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. The Spanner objects to retrieve from the data source. If some
    +     * objects are both included and excluded, an error will be thrown.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase include_objects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder getIncludeObjectsOrBuilder() { + if (includeObjectsBuilder_ != null) { + return includeObjectsBuilder_.getMessageOrBuilder(); + } else { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance() + : includeObjects_; + } + } + + /** + * + * + *
    +     * Optional. The Spanner objects to retrieve from the data source. If some
    +     * objects are both included and excluded, an error will be thrown.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase include_objects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SpannerDatabase, + com.google.cloud.datastream.v1.SpannerDatabase.Builder, + com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder> + internalGetIncludeObjectsFieldBuilder() { + if (includeObjectsBuilder_ == null) { + includeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SpannerDatabase, + com.google.cloud.datastream.v1.SpannerDatabase.Builder, + com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder>( + getIncludeObjects(), getParentForChildren(), isClean()); + includeObjects_ = null; + } + return includeObjectsBuilder_; + } + + private com.google.cloud.datastream.v1.SpannerDatabase excludeObjects_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SpannerDatabase, + com.google.cloud.datastream.v1.SpannerDatabase.Builder, + com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder> + excludeObjectsBuilder_; + + /** + * + * + *
    +     * Optional. The Spanner objects to avoid retrieving. If some objects are both
    +     * included and excluded, an error will be thrown.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase exclude_objects = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the excludeObjects field is set. + */ + public boolean hasExcludeObjects() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
    +     * Optional. The Spanner objects to avoid retrieving. If some objects are both
    +     * included and excluded, an error will be thrown.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase exclude_objects = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludeObjects. + */ + public com.google.cloud.datastream.v1.SpannerDatabase getExcludeObjects() { + if (excludeObjectsBuilder_ == null) { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance() + : excludeObjects_; + } else { + return excludeObjectsBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. The Spanner objects to avoid retrieving. If some objects are both
    +     * included and excluded, an error will be thrown.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase exclude_objects = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExcludeObjects(com.google.cloud.datastream.v1.SpannerDatabase value) { + if (excludeObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + excludeObjects_ = value; + } else { + excludeObjectsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The Spanner objects to avoid retrieving. If some objects are both
    +     * included and excluded, an error will be thrown.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase exclude_objects = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExcludeObjects( + com.google.cloud.datastream.v1.SpannerDatabase.Builder builderForValue) { + if (excludeObjectsBuilder_ == null) { + excludeObjects_ = builderForValue.build(); + } else { + excludeObjectsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The Spanner objects to avoid retrieving. If some objects are both
    +     * included and excluded, an error will be thrown.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase exclude_objects = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.SpannerDatabase value) { + if (excludeObjectsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && excludeObjects_ != null + && excludeObjects_ + != com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance()) { + getExcludeObjectsBuilder().mergeFrom(value); + } else { + excludeObjects_ = value; + } + } else { + excludeObjectsBuilder_.mergeFrom(value); + } + if (excludeObjects_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. The Spanner objects to avoid retrieving. If some objects are both
    +     * included and excluded, an error will be thrown.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase exclude_objects = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExcludeObjects() { + bitField0_ = (bitField0_ & ~0x00000040); + excludeObjects_ = null; + if (excludeObjectsBuilder_ != null) { + excludeObjectsBuilder_.dispose(); + excludeObjectsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The Spanner objects to avoid retrieving. If some objects are both
    +     * included and excluded, an error will be thrown.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase exclude_objects = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SpannerDatabase.Builder getExcludeObjectsBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetExcludeObjectsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. The Spanner objects to avoid retrieving. If some objects are both
    +     * included and excluded, an error will be thrown.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase exclude_objects = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder getExcludeObjectsOrBuilder() { + if (excludeObjectsBuilder_ != null) { + return excludeObjectsBuilder_.getMessageOrBuilder(); + } else { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance() + : excludeObjects_; + } + } + + /** + * + * + *
    +     * Optional. The Spanner objects to avoid retrieving. If some objects are both
    +     * included and excluded, an error will be thrown.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase exclude_objects = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SpannerDatabase, + com.google.cloud.datastream.v1.SpannerDatabase.Builder, + com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder> + internalGetExcludeObjectsFieldBuilder() { + if (excludeObjectsBuilder_ == null) { + excludeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SpannerDatabase, + com.google.cloud.datastream.v1.SpannerDatabase.Builder, + com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder>( + getExcludeObjects(), getParentForChildren(), isClean()); + excludeObjects_ = null; + } + return excludeObjectsBuilder_; + } + + private boolean backfillDataBoostEnabled_; + + /** + * + * + *
    +     * Optional. Whether to use Data Boost for Spanner backfills. Defaults to
    +     * false if not set.
    +     * 
    + * + * bool backfill_data_boost_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The backfillDataBoostEnabled. + */ + @java.lang.Override + public boolean getBackfillDataBoostEnabled() { + return backfillDataBoostEnabled_; + } + + /** + * + * + *
    +     * Optional. Whether to use Data Boost for Spanner backfills. Defaults to
    +     * false if not set.
    +     * 
    + * + * bool backfill_data_boost_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The backfillDataBoostEnabled to set. + * @return This builder for chaining. + */ + public Builder setBackfillDataBoostEnabled(boolean value) { + + backfillDataBoostEnabled_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Whether to use Data Boost for Spanner backfills. Defaults to
    +     * false if not set.
    +     * 
    + * + * bool backfill_data_boost_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBackfillDataBoostEnabled() { + bitField0_ = (bitField0_ & ~0x00000080); + backfillDataBoostEnabled_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SpannerSourceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SpannerSourceConfig) + private static final com.google.cloud.datastream.v1.SpannerSourceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SpannerSourceConfig(); + } + + public static com.google.cloud.datastream.v1.SpannerSourceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpannerSourceConfig 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.datastream.v1.SpannerSourceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerSourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerSourceConfigOrBuilder.java new file mode 100644 index 000000000000..eb53e7de5ab8 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerSourceConfigOrBuilder.java @@ -0,0 +1,246 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface SpannerSourceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SpannerSourceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Immutable. The change stream name to use for the stream.
    +   * 
    + * + * + * string change_stream_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The changeStreamName. + */ + java.lang.String getChangeStreamName(); + + /** + * + * + *
    +   * Required. Immutable. The change stream name to use for the stream.
    +   * 
    + * + * + * string change_stream_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for changeStreamName. + */ + com.google.protobuf.ByteString getChangeStreamNameBytes(); + + /** + * + * + *
    +   * Optional. The RPC priority to use for the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SpannerSourceConfig.SpannerRpcPriority spanner_rpc_priority = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for spannerRpcPriority. + */ + int getSpannerRpcPriorityValue(); + + /** + * + * + *
    +   * Optional. The RPC priority to use for the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SpannerSourceConfig.SpannerRpcPriority spanner_rpc_priority = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The spannerRpcPriority. + */ + com.google.cloud.datastream.v1.SpannerSourceConfig.SpannerRpcPriority getSpannerRpcPriority(); + + /** + * + * + *
    +   * Optional. The FGAC role to use for the stream.
    +   * 
    + * + * string fgac_role = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fgacRole. + */ + java.lang.String getFgacRole(); + + /** + * + * + *
    +   * Optional. The FGAC role to use for the stream.
    +   * 
    + * + * string fgac_role = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fgacRole. + */ + com.google.protobuf.ByteString getFgacRoleBytes(); + + /** + * + * + *
    +   * Optional. Maximum number of concurrent CDC tasks.
    +   * 
    + * + * int32 max_concurrent_cdc_tasks = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxConcurrentCdcTasks. + */ + int getMaxConcurrentCdcTasks(); + + /** + * + * + *
    +   * Optional. Maximum number of concurrent backfill tasks.
    +   * 
    + * + * int32 max_concurrent_backfill_tasks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxConcurrentBackfillTasks. + */ + int getMaxConcurrentBackfillTasks(); + + /** + * + * + *
    +   * Optional. The Spanner objects to retrieve from the data source. If some
    +   * objects are both included and excluded, an error will be thrown.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase include_objects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the includeObjects field is set. + */ + boolean hasIncludeObjects(); + + /** + * + * + *
    +   * Optional. The Spanner objects to retrieve from the data source. If some
    +   * objects are both included and excluded, an error will be thrown.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase include_objects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The includeObjects. + */ + com.google.cloud.datastream.v1.SpannerDatabase getIncludeObjects(); + + /** + * + * + *
    +   * Optional. The Spanner objects to retrieve from the data source. If some
    +   * objects are both included and excluded, an error will be thrown.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase include_objects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder getIncludeObjectsOrBuilder(); + + /** + * + * + *
    +   * Optional. The Spanner objects to avoid retrieving. If some objects are both
    +   * included and excluded, an error will be thrown.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase exclude_objects = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the excludeObjects field is set. + */ + boolean hasExcludeObjects(); + + /** + * + * + *
    +   * Optional. The Spanner objects to avoid retrieving. If some objects are both
    +   * included and excluded, an error will be thrown.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase exclude_objects = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludeObjects. + */ + com.google.cloud.datastream.v1.SpannerDatabase getExcludeObjects(); + + /** + * + * + *
    +   * Optional. The Spanner objects to avoid retrieving. If some objects are both
    +   * included and excluded, an error will be thrown.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SpannerDatabase exclude_objects = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder getExcludeObjectsOrBuilder(); + + /** + * + * + *
    +   * Optional. Whether to use Data Boost for Spanner backfills. Defaults to
    +   * false if not set.
    +   * 
    + * + * bool backfill_data_boost_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The backfillDataBoostEnabled. + */ + boolean getBackfillDataBoostEnabled(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerTable.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerTable.java new file mode 100644 index 000000000000..9fb01ecaa865 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerTable.java @@ -0,0 +1,1156 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * Spanner table.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SpannerTable} + */ +@com.google.protobuf.Generated +public final class SpannerTable extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SpannerTable) + SpannerTableOrBuilder { + 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= */ "", + "SpannerTable"); + } + + // Use SpannerTable.newBuilder() to construct. + private SpannerTable(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SpannerTable() { + table_ = ""; + columns_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerTable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SpannerTable.class, + com.google.cloud.datastream.v1.SpannerTable.Builder.class); + } + + public static final int TABLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object table_ = ""; + + /** + * + * + *
    +   * Required. The table name.
    +   * 
    + * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. + */ + @java.lang.Override + public java.lang.String getTable() { + java.lang.Object ref = table_; + 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(); + table_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The table name.
    +   * 
    + * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COLUMNS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List columns_; + + /** + * + * + *
    +   * Optional. Spanner columns in the table.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getColumnsList() { + return columns_; + } + + /** + * + * + *
    +   * Optional. Spanner columns in the table.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getColumnsOrBuilderList() { + return columns_; + } + + /** + * + * + *
    +   * Optional. Spanner columns in the table.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getColumnsCount() { + return columns_.size(); + } + + /** + * + * + *
    +   * Optional. Spanner columns in the table.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerColumn getColumns(int index) { + return columns_.get(index); + } + + /** + * + * + *
    +   * Optional. Spanner columns in the table.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerColumnOrBuilder getColumnsOrBuilder(int index) { + return columns_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(table_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, table_); + } + for (int i = 0; i < columns_.size(); i++) { + output.writeMessage(2, columns_.get(i)); + } + 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(table_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, table_); + } + for (int i = 0; i < columns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, columns_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.datastream.v1.SpannerTable)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SpannerTable other = + (com.google.cloud.datastream.v1.SpannerTable) obj; + + if (!getTable().equals(other.getTable())) return false; + if (!getColumnsList().equals(other.getColumnsList())) 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) + TABLE_FIELD_NUMBER; + hash = (53 * hash) + getTable().hashCode(); + if (getColumnsCount() > 0) { + hash = (37 * hash) + COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getColumnsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SpannerTable parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SpannerTable 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.datastream.v1.SpannerTable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SpannerTable 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.datastream.v1.SpannerTable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SpannerTable parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SpannerTable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SpannerTable 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.datastream.v1.SpannerTable parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SpannerTable 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.datastream.v1.SpannerTable parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SpannerTable 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.datastream.v1.SpannerTable 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; + } + + /** + * + * + *
    +   * Spanner table.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SpannerTable} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SpannerTable) + com.google.cloud.datastream.v1.SpannerTableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerTable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SpannerTable.class, + com.google.cloud.datastream.v1.SpannerTable.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SpannerTable.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + table_ = ""; + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + } else { + columns_ = null; + columnsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SpannerTable_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerTable getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SpannerTable.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerTable build() { + com.google.cloud.datastream.v1.SpannerTable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerTable buildPartial() { + com.google.cloud.datastream.v1.SpannerTable result = + new com.google.cloud.datastream.v1.SpannerTable(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.SpannerTable result) { + if (columnsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + columns_ = java.util.Collections.unmodifiableList(columns_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.columns_ = columns_; + } else { + result.columns_ = columnsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.datastream.v1.SpannerTable result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.table_ = table_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.SpannerTable) { + return mergeFrom((com.google.cloud.datastream.v1.SpannerTable) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.SpannerTable other) { + if (other == com.google.cloud.datastream.v1.SpannerTable.getDefaultInstance()) return this; + if (!other.getTable().isEmpty()) { + table_ = other.table_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (columnsBuilder_ == null) { + if (!other.columns_.isEmpty()) { + if (columns_.isEmpty()) { + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureColumnsIsMutable(); + columns_.addAll(other.columns_); + } + onChanged(); + } + } else { + if (!other.columns_.isEmpty()) { + if (columnsBuilder_.isEmpty()) { + columnsBuilder_.dispose(); + columnsBuilder_ = null; + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000002); + columnsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetColumnsFieldBuilder() + : null; + } else { + columnsBuilder_.addAllMessages(other.columns_); + } + } + } + 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: + { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.datastream.v1.SpannerColumn m = + input.readMessage( + com.google.cloud.datastream.v1.SpannerColumn.parser(), extensionRegistry); + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(m); + } else { + columnsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object table_ = ""; + + /** + * + * + *
    +     * Required. The table name.
    +     * 
    + * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. + */ + public java.lang.String getTable() { + java.lang.Object ref = table_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + table_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The table name.
    +     * 
    + * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. + */ + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The table name.
    +     * 
    + * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The table to set. + * @return This builder for chaining. + */ + public Builder setTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + table_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The table name.
    +     * 
    + * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTable() { + table_ = getDefaultInstance().getTable(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The table name.
    +     * 
    + * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for table to set. + * @return This builder for chaining. + */ + public Builder setTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + table_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List columns_ = + java.util.Collections.emptyList(); + + private void ensureColumnsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + columns_ = new java.util.ArrayList(columns_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.SpannerColumn, + com.google.cloud.datastream.v1.SpannerColumn.Builder, + com.google.cloud.datastream.v1.SpannerColumnOrBuilder> + columnsBuilder_; + + /** + * + * + *
    +     * Optional. Spanner columns in the table.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getColumnsList() { + if (columnsBuilder_ == null) { + return java.util.Collections.unmodifiableList(columns_); + } else { + return columnsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Optional. Spanner columns in the table.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getColumnsCount() { + if (columnsBuilder_ == null) { + return columns_.size(); + } else { + return columnsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Optional. Spanner columns in the table.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SpannerColumn getColumns(int index) { + if (columnsBuilder_ == null) { + return columns_.get(index); + } else { + return columnsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Optional. Spanner columns in the table.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setColumns(int index, com.google.cloud.datastream.v1.SpannerColumn value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.set(index, value); + onChanged(); + } else { + columnsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner columns in the table.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setColumns( + int index, com.google.cloud.datastream.v1.SpannerColumn.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.set(index, builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner columns in the table.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addColumns(com.google.cloud.datastream.v1.SpannerColumn value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(value); + onChanged(); + } else { + columnsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner columns in the table.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addColumns(int index, com.google.cloud.datastream.v1.SpannerColumn value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(index, value); + onChanged(); + } else { + columnsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner columns in the table.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addColumns( + com.google.cloud.datastream.v1.SpannerColumn.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner columns in the table.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addColumns( + int index, com.google.cloud.datastream.v1.SpannerColumn.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(index, builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner columns in the table.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllColumns( + java.lang.Iterable values) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columns_); + onChanged(); + } else { + columnsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner columns in the table.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearColumns() { + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + columnsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner columns in the table.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeColumns(int index) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.remove(index); + onChanged(); + } else { + columnsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Optional. Spanner columns in the table.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SpannerColumn.Builder getColumnsBuilder(int index) { + return internalGetColumnsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Optional. Spanner columns in the table.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SpannerColumnOrBuilder getColumnsOrBuilder(int index) { + if (columnsBuilder_ == null) { + return columns_.get(index); + } else { + return columnsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Optional. Spanner columns in the table.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getColumnsOrBuilderList() { + if (columnsBuilder_ != null) { + return columnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(columns_); + } + } + + /** + * + * + *
    +     * Optional. Spanner columns in the table.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SpannerColumn.Builder addColumnsBuilder() { + return internalGetColumnsFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.SpannerColumn.getDefaultInstance()); + } + + /** + * + * + *
    +     * Optional. Spanner columns in the table.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SpannerColumn.Builder addColumnsBuilder(int index) { + return internalGetColumnsFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.SpannerColumn.getDefaultInstance()); + } + + /** + * + * + *
    +     * Optional. Spanner columns in the table.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getColumnsBuilderList() { + return internalGetColumnsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.SpannerColumn, + com.google.cloud.datastream.v1.SpannerColumn.Builder, + com.google.cloud.datastream.v1.SpannerColumnOrBuilder> + internalGetColumnsFieldBuilder() { + if (columnsBuilder_ == null) { + columnsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.SpannerColumn, + com.google.cloud.datastream.v1.SpannerColumn.Builder, + com.google.cloud.datastream.v1.SpannerColumnOrBuilder>( + columns_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + columns_ = null; + } + return columnsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SpannerTable) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SpannerTable) + private static final com.google.cloud.datastream.v1.SpannerTable DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SpannerTable(); + } + + public static com.google.cloud.datastream.v1.SpannerTable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpannerTable 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.datastream.v1.SpannerTable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerTableOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerTableOrBuilder.java new file mode 100644 index 000000000000..5fd4b3eb64aa --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SpannerTableOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface SpannerTableOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SpannerTable) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The table name.
    +   * 
    + * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. + */ + java.lang.String getTable(); + + /** + * + * + *
    +   * Required. The table name.
    +   * 
    + * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. + */ + com.google.protobuf.ByteString getTableBytes(); + + /** + * + * + *
    +   * Optional. Spanner columns in the table.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getColumnsList(); + + /** + * + * + *
    +   * Optional. Spanner columns in the table.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SpannerColumn getColumns(int index); + + /** + * + * + *
    +   * Optional. Spanner columns in the table.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getColumnsCount(); + + /** + * + * + *
    +   * Optional. Spanner columns in the table.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getColumnsOrBuilderList(); + + /** + * + * + *
    +   * Optional. Spanner columns in the table.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.SpannerColumn columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SpannerColumnOrBuilder getColumnsOrBuilder(int index); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerChangeTables.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerChangeTables.java index 6d46f0cef751..83672bfa0fe9 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerChangeTables.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerChangeTables.java @@ -68,6 +68,752 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.datastream.v1.SqlServerChangeTables.Builder.class); } + public interface SqlServerDdlConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. If set to true, Datastream will automatically create a new
    +     * capture instance when DDL is detected on a table.The customer will be
    +     * responsible for deleting it so that the next set of DDLs can be handled.
    +     * The default is false and it means that DDL's will not be handled .
    +     * 
    + * + * + * bool auto_create_new_capture_instance_on_ddl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoCreateNewCaptureInstanceOnDdl. + */ + boolean getAutoCreateNewCaptureInstanceOnDdl(); + + /** + * + * + *
    +     * Optional. If set to true, Datastream will automatically delete the old
    +     * capture instance after creating a new one to support a DDL change. The
    +     * default is false and means that the customer has to delete the old
    +     * capture instance manually.
    +     * 
    + * + * bool auto_delete_old_capture_instance = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoDeleteOldCaptureInstance. + */ + boolean getAutoDeleteOldCaptureInstance(); + } + + /** + * + * + *
    +   * DDL configuration for change tables.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig} + */ + public static final class SqlServerDdlConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig) + SqlServerDdlConfigOrBuilder { + 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= */ "", + "SqlServerDdlConfig"); + } + + // Use SqlServerDdlConfig.newBuilder() to construct. + private SqlServerDdlConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SqlServerDdlConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerChangeTables_SqlServerDdlConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerChangeTables_SqlServerDdlConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig.class, + com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig.Builder + .class); + } + + public static final int AUTO_CREATE_NEW_CAPTURE_INSTANCE_ON_DDL_FIELD_NUMBER = 1; + private boolean autoCreateNewCaptureInstanceOnDdl_ = false; + + /** + * + * + *
    +     * Optional. If set to true, Datastream will automatically create a new
    +     * capture instance when DDL is detected on a table.The customer will be
    +     * responsible for deleting it so that the next set of DDLs can be handled.
    +     * The default is false and it means that DDL's will not be handled .
    +     * 
    + * + * + * bool auto_create_new_capture_instance_on_ddl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoCreateNewCaptureInstanceOnDdl. + */ + @java.lang.Override + public boolean getAutoCreateNewCaptureInstanceOnDdl() { + return autoCreateNewCaptureInstanceOnDdl_; + } + + public static final int AUTO_DELETE_OLD_CAPTURE_INSTANCE_FIELD_NUMBER = 2; + private boolean autoDeleteOldCaptureInstance_ = false; + + /** + * + * + *
    +     * Optional. If set to true, Datastream will automatically delete the old
    +     * capture instance after creating a new one to support a DDL change. The
    +     * default is false and means that the customer has to delete the old
    +     * capture instance manually.
    +     * 
    + * + * bool auto_delete_old_capture_instance = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoDeleteOldCaptureInstance. + */ + @java.lang.Override + public boolean getAutoDeleteOldCaptureInstance() { + return autoDeleteOldCaptureInstance_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (autoCreateNewCaptureInstanceOnDdl_ != false) { + output.writeBool(1, autoCreateNewCaptureInstanceOnDdl_); + } + if (autoDeleteOldCaptureInstance_ != false) { + output.writeBool(2, autoDeleteOldCaptureInstance_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (autoCreateNewCaptureInstanceOnDdl_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 1, autoCreateNewCaptureInstanceOnDdl_); + } + if (autoDeleteOldCaptureInstance_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(2, autoDeleteOldCaptureInstance_); + } + 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.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig other = + (com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig) obj; + + if (getAutoCreateNewCaptureInstanceOnDdl() != other.getAutoCreateNewCaptureInstanceOnDdl()) + return false; + if (getAutoDeleteOldCaptureInstance() != other.getAutoDeleteOldCaptureInstance()) + 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) + AUTO_CREATE_NEW_CAPTURE_INSTANCE_ON_DDL_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getAutoCreateNewCaptureInstanceOnDdl()); + hash = (37 * hash) + AUTO_DELETE_OLD_CAPTURE_INSTANCE_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoDeleteOldCaptureInstance()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig 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.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig 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.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig 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.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig + 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.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig 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.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig 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; + } + + /** + * + * + *
    +     * DDL configuration for change tables.
    +     * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig) + com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerChangeTables_SqlServerDdlConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerChangeTables_SqlServerDdlConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig.class, + com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + autoCreateNewCaptureInstanceOnDdl_ = false; + autoDeleteOldCaptureInstance_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerChangeTables_SqlServerDdlConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig build() { + com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig + buildPartial() { + com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig result = + new com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.autoCreateNewCaptureInstanceOnDdl_ = autoCreateNewCaptureInstanceOnDdl_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.autoDeleteOldCaptureInstance_ = autoDeleteOldCaptureInstance_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig) { + return mergeFrom( + (com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig other) { + if (other + == com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig + .getDefaultInstance()) return this; + if (other.getAutoCreateNewCaptureInstanceOnDdl() != false) { + setAutoCreateNewCaptureInstanceOnDdl(other.getAutoCreateNewCaptureInstanceOnDdl()); + } + if (other.getAutoDeleteOldCaptureInstance() != false) { + setAutoDeleteOldCaptureInstance(other.getAutoDeleteOldCaptureInstance()); + } + 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 8: + { + autoCreateNewCaptureInstanceOnDdl_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + autoDeleteOldCaptureInstance_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean autoCreateNewCaptureInstanceOnDdl_; + + /** + * + * + *
    +       * Optional. If set to true, Datastream will automatically create a new
    +       * capture instance when DDL is detected on a table.The customer will be
    +       * responsible for deleting it so that the next set of DDLs can be handled.
    +       * The default is false and it means that DDL's will not be handled .
    +       * 
    + * + * + * bool auto_create_new_capture_instance_on_ddl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoCreateNewCaptureInstanceOnDdl. + */ + @java.lang.Override + public boolean getAutoCreateNewCaptureInstanceOnDdl() { + return autoCreateNewCaptureInstanceOnDdl_; + } + + /** + * + * + *
    +       * Optional. If set to true, Datastream will automatically create a new
    +       * capture instance when DDL is detected on a table.The customer will be
    +       * responsible for deleting it so that the next set of DDLs can be handled.
    +       * The default is false and it means that DDL's will not be handled .
    +       * 
    + * + * + * bool auto_create_new_capture_instance_on_ddl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The autoCreateNewCaptureInstanceOnDdl to set. + * @return This builder for chaining. + */ + public Builder setAutoCreateNewCaptureInstanceOnDdl(boolean value) { + + autoCreateNewCaptureInstanceOnDdl_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. If set to true, Datastream will automatically create a new
    +       * capture instance when DDL is detected on a table.The customer will be
    +       * responsible for deleting it so that the next set of DDLs can be handled.
    +       * The default is false and it means that DDL's will not be handled .
    +       * 
    + * + * + * bool auto_create_new_capture_instance_on_ddl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAutoCreateNewCaptureInstanceOnDdl() { + bitField0_ = (bitField0_ & ~0x00000001); + autoCreateNewCaptureInstanceOnDdl_ = false; + onChanged(); + return this; + } + + private boolean autoDeleteOldCaptureInstance_; + + /** + * + * + *
    +       * Optional. If set to true, Datastream will automatically delete the old
    +       * capture instance after creating a new one to support a DDL change. The
    +       * default is false and means that the customer has to delete the old
    +       * capture instance manually.
    +       * 
    + * + * bool auto_delete_old_capture_instance = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoDeleteOldCaptureInstance. + */ + @java.lang.Override + public boolean getAutoDeleteOldCaptureInstance() { + return autoDeleteOldCaptureInstance_; + } + + /** + * + * + *
    +       * Optional. If set to true, Datastream will automatically delete the old
    +       * capture instance after creating a new one to support a DDL change. The
    +       * default is false and means that the customer has to delete the old
    +       * capture instance manually.
    +       * 
    + * + * bool auto_delete_old_capture_instance = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The autoDeleteOldCaptureInstance to set. + * @return This builder for chaining. + */ + public Builder setAutoDeleteOldCaptureInstance(boolean value) { + + autoDeleteOldCaptureInstance_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. If set to true, Datastream will automatically delete the old
    +       * capture instance after creating a new one to support a DDL change. The
    +       * default is false and means that the customer has to delete the old
    +       * capture instance manually.
    +       * 
    + * + * bool auto_delete_old_capture_instance = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAutoDeleteOldCaptureInstance() { + bitField0_ = (bitField0_ & ~0x00000002); + autoDeleteOldCaptureInstance_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig) + private static final com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig(); + } + + public static com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlServerDdlConfig 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.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int DDL_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig ddlConfig_; + + /** + * + * + *
    +   * Optional. DDL configuration for change tables.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig ddl_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ddlConfig field is set. + */ + @java.lang.Override + public boolean hasDdlConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Optional. DDL configuration for change tables.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig ddl_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ddlConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig getDdlConfig() { + return ddlConfig_ == null + ? com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig + .getDefaultInstance() + : ddlConfig_; + } + + /** + * + * + *
    +   * Optional. DDL configuration for change tables.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig ddl_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfigOrBuilder + getDdlConfigOrBuilder() { + return ddlConfig_ == null + ? com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig + .getDefaultInstance() + : ddlConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -82,6 +828,9 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getDdlConfig()); + } getUnknownFields().writeTo(output); } @@ -91,6 +840,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDdlConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -107,6 +859,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.datastream.v1.SqlServerChangeTables other = (com.google.cloud.datastream.v1.SqlServerChangeTables) obj; + if (hasDdlConfig() != other.hasDdlConfig()) return false; + if (hasDdlConfig()) { + if (!getDdlConfig().equals(other.getDdlConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -118,6 +874,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDdlConfig()) { + hash = (37 * hash) + DDL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDdlConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -248,15 +1008,30 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.datastream.v1.SqlServerChangeTables.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDdlConfigFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; + ddlConfig_ = null; + if (ddlConfigBuilder_ != null) { + ddlConfigBuilder_.dispose(); + ddlConfigBuilder_ = null; + } return this; } @@ -284,10 +1059,23 @@ public com.google.cloud.datastream.v1.SqlServerChangeTables build() { public com.google.cloud.datastream.v1.SqlServerChangeTables buildPartial() { com.google.cloud.datastream.v1.SqlServerChangeTables result = new com.google.cloud.datastream.v1.SqlServerChangeTables(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.datastream.v1.SqlServerChangeTables result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ddlConfig_ = ddlConfigBuilder_ == null ? ddlConfig_ : ddlConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.SqlServerChangeTables) { @@ -301,6 +1089,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.datastream.v1.SqlServerChangeTables other) { if (other == com.google.cloud.datastream.v1.SqlServerChangeTables.getDefaultInstance()) return this; + if (other.hasDdlConfig()) { + mergeDdlConfig(other.getDdlConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -327,6 +1118,13 @@ public Builder mergeFrom( case 0: done = true; break; + case 10: + { + input.readMessage( + internalGetDdlConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -344,6 +1142,230 @@ public Builder mergeFrom( return this; } + private int bitField0_; + + private com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig ddlConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig, + com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig.Builder, + com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfigOrBuilder> + ddlConfigBuilder_; + + /** + * + * + *
    +     * Optional. DDL configuration for change tables.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig ddl_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ddlConfig field is set. + */ + public boolean hasDdlConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. DDL configuration for change tables.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig ddl_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ddlConfig. + */ + public com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig getDdlConfig() { + if (ddlConfigBuilder_ == null) { + return ddlConfig_ == null + ? com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig + .getDefaultInstance() + : ddlConfig_; + } else { + return ddlConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. DDL configuration for change tables.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig ddl_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDdlConfig( + com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig value) { + if (ddlConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ddlConfig_ = value; + } else { + ddlConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. DDL configuration for change tables.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig ddl_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDdlConfig( + com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig.Builder + builderForValue) { + if (ddlConfigBuilder_ == null) { + ddlConfig_ = builderForValue.build(); + } else { + ddlConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. DDL configuration for change tables.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig ddl_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDdlConfig( + com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig value) { + if (ddlConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && ddlConfig_ != null + && ddlConfig_ + != com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig + .getDefaultInstance()) { + getDdlConfigBuilder().mergeFrom(value); + } else { + ddlConfig_ = value; + } + } else { + ddlConfigBuilder_.mergeFrom(value); + } + if (ddlConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. DDL configuration for change tables.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig ddl_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDdlConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + ddlConfig_ = null; + if (ddlConfigBuilder_ != null) { + ddlConfigBuilder_.dispose(); + ddlConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. DDL configuration for change tables.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig ddl_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig.Builder + getDdlConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetDdlConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. DDL configuration for change tables.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig ddl_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfigOrBuilder + getDdlConfigOrBuilder() { + if (ddlConfigBuilder_ != null) { + return ddlConfigBuilder_.getMessageOrBuilder(); + } else { + return ddlConfig_ == null + ? com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig + .getDefaultInstance() + : ddlConfig_; + } + } + + /** + * + * + *
    +     * Optional. DDL configuration for change tables.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig ddl_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig, + com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig.Builder, + com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfigOrBuilder> + internalGetDdlConfigFieldBuilder() { + if (ddlConfigBuilder_ == null) { + ddlConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig, + com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig.Builder, + com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfigOrBuilder>( + getDdlConfig(), getParentForChildren(), isClean()); + ddlConfig_ = null; + } + return ddlConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SqlServerChangeTables) } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerChangeTablesOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerChangeTablesOrBuilder.java index 4697a2531a58..9d5f606260f1 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerChangeTablesOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerChangeTablesOrBuilder.java @@ -24,4 +24,49 @@ public interface SqlServerChangeTablesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SqlServerChangeTables) - com.google.protobuf.MessageOrBuilder {} + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. DDL configuration for change tables.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig ddl_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ddlConfig field is set. + */ + boolean hasDdlConfig(); + + /** + * + * + *
    +   * Optional. DDL configuration for change tables.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig ddl_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ddlConfig. + */ + com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig getDdlConfig(); + + /** + * + * + *
    +   * Optional. DDL configuration for change tables.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfig ddl_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SqlServerChangeTables.SqlServerDdlConfigOrBuilder + getDdlConfigOrBuilder(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerColumn.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerColumn.java index 139f49b20861..81ed774d2261 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerColumn.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerColumn.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Column name.
    +   * The column name.
        * 
    * * string column = 1; @@ -104,7 +104,7 @@ public java.lang.String getColumn() { * * *
    -   * Column name.
    +   * The column name.
        * 
    * * string column = 1; @@ -762,7 +762,7 @@ public Builder mergeFrom( * * *
    -     * Column name.
    +     * The column name.
          * 
    * * string column = 1; @@ -785,7 +785,7 @@ public java.lang.String getColumn() { * * *
    -     * Column name.
    +     * The column name.
          * 
    * * string column = 1; @@ -808,7 +808,7 @@ public com.google.protobuf.ByteString getColumnBytes() { * * *
    -     * Column name.
    +     * The column name.
          * 
    * * string column = 1; @@ -830,7 +830,7 @@ public Builder setColumn(java.lang.String value) { * * *
    -     * Column name.
    +     * The column name.
          * 
    * * string column = 1; @@ -848,7 +848,7 @@ public Builder clearColumn() { * * *
    -     * Column name.
    +     * The column name.
          * 
    * * string column = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerColumnOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerColumnOrBuilder.java index f6a12bddb170..78edd88cddb2 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerColumnOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerColumnOrBuilder.java @@ -30,7 +30,7 @@ public interface SqlServerColumnOrBuilder * * *
    -   * Column name.
    +   * The column name.
        * 
    * * string column = 1; @@ -43,7 +43,7 @@ public interface SqlServerColumnOrBuilder * * *
    -   * Column name.
    +   * The column name.
        * 
    * * string column = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerProfile.java index ddb112374b3a..f1f1eea84318 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerProfile.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerProfile.java @@ -24,7 +24,7 @@ * * *
    - * SQLServer database profile.
    + * Profile for connecting to a SQLServer source.
      * 
    * * Protobuf type {@code google.cloud.datastream.v1.SqlServerProfile} @@ -74,6 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.datastream.v1.SqlServerProfile.Builder.class); } + private int bitField0_; public static final int HOSTNAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -307,6 +308,65 @@ public com.google.protobuf.ByteString getDatabaseBytes() { } } + public static final int SSL_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.datastream.v1.SqlServerSslConfig sslConfig_; + + /** + * + * + *
    +   * Optional. SSL configuration for the SQLServer connection.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sslConfig field is set. + */ + @java.lang.Override + public boolean hasSslConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Optional. SSL configuration for the SQLServer connection.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sslConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig getSslConfig() { + return sslConfig_ == null + ? com.google.cloud.datastream.v1.SqlServerSslConfig.getDefaultInstance() + : sslConfig_; + } + + /** + * + * + *
    +   * Optional. SSL configuration for the SQLServer connection.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfigOrBuilder getSslConfigOrBuilder() { + return sslConfig_ == null + ? com.google.cloud.datastream.v1.SqlServerSslConfig.getDefaultInstance() + : sslConfig_; + } + public static final int SECRET_MANAGER_STORED_PASSWORD_FIELD_NUMBER = 7; @SuppressWarnings("serial") @@ -395,6 +455,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, database_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getSslConfig()); + } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(secretManagerStoredPassword_)) { com.google.protobuf.GeneratedMessage.writeString(output, 7, secretManagerStoredPassword_); } @@ -422,6 +485,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(database_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, database_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSslConfig()); + } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(secretManagerStoredPassword_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(7, secretManagerStoredPassword_); @@ -447,6 +513,10 @@ public boolean equals(final java.lang.Object obj) { if (!getUsername().equals(other.getUsername())) return false; if (!getPassword().equals(other.getPassword())) return false; if (!getDatabase().equals(other.getDatabase())) return false; + if (hasSslConfig() != other.hasSslConfig()) return false; + if (hasSslConfig()) { + if (!getSslConfig().equals(other.getSslConfig())) return false; + } if (!getSecretManagerStoredPassword().equals(other.getSecretManagerStoredPassword())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -470,6 +540,10 @@ public int hashCode() { hash = (53 * hash) + getPassword().hashCode(); hash = (37 * hash) + DATABASE_FIELD_NUMBER; hash = (53 * hash) + getDatabase().hashCode(); + if (hasSslConfig()) { + hash = (37 * hash) + SSL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSslConfig().hashCode(); + } hash = (37 * hash) + SECRET_MANAGER_STORED_PASSWORD_FIELD_NUMBER; hash = (53 * hash) + getSecretManagerStoredPassword().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -577,7 +651,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
    -   * SQLServer database profile.
    +   * Profile for connecting to a SQLServer source.
        * 
    * * Protobuf type {@code google.cloud.datastream.v1.SqlServerProfile} @@ -602,10 +676,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.datastream.v1.SqlServerProfile.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSslConfigFieldBuilder(); + } } @java.lang.Override @@ -617,6 +700,11 @@ public Builder clear() { username_ = ""; password_ = ""; database_ = ""; + sslConfig_ = null; + if (sslConfigBuilder_ != null) { + sslConfigBuilder_.dispose(); + sslConfigBuilder_ = null; + } secretManagerStoredPassword_ = ""; return this; } @@ -669,9 +757,15 @@ private void buildPartial0(com.google.cloud.datastream.v1.SqlServerProfile resul if (((from_bitField0_ & 0x00000010) != 0)) { result.database_ = database_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000020) != 0)) { + result.sslConfig_ = sslConfigBuilder_ == null ? sslConfig_ : sslConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { result.secretManagerStoredPassword_ = secretManagerStoredPassword_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -710,9 +804,12 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.SqlServerProfile other) bitField0_ |= 0x00000010; onChanged(); } + if (other.hasSslConfig()) { + mergeSslConfig(other.getSslConfig()); + } if (!other.getSecretManagerStoredPassword().isEmpty()) { secretManagerStoredPassword_ = other.secretManagerStoredPassword_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -771,10 +868,17 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 50: + { + input.readMessage( + internalGetSslConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 case 58: { secretManagerStoredPassword_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 58 default: @@ -1301,6 +1405,220 @@ public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.datastream.v1.SqlServerSslConfig sslConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SqlServerSslConfig, + com.google.cloud.datastream.v1.SqlServerSslConfig.Builder, + com.google.cloud.datastream.v1.SqlServerSslConfigOrBuilder> + sslConfigBuilder_; + + /** + * + * + *
    +     * Optional. SSL configuration for the SQLServer connection.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sslConfig field is set. + */ + public boolean hasSslConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +     * Optional. SSL configuration for the SQLServer connection.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sslConfig. + */ + public com.google.cloud.datastream.v1.SqlServerSslConfig getSslConfig() { + if (sslConfigBuilder_ == null) { + return sslConfig_ == null + ? com.google.cloud.datastream.v1.SqlServerSslConfig.getDefaultInstance() + : sslConfig_; + } else { + return sslConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. SSL configuration for the SQLServer connection.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSslConfig(com.google.cloud.datastream.v1.SqlServerSslConfig value) { + if (sslConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sslConfig_ = value; + } else { + sslConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. SSL configuration for the SQLServer connection.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSslConfig( + com.google.cloud.datastream.v1.SqlServerSslConfig.Builder builderForValue) { + if (sslConfigBuilder_ == null) { + sslConfig_ = builderForValue.build(); + } else { + sslConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. SSL configuration for the SQLServer connection.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSslConfig(com.google.cloud.datastream.v1.SqlServerSslConfig value) { + if (sslConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && sslConfig_ != null + && sslConfig_ + != com.google.cloud.datastream.v1.SqlServerSslConfig.getDefaultInstance()) { + getSslConfigBuilder().mergeFrom(value); + } else { + sslConfig_ = value; + } + } else { + sslConfigBuilder_.mergeFrom(value); + } + if (sslConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. SSL configuration for the SQLServer connection.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSslConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + sslConfig_ = null; + if (sslConfigBuilder_ != null) { + sslConfigBuilder_.dispose(); + sslConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. SSL configuration for the SQLServer connection.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SqlServerSslConfig.Builder getSslConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetSslConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. SSL configuration for the SQLServer connection.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SqlServerSslConfigOrBuilder getSslConfigOrBuilder() { + if (sslConfigBuilder_ != null) { + return sslConfigBuilder_.getMessageOrBuilder(); + } else { + return sslConfig_ == null + ? com.google.cloud.datastream.v1.SqlServerSslConfig.getDefaultInstance() + : sslConfig_; + } + } + + /** + * + * + *
    +     * Optional. SSL configuration for the SQLServer connection.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SqlServerSslConfig, + com.google.cloud.datastream.v1.SqlServerSslConfig.Builder, + com.google.cloud.datastream.v1.SqlServerSslConfigOrBuilder> + internalGetSslConfigFieldBuilder() { + if (sslConfigBuilder_ == null) { + sslConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SqlServerSslConfig, + com.google.cloud.datastream.v1.SqlServerSslConfig.Builder, + com.google.cloud.datastream.v1.SqlServerSslConfigOrBuilder>( + getSslConfig(), getParentForChildren(), isClean()); + sslConfig_ = null; + } + return sslConfigBuilder_; + } + private java.lang.Object secretManagerStoredPassword_ = ""; /** @@ -1375,7 +1693,7 @@ public Builder setSecretManagerStoredPassword(java.lang.String value) { throw new NullPointerException(); } secretManagerStoredPassword_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1396,7 +1714,7 @@ public Builder setSecretManagerStoredPassword(java.lang.String value) { */ public Builder clearSecretManagerStoredPassword() { secretManagerStoredPassword_ = getDefaultInstance().getSecretManagerStoredPassword(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -1422,7 +1740,7 @@ public Builder setSecretManagerStoredPasswordBytes(com.google.protobuf.ByteStrin } checkByteStringIsUtf8(value); secretManagerStoredPassword_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerProfileOrBuilder.java index 8b2ab04b392d..f4cc3c23dc90 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerProfileOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerProfileOrBuilder.java @@ -145,6 +145,49 @@ public interface SqlServerProfileOrBuilder */ com.google.protobuf.ByteString getDatabaseBytes(); + /** + * + * + *
    +   * Optional. SSL configuration for the SQLServer connection.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sslConfig field is set. + */ + boolean hasSslConfig(); + + /** + * + * + *
    +   * Optional. SSL configuration for the SQLServer connection.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sslConfig. + */ + com.google.cloud.datastream.v1.SqlServerSslConfig getSslConfig(); + + /** + * + * + *
    +   * Optional. SSL configuration for the SQLServer connection.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SqlServerSslConfigOrBuilder getSslConfigOrBuilder(); + /** * * diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSchema.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSchema.java index 349064ace82b..9464e745e4ec 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSchema.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSchema.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Schema name.
    +   * The schema name.
        * 
    * * string schema = 1; @@ -104,7 +104,7 @@ public java.lang.String getSchema() { * * *
    -   * Schema name.
    +   * The schema name.
        * 
    * * string schema = 1; @@ -586,7 +586,7 @@ public Builder mergeFrom( * * *
    -     * Schema name.
    +     * The schema name.
          * 
    * * string schema = 1; @@ -609,7 +609,7 @@ public java.lang.String getSchema() { * * *
    -     * Schema name.
    +     * The schema name.
          * 
    * * string schema = 1; @@ -632,7 +632,7 @@ public com.google.protobuf.ByteString getSchemaBytes() { * * *
    -     * Schema name.
    +     * The schema name.
          * 
    * * string schema = 1; @@ -654,7 +654,7 @@ public Builder setSchema(java.lang.String value) { * * *
    -     * Schema name.
    +     * The schema name.
          * 
    * * string schema = 1; @@ -672,7 +672,7 @@ public Builder clearSchema() { * * *
    -     * Schema name.
    +     * The schema name.
          * 
    * * string schema = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSchemaOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSchemaOrBuilder.java index 7c6a16ca3fbf..24efd75aef8b 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSchemaOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSchemaOrBuilder.java @@ -30,7 +30,7 @@ public interface SqlServerSchemaOrBuilder * * *
    -   * Schema name.
    +   * The schema name.
        * 
    * * string schema = 1; @@ -43,7 +43,7 @@ public interface SqlServerSchemaOrBuilder * * *
    -   * Schema name.
    +   * The schema name.
        * 
    * * string schema = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSourceConfig.java index 02b757558ed5..d325f96db892 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSourceConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSourceConfig.java @@ -24,7 +24,7 @@ * * *
    - * SQLServer data source configuration
    + * Configuration for syncing data from a SQLServer source.
      * 
    * * Protobuf type {@code google.cloud.datastream.v1.SqlServerSourceConfig} @@ -126,7 +126,7 @@ public CdcMethodCase getCdcMethodCase() { * * *
    -   * SQLServer objects to include in the stream.
    +   * The SQLServer objects to include in the stream.
        * 
    * * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; @@ -142,7 +142,7 @@ public boolean hasIncludeObjects() { * * *
    -   * SQLServer objects to include in the stream.
    +   * The SQLServer objects to include in the stream.
        * 
    * * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; @@ -160,7 +160,7 @@ public com.google.cloud.datastream.v1.SqlServerRdbms getIncludeObjects() { * * *
    -   * SQLServer objects to include in the stream.
    +   * The SQLServer objects to include in the stream.
        * 
    * * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; @@ -179,7 +179,7 @@ public com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder getIncludeObjectsO * * *
    -   * SQLServer objects to exclude from the stream.
    +   * The SQLServer objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; @@ -195,7 +195,7 @@ public boolean hasExcludeObjects() { * * *
    -   * SQLServer objects to exclude from the stream.
    +   * The SQLServer objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; @@ -213,7 +213,7 @@ public com.google.cloud.datastream.v1.SqlServerRdbms getExcludeObjects() { * * *
    -   * SQLServer objects to exclude from the stream.
    +   * The SQLServer objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; @@ -614,7 +614,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
    -   * SQLServer data source configuration
    +   * Configuration for syncing data from a SQLServer source.
        * 
    * * Protobuf type {@code google.cloud.datastream.v1.SqlServerSourceConfig} @@ -898,7 +898,7 @@ public Builder clearCdcMethod() { * * *
    -     * SQLServer objects to include in the stream.
    +     * The SQLServer objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; @@ -913,7 +913,7 @@ public boolean hasIncludeObjects() { * * *
    -     * SQLServer objects to include in the stream.
    +     * The SQLServer objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; @@ -934,7 +934,7 @@ public com.google.cloud.datastream.v1.SqlServerRdbms getIncludeObjects() { * * *
    -     * SQLServer objects to include in the stream.
    +     * The SQLServer objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; @@ -957,7 +957,7 @@ public Builder setIncludeObjects(com.google.cloud.datastream.v1.SqlServerRdbms v * * *
    -     * SQLServer objects to include in the stream.
    +     * The SQLServer objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; @@ -978,7 +978,7 @@ public Builder setIncludeObjects( * * *
    -     * SQLServer objects to include in the stream.
    +     * The SQLServer objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; @@ -1007,7 +1007,7 @@ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.SqlServerRdbms * * *
    -     * SQLServer objects to include in the stream.
    +     * The SQLServer objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; @@ -1027,7 +1027,7 @@ public Builder clearIncludeObjects() { * * *
    -     * SQLServer objects to include in the stream.
    +     * The SQLServer objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; @@ -1042,7 +1042,7 @@ public com.google.cloud.datastream.v1.SqlServerRdbms.Builder getIncludeObjectsBu * * *
    -     * SQLServer objects to include in the stream.
    +     * The SQLServer objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; @@ -1061,7 +1061,7 @@ public com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder getIncludeObjectsO * * *
    -     * SQLServer objects to include in the stream.
    +     * The SQLServer objects to include in the stream.
          * 
    * * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; @@ -1094,7 +1094,7 @@ public com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder getIncludeObjectsO * * *
    -     * SQLServer objects to exclude from the stream.
    +     * The SQLServer objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; @@ -1109,7 +1109,7 @@ public boolean hasExcludeObjects() { * * *
    -     * SQLServer objects to exclude from the stream.
    +     * The SQLServer objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; @@ -1130,7 +1130,7 @@ public com.google.cloud.datastream.v1.SqlServerRdbms getExcludeObjects() { * * *
    -     * SQLServer objects to exclude from the stream.
    +     * The SQLServer objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; @@ -1153,7 +1153,7 @@ public Builder setExcludeObjects(com.google.cloud.datastream.v1.SqlServerRdbms v * * *
    -     * SQLServer objects to exclude from the stream.
    +     * The SQLServer objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; @@ -1174,7 +1174,7 @@ public Builder setExcludeObjects( * * *
    -     * SQLServer objects to exclude from the stream.
    +     * The SQLServer objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; @@ -1203,7 +1203,7 @@ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.SqlServerRdbms * * *
    -     * SQLServer objects to exclude from the stream.
    +     * The SQLServer objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; @@ -1223,7 +1223,7 @@ public Builder clearExcludeObjects() { * * *
    -     * SQLServer objects to exclude from the stream.
    +     * The SQLServer objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; @@ -1238,7 +1238,7 @@ public com.google.cloud.datastream.v1.SqlServerRdbms.Builder getExcludeObjectsBu * * *
    -     * SQLServer objects to exclude from the stream.
    +     * The SQLServer objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; @@ -1257,7 +1257,7 @@ public com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder getExcludeObjectsO * * *
    -     * SQLServer objects to exclude from the stream.
    +     * The SQLServer objects to exclude from the stream.
          * 
    * * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSourceConfigOrBuilder.java index 9a816b2780ee..be57d96a8508 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSourceConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSourceConfigOrBuilder.java @@ -30,7 +30,7 @@ public interface SqlServerSourceConfigOrBuilder * * *
    -   * SQLServer objects to include in the stream.
    +   * The SQLServer objects to include in the stream.
        * 
    * * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; @@ -43,7 +43,7 @@ public interface SqlServerSourceConfigOrBuilder * * *
    -   * SQLServer objects to include in the stream.
    +   * The SQLServer objects to include in the stream.
        * 
    * * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; @@ -56,7 +56,7 @@ public interface SqlServerSourceConfigOrBuilder * * *
    -   * SQLServer objects to include in the stream.
    +   * The SQLServer objects to include in the stream.
        * 
    * * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; @@ -67,7 +67,7 @@ public interface SqlServerSourceConfigOrBuilder * * *
    -   * SQLServer objects to exclude from the stream.
    +   * The SQLServer objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; @@ -80,7 +80,7 @@ public interface SqlServerSourceConfigOrBuilder * * *
    -   * SQLServer objects to exclude from the stream.
    +   * The SQLServer objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; @@ -93,7 +93,7 @@ public interface SqlServerSourceConfigOrBuilder * * *
    -   * SQLServer objects to exclude from the stream.
    +   * The SQLServer objects to exclude from the stream.
        * 
    * * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSslConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSslConfig.java new file mode 100644 index 000000000000..8a95026230ec --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSslConfig.java @@ -0,0 +1,3448 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * SQL Server SSL configuration information.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerSslConfig} + */ +@com.google.protobuf.Generated +public final class SqlServerSslConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SqlServerSslConfig) + SqlServerSslConfigOrBuilder { + 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= */ "", + "SqlServerSslConfig"); + } + + // Use SqlServerSslConfig.newBuilder() to construct. + private SqlServerSslConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SqlServerSslConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSslConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSslConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerSslConfig.class, + com.google.cloud.datastream.v1.SqlServerSslConfig.Builder.class); + } + + public interface EncryptionNotEnforcedOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced) + com.google.protobuf.MessageOrBuilder {} + + /** + * + * + *
    +   * Message to represent the option where encryption is not enforced. An empty
    +   * message right now to allow future extensibility.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced} + */ + public static final class EncryptionNotEnforced extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced) + EncryptionNotEnforcedOrBuilder { + 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= */ "", + "EncryptionNotEnforced"); + } + + // Use EncryptionNotEnforced.newBuilder() to construct. + private EncryptionNotEnforced(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EncryptionNotEnforced() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSslConfig_EncryptionNotEnforced_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSslConfig_EncryptionNotEnforced_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced.class, + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced.Builder + .class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced other = + (com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced) obj; + + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced 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.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced 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.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced 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.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced + 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.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced 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.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced 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; + } + + /** + * + * + *
    +     * Message to represent the option where encryption is not enforced. An empty
    +     * message right now to allow future extensibility.
    +     * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced) + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforcedOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSslConfig_EncryptionNotEnforced_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSslConfig_EncryptionNotEnforced_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced.class, + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced.Builder + .class); + } + + // Construct using + // com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSslConfig_EncryptionNotEnforced_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced build() { + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced + buildPartial() { + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced result = + new com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced) { + return mergeFrom( + (com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced other) { + if (other + == com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced + .getDefaultInstance()) return this; + 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; + 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced) + private static final com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced(); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EncryptionNotEnforced 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.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface BasicEncryptionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption) + com.google.protobuf.MessageOrBuilder {} + + /** + * + * + *
    +   * Message to represent the option where Datastream will enforce encryption
    +   * without authenticating server identity. Server certificates will be trusted
    +   * by default.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption} + */ + public static final class BasicEncryption extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption) + BasicEncryptionOrBuilder { + 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= */ "", + "BasicEncryption"); + } + + // Use BasicEncryption.newBuilder() to construct. + private BasicEncryption(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BasicEncryption() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSslConfig_BasicEncryption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSslConfig_BasicEncryption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption.class, + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.datastream.v1.SqlServerSslConfig.BasicEncryption)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption other = + (com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption) obj; + + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption 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.datastream.v1.SqlServerSslConfig.BasicEncryption parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption 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.datastream.v1.SqlServerSslConfig.BasicEncryption parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption 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.datastream.v1.SqlServerSslConfig.BasicEncryption + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption + 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.datastream.v1.SqlServerSslConfig.BasicEncryption parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption 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.datastream.v1.SqlServerSslConfig.BasicEncryption 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; + } + + /** + * + * + *
    +     * Message to represent the option where Datastream will enforce encryption
    +     * without authenticating server identity. Server certificates will be trusted
    +     * by default.
    +     * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption) + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSslConfig_BasicEncryption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSslConfig_BasicEncryption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption.class, + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption.Builder.class); + } + + // Construct using + // com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSslConfig_BasicEncryption_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption build() { + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption buildPartial() { + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption result = + new com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption) { + return mergeFrom( + (com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption other) { + if (other + == com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption + .getDefaultInstance()) return this; + 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; + 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption) + private static final com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption(); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BasicEncryption 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.datastream.v1.SqlServerSslConfig.BasicEncryption + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface EncryptionAndServerValidationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. Input only. PEM-encoded certificate of the CA that signed the
    +     * source database server's certificate.
    +     * 
    + * + * + * string ca_certificate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The caCertificate. + */ + java.lang.String getCaCertificate(); + + /** + * + * + *
    +     * Optional. Input only. PEM-encoded certificate of the CA that signed the
    +     * source database server's certificate.
    +     * 
    + * + * + * string ca_certificate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for caCertificate. + */ + com.google.protobuf.ByteString getCaCertificateBytes(); + + /** + * + * + *
    +     * Optional. The hostname mentioned in the Subject or SAN extension of the
    +     * server certificate. This field is used for bypassing the hostname
    +     * validation while verifying server certificate. This is required for
    +     * scenarios where the host name that datastream connects to is different
    +     * from the certificate's subject. This specifically happens for private
    +     * connectivity. It could also happen when the customer provides
    +     * a public IP in connection profile but the same is not present in the
    +     * server certificate.
    +     * 
    + * + * + * optional string server_certificate_hostname = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serverCertificateHostname field is set. + */ + boolean hasServerCertificateHostname(); + + /** + * + * + *
    +     * Optional. The hostname mentioned in the Subject or SAN extension of the
    +     * server certificate. This field is used for bypassing the hostname
    +     * validation while verifying server certificate. This is required for
    +     * scenarios where the host name that datastream connects to is different
    +     * from the certificate's subject. This specifically happens for private
    +     * connectivity. It could also happen when the customer provides
    +     * a public IP in connection profile but the same is not present in the
    +     * server certificate.
    +     * 
    + * + * + * optional string server_certificate_hostname = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serverCertificateHostname. + */ + java.lang.String getServerCertificateHostname(); + + /** + * + * + *
    +     * Optional. The hostname mentioned in the Subject or SAN extension of the
    +     * server certificate. This field is used for bypassing the hostname
    +     * validation while verifying server certificate. This is required for
    +     * scenarios where the host name that datastream connects to is different
    +     * from the certificate's subject. This specifically happens for private
    +     * connectivity. It could also happen when the customer provides
    +     * a public IP in connection profile but the same is not present in the
    +     * server certificate.
    +     * 
    + * + * + * optional string server_certificate_hostname = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for serverCertificateHostname. + */ + com.google.protobuf.ByteString getServerCertificateHostnameBytes(); + } + + /** + * + * + *
    +   * Message to represent the option where Datastream will enforce encryption
    +   * and authenticate server identity. ca_certificate must be set if user
    +   * selects this option.
    +   * 
    + * + * Protobuf type {@code + * google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation} + */ + public static final class EncryptionAndServerValidation + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation) + EncryptionAndServerValidationOrBuilder { + 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= */ "", + "EncryptionAndServerValidation"); + } + + // Use EncryptionAndServerValidation.newBuilder() to construct. + private EncryptionAndServerValidation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EncryptionAndServerValidation() { + caCertificate_ = ""; + serverCertificateHostname_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSslConfig_EncryptionAndServerValidation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSslConfig_EncryptionAndServerValidation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation.class, + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + .Builder.class); + } + + private int bitField0_; + public static final int CA_CERTIFICATE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object caCertificate_ = ""; + + /** + * + * + *
    +     * Optional. Input only. PEM-encoded certificate of the CA that signed the
    +     * source database server's certificate.
    +     * 
    + * + * + * string ca_certificate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The caCertificate. + */ + @java.lang.Override + public java.lang.String getCaCertificate() { + java.lang.Object ref = caCertificate_; + 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(); + caCertificate_ = s; + return s; + } + } + + /** + * + * + *
    +     * Optional. Input only. PEM-encoded certificate of the CA that signed the
    +     * source database server's certificate.
    +     * 
    + * + * + * string ca_certificate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for caCertificate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCaCertificateBytes() { + java.lang.Object ref = caCertificate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + caCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVER_CERTIFICATE_HOSTNAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object serverCertificateHostname_ = ""; + + /** + * + * + *
    +     * Optional. The hostname mentioned in the Subject or SAN extension of the
    +     * server certificate. This field is used for bypassing the hostname
    +     * validation while verifying server certificate. This is required for
    +     * scenarios where the host name that datastream connects to is different
    +     * from the certificate's subject. This specifically happens for private
    +     * connectivity. It could also happen when the customer provides
    +     * a public IP in connection profile but the same is not present in the
    +     * server certificate.
    +     * 
    + * + * + * optional string server_certificate_hostname = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serverCertificateHostname field is set. + */ + @java.lang.Override + public boolean hasServerCertificateHostname() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. The hostname mentioned in the Subject or SAN extension of the
    +     * server certificate. This field is used for bypassing the hostname
    +     * validation while verifying server certificate. This is required for
    +     * scenarios where the host name that datastream connects to is different
    +     * from the certificate's subject. This specifically happens for private
    +     * connectivity. It could also happen when the customer provides
    +     * a public IP in connection profile but the same is not present in the
    +     * server certificate.
    +     * 
    + * + * + * optional string server_certificate_hostname = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serverCertificateHostname. + */ + @java.lang.Override + public java.lang.String getServerCertificateHostname() { + java.lang.Object ref = serverCertificateHostname_; + 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(); + serverCertificateHostname_ = s; + return s; + } + } + + /** + * + * + *
    +     * Optional. The hostname mentioned in the Subject or SAN extension of the
    +     * server certificate. This field is used for bypassing the hostname
    +     * validation while verifying server certificate. This is required for
    +     * scenarios where the host name that datastream connects to is different
    +     * from the certificate's subject. This specifically happens for private
    +     * connectivity. It could also happen when the customer provides
    +     * a public IP in connection profile but the same is not present in the
    +     * server certificate.
    +     * 
    + * + * + * optional string server_certificate_hostname = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for serverCertificateHostname. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServerCertificateHostnameBytes() { + java.lang.Object ref = serverCertificateHostname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serverCertificateHostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(caCertificate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, caCertificate_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, serverCertificateHostname_); + } + 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(caCertificate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, caCertificate_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(3, serverCertificateHostname_); + } + 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.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation other = + (com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation) obj; + + if (!getCaCertificate().equals(other.getCaCertificate())) return false; + if (hasServerCertificateHostname() != other.hasServerCertificateHostname()) return false; + if (hasServerCertificateHostname()) { + if (!getServerCertificateHostname().equals(other.getServerCertificateHostname())) + 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) + CA_CERTIFICATE_FIELD_NUMBER; + hash = (53 * hash) + getCaCertificate().hashCode(); + if (hasServerCertificateHostname()) { + hash = (37 * hash) + SERVER_CERTIFICATE_HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getServerCertificateHostname().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + 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.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + 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.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + 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.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + 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.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + 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.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation 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; + } + + /** + * + * + *
    +     * Message to represent the option where Datastream will enforce encryption
    +     * and authenticate server identity. ca_certificate must be set if user
    +     * selects this option.
    +     * 
    + * + * Protobuf type {@code + * google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation) + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSslConfig_EncryptionAndServerValidation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSslConfig_EncryptionAndServerValidation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + .class, + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + .Builder.class); + } + + // Construct using + // com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + caCertificate_ = ""; + serverCertificateHostname_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSslConfig_EncryptionAndServerValidation_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + build() { + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + buildPartial() { + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation result = + new com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.caCertificate_ = caCertificate_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.serverCertificateHostname_ = serverCertificateHostname_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation) { + return mergeFrom( + (com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation other) { + if (other + == com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + .getDefaultInstance()) return this; + if (!other.getCaCertificate().isEmpty()) { + caCertificate_ = other.caCertificate_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasServerCertificateHostname()) { + serverCertificateHostname_ = other.serverCertificateHostname_; + bitField0_ |= 0x00000002; + 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 18: + { + caCertificate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: + { + serverCertificateHostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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 caCertificate_ = ""; + + /** + * + * + *
    +       * Optional. Input only. PEM-encoded certificate of the CA that signed the
    +       * source database server's certificate.
    +       * 
    + * + * + * string ca_certificate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The caCertificate. + */ + public java.lang.String getCaCertificate() { + java.lang.Object ref = caCertificate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caCertificate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Optional. Input only. PEM-encoded certificate of the CA that signed the
    +       * source database server's certificate.
    +       * 
    + * + * + * string ca_certificate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for caCertificate. + */ + public com.google.protobuf.ByteString getCaCertificateBytes() { + java.lang.Object ref = caCertificate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + caCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Optional. Input only. PEM-encoded certificate of the CA that signed the
    +       * source database server's certificate.
    +       * 
    + * + * + * string ca_certificate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The caCertificate to set. + * @return This builder for chaining. + */ + public Builder setCaCertificate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + caCertificate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Input only. PEM-encoded certificate of the CA that signed the
    +       * source database server's certificate.
    +       * 
    + * + * + * string ca_certificate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearCaCertificate() { + caCertificate_ = getDefaultInstance().getCaCertificate(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Input only. PEM-encoded certificate of the CA that signed the
    +       * source database server's certificate.
    +       * 
    + * + * + * string ca_certificate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for caCertificate to set. + * @return This builder for chaining. + */ + public Builder setCaCertificateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + caCertificate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object serverCertificateHostname_ = ""; + + /** + * + * + *
    +       * Optional. The hostname mentioned in the Subject or SAN extension of the
    +       * server certificate. This field is used for bypassing the hostname
    +       * validation while verifying server certificate. This is required for
    +       * scenarios where the host name that datastream connects to is different
    +       * from the certificate's subject. This specifically happens for private
    +       * connectivity. It could also happen when the customer provides
    +       * a public IP in connection profile but the same is not present in the
    +       * server certificate.
    +       * 
    + * + * + * optional string server_certificate_hostname = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serverCertificateHostname field is set. + */ + public boolean hasServerCertificateHostname() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +       * Optional. The hostname mentioned in the Subject or SAN extension of the
    +       * server certificate. This field is used for bypassing the hostname
    +       * validation while verifying server certificate. This is required for
    +       * scenarios where the host name that datastream connects to is different
    +       * from the certificate's subject. This specifically happens for private
    +       * connectivity. It could also happen when the customer provides
    +       * a public IP in connection profile but the same is not present in the
    +       * server certificate.
    +       * 
    + * + * + * optional string server_certificate_hostname = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serverCertificateHostname. + */ + public java.lang.String getServerCertificateHostname() { + java.lang.Object ref = serverCertificateHostname_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serverCertificateHostname_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Optional. The hostname mentioned in the Subject or SAN extension of the
    +       * server certificate. This field is used for bypassing the hostname
    +       * validation while verifying server certificate. This is required for
    +       * scenarios where the host name that datastream connects to is different
    +       * from the certificate's subject. This specifically happens for private
    +       * connectivity. It could also happen when the customer provides
    +       * a public IP in connection profile but the same is not present in the
    +       * server certificate.
    +       * 
    + * + * + * optional string server_certificate_hostname = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for serverCertificateHostname. + */ + public com.google.protobuf.ByteString getServerCertificateHostnameBytes() { + java.lang.Object ref = serverCertificateHostname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serverCertificateHostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Optional. The hostname mentioned in the Subject or SAN extension of the
    +       * server certificate. This field is used for bypassing the hostname
    +       * validation while verifying server certificate. This is required for
    +       * scenarios where the host name that datastream connects to is different
    +       * from the certificate's subject. This specifically happens for private
    +       * connectivity. It could also happen when the customer provides
    +       * a public IP in connection profile but the same is not present in the
    +       * server certificate.
    +       * 
    + * + * + * optional string server_certificate_hostname = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The serverCertificateHostname to set. + * @return This builder for chaining. + */ + public Builder setServerCertificateHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serverCertificateHostname_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The hostname mentioned in the Subject or SAN extension of the
    +       * server certificate. This field is used for bypassing the hostname
    +       * validation while verifying server certificate. This is required for
    +       * scenarios where the host name that datastream connects to is different
    +       * from the certificate's subject. This specifically happens for private
    +       * connectivity. It could also happen when the customer provides
    +       * a public IP in connection profile but the same is not present in the
    +       * server certificate.
    +       * 
    + * + * + * optional string server_certificate_hostname = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearServerCertificateHostname() { + serverCertificateHostname_ = getDefaultInstance().getServerCertificateHostname(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The hostname mentioned in the Subject or SAN extension of the
    +       * server certificate. This field is used for bypassing the hostname
    +       * validation while verifying server certificate. This is required for
    +       * scenarios where the host name that datastream connects to is different
    +       * from the certificate's subject. This specifically happens for private
    +       * connectivity. It could also happen when the customer provides
    +       * a public IP in connection profile but the same is not present in the
    +       * server certificate.
    +       * 
    + * + * + * optional string server_certificate_hostname = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for serverCertificateHostname to set. + * @return This builder for chaining. + */ + public Builder setServerCertificateHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serverCertificateHostname_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation) + private static final com.google.cloud.datastream.v1.SqlServerSslConfig + .EncryptionAndServerValidation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation(); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EncryptionAndServerValidation 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.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int encryptionSettingCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object encryptionSetting_; + + public enum EncryptionSettingCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ENCRYPTION_NOT_ENFORCED(1), + BASIC_ENCRYPTION(2), + ENCRYPTION_AND_SERVER_VALIDATION(3), + ENCRYPTIONSETTING_NOT_SET(0); + private final int value; + + private EncryptionSettingCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EncryptionSettingCase valueOf(int value) { + return forNumber(value); + } + + public static EncryptionSettingCase forNumber(int value) { + switch (value) { + case 1: + return ENCRYPTION_NOT_ENFORCED; + case 2: + return BASIC_ENCRYPTION; + case 3: + return ENCRYPTION_AND_SERVER_VALIDATION; + case 0: + return ENCRYPTIONSETTING_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EncryptionSettingCase getEncryptionSettingCase() { + return EncryptionSettingCase.forNumber(encryptionSettingCase_); + } + + public static final int ENCRYPTION_NOT_ENFORCED_FIELD_NUMBER = 1; + + /** + * + * + *
    +   * If set, Datastream will not enforce encryption. If the DB server mandates
    +   * encryption, then connection will be encrypted but server identity will
    +   * not be authenticated.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced encryption_not_enforced = 1; + * + * + * @return Whether the encryptionNotEnforced field is set. + */ + @java.lang.Override + public boolean hasEncryptionNotEnforced() { + return encryptionSettingCase_ == 1; + } + + /** + * + * + *
    +   * If set, Datastream will not enforce encryption. If the DB server mandates
    +   * encryption, then connection will be encrypted but server identity will
    +   * not be authenticated.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced encryption_not_enforced = 1; + * + * + * @return The encryptionNotEnforced. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced + getEncryptionNotEnforced() { + if (encryptionSettingCase_ == 1) { + return (com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced) + encryptionSetting_; + } + return com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced + .getDefaultInstance(); + } + + /** + * + * + *
    +   * If set, Datastream will not enforce encryption. If the DB server mandates
    +   * encryption, then connection will be encrypted but server identity will
    +   * not be authenticated.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced encryption_not_enforced = 1; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforcedOrBuilder + getEncryptionNotEnforcedOrBuilder() { + if (encryptionSettingCase_ == 1) { + return (com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced) + encryptionSetting_; + } + return com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced + .getDefaultInstance(); + } + + public static final int BASIC_ENCRYPTION_FIELD_NUMBER = 2; + + /** + * + * + *
    +   * If set, Datastream will enforce encryption without authenticating server
    +   * identity. Server certificates will be trusted by default.
    +   * 
    + * + * .google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption basic_encryption = 2; + * + * + * @return Whether the basicEncryption field is set. + */ + @java.lang.Override + public boolean hasBasicEncryption() { + return encryptionSettingCase_ == 2; + } + + /** + * + * + *
    +   * If set, Datastream will enforce encryption without authenticating server
    +   * identity. Server certificates will be trusted by default.
    +   * 
    + * + * .google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption basic_encryption = 2; + * + * + * @return The basicEncryption. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption getBasicEncryption() { + if (encryptionSettingCase_ == 2) { + return (com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption) encryptionSetting_; + } + return com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption.getDefaultInstance(); + } + + /** + * + * + *
    +   * If set, Datastream will enforce encryption without authenticating server
    +   * identity. Server certificates will be trusted by default.
    +   * 
    + * + * .google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption basic_encryption = 2; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryptionOrBuilder + getBasicEncryptionOrBuilder() { + if (encryptionSettingCase_ == 2) { + return (com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption) encryptionSetting_; + } + return com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption.getDefaultInstance(); + } + + public static final int ENCRYPTION_AND_SERVER_VALIDATION_FIELD_NUMBER = 3; + + /** + * + * + *
    +   * If set, Datastream will enforce encryption and authenticate server
    +   * identity.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation encryption_and_server_validation = 3; + * + * + * @return Whether the encryptionAndServerValidation field is set. + */ + @java.lang.Override + public boolean hasEncryptionAndServerValidation() { + return encryptionSettingCase_ == 3; + } + + /** + * + * + *
    +   * If set, Datastream will enforce encryption and authenticate server
    +   * identity.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation encryption_and_server_validation = 3; + * + * + * @return The encryptionAndServerValidation. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + getEncryptionAndServerValidation() { + if (encryptionSettingCase_ == 3) { + return (com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation) + encryptionSetting_; + } + return com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + .getDefaultInstance(); + } + + /** + * + * + *
    +   * If set, Datastream will enforce encryption and authenticate server
    +   * identity.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation encryption_and_server_validation = 3; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidationOrBuilder + getEncryptionAndServerValidationOrBuilder() { + if (encryptionSettingCase_ == 3) { + return (com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation) + encryptionSetting_; + } + return com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (encryptionSettingCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced) + encryptionSetting_); + } + if (encryptionSettingCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption) encryptionSetting_); + } + if (encryptionSettingCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation) + encryptionSetting_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (encryptionSettingCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced) + encryptionSetting_); + } + if (encryptionSettingCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption) + encryptionSetting_); + } + if (encryptionSettingCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation) + encryptionSetting_); + } + 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.datastream.v1.SqlServerSslConfig)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SqlServerSslConfig other = + (com.google.cloud.datastream.v1.SqlServerSslConfig) obj; + + if (!getEncryptionSettingCase().equals(other.getEncryptionSettingCase())) return false; + switch (encryptionSettingCase_) { + case 1: + if (!getEncryptionNotEnforced().equals(other.getEncryptionNotEnforced())) return false; + break; + case 2: + if (!getBasicEncryption().equals(other.getBasicEncryption())) return false; + break; + case 3: + if (!getEncryptionAndServerValidation().equals(other.getEncryptionAndServerValidation())) + return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (encryptionSettingCase_) { + case 1: + hash = (37 * hash) + ENCRYPTION_NOT_ENFORCED_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionNotEnforced().hashCode(); + break; + case 2: + hash = (37 * hash) + BASIC_ENCRYPTION_FIELD_NUMBER; + hash = (53 * hash) + getBasicEncryption().hashCode(); + break; + case 3: + hash = (37 * hash) + ENCRYPTION_AND_SERVER_VALIDATION_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionAndServerValidation().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig 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.datastream.v1.SqlServerSslConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig 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.datastream.v1.SqlServerSslConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig 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.datastream.v1.SqlServerSslConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig 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.datastream.v1.SqlServerSslConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig 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.datastream.v1.SqlServerSslConfig 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; + } + + /** + * + * + *
    +   * SQL Server SSL configuration information.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerSslConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SqlServerSslConfig) + com.google.cloud.datastream.v1.SqlServerSslConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSslConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSslConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerSslConfig.class, + com.google.cloud.datastream.v1.SqlServerSslConfig.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SqlServerSslConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (encryptionNotEnforcedBuilder_ != null) { + encryptionNotEnforcedBuilder_.clear(); + } + if (basicEncryptionBuilder_ != null) { + basicEncryptionBuilder_.clear(); + } + if (encryptionAndServerValidationBuilder_ != null) { + encryptionAndServerValidationBuilder_.clear(); + } + encryptionSettingCase_ = 0; + encryptionSetting_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSslConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SqlServerSslConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig build() { + com.google.cloud.datastream.v1.SqlServerSslConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig buildPartial() { + com.google.cloud.datastream.v1.SqlServerSslConfig result = + new com.google.cloud.datastream.v1.SqlServerSslConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.SqlServerSslConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.datastream.v1.SqlServerSslConfig result) { + result.encryptionSettingCase_ = encryptionSettingCase_; + result.encryptionSetting_ = this.encryptionSetting_; + if (encryptionSettingCase_ == 1 && encryptionNotEnforcedBuilder_ != null) { + result.encryptionSetting_ = encryptionNotEnforcedBuilder_.build(); + } + if (encryptionSettingCase_ == 2 && basicEncryptionBuilder_ != null) { + result.encryptionSetting_ = basicEncryptionBuilder_.build(); + } + if (encryptionSettingCase_ == 3 && encryptionAndServerValidationBuilder_ != null) { + result.encryptionSetting_ = encryptionAndServerValidationBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.SqlServerSslConfig) { + return mergeFrom((com.google.cloud.datastream.v1.SqlServerSslConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.SqlServerSslConfig other) { + if (other == com.google.cloud.datastream.v1.SqlServerSslConfig.getDefaultInstance()) + return this; + switch (other.getEncryptionSettingCase()) { + case ENCRYPTION_NOT_ENFORCED: + { + mergeEncryptionNotEnforced(other.getEncryptionNotEnforced()); + break; + } + case BASIC_ENCRYPTION: + { + mergeBasicEncryption(other.getBasicEncryption()); + break; + } + case ENCRYPTION_AND_SERVER_VALIDATION: + { + mergeEncryptionAndServerValidation(other.getEncryptionAndServerValidation()); + break; + } + case ENCRYPTIONSETTING_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetEncryptionNotEnforcedFieldBuilder().getBuilder(), extensionRegistry); + encryptionSettingCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetBasicEncryptionFieldBuilder().getBuilder(), extensionRegistry); + encryptionSettingCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetEncryptionAndServerValidationFieldBuilder().getBuilder(), + extensionRegistry); + encryptionSettingCase_ = 3; + 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 encryptionSettingCase_ = 0; + private java.lang.Object encryptionSetting_; + + public EncryptionSettingCase getEncryptionSettingCase() { + return EncryptionSettingCase.forNumber(encryptionSettingCase_); + } + + public Builder clearEncryptionSetting() { + encryptionSettingCase_ = 0; + encryptionSetting_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced, + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced.Builder, + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforcedOrBuilder> + encryptionNotEnforcedBuilder_; + + /** + * + * + *
    +     * If set, Datastream will not enforce encryption. If the DB server mandates
    +     * encryption, then connection will be encrypted but server identity will
    +     * not be authenticated.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced encryption_not_enforced = 1; + * + * + * @return Whether the encryptionNotEnforced field is set. + */ + @java.lang.Override + public boolean hasEncryptionNotEnforced() { + return encryptionSettingCase_ == 1; + } + + /** + * + * + *
    +     * If set, Datastream will not enforce encryption. If the DB server mandates
    +     * encryption, then connection will be encrypted but server identity will
    +     * not be authenticated.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced encryption_not_enforced = 1; + * + * + * @return The encryptionNotEnforced. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced + getEncryptionNotEnforced() { + if (encryptionNotEnforcedBuilder_ == null) { + if (encryptionSettingCase_ == 1) { + return (com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced) + encryptionSetting_; + } + return com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced + .getDefaultInstance(); + } else { + if (encryptionSettingCase_ == 1) { + return encryptionNotEnforcedBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * If set, Datastream will not enforce encryption. If the DB server mandates
    +     * encryption, then connection will be encrypted but server identity will
    +     * not be authenticated.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced encryption_not_enforced = 1; + * + */ + public Builder setEncryptionNotEnforced( + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced value) { + if (encryptionNotEnforcedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionSetting_ = value; + onChanged(); + } else { + encryptionNotEnforcedBuilder_.setMessage(value); + } + encryptionSettingCase_ = 1; + return this; + } + + /** + * + * + *
    +     * If set, Datastream will not enforce encryption. If the DB server mandates
    +     * encryption, then connection will be encrypted but server identity will
    +     * not be authenticated.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced encryption_not_enforced = 1; + * + */ + public Builder setEncryptionNotEnforced( + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced.Builder + builderForValue) { + if (encryptionNotEnforcedBuilder_ == null) { + encryptionSetting_ = builderForValue.build(); + onChanged(); + } else { + encryptionNotEnforcedBuilder_.setMessage(builderForValue.build()); + } + encryptionSettingCase_ = 1; + return this; + } + + /** + * + * + *
    +     * If set, Datastream will not enforce encryption. If the DB server mandates
    +     * encryption, then connection will be encrypted but server identity will
    +     * not be authenticated.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced encryption_not_enforced = 1; + * + */ + public Builder mergeEncryptionNotEnforced( + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced value) { + if (encryptionNotEnforcedBuilder_ == null) { + if (encryptionSettingCase_ == 1 + && encryptionSetting_ + != com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced + .getDefaultInstance()) { + encryptionSetting_ = + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced.newBuilder( + (com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced) + encryptionSetting_) + .mergeFrom(value) + .buildPartial(); + } else { + encryptionSetting_ = value; + } + onChanged(); + } else { + if (encryptionSettingCase_ == 1) { + encryptionNotEnforcedBuilder_.mergeFrom(value); + } else { + encryptionNotEnforcedBuilder_.setMessage(value); + } + } + encryptionSettingCase_ = 1; + return this; + } + + /** + * + * + *
    +     * If set, Datastream will not enforce encryption. If the DB server mandates
    +     * encryption, then connection will be encrypted but server identity will
    +     * not be authenticated.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced encryption_not_enforced = 1; + * + */ + public Builder clearEncryptionNotEnforced() { + if (encryptionNotEnforcedBuilder_ == null) { + if (encryptionSettingCase_ == 1) { + encryptionSettingCase_ = 0; + encryptionSetting_ = null; + onChanged(); + } + } else { + if (encryptionSettingCase_ == 1) { + encryptionSettingCase_ = 0; + encryptionSetting_ = null; + } + encryptionNotEnforcedBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * If set, Datastream will not enforce encryption. If the DB server mandates
    +     * encryption, then connection will be encrypted but server identity will
    +     * not be authenticated.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced encryption_not_enforced = 1; + * + */ + public com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced.Builder + getEncryptionNotEnforcedBuilder() { + return internalGetEncryptionNotEnforcedFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * If set, Datastream will not enforce encryption. If the DB server mandates
    +     * encryption, then connection will be encrypted but server identity will
    +     * not be authenticated.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced encryption_not_enforced = 1; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforcedOrBuilder + getEncryptionNotEnforcedOrBuilder() { + if ((encryptionSettingCase_ == 1) && (encryptionNotEnforcedBuilder_ != null)) { + return encryptionNotEnforcedBuilder_.getMessageOrBuilder(); + } else { + if (encryptionSettingCase_ == 1) { + return (com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced) + encryptionSetting_; + } + return com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * If set, Datastream will not enforce encryption. If the DB server mandates
    +     * encryption, then connection will be encrypted but server identity will
    +     * not be authenticated.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced encryption_not_enforced = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced, + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced.Builder, + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforcedOrBuilder> + internalGetEncryptionNotEnforcedFieldBuilder() { + if (encryptionNotEnforcedBuilder_ == null) { + if (!(encryptionSettingCase_ == 1)) { + encryptionSetting_ = + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced + .getDefaultInstance(); + } + encryptionNotEnforcedBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced, + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced.Builder, + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforcedOrBuilder>( + (com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced) + encryptionSetting_, + getParentForChildren(), + isClean()); + encryptionSetting_ = null; + } + encryptionSettingCase_ = 1; + onChanged(); + return encryptionNotEnforcedBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption, + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption.Builder, + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryptionOrBuilder> + basicEncryptionBuilder_; + + /** + * + * + *
    +     * If set, Datastream will enforce encryption without authenticating server
    +     * identity. Server certificates will be trusted by default.
    +     * 
    + * + * .google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption basic_encryption = 2; + * + * + * @return Whether the basicEncryption field is set. + */ + @java.lang.Override + public boolean hasBasicEncryption() { + return encryptionSettingCase_ == 2; + } + + /** + * + * + *
    +     * If set, Datastream will enforce encryption without authenticating server
    +     * identity. Server certificates will be trusted by default.
    +     * 
    + * + * .google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption basic_encryption = 2; + * + * + * @return The basicEncryption. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption getBasicEncryption() { + if (basicEncryptionBuilder_ == null) { + if (encryptionSettingCase_ == 2) { + return (com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption) + encryptionSetting_; + } + return com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption + .getDefaultInstance(); + } else { + if (encryptionSettingCase_ == 2) { + return basicEncryptionBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * If set, Datastream will enforce encryption without authenticating server
    +     * identity. Server certificates will be trusted by default.
    +     * 
    + * + * .google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption basic_encryption = 2; + * + */ + public Builder setBasicEncryption( + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption value) { + if (basicEncryptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionSetting_ = value; + onChanged(); + } else { + basicEncryptionBuilder_.setMessage(value); + } + encryptionSettingCase_ = 2; + return this; + } + + /** + * + * + *
    +     * If set, Datastream will enforce encryption without authenticating server
    +     * identity. Server certificates will be trusted by default.
    +     * 
    + * + * .google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption basic_encryption = 2; + * + */ + public Builder setBasicEncryption( + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption.Builder builderForValue) { + if (basicEncryptionBuilder_ == null) { + encryptionSetting_ = builderForValue.build(); + onChanged(); + } else { + basicEncryptionBuilder_.setMessage(builderForValue.build()); + } + encryptionSettingCase_ = 2; + return this; + } + + /** + * + * + *
    +     * If set, Datastream will enforce encryption without authenticating server
    +     * identity. Server certificates will be trusted by default.
    +     * 
    + * + * .google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption basic_encryption = 2; + * + */ + public Builder mergeBasicEncryption( + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption value) { + if (basicEncryptionBuilder_ == null) { + if (encryptionSettingCase_ == 2 + && encryptionSetting_ + != com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption + .getDefaultInstance()) { + encryptionSetting_ = + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption.newBuilder( + (com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption) + encryptionSetting_) + .mergeFrom(value) + .buildPartial(); + } else { + encryptionSetting_ = value; + } + onChanged(); + } else { + if (encryptionSettingCase_ == 2) { + basicEncryptionBuilder_.mergeFrom(value); + } else { + basicEncryptionBuilder_.setMessage(value); + } + } + encryptionSettingCase_ = 2; + return this; + } + + /** + * + * + *
    +     * If set, Datastream will enforce encryption without authenticating server
    +     * identity. Server certificates will be trusted by default.
    +     * 
    + * + * .google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption basic_encryption = 2; + * + */ + public Builder clearBasicEncryption() { + if (basicEncryptionBuilder_ == null) { + if (encryptionSettingCase_ == 2) { + encryptionSettingCase_ = 0; + encryptionSetting_ = null; + onChanged(); + } + } else { + if (encryptionSettingCase_ == 2) { + encryptionSettingCase_ = 0; + encryptionSetting_ = null; + } + basicEncryptionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * If set, Datastream will enforce encryption without authenticating server
    +     * identity. Server certificates will be trusted by default.
    +     * 
    + * + * .google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption basic_encryption = 2; + * + */ + public com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption.Builder + getBasicEncryptionBuilder() { + return internalGetBasicEncryptionFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * If set, Datastream will enforce encryption without authenticating server
    +     * identity. Server certificates will be trusted by default.
    +     * 
    + * + * .google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption basic_encryption = 2; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryptionOrBuilder + getBasicEncryptionOrBuilder() { + if ((encryptionSettingCase_ == 2) && (basicEncryptionBuilder_ != null)) { + return basicEncryptionBuilder_.getMessageOrBuilder(); + } else { + if (encryptionSettingCase_ == 2) { + return (com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption) + encryptionSetting_; + } + return com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * If set, Datastream will enforce encryption without authenticating server
    +     * identity. Server certificates will be trusted by default.
    +     * 
    + * + * .google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption basic_encryption = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption, + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption.Builder, + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryptionOrBuilder> + internalGetBasicEncryptionFieldBuilder() { + if (basicEncryptionBuilder_ == null) { + if (!(encryptionSettingCase_ == 2)) { + encryptionSetting_ = + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption + .getDefaultInstance(); + } + basicEncryptionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption, + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption.Builder, + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryptionOrBuilder>( + (com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption) + encryptionSetting_, + getParentForChildren(), + isClean()); + encryptionSetting_ = null; + } + encryptionSettingCase_ = 2; + onChanged(); + return basicEncryptionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation, + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation.Builder, + com.google.cloud.datastream.v1.SqlServerSslConfig + .EncryptionAndServerValidationOrBuilder> + encryptionAndServerValidationBuilder_; + + /** + * + * + *
    +     * If set, Datastream will enforce encryption and authenticate server
    +     * identity.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation encryption_and_server_validation = 3; + * + * + * @return Whether the encryptionAndServerValidation field is set. + */ + @java.lang.Override + public boolean hasEncryptionAndServerValidation() { + return encryptionSettingCase_ == 3; + } + + /** + * + * + *
    +     * If set, Datastream will enforce encryption and authenticate server
    +     * identity.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation encryption_and_server_validation = 3; + * + * + * @return The encryptionAndServerValidation. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + getEncryptionAndServerValidation() { + if (encryptionAndServerValidationBuilder_ == null) { + if (encryptionSettingCase_ == 3) { + return (com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation) + encryptionSetting_; + } + return com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + .getDefaultInstance(); + } else { + if (encryptionSettingCase_ == 3) { + return encryptionAndServerValidationBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * If set, Datastream will enforce encryption and authenticate server
    +     * identity.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation encryption_and_server_validation = 3; + * + */ + public Builder setEncryptionAndServerValidation( + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation value) { + if (encryptionAndServerValidationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionSetting_ = value; + onChanged(); + } else { + encryptionAndServerValidationBuilder_.setMessage(value); + } + encryptionSettingCase_ = 3; + return this; + } + + /** + * + * + *
    +     * If set, Datastream will enforce encryption and authenticate server
    +     * identity.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation encryption_and_server_validation = 3; + * + */ + public Builder setEncryptionAndServerValidation( + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation.Builder + builderForValue) { + if (encryptionAndServerValidationBuilder_ == null) { + encryptionSetting_ = builderForValue.build(); + onChanged(); + } else { + encryptionAndServerValidationBuilder_.setMessage(builderForValue.build()); + } + encryptionSettingCase_ = 3; + return this; + } + + /** + * + * + *
    +     * If set, Datastream will enforce encryption and authenticate server
    +     * identity.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation encryption_and_server_validation = 3; + * + */ + public Builder mergeEncryptionAndServerValidation( + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation value) { + if (encryptionAndServerValidationBuilder_ == null) { + if (encryptionSettingCase_ == 3 + && encryptionSetting_ + != com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + .getDefaultInstance()) { + encryptionSetting_ = + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + .newBuilder( + (com.google.cloud.datastream.v1.SqlServerSslConfig + .EncryptionAndServerValidation) + encryptionSetting_) + .mergeFrom(value) + .buildPartial(); + } else { + encryptionSetting_ = value; + } + onChanged(); + } else { + if (encryptionSettingCase_ == 3) { + encryptionAndServerValidationBuilder_.mergeFrom(value); + } else { + encryptionAndServerValidationBuilder_.setMessage(value); + } + } + encryptionSettingCase_ = 3; + return this; + } + + /** + * + * + *
    +     * If set, Datastream will enforce encryption and authenticate server
    +     * identity.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation encryption_and_server_validation = 3; + * + */ + public Builder clearEncryptionAndServerValidation() { + if (encryptionAndServerValidationBuilder_ == null) { + if (encryptionSettingCase_ == 3) { + encryptionSettingCase_ = 0; + encryptionSetting_ = null; + onChanged(); + } + } else { + if (encryptionSettingCase_ == 3) { + encryptionSettingCase_ = 0; + encryptionSetting_ = null; + } + encryptionAndServerValidationBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * If set, Datastream will enforce encryption and authenticate server
    +     * identity.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation encryption_and_server_validation = 3; + * + */ + public com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation.Builder + getEncryptionAndServerValidationBuilder() { + return internalGetEncryptionAndServerValidationFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * If set, Datastream will enforce encryption and authenticate server
    +     * identity.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation encryption_and_server_validation = 3; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidationOrBuilder + getEncryptionAndServerValidationOrBuilder() { + if ((encryptionSettingCase_ == 3) && (encryptionAndServerValidationBuilder_ != null)) { + return encryptionAndServerValidationBuilder_.getMessageOrBuilder(); + } else { + if (encryptionSettingCase_ == 3) { + return (com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation) + encryptionSetting_; + } + return com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * If set, Datastream will enforce encryption and authenticate server
    +     * identity.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation encryption_and_server_validation = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation, + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation.Builder, + com.google.cloud.datastream.v1.SqlServerSslConfig + .EncryptionAndServerValidationOrBuilder> + internalGetEncryptionAndServerValidationFieldBuilder() { + if (encryptionAndServerValidationBuilder_ == null) { + if (!(encryptionSettingCase_ == 3)) { + encryptionSetting_ = + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + .getDefaultInstance(); + } + encryptionAndServerValidationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation, + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + .Builder, + com.google.cloud.datastream.v1.SqlServerSslConfig + .EncryptionAndServerValidationOrBuilder>( + (com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation) + encryptionSetting_, + getParentForChildren(), + isClean()); + encryptionSetting_ = null; + } + encryptionSettingCase_ = 3; + onChanged(); + return encryptionAndServerValidationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SqlServerSslConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SqlServerSslConfig) + private static final com.google.cloud.datastream.v1.SqlServerSslConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SqlServerSslConfig(); + } + + public static com.google.cloud.datastream.v1.SqlServerSslConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlServerSslConfig 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.datastream.v1.SqlServerSslConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSslConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSslConfigOrBuilder.java new file mode 100644 index 000000000000..5f04c6732f30 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSslConfigOrBuilder.java @@ -0,0 +1,174 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface SqlServerSslConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SqlServerSslConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * If set, Datastream will not enforce encryption. If the DB server mandates
    +   * encryption, then connection will be encrypted but server identity will
    +   * not be authenticated.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced encryption_not_enforced = 1; + * + * + * @return Whether the encryptionNotEnforced field is set. + */ + boolean hasEncryptionNotEnforced(); + + /** + * + * + *
    +   * If set, Datastream will not enforce encryption. If the DB server mandates
    +   * encryption, then connection will be encrypted but server identity will
    +   * not be authenticated.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced encryption_not_enforced = 1; + * + * + * @return The encryptionNotEnforced. + */ + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced + getEncryptionNotEnforced(); + + /** + * + * + *
    +   * If set, Datastream will not enforce encryption. If the DB server mandates
    +   * encryption, then connection will be encrypted but server identity will
    +   * not be authenticated.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforced encryption_not_enforced = 1; + * + */ + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionNotEnforcedOrBuilder + getEncryptionNotEnforcedOrBuilder(); + + /** + * + * + *
    +   * If set, Datastream will enforce encryption without authenticating server
    +   * identity. Server certificates will be trusted by default.
    +   * 
    + * + * .google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption basic_encryption = 2; + * + * + * @return Whether the basicEncryption field is set. + */ + boolean hasBasicEncryption(); + + /** + * + * + *
    +   * If set, Datastream will enforce encryption without authenticating server
    +   * identity. Server certificates will be trusted by default.
    +   * 
    + * + * .google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption basic_encryption = 2; + * + * + * @return The basicEncryption. + */ + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption getBasicEncryption(); + + /** + * + * + *
    +   * If set, Datastream will enforce encryption without authenticating server
    +   * identity. Server certificates will be trusted by default.
    +   * 
    + * + * .google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryption basic_encryption = 2; + * + */ + com.google.cloud.datastream.v1.SqlServerSslConfig.BasicEncryptionOrBuilder + getBasicEncryptionOrBuilder(); + + /** + * + * + *
    +   * If set, Datastream will enforce encryption and authenticate server
    +   * identity.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation encryption_and_server_validation = 3; + * + * + * @return Whether the encryptionAndServerValidation field is set. + */ + boolean hasEncryptionAndServerValidation(); + + /** + * + * + *
    +   * If set, Datastream will enforce encryption and authenticate server
    +   * identity.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation encryption_and_server_validation = 3; + * + * + * @return The encryptionAndServerValidation. + */ + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation + getEncryptionAndServerValidation(); + + /** + * + * + *
    +   * If set, Datastream will enforce encryption and authenticate server
    +   * identity.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation encryption_and_server_validation = 3; + * + */ + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidationOrBuilder + getEncryptionAndServerValidationOrBuilder(); + + com.google.cloud.datastream.v1.SqlServerSslConfig.EncryptionSettingCase + getEncryptionSettingCase(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerTable.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerTable.java index 643c5ec7b9f3..3cdedf449a87 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerTable.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerTable.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Table name.
    +   * The table name.
        * 
    * * string table = 1; @@ -104,7 +104,7 @@ public java.lang.String getTable() { * * *
    -   * Table name.
    +   * The table name.
        * 
    * * string table = 1; @@ -596,7 +596,7 @@ public Builder mergeFrom( * * *
    -     * Table name.
    +     * The table name.
          * 
    * * string table = 1; @@ -619,7 +619,7 @@ public java.lang.String getTable() { * * *
    -     * Table name.
    +     * The table name.
          * 
    * * string table = 1; @@ -642,7 +642,7 @@ public com.google.protobuf.ByteString getTableBytes() { * * *
    -     * Table name.
    +     * The table name.
          * 
    * * string table = 1; @@ -664,7 +664,7 @@ public Builder setTable(java.lang.String value) { * * *
    -     * Table name.
    +     * The table name.
          * 
    * * string table = 1; @@ -682,7 +682,7 @@ public Builder clearTable() { * * *
    -     * Table name.
    +     * The table name.
          * 
    * * string table = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerTableOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerTableOrBuilder.java index 73b85a7c815e..a7bbf8d4e791 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerTableOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerTableOrBuilder.java @@ -30,7 +30,7 @@ public interface SqlServerTableOrBuilder * * *
    -   * Table name.
    +   * The table name.
        * 
    * * string table = 1; @@ -43,7 +43,7 @@ public interface SqlServerTableOrBuilder * * *
    -   * Table name.
    +   * The table name.
        * 
    * * string table = 1; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StandardConnectionFormat.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StandardConnectionFormat.java index 8068c0a60df6..c233eb7e8960 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StandardConnectionFormat.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StandardConnectionFormat.java @@ -75,15 +75,22 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Optional. Specifies whether the client connects directly to the host[:port]
    -   * in the connection URI.
    +   * Optional. Deprecated: Use the `additional_options` map to specify the
    +   * `directConnection` parameter instead.
    +   * For example: `additional_options = {"directConnection": "true"}`.
    +   * Specifies whether the client connects directly to the host[:port] in the
    +   * connection URI.
        * 
    * - * bool direct_connection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * bool direct_connection = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.datastream.v1.StandardConnectionFormat.direct_connection is + * deprecated. See google/cloud/datastream/v1/datastream_resources.proto;l=444 * @return The directConnection. */ @java.lang.Override + @java.lang.Deprecated public boolean getDirectConnection() { return directConnection_; } @@ -403,15 +410,23 @@ public Builder mergeFrom( * * *
    -     * Optional. Specifies whether the client connects directly to the host[:port]
    -     * in the connection URI.
    +     * Optional. Deprecated: Use the `additional_options` map to specify the
    +     * `directConnection` parameter instead.
    +     * For example: `additional_options = {"directConnection": "true"}`.
    +     * Specifies whether the client connects directly to the host[:port] in the
    +     * connection URI.
          * 
    * - * bool direct_connection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool direct_connection = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.datastream.v1.StandardConnectionFormat.direct_connection is + * deprecated. See google/cloud/datastream/v1/datastream_resources.proto;l=444 * @return The directConnection. */ @java.lang.Override + @java.lang.Deprecated public boolean getDirectConnection() { return directConnection_; } @@ -420,15 +435,23 @@ public boolean getDirectConnection() { * * *
    -     * Optional. Specifies whether the client connects directly to the host[:port]
    -     * in the connection URI.
    +     * Optional. Deprecated: Use the `additional_options` map to specify the
    +     * `directConnection` parameter instead.
    +     * For example: `additional_options = {"directConnection": "true"}`.
    +     * Specifies whether the client connects directly to the host[:port] in the
    +     * connection URI.
          * 
    * - * bool direct_connection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool direct_connection = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.datastream.v1.StandardConnectionFormat.direct_connection is + * deprecated. See google/cloud/datastream/v1/datastream_resources.proto;l=444 * @param value The directConnection to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setDirectConnection(boolean value) { directConnection_ = value; @@ -441,14 +464,22 @@ public Builder setDirectConnection(boolean value) { * * *
    -     * Optional. Specifies whether the client connects directly to the host[:port]
    -     * in the connection URI.
    +     * Optional. Deprecated: Use the `additional_options` map to specify the
    +     * `directConnection` parameter instead.
    +     * For example: `additional_options = {"directConnection": "true"}`.
    +     * Specifies whether the client connects directly to the host[:port] in the
    +     * connection URI.
          * 
    * - * bool direct_connection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool direct_connection = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.datastream.v1.StandardConnectionFormat.direct_connection is + * deprecated. See google/cloud/datastream/v1/datastream_resources.proto;l=444 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearDirectConnection() { bitField0_ = (bitField0_ & ~0x00000001); directConnection_ = false; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StandardConnectionFormatOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StandardConnectionFormatOrBuilder.java index 55814fc08704..f44498fc1f76 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StandardConnectionFormatOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StandardConnectionFormatOrBuilder.java @@ -30,13 +30,20 @@ public interface StandardConnectionFormatOrBuilder * * *
    -   * Optional. Specifies whether the client connects directly to the host[:port]
    -   * in the connection URI.
    +   * Optional. Deprecated: Use the `additional_options` map to specify the
    +   * `directConnection` parameter instead.
    +   * For example: `additional_options = {"directConnection": "true"}`.
    +   * Specifies whether the client connects directly to the host[:port] in the
    +   * connection URI.
        * 
    * - * bool direct_connection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * bool direct_connection = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.datastream.v1.StandardConnectionFormat.direct_connection is + * deprecated. See google/cloud/datastream/v1/datastream_resources.proto;l=444 * @return The directConnection. */ + @java.lang.Deprecated boolean getDirectConnection(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java index 73850ac64d5d..0145433fc38a 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java @@ -70,6 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.datastream.v1.StartBackfillJobRequest.Builder.class); } + private int bitField0_; public static final int OBJECT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -129,6 +130,71 @@ public com.google.protobuf.ByteString getObjectBytes() { } } + public static final int EVENT_FILTER_FIELD_NUMBER = 2; + private com.google.cloud.datastream.v1.EventFilter eventFilter_; + + /** + * + * + *
    +   * Optional. Optional event filter. If not set, or empty, the backfill will be
    +   * performed on the entire object. This is currently used for partial backfill
    +   * and only supported for SQL sources.
    +   * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventFilter field is set. + */ + @java.lang.Override + public boolean hasEventFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Optional. Optional event filter. If not set, or empty, the backfill will be
    +   * performed on the entire object. This is currently used for partial backfill
    +   * and only supported for SQL sources.
    +   * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventFilter. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.EventFilter getEventFilter() { + return eventFilter_ == null + ? com.google.cloud.datastream.v1.EventFilter.getDefaultInstance() + : eventFilter_; + } + + /** + * + * + *
    +   * Optional. Optional event filter. If not set, or empty, the backfill will be
    +   * performed on the entire object. This is currently used for partial backfill
    +   * and only supported for SQL sources.
    +   * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.EventFilterOrBuilder getEventFilterOrBuilder() { + return eventFilter_ == null + ? com.google.cloud.datastream.v1.EventFilter.getDefaultInstance() + : eventFilter_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -146,6 +212,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(object_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, object_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getEventFilter()); + } getUnknownFields().writeTo(output); } @@ -158,6 +227,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(object_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, object_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEventFilter()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -175,6 +247,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.datastream.v1.StartBackfillJobRequest) obj; if (!getObject().equals(other.getObject())) return false; + if (hasEventFilter() != other.hasEventFilter()) return false; + if (hasEventFilter()) { + if (!getEventFilter().equals(other.getEventFilter())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -188,6 +264,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OBJECT_FIELD_NUMBER; hash = (53 * hash) + getObject().hashCode(); + if (hasEventFilter()) { + hash = (37 * hash) + EVENT_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getEventFilter().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -319,10 +399,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.datastream.v1.StartBackfillJobRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetEventFilterFieldBuilder(); + } } @java.lang.Override @@ -330,6 +419,11 @@ public Builder clear() { super.clear(); bitField0_ = 0; object_ = ""; + eventFilter_ = null; + if (eventFilterBuilder_ != null) { + eventFilterBuilder_.dispose(); + eventFilterBuilder_ = null; + } return this; } @@ -369,6 +463,13 @@ private void buildPartial0(com.google.cloud.datastream.v1.StartBackfillJobReques if (((from_bitField0_ & 0x00000001) != 0)) { result.object_ = object_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.eventFilter_ = + eventFilterBuilder_ == null ? eventFilter_ : eventFilterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -389,6 +490,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.StartBackfillJobRequest bitField0_ |= 0x00000001; onChanged(); } + if (other.hasEventFilter()) { + mergeEventFilter(other.getEventFilter()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -421,6 +525,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + input.readMessage( + internalGetEventFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -566,6 +677,237 @@ public Builder setObjectBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.datastream.v1.EventFilter eventFilter_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.EventFilter, + com.google.cloud.datastream.v1.EventFilter.Builder, + com.google.cloud.datastream.v1.EventFilterOrBuilder> + eventFilterBuilder_; + + /** + * + * + *
    +     * Optional. Optional event filter. If not set, or empty, the backfill will be
    +     * performed on the entire object. This is currently used for partial backfill
    +     * and only supported for SQL sources.
    +     * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventFilter field is set. + */ + public boolean hasEventFilter() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Optional. Optional event filter. If not set, or empty, the backfill will be
    +     * performed on the entire object. This is currently used for partial backfill
    +     * and only supported for SQL sources.
    +     * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventFilter. + */ + public com.google.cloud.datastream.v1.EventFilter getEventFilter() { + if (eventFilterBuilder_ == null) { + return eventFilter_ == null + ? com.google.cloud.datastream.v1.EventFilter.getDefaultInstance() + : eventFilter_; + } else { + return eventFilterBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. Optional event filter. If not set, or empty, the backfill will be
    +     * performed on the entire object. This is currently used for partial backfill
    +     * and only supported for SQL sources.
    +     * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEventFilter(com.google.cloud.datastream.v1.EventFilter value) { + if (eventFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventFilter_ = value; + } else { + eventFilterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Optional event filter. If not set, or empty, the backfill will be
    +     * performed on the entire object. This is currently used for partial backfill
    +     * and only supported for SQL sources.
    +     * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEventFilter( + com.google.cloud.datastream.v1.EventFilter.Builder builderForValue) { + if (eventFilterBuilder_ == null) { + eventFilter_ = builderForValue.build(); + } else { + eventFilterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Optional event filter. If not set, or empty, the backfill will be
    +     * performed on the entire object. This is currently used for partial backfill
    +     * and only supported for SQL sources.
    +     * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEventFilter(com.google.cloud.datastream.v1.EventFilter value) { + if (eventFilterBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && eventFilter_ != null + && eventFilter_ != com.google.cloud.datastream.v1.EventFilter.getDefaultInstance()) { + getEventFilterBuilder().mergeFrom(value); + } else { + eventFilter_ = value; + } + } else { + eventFilterBuilder_.mergeFrom(value); + } + if (eventFilter_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Optional event filter. If not set, or empty, the backfill will be
    +     * performed on the entire object. This is currently used for partial backfill
    +     * and only supported for SQL sources.
    +     * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEventFilter() { + bitField0_ = (bitField0_ & ~0x00000002); + eventFilter_ = null; + if (eventFilterBuilder_ != null) { + eventFilterBuilder_.dispose(); + eventFilterBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Optional event filter. If not set, or empty, the backfill will be
    +     * performed on the entire object. This is currently used for partial backfill
    +     * and only supported for SQL sources.
    +     * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.EventFilter.Builder getEventFilterBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetEventFilterFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Optional event filter. If not set, or empty, the backfill will be
    +     * performed on the entire object. This is currently used for partial backfill
    +     * and only supported for SQL sources.
    +     * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.EventFilterOrBuilder getEventFilterOrBuilder() { + if (eventFilterBuilder_ != null) { + return eventFilterBuilder_.getMessageOrBuilder(); + } else { + return eventFilter_ == null + ? com.google.cloud.datastream.v1.EventFilter.getDefaultInstance() + : eventFilter_; + } + } + + /** + * + * + *
    +     * Optional. Optional event filter. If not set, or empty, the backfill will be
    +     * performed on the entire object. This is currently used for partial backfill
    +     * and only supported for SQL sources.
    +     * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.EventFilter, + com.google.cloud.datastream.v1.EventFilter.Builder, + com.google.cloud.datastream.v1.EventFilterOrBuilder> + internalGetEventFilterFieldBuilder() { + if (eventFilterBuilder_ == null) { + eventFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.EventFilter, + com.google.cloud.datastream.v1.EventFilter.Builder, + com.google.cloud.datastream.v1.EventFilterOrBuilder>( + getEventFilter(), getParentForChildren(), isClean()); + eventFilter_ = null; + } + return eventFilterBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.StartBackfillJobRequest) } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java index fa5cd633ebab..86941cab657c 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java @@ -57,4 +57,53 @@ public interface StartBackfillJobRequestOrBuilder * @return The bytes for object. */ com.google.protobuf.ByteString getObjectBytes(); + + /** + * + * + *
    +   * Optional. Optional event filter. If not set, or empty, the backfill will be
    +   * performed on the entire object. This is currently used for partial backfill
    +   * and only supported for SQL sources.
    +   * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventFilter field is set. + */ + boolean hasEventFilter(); + + /** + * + * + *
    +   * Optional. Optional event filter. If not set, or empty, the backfill will be
    +   * performed on the entire object. This is currently used for partial backfill
    +   * and only supported for SQL sources.
    +   * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventFilter. + */ + com.google.cloud.datastream.v1.EventFilter getEventFilter(); + + /** + * + * + *
    +   * Optional. Optional event filter. If not set, or empty, the backfill will be
    +   * performed on the entire object. This is currently used for partial backfill
    +   * and only supported for SQL sources.
    +   * 
    + * + * + * .google.cloud.datastream.v1.EventFilter event_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.EventFilterOrBuilder getEventFilterOrBuilder(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java index 830b866ca702..d01fcb1c10ee 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java @@ -57,6 +57,7 @@ private Stream() { state_ = 0; errors_ = java.util.Collections.emptyList(); customerManagedEncryptionKey_ = ""; + ruleSets_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -628,6 +629,83 @@ public interface BackfillAllStrategyOrBuilder */ com.google.cloud.datastream.v1.MongodbClusterOrBuilder getMongodbExcludedObjectsOrBuilder(); + /** + * + * + *
    +     * Spanner data source objects to avoid backfilling.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_excluded_objects = 7; + * + * @return Whether the spannerExcludedObjects field is set. + */ + boolean hasSpannerExcludedObjects(); + + /** + * + * + *
    +     * Spanner data source objects to avoid backfilling.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_excluded_objects = 7; + * + * @return The spannerExcludedObjects. + */ + com.google.cloud.datastream.v1.SpannerDatabase getSpannerExcludedObjects(); + + /** + * + * + *
    +     * Spanner data source objects to avoid backfilling.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_excluded_objects = 7; + */ + com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder getSpannerExcludedObjectsOrBuilder(); + + /** + * + * + *
    +     * Source catalog data source objects to avoid backfilling. This is mainly
    +     * used to represent SaaS applications objects.
    +     * 
    + * + * .google.cloud.datastream.v1.SourceCatalog saas_excluded_objects = 9; + * + * @return Whether the saasExcludedObjects field is set. + */ + boolean hasSaasExcludedObjects(); + + /** + * + * + *
    +     * Source catalog data source objects to avoid backfilling. This is mainly
    +     * used to represent SaaS applications objects.
    +     * 
    + * + * .google.cloud.datastream.v1.SourceCatalog saas_excluded_objects = 9; + * + * @return The saasExcludedObjects. + */ + com.google.cloud.datastream.v1.SourceCatalog getSaasExcludedObjects(); + + /** + * + * + *
    +     * Source catalog data source objects to avoid backfilling. This is mainly
    +     * used to represent SaaS applications objects.
    +     * 
    + * + * .google.cloud.datastream.v1.SourceCatalog saas_excluded_objects = 9; + */ + com.google.cloud.datastream.v1.SourceCatalogOrBuilder getSaasExcludedObjectsOrBuilder(); + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.ExcludedObjectsCase getExcludedObjectsCase(); } @@ -695,6 +773,8 @@ public enum ExcludedObjectsCase SQL_SERVER_EXCLUDED_OBJECTS(4), SALESFORCE_EXCLUDED_OBJECTS(5), MONGODB_EXCLUDED_OBJECTS(6), + SPANNER_EXCLUDED_OBJECTS(7), + SAAS_EXCLUDED_OBJECTS(9), EXCLUDEDOBJECTS_NOT_SET(0); private final int value; @@ -726,6 +806,10 @@ public static ExcludedObjectsCase forNumber(int value) { return SALESFORCE_EXCLUDED_OBJECTS; case 6: return MONGODB_EXCLUDED_OBJECTS; + case 7: + return SPANNER_EXCLUDED_OBJECTS; + case 9: + return SAAS_EXCLUDED_OBJECTS; case 0: return EXCLUDEDOBJECTS_NOT_SET; default: @@ -1070,6 +1154,118 @@ public com.google.cloud.datastream.v1.MongodbCluster getMongodbExcludedObjects() return com.google.cloud.datastream.v1.MongodbCluster.getDefaultInstance(); } + public static final int SPANNER_EXCLUDED_OBJECTS_FIELD_NUMBER = 7; + + /** + * + * + *
    +     * Spanner data source objects to avoid backfilling.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_excluded_objects = 7; + * + * @return Whether the spannerExcludedObjects field is set. + */ + @java.lang.Override + public boolean hasSpannerExcludedObjects() { + return excludedObjectsCase_ == 7; + } + + /** + * + * + *
    +     * Spanner data source objects to avoid backfilling.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_excluded_objects = 7; + * + * @return The spannerExcludedObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerDatabase getSpannerExcludedObjects() { + if (excludedObjectsCase_ == 7) { + return (com.google.cloud.datastream.v1.SpannerDatabase) excludedObjects_; + } + return com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance(); + } + + /** + * + * + *
    +     * Spanner data source objects to avoid backfilling.
    +     * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_excluded_objects = 7; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder + getSpannerExcludedObjectsOrBuilder() { + if (excludedObjectsCase_ == 7) { + return (com.google.cloud.datastream.v1.SpannerDatabase) excludedObjects_; + } + return com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance(); + } + + public static final int SAAS_EXCLUDED_OBJECTS_FIELD_NUMBER = 9; + + /** + * + * + *
    +     * Source catalog data source objects to avoid backfilling. This is mainly
    +     * used to represent SaaS applications objects.
    +     * 
    + * + * .google.cloud.datastream.v1.SourceCatalog saas_excluded_objects = 9; + * + * @return Whether the saasExcludedObjects field is set. + */ + @java.lang.Override + public boolean hasSaasExcludedObjects() { + return excludedObjectsCase_ == 9; + } + + /** + * + * + *
    +     * Source catalog data source objects to avoid backfilling. This is mainly
    +     * used to represent SaaS applications objects.
    +     * 
    + * + * .google.cloud.datastream.v1.SourceCatalog saas_excluded_objects = 9; + * + * @return The saasExcludedObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalog getSaasExcludedObjects() { + if (excludedObjectsCase_ == 9) { + return (com.google.cloud.datastream.v1.SourceCatalog) excludedObjects_; + } + return com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance(); + } + + /** + * + * + *
    +     * Source catalog data source objects to avoid backfilling. This is mainly
    +     * used to represent SaaS applications objects.
    +     * 
    + * + * .google.cloud.datastream.v1.SourceCatalog saas_excluded_objects = 9; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalogOrBuilder getSaasExcludedObjectsOrBuilder() { + if (excludedObjectsCase_ == 9) { + return (com.google.cloud.datastream.v1.SourceCatalog) excludedObjects_; + } + return com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1102,6 +1298,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (excludedObjectsCase_ == 6) { output.writeMessage(6, (com.google.cloud.datastream.v1.MongodbCluster) excludedObjects_); } + if (excludedObjectsCase_ == 7) { + output.writeMessage(7, (com.google.cloud.datastream.v1.SpannerDatabase) excludedObjects_); + } + if (excludedObjectsCase_ == 9) { + output.writeMessage(9, (com.google.cloud.datastream.v1.SourceCatalog) excludedObjects_); + } getUnknownFields().writeTo(output); } @@ -1141,6 +1343,16 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.cloud.datastream.v1.MongodbCluster) excludedObjects_); } + if (excludedObjectsCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.datastream.v1.SpannerDatabase) excludedObjects_); + } + if (excludedObjectsCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.datastream.v1.SourceCatalog) excludedObjects_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1180,6 +1392,12 @@ public boolean equals(final java.lang.Object obj) { case 6: if (!getMongodbExcludedObjects().equals(other.getMongodbExcludedObjects())) return false; break; + case 7: + if (!getSpannerExcludedObjects().equals(other.getSpannerExcludedObjects())) return false; + break; + case 9: + if (!getSaasExcludedObjects().equals(other.getSaasExcludedObjects())) return false; + break; case 0: default: } @@ -1219,6 +1437,14 @@ public int hashCode() { hash = (37 * hash) + MONGODB_EXCLUDED_OBJECTS_FIELD_NUMBER; hash = (53 * hash) + getMongodbExcludedObjects().hashCode(); break; + case 7: + hash = (37 * hash) + SPANNER_EXCLUDED_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getSpannerExcludedObjects().hashCode(); + break; + case 9: + hash = (37 * hash) + SAAS_EXCLUDED_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getSaasExcludedObjects().hashCode(); + break; case 0: default: } @@ -1382,6 +1608,12 @@ public Builder clear() { if (mongodbExcludedObjectsBuilder_ != null) { mongodbExcludedObjectsBuilder_.clear(); } + if (spannerExcludedObjectsBuilder_ != null) { + spannerExcludedObjectsBuilder_.clear(); + } + if (saasExcludedObjectsBuilder_ != null) { + saasExcludedObjectsBuilder_.clear(); + } excludedObjectsCase_ = 0; excludedObjects_ = null; return this; @@ -1445,6 +1677,12 @@ private void buildPartialOneofs( if (excludedObjectsCase_ == 6 && mongodbExcludedObjectsBuilder_ != null) { result.excludedObjects_ = mongodbExcludedObjectsBuilder_.build(); } + if (excludedObjectsCase_ == 7 && spannerExcludedObjectsBuilder_ != null) { + result.excludedObjects_ = spannerExcludedObjectsBuilder_.build(); + } + if (excludedObjectsCase_ == 9 && saasExcludedObjectsBuilder_ != null) { + result.excludedObjects_ = saasExcludedObjectsBuilder_.build(); + } } @java.lang.Override @@ -1491,6 +1729,16 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.Stream.BackfillAllStrate mergeMongodbExcludedObjects(other.getMongodbExcludedObjects()); break; } + case SPANNER_EXCLUDED_OBJECTS: + { + mergeSpannerExcludedObjects(other.getSpannerExcludedObjects()); + break; + } + case SAAS_EXCLUDED_OBJECTS: + { + mergeSaasExcludedObjects(other.getSaasExcludedObjects()); + break; + } case EXCLUDEDOBJECTS_NOT_SET: { break; @@ -1570,6 +1818,21 @@ public Builder mergeFrom( excludedObjectsCase_ = 6; break; } // case 50 + case 58: + { + input.readMessage( + internalGetSpannerExcludedObjectsFieldBuilder().getBuilder(), + extensionRegistry); + excludedObjectsCase_ = 7; + break; + } // case 58 + case 74: + { + input.readMessage( + internalGetSaasExcludedObjectsFieldBuilder().getBuilder(), extensionRegistry); + excludedObjectsCase_ = 9; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2934,108 +3197,3262 @@ public Builder clearMongodbExcludedObjects() { return mongodbExcludedObjectsBuilder_; } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.Stream.BackfillAllStrategy) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.Stream.BackfillAllStrategy) - private static final com.google.cloud.datastream.v1.Stream.BackfillAllStrategy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.Stream.BackfillAllStrategy(); - } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SpannerDatabase, + com.google.cloud.datastream.v1.SpannerDatabase.Builder, + com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder> + spannerExcludedObjectsBuilder_; - public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * + * + *
    +       * Spanner data source objects to avoid backfilling.
    +       * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_excluded_objects = 7; + * + * @return Whether the spannerExcludedObjects field is set. + */ + @java.lang.Override + public boolean hasSpannerExcludedObjects() { + return excludedObjectsCase_ == 7; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BackfillAllStrategy 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(); + /** + * + * + *
    +       * Spanner data source objects to avoid backfilling.
    +       * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_excluded_objects = 7; + * + * @return The spannerExcludedObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerDatabase getSpannerExcludedObjects() { + if (spannerExcludedObjectsBuilder_ == null) { + if (excludedObjectsCase_ == 7) { + return (com.google.cloud.datastream.v1.SpannerDatabase) excludedObjects_; } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + return com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance(); + } else { + if (excludedObjectsCase_ == 7) { + return spannerExcludedObjectsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance(); + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * + * + *
    +       * Spanner data source objects to avoid backfilling.
    +       * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_excluded_objects = 7; + */ + public Builder setSpannerExcludedObjects( + com.google.cloud.datastream.v1.SpannerDatabase value) { + if (spannerExcludedObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + excludedObjects_ = value; + onChanged(); + } else { + spannerExcludedObjectsBuilder_.setMessage(value); + } + excludedObjectsCase_ = 7; + return this; + } - @java.lang.Override - public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + /** + * + * + *
    +       * Spanner data source objects to avoid backfilling.
    +       * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_excluded_objects = 7; + */ + public Builder setSpannerExcludedObjects( + com.google.cloud.datastream.v1.SpannerDatabase.Builder builderForValue) { + if (spannerExcludedObjectsBuilder_ == null) { + excludedObjects_ = builderForValue.build(); + onChanged(); + } else { + spannerExcludedObjectsBuilder_.setMessage(builderForValue.build()); + } + excludedObjectsCase_ = 7; + return this; + } - public interface BackfillNoneStrategyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) - com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
    +       * Spanner data source objects to avoid backfilling.
    +       * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_excluded_objects = 7; + */ + public Builder mergeSpannerExcludedObjects( + com.google.cloud.datastream.v1.SpannerDatabase value) { + if (spannerExcludedObjectsBuilder_ == null) { + if (excludedObjectsCase_ == 7 + && excludedObjects_ + != com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance()) { + excludedObjects_ = + com.google.cloud.datastream.v1.SpannerDatabase.newBuilder( + (com.google.cloud.datastream.v1.SpannerDatabase) excludedObjects_) + .mergeFrom(value) + .buildPartial(); + } else { + excludedObjects_ = value; + } + onChanged(); + } else { + if (excludedObjectsCase_ == 7) { + spannerExcludedObjectsBuilder_.mergeFrom(value); + } else { + spannerExcludedObjectsBuilder_.setMessage(value); + } + } + excludedObjectsCase_ = 7; + return this; + } + + /** + * + * + *
    +       * Spanner data source objects to avoid backfilling.
    +       * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_excluded_objects = 7; + */ + public Builder clearSpannerExcludedObjects() { + if (spannerExcludedObjectsBuilder_ == null) { + if (excludedObjectsCase_ == 7) { + excludedObjectsCase_ = 0; + excludedObjects_ = null; + onChanged(); + } + } else { + if (excludedObjectsCase_ == 7) { + excludedObjectsCase_ = 0; + excludedObjects_ = null; + } + spannerExcludedObjectsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Spanner data source objects to avoid backfilling.
    +       * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_excluded_objects = 7; + */ + public com.google.cloud.datastream.v1.SpannerDatabase.Builder + getSpannerExcludedObjectsBuilder() { + return internalGetSpannerExcludedObjectsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Spanner data source objects to avoid backfilling.
    +       * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_excluded_objects = 7; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder + getSpannerExcludedObjectsOrBuilder() { + if ((excludedObjectsCase_ == 7) && (spannerExcludedObjectsBuilder_ != null)) { + return spannerExcludedObjectsBuilder_.getMessageOrBuilder(); + } else { + if (excludedObjectsCase_ == 7) { + return (com.google.cloud.datastream.v1.SpannerDatabase) excludedObjects_; + } + return com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Spanner data source objects to avoid backfilling.
    +       * 
    + * + * .google.cloud.datastream.v1.SpannerDatabase spanner_excluded_objects = 7; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SpannerDatabase, + com.google.cloud.datastream.v1.SpannerDatabase.Builder, + com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder> + internalGetSpannerExcludedObjectsFieldBuilder() { + if (spannerExcludedObjectsBuilder_ == null) { + if (!(excludedObjectsCase_ == 7)) { + excludedObjects_ = com.google.cloud.datastream.v1.SpannerDatabase.getDefaultInstance(); + } + spannerExcludedObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SpannerDatabase, + com.google.cloud.datastream.v1.SpannerDatabase.Builder, + com.google.cloud.datastream.v1.SpannerDatabaseOrBuilder>( + (com.google.cloud.datastream.v1.SpannerDatabase) excludedObjects_, + getParentForChildren(), + isClean()); + excludedObjects_ = null; + } + excludedObjectsCase_ = 7; + onChanged(); + return spannerExcludedObjectsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder> + saasExcludedObjectsBuilder_; + + /** + * + * + *
    +       * Source catalog data source objects to avoid backfilling. This is mainly
    +       * used to represent SaaS applications objects.
    +       * 
    + * + * .google.cloud.datastream.v1.SourceCatalog saas_excluded_objects = 9; + * + * @return Whether the saasExcludedObjects field is set. + */ + @java.lang.Override + public boolean hasSaasExcludedObjects() { + return excludedObjectsCase_ == 9; + } + + /** + * + * + *
    +       * Source catalog data source objects to avoid backfilling. This is mainly
    +       * used to represent SaaS applications objects.
    +       * 
    + * + * .google.cloud.datastream.v1.SourceCatalog saas_excluded_objects = 9; + * + * @return The saasExcludedObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalog getSaasExcludedObjects() { + if (saasExcludedObjectsBuilder_ == null) { + if (excludedObjectsCase_ == 9) { + return (com.google.cloud.datastream.v1.SourceCatalog) excludedObjects_; + } + return com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance(); + } else { + if (excludedObjectsCase_ == 9) { + return saasExcludedObjectsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Source catalog data source objects to avoid backfilling. This is mainly
    +       * used to represent SaaS applications objects.
    +       * 
    + * + * .google.cloud.datastream.v1.SourceCatalog saas_excluded_objects = 9; + */ + public Builder setSaasExcludedObjects(com.google.cloud.datastream.v1.SourceCatalog value) { + if (saasExcludedObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + excludedObjects_ = value; + onChanged(); + } else { + saasExcludedObjectsBuilder_.setMessage(value); + } + excludedObjectsCase_ = 9; + return this; + } + + /** + * + * + *
    +       * Source catalog data source objects to avoid backfilling. This is mainly
    +       * used to represent SaaS applications objects.
    +       * 
    + * + * .google.cloud.datastream.v1.SourceCatalog saas_excluded_objects = 9; + */ + public Builder setSaasExcludedObjects( + com.google.cloud.datastream.v1.SourceCatalog.Builder builderForValue) { + if (saasExcludedObjectsBuilder_ == null) { + excludedObjects_ = builderForValue.build(); + onChanged(); + } else { + saasExcludedObjectsBuilder_.setMessage(builderForValue.build()); + } + excludedObjectsCase_ = 9; + return this; + } + + /** + * + * + *
    +       * Source catalog data source objects to avoid backfilling. This is mainly
    +       * used to represent SaaS applications objects.
    +       * 
    + * + * .google.cloud.datastream.v1.SourceCatalog saas_excluded_objects = 9; + */ + public Builder mergeSaasExcludedObjects(com.google.cloud.datastream.v1.SourceCatalog value) { + if (saasExcludedObjectsBuilder_ == null) { + if (excludedObjectsCase_ == 9 + && excludedObjects_ + != com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance()) { + excludedObjects_ = + com.google.cloud.datastream.v1.SourceCatalog.newBuilder( + (com.google.cloud.datastream.v1.SourceCatalog) excludedObjects_) + .mergeFrom(value) + .buildPartial(); + } else { + excludedObjects_ = value; + } + onChanged(); + } else { + if (excludedObjectsCase_ == 9) { + saasExcludedObjectsBuilder_.mergeFrom(value); + } else { + saasExcludedObjectsBuilder_.setMessage(value); + } + } + excludedObjectsCase_ = 9; + return this; + } + + /** + * + * + *
    +       * Source catalog data source objects to avoid backfilling. This is mainly
    +       * used to represent SaaS applications objects.
    +       * 
    + * + * .google.cloud.datastream.v1.SourceCatalog saas_excluded_objects = 9; + */ + public Builder clearSaasExcludedObjects() { + if (saasExcludedObjectsBuilder_ == null) { + if (excludedObjectsCase_ == 9) { + excludedObjectsCase_ = 0; + excludedObjects_ = null; + onChanged(); + } + } else { + if (excludedObjectsCase_ == 9) { + excludedObjectsCase_ = 0; + excludedObjects_ = null; + } + saasExcludedObjectsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Source catalog data source objects to avoid backfilling. This is mainly
    +       * used to represent SaaS applications objects.
    +       * 
    + * + * .google.cloud.datastream.v1.SourceCatalog saas_excluded_objects = 9; + */ + public com.google.cloud.datastream.v1.SourceCatalog.Builder getSaasExcludedObjectsBuilder() { + return internalGetSaasExcludedObjectsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Source catalog data source objects to avoid backfilling. This is mainly
    +       * used to represent SaaS applications objects.
    +       * 
    + * + * .google.cloud.datastream.v1.SourceCatalog saas_excluded_objects = 9; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalogOrBuilder + getSaasExcludedObjectsOrBuilder() { + if ((excludedObjectsCase_ == 9) && (saasExcludedObjectsBuilder_ != null)) { + return saasExcludedObjectsBuilder_.getMessageOrBuilder(); + } else { + if (excludedObjectsCase_ == 9) { + return (com.google.cloud.datastream.v1.SourceCatalog) excludedObjects_; + } + return com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Source catalog data source objects to avoid backfilling. This is mainly
    +       * used to represent SaaS applications objects.
    +       * 
    + * + * .google.cloud.datastream.v1.SourceCatalog saas_excluded_objects = 9; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder> + internalGetSaasExcludedObjectsFieldBuilder() { + if (saasExcludedObjectsBuilder_ == null) { + if (!(excludedObjectsCase_ == 9)) { + excludedObjects_ = com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance(); + } + saasExcludedObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder>( + (com.google.cloud.datastream.v1.SourceCatalog) excludedObjects_, + getParentForChildren(), + isClean()); + excludedObjects_ = null; + } + excludedObjectsCase_ = 9; + onChanged(); + return saasExcludedObjectsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.Stream.BackfillAllStrategy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.Stream.BackfillAllStrategy) + private static final com.google.cloud.datastream.v1.Stream.BackfillAllStrategy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.Stream.BackfillAllStrategy(); + } + + public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackfillAllStrategy 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.datastream.v1.Stream.BackfillAllStrategy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface BackfillNoneStrategyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) + com.google.protobuf.MessageOrBuilder {} + + /** + * + * + *
    +   * Backfill strategy to disable automatic backfill for the Stream's objects.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.Stream.BackfillNoneStrategy} + */ + public static final class BackfillNoneStrategy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) + BackfillNoneStrategyOrBuilder { + 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= */ "", + "BackfillNoneStrategy"); + } + + // Use BackfillNoneStrategy.newBuilder() to construct. + private BackfillNoneStrategy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BackfillNoneStrategy() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.class, + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.datastream.v1.Stream.BackfillNoneStrategy)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy other = + (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) obj; + + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy 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.datastream.v1.Stream.BackfillNoneStrategy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy 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.datastream.v1.Stream.BackfillNoneStrategy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy 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.datastream.v1.Stream.BackfillNoneStrategy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy 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.datastream.v1.Stream.BackfillNoneStrategy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy 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.datastream.v1.Stream.BackfillNoneStrategy 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; + } + + /** + * + * + *
    +     * Backfill strategy to disable automatic backfill for the Stream's objects.
    +     * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.Stream.BackfillNoneStrategy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.class, + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy build() { + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy buildPartial() { + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy result = + new com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) { + return mergeFrom((com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy other) { + if (other + == com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance()) + return this; + 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; + 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) + private static final com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy(); + } + + public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackfillNoneStrategy 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.datastream.v1.Stream.BackfillNoneStrategy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RuleSetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.Stream.RuleSet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Required. List of customization rules to apply.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getCustomizationRulesList(); + + /** + * + * + *
    +     * Required. List of customization rules to apply.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule getCustomizationRules( + int index); + + /** + * + * + *
    +     * Required. List of customization rules to apply.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getCustomizationRulesCount(); + + /** + * + * + *
    +     * Required. List of customization rules to apply.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRuleOrBuilder> + getCustomizationRulesOrBuilderList(); + + /** + * + * + *
    +     * Required. List of customization rules to apply.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRuleOrBuilder + getCustomizationRulesOrBuilder(int index); + + /** + * + * + *
    +     * Required. Object filter to apply the customization rules to.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter object_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the objectFilter field is set. + */ + boolean hasObjectFilter(); + + /** + * + * + *
    +     * Required. Object filter to apply the customization rules to.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter object_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The objectFilter. + */ + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter getObjectFilter(); + + /** + * + * + *
    +     * Required. Object filter to apply the customization rules to.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter object_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilterOrBuilder getObjectFilterOrBuilder(); + } + + /** + * + * + *
    +   * A set of rules to apply to a set of objects.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.Stream.RuleSet} + */ + public static final class RuleSet extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Stream.RuleSet) + RuleSetOrBuilder { + 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= */ "", + "RuleSet"); + } + + // Use RuleSet.newBuilder() to construct. + private RuleSet(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RuleSet() { + customizationRules_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_RuleSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_RuleSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.Stream.RuleSet.class, + com.google.cloud.datastream.v1.Stream.RuleSet.Builder.class); + } + + public interface ObjectFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +       * Specific source object identifier.
    +       * 
    + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 1; + * + * + * @return Whether the sourceObjectIdentifier field is set. + */ + boolean hasSourceObjectIdentifier(); + + /** + * + * + *
    +       * Specific source object identifier.
    +       * 
    + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 1; + * + * + * @return The sourceObjectIdentifier. + */ + com.google.cloud.datastream.v1.SourceObjectIdentifier getSourceObjectIdentifier(); + + /** + * + * + *
    +       * Specific source object identifier.
    +       * 
    + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 1; + * + */ + com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder + getSourceObjectIdentifierOrBuilder(); + + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter.FilterTypeCase getFilterTypeCase(); + } + + /** + * + * + *
    +     * Object filter to apply the rules to.
    +     * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter} + */ + public static final class ObjectFilter extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter) + ObjectFilterOrBuilder { + 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= */ "", + "ObjectFilter"); + } + + // Use ObjectFilter.newBuilder() to construct. + private ObjectFilter(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ObjectFilter() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_RuleSet_ObjectFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_RuleSet_ObjectFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter.class, + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter.Builder.class); + } + + private int filterTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object filterType_; + + public enum FilterTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SOURCE_OBJECT_IDENTIFIER(1), + FILTERTYPE_NOT_SET(0); + private final int value; + + private FilterTypeCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FilterTypeCase valueOf(int value) { + return forNumber(value); + } + + public static FilterTypeCase forNumber(int value) { + switch (value) { + case 1: + return SOURCE_OBJECT_IDENTIFIER; + case 0: + return FILTERTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public FilterTypeCase getFilterTypeCase() { + return FilterTypeCase.forNumber(filterTypeCase_); + } + + public static final int SOURCE_OBJECT_IDENTIFIER_FIELD_NUMBER = 1; + + /** + * + * + *
    +       * Specific source object identifier.
    +       * 
    + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 1; + * + * + * @return Whether the sourceObjectIdentifier field is set. + */ + @java.lang.Override + public boolean hasSourceObjectIdentifier() { + return filterTypeCase_ == 1; + } + + /** + * + * + *
    +       * Specific source object identifier.
    +       * 
    + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 1; + * + * + * @return The sourceObjectIdentifier. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier getSourceObjectIdentifier() { + if (filterTypeCase_ == 1) { + return (com.google.cloud.datastream.v1.SourceObjectIdentifier) filterType_; + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance(); + } + + /** + * + * + *
    +       * Specific source object identifier.
    +       * 
    + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 1; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder + getSourceObjectIdentifierOrBuilder() { + if (filterTypeCase_ == 1) { + return (com.google.cloud.datastream.v1.SourceObjectIdentifier) filterType_; + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (filterTypeCase_ == 1) { + output.writeMessage( + 1, (com.google.cloud.datastream.v1.SourceObjectIdentifier) filterType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (filterTypeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.datastream.v1.SourceObjectIdentifier) filterType_); + } + 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.datastream.v1.Stream.RuleSet.ObjectFilter)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter other = + (com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter) obj; + + if (!getFilterTypeCase().equals(other.getFilterTypeCase())) return false; + switch (filterTypeCase_) { + case 1: + if (!getSourceObjectIdentifier().equals(other.getSourceObjectIdentifier())) + return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (filterTypeCase_) { + case 1: + hash = (37 * hash) + SOURCE_OBJECT_IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getSourceObjectIdentifier().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter 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.datastream.v1.Stream.RuleSet.ObjectFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter 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.datastream.v1.Stream.RuleSet.ObjectFilter parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter 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.datastream.v1.Stream.RuleSet.ObjectFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter 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.datastream.v1.Stream.RuleSet.ObjectFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter 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.datastream.v1.Stream.RuleSet.ObjectFilter 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; + } + + /** + * + * + *
    +       * Object filter to apply the rules to.
    +       * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter) + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_RuleSet_ObjectFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_RuleSet_ObjectFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter.class, + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sourceObjectIdentifierBuilder_ != null) { + sourceObjectIdentifierBuilder_.clear(); + } + filterTypeCase_ = 0; + filterType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_RuleSet_ObjectFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter build() { + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter buildPartial() { + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter result = + new com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter result) { + result.filterTypeCase_ = filterTypeCase_; + result.filterType_ = this.filterType_; + if (filterTypeCase_ == 1 && sourceObjectIdentifierBuilder_ != null) { + result.filterType_ = sourceObjectIdentifierBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter) { + return mergeFrom((com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter other) { + if (other + == com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter.getDefaultInstance()) + return this; + switch (other.getFilterTypeCase()) { + case SOURCE_OBJECT_IDENTIFIER: + { + mergeSourceObjectIdentifier(other.getSourceObjectIdentifier()); + break; + } + case FILTERTYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetSourceObjectIdentifierFieldBuilder().getBuilder(), + extensionRegistry); + filterTypeCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int filterTypeCase_ = 0; + private java.lang.Object filterType_; + + public FilterTypeCase getFilterTypeCase() { + return FilterTypeCase.forNumber(filterTypeCase_); + } + + public Builder clearFilterType() { + filterTypeCase_ = 0; + filterType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder> + sourceObjectIdentifierBuilder_; + + /** + * + * + *
    +         * Specific source object identifier.
    +         * 
    + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 1; + * + * + * @return Whether the sourceObjectIdentifier field is set. + */ + @java.lang.Override + public boolean hasSourceObjectIdentifier() { + return filterTypeCase_ == 1; + } + + /** + * + * + *
    +         * Specific source object identifier.
    +         * 
    + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 1; + * + * + * @return The sourceObjectIdentifier. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier getSourceObjectIdentifier() { + if (sourceObjectIdentifierBuilder_ == null) { + if (filterTypeCase_ == 1) { + return (com.google.cloud.datastream.v1.SourceObjectIdentifier) filterType_; + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance(); + } else { + if (filterTypeCase_ == 1) { + return sourceObjectIdentifierBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance(); + } + } + + /** + * + * + *
    +         * Specific source object identifier.
    +         * 
    + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 1; + * + */ + public Builder setSourceObjectIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier value) { + if (sourceObjectIdentifierBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filterType_ = value; + onChanged(); + } else { + sourceObjectIdentifierBuilder_.setMessage(value); + } + filterTypeCase_ = 1; + return this; + } + + /** + * + * + *
    +         * Specific source object identifier.
    +         * 
    + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 1; + * + */ + public Builder setSourceObjectIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder builderForValue) { + if (sourceObjectIdentifierBuilder_ == null) { + filterType_ = builderForValue.build(); + onChanged(); + } else { + sourceObjectIdentifierBuilder_.setMessage(builderForValue.build()); + } + filterTypeCase_ = 1; + return this; + } + + /** + * + * + *
    +         * Specific source object identifier.
    +         * 
    + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 1; + * + */ + public Builder mergeSourceObjectIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier value) { + if (sourceObjectIdentifierBuilder_ == null) { + if (filterTypeCase_ == 1 + && filterType_ + != com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance()) { + filterType_ = + com.google.cloud.datastream.v1.SourceObjectIdentifier.newBuilder( + (com.google.cloud.datastream.v1.SourceObjectIdentifier) filterType_) + .mergeFrom(value) + .buildPartial(); + } else { + filterType_ = value; + } + onChanged(); + } else { + if (filterTypeCase_ == 1) { + sourceObjectIdentifierBuilder_.mergeFrom(value); + } else { + sourceObjectIdentifierBuilder_.setMessage(value); + } + } + filterTypeCase_ = 1; + return this; + } + + /** + * + * + *
    +         * Specific source object identifier.
    +         * 
    + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 1; + * + */ + public Builder clearSourceObjectIdentifier() { + if (sourceObjectIdentifierBuilder_ == null) { + if (filterTypeCase_ == 1) { + filterTypeCase_ = 0; + filterType_ = null; + onChanged(); + } + } else { + if (filterTypeCase_ == 1) { + filterTypeCase_ = 0; + filterType_ = null; + } + sourceObjectIdentifierBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +         * Specific source object identifier.
    +         * 
    + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 1; + * + */ + public com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder + getSourceObjectIdentifierBuilder() { + return internalGetSourceObjectIdentifierFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +         * Specific source object identifier.
    +         * 
    + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 1; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder + getSourceObjectIdentifierOrBuilder() { + if ((filterTypeCase_ == 1) && (sourceObjectIdentifierBuilder_ != null)) { + return sourceObjectIdentifierBuilder_.getMessageOrBuilder(); + } else { + if (filterTypeCase_ == 1) { + return (com.google.cloud.datastream.v1.SourceObjectIdentifier) filterType_; + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance(); + } + } + + /** + * + * + *
    +         * Specific source object identifier.
    +         * 
    + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder> + internalGetSourceObjectIdentifierFieldBuilder() { + if (sourceObjectIdentifierBuilder_ == null) { + if (!(filterTypeCase_ == 1)) { + filterType_ = + com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance(); + } + sourceObjectIdentifierBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder>( + (com.google.cloud.datastream.v1.SourceObjectIdentifier) filterType_, + getParentForChildren(), + isClean()); + filterType_ = null; + } + filterTypeCase_ = 1; + onChanged(); + return sourceObjectIdentifierBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter) + private static final com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter(); + } + + public static com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectFilter 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.datastream.v1.Stream.RuleSet.ObjectFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CustomizationRuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +       * BigQuery partitioning rule.
    +       * 
    + * + * .google.cloud.datastream.v1.BigQueryPartitioning bigquery_partitioning = 1; + * + * @return Whether the bigqueryPartitioning field is set. + */ + boolean hasBigqueryPartitioning(); + + /** + * + * + *
    +       * BigQuery partitioning rule.
    +       * 
    + * + * .google.cloud.datastream.v1.BigQueryPartitioning bigquery_partitioning = 1; + * + * @return The bigqueryPartitioning. + */ + com.google.cloud.datastream.v1.BigQueryPartitioning getBigqueryPartitioning(); + + /** + * + * + *
    +       * BigQuery partitioning rule.
    +       * 
    + * + * .google.cloud.datastream.v1.BigQueryPartitioning bigquery_partitioning = 1; + */ + com.google.cloud.datastream.v1.BigQueryPartitioningOrBuilder + getBigqueryPartitioningOrBuilder(); + + /** + * + * + *
    +       * BigQuery clustering rule.
    +       * 
    + * + * .google.cloud.datastream.v1.BigQueryClustering bigquery_clustering = 2; + * + * @return Whether the bigqueryClustering field is set. + */ + boolean hasBigqueryClustering(); + + /** + * + * + *
    +       * BigQuery clustering rule.
    +       * 
    + * + * .google.cloud.datastream.v1.BigQueryClustering bigquery_clustering = 2; + * + * @return The bigqueryClustering. + */ + com.google.cloud.datastream.v1.BigQueryClustering getBigqueryClustering(); + + /** + * + * + *
    +       * BigQuery clustering rule.
    +       * 
    + * + * .google.cloud.datastream.v1.BigQueryClustering bigquery_clustering = 2; + */ + com.google.cloud.datastream.v1.BigQueryClusteringOrBuilder getBigqueryClusteringOrBuilder(); + + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.RuleCase getRuleCase(); + } + + /** + * + * + *
    +     * A customization rule to apply to a set of objects.
    +     * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule} + */ + public static final class CustomizationRule extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule) + CustomizationRuleOrBuilder { + 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= */ "", + "CustomizationRule"); + } + + // Use CustomizationRule.newBuilder() to construct. + private CustomizationRule(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CustomizationRule() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_RuleSet_CustomizationRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_RuleSet_CustomizationRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.class, + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.Builder.class); + } + + private int ruleCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object rule_; + + public enum RuleCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BIGQUERY_PARTITIONING(1), + BIGQUERY_CLUSTERING(2), + RULE_NOT_SET(0); + private final int value; + + private RuleCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RuleCase valueOf(int value) { + return forNumber(value); + } + + public static RuleCase forNumber(int value) { + switch (value) { + case 1: + return BIGQUERY_PARTITIONING; + case 2: + return BIGQUERY_CLUSTERING; + case 0: + return RULE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RuleCase getRuleCase() { + return RuleCase.forNumber(ruleCase_); + } + + public static final int BIGQUERY_PARTITIONING_FIELD_NUMBER = 1; + + /** + * + * + *
    +       * BigQuery partitioning rule.
    +       * 
    + * + * .google.cloud.datastream.v1.BigQueryPartitioning bigquery_partitioning = 1; + * + * @return Whether the bigqueryPartitioning field is set. + */ + @java.lang.Override + public boolean hasBigqueryPartitioning() { + return ruleCase_ == 1; + } + + /** + * + * + *
    +       * BigQuery partitioning rule.
    +       * 
    + * + * .google.cloud.datastream.v1.BigQueryPartitioning bigquery_partitioning = 1; + * + * @return The bigqueryPartitioning. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryPartitioning getBigqueryPartitioning() { + if (ruleCase_ == 1) { + return (com.google.cloud.datastream.v1.BigQueryPartitioning) rule_; + } + return com.google.cloud.datastream.v1.BigQueryPartitioning.getDefaultInstance(); + } + + /** + * + * + *
    +       * BigQuery partitioning rule.
    +       * 
    + * + * .google.cloud.datastream.v1.BigQueryPartitioning bigquery_partitioning = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryPartitioningOrBuilder + getBigqueryPartitioningOrBuilder() { + if (ruleCase_ == 1) { + return (com.google.cloud.datastream.v1.BigQueryPartitioning) rule_; + } + return com.google.cloud.datastream.v1.BigQueryPartitioning.getDefaultInstance(); + } + + public static final int BIGQUERY_CLUSTERING_FIELD_NUMBER = 2; + + /** + * + * + *
    +       * BigQuery clustering rule.
    +       * 
    + * + * .google.cloud.datastream.v1.BigQueryClustering bigquery_clustering = 2; + * + * @return Whether the bigqueryClustering field is set. + */ + @java.lang.Override + public boolean hasBigqueryClustering() { + return ruleCase_ == 2; + } + + /** + * + * + *
    +       * BigQuery clustering rule.
    +       * 
    + * + * .google.cloud.datastream.v1.BigQueryClustering bigquery_clustering = 2; + * + * @return The bigqueryClustering. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryClustering getBigqueryClustering() { + if (ruleCase_ == 2) { + return (com.google.cloud.datastream.v1.BigQueryClustering) rule_; + } + return com.google.cloud.datastream.v1.BigQueryClustering.getDefaultInstance(); + } + + /** + * + * + *
    +       * BigQuery clustering rule.
    +       * 
    + * + * .google.cloud.datastream.v1.BigQueryClustering bigquery_clustering = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryClusteringOrBuilder + getBigqueryClusteringOrBuilder() { + if (ruleCase_ == 2) { + return (com.google.cloud.datastream.v1.BigQueryClustering) rule_; + } + return com.google.cloud.datastream.v1.BigQueryClustering.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (ruleCase_ == 1) { + output.writeMessage(1, (com.google.cloud.datastream.v1.BigQueryPartitioning) rule_); + } + if (ruleCase_ == 2) { + output.writeMessage(2, (com.google.cloud.datastream.v1.BigQueryClustering) rule_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (ruleCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.datastream.v1.BigQueryPartitioning) rule_); + } + if (ruleCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.datastream.v1.BigQueryClustering) rule_); + } + 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.datastream.v1.Stream.RuleSet.CustomizationRule)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule other = + (com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule) obj; + + if (!getRuleCase().equals(other.getRuleCase())) return false; + switch (ruleCase_) { + case 1: + if (!getBigqueryPartitioning().equals(other.getBigqueryPartitioning())) return false; + break; + case 2: + if (!getBigqueryClustering().equals(other.getBigqueryClustering())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (ruleCase_) { + case 1: + hash = (37 * hash) + BIGQUERY_PARTITIONING_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryPartitioning().hashCode(); + break; + case 2: + hash = (37 * hash) + BIGQUERY_CLUSTERING_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryClustering().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule 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.datastream.v1.Stream.RuleSet.CustomizationRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule 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.datastream.v1.Stream.RuleSet.CustomizationRule parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule 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.datastream.v1.Stream.RuleSet.CustomizationRule + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule + 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.datastream.v1.Stream.RuleSet.CustomizationRule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule 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.datastream.v1.Stream.RuleSet.CustomizationRule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +       * A customization rule to apply to a set of objects.
    +       * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule) + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_RuleSet_CustomizationRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_RuleSet_CustomizationRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.class, + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.Builder.class); + } + + // Construct using + // com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (bigqueryPartitioningBuilder_ != null) { + bigqueryPartitioningBuilder_.clear(); + } + if (bigqueryClusteringBuilder_ != null) { + bigqueryClusteringBuilder_.clear(); + } + ruleCase_ = 0; + rule_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_RuleSet_CustomizationRule_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule build() { + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule buildPartial() { + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule result = + new com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule result) { + result.ruleCase_ = ruleCase_; + result.rule_ = this.rule_; + if (ruleCase_ == 1 && bigqueryPartitioningBuilder_ != null) { + result.rule_ = bigqueryPartitioningBuilder_.build(); + } + if (ruleCase_ == 2 && bigqueryClusteringBuilder_ != null) { + result.rule_ = bigqueryClusteringBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule) { + return mergeFrom( + (com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule other) { + if (other + == com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule + .getDefaultInstance()) return this; + switch (other.getRuleCase()) { + case BIGQUERY_PARTITIONING: + { + mergeBigqueryPartitioning(other.getBigqueryPartitioning()); + break; + } + case BIGQUERY_CLUSTERING: + { + mergeBigqueryClustering(other.getBigqueryClustering()); + break; + } + case RULE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * - * - *
    -   * Backfill strategy to disable automatic backfill for the Stream's objects.
    -   * 
    - * - * Protobuf type {@code google.cloud.datastream.v1.Stream.BackfillNoneStrategy} - */ - public static final class BackfillNoneStrategy extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) - BackfillNoneStrategyOrBuilder { - private static final long serialVersionUID = 0L; + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetBigqueryPartitioningFieldBuilder().getBuilder(), + extensionRegistry); + ruleCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetBigqueryClusteringFieldBuilder().getBuilder(), + extensionRegistry); + ruleCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "BackfillNoneStrategy"); + private int ruleCase_ = 0; + private java.lang.Object rule_; + + public RuleCase getRuleCase() { + return RuleCase.forNumber(ruleCase_); + } + + public Builder clearRule() { + ruleCase_ = 0; + rule_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.BigQueryPartitioning, + com.google.cloud.datastream.v1.BigQueryPartitioning.Builder, + com.google.cloud.datastream.v1.BigQueryPartitioningOrBuilder> + bigqueryPartitioningBuilder_; + + /** + * + * + *
    +         * BigQuery partitioning rule.
    +         * 
    + * + * .google.cloud.datastream.v1.BigQueryPartitioning bigquery_partitioning = 1; + * + * @return Whether the bigqueryPartitioning field is set. + */ + @java.lang.Override + public boolean hasBigqueryPartitioning() { + return ruleCase_ == 1; + } + + /** + * + * + *
    +         * BigQuery partitioning rule.
    +         * 
    + * + * .google.cloud.datastream.v1.BigQueryPartitioning bigquery_partitioning = 1; + * + * @return The bigqueryPartitioning. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryPartitioning getBigqueryPartitioning() { + if (bigqueryPartitioningBuilder_ == null) { + if (ruleCase_ == 1) { + return (com.google.cloud.datastream.v1.BigQueryPartitioning) rule_; + } + return com.google.cloud.datastream.v1.BigQueryPartitioning.getDefaultInstance(); + } else { + if (ruleCase_ == 1) { + return bigqueryPartitioningBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.BigQueryPartitioning.getDefaultInstance(); + } + } + + /** + * + * + *
    +         * BigQuery partitioning rule.
    +         * 
    + * + * .google.cloud.datastream.v1.BigQueryPartitioning bigquery_partitioning = 1; + */ + public Builder setBigqueryPartitioning( + com.google.cloud.datastream.v1.BigQueryPartitioning value) { + if (bigqueryPartitioningBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rule_ = value; + onChanged(); + } else { + bigqueryPartitioningBuilder_.setMessage(value); + } + ruleCase_ = 1; + return this; + } + + /** + * + * + *
    +         * BigQuery partitioning rule.
    +         * 
    + * + * .google.cloud.datastream.v1.BigQueryPartitioning bigquery_partitioning = 1; + */ + public Builder setBigqueryPartitioning( + com.google.cloud.datastream.v1.BigQueryPartitioning.Builder builderForValue) { + if (bigqueryPartitioningBuilder_ == null) { + rule_ = builderForValue.build(); + onChanged(); + } else { + bigqueryPartitioningBuilder_.setMessage(builderForValue.build()); + } + ruleCase_ = 1; + return this; + } + + /** + * + * + *
    +         * BigQuery partitioning rule.
    +         * 
    + * + * .google.cloud.datastream.v1.BigQueryPartitioning bigquery_partitioning = 1; + */ + public Builder mergeBigqueryPartitioning( + com.google.cloud.datastream.v1.BigQueryPartitioning value) { + if (bigqueryPartitioningBuilder_ == null) { + if (ruleCase_ == 1 + && rule_ + != com.google.cloud.datastream.v1.BigQueryPartitioning.getDefaultInstance()) { + rule_ = + com.google.cloud.datastream.v1.BigQueryPartitioning.newBuilder( + (com.google.cloud.datastream.v1.BigQueryPartitioning) rule_) + .mergeFrom(value) + .buildPartial(); + } else { + rule_ = value; + } + onChanged(); + } else { + if (ruleCase_ == 1) { + bigqueryPartitioningBuilder_.mergeFrom(value); + } else { + bigqueryPartitioningBuilder_.setMessage(value); + } + } + ruleCase_ = 1; + return this; + } + + /** + * + * + *
    +         * BigQuery partitioning rule.
    +         * 
    + * + * .google.cloud.datastream.v1.BigQueryPartitioning bigquery_partitioning = 1; + */ + public Builder clearBigqueryPartitioning() { + if (bigqueryPartitioningBuilder_ == null) { + if (ruleCase_ == 1) { + ruleCase_ = 0; + rule_ = null; + onChanged(); + } + } else { + if (ruleCase_ == 1) { + ruleCase_ = 0; + rule_ = null; + } + bigqueryPartitioningBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +         * BigQuery partitioning rule.
    +         * 
    + * + * .google.cloud.datastream.v1.BigQueryPartitioning bigquery_partitioning = 1; + */ + public com.google.cloud.datastream.v1.BigQueryPartitioning.Builder + getBigqueryPartitioningBuilder() { + return internalGetBigqueryPartitioningFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +         * BigQuery partitioning rule.
    +         * 
    + * + * .google.cloud.datastream.v1.BigQueryPartitioning bigquery_partitioning = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryPartitioningOrBuilder + getBigqueryPartitioningOrBuilder() { + if ((ruleCase_ == 1) && (bigqueryPartitioningBuilder_ != null)) { + return bigqueryPartitioningBuilder_.getMessageOrBuilder(); + } else { + if (ruleCase_ == 1) { + return (com.google.cloud.datastream.v1.BigQueryPartitioning) rule_; + } + return com.google.cloud.datastream.v1.BigQueryPartitioning.getDefaultInstance(); + } + } + + /** + * + * + *
    +         * BigQuery partitioning rule.
    +         * 
    + * + * .google.cloud.datastream.v1.BigQueryPartitioning bigquery_partitioning = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.BigQueryPartitioning, + com.google.cloud.datastream.v1.BigQueryPartitioning.Builder, + com.google.cloud.datastream.v1.BigQueryPartitioningOrBuilder> + internalGetBigqueryPartitioningFieldBuilder() { + if (bigqueryPartitioningBuilder_ == null) { + if (!(ruleCase_ == 1)) { + rule_ = com.google.cloud.datastream.v1.BigQueryPartitioning.getDefaultInstance(); + } + bigqueryPartitioningBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.BigQueryPartitioning, + com.google.cloud.datastream.v1.BigQueryPartitioning.Builder, + com.google.cloud.datastream.v1.BigQueryPartitioningOrBuilder>( + (com.google.cloud.datastream.v1.BigQueryPartitioning) rule_, + getParentForChildren(), + isClean()); + rule_ = null; + } + ruleCase_ = 1; + onChanged(); + return bigqueryPartitioningBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.BigQueryClustering, + com.google.cloud.datastream.v1.BigQueryClustering.Builder, + com.google.cloud.datastream.v1.BigQueryClusteringOrBuilder> + bigqueryClusteringBuilder_; + + /** + * + * + *
    +         * BigQuery clustering rule.
    +         * 
    + * + * .google.cloud.datastream.v1.BigQueryClustering bigquery_clustering = 2; + * + * @return Whether the bigqueryClustering field is set. + */ + @java.lang.Override + public boolean hasBigqueryClustering() { + return ruleCase_ == 2; + } + + /** + * + * + *
    +         * BigQuery clustering rule.
    +         * 
    + * + * .google.cloud.datastream.v1.BigQueryClustering bigquery_clustering = 2; + * + * @return The bigqueryClustering. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryClustering getBigqueryClustering() { + if (bigqueryClusteringBuilder_ == null) { + if (ruleCase_ == 2) { + return (com.google.cloud.datastream.v1.BigQueryClustering) rule_; + } + return com.google.cloud.datastream.v1.BigQueryClustering.getDefaultInstance(); + } else { + if (ruleCase_ == 2) { + return bigqueryClusteringBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.BigQueryClustering.getDefaultInstance(); + } + } + + /** + * + * + *
    +         * BigQuery clustering rule.
    +         * 
    + * + * .google.cloud.datastream.v1.BigQueryClustering bigquery_clustering = 2; + */ + public Builder setBigqueryClustering( + com.google.cloud.datastream.v1.BigQueryClustering value) { + if (bigqueryClusteringBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rule_ = value; + onChanged(); + } else { + bigqueryClusteringBuilder_.setMessage(value); + } + ruleCase_ = 2; + return this; + } + + /** + * + * + *
    +         * BigQuery clustering rule.
    +         * 
    + * + * .google.cloud.datastream.v1.BigQueryClustering bigquery_clustering = 2; + */ + public Builder setBigqueryClustering( + com.google.cloud.datastream.v1.BigQueryClustering.Builder builderForValue) { + if (bigqueryClusteringBuilder_ == null) { + rule_ = builderForValue.build(); + onChanged(); + } else { + bigqueryClusteringBuilder_.setMessage(builderForValue.build()); + } + ruleCase_ = 2; + return this; + } + + /** + * + * + *
    +         * BigQuery clustering rule.
    +         * 
    + * + * .google.cloud.datastream.v1.BigQueryClustering bigquery_clustering = 2; + */ + public Builder mergeBigqueryClustering( + com.google.cloud.datastream.v1.BigQueryClustering value) { + if (bigqueryClusteringBuilder_ == null) { + if (ruleCase_ == 2 + && rule_ + != com.google.cloud.datastream.v1.BigQueryClustering.getDefaultInstance()) { + rule_ = + com.google.cloud.datastream.v1.BigQueryClustering.newBuilder( + (com.google.cloud.datastream.v1.BigQueryClustering) rule_) + .mergeFrom(value) + .buildPartial(); + } else { + rule_ = value; + } + onChanged(); + } else { + if (ruleCase_ == 2) { + bigqueryClusteringBuilder_.mergeFrom(value); + } else { + bigqueryClusteringBuilder_.setMessage(value); + } + } + ruleCase_ = 2; + return this; + } + + /** + * + * + *
    +         * BigQuery clustering rule.
    +         * 
    + * + * .google.cloud.datastream.v1.BigQueryClustering bigquery_clustering = 2; + */ + public Builder clearBigqueryClustering() { + if (bigqueryClusteringBuilder_ == null) { + if (ruleCase_ == 2) { + ruleCase_ = 0; + rule_ = null; + onChanged(); + } + } else { + if (ruleCase_ == 2) { + ruleCase_ = 0; + rule_ = null; + } + bigqueryClusteringBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +         * BigQuery clustering rule.
    +         * 
    + * + * .google.cloud.datastream.v1.BigQueryClustering bigquery_clustering = 2; + */ + public com.google.cloud.datastream.v1.BigQueryClustering.Builder + getBigqueryClusteringBuilder() { + return internalGetBigqueryClusteringFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +         * BigQuery clustering rule.
    +         * 
    + * + * .google.cloud.datastream.v1.BigQueryClustering bigquery_clustering = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryClusteringOrBuilder + getBigqueryClusteringOrBuilder() { + if ((ruleCase_ == 2) && (bigqueryClusteringBuilder_ != null)) { + return bigqueryClusteringBuilder_.getMessageOrBuilder(); + } else { + if (ruleCase_ == 2) { + return (com.google.cloud.datastream.v1.BigQueryClustering) rule_; + } + return com.google.cloud.datastream.v1.BigQueryClustering.getDefaultInstance(); + } + } + + /** + * + * + *
    +         * BigQuery clustering rule.
    +         * 
    + * + * .google.cloud.datastream.v1.BigQueryClustering bigquery_clustering = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.BigQueryClustering, + com.google.cloud.datastream.v1.BigQueryClustering.Builder, + com.google.cloud.datastream.v1.BigQueryClusteringOrBuilder> + internalGetBigqueryClusteringFieldBuilder() { + if (bigqueryClusteringBuilder_ == null) { + if (!(ruleCase_ == 2)) { + rule_ = com.google.cloud.datastream.v1.BigQueryClustering.getDefaultInstance(); + } + bigqueryClusteringBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.BigQueryClustering, + com.google.cloud.datastream.v1.BigQueryClustering.Builder, + com.google.cloud.datastream.v1.BigQueryClusteringOrBuilder>( + (com.google.cloud.datastream.v1.BigQueryClustering) rule_, + getParentForChildren(), + isClean()); + rule_ = null; + } + ruleCase_ = 2; + onChanged(); + return bigqueryClusteringBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule) + private static final com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule(); + } + + public static com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomizationRule 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.datastream.v1.Stream.RuleSet.CustomizationRule + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - // Use BackfillNoneStrategy.newBuilder() to construct. - private BackfillNoneStrategy(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); + private int bitField0_; + public static final int CUSTOMIZATION_RULES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + customizationRules_; + + /** + * + * + *
    +     * Required. List of customization rules to apply.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getCustomizationRulesList() { + return customizationRules_; } - private BackfillNoneStrategy() {} + /** + * + * + *
    +     * Required. List of customization rules to apply.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRuleOrBuilder> + getCustomizationRulesOrBuilderList() { + return customizationRules_; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; + /** + * + * + *
    +     * Required. List of customization rules to apply.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getCustomizationRulesCount() { + return customizationRules_.size(); + } + + /** + * + * + *
    +     * Required. List of customization rules to apply.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule getCustomizationRules( + int index) { + return customizationRules_.get(index); + } + + /** + * + * + *
    +     * Required. List of customization rules to apply.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRuleOrBuilder + getCustomizationRulesOrBuilder(int index) { + return customizationRules_.get(index); + } + + public static final int OBJECT_FILTER_FIELD_NUMBER = 2; + private com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter objectFilter_; + + /** + * + * + *
    +     * Required. Object filter to apply the customization rules to.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter object_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the objectFilter field is set. + */ + @java.lang.Override + public boolean hasObjectFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Required. Object filter to apply the customization rules to.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter object_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The objectFilter. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter getObjectFilter() { + return objectFilter_ == null + ? com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter.getDefaultInstance() + : objectFilter_; } + /** + * + * + *
    +     * Required. Object filter to apply the customization rules to.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter object_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.class, - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder.class); + public com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilterOrBuilder + getObjectFilterOrBuilder() { + return objectFilter_ == null + ? com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter.getDefaultInstance() + : objectFilter_; } private byte memoizedIsInitialized = -1; @@ -3052,6 +6469,12 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < customizationRules_.size(); i++) { + output.writeMessage(1, customizationRules_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getObjectFilter()); + } getUnknownFields().writeTo(output); } @@ -3061,6 +6484,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + for (int i = 0; i < customizationRules_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, customizationRules_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getObjectFilter()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3071,12 +6501,17 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy)) { + if (!(obj instanceof com.google.cloud.datastream.v1.Stream.RuleSet)) { return super.equals(obj); } - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy other = - (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) obj; + com.google.cloud.datastream.v1.Stream.RuleSet other = + (com.google.cloud.datastream.v1.Stream.RuleSet) obj; + if (!getCustomizationRulesList().equals(other.getCustomizationRulesList())) return false; + if (hasObjectFilter() != other.hasObjectFilter()) return false; + if (hasObjectFilter()) { + if (!getObjectFilter().equals(other.getObjectFilter())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3088,254 +6523,1009 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (getCustomizationRulesCount() > 0) { + hash = (37 * hash) + CUSTOMIZATION_RULES_FIELD_NUMBER; + hash = (53 * hash) + getCustomizationRulesList().hashCode(); + } + if (hasObjectFilter()) { + hash = (37 * hash) + OBJECT_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getObjectFilter().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.Stream.RuleSet parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( + public static com.google.cloud.datastream.v1.Stream.RuleSet 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.datastream.v1.Stream.BackfillNoneStrategy parseFrom( + public static com.google.cloud.datastream.v1.Stream.RuleSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( + public static com.google.cloud.datastream.v1.Stream.RuleSet 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.datastream.v1.Stream.BackfillNoneStrategy parseFrom(byte[] data) + public static com.google.cloud.datastream.v1.Stream.RuleSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static com.google.cloud.datastream.v1.Stream.RuleSet parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.Stream.RuleSet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.Stream.RuleSet 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.datastream.v1.Stream.RuleSet parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.Stream.RuleSet 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.datastream.v1.Stream.RuleSet parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.Stream.RuleSet 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.datastream.v1.Stream.RuleSet prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * A set of rules to apply to a set of objects.
    +     * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.Stream.RuleSet} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.Stream.RuleSet) + com.google.cloud.datastream.v1.Stream.RuleSetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_RuleSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_RuleSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.Stream.RuleSet.class, + com.google.cloud.datastream.v1.Stream.RuleSet.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.Stream.RuleSet.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCustomizationRulesFieldBuilder(); + internalGetObjectFilterFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (customizationRulesBuilder_ == null) { + customizationRules_ = java.util.Collections.emptyList(); + } else { + customizationRules_ = null; + customizationRulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + objectFilter_ = null; + if (objectFilterBuilder_ != null) { + objectFilterBuilder_.dispose(); + objectFilterBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_RuleSet_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.RuleSet getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.Stream.RuleSet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.RuleSet build() { + com.google.cloud.datastream.v1.Stream.RuleSet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.RuleSet buildPartial() { + com.google.cloud.datastream.v1.Stream.RuleSet result = + new com.google.cloud.datastream.v1.Stream.RuleSet(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.datastream.v1.Stream.RuleSet result) { + if (customizationRulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + customizationRules_ = java.util.Collections.unmodifiableList(customizationRules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.customizationRules_ = customizationRules_; + } else { + result.customizationRules_ = customizationRulesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.datastream.v1.Stream.RuleSet result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.objectFilter_ = + objectFilterBuilder_ == null ? objectFilter_ : objectFilterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.Stream.RuleSet) { + return mergeFrom((com.google.cloud.datastream.v1.Stream.RuleSet) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.Stream.RuleSet other) { + if (other == com.google.cloud.datastream.v1.Stream.RuleSet.getDefaultInstance()) + return this; + if (customizationRulesBuilder_ == null) { + if (!other.customizationRules_.isEmpty()) { + if (customizationRules_.isEmpty()) { + customizationRules_ = other.customizationRules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCustomizationRulesIsMutable(); + customizationRules_.addAll(other.customizationRules_); + } + onChanged(); + } + } else { + if (!other.customizationRules_.isEmpty()) { + if (customizationRulesBuilder_.isEmpty()) { + customizationRulesBuilder_.dispose(); + customizationRulesBuilder_ = null; + customizationRules_ = other.customizationRules_; + bitField0_ = (bitField0_ & ~0x00000001); + customizationRulesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCustomizationRulesFieldBuilder() + : null; + } else { + customizationRulesBuilder_.addAllMessages(other.customizationRules_); + } + } + } + if (other.hasObjectFilter()) { + mergeObjectFilter(other.getObjectFilter()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule m = + input.readMessage( + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.parser(), + extensionRegistry); + if (customizationRulesBuilder_ == null) { + ensureCustomizationRulesIsMutable(); + customizationRules_.add(m); + } else { + customizationRulesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetObjectFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + customizationRules_ = java.util.Collections.emptyList(); + + private void ensureCustomizationRulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + customizationRules_ = + new java.util.ArrayList< + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule>( + customizationRules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule, + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.Builder, + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRuleOrBuilder> + customizationRulesBuilder_; + + /** + * + * + *
    +       * Required. List of customization rules to apply.
    +       * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getCustomizationRulesList() { + if (customizationRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(customizationRules_); + } else { + return customizationRulesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +       * Required. List of customization rules to apply.
    +       * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getCustomizationRulesCount() { + if (customizationRulesBuilder_ == null) { + return customizationRules_.size(); + } else { + return customizationRulesBuilder_.getCount(); + } + } + + /** + * + * + *
    +       * Required. List of customization rules to apply.
    +       * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule getCustomizationRules( + int index) { + if (customizationRulesBuilder_ == null) { + return customizationRules_.get(index); + } else { + return customizationRulesBuilder_.getMessage(index); + } + } - public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
    +       * Required. List of customization rules to apply.
    +       * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomizationRules( + int index, com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule value) { + if (customizationRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomizationRulesIsMutable(); + customizationRules_.set(index, value); + onChanged(); + } else { + customizationRulesBuilder_.setMessage(index, value); + } + return this; + } - public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
    +       * Required. List of customization rules to apply.
    +       * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomizationRules( + int index, + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.Builder builderForValue) { + if (customizationRulesBuilder_ == null) { + ensureCustomizationRulesIsMutable(); + customizationRules_.set(index, builderForValue.build()); + onChanged(); + } else { + customizationRulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } - public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + /** + * + * + *
    +       * Required. List of customization rules to apply.
    +       * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addCustomizationRules( + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule value) { + if (customizationRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomizationRulesIsMutable(); + customizationRules_.add(value); + onChanged(); + } else { + customizationRulesBuilder_.addMessage(value); + } + return this; + } - public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
    +       * Required. List of customization rules to apply.
    +       * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addCustomizationRules( + int index, com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule value) { + if (customizationRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomizationRulesIsMutable(); + customizationRules_.add(index, value); + onChanged(); + } else { + customizationRulesBuilder_.addMessage(index, value); + } + return this; + } - public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
    +       * Required. List of customization rules to apply.
    +       * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addCustomizationRules( + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.Builder builderForValue) { + if (customizationRulesBuilder_ == null) { + ensureCustomizationRulesIsMutable(); + customizationRules_.add(builderForValue.build()); + onChanged(); + } else { + customizationRulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } - public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
    +       * Required. List of customization rules to apply.
    +       * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addCustomizationRules( + int index, + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.Builder builderForValue) { + if (customizationRulesBuilder_ == null) { + ensureCustomizationRulesIsMutable(); + customizationRules_.add(index, builderForValue.build()); + onChanged(); + } else { + customizationRulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + /** + * + * + *
    +       * Required. List of customization rules to apply.
    +       * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllCustomizationRules( + java.lang.Iterable< + ? extends com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule> + values) { + if (customizationRulesBuilder_ == null) { + ensureCustomizationRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customizationRules_); + onChanged(); + } else { + customizationRulesBuilder_.addAllMessages(values); + } + return this; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + * + * + *
    +       * Required. List of customization rules to apply.
    +       * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCustomizationRules() { + if (customizationRulesBuilder_ == null) { + customizationRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + customizationRulesBuilder_.clear(); + } + return this; + } - public static Builder newBuilder( - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + * + * + *
    +       * Required. List of customization rules to apply.
    +       * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeCustomizationRules(int index) { + if (customizationRulesBuilder_ == null) { + ensureCustomizationRulesIsMutable(); + customizationRules_.remove(index); + onChanged(); + } else { + customizationRulesBuilder_.remove(index); + } + return this; + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + * + * + *
    +       * Required. List of customization rules to apply.
    +       * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.Builder + getCustomizationRulesBuilder(int index) { + return internalGetCustomizationRulesFieldBuilder().getBuilder(index); + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + /** + * + * + *
    +       * Required. List of customization rules to apply.
    +       * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRuleOrBuilder + getCustomizationRulesOrBuilder(int index) { + if (customizationRulesBuilder_ == null) { + return customizationRules_.get(index); + } else { + return customizationRulesBuilder_.getMessageOrBuilder(index); + } + } - /** - * - * - *
    -     * Backfill strategy to disable automatic backfill for the Stream's objects.
    -     * 
    - * - * Protobuf type {@code google.cloud.datastream.v1.Stream.BackfillNoneStrategy} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; + /** + * + * + *
    +       * Required. List of customization rules to apply.
    +       * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRuleOrBuilder> + getCustomizationRulesOrBuilderList() { + if (customizationRulesBuilder_ != null) { + return customizationRulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customizationRules_); + } } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.class, - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder.class); + /** + * + * + *
    +       * Required. List of customization rules to apply.
    +       * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.Builder + addCustomizationRulesBuilder() { + return internalGetCustomizationRulesFieldBuilder() + .addBuilder( + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule + .getDefaultInstance()); } - // Construct using com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.newBuilder() - private Builder() {} + /** + * + * + *
    +       * Required. List of customization rules to apply.
    +       * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.Builder + addCustomizationRulesBuilder(int index) { + return internalGetCustomizationRulesFieldBuilder() + .addBuilder( + index, + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule + .getDefaultInstance()); + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); + /** + * + * + *
    +       * Required. List of customization rules to apply.
    +       * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getCustomizationRulesBuilderList() { + return internalGetCustomizationRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule, + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.Builder, + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRuleOrBuilder> + internalGetCustomizationRulesFieldBuilder() { + if (customizationRulesBuilder_ == null) { + customizationRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule, + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.Builder, + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRuleOrBuilder>( + customizationRules_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + customizationRules_ = null; + } + return customizationRulesBuilder_; } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } + private com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter objectFilter_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter, + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter.Builder, + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilterOrBuilder> + objectFilterBuilder_; - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; + /** + * + * + *
    +       * Required. Object filter to apply the customization rules to.
    +       * 
    + * + * + * .google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter object_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the objectFilter field is set. + */ + public boolean hasObjectFilter() { + return ((bitField0_ & 0x00000002) != 0); } - @java.lang.Override - public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); + /** + * + * + *
    +       * Required. Object filter to apply the customization rules to.
    +       * 
    + * + * + * .google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter object_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The objectFilter. + */ + public com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter getObjectFilter() { + if (objectFilterBuilder_ == null) { + return objectFilter_ == null + ? com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter.getDefaultInstance() + : objectFilter_; + } else { + return objectFilterBuilder_.getMessage(); + } } - @java.lang.Override - public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy build() { - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
    +       * Required. Object filter to apply the customization rules to.
    +       * 
    + * + * + * .google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter object_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setObjectFilter( + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter value) { + if (objectFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + objectFilter_ = value; + } else { + objectFilterBuilder_.setMessage(value); } - return result; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - @java.lang.Override - public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy buildPartial() { - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy result = - new com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy(this); - onBuilt(); - return result; + /** + * + * + *
    +       * Required. Object filter to apply the customization rules to.
    +       * 
    + * + * + * .google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter object_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setObjectFilter( + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter.Builder builderForValue) { + if (objectFilterBuilder_ == null) { + objectFilter_ = builderForValue.build(); + } else { + objectFilterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) { - return mergeFrom((com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) other); + /** + * + * + *
    +       * Required. Object filter to apply the customization rules to.
    +       * 
    + * + * + * .google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter object_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeObjectFilter( + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter value) { + if (objectFilterBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && objectFilter_ != null + && objectFilter_ + != com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter + .getDefaultInstance()) { + getObjectFilterBuilder().mergeFrom(value); + } else { + objectFilter_ = value; + } } else { - super.mergeFrom(other); - return this; + objectFilterBuilder_.mergeFrom(value); } + if (objectFilter_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; } - public Builder mergeFrom(com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy other) { - if (other - == com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance()) - return this; - this.mergeUnknownFields(other.getUnknownFields()); + /** + * + * + *
    +       * Required. Object filter to apply the customization rules to.
    +       * 
    + * + * + * .google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter object_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearObjectFilter() { + bitField0_ = (bitField0_ & ~0x00000002); + objectFilter_ = null; + if (objectFilterBuilder_ != null) { + objectFilterBuilder_.dispose(); + objectFilterBuilder_ = null; + } onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
    +       * Required. Object filter to apply the customization rules to.
    +       * 
    + * + * + * .google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter object_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter.Builder + getObjectFilterBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetObjectFilterFieldBuilder().getBuilder(); } - @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(); + /** + * + * + *
    +       * Required. Object filter to apply the customization rules to.
    +       * 
    + * + * + * .google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter object_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilterOrBuilder + getObjectFilterOrBuilder() { + if (objectFilterBuilder_ != null) { + return objectFilterBuilder_.getMessageOrBuilder(); + } else { + return objectFilter_ == null + ? com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter.getDefaultInstance() + : objectFilter_; } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - 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; } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) + /** + * + * + *
    +       * Required. Object filter to apply the customization rules to.
    +       * 
    + * + * + * .google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter object_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter, + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter.Builder, + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilterOrBuilder> + internalGetObjectFilterFieldBuilder() { + if (objectFilterBuilder_ == null) { + objectFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter, + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilter.Builder, + com.google.cloud.datastream.v1.Stream.RuleSet.ObjectFilterOrBuilder>( + getObjectFilter(), getParentForChildren(), isClean()); + objectFilter_ = null; + } + return objectFilterBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.Stream.RuleSet) } - // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) - private static final com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy - DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.Stream.RuleSet) + private static final com.google.cloud.datastream.v1.Stream.RuleSet DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy(); + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.Stream.RuleSet(); } - public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getDefaultInstance() { + public static com.google.cloud.datastream.v1.Stream.RuleSet getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public BackfillNoneStrategy parsePartialFrom( + public RuleSet parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3355,17 +7545,17 @@ public BackfillNoneStrategy parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.Stream.RuleSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } @@ -4273,43 +8463,129 @@ public boolean hasSatisfiesPzs() { * @return The satisfiesPzs. */ @java.lang.Override - public boolean getSatisfiesPzs() { - return satisfiesPzs_; + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + public static final int SATISFIES_PZI_FIELD_NUMBER = 16; + private boolean satisfiesPzi_ = false; + + /** + * + * + *
    +   * Output only. Reserved for future use.
    +   * 
    + * + * optional bool satisfies_pzi = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzi field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzi() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
    +   * Output only. Reserved for future use.
    +   * 
    + * + * optional bool satisfies_pzi = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + + public static final int RULE_SETS_FIELD_NUMBER = 19; + + @SuppressWarnings("serial") + private java.util.List ruleSets_; + + /** + * + * + *
    +   * Optional. Rule sets to apply to the stream.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getRuleSetsList() { + return ruleSets_; + } + + /** + * + * + *
    +   * Optional. Rule sets to apply to the stream.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getRuleSetsOrBuilderList() { + return ruleSets_; + } + + /** + * + * + *
    +   * Optional. Rule sets to apply to the stream.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getRuleSetsCount() { + return ruleSets_.size(); } - public static final int SATISFIES_PZI_FIELD_NUMBER = 16; - private boolean satisfiesPzi_ = false; - /** * * *
    -   * Output only. Reserved for future use.
    +   * Optional. Rule sets to apply to the stream.
        * 
    * - * optional bool satisfies_pzi = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return Whether the satisfiesPzi field is set. + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean hasSatisfiesPzi() { - return ((bitField0_ & 0x00000080) != 0); + public com.google.cloud.datastream.v1.Stream.RuleSet getRuleSets(int index) { + return ruleSets_.get(index); } /** * * *
    -   * Output only. Reserved for future use.
    +   * Optional. Rule sets to apply to the stream.
        * 
    * - * optional bool satisfies_pzi = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The satisfiesPzi. + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean getSatisfiesPzi() { - return satisfiesPzi_; + public com.google.cloud.datastream.v1.Stream.RuleSetOrBuilder getRuleSetsOrBuilder(int index) { + return ruleSets_.get(index); } private byte memoizedIsInitialized = -1; @@ -4364,6 +8640,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000080) != 0)) { output.writeBool(16, satisfiesPzi_); } + for (int i = 0; i < ruleSets_.size(); i++) { + output.writeMessage(19, ruleSets_.get(i)); + } if (backfillStrategyCase_ == 101) { output.writeMessage( 101, (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_); @@ -4428,6 +8707,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, satisfiesPzi_); } + for (int i = 0; i < ruleSets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, ruleSets_.get(i)); + } if (backfillStrategyCase_ == 101) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -4491,6 +8773,7 @@ public boolean equals(final java.lang.Object obj) { if (hasSatisfiesPzi()) { if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; } + if (!getRuleSetsList().equals(other.getRuleSetsList())) return false; if (!getBackfillStrategyCase().equals(other.getBackfillStrategyCase())) return false; switch (backfillStrategyCase_) { case 101: @@ -4559,6 +8842,10 @@ public int hashCode() { hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); } + if (getRuleSetsCount() > 0) { + hash = (37 * hash) + RULE_SETS_FIELD_NUMBER; + hash = (53 * hash) + getRuleSetsList().hashCode(); + } switch (backfillStrategyCase_) { case 101: hash = (37 * hash) + BACKFILL_ALL_FIELD_NUMBER; @@ -4739,6 +9026,7 @@ private void maybeForceBuilderInitialization() { internalGetDestinationConfigFieldBuilder(); internalGetErrorsFieldBuilder(); internalGetLastRecoveryTimeFieldBuilder(); + internalGetRuleSetsFieldBuilder(); } } @@ -4791,6 +9079,13 @@ public Builder clear() { } satisfiesPzs_ = false; satisfiesPzi_ = false; + if (ruleSetsBuilder_ == null) { + ruleSets_ = java.util.Collections.emptyList(); + } else { + ruleSets_ = null; + ruleSetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00008000); backfillStrategyCase_ = 0; backfillStrategy_ = null; return this; @@ -4839,6 +9134,15 @@ private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.Stream re } else { result.errors_ = errorsBuilder_.build(); } + if (ruleSetsBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0)) { + ruleSets_ = java.util.Collections.unmodifiableList(ruleSets_); + bitField0_ = (bitField0_ & ~0x00008000); + } + result.ruleSets_ = ruleSets_; + } else { + result.ruleSets_ = ruleSetsBuilder_.build(); + } } private void buildPartial0(com.google.cloud.datastream.v1.Stream result) { @@ -4988,6 +9292,33 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.Stream other) { if (other.hasSatisfiesPzi()) { setSatisfiesPzi(other.getSatisfiesPzi()); } + if (ruleSetsBuilder_ == null) { + if (!other.ruleSets_.isEmpty()) { + if (ruleSets_.isEmpty()) { + ruleSets_ = other.ruleSets_; + bitField0_ = (bitField0_ & ~0x00008000); + } else { + ensureRuleSetsIsMutable(); + ruleSets_.addAll(other.ruleSets_); + } + onChanged(); + } + } else { + if (!other.ruleSets_.isEmpty()) { + if (ruleSetsBuilder_.isEmpty()) { + ruleSetsBuilder_.dispose(); + ruleSetsBuilder_ = null; + ruleSets_ = other.ruleSets_; + bitField0_ = (bitField0_ & ~0x00008000); + ruleSetsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRuleSetsFieldBuilder() + : null; + } else { + ruleSetsBuilder_.addAllMessages(other.ruleSets_); + } + } + } switch (other.getBackfillStrategyCase()) { case BACKFILL_ALL: { @@ -5126,6 +9457,19 @@ public Builder mergeFrom( bitField0_ |= 0x00004000; break; } // case 128 + case 154: + { + com.google.cloud.datastream.v1.Stream.RuleSet m = + input.readMessage( + com.google.cloud.datastream.v1.Stream.RuleSet.parser(), extensionRegistry); + if (ruleSetsBuilder_ == null) { + ensureRuleSetsIsMutable(); + ruleSets_.add(m); + } else { + ruleSetsBuilder_.addMessage(m); + } + break; + } // case 154 case 810: { input.readMessage( @@ -5444,37 +9788,249 @@ public Builder clearCreateTime() { * * *
    -     * Output only. The creation time of the stream.
    +     * Output only. The creation time of the stream.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. The creation time of the stream.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
    +     * Output only. The creation time of the stream.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
    +     * Output only. The last update time of the stream.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Output only. The last update time of the stream.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. The last update time of the stream.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The last update time of the stream.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The last update time of the stream.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. The last update time of the stream.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The last update time of the stream.
          * 
    * * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000002; + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; onChanged(); - return internalGetCreateTimeFieldBuilder().getBuilder(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); } /** * * *
    -     * Output only. The creation time of the stream.
    +     * Output only. The last update time of the stream.
          * 
    * * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + : updateTime_; } } @@ -5482,121 +10038,184 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
    -     * Output only. The creation time of the stream.
    +     * Output only. The last update time of the stream.
          * 
    * * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; } - return createTimeBuilder_; + return updateTimeBuilder_; } - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } /** * * *
    -     * Output only. The last update time of the stream.
    +     * Labels.
          * 
    * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 4; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** * - * @return Whether the updateTime field is set. + * + *
    +     * Labels.
    +     * 
    + * + * map<string, string> labels = 4; */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000004) != 0); + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); } /** * * *
    -     * Output only. The last update time of the stream.
    +     * Labels.
          * 
    * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 4; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** * - * @return The updateTime. + * + *
    +     * Labels.
    +     * 
    + * + * map<string, string> labels = 4; */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; } /** * * *
    -     * Output only. The last update time of the stream.
    +     * Labels.
          * 
    * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 4; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - } else { - updateTimeBuilder_.setMessage(value); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000004; - onChanged(); + internalGetMutableLabels().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + /** * * *
    -     * Output only. The last update time of the stream.
    +     * Labels.
          * 
    * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 4; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000004; - onChanged(); + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; return this; } @@ -5604,50 +10223,83 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
    -     * Output only. The last update time of the stream.
    +     * Labels.
          * 
    * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 4; */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); - } else { - updateTime_ = value; - } + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
    +     * Required. Display name.
    +     * 
    + * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. Display name.
    +     * 
    + * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; } else { - updateTimeBuilder_.mergeFrom(value); - } - if (updateTime_ != null) { - bitField0_ |= 0x00000004; - onChanged(); + return (com.google.protobuf.ByteString) ref; } - return this; } /** * * *
    -     * Output only. The last update time of the stream.
    +     * Required. Display name.
          * 
    * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000004); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + displayName_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -5656,177 +10308,165 @@ public Builder clearUpdateTime() { * * *
    -     * Output only. The last update time of the stream.
    +     * Required. Display name.
          * 
    * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000004; + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); - return internalGetUpdateTimeFieldBuilder().getBuilder(); + return this; } /** * * *
    -     * Output only. The last update time of the stream.
    +     * Required. Display name.
          * 
    * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; } + private com.google.cloud.datastream.v1.SourceConfig sourceConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceConfig, + com.google.cloud.datastream.v1.SourceConfig.Builder, + com.google.cloud.datastream.v1.SourceConfigOrBuilder> + sourceConfigBuilder_; + /** * * *
    -     * Output only. The last update time of the stream.
    +     * Required. Source connection profile configuration.
          * 
    * * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return Whether the sourceConfig field is set. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - private com.google.protobuf.MapField - internalGetMutableLabels() { - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - bitField0_ |= 0x00000008; - onChanged(); - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); + public boolean hasSourceConfig() { + return ((bitField0_ & 0x00000020) != 0); } /** * * *
    -     * Labels.
    +     * Required. Source connection profile configuration.
          * 
    * - * map<string, string> labels = 4; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sourceConfig. */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public com.google.cloud.datastream.v1.SourceConfig getSourceConfig() { + if (sourceConfigBuilder_ == null) { + return sourceConfig_ == null + ? com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance() + : sourceConfig_; + } else { + return sourceConfigBuilder_.getMessage(); } - return internalGetLabels().getMap().containsKey(key); - } - - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); } /** * * *
    -     * Labels.
    +     * Required. Source connection profile configuration.
          * 
    * - * map<string, string> labels = 4; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); + public Builder setSourceConfig(com.google.cloud.datastream.v1.SourceConfig value) { + if (sourceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceConfig_ = value; + } else { + sourceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; } /** * * *
    -     * Labels.
    +     * Required. Source connection profile configuration.
          * 
    * - * map<string, string> labels = 4; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setSourceConfig( + com.google.cloud.datastream.v1.SourceConfig.Builder builderForValue) { + if (sourceConfigBuilder_ == null) { + sourceConfig_ = builderForValue.build(); + } else { + sourceConfigBuilder_.setMessage(builderForValue.build()); } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; + bitField0_ |= 0x00000020; + onChanged(); + return this; } /** * * *
    -     * Labels.
    +     * Required. Source connection profile configuration.
          * 
    * - * map<string, string> labels = 4; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder mergeSourceConfig(com.google.cloud.datastream.v1.SourceConfig value) { + if (sourceConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && sourceConfig_ != null + && sourceConfig_ != com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance()) { + getSourceConfigBuilder().mergeFrom(value); + } else { + sourceConfig_ = value; + } + } else { + sourceConfigBuilder_.mergeFrom(value); } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + if (sourceConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); } - return map.get(key); - } - - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -5834,107 +10474,134 @@ public Builder clearLabels() { * * *
    -     * Labels.
    +     * Required. Source connection profile configuration.
          * 
    * - * map<string, string> labels = 4; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder clearSourceConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + sourceConfig_ = null; + if (sourceConfigBuilder_ != null) { + sourceConfigBuilder_.dispose(); + sourceConfigBuilder_ = null; } - internalGetMutableLabels().getMutableMap().remove(key); + onChanged(); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000008; - return internalGetMutableLabels().getMutableMap(); + /** + * + * + *
    +     * Required. Source connection profile configuration.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.datastream.v1.SourceConfig.Builder getSourceConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetSourceConfigFieldBuilder().getBuilder(); } /** * * *
    -     * Labels.
    +     * Required. Source connection profile configuration.
          * 
    * - * map<string, string> labels = 4; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); + public com.google.cloud.datastream.v1.SourceConfigOrBuilder getSourceConfigOrBuilder() { + if (sourceConfigBuilder_ != null) { + return sourceConfigBuilder_.getMessageOrBuilder(); + } else { + return sourceConfig_ == null + ? com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance() + : sourceConfig_; } - internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000008; - return this; } /** * * *
    -     * Labels.
    +     * Required. Source connection profile configuration.
          * 
    * - * map<string, string> labels = 4; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000008; - return this; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceConfig, + com.google.cloud.datastream.v1.SourceConfig.Builder, + com.google.cloud.datastream.v1.SourceConfigOrBuilder> + internalGetSourceConfigFieldBuilder() { + if (sourceConfigBuilder_ == null) { + sourceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceConfig, + com.google.cloud.datastream.v1.SourceConfig.Builder, + com.google.cloud.datastream.v1.SourceConfigOrBuilder>( + getSourceConfig(), getParentForChildren(), isClean()); + sourceConfig_ = null; + } + return sourceConfigBuilder_; } - private java.lang.Object displayName_ = ""; + private com.google.cloud.datastream.v1.DestinationConfig destinationConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.DestinationConfig, + com.google.cloud.datastream.v1.DestinationConfig.Builder, + com.google.cloud.datastream.v1.DestinationConfigOrBuilder> + destinationConfigBuilder_; /** * * *
    -     * Required. Display name.
    +     * Required. Destination connection profile configuration.
          * 
    * - * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * * - * @return The displayName. + * @return Whether the destinationConfig field is set. */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public boolean hasDestinationConfig() { + return ((bitField0_ & 0x00000040) != 0); } /** * * *
    -     * Required. Display name.
    +     * Required. Destination connection profile configuration.
          * 
    * - * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * * - * @return The bytes for displayName. + * @return The destinationConfig. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; + public com.google.cloud.datastream.v1.DestinationConfig getDestinationConfig() { + if (destinationConfigBuilder_ == null) { + return destinationConfig_ == null + ? com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance() + : destinationConfig_; } else { - return (com.google.protobuf.ByteString) ref; + return destinationConfigBuilder_.getMessage(); } } @@ -5942,20 +10609,23 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
    -     * Required. Display name.
    +     * Required. Destination connection profile configuration.
          * 
    * - * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The displayName to set. - * @return This builder for chaining. + * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setDestinationConfig(com.google.cloud.datastream.v1.DestinationConfig value) { + if (destinationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destinationConfig_ = value; + } else { + destinationConfigBuilder_.setMessage(value); } - displayName_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -5964,16 +10634,21 @@ public Builder setDisplayName(java.lang.String value) { * * *
    -     * Required. Display name.
    +     * Required. Destination connection profile configuration.
          * 
    * - * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. + * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000010); + public Builder setDestinationConfig( + com.google.cloud.datastream.v1.DestinationConfig.Builder builderForValue) { + if (destinationConfigBuilder_ == null) { + destinationConfig_ = builderForValue.build(); + } else { + destinationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -5982,168 +10657,155 @@ public Builder clearDisplayName() { * * *
    -     * Required. Display name.
    +     * Required. Destination connection profile configuration.
          * 
    * - * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. + * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeDestinationConfig(com.google.cloud.datastream.v1.DestinationConfig value) { + if (destinationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && destinationConfig_ != null + && destinationConfig_ + != com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance()) { + getDestinationConfigBuilder().mergeFrom(value); + } else { + destinationConfig_ = value; + } + } else { + destinationConfigBuilder_.mergeFrom(value); + } + if (destinationConfig_ != null) { + bitField0_ |= 0x00000040; + onChanged(); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000010; - onChanged(); return this; } - private com.google.cloud.datastream.v1.SourceConfig sourceConfig_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datastream.v1.SourceConfig, - com.google.cloud.datastream.v1.SourceConfig.Builder, - com.google.cloud.datastream.v1.SourceConfigOrBuilder> - sourceConfigBuilder_; - /** * * *
    -     * Required. Source connection profile configuration.
    +     * Required. Destination connection profile configuration.
          * 
    * * - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; * - * - * @return Whether the sourceConfig field is set. */ - public boolean hasSourceConfig() { - return ((bitField0_ & 0x00000020) != 0); + public Builder clearDestinationConfig() { + bitField0_ = (bitField0_ & ~0x00000040); + destinationConfig_ = null; + if (destinationConfigBuilder_ != null) { + destinationConfigBuilder_.dispose(); + destinationConfigBuilder_ = null; + } + onChanged(); + return this; } /** * * *
    -     * Required. Source connection profile configuration.
    +     * Required. Destination connection profile configuration.
          * 
    * * - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; * - * - * @return The sourceConfig. */ - public com.google.cloud.datastream.v1.SourceConfig getSourceConfig() { - if (sourceConfigBuilder_ == null) { - return sourceConfig_ == null - ? com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance() - : sourceConfig_; - } else { - return sourceConfigBuilder_.getMessage(); - } + public com.google.cloud.datastream.v1.DestinationConfig.Builder getDestinationConfigBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetDestinationConfigFieldBuilder().getBuilder(); } /** * * *
    -     * Required. Source connection profile configuration.
    +     * Required. Destination connection profile configuration.
          * 
    * * - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; * */ - public Builder setSourceConfig(com.google.cloud.datastream.v1.SourceConfig value) { - if (sourceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sourceConfig_ = value; + public com.google.cloud.datastream.v1.DestinationConfigOrBuilder + getDestinationConfigOrBuilder() { + if (destinationConfigBuilder_ != null) { + return destinationConfigBuilder_.getMessageOrBuilder(); } else { - sourceConfigBuilder_.setMessage(value); + return destinationConfig_ == null + ? com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance() + : destinationConfig_; } - bitField0_ |= 0x00000020; - onChanged(); - return this; } /** * * *
    -     * Required. Source connection profile configuration.
    +     * Required. Destination connection profile configuration.
          * 
    * * - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; * */ - public Builder setSourceConfig( - com.google.cloud.datastream.v1.SourceConfig.Builder builderForValue) { - if (sourceConfigBuilder_ == null) { - sourceConfig_ = builderForValue.build(); - } else { - sourceConfigBuilder_.setMessage(builderForValue.build()); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.DestinationConfig, + com.google.cloud.datastream.v1.DestinationConfig.Builder, + com.google.cloud.datastream.v1.DestinationConfigOrBuilder> + internalGetDestinationConfigFieldBuilder() { + if (destinationConfigBuilder_ == null) { + destinationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.DestinationConfig, + com.google.cloud.datastream.v1.DestinationConfig.Builder, + com.google.cloud.datastream.v1.DestinationConfigOrBuilder>( + getDestinationConfig(), getParentForChildren(), isClean()); + destinationConfig_ = null; } - bitField0_ |= 0x00000020; - onChanged(); - return this; + return destinationConfigBuilder_; } + private int state_ = 0; + /** * * *
    -     * Required. Source connection profile configuration.
    +     * The state of the stream.
          * 
    * - * - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream.State state = 8; + * + * @return The enum numeric value on the wire for state. */ - public Builder mergeSourceConfig(com.google.cloud.datastream.v1.SourceConfig value) { - if (sourceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && sourceConfig_ != null - && sourceConfig_ != com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance()) { - getSourceConfigBuilder().mergeFrom(value); - } else { - sourceConfig_ = value; - } - } else { - sourceConfigBuilder_.mergeFrom(value); - } - if (sourceConfig_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } - return this; + @java.lang.Override + public int getStateValue() { + return state_; } /** * * *
    -     * Required. Source connection profile configuration.
    +     * The state of the stream.
          * 
    * - * - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream.State state = 8; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. */ - public Builder clearSourceConfig() { - bitField0_ = (bitField0_ & ~0x00000020); - sourceConfig_ = null; - if (sourceConfigBuilder_ != null) { - sourceConfigBuilder_.dispose(); - sourceConfigBuilder_ = null; - } + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -6152,112 +10814,107 @@ public Builder clearSourceConfig() { * * *
    -     * Required. Source connection profile configuration.
    +     * The state of the stream.
          * 
    * - * - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream.State state = 8; + * + * @return The state. */ - public com.google.cloud.datastream.v1.SourceConfig.Builder getSourceConfigBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return internalGetSourceConfigFieldBuilder().getBuilder(); + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.State getState() { + com.google.cloud.datastream.v1.Stream.State result = + com.google.cloud.datastream.v1.Stream.State.forNumber(state_); + return result == null ? com.google.cloud.datastream.v1.Stream.State.UNRECOGNIZED : result; } /** * * *
    -     * Required. Source connection profile configuration.
    +     * The state of the stream.
          * 
    * - * - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream.State state = 8; + * + * @param value The state to set. + * @return This builder for chaining. */ - public com.google.cloud.datastream.v1.SourceConfigOrBuilder getSourceConfigOrBuilder() { - if (sourceConfigBuilder_ != null) { - return sourceConfigBuilder_.getMessageOrBuilder(); - } else { - return sourceConfig_ == null - ? com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance() - : sourceConfig_; + public Builder setState(com.google.cloud.datastream.v1.Stream.State value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000080; + state_ = value.getNumber(); + onChanged(); + return this; } /** * * *
    -     * Required. Source connection profile configuration.
    +     * The state of the stream.
          * 
    * - * - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream.State state = 8; + * + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datastream.v1.SourceConfig, - com.google.cloud.datastream.v1.SourceConfig.Builder, - com.google.cloud.datastream.v1.SourceConfigOrBuilder> - internalGetSourceConfigFieldBuilder() { - if (sourceConfigBuilder_ == null) { - sourceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datastream.v1.SourceConfig, - com.google.cloud.datastream.v1.SourceConfig.Builder, - com.google.cloud.datastream.v1.SourceConfigOrBuilder>( - getSourceConfig(), getParentForChildren(), isClean()); - sourceConfig_ = null; - } - return sourceConfigBuilder_; + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000080); + state_ = 0; + onChanged(); + return this; } - private com.google.cloud.datastream.v1.DestinationConfig destinationConfig_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datastream.v1.DestinationConfig, - com.google.cloud.datastream.v1.DestinationConfig.Builder, - com.google.cloud.datastream.v1.DestinationConfigOrBuilder> - destinationConfigBuilder_; + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy, + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder, + com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder> + backfillAllBuilder_; /** * * *
    -     * Required. Destination connection profile configuration.
    +     * Automatically backfill objects included in the stream source
    +     * configuration. Specific objects can be excluded.
          * 
    * - * - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; * - * @return Whether the destinationConfig field is set. + * @return Whether the backfillAll field is set. */ - public boolean hasDestinationConfig() { - return ((bitField0_ & 0x00000040) != 0); + @java.lang.Override + public boolean hasBackfillAll() { + return backfillStrategyCase_ == 101; } /** * * *
    -     * Required. Destination connection profile configuration.
    +     * Automatically backfill objects included in the stream source
    +     * configuration. Specific objects can be excluded.
          * 
    * - * - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; * - * @return The destinationConfig. + * @return The backfillAll. */ - public com.google.cloud.datastream.v1.DestinationConfig getDestinationConfig() { - if (destinationConfigBuilder_ == null) { - return destinationConfig_ == null - ? com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance() - : destinationConfig_; + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getBackfillAll() { + if (backfillAllBuilder_ == null) { + if (backfillStrategyCase_ == 101) { + return (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_; + } + return com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance(); } else { - return destinationConfigBuilder_.getMessage(); + if (backfillStrategyCase_ == 101) { + return backfillAllBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance(); } } @@ -6265,24 +10922,23 @@ public com.google.cloud.datastream.v1.DestinationConfig getDestinationConfig() { * * *
    -     * Required. Destination connection profile configuration.
    +     * Automatically backfill objects included in the stream source
    +     * configuration. Specific objects can be excluded.
          * 
    * - * - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; */ - public Builder setDestinationConfig(com.google.cloud.datastream.v1.DestinationConfig value) { - if (destinationConfigBuilder_ == null) { + public Builder setBackfillAll(com.google.cloud.datastream.v1.Stream.BackfillAllStrategy value) { + if (backfillAllBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - destinationConfig_ = value; + backfillStrategy_ = value; + onChanged(); } else { - destinationConfigBuilder_.setMessage(value); + backfillAllBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; - onChanged(); + backfillStrategyCase_ = 101; return this; } @@ -6290,22 +10946,21 @@ public Builder setDestinationConfig(com.google.cloud.datastream.v1.DestinationCo * * *
    -     * Required. Destination connection profile configuration.
    +     * Automatically backfill objects included in the stream source
    +     * configuration. Specific objects can be excluded.
          * 
    * - * - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; */ - public Builder setDestinationConfig( - com.google.cloud.datastream.v1.DestinationConfig.Builder builderForValue) { - if (destinationConfigBuilder_ == null) { - destinationConfig_ = builderForValue.build(); + public Builder setBackfillAll( + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder builderForValue) { + if (backfillAllBuilder_ == null) { + backfillStrategy_ = builderForValue.build(); + onChanged(); } else { - destinationConfigBuilder_.setMessage(builderForValue.build()); + backfillAllBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; - onChanged(); + backfillStrategyCase_ = 101; return this; } @@ -6313,30 +10968,35 @@ public Builder setDestinationConfig( * * *
    -     * Required. Destination connection profile configuration.
    +     * Automatically backfill objects included in the stream source
    +     * configuration. Specific objects can be excluded.
          * 
    * - * - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; */ - public Builder mergeDestinationConfig(com.google.cloud.datastream.v1.DestinationConfig value) { - if (destinationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && destinationConfig_ != null - && destinationConfig_ - != com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance()) { - getDestinationConfigBuilder().mergeFrom(value); + public Builder mergeBackfillAll( + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy value) { + if (backfillAllBuilder_ == null) { + if (backfillStrategyCase_ == 101 + && backfillStrategy_ + != com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance()) { + backfillStrategy_ = + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.newBuilder( + (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_) + .mergeFrom(value) + .buildPartial(); } else { - destinationConfig_ = value; + backfillStrategy_ = value; } - } else { - destinationConfigBuilder_.mergeFrom(value); - } - if (destinationConfig_ != null) { - bitField0_ |= 0x00000040; onChanged(); + } else { + if (backfillStrategyCase_ == 101) { + backfillAllBuilder_.mergeFrom(value); + } else { + backfillAllBuilder_.setMessage(value); + } } + backfillStrategyCase_ = 101; return this; } @@ -6344,21 +11004,26 @@ public Builder mergeDestinationConfig(com.google.cloud.datastream.v1.Destination * * *
    -     * Required. Destination connection profile configuration.
    +     * Automatically backfill objects included in the stream source
    +     * configuration. Specific objects can be excluded.
          * 
    * - * - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; */ - public Builder clearDestinationConfig() { - bitField0_ = (bitField0_ & ~0x00000040); - destinationConfig_ = null; - if (destinationConfigBuilder_ != null) { - destinationConfigBuilder_.dispose(); - destinationConfigBuilder_ = null; + public Builder clearBackfillAll() { + if (backfillAllBuilder_ == null) { + if (backfillStrategyCase_ == 101) { + backfillStrategyCase_ = 0; + backfillStrategy_ = null; + onChanged(); + } + } else { + if (backfillStrategyCase_ == 101) { + backfillStrategyCase_ = 0; + backfillStrategy_ = null; + } + backfillAllBuilder_.clear(); } - onChanged(); return this; } @@ -6366,38 +11031,37 @@ public Builder clearDestinationConfig() { * * *
    -     * Required. Destination connection profile configuration.
    +     * Automatically backfill objects included in the stream source
    +     * configuration. Specific objects can be excluded.
          * 
    * - * - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; */ - public com.google.cloud.datastream.v1.DestinationConfig.Builder getDestinationConfigBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return internalGetDestinationConfigFieldBuilder().getBuilder(); + public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder + getBackfillAllBuilder() { + return internalGetBackfillAllFieldBuilder().getBuilder(); } /** * * *
    -     * Required. Destination connection profile configuration.
    +     * Automatically backfill objects included in the stream source
    +     * configuration. Specific objects can be excluded.
          * 
    * - * - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; */ - public com.google.cloud.datastream.v1.DestinationConfigOrBuilder - getDestinationConfigOrBuilder() { - if (destinationConfigBuilder_ != null) { - return destinationConfigBuilder_.getMessageOrBuilder(); + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder + getBackfillAllOrBuilder() { + if ((backfillStrategyCase_ == 101) && (backfillAllBuilder_ != null)) { + return backfillAllBuilder_.getMessageOrBuilder(); } else { - return destinationConfig_ == null - ? com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance() - : destinationConfig_; + if (backfillStrategyCase_ == 101) { + return (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_; + } + return com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance(); } } @@ -6405,104 +11069,127 @@ public com.google.cloud.datastream.v1.DestinationConfig.Builder getDestinationCo * * *
    -     * Required. Destination connection profile configuration.
    +     * Automatically backfill objects included in the stream source
    +     * configuration. Specific objects can be excluded.
          * 
    * - * - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datastream.v1.DestinationConfig, - com.google.cloud.datastream.v1.DestinationConfig.Builder, - com.google.cloud.datastream.v1.DestinationConfigOrBuilder> - internalGetDestinationConfigFieldBuilder() { - if (destinationConfigBuilder_ == null) { - destinationConfigBuilder_ = + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy, + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder, + com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder> + internalGetBackfillAllFieldBuilder() { + if (backfillAllBuilder_ == null) { + if (!(backfillStrategyCase_ == 101)) { + backfillStrategy_ = + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance(); + } + backfillAllBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datastream.v1.DestinationConfig, - com.google.cloud.datastream.v1.DestinationConfig.Builder, - com.google.cloud.datastream.v1.DestinationConfigOrBuilder>( - getDestinationConfig(), getParentForChildren(), isClean()); - destinationConfig_ = null; + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy, + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder, + com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder>( + (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_, + getParentForChildren(), + isClean()); + backfillStrategy_ = null; } - return destinationConfigBuilder_; + backfillStrategyCase_ = 101; + onChanged(); + return backfillAllBuilder_; } - private int state_ = 0; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy, + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder, + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder> + backfillNoneBuilder_; /** * * *
    -     * The state of the stream.
    +     * Do not automatically backfill any objects.
          * 
    * - * .google.cloud.datastream.v1.Stream.State state = 8; + * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; * - * @return The enum numeric value on the wire for state. + * @return Whether the backfillNone field is set. */ @java.lang.Override - public int getStateValue() { - return state_; + public boolean hasBackfillNone() { + return backfillStrategyCase_ == 102; } /** * * *
    -     * The state of the stream.
    +     * Do not automatically backfill any objects.
          * 
    * - * .google.cloud.datastream.v1.Stream.State state = 8; + * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. + * @return The backfillNone. */ - public Builder setStateValue(int value) { - state_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getBackfillNone() { + if (backfillNoneBuilder_ == null) { + if (backfillStrategyCase_ == 102) { + return (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_; + } + return com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); + } else { + if (backfillStrategyCase_ == 102) { + return backfillNoneBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); + } } /** * * *
    -     * The state of the stream.
    +     * Do not automatically backfill any objects.
          * 
    * - * .google.cloud.datastream.v1.Stream.State state = 8; - * - * @return The state. + * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; */ - @java.lang.Override - public com.google.cloud.datastream.v1.Stream.State getState() { - com.google.cloud.datastream.v1.Stream.State result = - com.google.cloud.datastream.v1.Stream.State.forNumber(state_); - return result == null ? com.google.cloud.datastream.v1.Stream.State.UNRECOGNIZED : result; + public Builder setBackfillNone( + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy value) { + if (backfillNoneBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backfillStrategy_ = value; + onChanged(); + } else { + backfillNoneBuilder_.setMessage(value); + } + backfillStrategyCase_ = 102; + return this; } /** * * *
    -     * The state of the stream.
    +     * Do not automatically backfill any objects.
          * 
    * - * .google.cloud.datastream.v1.Stream.State state = 8; - * - * @param value The state to set. - * @return This builder for chaining. + * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; */ - public Builder setState(com.google.cloud.datastream.v1.Stream.State value) { - if (value == null) { - throw new NullPointerException(); + public Builder setBackfillNone( + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder builderForValue) { + if (backfillNoneBuilder_ == null) { + backfillStrategy_ = builderForValue.build(); + onChanged(); + } else { + backfillNoneBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; - state_ = value.getNumber(); - onChanged(); + backfillStrategyCase_ = 102; return this; } @@ -6510,67 +11197,98 @@ public Builder setState(com.google.cloud.datastream.v1.Stream.State value) { * * *
    -     * The state of the stream.
    +     * Do not automatically backfill any objects.
          * 
    * - * .google.cloud.datastream.v1.Stream.State state = 8; + * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; + */ + public Builder mergeBackfillNone( + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy value) { + if (backfillNoneBuilder_ == null) { + if (backfillStrategyCase_ == 102 + && backfillStrategy_ + != com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy + .getDefaultInstance()) { + backfillStrategy_ = + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.newBuilder( + (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) + backfillStrategy_) + .mergeFrom(value) + .buildPartial(); + } else { + backfillStrategy_ = value; + } + onChanged(); + } else { + if (backfillStrategyCase_ == 102) { + backfillNoneBuilder_.mergeFrom(value); + } else { + backfillNoneBuilder_.setMessage(value); + } + } + backfillStrategyCase_ = 102; + return this; + } + + /** * - * @return This builder for chaining. + * + *
    +     * Do not automatically backfill any objects.
    +     * 
    + * + * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000080); - state_ = 0; - onChanged(); + public Builder clearBackfillNone() { + if (backfillNoneBuilder_ == null) { + if (backfillStrategyCase_ == 102) { + backfillStrategyCase_ = 0; + backfillStrategy_ = null; + onChanged(); + } + } else { + if (backfillStrategyCase_ == 102) { + backfillStrategyCase_ = 0; + backfillStrategy_ = null; + } + backfillNoneBuilder_.clear(); + } return this; } - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datastream.v1.Stream.BackfillAllStrategy, - com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder, - com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder> - backfillAllBuilder_; - /** * * *
    -     * Automatically backfill objects included in the stream source
    -     * configuration. Specific objects can be excluded.
    +     * Do not automatically backfill any objects.
          * 
    * - * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; - * - * @return Whether the backfillAll field is set. + * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; */ - @java.lang.Override - public boolean hasBackfillAll() { - return backfillStrategyCase_ == 101; + public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder + getBackfillNoneBuilder() { + return internalGetBackfillNoneFieldBuilder().getBuilder(); } /** * * *
    -     * Automatically backfill objects included in the stream source
    -     * configuration. Specific objects can be excluded.
    +     * Do not automatically backfill any objects.
          * 
    * - * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; - * - * @return The backfillAll. + * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; */ @java.lang.Override - public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getBackfillAll() { - if (backfillAllBuilder_ == null) { - if (backfillStrategyCase_ == 101) { - return (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_; - } - return com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance(); + public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder + getBackfillNoneOrBuilder() { + if ((backfillStrategyCase_ == 102) && (backfillNoneBuilder_ != null)) { + return backfillNoneBuilder_.getMessageOrBuilder(); } else { - if (backfillStrategyCase_ == 101) { - return backfillAllBuilder_.getMessage(); + if (backfillStrategyCase_ == 102) { + return (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_; } - return com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance(); + return com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); } } @@ -6578,253 +11296,249 @@ public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getBackfillAll( * * *
    -     * Automatically backfill objects included in the stream source
    -     * configuration. Specific objects can be excluded.
    +     * Do not automatically backfill any objects.
          * 
    * - * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; + * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; */ - public Builder setBackfillAll(com.google.cloud.datastream.v1.Stream.BackfillAllStrategy value) { - if (backfillAllBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy, + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder, + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder> + internalGetBackfillNoneFieldBuilder() { + if (backfillNoneBuilder_ == null) { + if (!(backfillStrategyCase_ == 102)) { + backfillStrategy_ = + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); } - backfillStrategy_ = value; - onChanged(); - } else { - backfillAllBuilder_.setMessage(value); + backfillNoneBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy, + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder, + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder>( + (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_, + getParentForChildren(), + isClean()); + backfillStrategy_ = null; + } + backfillStrategyCase_ = 102; + onChanged(); + return backfillNoneBuilder_; + } + + private java.util.List errors_ = + java.util.Collections.emptyList(); + + private void ensureErrorsIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + errors_ = new java.util.ArrayList(errors_); + bitField0_ |= 0x00000400; } - backfillStrategyCase_ = 101; - return this; } + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.Error, + com.google.cloud.datastream.v1.Error.Builder, + com.google.cloud.datastream.v1.ErrorOrBuilder> + errorsBuilder_; + /** * * *
    -     * Automatically backfill objects included in the stream source
    -     * configuration. Specific objects can be excluded.
    +     * Output only. Errors on the Stream.
          * 
    * - * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setBackfillAll( - com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder builderForValue) { - if (backfillAllBuilder_ == null) { - backfillStrategy_ = builderForValue.build(); - onChanged(); + public java.util.List getErrorsList() { + if (errorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(errors_); } else { - backfillAllBuilder_.setMessage(builderForValue.build()); + return errorsBuilder_.getMessageList(); } - backfillStrategyCase_ = 101; - return this; } /** * * *
    -     * Automatically backfill objects included in the stream source
    -     * configuration. Specific objects can be excluded.
    +     * Output only. Errors on the Stream.
          * 
    * - * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeBackfillAll( - com.google.cloud.datastream.v1.Stream.BackfillAllStrategy value) { - if (backfillAllBuilder_ == null) { - if (backfillStrategyCase_ == 101 - && backfillStrategy_ - != com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance()) { - backfillStrategy_ = - com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.newBuilder( - (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_) - .mergeFrom(value) - .buildPartial(); - } else { - backfillStrategy_ = value; - } - onChanged(); + public int getErrorsCount() { + if (errorsBuilder_ == null) { + return errors_.size(); } else { - if (backfillStrategyCase_ == 101) { - backfillAllBuilder_.mergeFrom(value); - } else { - backfillAllBuilder_.setMessage(value); - } + return errorsBuilder_.getCount(); } - backfillStrategyCase_ = 101; - return this; } /** * * *
    -     * Automatically backfill objects included in the stream source
    -     * configuration. Specific objects can be excluded.
    +     * Output only. Errors on the Stream.
          * 
    * - * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearBackfillAll() { - if (backfillAllBuilder_ == null) { - if (backfillStrategyCase_ == 101) { - backfillStrategyCase_ = 0; - backfillStrategy_ = null; - onChanged(); - } + public com.google.cloud.datastream.v1.Error getErrors(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); } else { - if (backfillStrategyCase_ == 101) { - backfillStrategyCase_ = 0; - backfillStrategy_ = null; - } - backfillAllBuilder_.clear(); + return errorsBuilder_.getMessage(index); } - return this; } /** * * *
    -     * Automatically backfill objects included in the stream source
    -     * configuration. Specific objects can be excluded.
    +     * Output only. Errors on the Stream.
          * 
    * - * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder - getBackfillAllBuilder() { - return internalGetBackfillAllFieldBuilder().getBuilder(); + public Builder setErrors(int index, com.google.cloud.datastream.v1.Error value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + onChanged(); + } else { + errorsBuilder_.setMessage(index, value); + } + return this; } /** * * *
    -     * Automatically backfill objects included in the stream source
    -     * configuration. Specific objects can be excluded.
    +     * Output only. Errors on the Stream.
          * 
    * - * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder - getBackfillAllOrBuilder() { - if ((backfillStrategyCase_ == 101) && (backfillAllBuilder_ != null)) { - return backfillAllBuilder_.getMessageOrBuilder(); + public Builder setErrors( + int index, com.google.cloud.datastream.v1.Error.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + onChanged(); } else { - if (backfillStrategyCase_ == 101) { - return (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_; - } - return com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance(); + errorsBuilder_.setMessage(index, builderForValue.build()); } + return this; } /** * * *
    -     * Automatically backfill objects included in the stream source
    -     * configuration. Specific objects can be excluded.
    +     * Output only. Errors on the Stream.
          * 
    * - * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datastream.v1.Stream.BackfillAllStrategy, - com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder, - com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder> - internalGetBackfillAllFieldBuilder() { - if (backfillAllBuilder_ == null) { - if (!(backfillStrategyCase_ == 101)) { - backfillStrategy_ = - com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance(); + public Builder addErrors(com.google.cloud.datastream.v1.Error value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - backfillAllBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datastream.v1.Stream.BackfillAllStrategy, - com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder, - com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder>( - (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_, - getParentForChildren(), - isClean()); - backfillStrategy_ = null; + ensureErrorsIsMutable(); + errors_.add(value); + onChanged(); + } else { + errorsBuilder_.addMessage(value); } - backfillStrategyCase_ = 101; - onChanged(); - return backfillAllBuilder_; + return this; } - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy, - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder, - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder> - backfillNoneBuilder_; - /** * * *
    -     * Do not automatically backfill any objects.
    +     * Output only. Errors on the Stream.
          * 
    * - * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; - * - * @return Whether the backfillNone field is set. + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean hasBackfillNone() { - return backfillStrategyCase_ == 102; + public Builder addErrors(int index, com.google.cloud.datastream.v1.Error value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + onChanged(); + } else { + errorsBuilder_.addMessage(index, value); + } + return this; } /** * * *
    -     * Do not automatically backfill any objects.
    +     * Output only. Errors on the Stream.
          * 
    * - * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; - * - * @return The backfillNone. + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getBackfillNone() { - if (backfillNoneBuilder_ == null) { - if (backfillStrategyCase_ == 102) { - return (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_; - } - return com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); + public Builder addErrors(com.google.cloud.datastream.v1.Error.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + onChanged(); } else { - if (backfillStrategyCase_ == 102) { - return backfillNoneBuilder_.getMessage(); - } - return com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); + errorsBuilder_.addMessage(builderForValue.build()); } + return this; } /** * * *
    -     * Do not automatically backfill any objects.
    +     * Output only. Errors on the Stream.
          * 
    * - * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setBackfillNone( - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy value) { - if (backfillNoneBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - backfillStrategy_ = value; + public Builder addErrors( + int index, com.google.cloud.datastream.v1.Error.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); onChanged(); } else { - backfillNoneBuilder_.setMessage(value); + errorsBuilder_.addMessage(index, builderForValue.build()); } - backfillStrategyCase_ = 102; return this; } @@ -6832,20 +11546,22 @@ public Builder setBackfillNone( * * *
    -     * Do not automatically backfill any objects.
    +     * Output only. Errors on the Stream.
          * 
    * - * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setBackfillNone( - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder builderForValue) { - if (backfillNoneBuilder_ == null) { - backfillStrategy_ = builderForValue.build(); + public Builder addAllErrors( + java.lang.Iterable values) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); onChanged(); } else { - backfillNoneBuilder_.setMessage(builderForValue.build()); + errorsBuilder_.addAllMessages(values); } - backfillStrategyCase_ = 102; return this; } @@ -6853,36 +11569,21 @@ public Builder setBackfillNone( * * *
    -     * Do not automatically backfill any objects.
    +     * Output only. Errors on the Stream.
          * 
    * - * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeBackfillNone( - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy value) { - if (backfillNoneBuilder_ == null) { - if (backfillStrategyCase_ == 102 - && backfillStrategy_ - != com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy - .getDefaultInstance()) { - backfillStrategy_ = - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.newBuilder( - (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) - backfillStrategy_) - .mergeFrom(value) - .buildPartial(); - } else { - backfillStrategy_ = value; - } + public Builder clearErrors() { + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { - if (backfillStrategyCase_ == 102) { - backfillNoneBuilder_.mergeFrom(value); - } else { - backfillNoneBuilder_.setMessage(value); - } + errorsBuilder_.clear(); } - backfillStrategyCase_ = 102; return this; } @@ -6890,24 +11591,20 @@ public Builder mergeBackfillNone( * * *
    -     * Do not automatically backfill any objects.
    +     * Output only. Errors on the Stream.
          * 
    * - * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearBackfillNone() { - if (backfillNoneBuilder_ == null) { - if (backfillStrategyCase_ == 102) { - backfillStrategyCase_ = 0; - backfillStrategy_ = null; - onChanged(); - } + public Builder removeErrors(int index) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.remove(index); + onChanged(); } else { - if (backfillStrategyCase_ == 102) { - backfillStrategyCase_ = 0; - backfillStrategy_ = null; - } - backfillNoneBuilder_.clear(); + errorsBuilder_.remove(index); } return this; } @@ -6916,35 +11613,33 @@ public Builder clearBackfillNone() { * * *
    -     * Do not automatically backfill any objects.
    +     * Output only. Errors on the Stream.
          * 
    * - * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder - getBackfillNoneBuilder() { - return internalGetBackfillNoneFieldBuilder().getBuilder(); + public com.google.cloud.datastream.v1.Error.Builder getErrorsBuilder(int index) { + return internalGetErrorsFieldBuilder().getBuilder(index); } /** * * *
    -     * Do not automatically backfill any objects.
    +     * Output only. Errors on the Stream.
          * 
    * - * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder - getBackfillNoneOrBuilder() { - if ((backfillStrategyCase_ == 102) && (backfillNoneBuilder_ != null)) { - return backfillNoneBuilder_.getMessageOrBuilder(); + public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); } else { - if (backfillStrategyCase_ == 102) { - return (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_; - } - return com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); + return errorsBuilder_.getMessageOrBuilder(index); } } @@ -6952,87 +11647,133 @@ public Builder clearBackfillNone() { * * *
    -     * Do not automatically backfill any objects.
    +     * Output only. Errors on the Stream.
          * 
    * - * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy, - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder, - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder> - internalGetBackfillNoneFieldBuilder() { - if (backfillNoneBuilder_ == null) { - if (!(backfillStrategyCase_ == 102)) { - backfillStrategy_ = - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); - } - backfillNoneBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy, - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder, - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder>( - (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_, - getParentForChildren(), - isClean()); - backfillStrategy_ = null; + public java.util.List + getErrorsOrBuilderList() { + if (errorsBuilder_ != null) { + return errorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errors_); } - backfillStrategyCase_ = 102; - onChanged(); - return backfillNoneBuilder_; } - private java.util.List errors_ = - java.util.Collections.emptyList(); + /** + * + * + *
    +     * Output only. Errors on the Stream.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder() { + return internalGetErrorsFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.Error.getDefaultInstance()); + } - private void ensureErrorsIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { - errors_ = new java.util.ArrayList(errors_); - bitField0_ |= 0x00000400; - } + /** + * + * + *
    +     * Output only. Errors on the Stream.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder(int index) { + return internalGetErrorsFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.Error.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. Errors on the Stream.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getErrorsBuilderList() { + return internalGetErrorsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder> - errorsBuilder_; + internalGetErrorsFieldBuilder() { + if (errorsBuilder_ == null) { + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.Error, + com.google.cloud.datastream.v1.Error.Builder, + com.google.cloud.datastream.v1.ErrorOrBuilder>( + errors_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); + errors_ = null; + } + return errorsBuilder_; + } + + private java.lang.Object customerManagedEncryptionKey_ = ""; /** * * *
    -     * Output only. Errors on the Stream.
    +     * Immutable. A reference to a KMS encryption key.
    +     * If provided, it will be used to encrypt the data.
    +     * If left blank, data will be encrypted using an internal Stream-specific
    +     * encryption key provisioned through KMS.
          * 
    * * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; * + * + * @return Whether the customerManagedEncryptionKey field is set. */ - public java.util.List getErrorsList() { - if (errorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(errors_); - } else { - return errorsBuilder_.getMessageList(); - } + public boolean hasCustomerManagedEncryptionKey() { + return ((bitField0_ & 0x00000800) != 0); } /** * * *
    -     * Output only. Errors on the Stream.
    +     * Immutable. A reference to a KMS encryption key.
    +     * If provided, it will be used to encrypt the data.
    +     * If left blank, data will be encrypted using an internal Stream-specific
    +     * encryption key provisioned through KMS.
          * 
    * * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; * + * + * @return The customerManagedEncryptionKey. */ - public int getErrorsCount() { - if (errorsBuilder_ == null) { - return errors_.size(); + public java.lang.String getCustomerManagedEncryptionKey() { + java.lang.Object ref = customerManagedEncryptionKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customerManagedEncryptionKey_ = s; + return s; } else { - return errorsBuilder_.getCount(); + return (java.lang.String) ref; } } @@ -7040,18 +11781,27 @@ public int getErrorsCount() { * * *
    -     * Output only. Errors on the Stream.
    +     * Immutable. A reference to a KMS encryption key.
    +     * If provided, it will be used to encrypt the data.
    +     * If left blank, data will be encrypted using an internal Stream-specific
    +     * encryption key provisioned through KMS.
          * 
    * * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; * + * + * @return The bytes for customerManagedEncryptionKey. */ - public com.google.cloud.datastream.v1.Error getErrors(int index) { - if (errorsBuilder_ == null) { - return errors_.get(index); + public com.google.protobuf.ByteString getCustomerManagedEncryptionKeyBytes() { + java.lang.Object ref = customerManagedEncryptionKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customerManagedEncryptionKey_ = b; + return b; } else { - return errorsBuilder_.getMessage(index); + return (com.google.protobuf.ByteString) ref; } } @@ -7059,24 +11809,26 @@ public com.google.cloud.datastream.v1.Error getErrors(int index) { * * *
    -     * Output only. Errors on the Stream.
    +     * Immutable. A reference to a KMS encryption key.
    +     * If provided, it will be used to encrypt the data.
    +     * If left blank, data will be encrypted using an internal Stream-specific
    +     * encryption key provisioned through KMS.
          * 
    * * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; * + * + * @param value The customerManagedEncryptionKey to set. + * @return This builder for chaining. */ - public Builder setErrors(int index, com.google.cloud.datastream.v1.Error value) { - if (errorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureErrorsIsMutable(); - errors_.set(index, value); - onChanged(); - } else { - errorsBuilder_.setMessage(index, value); + public Builder setCustomerManagedEncryptionKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + customerManagedEncryptionKey_ = value; + bitField0_ |= 0x00000800; + onChanged(); return this; } @@ -7084,22 +11836,22 @@ public Builder setErrors(int index, com.google.cloud.datastream.v1.Error value) * * *
    -     * Output only. Errors on the Stream.
    +     * Immutable. A reference to a KMS encryption key.
    +     * If provided, it will be used to encrypt the data.
    +     * If left blank, data will be encrypted using an internal Stream-specific
    +     * encryption key provisioned through KMS.
          * 
    * * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; * + * + * @return This builder for chaining. */ - public Builder setErrors( - int index, com.google.cloud.datastream.v1.Error.Builder builderForValue) { - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.set(index, builderForValue.build()); - onChanged(); - } else { - errorsBuilder_.setMessage(index, builderForValue.build()); - } + public Builder clearCustomerManagedEncryptionKey() { + customerManagedEncryptionKey_ = getDefaultInstance().getCustomerManagedEncryptionKey(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); return this; } @@ -7107,94 +11859,102 @@ public Builder setErrors( * * *
    -     * Output only. Errors on the Stream.
    +     * Immutable. A reference to a KMS encryption key.
    +     * If provided, it will be used to encrypt the data.
    +     * If left blank, data will be encrypted using an internal Stream-specific
    +     * encryption key provisioned through KMS.
          * 
    * * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; * + * + * @param value The bytes for customerManagedEncryptionKey to set. + * @return This builder for chaining. */ - public Builder addErrors(com.google.cloud.datastream.v1.Error value) { - if (errorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureErrorsIsMutable(); - errors_.add(value); - onChanged(); - } else { - errorsBuilder_.addMessage(value); + public Builder setCustomerManagedEncryptionKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + customerManagedEncryptionKey_ = value; + bitField0_ |= 0x00000800; + onChanged(); return this; } + private com.google.protobuf.Timestamp lastRecoveryTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastRecoveryTimeBuilder_; + /** * * *
    -     * Output only. Errors on the Stream.
    +     * Output only. If the stream was recovered, the time of the last recovery.
    +     * Note: This field is currently experimental.
          * 
    * * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return Whether the lastRecoveryTime field is set. */ - public Builder addErrors(int index, com.google.cloud.datastream.v1.Error value) { - if (errorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureErrorsIsMutable(); - errors_.add(index, value); - onChanged(); - } else { - errorsBuilder_.addMessage(index, value); - } - return this; + public boolean hasLastRecoveryTime() { + return ((bitField0_ & 0x00001000) != 0); } /** * * *
    -     * Output only. Errors on the Stream.
    +     * Output only. If the stream was recovered, the time of the last recovery.
    +     * Note: This field is currently experimental.
          * 
    * * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The lastRecoveryTime. */ - public Builder addErrors(com.google.cloud.datastream.v1.Error.Builder builderForValue) { - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(builderForValue.build()); - onChanged(); + public com.google.protobuf.Timestamp getLastRecoveryTime() { + if (lastRecoveryTimeBuilder_ == null) { + return lastRecoveryTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastRecoveryTime_; } else { - errorsBuilder_.addMessage(builderForValue.build()); + return lastRecoveryTimeBuilder_.getMessage(); } - return this; } /** * * *
    -     * Output only. Errors on the Stream.
    +     * Output only. If the stream was recovered, the time of the last recovery.
    +     * Note: This field is currently experimental.
          * 
    * * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addErrors( - int index, com.google.cloud.datastream.v1.Error.Builder builderForValue) { - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(index, builderForValue.build()); - onChanged(); + public Builder setLastRecoveryTime(com.google.protobuf.Timestamp value) { + if (lastRecoveryTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastRecoveryTime_ = value; } else { - errorsBuilder_.addMessage(index, builderForValue.build()); + lastRecoveryTimeBuilder_.setMessage(value); } + bitField0_ |= 0x00001000; + onChanged(); return this; } @@ -7202,22 +11962,22 @@ public Builder addErrors( * * *
    -     * Output only. Errors on the Stream.
    +     * Output only. If the stream was recovered, the time of the last recovery.
    +     * Note: This field is currently experimental.
          * 
    * * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addAllErrors( - java.lang.Iterable values) { - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); - onChanged(); + public Builder setLastRecoveryTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastRecoveryTimeBuilder_ == null) { + lastRecoveryTime_ = builderForValue.build(); } else { - errorsBuilder_.addAllMessages(values); + lastRecoveryTimeBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00001000; + onChanged(); return this; } @@ -7225,20 +11985,29 @@ public Builder addAllErrors( * * *
    -     * Output only. Errors on the Stream.
    +     * Output only. If the stream was recovered, the time of the last recovery.
    +     * Note: This field is currently experimental.
          * 
    * * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearErrors() { - if (errorsBuilder_ == null) { - errors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); + public Builder mergeLastRecoveryTime(com.google.protobuf.Timestamp value) { + if (lastRecoveryTimeBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && lastRecoveryTime_ != null + && lastRecoveryTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastRecoveryTimeBuilder().mergeFrom(value); + } else { + lastRecoveryTime_ = value; + } } else { - errorsBuilder_.clear(); + lastRecoveryTimeBuilder_.mergeFrom(value); + } + if (lastRecoveryTime_ != null) { + bitField0_ |= 0x00001000; + onChanged(); } return this; } @@ -7247,21 +12016,22 @@ public Builder clearErrors() { * * *
    -     * Output only. Errors on the Stream.
    +     * Output only. If the stream was recovered, the time of the last recovery.
    +     * Note: This field is currently experimental.
          * 
    * * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder removeErrors(int index) { - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.remove(index); - onChanged(); - } else { - errorsBuilder_.remove(index); + public Builder clearLastRecoveryTime() { + bitField0_ = (bitField0_ & ~0x00001000); + lastRecoveryTime_ = null; + if (lastRecoveryTimeBuilder_ != null) { + lastRecoveryTimeBuilder_.dispose(); + lastRecoveryTimeBuilder_ = null; } + onChanged(); return this; } @@ -7269,33 +12039,39 @@ public Builder removeErrors(int index) { * * *
    -     * Output only. Errors on the Stream.
    +     * Output only. If the stream was recovered, the time of the last recovery.
    +     * Note: This field is currently experimental.
          * 
    * * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.datastream.v1.Error.Builder getErrorsBuilder(int index) { - return internalGetErrorsFieldBuilder().getBuilder(index); + public com.google.protobuf.Timestamp.Builder getLastRecoveryTimeBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return internalGetLastRecoveryTimeFieldBuilder().getBuilder(); } /** * * *
    -     * Output only. Errors on the Stream.
    +     * Output only. If the stream was recovered, the time of the last recovery.
    +     * Note: This field is currently experimental.
          * 
    * * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index) { - if (errorsBuilder_ == null) { - return errors_.get(index); + public com.google.protobuf.TimestampOrBuilder getLastRecoveryTimeOrBuilder() { + if (lastRecoveryTimeBuilder_ != null) { + return lastRecoveryTimeBuilder_.getMessageOrBuilder(); } else { - return errorsBuilder_.getMessageOrBuilder(index); + return lastRecoveryTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastRecoveryTime_; } } @@ -7303,187 +12079,153 @@ public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int inde * * *
    -     * Output only. Errors on the Stream.
    +     * Output only. If the stream was recovered, the time of the last recovery.
    +     * Note: This field is currently experimental.
          * 
    * * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List - getErrorsOrBuilderList() { - if (errorsBuilder_ != null) { - return errorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(errors_); + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetLastRecoveryTimeFieldBuilder() { + if (lastRecoveryTimeBuilder_ == null) { + lastRecoveryTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastRecoveryTime(), getParentForChildren(), isClean()); + lastRecoveryTime_ = null; } + return lastRecoveryTimeBuilder_; } + private boolean satisfiesPzs_; + /** * * *
    -     * Output only. Errors on the Stream.
    +     * Output only. Reserved for future use.
          * 
    * - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional bool satisfies_pzs = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzs field is set. */ - public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder() { - return internalGetErrorsFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1.Error.getDefaultInstance()); + @java.lang.Override + public boolean hasSatisfiesPzs() { + return ((bitField0_ & 0x00002000) != 0); } /** * * *
    -     * Output only. Errors on the Stream.
    +     * Output only. Reserved for future use.
          * 
    * - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional bool satisfies_pzs = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. */ - public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder(int index) { - return internalGetErrorsFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1.Error.getDefaultInstance()); + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; } /** * * *
    -     * Output only. Errors on the Stream.
    +     * Output only. Reserved for future use.
          * 
    * - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional bool satisfies_pzs = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. */ - public java.util.List getErrorsBuilderList() { - return internalGetErrorsFieldBuilder().getBuilderList(); - } + public Builder setSatisfiesPzs(boolean value) { - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datastream.v1.Error, - com.google.cloud.datastream.v1.Error.Builder, - com.google.cloud.datastream.v1.ErrorOrBuilder> - internalGetErrorsFieldBuilder() { - if (errorsBuilder_ == null) { - errorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datastream.v1.Error, - com.google.cloud.datastream.v1.Error.Builder, - com.google.cloud.datastream.v1.ErrorOrBuilder>( - errors_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); - errors_ = null; - } - return errorsBuilder_; + satisfiesPzs_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; } - private java.lang.Object customerManagedEncryptionKey_ = ""; - /** * * *
    -     * Immutable. A reference to a KMS encryption key.
    -     * If provided, it will be used to encrypt the data.
    -     * If left blank, data will be encrypted using an internal Stream-specific
    -     * encryption key provisioned through KMS.
    +     * Output only. Reserved for future use.
          * 
    * - * - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * + * optional bool satisfies_pzs = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the customerManagedEncryptionKey field is set. + * @return This builder for chaining. */ - public boolean hasCustomerManagedEncryptionKey() { - return ((bitField0_ & 0x00000800) != 0); + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x00002000); + satisfiesPzs_ = false; + onChanged(); + return this; } + private boolean satisfiesPzi_; + /** * * *
    -     * Immutable. A reference to a KMS encryption key.
    -     * If provided, it will be used to encrypt the data.
    -     * If left blank, data will be encrypted using an internal Stream-specific
    -     * encryption key provisioned through KMS.
    +     * Output only. Reserved for future use.
          * 
    * - * - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * + * optional bool satisfies_pzi = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The customerManagedEncryptionKey. + * @return Whether the satisfiesPzi field is set. */ - public java.lang.String getCustomerManagedEncryptionKey() { - java.lang.Object ref = customerManagedEncryptionKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - customerManagedEncryptionKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public boolean hasSatisfiesPzi() { + return ((bitField0_ & 0x00004000) != 0); } /** * * *
    -     * Immutable. A reference to a KMS encryption key.
    -     * If provided, it will be used to encrypt the data.
    -     * If left blank, data will be encrypted using an internal Stream-specific
    -     * encryption key provisioned through KMS.
    +     * Output only. Reserved for future use.
          * 
    * - * - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * + * optional bool satisfies_pzi = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The bytes for customerManagedEncryptionKey. + * @return The satisfiesPzi. */ - public com.google.protobuf.ByteString getCustomerManagedEncryptionKeyBytes() { - java.lang.Object ref = customerManagedEncryptionKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - customerManagedEncryptionKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; } /** * * *
    -     * Immutable. A reference to a KMS encryption key.
    -     * If provided, it will be used to encrypt the data.
    -     * If left blank, data will be encrypted using an internal Stream-specific
    -     * encryption key provisioned through KMS.
    +     * Output only. Reserved for future use.
          * 
    * - * - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * + * optional bool satisfies_pzi = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The customerManagedEncryptionKey to set. + * @param value The satisfiesPzi to set. * @return This builder for chaining. */ - public Builder setCustomerManagedEncryptionKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - customerManagedEncryptionKey_ = value; - bitField0_ |= 0x00000800; + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -7492,99 +12234,91 @@ public Builder setCustomerManagedEncryptionKey(java.lang.String value) { * * *
    -     * Immutable. A reference to a KMS encryption key.
    -     * If provided, it will be used to encrypt the data.
    -     * If left blank, data will be encrypted using an internal Stream-specific
    -     * encryption key provisioned through KMS.
    +     * Output only. Reserved for future use.
          * 
    * - * - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * + * optional bool satisfies_pzi = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. - */ - public Builder clearCustomerManagedEncryptionKey() { - customerManagedEncryptionKey_ = getDefaultInstance().getCustomerManagedEncryptionKey(); - bitField0_ = (bitField0_ & ~0x00000800); + */ + public Builder clearSatisfiesPzi() { + bitField0_ = (bitField0_ & ~0x00004000); + satisfiesPzi_ = false; onChanged(); return this; } + private java.util.List ruleSets_ = + java.util.Collections.emptyList(); + + private void ensureRuleSetsIsMutable() { + if (!((bitField0_ & 0x00008000) != 0)) { + ruleSets_ = + new java.util.ArrayList(ruleSets_); + bitField0_ |= 0x00008000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.Stream.RuleSet, + com.google.cloud.datastream.v1.Stream.RuleSet.Builder, + com.google.cloud.datastream.v1.Stream.RuleSetOrBuilder> + ruleSetsBuilder_; + /** * * *
    -     * Immutable. A reference to a KMS encryption key.
    -     * If provided, it will be used to encrypt the data.
    -     * If left blank, data will be encrypted using an internal Stream-specific
    -     * encryption key provisioned through KMS.
    +     * Optional. Rule sets to apply to the stream.
          * 
    * * - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The bytes for customerManagedEncryptionKey to set. - * @return This builder for chaining. */ - public Builder setCustomerManagedEncryptionKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public java.util.List getRuleSetsList() { + if (ruleSetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(ruleSets_); + } else { + return ruleSetsBuilder_.getMessageList(); } - checkByteStringIsUtf8(value); - customerManagedEncryptionKey_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; } - private com.google.protobuf.Timestamp lastRecoveryTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lastRecoveryTimeBuilder_; - /** * * *
    -     * Output only. If the stream was recovered, the time of the last recovery.
    -     * Note: This field is currently experimental.
    +     * Optional. Rule sets to apply to the stream.
          * 
    * * - * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the lastRecoveryTime field is set. */ - public boolean hasLastRecoveryTime() { - return ((bitField0_ & 0x00001000) != 0); + public int getRuleSetsCount() { + if (ruleSetsBuilder_ == null) { + return ruleSets_.size(); + } else { + return ruleSetsBuilder_.getCount(); + } } /** * * *
    -     * Output only. If the stream was recovered, the time of the last recovery.
    -     * Note: This field is currently experimental.
    +     * Optional. Rule sets to apply to the stream.
          * 
    * * - * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The lastRecoveryTime. */ - public com.google.protobuf.Timestamp getLastRecoveryTime() { - if (lastRecoveryTimeBuilder_ == null) { - return lastRecoveryTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastRecoveryTime_; + public com.google.cloud.datastream.v1.Stream.RuleSet getRuleSets(int index) { + if (ruleSetsBuilder_ == null) { + return ruleSets_.get(index); } else { - return lastRecoveryTimeBuilder_.getMessage(); + return ruleSetsBuilder_.getMessage(index); } } @@ -7592,25 +12326,24 @@ public com.google.protobuf.Timestamp getLastRecoveryTime() { * * *
    -     * Output only. If the stream was recovered, the time of the last recovery.
    -     * Note: This field is currently experimental.
    +     * Optional. Rule sets to apply to the stream.
          * 
    * * - * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setLastRecoveryTime(com.google.protobuf.Timestamp value) { - if (lastRecoveryTimeBuilder_ == null) { + public Builder setRuleSets(int index, com.google.cloud.datastream.v1.Stream.RuleSet value) { + if (ruleSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - lastRecoveryTime_ = value; + ensureRuleSetsIsMutable(); + ruleSets_.set(index, value); + onChanged(); } else { - lastRecoveryTimeBuilder_.setMessage(value); + ruleSetsBuilder_.setMessage(index, value); } - bitField0_ |= 0x00001000; - onChanged(); return this; } @@ -7618,22 +12351,22 @@ public Builder setLastRecoveryTime(com.google.protobuf.Timestamp value) { * * *
    -     * Output only. If the stream was recovered, the time of the last recovery.
    -     * Note: This field is currently experimental.
    +     * Optional. Rule sets to apply to the stream.
          * 
    * * - * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setLastRecoveryTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (lastRecoveryTimeBuilder_ == null) { - lastRecoveryTime_ = builderForValue.build(); + public Builder setRuleSets( + int index, com.google.cloud.datastream.v1.Stream.RuleSet.Builder builderForValue) { + if (ruleSetsBuilder_ == null) { + ensureRuleSetsIsMutable(); + ruleSets_.set(index, builderForValue.build()); + onChanged(); } else { - lastRecoveryTimeBuilder_.setMessage(builderForValue.build()); + ruleSetsBuilder_.setMessage(index, builderForValue.build()); } - bitField0_ |= 0x00001000; - onChanged(); return this; } @@ -7641,29 +12374,23 @@ public Builder setLastRecoveryTime(com.google.protobuf.Timestamp.Builder builder * * *
    -     * Output only. If the stream was recovered, the time of the last recovery.
    -     * Note: This field is currently experimental.
    +     * Optional. Rule sets to apply to the stream.
          * 
    * * - * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeLastRecoveryTime(com.google.protobuf.Timestamp value) { - if (lastRecoveryTimeBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && lastRecoveryTime_ != null - && lastRecoveryTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getLastRecoveryTimeBuilder().mergeFrom(value); - } else { - lastRecoveryTime_ = value; + public Builder addRuleSets(com.google.cloud.datastream.v1.Stream.RuleSet value) { + if (ruleSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - } else { - lastRecoveryTimeBuilder_.mergeFrom(value); - } - if (lastRecoveryTime_ != null) { - bitField0_ |= 0x00001000; + ensureRuleSetsIsMutable(); + ruleSets_.add(value); onChanged(); + } else { + ruleSetsBuilder_.addMessage(value); } return this; } @@ -7672,22 +12399,24 @@ public Builder mergeLastRecoveryTime(com.google.protobuf.Timestamp value) { * * *
    -     * Output only. If the stream was recovered, the time of the last recovery.
    -     * Note: This field is currently experimental.
    +     * Optional. Rule sets to apply to the stream.
          * 
    * * - * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearLastRecoveryTime() { - bitField0_ = (bitField0_ & ~0x00001000); - lastRecoveryTime_ = null; - if (lastRecoveryTimeBuilder_ != null) { - lastRecoveryTimeBuilder_.dispose(); - lastRecoveryTimeBuilder_ = null; + public Builder addRuleSets(int index, com.google.cloud.datastream.v1.Stream.RuleSet value) { + if (ruleSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleSetsIsMutable(); + ruleSets_.add(index, value); + onChanged(); + } else { + ruleSetsBuilder_.addMessage(index, value); } - onChanged(); return this; } @@ -7695,213 +12424,232 @@ public Builder clearLastRecoveryTime() { * * *
    -     * Output only. If the stream was recovered, the time of the last recovery.
    -     * Note: This field is currently experimental.
    +     * Optional. Rule sets to apply to the stream.
          * 
    * * - * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.Timestamp.Builder getLastRecoveryTimeBuilder() { - bitField0_ |= 0x00001000; - onChanged(); - return internalGetLastRecoveryTimeFieldBuilder().getBuilder(); + public Builder addRuleSets( + com.google.cloud.datastream.v1.Stream.RuleSet.Builder builderForValue) { + if (ruleSetsBuilder_ == null) { + ensureRuleSetsIsMutable(); + ruleSets_.add(builderForValue.build()); + onChanged(); + } else { + ruleSetsBuilder_.addMessage(builderForValue.build()); + } + return this; } /** * * *
    -     * Output only. If the stream was recovered, the time of the last recovery.
    -     * Note: This field is currently experimental.
    +     * Optional. Rule sets to apply to the stream.
          * 
    * * - * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.TimestampOrBuilder getLastRecoveryTimeOrBuilder() { - if (lastRecoveryTimeBuilder_ != null) { - return lastRecoveryTimeBuilder_.getMessageOrBuilder(); + public Builder addRuleSets( + int index, com.google.cloud.datastream.v1.Stream.RuleSet.Builder builderForValue) { + if (ruleSetsBuilder_ == null) { + ensureRuleSetsIsMutable(); + ruleSets_.add(index, builderForValue.build()); + onChanged(); } else { - return lastRecoveryTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastRecoveryTime_; + ruleSetsBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** * * *
    -     * Output only. If the stream was recovered, the time of the last recovery.
    -     * Note: This field is currently experimental.
    +     * Optional. Rule sets to apply to the stream.
          * 
    * * - * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetLastRecoveryTimeFieldBuilder() { - if (lastRecoveryTimeBuilder_ == null) { - lastRecoveryTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getLastRecoveryTime(), getParentForChildren(), isClean()); - lastRecoveryTime_ = null; + public Builder addAllRuleSets( + java.lang.Iterable values) { + if (ruleSetsBuilder_ == null) { + ensureRuleSetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ruleSets_); + onChanged(); + } else { + ruleSetsBuilder_.addAllMessages(values); } - return lastRecoveryTimeBuilder_; + return this; } - private boolean satisfiesPzs_; - /** * * *
    -     * Output only. Reserved for future use.
    +     * Optional. Rule sets to apply to the stream.
          * 
    * - * optional bool satisfies_pzs = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return Whether the satisfiesPzs field is set. + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean hasSatisfiesPzs() { - return ((bitField0_ & 0x00002000) != 0); + public Builder clearRuleSets() { + if (ruleSetsBuilder_ == null) { + ruleSets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + } else { + ruleSetsBuilder_.clear(); + } + return this; } /** * * *
    -     * Output only. Reserved for future use.
    +     * Optional. Rule sets to apply to the stream.
          * 
    * - * optional bool satisfies_pzs = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The satisfiesPzs. + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean getSatisfiesPzs() { - return satisfiesPzs_; + public Builder removeRuleSets(int index) { + if (ruleSetsBuilder_ == null) { + ensureRuleSetsIsMutable(); + ruleSets_.remove(index); + onChanged(); + } else { + ruleSetsBuilder_.remove(index); + } + return this; } /** * * *
    -     * Output only. Reserved for future use.
    +     * Optional. Rule sets to apply to the stream.
          * 
    * - * optional bool satisfies_pzs = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The satisfiesPzs to set. - * @return This builder for chaining. + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSatisfiesPzs(boolean value) { - - satisfiesPzs_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; + public com.google.cloud.datastream.v1.Stream.RuleSet.Builder getRuleSetsBuilder(int index) { + return internalGetRuleSetsFieldBuilder().getBuilder(index); } /** * * *
    -     * Output only. Reserved for future use.
    +     * Optional. Rule sets to apply to the stream.
          * 
    * - * optional bool satisfies_pzs = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearSatisfiesPzs() { - bitField0_ = (bitField0_ & ~0x00002000); - satisfiesPzs_ = false; - onChanged(); - return this; + public com.google.cloud.datastream.v1.Stream.RuleSetOrBuilder getRuleSetsOrBuilder(int index) { + if (ruleSetsBuilder_ == null) { + return ruleSets_.get(index); + } else { + return ruleSetsBuilder_.getMessageOrBuilder(index); + } } - private boolean satisfiesPzi_; - /** * * *
    -     * Output only. Reserved for future use.
    +     * Optional. Rule sets to apply to the stream.
          * 
    * - * optional bool satisfies_pzi = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return Whether the satisfiesPzi field is set. + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean hasSatisfiesPzi() { - return ((bitField0_ & 0x00004000) != 0); + public java.util.List + getRuleSetsOrBuilderList() { + if (ruleSetsBuilder_ != null) { + return ruleSetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ruleSets_); + } } /** * * *
    -     * Output only. Reserved for future use.
    +     * Optional. Rule sets to apply to the stream.
          * 
    * - * optional bool satisfies_pzi = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The satisfiesPzi. + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean getSatisfiesPzi() { - return satisfiesPzi_; + public com.google.cloud.datastream.v1.Stream.RuleSet.Builder addRuleSetsBuilder() { + return internalGetRuleSetsFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.Stream.RuleSet.getDefaultInstance()); } /** * * *
    -     * Output only. Reserved for future use.
    +     * Optional. Rule sets to apply to the stream.
          * 
    * - * optional bool satisfies_pzi = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The satisfiesPzi to set. - * @return This builder for chaining. + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSatisfiesPzi(boolean value) { - - satisfiesPzi_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; + public com.google.cloud.datastream.v1.Stream.RuleSet.Builder addRuleSetsBuilder(int index) { + return internalGetRuleSetsFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.Stream.RuleSet.getDefaultInstance()); } /** * * *
    -     * Output only. Reserved for future use.
    +     * Optional. Rule sets to apply to the stream.
          * 
    * - * optional bool satisfies_pzi = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearSatisfiesPzi() { - bitField0_ = (bitField0_ & ~0x00004000); - satisfiesPzi_ = false; - onChanged(); - return this; + public java.util.List + getRuleSetsBuilderList() { + return internalGetRuleSetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.Stream.RuleSet, + com.google.cloud.datastream.v1.Stream.RuleSet.Builder, + com.google.cloud.datastream.v1.Stream.RuleSetOrBuilder> + internalGetRuleSetsFieldBuilder() { + if (ruleSetsBuilder_ == null) { + ruleSetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.Stream.RuleSet, + com.google.cloud.datastream.v1.Stream.RuleSet.Builder, + com.google.cloud.datastream.v1.Stream.RuleSetOrBuilder>( + ruleSets_, ((bitField0_ & 0x00008000) != 0), getParentForChildren(), isClean()); + ruleSets_ = null; + } + return ruleSetsBuilder_; } // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.Stream) diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java index 954d23e95089..714791606bf4 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java @@ -55,6 +55,7 @@ private StreamObject() { name_ = ""; displayName_ = ""; errors_ = java.util.Collections.emptyList(); + customizationRules_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -479,6 +480,107 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder getSourceO : sourceObject_; } + public static final int CUSTOMIZATION_RULES_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List + customizationRules_; + + /** + * + * + *
    +   * Output only. The customization rules for the object. These rules are
    +   * derived from the parent Stream's `rule_sets` and represent the intended
    +   * configuration for the object.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCustomizationRulesList() { + return customizationRules_; + } + + /** + * + * + *
    +   * Output only. The customization rules for the object. These rules are
    +   * derived from the parent Stream's `rule_sets` and represent the intended
    +   * configuration for the object.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRuleOrBuilder> + getCustomizationRulesOrBuilderList() { + return customizationRules_; + } + + /** + * + * + *
    +   * Output only. The customization rules for the object. These rules are
    +   * derived from the parent Stream's `rule_sets` and represent the intended
    +   * configuration for the object.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getCustomizationRulesCount() { + return customizationRules_.size(); + } + + /** + * + * + *
    +   * Output only. The customization rules for the object. These rules are
    +   * derived from the parent Stream's `rule_sets` and represent the intended
    +   * configuration for the object.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule getCustomizationRules( + int index) { + return customizationRules_.get(index); + } + + /** + * + * + *
    +   * Output only. The customization rules for the object. These rules are
    +   * derived from the parent Stream's `rule_sets` and represent the intended
    +   * configuration for the object.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRuleOrBuilder + getCustomizationRulesOrBuilder(int index) { + return customizationRules_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -514,6 +616,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(8, getSourceObject()); } + for (int i = 0; i < customizationRules_.size(); i++) { + output.writeMessage(9, customizationRules_.get(i)); + } getUnknownFields().writeTo(output); } @@ -544,6 +649,10 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSourceObject()); } + for (int i = 0; i < customizationRules_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(9, customizationRules_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -579,6 +688,7 @@ public boolean equals(final java.lang.Object obj) { if (hasSourceObject()) { if (!getSourceObject().equals(other.getSourceObject())) return false; } + if (!getCustomizationRulesList().equals(other.getCustomizationRulesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -614,6 +724,10 @@ public int hashCode() { hash = (37 * hash) + SOURCE_OBJECT_FIELD_NUMBER; hash = (53 * hash) + getSourceObject().hashCode(); } + if (getCustomizationRulesCount() > 0) { + hash = (37 * hash) + CUSTOMIZATION_RULES_FIELD_NUMBER; + hash = (53 * hash) + getCustomizationRulesList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -760,6 +874,7 @@ private void maybeForceBuilderInitialization() { internalGetErrorsFieldBuilder(); internalGetBackfillJobFieldBuilder(); internalGetSourceObjectFieldBuilder(); + internalGetCustomizationRulesFieldBuilder(); } } @@ -796,6 +911,13 @@ public Builder clear() { sourceObjectBuilder_.dispose(); sourceObjectBuilder_ = null; } + if (customizationRulesBuilder_ == null) { + customizationRules_ = java.util.Collections.emptyList(); + } else { + customizationRules_ = null; + customizationRulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); return this; } @@ -841,6 +963,15 @@ private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.StreamObj } else { result.errors_ = errorsBuilder_.build(); } + if (customizationRulesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + customizationRules_ = java.util.Collections.unmodifiableList(customizationRules_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.customizationRules_ = customizationRules_; + } else { + result.customizationRules_ = customizationRulesBuilder_.build(); + } } private void buildPartial0(com.google.cloud.datastream.v1.StreamObject result) { @@ -934,6 +1065,33 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.StreamObject other) { if (other.hasSourceObject()) { mergeSourceObject(other.getSourceObject()); } + if (customizationRulesBuilder_ == null) { + if (!other.customizationRules_.isEmpty()) { + if (customizationRules_.isEmpty()) { + customizationRules_ = other.customizationRules_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureCustomizationRulesIsMutable(); + customizationRules_.addAll(other.customizationRules_); + } + onChanged(); + } + } else { + if (!other.customizationRules_.isEmpty()) { + if (customizationRulesBuilder_.isEmpty()) { + customizationRulesBuilder_.dispose(); + customizationRulesBuilder_ = null; + customizationRules_ = other.customizationRules_; + bitField0_ = (bitField0_ & ~0x00000080); + customizationRulesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCustomizationRulesFieldBuilder() + : null; + } else { + customizationRulesBuilder_.addAllMessages(other.customizationRules_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1013,6 +1171,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 66 + case 74: + { + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule m = + input.readMessage( + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.parser(), + extensionRegistry); + if (customizationRulesBuilder_ == null) { + ensureCustomizationRulesIsMutable(); + customizationRules_.add(m); + } else { + customizationRulesBuilder_.addMessage(m); + } + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2481,6 +2653,468 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder getSourceOb return sourceObjectBuilder_; } + private java.util.List + customizationRules_ = java.util.Collections.emptyList(); + + private void ensureCustomizationRulesIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + customizationRules_ = + new java.util.ArrayList< + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule>( + customizationRules_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule, + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.Builder, + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRuleOrBuilder> + customizationRulesBuilder_; + + /** + * + * + *
    +     * Output only. The customization rules for the object. These rules are
    +     * derived from the parent Stream's `rule_sets` and represent the intended
    +     * configuration for the object.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCustomizationRulesList() { + if (customizationRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(customizationRules_); + } else { + return customizationRulesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Output only. The customization rules for the object. These rules are
    +     * derived from the parent Stream's `rule_sets` and represent the intended
    +     * configuration for the object.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getCustomizationRulesCount() { + if (customizationRulesBuilder_ == null) { + return customizationRules_.size(); + } else { + return customizationRulesBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Output only. The customization rules for the object. These rules are
    +     * derived from the parent Stream's `rule_sets` and represent the intended
    +     * configuration for the object.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule getCustomizationRules( + int index) { + if (customizationRulesBuilder_ == null) { + return customizationRules_.get(index); + } else { + return customizationRulesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Output only. The customization rules for the object. These rules are
    +     * derived from the parent Stream's `rule_sets` and represent the intended
    +     * configuration for the object.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCustomizationRules( + int index, com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule value) { + if (customizationRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomizationRulesIsMutable(); + customizationRules_.set(index, value); + onChanged(); + } else { + customizationRulesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. The customization rules for the object. These rules are
    +     * derived from the parent Stream's `rule_sets` and represent the intended
    +     * configuration for the object.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCustomizationRules( + int index, + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.Builder builderForValue) { + if (customizationRulesBuilder_ == null) { + ensureCustomizationRulesIsMutable(); + customizationRules_.set(index, builderForValue.build()); + onChanged(); + } else { + customizationRulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. The customization rules for the object. These rules are
    +     * derived from the parent Stream's `rule_sets` and represent the intended
    +     * configuration for the object.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCustomizationRules( + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule value) { + if (customizationRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomizationRulesIsMutable(); + customizationRules_.add(value); + onChanged(); + } else { + customizationRulesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Output only. The customization rules for the object. These rules are
    +     * derived from the parent Stream's `rule_sets` and represent the intended
    +     * configuration for the object.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCustomizationRules( + int index, com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule value) { + if (customizationRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomizationRulesIsMutable(); + customizationRules_.add(index, value); + onChanged(); + } else { + customizationRulesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. The customization rules for the object. These rules are
    +     * derived from the parent Stream's `rule_sets` and represent the intended
    +     * configuration for the object.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCustomizationRules( + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.Builder builderForValue) { + if (customizationRulesBuilder_ == null) { + ensureCustomizationRulesIsMutable(); + customizationRules_.add(builderForValue.build()); + onChanged(); + } else { + customizationRulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. The customization rules for the object. These rules are
    +     * derived from the parent Stream's `rule_sets` and represent the intended
    +     * configuration for the object.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCustomizationRules( + int index, + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.Builder builderForValue) { + if (customizationRulesBuilder_ == null) { + ensureCustomizationRulesIsMutable(); + customizationRules_.add(index, builderForValue.build()); + onChanged(); + } else { + customizationRulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. The customization rules for the object. These rules are
    +     * derived from the parent Stream's `rule_sets` and represent the intended
    +     * configuration for the object.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllCustomizationRules( + java.lang.Iterable< + ? extends com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule> + values) { + if (customizationRulesBuilder_ == null) { + ensureCustomizationRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customizationRules_); + onChanged(); + } else { + customizationRulesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Output only. The customization rules for the object. These rules are
    +     * derived from the parent Stream's `rule_sets` and represent the intended
    +     * configuration for the object.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCustomizationRules() { + if (customizationRulesBuilder_ == null) { + customizationRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + customizationRulesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Output only. The customization rules for the object. These rules are
    +     * derived from the parent Stream's `rule_sets` and represent the intended
    +     * configuration for the object.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeCustomizationRules(int index) { + if (customizationRulesBuilder_ == null) { + ensureCustomizationRulesIsMutable(); + customizationRules_.remove(index); + onChanged(); + } else { + customizationRulesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Output only. The customization rules for the object. These rules are
    +     * derived from the parent Stream's `rule_sets` and represent the intended
    +     * configuration for the object.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.Builder + getCustomizationRulesBuilder(int index) { + return internalGetCustomizationRulesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Output only. The customization rules for the object. These rules are
    +     * derived from the parent Stream's `rule_sets` and represent the intended
    +     * configuration for the object.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRuleOrBuilder + getCustomizationRulesOrBuilder(int index) { + if (customizationRulesBuilder_ == null) { + return customizationRules_.get(index); + } else { + return customizationRulesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Output only. The customization rules for the object. These rules are
    +     * derived from the parent Stream's `rule_sets` and represent the intended
    +     * configuration for the object.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRuleOrBuilder> + getCustomizationRulesOrBuilderList() { + if (customizationRulesBuilder_ != null) { + return customizationRulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customizationRules_); + } + } + + /** + * + * + *
    +     * Output only. The customization rules for the object. These rules are
    +     * derived from the parent Stream's `rule_sets` and represent the intended
    +     * configuration for the object.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.Builder + addCustomizationRulesBuilder() { + return internalGetCustomizationRulesFieldBuilder() + .addBuilder( + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. The customization rules for the object. These rules are
    +     * derived from the parent Stream's `rule_sets` and represent the intended
    +     * configuration for the object.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.Builder + addCustomizationRulesBuilder(int index) { + return internalGetCustomizationRulesFieldBuilder() + .addBuilder( + index, + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. The customization rules for the object. These rules are
    +     * derived from the parent Stream's `rule_sets` and represent the intended
    +     * configuration for the object.
    +     * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCustomizationRulesBuilderList() { + return internalGetCustomizationRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule, + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.Builder, + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRuleOrBuilder> + internalGetCustomizationRulesFieldBuilder() { + if (customizationRulesBuilder_ == null) { + customizationRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule, + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule.Builder, + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRuleOrBuilder>( + customizationRules_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + customizationRules_ = null; + } + return customizationRulesBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.StreamObject) } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java index dc23cbc7fcb5..6a08c798dde9 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java @@ -300,4 +300,82 @@ public interface StreamObjectOrBuilder * .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8; */ com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder getSourceObjectOrBuilder(); + + /** + * + * + *
    +   * Output only. The customization rules for the object. These rules are
    +   * derived from the parent Stream's `rule_sets` and represent the intended
    +   * configuration for the object.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getCustomizationRulesList(); + + /** + * + * + *
    +   * Output only. The customization rules for the object. These rules are
    +   * derived from the parent Stream's `rule_sets` and represent the intended
    +   * configuration for the object.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule getCustomizationRules(int index); + + /** + * + * + *
    +   * Output only. The customization rules for the object. These rules are
    +   * derived from the parent Stream's `rule_sets` and represent the intended
    +   * configuration for the object.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getCustomizationRulesCount(); + + /** + * + * + *
    +   * Output only. The customization rules for the object. These rules are
    +   * derived from the parent Stream's `rule_sets` and represent the intended
    +   * configuration for the object.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getCustomizationRulesOrBuilderList(); + + /** + * + * + *
    +   * Output only. The customization rules for the object. These rules are
    +   * derived from the parent Stream's `rule_sets` and represent the intended
    +   * configuration for the object.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet.CustomizationRule customization_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.datastream.v1.Stream.RuleSet.CustomizationRuleOrBuilder + getCustomizationRulesOrBuilder(int index); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java index 52774115e848..aa5b9e6d3a0d 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java @@ -631,5 +631,71 @@ java.lang.String getLabelsOrDefault( */ boolean getSatisfiesPzi(); + /** + * + * + *
    +   * Optional. Rule sets to apply to the stream.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getRuleSetsList(); + + /** + * + * + *
    +   * Optional. Rule sets to apply to the stream.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.Stream.RuleSet getRuleSets(int index); + + /** + * + * + *
    +   * Optional. Rule sets to apply to the stream.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getRuleSetsCount(); + + /** + * + * + *
    +   * Optional. Rule sets to apply to the stream.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getRuleSetsOrBuilderList(); + + /** + * + * + *
    +   * Optional. Rule sets to apply to the stream.
    +   * 
    + * + * + * repeated .google.cloud.datastream.v1.Stream.RuleSet rule_sets = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.Stream.RuleSetOrBuilder getRuleSetsOrBuilder(int index); + com.google.cloud.datastream.v1.Stream.BackfillStrategyCase getBackfillStrategyCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/TimeUnitPartition.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/TimeUnitPartition.java new file mode 100644 index 000000000000..818a1e01719e --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/TimeUnitPartition.java @@ -0,0 +1,783 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * Time unit column partitioning. see
    + * https://cloud.google.com/bigquery/docs/partitioned-tables#date_timestamp_partitioned_tables
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.TimeUnitPartition} + */ +@com.google.protobuf.Generated +public final class TimeUnitPartition extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.TimeUnitPartition) + TimeUnitPartitionOrBuilder { + 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= */ "", + "TimeUnitPartition"); + } + + // Use TimeUnitPartition.newBuilder() to construct. + private TimeUnitPartition(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TimeUnitPartition() { + column_ = ""; + partitioningTimeGranularity_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_TimeUnitPartition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_TimeUnitPartition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.TimeUnitPartition.class, + com.google.cloud.datastream.v1.TimeUnitPartition.Builder.class); + } + + public static final int COLUMN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object column_ = ""; + + /** + * + * + *
    +   * Required. The partitioning column.
    +   * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The column. + */ + @java.lang.Override + public java.lang.String getColumn() { + java.lang.Object ref = column_; + 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(); + column_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The partitioning column.
    +   * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for column. + */ + @java.lang.Override + public com.google.protobuf.ByteString getColumnBytes() { + java.lang.Object ref = column_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + column_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARTITIONING_TIME_GRANULARITY_FIELD_NUMBER = 2; + private int partitioningTimeGranularity_ = 0; + + /** + * + * + *
    +   * Optional. Partition granularity.
    +   * 
    + * + * + * .google.cloud.datastream.v1.PartitioningTimeGranularity partitioning_time_granularity = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for partitioningTimeGranularity. + */ + @java.lang.Override + public int getPartitioningTimeGranularityValue() { + return partitioningTimeGranularity_; + } + + /** + * + * + *
    +   * Optional. Partition granularity.
    +   * 
    + * + * + * .google.cloud.datastream.v1.PartitioningTimeGranularity partitioning_time_granularity = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The partitioningTimeGranularity. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PartitioningTimeGranularity + getPartitioningTimeGranularity() { + com.google.cloud.datastream.v1.PartitioningTimeGranularity result = + com.google.cloud.datastream.v1.PartitioningTimeGranularity.forNumber( + partitioningTimeGranularity_); + return result == null + ? com.google.cloud.datastream.v1.PartitioningTimeGranularity.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(column_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, column_); + } + if (partitioningTimeGranularity_ + != com.google.cloud.datastream.v1.PartitioningTimeGranularity + .PARTITIONING_TIME_GRANULARITY_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, partitioningTimeGranularity_); + } + 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(column_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, column_); + } + if (partitioningTimeGranularity_ + != com.google.cloud.datastream.v1.PartitioningTimeGranularity + .PARTITIONING_TIME_GRANULARITY_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(2, partitioningTimeGranularity_); + } + 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.datastream.v1.TimeUnitPartition)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.TimeUnitPartition other = + (com.google.cloud.datastream.v1.TimeUnitPartition) obj; + + if (!getColumn().equals(other.getColumn())) return false; + if (partitioningTimeGranularity_ != other.partitioningTimeGranularity_) 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) + COLUMN_FIELD_NUMBER; + hash = (53 * hash) + getColumn().hashCode(); + hash = (37 * hash) + PARTITIONING_TIME_GRANULARITY_FIELD_NUMBER; + hash = (53 * hash) + partitioningTimeGranularity_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.TimeUnitPartition parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.TimeUnitPartition 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.datastream.v1.TimeUnitPartition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.TimeUnitPartition 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.datastream.v1.TimeUnitPartition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.TimeUnitPartition parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.TimeUnitPartition parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.TimeUnitPartition 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.datastream.v1.TimeUnitPartition parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.TimeUnitPartition 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.datastream.v1.TimeUnitPartition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.TimeUnitPartition 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.datastream.v1.TimeUnitPartition 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; + } + + /** + * + * + *
    +   * Time unit column partitioning. see
    +   * https://cloud.google.com/bigquery/docs/partitioned-tables#date_timestamp_partitioned_tables
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.TimeUnitPartition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.TimeUnitPartition) + com.google.cloud.datastream.v1.TimeUnitPartitionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_TimeUnitPartition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_TimeUnitPartition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.TimeUnitPartition.class, + com.google.cloud.datastream.v1.TimeUnitPartition.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.TimeUnitPartition.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + column_ = ""; + partitioningTimeGranularity_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_TimeUnitPartition_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.TimeUnitPartition getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.TimeUnitPartition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.TimeUnitPartition build() { + com.google.cloud.datastream.v1.TimeUnitPartition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.TimeUnitPartition buildPartial() { + com.google.cloud.datastream.v1.TimeUnitPartition result = + new com.google.cloud.datastream.v1.TimeUnitPartition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.TimeUnitPartition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.column_ = column_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.partitioningTimeGranularity_ = partitioningTimeGranularity_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.TimeUnitPartition) { + return mergeFrom((com.google.cloud.datastream.v1.TimeUnitPartition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.TimeUnitPartition other) { + if (other == com.google.cloud.datastream.v1.TimeUnitPartition.getDefaultInstance()) + return this; + if (!other.getColumn().isEmpty()) { + column_ = other.column_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.partitioningTimeGranularity_ != 0) { + setPartitioningTimeGranularityValue(other.getPartitioningTimeGranularityValue()); + } + 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: + { + column_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + partitioningTimeGranularity_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object column_ = ""; + + /** + * + * + *
    +     * Required. The partitioning column.
    +     * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The column. + */ + public java.lang.String getColumn() { + java.lang.Object ref = column_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + column_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The partitioning column.
    +     * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for column. + */ + public com.google.protobuf.ByteString getColumnBytes() { + java.lang.Object ref = column_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + column_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The partitioning column.
    +     * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The column to set. + * @return This builder for chaining. + */ + public Builder setColumn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + column_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The partitioning column.
    +     * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearColumn() { + column_ = getDefaultInstance().getColumn(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The partitioning column.
    +     * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for column to set. + * @return This builder for chaining. + */ + public Builder setColumnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + column_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int partitioningTimeGranularity_ = 0; + + /** + * + * + *
    +     * Optional. Partition granularity.
    +     * 
    + * + * + * .google.cloud.datastream.v1.PartitioningTimeGranularity partitioning_time_granularity = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for partitioningTimeGranularity. + */ + @java.lang.Override + public int getPartitioningTimeGranularityValue() { + return partitioningTimeGranularity_; + } + + /** + * + * + *
    +     * Optional. Partition granularity.
    +     * 
    + * + * + * .google.cloud.datastream.v1.PartitioningTimeGranularity partitioning_time_granularity = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for partitioningTimeGranularity to set. + * @return This builder for chaining. + */ + public Builder setPartitioningTimeGranularityValue(int value) { + partitioningTimeGranularity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Partition granularity.
    +     * 
    + * + * + * .google.cloud.datastream.v1.PartitioningTimeGranularity partitioning_time_granularity = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The partitioningTimeGranularity. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PartitioningTimeGranularity + getPartitioningTimeGranularity() { + com.google.cloud.datastream.v1.PartitioningTimeGranularity result = + com.google.cloud.datastream.v1.PartitioningTimeGranularity.forNumber( + partitioningTimeGranularity_); + return result == null + ? com.google.cloud.datastream.v1.PartitioningTimeGranularity.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Optional. Partition granularity.
    +     * 
    + * + * + * .google.cloud.datastream.v1.PartitioningTimeGranularity partitioning_time_granularity = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The partitioningTimeGranularity to set. + * @return This builder for chaining. + */ + public Builder setPartitioningTimeGranularity( + com.google.cloud.datastream.v1.PartitioningTimeGranularity value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + partitioningTimeGranularity_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Partition granularity.
    +     * 
    + * + * + * .google.cloud.datastream.v1.PartitioningTimeGranularity partitioning_time_granularity = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPartitioningTimeGranularity() { + bitField0_ = (bitField0_ & ~0x00000002); + partitioningTimeGranularity_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.TimeUnitPartition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.TimeUnitPartition) + private static final com.google.cloud.datastream.v1.TimeUnitPartition DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.TimeUnitPartition(); + } + + public static com.google.cloud.datastream.v1.TimeUnitPartition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeUnitPartition 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.datastream.v1.TimeUnitPartition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/TimeUnitPartitionOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/TimeUnitPartitionOrBuilder.java new file mode 100644 index 000000000000..d60cf8577a23 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/TimeUnitPartitionOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface TimeUnitPartitionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.TimeUnitPartition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The partitioning column.
    +   * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The column. + */ + java.lang.String getColumn(); + + /** + * + * + *
    +   * Required. The partitioning column.
    +   * 
    + * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for column. + */ + com.google.protobuf.ByteString getColumnBytes(); + + /** + * + * + *
    +   * Optional. Partition granularity.
    +   * 
    + * + * + * .google.cloud.datastream.v1.PartitioningTimeGranularity partitioning_time_granularity = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for partitioningTimeGranularity. + */ + int getPartitioningTimeGranularityValue(); + + /** + * + * + *
    +   * Optional. Partition granularity.
    +   * 
    + * + * + * .google.cloud.datastream.v1.PartitioningTimeGranularity partitioning_time_granularity = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The partitioningTimeGranularity. + */ + com.google.cloud.datastream.v1.PartitioningTimeGranularity getPartitioningTimeGranularity(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UserPasswordCredentials.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UserPasswordCredentials.java new file mode 100644 index 000000000000..4488abe9e6ac --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UserPasswordCredentials.java @@ -0,0 +1,913 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * User-password credentials.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.UserPasswordCredentials} + */ +@com.google.protobuf.Generated +public final class UserPasswordCredentials extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.UserPasswordCredentials) + UserPasswordCredentialsOrBuilder { + 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= */ "", + "UserPasswordCredentials"); + } + + // Use UserPasswordCredentials.newBuilder() to construct. + private UserPasswordCredentials(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UserPasswordCredentials() { + username_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_UserPasswordCredentials_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_UserPasswordCredentials_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.UserPasswordCredentials.class, + com.google.cloud.datastream.v1.UserPasswordCredentials.Builder.class); + } + + private int bitField0_; + public static final int USERNAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object username_ = ""; + + /** + * + * + *
    +   * Required. Username for the connection.
    +   * 
    + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + @java.lang.Override + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. Username for the connection.
    +   * 
    + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PASSWORD_FIELD_NUMBER = 2; + private com.google.cloud.datastream.v1.Secret password_; + + /** + * + * + *
    +   * Required. Password for the connection.
    +   * 
    + * + * + * .google.cloud.datastream.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the password field is set. + */ + @java.lang.Override + public boolean hasPassword() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. Password for the connection.
    +   * 
    + * + * + * .google.cloud.datastream.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The password. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.Secret getPassword() { + return password_ == null + ? com.google.cloud.datastream.v1.Secret.getDefaultInstance() + : password_; + } + + /** + * + * + *
    +   * Required. Password for the connection.
    +   * 
    + * + * + * .google.cloud.datastream.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SecretOrBuilder getPasswordOrBuilder() { + return password_ == null + ? com.google.cloud.datastream.v1.Secret.getDefaultInstance() + : password_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, username_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPassword()); + } + 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(username_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, username_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPassword()); + } + 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.datastream.v1.UserPasswordCredentials)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.UserPasswordCredentials other = + (com.google.cloud.datastream.v1.UserPasswordCredentials) obj; + + if (!getUsername().equals(other.getUsername())) return false; + if (hasPassword() != other.hasPassword()) return false; + if (hasPassword()) { + if (!getPassword().equals(other.getPassword())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + if (hasPassword()) { + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.UserPasswordCredentials parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.UserPasswordCredentials 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.datastream.v1.UserPasswordCredentials parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.UserPasswordCredentials 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.datastream.v1.UserPasswordCredentials parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.UserPasswordCredentials parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.UserPasswordCredentials parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.UserPasswordCredentials 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.datastream.v1.UserPasswordCredentials parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.UserPasswordCredentials 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.datastream.v1.UserPasswordCredentials parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.UserPasswordCredentials 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.datastream.v1.UserPasswordCredentials 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; + } + + /** + * + * + *
    +   * User-password credentials.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.UserPasswordCredentials} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.UserPasswordCredentials) + com.google.cloud.datastream.v1.UserPasswordCredentialsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_UserPasswordCredentials_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_UserPasswordCredentials_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.UserPasswordCredentials.class, + com.google.cloud.datastream.v1.UserPasswordCredentials.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.UserPasswordCredentials.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPasswordFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + username_ = ""; + password_ = null; + if (passwordBuilder_ != null) { + passwordBuilder_.dispose(); + passwordBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_UserPasswordCredentials_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.UserPasswordCredentials getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.UserPasswordCredentials.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.UserPasswordCredentials build() { + com.google.cloud.datastream.v1.UserPasswordCredentials result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.UserPasswordCredentials buildPartial() { + com.google.cloud.datastream.v1.UserPasswordCredentials result = + new com.google.cloud.datastream.v1.UserPasswordCredentials(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.UserPasswordCredentials result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.username_ = username_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.password_ = passwordBuilder_ == null ? password_ : passwordBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.UserPasswordCredentials) { + return mergeFrom((com.google.cloud.datastream.v1.UserPasswordCredentials) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.UserPasswordCredentials other) { + if (other == com.google.cloud.datastream.v1.UserPasswordCredentials.getDefaultInstance()) + return this; + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasPassword()) { + mergePassword(other.getPassword()); + } + 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: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetPasswordFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object username_ = ""; + + /** + * + * + *
    +     * Required. Username for the connection.
    +     * 
    + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. Username for the connection.
    +     * 
    + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. Username for the connection.
    +     * 
    + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The username to set. + * @return This builder for chaining. + */ + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + username_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Username for the connection.
    +     * 
    + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUsername() { + username_ = getDefaultInstance().getUsername(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Username for the connection.
    +     * 
    + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for username to set. + * @return This builder for chaining. + */ + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.datastream.v1.Secret password_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.Secret, + com.google.cloud.datastream.v1.Secret.Builder, + com.google.cloud.datastream.v1.SecretOrBuilder> + passwordBuilder_; + + /** + * + * + *
    +     * Required. Password for the connection.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the password field is set. + */ + public boolean hasPassword() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. Password for the connection.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The password. + */ + public com.google.cloud.datastream.v1.Secret getPassword() { + if (passwordBuilder_ == null) { + return password_ == null + ? com.google.cloud.datastream.v1.Secret.getDefaultInstance() + : password_; + } else { + return passwordBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. Password for the connection.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPassword(com.google.cloud.datastream.v1.Secret value) { + if (passwordBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + password_ = value; + } else { + passwordBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Password for the connection.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPassword(com.google.cloud.datastream.v1.Secret.Builder builderForValue) { + if (passwordBuilder_ == null) { + password_ = builderForValue.build(); + } else { + passwordBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Password for the connection.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePassword(com.google.cloud.datastream.v1.Secret value) { + if (passwordBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && password_ != null + && password_ != com.google.cloud.datastream.v1.Secret.getDefaultInstance()) { + getPasswordBuilder().mergeFrom(value); + } else { + password_ = value; + } + } else { + passwordBuilder_.mergeFrom(value); + } + if (password_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. Password for the connection.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPassword() { + bitField0_ = (bitField0_ & ~0x00000002); + password_ = null; + if (passwordBuilder_ != null) { + passwordBuilder_.dispose(); + passwordBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Password for the connection.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.datastream.v1.Secret.Builder getPasswordBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetPasswordFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. Password for the connection.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.datastream.v1.SecretOrBuilder getPasswordOrBuilder() { + if (passwordBuilder_ != null) { + return passwordBuilder_.getMessageOrBuilder(); + } else { + return password_ == null + ? com.google.cloud.datastream.v1.Secret.getDefaultInstance() + : password_; + } + } + + /** + * + * + *
    +     * Required. Password for the connection.
    +     * 
    + * + * + * .google.cloud.datastream.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.Secret, + com.google.cloud.datastream.v1.Secret.Builder, + com.google.cloud.datastream.v1.SecretOrBuilder> + internalGetPasswordFieldBuilder() { + if (passwordBuilder_ == null) { + passwordBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.Secret, + com.google.cloud.datastream.v1.Secret.Builder, + com.google.cloud.datastream.v1.SecretOrBuilder>( + getPassword(), getParentForChildren(), isClean()); + password_ = null; + } + return passwordBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.UserPasswordCredentials) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.UserPasswordCredentials) + private static final com.google.cloud.datastream.v1.UserPasswordCredentials DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.UserPasswordCredentials(); + } + + public static com.google.cloud.datastream.v1.UserPasswordCredentials getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserPasswordCredentials 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.datastream.v1.UserPasswordCredentials getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UserPasswordCredentialsOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UserPasswordCredentialsOrBuilder.java new file mode 100644 index 000000000000..0c7a230c8297 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UserPasswordCredentialsOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface UserPasswordCredentialsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.UserPasswordCredentials) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Username for the connection.
    +   * 
    + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + java.lang.String getUsername(); + + /** + * + * + *
    +   * Required. Username for the connection.
    +   * 
    + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + com.google.protobuf.ByteString getUsernameBytes(); + + /** + * + * + *
    +   * Required. Password for the connection.
    +   * 
    + * + * + * .google.cloud.datastream.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the password field is set. + */ + boolean hasPassword(); + + /** + * + * + *
    +   * Required. Password for the connection.
    +   * 
    + * + * + * .google.cloud.datastream.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The password. + */ + com.google.cloud.datastream.v1.Secret getPassword(); + + /** + * + * + *
    +   * Required. Password for the connection.
    +   * 
    + * + * + * .google.cloud.datastream.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.datastream.v1.SecretOrBuilder getPasswordOrBuilder(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/WorkdayProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/WorkdayProfile.java new file mode 100644 index 000000000000..45bea8a11e14 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/WorkdayProfile.java @@ -0,0 +1,1137 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * Profile for connecting to a Workday source.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.WorkdayProfile} + */ +@com.google.protobuf.Generated +public final class WorkdayProfile extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.WorkdayProfile) + WorkdayProfileOrBuilder { + 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= */ "", + "WorkdayProfile"); + } + + // Use WorkdayProfile.newBuilder() to construct. + private WorkdayProfile(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private WorkdayProfile() { + host_ = ""; + tenant_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_WorkdayProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_WorkdayProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.WorkdayProfile.class, + com.google.cloud.datastream.v1.WorkdayProfile.Builder.class); + } + + private int bitField0_; + public static final int HOST_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object host_ = ""; + + /** + * + * + *
    +   * Required. Host for the Workday connection. Must be a valid hostname (e.g.,
    +   * `wd3-impl-services1.workday.com`).
    +   * 
    + * + * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The host. + */ + @java.lang.Override + public java.lang.String getHost() { + java.lang.Object ref = host_; + 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(); + host_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. Host for the Workday connection. Must be a valid hostname (e.g.,
    +   * `wd3-impl-services1.workday.com`).
    +   * 
    + * + * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for host. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TENANT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object tenant_ = ""; + + /** + * + * + *
    +   * Required. Tenant for the Workday connection (e.g., `google12`).
    +   * 
    + * + * string tenant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tenant. + */ + @java.lang.Override + public java.lang.String getTenant() { + java.lang.Object ref = tenant_; + 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(); + tenant_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. Tenant for the Workday connection (e.g., `google12`).
    +   * 
    + * + * string tenant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tenant. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTenantBytes() { + java.lang.Object ref = tenant_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tenant_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OAUTH_REFRESH_TOKEN_CREDENTIALS_FIELD_NUMBER = 3; + private com.google.cloud.datastream.v1.OauthRefreshTokenCredentials oauthRefreshTokenCredentials_; + + /** + * + * + *
    +   * Required. Credentials for authenticating with the Workday API.
    +   * OAuth Refresh Token credentials for authenticating with the Workday API.
    +   * 
    + * + * + * .google.cloud.datastream.v1.OauthRefreshTokenCredentials oauth_refresh_token_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the oauthRefreshTokenCredentials field is set. + */ + @java.lang.Override + public boolean hasOauthRefreshTokenCredentials() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. Credentials for authenticating with the Workday API.
    +   * OAuth Refresh Token credentials for authenticating with the Workday API.
    +   * 
    + * + * + * .google.cloud.datastream.v1.OauthRefreshTokenCredentials oauth_refresh_token_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The oauthRefreshTokenCredentials. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OauthRefreshTokenCredentials + getOauthRefreshTokenCredentials() { + return oauthRefreshTokenCredentials_ == null + ? com.google.cloud.datastream.v1.OauthRefreshTokenCredentials.getDefaultInstance() + : oauthRefreshTokenCredentials_; + } + + /** + * + * + *
    +   * Required. Credentials for authenticating with the Workday API.
    +   * OAuth Refresh Token credentials for authenticating with the Workday API.
    +   * 
    + * + * + * .google.cloud.datastream.v1.OauthRefreshTokenCredentials oauth_refresh_token_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OauthRefreshTokenCredentialsOrBuilder + getOauthRefreshTokenCredentialsOrBuilder() { + return oauthRefreshTokenCredentials_ == null + ? com.google.cloud.datastream.v1.OauthRefreshTokenCredentials.getDefaultInstance() + : oauthRefreshTokenCredentials_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, host_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tenant_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, tenant_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getOauthRefreshTokenCredentials()); + } + 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(host_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, host_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tenant_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, tenant_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getOauthRefreshTokenCredentials()); + } + 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.datastream.v1.WorkdayProfile)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.WorkdayProfile other = + (com.google.cloud.datastream.v1.WorkdayProfile) obj; + + if (!getHost().equals(other.getHost())) return false; + if (!getTenant().equals(other.getTenant())) return false; + if (hasOauthRefreshTokenCredentials() != other.hasOauthRefreshTokenCredentials()) return false; + if (hasOauthRefreshTokenCredentials()) { + if (!getOauthRefreshTokenCredentials().equals(other.getOauthRefreshTokenCredentials())) + 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) + HOST_FIELD_NUMBER; + hash = (53 * hash) + getHost().hashCode(); + hash = (37 * hash) + TENANT_FIELD_NUMBER; + hash = (53 * hash) + getTenant().hashCode(); + if (hasOauthRefreshTokenCredentials()) { + hash = (37 * hash) + OAUTH_REFRESH_TOKEN_CREDENTIALS_FIELD_NUMBER; + hash = (53 * hash) + getOauthRefreshTokenCredentials().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.WorkdayProfile parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.WorkdayProfile 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.datastream.v1.WorkdayProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.WorkdayProfile 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.datastream.v1.WorkdayProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.WorkdayProfile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.WorkdayProfile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.WorkdayProfile 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.datastream.v1.WorkdayProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.WorkdayProfile 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.datastream.v1.WorkdayProfile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.WorkdayProfile 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.datastream.v1.WorkdayProfile 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; + } + + /** + * + * + *
    +   * Profile for connecting to a Workday source.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.WorkdayProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.WorkdayProfile) + com.google.cloud.datastream.v1.WorkdayProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_WorkdayProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_WorkdayProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.WorkdayProfile.class, + com.google.cloud.datastream.v1.WorkdayProfile.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.WorkdayProfile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetOauthRefreshTokenCredentialsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + host_ = ""; + tenant_ = ""; + oauthRefreshTokenCredentials_ = null; + if (oauthRefreshTokenCredentialsBuilder_ != null) { + oauthRefreshTokenCredentialsBuilder_.dispose(); + oauthRefreshTokenCredentialsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_WorkdayProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.WorkdayProfile getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.WorkdayProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.WorkdayProfile build() { + com.google.cloud.datastream.v1.WorkdayProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.WorkdayProfile buildPartial() { + com.google.cloud.datastream.v1.WorkdayProfile result = + new com.google.cloud.datastream.v1.WorkdayProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.WorkdayProfile result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.host_ = host_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tenant_ = tenant_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.oauthRefreshTokenCredentials_ = + oauthRefreshTokenCredentialsBuilder_ == null + ? oauthRefreshTokenCredentials_ + : oauthRefreshTokenCredentialsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.WorkdayProfile) { + return mergeFrom((com.google.cloud.datastream.v1.WorkdayProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.WorkdayProfile other) { + if (other == com.google.cloud.datastream.v1.WorkdayProfile.getDefaultInstance()) return this; + if (!other.getHost().isEmpty()) { + host_ = other.host_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTenant().isEmpty()) { + tenant_ = other.tenant_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasOauthRefreshTokenCredentials()) { + mergeOauthRefreshTokenCredentials(other.getOauthRefreshTokenCredentials()); + } + 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: + { + host_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + tenant_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetOauthRefreshTokenCredentialsFieldBuilder().getBuilder(), + extensionRegistry); + 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 host_ = ""; + + /** + * + * + *
    +     * Required. Host for the Workday connection. Must be a valid hostname (e.g.,
    +     * `wd3-impl-services1.workday.com`).
    +     * 
    + * + * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The host. + */ + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. Host for the Workday connection. Must be a valid hostname (e.g.,
    +     * `wd3-impl-services1.workday.com`).
    +     * 
    + * + * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for host. + */ + public com.google.protobuf.ByteString getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. Host for the Workday connection. Must be a valid hostname (e.g.,
    +     * `wd3-impl-services1.workday.com`).
    +     * 
    + * + * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The host to set. + * @return This builder for chaining. + */ + public Builder setHost(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + host_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Host for the Workday connection. Must be a valid hostname (e.g.,
    +     * `wd3-impl-services1.workday.com`).
    +     * 
    + * + * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearHost() { + host_ = getDefaultInstance().getHost(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Host for the Workday connection. Must be a valid hostname (e.g.,
    +     * `wd3-impl-services1.workday.com`).
    +     * 
    + * + * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for host to set. + * @return This builder for chaining. + */ + public Builder setHostBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + host_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object tenant_ = ""; + + /** + * + * + *
    +     * Required. Tenant for the Workday connection (e.g., `google12`).
    +     * 
    + * + * string tenant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tenant. + */ + public java.lang.String getTenant() { + java.lang.Object ref = tenant_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tenant_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. Tenant for the Workday connection (e.g., `google12`).
    +     * 
    + * + * string tenant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tenant. + */ + public com.google.protobuf.ByteString getTenantBytes() { + java.lang.Object ref = tenant_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tenant_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. Tenant for the Workday connection (e.g., `google12`).
    +     * 
    + * + * string tenant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The tenant to set. + * @return This builder for chaining. + */ + public Builder setTenant(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tenant_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Tenant for the Workday connection (e.g., `google12`).
    +     * 
    + * + * string tenant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTenant() { + tenant_ = getDefaultInstance().getTenant(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Tenant for the Workday connection (e.g., `google12`).
    +     * 
    + * + * string tenant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for tenant to set. + * @return This builder for chaining. + */ + public Builder setTenantBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tenant_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.datastream.v1.OauthRefreshTokenCredentials + oauthRefreshTokenCredentials_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.OauthRefreshTokenCredentials, + com.google.cloud.datastream.v1.OauthRefreshTokenCredentials.Builder, + com.google.cloud.datastream.v1.OauthRefreshTokenCredentialsOrBuilder> + oauthRefreshTokenCredentialsBuilder_; + + /** + * + * + *
    +     * Required. Credentials for authenticating with the Workday API.
    +     * OAuth Refresh Token credentials for authenticating with the Workday API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthRefreshTokenCredentials oauth_refresh_token_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the oauthRefreshTokenCredentials field is set. + */ + public boolean hasOauthRefreshTokenCredentials() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Required. Credentials for authenticating with the Workday API.
    +     * OAuth Refresh Token credentials for authenticating with the Workday API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthRefreshTokenCredentials oauth_refresh_token_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The oauthRefreshTokenCredentials. + */ + public com.google.cloud.datastream.v1.OauthRefreshTokenCredentials + getOauthRefreshTokenCredentials() { + if (oauthRefreshTokenCredentialsBuilder_ == null) { + return oauthRefreshTokenCredentials_ == null + ? com.google.cloud.datastream.v1.OauthRefreshTokenCredentials.getDefaultInstance() + : oauthRefreshTokenCredentials_; + } else { + return oauthRefreshTokenCredentialsBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. Credentials for authenticating with the Workday API.
    +     * OAuth Refresh Token credentials for authenticating with the Workday API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthRefreshTokenCredentials oauth_refresh_token_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOauthRefreshTokenCredentials( + com.google.cloud.datastream.v1.OauthRefreshTokenCredentials value) { + if (oauthRefreshTokenCredentialsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oauthRefreshTokenCredentials_ = value; + } else { + oauthRefreshTokenCredentialsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Credentials for authenticating with the Workday API.
    +     * OAuth Refresh Token credentials for authenticating with the Workday API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthRefreshTokenCredentials oauth_refresh_token_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOauthRefreshTokenCredentials( + com.google.cloud.datastream.v1.OauthRefreshTokenCredentials.Builder builderForValue) { + if (oauthRefreshTokenCredentialsBuilder_ == null) { + oauthRefreshTokenCredentials_ = builderForValue.build(); + } else { + oauthRefreshTokenCredentialsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Credentials for authenticating with the Workday API.
    +     * OAuth Refresh Token credentials for authenticating with the Workday API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthRefreshTokenCredentials oauth_refresh_token_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeOauthRefreshTokenCredentials( + com.google.cloud.datastream.v1.OauthRefreshTokenCredentials value) { + if (oauthRefreshTokenCredentialsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && oauthRefreshTokenCredentials_ != null + && oauthRefreshTokenCredentials_ + != com.google.cloud.datastream.v1.OauthRefreshTokenCredentials + .getDefaultInstance()) { + getOauthRefreshTokenCredentialsBuilder().mergeFrom(value); + } else { + oauthRefreshTokenCredentials_ = value; + } + } else { + oauthRefreshTokenCredentialsBuilder_.mergeFrom(value); + } + if (oauthRefreshTokenCredentials_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. Credentials for authenticating with the Workday API.
    +     * OAuth Refresh Token credentials for authenticating with the Workday API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthRefreshTokenCredentials oauth_refresh_token_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearOauthRefreshTokenCredentials() { + bitField0_ = (bitField0_ & ~0x00000004); + oauthRefreshTokenCredentials_ = null; + if (oauthRefreshTokenCredentialsBuilder_ != null) { + oauthRefreshTokenCredentialsBuilder_.dispose(); + oauthRefreshTokenCredentialsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Credentials for authenticating with the Workday API.
    +     * OAuth Refresh Token credentials for authenticating with the Workday API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthRefreshTokenCredentials oauth_refresh_token_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.datastream.v1.OauthRefreshTokenCredentials.Builder + getOauthRefreshTokenCredentialsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetOauthRefreshTokenCredentialsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. Credentials for authenticating with the Workday API.
    +     * OAuth Refresh Token credentials for authenticating with the Workday API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthRefreshTokenCredentials oauth_refresh_token_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.datastream.v1.OauthRefreshTokenCredentialsOrBuilder + getOauthRefreshTokenCredentialsOrBuilder() { + if (oauthRefreshTokenCredentialsBuilder_ != null) { + return oauthRefreshTokenCredentialsBuilder_.getMessageOrBuilder(); + } else { + return oauthRefreshTokenCredentials_ == null + ? com.google.cloud.datastream.v1.OauthRefreshTokenCredentials.getDefaultInstance() + : oauthRefreshTokenCredentials_; + } + } + + /** + * + * + *
    +     * Required. Credentials for authenticating with the Workday API.
    +     * OAuth Refresh Token credentials for authenticating with the Workday API.
    +     * 
    + * + * + * .google.cloud.datastream.v1.OauthRefreshTokenCredentials oauth_refresh_token_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.OauthRefreshTokenCredentials, + com.google.cloud.datastream.v1.OauthRefreshTokenCredentials.Builder, + com.google.cloud.datastream.v1.OauthRefreshTokenCredentialsOrBuilder> + internalGetOauthRefreshTokenCredentialsFieldBuilder() { + if (oauthRefreshTokenCredentialsBuilder_ == null) { + oauthRefreshTokenCredentialsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.OauthRefreshTokenCredentials, + com.google.cloud.datastream.v1.OauthRefreshTokenCredentials.Builder, + com.google.cloud.datastream.v1.OauthRefreshTokenCredentialsOrBuilder>( + getOauthRefreshTokenCredentials(), getParentForChildren(), isClean()); + oauthRefreshTokenCredentials_ = null; + } + return oauthRefreshTokenCredentialsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.WorkdayProfile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.WorkdayProfile) + private static final com.google.cloud.datastream.v1.WorkdayProfile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.WorkdayProfile(); + } + + public static com.google.cloud.datastream.v1.WorkdayProfile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkdayProfile 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.datastream.v1.WorkdayProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/WorkdayProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/WorkdayProfileOrBuilder.java new file mode 100644 index 000000000000..e93a4fcb926e --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/WorkdayProfileOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface WorkdayProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.WorkdayProfile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Host for the Workday connection. Must be a valid hostname (e.g.,
    +   * `wd3-impl-services1.workday.com`).
    +   * 
    + * + * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The host. + */ + java.lang.String getHost(); + + /** + * + * + *
    +   * Required. Host for the Workday connection. Must be a valid hostname (e.g.,
    +   * `wd3-impl-services1.workday.com`).
    +   * 
    + * + * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for host. + */ + com.google.protobuf.ByteString getHostBytes(); + + /** + * + * + *
    +   * Required. Tenant for the Workday connection (e.g., `google12`).
    +   * 
    + * + * string tenant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tenant. + */ + java.lang.String getTenant(); + + /** + * + * + *
    +   * Required. Tenant for the Workday connection (e.g., `google12`).
    +   * 
    + * + * string tenant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tenant. + */ + com.google.protobuf.ByteString getTenantBytes(); + + /** + * + * + *
    +   * Required. Credentials for authenticating with the Workday API.
    +   * OAuth Refresh Token credentials for authenticating with the Workday API.
    +   * 
    + * + * + * .google.cloud.datastream.v1.OauthRefreshTokenCredentials oauth_refresh_token_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the oauthRefreshTokenCredentials field is set. + */ + boolean hasOauthRefreshTokenCredentials(); + + /** + * + * + *
    +   * Required. Credentials for authenticating with the Workday API.
    +   * OAuth Refresh Token credentials for authenticating with the Workday API.
    +   * 
    + * + * + * .google.cloud.datastream.v1.OauthRefreshTokenCredentials oauth_refresh_token_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The oauthRefreshTokenCredentials. + */ + com.google.cloud.datastream.v1.OauthRefreshTokenCredentials getOauthRefreshTokenCredentials(); + + /** + * + * + *
    +   * Required. Credentials for authenticating with the Workday API.
    +   * OAuth Refresh Token credentials for authenticating with the Workday API.
    +   * 
    + * + * + * .google.cloud.datastream.v1.OauthRefreshTokenCredentials oauth_refresh_token_credentials = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.datastream.v1.OauthRefreshTokenCredentialsOrBuilder + getOauthRefreshTokenCredentialsOrBuilder(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/WorkdaySourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/WorkdaySourceConfig.java new file mode 100644 index 000000000000..bd6b13ca82b7 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/WorkdaySourceConfig.java @@ -0,0 +1,1360 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
    + * Configuration for syncing data from a Workday source.
    + * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.WorkdaySourceConfig} + */ +@com.google.protobuf.Generated +public final class WorkdaySourceConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.WorkdaySourceConfig) + WorkdaySourceConfigOrBuilder { + 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= */ "", + "WorkdaySourceConfig"); + } + + // Use WorkdaySourceConfig.newBuilder() to construct. + private WorkdaySourceConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private WorkdaySourceConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_WorkdaySourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_WorkdaySourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.WorkdaySourceConfig.class, + com.google.cloud.datastream.v1.WorkdaySourceConfig.Builder.class); + } + + private int bitField0_; + public static final int INCLUDE_OBJECTS_FIELD_NUMBER = 1; + private com.google.cloud.datastream.v1.SourceCatalog includeObjects_; + + /** + * + * + *
    +   * Optional. The objects to retrieve from the source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the includeObjects field is set. + */ + @java.lang.Override + public boolean hasIncludeObjects() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Optional. The objects to retrieve from the source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The includeObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalog getIncludeObjects() { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : includeObjects_; + } + + /** + * + * + *
    +   * Optional. The objects to retrieve from the source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalogOrBuilder getIncludeObjectsOrBuilder() { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : includeObjects_; + } + + public static final int EXCLUDE_OBJECTS_FIELD_NUMBER = 2; + private com.google.cloud.datastream.v1.SourceCatalog excludeObjects_; + + /** + * + * + *
    +   * Optional. The objects to exclude from the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the excludeObjects field is set. + */ + @java.lang.Override + public boolean hasExcludeObjects() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Optional. The objects to exclude from the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludeObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalog getExcludeObjects() { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : excludeObjects_; + } + + /** + * + * + *
    +   * Optional. The objects to exclude from the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceCatalogOrBuilder getExcludeObjectsOrBuilder() { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : excludeObjects_; + } + + public static final int POLLING_INTERVAL_FIELD_NUMBER = 3; + private com.google.protobuf.Duration pollingInterval_; + + /** + * + * + *
    +   * Required. Incremental sync polling interval for all objects. If not set, a
    +   * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +   * to `24 hours`, inclusive.
    +   * 
    + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the pollingInterval field is set. + */ + @java.lang.Override + public boolean hasPollingInterval() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Required. Incremental sync polling interval for all objects. If not set, a
    +   * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +   * to `24 hours`, inclusive.
    +   * 
    + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The pollingInterval. + */ + @java.lang.Override + public com.google.protobuf.Duration getPollingInterval() { + return pollingInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : pollingInterval_; + } + + /** + * + * + *
    +   * Required. Incremental sync polling interval for all objects. If not set, a
    +   * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +   * to `24 hours`, inclusive.
    +   * 
    + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getPollingIntervalOrBuilder() { + return pollingInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : pollingInterval_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getIncludeObjects()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getExcludeObjects()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getPollingInterval()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIncludeObjects()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExcludeObjects()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPollingInterval()); + } + 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.datastream.v1.WorkdaySourceConfig)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.WorkdaySourceConfig other = + (com.google.cloud.datastream.v1.WorkdaySourceConfig) obj; + + if (hasIncludeObjects() != other.hasIncludeObjects()) return false; + if (hasIncludeObjects()) { + if (!getIncludeObjects().equals(other.getIncludeObjects())) return false; + } + if (hasExcludeObjects() != other.hasExcludeObjects()) return false; + if (hasExcludeObjects()) { + if (!getExcludeObjects().equals(other.getExcludeObjects())) return false; + } + if (hasPollingInterval() != other.hasPollingInterval()) return false; + if (hasPollingInterval()) { + if (!getPollingInterval().equals(other.getPollingInterval())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIncludeObjects()) { + hash = (37 * hash) + INCLUDE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getIncludeObjects().hashCode(); + } + if (hasExcludeObjects()) { + hash = (37 * hash) + EXCLUDE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getExcludeObjects().hashCode(); + } + if (hasPollingInterval()) { + hash = (37 * hash) + POLLING_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getPollingInterval().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.WorkdaySourceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.WorkdaySourceConfig 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.datastream.v1.WorkdaySourceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.WorkdaySourceConfig 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.datastream.v1.WorkdaySourceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.WorkdaySourceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.WorkdaySourceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.WorkdaySourceConfig 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.datastream.v1.WorkdaySourceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.WorkdaySourceConfig 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.datastream.v1.WorkdaySourceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.WorkdaySourceConfig 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.datastream.v1.WorkdaySourceConfig 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; + } + + /** + * + * + *
    +   * Configuration for syncing data from a Workday source.
    +   * 
    + * + * Protobuf type {@code google.cloud.datastream.v1.WorkdaySourceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.WorkdaySourceConfig) + com.google.cloud.datastream.v1.WorkdaySourceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_WorkdaySourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_WorkdaySourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.WorkdaySourceConfig.class, + com.google.cloud.datastream.v1.WorkdaySourceConfig.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.WorkdaySourceConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetIncludeObjectsFieldBuilder(); + internalGetExcludeObjectsFieldBuilder(); + internalGetPollingIntervalFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + includeObjects_ = null; + if (includeObjectsBuilder_ != null) { + includeObjectsBuilder_.dispose(); + includeObjectsBuilder_ = null; + } + excludeObjects_ = null; + if (excludeObjectsBuilder_ != null) { + excludeObjectsBuilder_.dispose(); + excludeObjectsBuilder_ = null; + } + pollingInterval_ = null; + if (pollingIntervalBuilder_ != null) { + pollingIntervalBuilder_.dispose(); + pollingIntervalBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_WorkdaySourceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.WorkdaySourceConfig getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.WorkdaySourceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.WorkdaySourceConfig build() { + com.google.cloud.datastream.v1.WorkdaySourceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.WorkdaySourceConfig buildPartial() { + com.google.cloud.datastream.v1.WorkdaySourceConfig result = + new com.google.cloud.datastream.v1.WorkdaySourceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.WorkdaySourceConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.includeObjects_ = + includeObjectsBuilder_ == null ? includeObjects_ : includeObjectsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.excludeObjects_ = + excludeObjectsBuilder_ == null ? excludeObjects_ : excludeObjectsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pollingInterval_ = + pollingIntervalBuilder_ == null ? pollingInterval_ : pollingIntervalBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.WorkdaySourceConfig) { + return mergeFrom((com.google.cloud.datastream.v1.WorkdaySourceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.WorkdaySourceConfig other) { + if (other == com.google.cloud.datastream.v1.WorkdaySourceConfig.getDefaultInstance()) + return this; + if (other.hasIncludeObjects()) { + mergeIncludeObjects(other.getIncludeObjects()); + } + if (other.hasExcludeObjects()) { + mergeExcludeObjects(other.getExcludeObjects()); + } + if (other.hasPollingInterval()) { + mergePollingInterval(other.getPollingInterval()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetIncludeObjectsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetExcludeObjectsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetPollingIntervalFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.datastream.v1.SourceCatalog includeObjects_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder> + includeObjectsBuilder_; + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the includeObjects field is set. + */ + public boolean hasIncludeObjects() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The includeObjects. + */ + public com.google.cloud.datastream.v1.SourceCatalog getIncludeObjects() { + if (includeObjectsBuilder_ == null) { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : includeObjects_; + } else { + return includeObjectsBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludeObjects(com.google.cloud.datastream.v1.SourceCatalog value) { + if (includeObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + includeObjects_ = value; + } else { + includeObjectsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludeObjects( + com.google.cloud.datastream.v1.SourceCatalog.Builder builderForValue) { + if (includeObjectsBuilder_ == null) { + includeObjects_ = builderForValue.build(); + } else { + includeObjectsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.SourceCatalog value) { + if (includeObjectsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && includeObjects_ != null + && includeObjects_ + != com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance()) { + getIncludeObjectsBuilder().mergeFrom(value); + } else { + includeObjects_ = value; + } + } else { + includeObjectsBuilder_.mergeFrom(value); + } + if (includeObjects_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIncludeObjects() { + bitField0_ = (bitField0_ & ~0x00000001); + includeObjects_ = null; + if (includeObjectsBuilder_ != null) { + includeObjectsBuilder_.dispose(); + includeObjectsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceCatalog.Builder getIncludeObjectsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetIncludeObjectsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceCatalogOrBuilder getIncludeObjectsOrBuilder() { + if (includeObjectsBuilder_ != null) { + return includeObjectsBuilder_.getMessageOrBuilder(); + } else { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : includeObjects_; + } + } + + /** + * + * + *
    +     * Optional. The objects to retrieve from the source.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder> + internalGetIncludeObjectsFieldBuilder() { + if (includeObjectsBuilder_ == null) { + includeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder>( + getIncludeObjects(), getParentForChildren(), isClean()); + includeObjects_ = null; + } + return includeObjectsBuilder_; + } + + private com.google.cloud.datastream.v1.SourceCatalog excludeObjects_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder> + excludeObjectsBuilder_; + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the excludeObjects field is set. + */ + public boolean hasExcludeObjects() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludeObjects. + */ + public com.google.cloud.datastream.v1.SourceCatalog getExcludeObjects() { + if (excludeObjectsBuilder_ == null) { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : excludeObjects_; + } else { + return excludeObjectsBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExcludeObjects(com.google.cloud.datastream.v1.SourceCatalog value) { + if (excludeObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + excludeObjects_ = value; + } else { + excludeObjectsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExcludeObjects( + com.google.cloud.datastream.v1.SourceCatalog.Builder builderForValue) { + if (excludeObjectsBuilder_ == null) { + excludeObjects_ = builderForValue.build(); + } else { + excludeObjectsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.SourceCatalog value) { + if (excludeObjectsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && excludeObjects_ != null + && excludeObjects_ + != com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance()) { + getExcludeObjectsBuilder().mergeFrom(value); + } else { + excludeObjects_ = value; + } + } else { + excludeObjectsBuilder_.mergeFrom(value); + } + if (excludeObjects_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExcludeObjects() { + bitField0_ = (bitField0_ & ~0x00000002); + excludeObjects_ = null; + if (excludeObjectsBuilder_ != null) { + excludeObjectsBuilder_.dispose(); + excludeObjectsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceCatalog.Builder getExcludeObjectsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetExcludeObjectsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.SourceCatalogOrBuilder getExcludeObjectsOrBuilder() { + if (excludeObjectsBuilder_ != null) { + return excludeObjectsBuilder_.getMessageOrBuilder(); + } else { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.SourceCatalog.getDefaultInstance() + : excludeObjects_; + } + } + + /** + * + * + *
    +     * Optional. The objects to exclude from the stream.
    +     * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder> + internalGetExcludeObjectsFieldBuilder() { + if (excludeObjectsBuilder_ == null) { + excludeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.datastream.v1.SourceCatalog, + com.google.cloud.datastream.v1.SourceCatalog.Builder, + com.google.cloud.datastream.v1.SourceCatalogOrBuilder>( + getExcludeObjects(), getParentForChildren(), isClean()); + excludeObjects_ = null; + } + return excludeObjectsBuilder_; + } + + private com.google.protobuf.Duration pollingInterval_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + pollingIntervalBuilder_; + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the pollingInterval field is set. + */ + public boolean hasPollingInterval() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The pollingInterval. + */ + public com.google.protobuf.Duration getPollingInterval() { + if (pollingIntervalBuilder_ == null) { + return pollingInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : pollingInterval_; + } else { + return pollingIntervalBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPollingInterval(com.google.protobuf.Duration value) { + if (pollingIntervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pollingInterval_ = value; + } else { + pollingIntervalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPollingInterval(com.google.protobuf.Duration.Builder builderForValue) { + if (pollingIntervalBuilder_ == null) { + pollingInterval_ = builderForValue.build(); + } else { + pollingIntervalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePollingInterval(com.google.protobuf.Duration value) { + if (pollingIntervalBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && pollingInterval_ != null + && pollingInterval_ != com.google.protobuf.Duration.getDefaultInstance()) { + getPollingIntervalBuilder().mergeFrom(value); + } else { + pollingInterval_ = value; + } + } else { + pollingIntervalBuilder_.mergeFrom(value); + } + if (pollingInterval_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPollingInterval() { + bitField0_ = (bitField0_ & ~0x00000004); + pollingInterval_ = null; + if (pollingIntervalBuilder_ != null) { + pollingIntervalBuilder_.dispose(); + pollingIntervalBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Duration.Builder getPollingIntervalBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetPollingIntervalFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.DurationOrBuilder getPollingIntervalOrBuilder() { + if (pollingIntervalBuilder_ != null) { + return pollingIntervalBuilder_.getMessageOrBuilder(); + } else { + return pollingInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : pollingInterval_; + } + } + + /** + * + * + *
    +     * Required. Incremental sync polling interval for all objects. If not set, a
    +     * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +     * to `24 hours`, inclusive.
    +     * 
    + * + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetPollingIntervalFieldBuilder() { + if (pollingIntervalBuilder_ == null) { + pollingIntervalBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getPollingInterval(), getParentForChildren(), isClean()); + pollingInterval_ = null; + } + return pollingIntervalBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.WorkdaySourceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.WorkdaySourceConfig) + private static final com.google.cloud.datastream.v1.WorkdaySourceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.WorkdaySourceConfig(); + } + + public static com.google.cloud.datastream.v1.WorkdaySourceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkdaySourceConfig 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.datastream.v1.WorkdaySourceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/WorkdaySourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/WorkdaySourceConfigOrBuilder.java new file mode 100644 index 000000000000..ce1c9a9a2bdc --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/WorkdaySourceConfigOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/datastream/v1/datastream_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.datastream.v1; + +@com.google.protobuf.Generated +public interface WorkdaySourceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.WorkdaySourceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. The objects to retrieve from the source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the includeObjects field is set. + */ + boolean hasIncludeObjects(); + + /** + * + * + *
    +   * Optional. The objects to retrieve from the source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The includeObjects. + */ + com.google.cloud.datastream.v1.SourceCatalog getIncludeObjects(); + + /** + * + * + *
    +   * Optional. The objects to retrieve from the source.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog include_objects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SourceCatalogOrBuilder getIncludeObjectsOrBuilder(); + + /** + * + * + *
    +   * Optional. The objects to exclude from the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the excludeObjects field is set. + */ + boolean hasExcludeObjects(); + + /** + * + * + *
    +   * Optional. The objects to exclude from the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludeObjects. + */ + com.google.cloud.datastream.v1.SourceCatalog getExcludeObjects(); + + /** + * + * + *
    +   * Optional. The objects to exclude from the stream.
    +   * 
    + * + * + * .google.cloud.datastream.v1.SourceCatalog exclude_objects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.SourceCatalogOrBuilder getExcludeObjectsOrBuilder(); + + /** + * + * + *
    +   * Required. Incremental sync polling interval for all objects. If not set, a
    +   * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +   * to `24 hours`, inclusive.
    +   * 
    + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the pollingInterval field is set. + */ + boolean hasPollingInterval(); + + /** + * + * + *
    +   * Required. Incremental sync polling interval for all objects. If not set, a
    +   * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +   * to `24 hours`, inclusive.
    +   * 
    + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The pollingInterval. + */ + com.google.protobuf.Duration getPollingInterval(); + + /** + * + * + *
    +   * Required. Incremental sync polling interval for all objects. If not set, a
    +   * default value of `5 minutes` is used. The duration must be from `5 minutes`
    +   * to `24 hours`, inclusive.
    +   * 
    + * + * .google.protobuf.Duration polling_interval = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.DurationOrBuilder getPollingIntervalOrBuilder(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto b/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto index 29423167ed18..53fbbbc936f1 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -338,42 +338,59 @@ message DiscoverConnectionProfileRequest { // The connection profile on which to run discover. oneof target { - // An ad-hoc connection profile configuration. - ConnectionProfile connection_profile = 200; + // Optional. An ad-hoc connection profile configuration. + ConnectionProfile connection_profile = 200 + [(google.api.field_behavior) = OPTIONAL]; - // A reference to an existing connection profile. - string connection_profile_name = 201; + // Optional. A reference to an existing connection profile. + string connection_profile_name = 201 + [(google.api.field_behavior) = OPTIONAL]; } // The depth of the retrieved hierarchy of data objects. oneof hierarchy { - // Whether to retrieve the full hierarchy of data objects (TRUE) or only the - // current level (FALSE). - bool full_hierarchy = 3; + // Optional. Whether to retrieve the full hierarchy of data objects (TRUE) + // or only the current level (FALSE). + bool full_hierarchy = 3 [(google.api.field_behavior) = OPTIONAL]; - // The number of hierarchy levels below the current level to be retrieved. - int32 hierarchy_depth = 4; + // Optional. The number of hierarchy levels below the current level to be + // retrieved. + int32 hierarchy_depth = 4 [(google.api.field_behavior) = OPTIONAL]; } // The data object to populate with child data objects and metadata. oneof data_object { - // Oracle RDBMS to enrich with child data objects and metadata. - OracleRdbms oracle_rdbms = 100; + // Optional. Oracle RDBMS to enrich with child data objects and metadata. + OracleRdbms oracle_rdbms = 100 [(google.api.field_behavior) = OPTIONAL]; - // MySQL RDBMS to enrich with child data objects and metadata. - MysqlRdbms mysql_rdbms = 101; + // Optional. MySQL RDBMS to enrich with child data objects and metadata. + MysqlRdbms mysql_rdbms = 101 [(google.api.field_behavior) = OPTIONAL]; - // PostgreSQL RDBMS to enrich with child data objects and metadata. - PostgresqlRdbms postgresql_rdbms = 102; + // Optional. PostgreSQL RDBMS to enrich with child data objects and + // metadata. + PostgresqlRdbms postgresql_rdbms = 102 + [(google.api.field_behavior) = OPTIONAL]; - // SQLServer RDBMS to enrich with child data objects and metadata. - SqlServerRdbms sql_server_rdbms = 103; + // Optional. SQLServer RDBMS to enrich with child data objects and metadata. + SqlServerRdbms sql_server_rdbms = 103 + [(google.api.field_behavior) = OPTIONAL]; - // Salesforce organization to enrich with child data objects and metadata. - SalesforceOrg salesforce_org = 104; + // Optional. Salesforce organization to enrich with child data objects and + // metadata. + SalesforceOrg salesforce_org = 104 [(google.api.field_behavior) = OPTIONAL]; - // MongoDB cluster to enrich with child data objects and metadata. - MongodbCluster mongodb_cluster = 105; + // Optional. MongoDB cluster to enrich with child data objects and metadata. + MongodbCluster mongodb_cluster = 105 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Spanner database to enrich with child data objects and + // metadata. + SpannerDatabase spanner_database = 106 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Source catalog to enrich with child data objects and metadata. + // This is mainly used to represent SaaS sources databases. + SourceCatalog source_catalog = 108 [(google.api.field_behavior) = OPTIONAL]; } } @@ -398,6 +415,13 @@ message DiscoverConnectionProfileResponse { // Enriched MongoDB cluster. MongodbCluster mongodb_cluster = 105; + + // Enriched Spanner database. + SpannerDatabase spanner_database = 106; + + // Enriched source catalog. This is mainly used to represent SaaS sources + // databases. + SourceCatalog source_catalog = 108; } } @@ -412,12 +436,12 @@ message FetchStaticIpsRequest { } ]; - // Maximum number of Ips to return, will likely not be specified. - int32 page_size = 2; + // Optional. Maximum number of Ips to return, will likely not be specified. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListStaticIps` call. + // Optional. A page token, received from a previous `ListStaticIps` call. // will likely not be specified. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for a 'FetchStaticIps' response. @@ -440,23 +464,23 @@ message ListConnectionProfilesRequest { } ]; - // Maximum number of connection profiles to return. + // Optional. Maximum number of connection profiles to return. // If unspecified, at most 50 connection profiles will be returned. // The maximum value is 1000; values above 1000 will be coerced to 1000. - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Page token received from a previous `ListConnectionProfiles` call. - // Provide this to retrieve the subsequent page. + // Optional. Page token received from a previous `ListConnectionProfiles` + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to `ListConnectionProfiles` // must match the call that provided the page token. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Filter request. - string filter = 4; + // Optional. Filter request. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - // Order by fields for the result. - string order_by = 5; + // Optional. Order by fields for the result. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } // Response message for listing connection profiles. @@ -596,23 +620,23 @@ message ListStreamsRequest { } ]; - // Maximum number of streams to return. + // Optional. Maximum number of streams to return. // If unspecified, at most 50 streams will be returned. The maximum // value is 1000; values above 1000 will be coerced to 1000. - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Page token received from a previous `ListStreams` call. + // Optional. Page token received from a previous `ListStreams` call. // Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to `ListStreams` // must match the call that provided the page token. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Filter request. - string filter = 4; + // Optional. Filter request. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - // Order by fields for the result. - string order_by = 5; + // Optional. Order by fields for the result. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } // Response message for listing streams. @@ -796,6 +820,11 @@ message StartBackfillJobRequest { type: "datastream.googleapis.com/StreamObject" } ]; + + // Optional. Optional event filter. If not set, or empty, the backfill will be + // performed on the entire object. This is currently used for partial backfill + // and only supported for SQL sources. + EventFilter event_filter = 2 [(google.api.field_behavior) = OPTIONAL]; } // Response for manually initiating a backfill job for a specific stream object. @@ -833,17 +862,17 @@ message ListStreamObjectsRequest { } ]; - // Maximum number of objects to return. Default is 50. + // Optional. Maximum number of objects to return. Default is 50. // The maximum value is 1000; values above 1000 will be coerced to 1000. - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Page token received from a previous `ListStreamObjectsRequest` call. - // Provide this to retrieve the subsequent page. + // Optional. Page token received from a previous `ListStreamObjectsRequest` + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to // `ListStreamObjectsRequest` must match the call that provided the page // token. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response containing the objects for a stream. @@ -948,19 +977,19 @@ message ListPrivateConnectionsRequest { // 1000. int32 page_size = 2; - // Page token received from a previous `ListPrivateConnections` call. - // Provide this to retrieve the subsequent page. + // Optional. Page token received from a previous `ListPrivateConnections` + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to // `ListPrivateConnections` must match the call that provided the page // token. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Filter request. - string filter = 4; + // Optional. Filter request. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - // Order by fields for the result. - string order_by = 5; + // Optional. Order by fields for the result. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } // Response containing a list of private connection configurations. @@ -1059,25 +1088,25 @@ message ListRoutesRequest { } ]; - // Maximum number of Routes to return. The service may return + // Optional. Maximum number of Routes to return. The service may return // fewer than this value. If unspecified, at most 50 Routes // will be returned. The maximum value is 1000; values above 1000 will be // coerced to 1000. - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Page token received from a previous `ListRoutes` call. + // Optional. Page token received from a previous `ListRoutes` call. // Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to // `ListRoutes` must match the call that provided the page // token. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Filter request. - string filter = 4; + // Optional. Filter request. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - // Order by fields for the result. - string order_by = 5; + // Optional. Order by fields for the result. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } // Route list response. diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto b/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto index f01cbb37b7a3..6b4b5324843f 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.datastream.v1; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; @@ -36,8 +37,12 @@ option (google.api.resource_definition) = { type: "compute.googleapis.com/NetworkAttachment" pattern: "projects/{project}/regions/{region}/networkAttachments/{network_attachment}" }; +option (google.api.resource_definition) = { + type: "spanner.googleapis.com/Database" + pattern: "projects/{project}/instances/{instance}/databases/{database}" +}; -// Oracle database profile. +// Profile for connecting to an Oracle source. message OracleProfile { // Required. Hostname for the Oracle connection. string hostname = 1 [(google.api.field_behavior) = REQUIRED]; @@ -104,7 +109,7 @@ message OracleAsmConfig { [(google.api.field_behavior) = OPTIONAL]; } -// MySQL database profile. +// Profile for connecting to a MySQL source. message MysqlProfile { // Required. Hostname for the MySQL connection. string hostname = 1 [(google.api.field_behavior) = REQUIRED]; @@ -131,7 +136,7 @@ message MysqlProfile { [(google.api.field_behavior) = OPTIONAL]; } -// PostgreSQL database profile. +// Profile for connecting to a PostgreSQL source. message PostgresqlProfile { // Required. Hostname for the PostgreSQL connection. string hostname = 1 [(google.api.field_behavior) = REQUIRED]; @@ -162,7 +167,7 @@ message PostgresqlProfile { PostgresqlSslConfig ssl_config = 7 [(google.api.field_behavior) = OPTIONAL]; } -// SQLServer database profile. +// Profile for connecting to a SQLServer source. message SqlServerProfile { // Required. Hostname for the SQLServer connection. string hostname = 1 [(google.api.field_behavior) = REQUIRED]; @@ -180,6 +185,9 @@ message SqlServerProfile { // Required. Database for the SQLServer connection. string database = 5 [(google.api.field_behavior) = REQUIRED]; + // Optional. SSL configuration for the SQLServer connection. + SqlServerSslConfig ssl_config = 6 [(google.api.field_behavior) = OPTIONAL]; + // Optional. A reference to a Secret Manager resource name storing the // SQLServer connection password. Mutually exclusive with the `password` // field. @@ -187,10 +195,13 @@ message SqlServerProfile { [(google.api.field_behavior) = OPTIONAL]; } -// Salesforce profile +// Profile for connecting to a Salesforce source. message SalesforceProfile { - // Username-password credentials. + // Deprecated: Salesforce is retiring Username-Password authentication. + // Use `Oauth2ClientCredentials` instead. message UserCredentials { + option deprecated = true; + // Required. Username for the Salesforce connection. string username = 1 [(google.api.field_behavior) = REQUIRED]; @@ -236,15 +247,16 @@ message SalesforceProfile { // Credentials for Salesforce connection. oneof credentials { - // User-password authentication. - UserCredentials user_credentials = 2; + // Deprecated: Salesforce is retiring Username-Password authentication. + // Use `oauth2_client_credentials` instead. + UserCredentials user_credentials = 2 [deprecated = true]; // Connected app authentication. Oauth2ClientCredentials oauth2_client_credentials = 3; } } -// MongoDB profile. +// Profile for connecting to a MongoDB source. message MongodbProfile { // Required. List of host addresses for a MongoDB cluster. // For SRV connection format, this list must contain exactly one DNS host @@ -283,6 +295,20 @@ message MongodbProfile { // Standard connection format. StandardConnectionFormat standard_connection_format = 102; } + + // Optional. Specifies additional options for the MongoDB connection. + // + // The options should be sent as key-value pairs, for example: + // `additional_options = + // {"serverSelectionTimeoutMS": "10000", "directConnection": "true"}`. + // + // Keys are case-sensitive and should match the official MongoDB connection + // string options: + // https://www.mongodb.com/docs/manual/reference/connection-string-options/ + // + // The server will not modify the values provided by the user. + map additional_options = 7 + [(google.api.field_behavior) = OPTIONAL]; } // A HostAddress represents a transport end point, which is the combination @@ -295,26 +321,141 @@ message HostAddress { int32 port = 2 [(google.api.field_behavior) = OPTIONAL]; } +// Profile for connecting to a Spanner source. +message SpannerProfile { + // Required. Immutable. Cloud Spanner database resource. + // This field is immutable. + // Must be in the format: + // projects/{project}/instances/{instance}/databases/{database_id}. + string database = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "spanner.googleapis.com/Database" + } + ]; + + // Optional. The Spanner endpoint to connect to. Defaults to the global + // endpoint (https://spanner.googleapis.com). Must be in the format: + // https://spanner.{region}.rep.googleapis.com. + string host = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// OAuth Client Credentials. +message OauthClientCredentials { + // Required. Client ID for OAuth Client Credentials. + string client_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Client secret for OAuth Client Credentials. + Secret client_secret = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// OAuth Refresh Token Credentials. +message OauthRefreshTokenCredentials { + // Required. Specifies the OAuth Client Credentials. + OauthClientCredentials oauth_client_credentials = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Specifies the OAuth Refresh Token. + Secret refresh_token = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// User-password credentials. +message UserPasswordCredentials { + // Required. Username for the connection. + string username = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Password for the connection. + Secret password = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Profile for connecting to a Salesforce Marketing Cloud source. +message SalesforceMarketingCloudProfile { + // Required. Subdomain for the Salesforce Marketing Cloud connection. + // Example: if your specific endpoint is + // `https://{your-specific-subdomain}.rest.marketingcloudapis.com/`, + // the subdomain is `{your-specific-subdomain}`. + // Must be 1-63 characters, start and end with an alphanumeric character, + // and contain only lowercase letters, numbers, and hyphens (-). + string subdomain = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Input only. Credentials for authenticating with the Salesforce + // Marketing Cloud API. + OauthClientCredentials oauth_client_credentials = 3 [ + (google.api.field_behavior) = INPUT_ONLY, + (google.api.field_behavior) = REQUIRED + ]; +} + +// Profile for connecting to a Dataverse source. +message DataverseProfile { + // Required. Tenant id of the Microsoft Dataverse instance. + string tenant_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Environment URL of the Microsoft Dataverse instance. + // Example: `.crm.dynamics.com` + string environment_url = 5 [(google.api.field_behavior) = REQUIRED]; + + // Required. Credentials for authenticating with the Dataverse API. + OauthClientCredentials oauth_client_credentials = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// Profile for connecting to a ServiceNow source. +message ServiceNowProfile { + // Required. The instance of the ServiceNow account. This is the `` + // part of the URL `https://.service-now.com`. + string instance = 1 [(google.api.field_behavior) = REQUIRED]; + + // Authentication credentials. + oneof credentials { + // User-password authentication. + UserPasswordCredentials user_password_credentials = 2; + + // Credentials for authenticating with the ServiceNow API. + OauthClientCredentials oauth_client_credentials = 3; + } +} + +// Profile for connecting to a Workday source. +message WorkdayProfile { + // Required. Host for the Workday connection. Must be a valid hostname (e.g., + // `wd3-impl-services1.workday.com`). + string host = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Tenant for the Workday connection (e.g., `google12`). + string tenant = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Credentials for authenticating with the Workday API. + // OAuth Refresh Token credentials for authenticating with the Workday API. + OauthRefreshTokenCredentials oauth_refresh_token_credentials = 3 + [(google.api.field_behavior) = REQUIRED]; +} + // Srv connection format. message SrvConnectionFormat {} // Standard connection format. message StandardConnectionFormat { - // Optional. Specifies whether the client connects directly to the host[:port] - // in the connection URI. - bool direct_connection = 1 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Deprecated: Use the `additional_options` map to specify the + // `directConnection` parameter instead. + // For example: `additional_options = {"directConnection": "true"}`. + // Specifies whether the client connects directly to the host[:port] in the + // connection URI. + bool direct_connection = 1 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; } -// Cloud Storage bucket profile. +// Profile for connecting to a Cloud Storage destination. message GcsProfile { // Required. The Cloud Storage bucket name. string bucket = 1 [(google.api.field_behavior) = REQUIRED]; - // The root path inside the Cloud Storage bucket. - string root_path = 2; + // Optional. The root path inside the Cloud Storage bucket. + string root_path = 2 [(google.api.field_behavior) = OPTIONAL]; } -// BigQuery warehouse profile. +// Profile for connecting to a BigQuery destination. message BigQueryProfile {} // Static IP address connectivity. Used when the source database is configured @@ -333,6 +474,7 @@ message ForwardSshTunnelConnectivity { // Port for the SSH tunnel, default value is 22. int32 port = 3; + // SSH authentication method. oneof authentication_method { // Input only. SSH password. string password = 100 [(google.api.field_behavior) = INPUT_ONLY]; @@ -488,6 +630,25 @@ message Route { int32 destination_port = 7; } +// A confidential piece of information where the actual value is either directly +// specified in the message as a raw string or stored in GCP secret manager. +message Secret { + // The actual value of the secret. + oneof value { + // Optional. Input only. The actual raw value of the secret as plain text. + string raw_value = 1 [ + (google.api.field_behavior) = INPUT_ONLY, + (google.api.field_behavior) = OPTIONAL + ]; + + // Optional. A Secret Manager resource name storing the actual value of the + // secret. Supported formats: + // * projects/{project}/locations/{location}/secrets/{secret}/versions/{version} + // * projects/{project}/secrets/{secret}/versions/{version} + string secret_version = 2 [(google.api.field_behavior) = OPTIONAL]; + } +} + // MongoDB SSL configuration information. message MongodbSslConfig { // Optional. Input only. PEM-encoded private key associated with the Client @@ -585,6 +746,60 @@ message OracleSslConfig { [(google.api.field_behavior) = OPTIONAL]; } +// SQL Server SSL configuration information. +message SqlServerSslConfig { + // Message to represent the option where encryption is not enforced. An empty + // message right now to allow future extensibility. + message EncryptionNotEnforced {} + + // Message to represent the option where Datastream will enforce encryption + // without authenticating server identity. Server certificates will be trusted + // by default. + message BasicEncryption {} + + // Message to represent the option where Datastream will enforce encryption + // and authenticate server identity. ca_certificate must be set if user + // selects this option. + message EncryptionAndServerValidation { + // Optional. Input only. PEM-encoded certificate of the CA that signed the + // source database server's certificate. + string ca_certificate = 2 [ + (google.api.field_behavior) = INPUT_ONLY, + (google.api.field_behavior) = OPTIONAL + ]; + + // Optional. The hostname mentioned in the Subject or SAN extension of the + // server certificate. This field is used for bypassing the hostname + // validation while verifying server certificate. This is required for + // scenarios where the host name that datastream connects to is different + // from the certificate's subject. This specifically happens for private + // connectivity. It could also happen when the customer provides + // a public IP in connection profile but the same is not present in the + // server certificate. + optional string server_certificate_hostname = 3 + [(google.api.field_behavior) = OPTIONAL]; + } + + // The encryption settings available for SQL Server connection profiles. + // This captures various options like no TLS encryption from client if server + // doesn't ask for it, only encryption without validation and both encryption + // as well as validation of server certificate. + oneof encryption_setting { + // If set, Datastream will not enforce encryption. If the DB server mandates + // encryption, then connection will be encrypted but server identity will + // not be authenticated. + EncryptionNotEnforced encryption_not_enforced = 1; + + // If set, Datastream will enforce encryption without authenticating server + // identity. Server certificates will be trusted by default. + BasicEncryption basic_encryption = 2; + + // If set, Datastream will enforce encryption and authenticate server + // identity. + EncryptionAndServerValidation encryption_and_server_validation = 3; + } +} + // PostgreSQL SSL configuration information. message PostgresqlSslConfig { // Message represents the option where Datastream will enforce the encryption @@ -694,29 +909,45 @@ message ConnectionProfile { // Connection configuration for the ConnectionProfile. oneof profile { - // Oracle ConnectionProfile configuration. + // Profile for connecting to an Oracle source. OracleProfile oracle_profile = 100; - // Cloud Storage ConnectionProfile configuration. + // Profile for connecting to a Cloud Storage destination. GcsProfile gcs_profile = 101; - // MySQL ConnectionProfile configuration. + // Profile for connecting to a MySQL source. MysqlProfile mysql_profile = 102; - // BigQuery Connection Profile configuration. + // Profile for connecting to a BigQuery destination. BigQueryProfile bigquery_profile = 103; - // PostgreSQL Connection Profile configuration. + // Profile for connecting to a PostgreSQL source. PostgresqlProfile postgresql_profile = 104; - // SQLServer Connection Profile configuration. + // Profile for connecting to a SQLServer source. SqlServerProfile sql_server_profile = 105; - // Salesforce Connection Profile configuration. + // Profile for connecting to a Salesforce source. SalesforceProfile salesforce_profile = 107; - // MongoDB Connection Profile configuration. + // Profile for connecting to a MongoDB source. MongodbProfile mongodb_profile = 108; + + // Profile for connecting to a Spanner source. + SpannerProfile spanner_profile = 109; + + // Profile for connecting to a Dataverse source. + DataverseProfile dataverse_profile = 114; + + // Profile for connecting to a Salesforce Marketing Cloud source. + SalesforceMarketingCloudProfile salesforce_marketing_cloud_profile = 119; + + // Profile for connecting to a ServiceNow source. + ServiceNowProfile service_now_profile = 120; + + // Optional. Profile for connecting to a Workday source. + WorkdayProfile workday_profile = 121 + [(google.api.field_behavior) = OPTIONAL]; } // Connectivity options used to establish a connection to the profile. @@ -734,7 +965,7 @@ message ConnectionProfile { // Oracle Column. message OracleColumn { - // Column name. + // The column name. string column = 1; // The Oracle data type. @@ -764,7 +995,7 @@ message OracleColumn { // Oracle table. message OracleTable { - // Table name. + // The table name. string table = 1; // Oracle columns in the schema. @@ -775,7 +1006,7 @@ message OracleTable { // Oracle schema. message OracleSchema { - // Schema name. + // The schema name. string schema = 1; // Tables in the schema. @@ -788,7 +1019,7 @@ message OracleRdbms { repeated OracleSchema oracle_schemas = 1; } -// Oracle data source configuration +// Configuration for syncing data from an Oracle source. message OracleSourceConfig { // Configuration to drop large object values. message DropLargeObjects {} @@ -824,10 +1055,10 @@ message OracleSourceConfig { } } - // Oracle objects to include in the stream. + // The Oracle objects to include in the stream. OracleRdbms include_objects = 1; - // Oracle objects to exclude from the stream. + // The Oracle objects to exclude from the stream. OracleRdbms exclude_objects = 2; // Maximum number of concurrent CDC tasks. The number should be non-negative. @@ -859,7 +1090,7 @@ message OracleSourceConfig { // PostgreSQL Column. message PostgresqlColumn { - // Column name. + // The column name. string column = 1; // The PostgreSQL data type. @@ -886,7 +1117,7 @@ message PostgresqlColumn { // PostgreSQL table. message PostgresqlTable { - // Table name. + // The table name. string table = 1; // PostgreSQL columns in the schema. @@ -897,7 +1128,7 @@ message PostgresqlTable { // PostgreSQL schema. message PostgresqlSchema { - // Schema name. + // The schema name. string schema = 1; // Tables in the schema. @@ -910,12 +1141,12 @@ message PostgresqlRdbms { repeated PostgresqlSchema postgresql_schemas = 1; } -// PostgreSQL data source configuration +// Configuration for syncing data from a PostgreSQL source. message PostgresqlSourceConfig { - // PostgreSQL objects to include in the stream. + // The PostgreSQL objects to include in the stream. PostgresqlRdbms include_objects = 1; - // PostgreSQL objects to exclude from the stream. + // The PostgreSQL objects to exclude from the stream. PostgresqlRdbms exclude_objects = 2; // Required. Immutable. The name of the logical replication slot that's @@ -937,7 +1168,7 @@ message PostgresqlSourceConfig { // SQLServer Column. message SqlServerColumn { - // Column name. + // The column name. string column = 1; // The SQLServer data type. @@ -964,7 +1195,7 @@ message SqlServerColumn { // SQLServer table. message SqlServerTable { - // Table name. + // The table name. string table = 1; // SQLServer columns in the schema. @@ -975,7 +1206,7 @@ message SqlServerTable { // SQLServer schema. message SqlServerSchema { - // Schema name. + // The schema name. string schema = 1; // Tables in the schema. @@ -988,12 +1219,12 @@ message SqlServerRdbms { repeated SqlServerSchema schemas = 1; } -// SQLServer data source configuration +// Configuration for syncing data from a SQLServer source. message SqlServerSourceConfig { - // SQLServer objects to include in the stream. + // The SQLServer objects to include in the stream. SqlServerRdbms include_objects = 1; - // SQLServer objects to exclude from the stream. + // The SQLServer objects to exclude from the stream. SqlServerRdbms exclude_objects = 2; // Max concurrent CDC tasks. @@ -1016,11 +1247,31 @@ message SqlServerSourceConfig { message SqlServerTransactionLogs {} // Configuration to use Change Tables CDC read method. -message SqlServerChangeTables {} +message SqlServerChangeTables { + // DDL configuration for change tables. + message SqlServerDdlConfig { + // Optional. If set to true, Datastream will automatically create a new + // capture instance when DDL is detected on a table.The customer will be + // responsible for deleting it so that the next set of DDLs can be handled. + // The default is false and it means that DDL's will not be handled . + bool auto_create_new_capture_instance_on_ddl = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, Datastream will automatically delete the old + // capture instance after creating a new one to support a DDL change. The + // default is false and means that the customer has to delete the old + // capture instance manually. + bool auto_delete_old_capture_instance = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. DDL configuration for change tables. + SqlServerDdlConfig ddl_config = 1 [(google.api.field_behavior) = OPTIONAL]; +} // MySQL Column. message MysqlColumn { - // Column name. + // The column name. string column = 1; // The MySQL data type. Full data types list can be found here: @@ -1051,7 +1302,7 @@ message MysqlColumn { // MySQL table. message MysqlTable { - // Table name. + // The table name. string table = 1; // MySQL columns in the database. @@ -1062,7 +1313,7 @@ message MysqlTable { // MySQL database. message MysqlDatabase { - // Database name. + // The database name. string database = 1; // Tables in the database. @@ -1075,7 +1326,7 @@ message MysqlRdbms { repeated MysqlDatabase mysql_databases = 1; } -// MySQL source configuration +// Configuration for syncing data from a MySQL source. message MysqlSourceConfig { // Use Binary log position based replication. message BinaryLogPosition {} @@ -1083,10 +1334,10 @@ message MysqlSourceConfig { // Use GTID based replication. message Gtid {} - // MySQL objects to retrieve from the source. + // The MySQL objects to retrieve from the source. MysqlRdbms include_objects = 1; - // MySQL objects to exclude from the stream. + // The MySQL objects to exclude from the stream. MysqlRdbms exclude_objects = 2; // Maximum number of concurrent CDC tasks. The number should be non negative. @@ -1108,17 +1359,17 @@ message MysqlSourceConfig { } } -// Salesforce source configuration +// Configuration for syncing data from a Salesforce source. message SalesforceSourceConfig { - // Salesforce objects to retrieve from the source. + // The Salesforce objects to retrieve from the source. SalesforceOrg include_objects = 1; - // Salesforce objects to exclude from the stream. + // The Salesforce objects to exclude from the stream. SalesforceOrg exclude_objects = 2; // Required. Salesforce objects polling interval. The interval at which new - // changes will be polled for each object. The duration must be between 5 - // minutes and 24 hours. + // changes will be polled for each object. The duration must be from `5 + // minutes` to `24 hours`, inclusive. google.protobuf.Duration polling_interval = 3 [(google.api.field_behavior) = REQUIRED]; } @@ -1131,7 +1382,7 @@ message SalesforceOrg { // Salesforce object. message SalesforceObject { - // Object name. + // The object name. string object_name = 1; // Salesforce fields. @@ -1143,7 +1394,7 @@ message SalesforceObject { // Salesforce field. message SalesforceField { - // Field name. + // The field name. string name = 1; // The data type. @@ -1153,12 +1404,12 @@ message SalesforceField { bool nillable = 3; } -// MongoDB source configuration. +// Configuration for syncing data from a MongoDB source. message MongodbSourceConfig { - // MongoDB collections to include in the stream. + // The MongoDB collections to include in the stream. MongodbCluster include_objects = 1; - // MongoDB collections to exclude from the stream. + // The MongoDB collections to exclude from the stream. MongodbCluster exclude_objects = 2; // Optional. Maximum number of concurrent backfill tasks. The number should be @@ -1166,6 +1417,21 @@ message MongodbSourceConfig { // system's default value is used int32 max_concurrent_backfill_tasks = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. MongoDB JSON mode to use for the stream. + MongodbJsonMode json_mode = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// MongoDB JSON mode. +enum MongodbJsonMode { + // Unspecified JSON mode. + MONGODB_JSON_MODE_UNSPECIFIED = 0; + + // Strict JSON mode. + STRICT = 1; + + // Canonical JSON mode. + CANONICAL = 2; } // MongoDB Cluster structure. @@ -1176,7 +1442,7 @@ message MongodbCluster { // MongoDB Database. message MongodbDatabase { - // Database name. + // The database name. string database = 1; // Collections in the database. @@ -1185,7 +1451,7 @@ message MongodbDatabase { // MongoDB Collection. message MongodbCollection { - // Collection name. + // The collection name. string collection = 1; // Fields in the collection. @@ -1194,10 +1460,199 @@ message MongodbCollection { // MongoDB Field. message MongodbField { - // Field name. + // The field name. string field = 1; } +// Configuration for syncing data from a Spanner source. +message SpannerSourceConfig { + // The RPC priority to use for the stream. + enum SpannerRpcPriority { + // Unspecified RPC priority. + SPANNER_RPC_PRIORITY_UNSPECIFIED = 0; + + // Low RPC priority. + LOW = 1; + + // Medium RPC priority. + MEDIUM = 2; + + // High RPC priority. + HIGH = 3; + } + + // Required. Immutable. The change stream name to use for the stream. + string change_stream_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. The RPC priority to use for the stream. + SpannerRpcPriority spanner_rpc_priority = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The FGAC role to use for the stream. + string fgac_role = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Maximum number of concurrent CDC tasks. + int32 max_concurrent_cdc_tasks = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Maximum number of concurrent backfill tasks. + int32 max_concurrent_backfill_tasks = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Spanner objects to retrieve from the data source. If some + // objects are both included and excluded, an error will be thrown. + SpannerDatabase include_objects = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Spanner objects to avoid retrieving. If some objects are both + // included and excluded, an error will be thrown. + SpannerDatabase exclude_objects = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether to use Data Boost for Spanner backfills. Defaults to + // false if not set. + bool backfill_data_boost_enabled = 9 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spanner database structure. +message SpannerDatabase { + // Optional. Spanner schemas in the database. + repeated SpannerSchema schemas = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spanner schema. +message SpannerSchema { + // Required. The schema name. + string schema = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Spanner tables in the schema. + repeated SpannerTable tables = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spanner table. +message SpannerTable { + // Required. The table name. + string table = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Spanner columns in the table. + repeated SpannerColumn columns = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spanner column. +message SpannerColumn { + // Required. The column name. + string column = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Spanner data type. + string data_type = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether or not the column is a primary key. + bool is_primary_key = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The ordinal position of the column in the table. + int64 ordinal_position = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Configuration for syncing data from a Dataverse source. +message DataverseSourceConfig { + // Optional. The objects to retrieve from the source. + SourceCatalog include_objects = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The objects to exclude from the stream. + SourceCatalog exclude_objects = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Incremental sync polling interval for all objects. If not set, a + // default value of `5 minutes` is used. The duration must be from `5 minutes` + // to `24 hours`, inclusive. + google.protobuf.Duration polling_interval = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// Configuration for syncing data from a Salesforce Marketing Cloud source. +message SalesforceMarketingCloudSourceConfig { + // Optional. The objects to retrieve from the source. + SourceCatalog include_objects = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The objects to exclude from the stream. + SourceCatalog exclude_objects = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Incremental sync polling interval for all objects. If not set, a + // default value of `5 minutes` is used. The duration must be from `5 minutes` + // to `24 hours`, inclusive. + google.protobuf.Duration polling_interval = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Specifies the polling interval for a full refresh of objects that + // do not support incremental sync. If not set, a default value of 24 hours is + // used. The duration must be between 1 and 24 hours, inclusive. + google.protobuf.Duration full_refresh_polling_interval = 4 + [(google.api.field_behavior) = REQUIRED]; +} + +// Configuration for syncing data from a ServiceNow source. +message ServiceNowSourceConfig { + // Optional. The objects to retrieve from the source. + SourceCatalog include_objects = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The objects to exclude from the stream. + SourceCatalog exclude_objects = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Incremental sync polling interval for all objects. If not set, a + // default value of `5 minutes` is used. The duration must be from `5 minutes` + // to `24 hours`, inclusive. + google.protobuf.Duration polling_interval = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// Configuration for syncing data from a Workday source. +message WorkdaySourceConfig { + // Optional. The objects to retrieve from the source. + SourceCatalog include_objects = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The objects to exclude from the stream. + SourceCatalog exclude_objects = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Incremental sync polling interval for all objects. If not set, a + // default value of `5 minutes` is used. The duration must be from `5 minutes` + // to `24 hours`, inclusive. + google.protobuf.Duration polling_interval = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// Source catalog. +message SourceCatalog { + // Optional. Source objects in the catalog. + repeated SourceObject objects = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Source object. +message SourceObject { + // Required. The object name. + string object_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Source properties. When unspecified as part of include objects, + // includes everything, when unspecified as part of exclude objects, excludes + // nothing. + repeated SourceProperty properties = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Source property. +message SourceProperty { + // Required. The property name. + string property_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Source properties. When specified, it means that the current + // property contains nested properties of its own. When unspecified as part of + // include objects, includes everything, when unspecified as part of exclude + // objects, excludes nothing. + repeated SourceProperty properties = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether or not the property is a primary key. + bool primary_key = 4 [(google.api.field_behavior) = OPTIONAL]; +} + // The configuration of the stream source. message SourceConfig { // Required. Source connection profile resource. @@ -1228,6 +1683,23 @@ message SourceConfig { // MongoDB data source configuration. MongodbSourceConfig mongodb_source_config = 105; + + // Spanner data source configuration. + SpannerSourceConfig spanner_source_config = 106; + + // Dataverse data source configuration. + DataverseSourceConfig dataverse_source_config = 111; + + // Salesforce Marketing Cloud data source configuration. + SalesforceMarketingCloudSourceConfig + salesforce_marketing_cloud_source_config = 116; + + // ServiceNow data source configuration. + ServiceNowSourceConfig service_now_source_config = 117; + + // Optional. Workday data source configuration. + WorkdaySourceConfig workday_source_config = 118 + [(google.api.field_behavior) = OPTIONAL]; } } @@ -1267,6 +1739,83 @@ message JsonFileFormat { JsonCompression compression = 2; } +// BigQuery clustering configuration. +message BigQueryClustering { + // Required. Column names to set as clustering columns. + repeated string columns = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Partitioning granularity for time partitions. +enum PartitioningTimeGranularity { + // Unspecified partitioing interval. + PARTITIONING_TIME_GRANULARITY_UNSPECIFIED = 0; + + // Hourly partitioning. + PARTITIONING_TIME_GRANULARITY_HOUR = 1; + + // Daily partitioning. + PARTITIONING_TIME_GRANULARITY_DAY = 2; + + // Monthly partitioning. + PARTITIONING_TIME_GRANULARITY_MONTH = 3; + + // Yearly partitioning. + PARTITIONING_TIME_GRANULARITY_YEAR = 4; +} + +// Ingestion time partitioning. see +// https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time +message IngestionTimePartition { + // Optional. Partition granularity + PartitioningTimeGranularity partitioning_time_granularity = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Time unit column partitioning. see +// https://cloud.google.com/bigquery/docs/partitioned-tables#date_timestamp_partitioned_tables +message TimeUnitPartition { + // Required. The partitioning column. + string column = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Partition granularity. + PartitioningTimeGranularity partitioning_time_granularity = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Integer range partitioning. see +// https://cloud.google.com/bigquery/docs/partitioned-tables#integer_range +message IntegerRangePartition { + // Required. The partitioning column. + string column = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The starting value for range partitioning (inclusive). + int64 start = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ending value for range partitioning (exclusive). + int64 end = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The interval of each range within the partition. + int64 interval = 4 [(google.api.field_behavior) = REQUIRED]; +} + +// BigQuery partitioning configuration. +message BigQueryPartitioning { + // Partitioning to apply on the table. + oneof partitioning { + // Integer range partitioning. + IntegerRangePartition integer_range_partition = 100; + + // Time unit column partitioning. + TimeUnitPartition time_unit_partition = 101; + + // Ingestion time partitioning. + IngestionTimePartition ingestion_time_partition = 102; + } + + // Optional. If true, queries over the table require a partition filter. + bool require_partition_filter = 103 [(google.api.field_behavior) = OPTIONAL]; +} + // Google Cloud Storage destination configuration message GcsDestinationConfig { // Path inside the Cloud Storage bucket to write data to. @@ -1396,6 +1945,7 @@ message BigQueryDestinationConfig { // Optional. Big Lake Managed Tables (BLMT) configuration. BlmtConfig blmt_config = 1 [(google.api.field_behavior) = OPTIONAL]; + // Destination write mode. oneof write_mode { // The standard mode Merge merge = 301; @@ -1489,12 +2039,50 @@ message Stream { // MongoDB data source objects to avoid backfilling MongodbCluster mongodb_excluded_objects = 6; + + // Spanner data source objects to avoid backfilling. + SpannerDatabase spanner_excluded_objects = 7; + + // Source catalog data source objects to avoid backfilling. This is mainly + // used to represent SaaS applications objects. + SourceCatalog saas_excluded_objects = 9; } } // Backfill strategy to disable automatic backfill for the Stream's objects. message BackfillNoneStrategy {} + // A set of rules to apply to a set of objects. + message RuleSet { + // Object filter to apply the rules to. + message ObjectFilter { + // The filter to apply. + oneof filter_type { + // Specific source object identifier. + SourceObjectIdentifier source_object_identifier = 1; + } + } + + // A customization rule to apply to a set of objects. + message CustomizationRule { + // The rule to apply. + oneof rule { + // BigQuery partitioning rule. + BigQueryPartitioning bigquery_partitioning = 1; + + // BigQuery clustering rule. + BigQueryClustering bigquery_clustering = 2; + } + } + + // Required. List of customization rules to apply. + repeated CustomizationRule customization_rules = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Object filter to apply the customization rules to. + ObjectFilter object_filter = 2 [(google.api.field_behavior) = REQUIRED]; + } + // Output only. Identifier. The stream's name. string name = 1 [ (google.api.field_behavior) = IDENTIFIER, @@ -1555,6 +2143,9 @@ message Stream { // Output only. Reserved for future use. optional bool satisfies_pzi = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Rule sets to apply to the stream. + repeated RuleSet rule_sets = 19 [(google.api.field_behavior) = OPTIONAL]; } // A specific stream object (e.g a specific DB table). @@ -1589,6 +2180,12 @@ message StreamObject { // The object identifier in the data source. SourceObjectIdentifier source_object = 8; + + // Output only. The customization rules for the object. These rules are + // derived from the parent Stream's `rule_sets` and represent the intended + // configuration for the object. + repeated Stream.RuleSet.CustomizationRule customization_rules = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Represents an identifier of an object in the data source. @@ -1644,6 +2241,15 @@ message SourceObjectIdentifier { string collection = 2 [(google.api.field_behavior) = REQUIRED]; } + // Spanner data source object identifier. + message SpannerObjectIdentifier { + // Optional. The schema name. + string schema = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The table name. + string table = 2 [(google.api.field_behavior) = REQUIRED]; + } + // The identifier for an object in the data source. oneof source_identifier { // Oracle data source object identifier. @@ -1663,6 +2269,9 @@ message SourceObjectIdentifier { // MongoDB data source object identifier. MongodbObjectIdentifier mongodb_identifier = 6; + + // Spanner data source object identifier. + SpannerObjectIdentifier spanner_identifier = 7; } } @@ -1727,6 +2336,20 @@ message BackfillJob { // Output only. Errors which caused the backfill job to fail. repeated Error errors = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The filter for performing a partial backfill. + EventFilter event_filter = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Represents a filter for included data on a stream object. +message EventFilter { + // A filter type. + oneof filter { + // An SQL-query Where clause selecting which data should be included, not + // including the "WHERE" keyword. e.g., `t.key1 = 'value1' AND t.key2 = + // 'value2'` + string sql_where_clause = 1; + } } // Represent a user-facing Error. @@ -1827,6 +2450,7 @@ message CdcStrategy { // CDC strategy to start replicating from a specific position in the source. message SpecificStartPosition { + // Change Data Capture (CDC) read position. oneof position { // MySQL specific log position to start replicating from. MysqlLogPosition mysql_log_position = 101; @@ -1839,6 +2463,13 @@ message CdcStrategy { // MySQL GTID set to start replicating from. MysqlGtidPosition mysql_gtid_position = 104; + + // MongoDB change stream position to start replicating from. + MongodbChangeStreamPosition mongodb_change_stream_position = 105; + + // Optional. Spanner change stream position to start replicating from. + SpannerChangeStreamPosition spanner_change_stream_position = 106 + [(google.api.field_behavior) = OPTIONAL]; } } @@ -1887,3 +2518,19 @@ message MysqlGtidPosition { // Required. The gtid set to start replication from. string gtid_set = 1 [(google.api.field_behavior) = REQUIRED]; } + +// MongoDB change stream position +message MongodbChangeStreamPosition { + // Required. The timestamp to start change stream from. + google.protobuf.Timestamp start_time = 1 + [(google.api.field_behavior) = REQUIRED]; +} + +// Represents a position in a Spanner change stream from which to start +// replicating. +message SpannerChangeStreamPosition { + // Required. The timestamp to start change stream queries from. + // The timestamp must be a positive value. + google.protobuf.Timestamp start_time = 1 + [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/AsyncStartBackfillJob.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/AsyncStartBackfillJob.java index 18361c5de25f..e5c2dfcd1ecc 100644 --- a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/AsyncStartBackfillJob.java +++ b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/AsyncStartBackfillJob.java @@ -19,6 +19,7 @@ // [START datastream_v1_generated_Datastream_StartBackfillJob_async] import com.google.api.core.ApiFuture; import com.google.cloud.datastream.v1.DatastreamClient; +import com.google.cloud.datastream.v1.EventFilter; import com.google.cloud.datastream.v1.StartBackfillJobRequest; import com.google.cloud.datastream.v1.StartBackfillJobResponse; import com.google.cloud.datastream.v1.StreamObjectName; @@ -40,6 +41,7 @@ public static void asyncStartBackfillJob() throws Exception { StartBackfillJobRequest.newBuilder() .setObject( StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString()) + .setEventFilter(EventFilter.newBuilder().build()) .build(); ApiFuture future = datastreamClient.startBackfillJobCallable().futureCall(request); diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJob.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJob.java index 495a7eb99de9..fd1e14da69b9 100644 --- a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJob.java +++ b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJob.java @@ -18,6 +18,7 @@ // [START datastream_v1_generated_Datastream_StartBackfillJob_sync] import com.google.cloud.datastream.v1.DatastreamClient; +import com.google.cloud.datastream.v1.EventFilter; import com.google.cloud.datastream.v1.StartBackfillJobRequest; import com.google.cloud.datastream.v1.StartBackfillJobResponse; import com.google.cloud.datastream.v1.StreamObjectName; @@ -39,6 +40,7 @@ public static void syncStartBackfillJob() throws Exception { StartBackfillJobRequest.newBuilder() .setObject( StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString()) + .setEventFilter(EventFilter.newBuilder().build()) .build(); StartBackfillJobResponse response = datastreamClient.startBackfillJob(request); } diff --git a/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeClient.java b/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeClient.java index 3d1766a20d94..a08fb03d7ca8 100644 --- a/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeClient.java +++ b/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeClient.java @@ -45,11 +45,13 @@ * *

    A typical use case is to first use * [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks] - * to find relevant page URIs based on a query, and then use + * to find relevant document chunks based on a query, and then use * [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] * or * [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] - * to fetch the full content of the top results. + * with document resource names (such as + * [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] or + * `documents/{uri_without_scheme}`) to fetch the full content of the top results. * *

    All document content is provided in Markdown format. * diff --git a/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/package-info.java b/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/package-info.java index 3703bc44133c..98f208c71a7f 100644 --- a/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/package-info.java +++ b/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/package-info.java @@ -30,11 +30,13 @@ * *

    A typical use case is to first use * [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks] - * to find relevant page URIs based on a query, and then use + * to find relevant document chunks based on a query, and then use * [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] * or * [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] - * to fetch the full content of the top results. + * with document resource names (such as + * [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] or + * `documents/{uri_without_scheme}`) to fetch the full content of the top results. * *

    All document content is provided in Markdown format. * diff --git a/java-developerknowledge/grpc-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeGrpc.java b/java-developerknowledge/grpc-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeGrpc.java index fcfaf1f1c7fb..34e4c18d7d58 100644 --- a/java-developerknowledge/grpc-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeGrpc.java +++ b/java-developerknowledge/grpc-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeGrpc.java @@ -28,11 +28,14 @@ * Google's developer documentation. * A typical use case is to first use * [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks] - * to find relevant page URIs based on a query, and then use + * to find relevant document chunks based on a query, and then use * [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] * or * [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] - * to fetch the full content of the top results. + * with document resource names (such as + * [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] + * or `documents/{uri_without_scheme}`) to fetch the full content of the top + * results. * All document content is provided in Markdown format. *

    */ @@ -301,11 +304,14 @@ public DeveloperKnowledgeFutureStub newStub( * Google's developer documentation. * A typical use case is to first use * [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks] - * to find relevant page URIs based on a query, and then use + * to find relevant document chunks based on a query, and then use * [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] * or * [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] - * to fetch the full content of the top results. + * with document resource names (such as + * [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] + * or `documents/{uri_without_scheme}`) to fetch the full content of the top + * results. * All document content is provided in Markdown format. *
    */ @@ -393,11 +399,14 @@ default void answerQuery( * Google's developer documentation. * A typical use case is to first use * [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks] - * to find relevant page URIs based on a query, and then use + * to find relevant document chunks based on a query, and then use * [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] * or * [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] - * to fetch the full content of the top results. + * with document resource names (such as + * [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] + * or `documents/{uri_without_scheme}`) to fetch the full content of the top + * results. * All document content is provided in Markdown format. *
*/ @@ -421,11 +430,14 @@ public final io.grpc.ServerServiceDefinition bindService() { * Google's developer documentation. * A typical use case is to first use * [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks] - * to find relevant page URIs based on a query, and then use + * to find relevant document chunks based on a query, and then use * [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] * or * [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] - * to fetch the full content of the top results. + * with document resource names (such as + * [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] + * or `documents/{uri_without_scheme}`) to fetch the full content of the top + * results. * All document content is provided in Markdown format. * */ @@ -531,11 +543,14 @@ public void answerQuery( * Google's developer documentation. * A typical use case is to first use * [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks] - * to find relevant page URIs based on a query, and then use + * to find relevant document chunks based on a query, and then use * [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] * or * [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] - * to fetch the full content of the top results. + * with document resource names (such as + * [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] + * or `documents/{uri_without_scheme}`) to fetch the full content of the top + * results. * All document content is provided in Markdown format. * */ @@ -631,11 +646,14 @@ public com.google.developers.knowledge.v1.AnswerQueryResponse answerQuery( * Google's developer documentation. * A typical use case is to first use * [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks] - * to find relevant page URIs based on a query, and then use + * to find relevant document chunks based on a query, and then use * [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] * or * [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] - * to fetch the full content of the top results. + * with document resource names (such as + * [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] + * or `documents/{uri_without_scheme}`) to fetch the full content of the top + * results. * All document content is provided in Markdown format. * */ @@ -727,11 +745,14 @@ public com.google.developers.knowledge.v1.AnswerQueryResponse answerQuery( * Google's developer documentation. * A typical use case is to first use * [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks] - * to find relevant page URIs based on a query, and then use + * to find relevant document chunks based on a query, and then use * [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] * or * [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] - * to fetch the full content of the top results. + * with document resource names (such as + * [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] + * or `documents/{uri_without_scheme}`) to fetch the full content of the top + * results. * All document content is provided in Markdown format. * */ diff --git a/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/Document.java b/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/Document.java index dae2fa898952..b3efb8d88be0 100644 --- a/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/Document.java +++ b/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/Document.java @@ -146,7 +146,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Output only. Provides the URI of the content, such as
-   * `docs.cloud.google.com/storage/docs/creating-buckets`.
+   * `https://docs.cloud.google.com/storage/docs/creating-buckets`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -171,7 +171,7 @@ public java.lang.String getUri() { * *
    * Output only. Provides the URI of the content, such as
-   * `docs.cloud.google.com/storage/docs/creating-buckets`.
+   * `https://docs.cloud.google.com/storage/docs/creating-buckets`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1173,7 +1173,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Output only. Provides the URI of the content, such as
-     * `docs.cloud.google.com/storage/docs/creating-buckets`.
+     * `https://docs.cloud.google.com/storage/docs/creating-buckets`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1197,7 +1197,7 @@ public java.lang.String getUri() { * *
      * Output only. Provides the URI of the content, such as
-     * `docs.cloud.google.com/storage/docs/creating-buckets`.
+     * `https://docs.cloud.google.com/storage/docs/creating-buckets`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1221,7 +1221,7 @@ public com.google.protobuf.ByteString getUriBytes() { * *
      * Output only. Provides the URI of the content, such as
-     * `docs.cloud.google.com/storage/docs/creating-buckets`.
+     * `https://docs.cloud.google.com/storage/docs/creating-buckets`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1244,7 +1244,7 @@ public Builder setUri(java.lang.String value) { * *
      * Output only. Provides the URI of the content, such as
-     * `docs.cloud.google.com/storage/docs/creating-buckets`.
+     * `https://docs.cloud.google.com/storage/docs/creating-buckets`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1263,7 +1263,7 @@ public Builder clearUri() { * *
      * Output only. Provides the URI of the content, such as
-     * `docs.cloud.google.com/storage/docs/creating-buckets`.
+     * `https://docs.cloud.google.com/storage/docs/creating-buckets`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/DocumentOrBuilder.java b/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/DocumentOrBuilder.java index 8bc5b1b7b72b..bf0054b20961 100644 --- a/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/DocumentOrBuilder.java +++ b/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/DocumentOrBuilder.java @@ -61,7 +61,7 @@ public interface DocumentOrBuilder * *
    * Output only. Provides the URI of the content, such as
-   * `docs.cloud.google.com/storage/docs/creating-buckets`.
+   * `https://docs.cloud.google.com/storage/docs/creating-buckets`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -75,7 +75,7 @@ public interface DocumentOrBuilder * *
    * Output only. Provides the URI of the content, such as
-   * `docs.cloud.google.com/storage/docs/creating-buckets`.
+   * `https://docs.cloud.google.com/storage/docs/creating-buckets`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/proto/google/developers/knowledge/v1/developerknowledge.proto b/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/proto/google/developers/knowledge/v1/developerknowledge.proto index 9aba8c799352..fd315eef89d0 100644 --- a/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/proto/google/developers/knowledge/v1/developerknowledge.proto +++ b/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/proto/google/developers/knowledge/v1/developerknowledge.proto @@ -39,11 +39,14 @@ option ruby_package = "Google::Developers::DeveloperKnowledge::V1"; // // A typical use case is to first use // [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks] -// to find relevant page URIs based on a query, and then use +// to find relevant document chunks based on a query, and then use // [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] // or // [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] -// to fetch the full content of the top results. +// with document resource names (such as +// [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] +// or `documents/{uri_without_scheme}`) to fetch the full content of the top +// results. // // All document content is provided in Markdown format. service DeveloperKnowledge { @@ -147,7 +150,7 @@ message Document { string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. Provides the URI of the content, such as - // `docs.cloud.google.com/storage/docs/creating-buckets`. + // `https://docs.cloud.google.com/storage/docs/creating-buckets`. string uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Contains the full content of the document in Markdown format. diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java index 1d23a5aa9703..0954b18ed613 100644 --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java @@ -316,6 +316,45 @@ * * * + *

StartSplit + *

Splits a clone volume from its source volume. This operation will only work for volumes which have clone_details set(clones). For volumes that are not clones, this operation will return an error. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • startSplitAsync(StartSplitRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • startSplitAsync(VolumeName name) + *

  • startSplitAsync(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.

+ *
    + *
  • startSplitOperationCallable() + *

  • startSplitCallable() + *

+ * + * + * + *

GetSplitStatus + *

Retrieves the current state, progress, and details of a split operation for a volume. This method is relevant when the volume is a clone. For volumes that are not clones, this method will return an error. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getSplitStatus(GetSplitStatusRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getSplitStatus(VolumeName name) + *

  • getSplitStatus(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.

+ *
    + *
  • getSplitStatusCallable() + *

+ * + * + * *

EstablishVolumePeering *

Establish volume peering. This is used to establish cluster and svm peerings between the GCNV and OnPrem clusters. * @@ -1333,7 +1372,7 @@ * * *

ExecuteOntapPost - *

`ExecuteOntapPost` dispatches the ONTAP `POST` request to the `StoragePool` cluster. + *

`ExecuteOntapPost` sends the ONTAP `POST` request to the `StoragePool` cluster. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    @@ -1347,7 +1386,7 @@ * * *

    ExecuteOntapGet - *

    `ExecuteOntapGet` dispatches the ONTAP `GET` request to the `StoragePool` cluster. + *

    `ExecuteOntapGet` sends the ONTAP `GET` request to the `StoragePool` cluster. * *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      @@ -1361,7 +1400,7 @@ * * *

      ExecuteOntapDelete - *

      `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the `StoragePool` cluster. + *

      `ExecuteOntapDelete` sends the ONTAP `DELETE` request to the `StoragePool` cluster. * *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      *
        @@ -1375,7 +1414,7 @@ * * *

        ExecuteOntapPatch - *

        `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the `StoragePool` cluster. + *

        `ExecuteOntapPatch` sends the ONTAP `PATCH` request to the `StoragePool` cluster. * *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        *
          @@ -1388,6 +1427,66 @@ * * * + *

          RestoreVolume + *

          Restores a backup to an ONTAP-mode volume. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • restoreVolumeAsync(RestoreVolumeRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • restoreVolumeAsync(StoragePoolName name, BackupSource backupSource, OntapVolumeTarget ontapVolumeTarget) + *

          • restoreVolumeAsync(String name, BackupSource backupSource, OntapVolumeTarget ontapVolumeTarget) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • restoreVolumeOperationCallable() + *

          • restoreVolumeCallable() + *

          + * + * + * + *

          ListBackupConfigs + *

          Lists backup configurations for all volumes in an ONTAP-mode Storage Pool. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • listBackupConfigs(ListBackupConfigsRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • listBackupConfigs(StoragePoolName parent) + *

          • listBackupConfigs(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.

          + *
            + *
          • listBackupConfigsPagedCallable() + *

          • listBackupConfigsCallable() + *

          + * + * + * + *

          UpdateBackupConfig + *

          Updates the backup configuration for an ONTAP-mode volume. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • updateBackupConfigAsync(UpdateBackupConfigRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • updateBackupConfigAsync(StoragePoolName name, String volumeUuid, BackupConfig backupConfig, FieldMask updateMask) + *

          • updateBackupConfigAsync(String name, String volumeUuid, BackupConfig backupConfig, 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.

          + *
            + *
          • updateBackupConfigOperationCallable() + *

          • updateBackupConfigCallable() + *

          + * + * + * *

          ListLocations *

          Lists information about the supported locations for this service. *

          This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. @@ -3233,6 +3332,275 @@ public final UnaryCallable revertVolumeCallable( return stub.revertVolumeCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Splits a clone volume from its source volume. This operation will only work for volumes which + * have clone_details set(clones). For volumes that are not clones, this operation will return an + * error. + * + *

          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 (NetAppClient netAppClient = NetAppClient.create()) {
          +   *   VolumeName name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]");
          +   *   Volume response = netAppClient.startSplitAsync(name).get();
          +   * }
          +   * }
          + * + * @param name Required. The full name of the clone volume to be split from its source. Format: + * projects/{project_number}/locations/{location}/volumes/{volume_id} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture startSplitAsync( + @Nullable VolumeName name) { + StartSplitRequest request = + StartSplitRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return startSplitAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Splits a clone volume from its source volume. This operation will only work for volumes which + * have clone_details set(clones). For volumes that are not clones, this operation will return an + * error. + * + *

          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 (NetAppClient netAppClient = NetAppClient.create()) {
          +   *   String name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString();
          +   *   Volume response = netAppClient.startSplitAsync(name).get();
          +   * }
          +   * }
          + * + * @param name Required. The full name of the clone volume to be split from its source. Format: + * projects/{project_number}/locations/{location}/volumes/{volume_id} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture startSplitAsync(String name) { + StartSplitRequest request = StartSplitRequest.newBuilder().setName(name).build(); + return startSplitAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Splits a clone volume from its source volume. This operation will only work for volumes which + * have clone_details set(clones). For volumes that are not clones, this operation will return an + * error. + * + *

          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 (NetAppClient netAppClient = NetAppClient.create()) {
          +   *   StartSplitRequest request =
          +   *       StartSplitRequest.newBuilder()
          +   *           .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString())
          +   *           .build();
          +   *   Volume response = netAppClient.startSplitAsync(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 startSplitAsync( + StartSplitRequest request) { + return startSplitOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Splits a clone volume from its source volume. This operation will only work for volumes which + * have clone_details set(clones). For volumes that are not clones, this operation will return an + * error. + * + *

          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 (NetAppClient netAppClient = NetAppClient.create()) {
          +   *   StartSplitRequest request =
          +   *       StartSplitRequest.newBuilder()
          +   *           .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString())
          +   *           .build();
          +   *   OperationFuture future =
          +   *       netAppClient.startSplitOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   Volume response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + startSplitOperationCallable() { + return stub.startSplitOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Splits a clone volume from its source volume. This operation will only work for volumes which + * have clone_details set(clones). For volumes that are not clones, this operation will return an + * error. + * + *

          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 (NetAppClient netAppClient = NetAppClient.create()) {
          +   *   StartSplitRequest request =
          +   *       StartSplitRequest.newBuilder()
          +   *           .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString())
          +   *           .build();
          +   *   ApiFuture future = netAppClient.startSplitCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable startSplitCallable() { + return stub.startSplitCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the current state, progress, and details of a split operation for a volume. This + * method is relevant when the volume is a clone. For volumes that are not clones, this method + * will return an error. + * + *

          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 (NetAppClient netAppClient = NetAppClient.create()) {
          +   *   VolumeName name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]");
          +   *   SplitStatus response = netAppClient.getSplitStatus(name);
          +   * }
          +   * }
          + * + * @param name Required. The full name of the volume. Format: + * projects/{project_number}/locations/{location}/volumes/{volume_id} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SplitStatus getSplitStatus(@Nullable VolumeName name) { + GetSplitStatusRequest request = + GetSplitStatusRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getSplitStatus(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the current state, progress, and details of a split operation for a volume. This + * method is relevant when the volume is a clone. For volumes that are not clones, this method + * will return an error. + * + *

          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 (NetAppClient netAppClient = NetAppClient.create()) {
          +   *   String name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString();
          +   *   SplitStatus response = netAppClient.getSplitStatus(name);
          +   * }
          +   * }
          + * + * @param name Required. The full name of the volume. Format: + * projects/{project_number}/locations/{location}/volumes/{volume_id} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SplitStatus getSplitStatus(String name) { + GetSplitStatusRequest request = GetSplitStatusRequest.newBuilder().setName(name).build(); + return getSplitStatus(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the current state, progress, and details of a split operation for a volume. This + * method is relevant when the volume is a clone. For volumes that are not clones, this method + * will return an error. + * + *

          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 (NetAppClient netAppClient = NetAppClient.create()) {
          +   *   GetSplitStatusRequest request =
          +   *       GetSplitStatusRequest.newBuilder()
          +   *           .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString())
          +   *           .build();
          +   *   SplitStatus response = netAppClient.getSplitStatus(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 SplitStatus getSplitStatus(GetSplitStatusRequest request) { + return getSplitStatusCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the current state, progress, and details of a split operation for a volume. This + * method is relevant when the volume is a clone. For volumes that are not clones, this method + * will return an error. + * + *

          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 (NetAppClient netAppClient = NetAppClient.create()) {
          +   *   GetSplitStatusRequest request =
          +   *       GetSplitStatusRequest.newBuilder()
          +   *           .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString())
          +   *           .build();
          +   *   ApiFuture future = netAppClient.getSplitStatusCallable().futureCall(request);
          +   *   // Do something.
          +   *   SplitStatus response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable getSplitStatusCallable() { + return stub.getSplitStatusCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Establish volume peering. This is used to establish cluster and svm peerings between the GCNV @@ -10558,7 +10926,7 @@ public final UnaryCallable deleteHostGroupCal // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * `ExecuteOntapPost` dispatches the ONTAP `POST` request to the `StoragePool` cluster. + * `ExecuteOntapPost` sends the ONTAP `POST` request to the `StoragePool` cluster. * *

          Sample code: * @@ -10587,7 +10955,7 @@ public final ExecuteOntapPostResponse executeOntapPost(ExecuteOntapPostRequest r // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * `ExecuteOntapPost` dispatches the ONTAP `POST` request to the `StoragePool` cluster. + * `ExecuteOntapPost` sends the ONTAP `POST` request to the `StoragePool` cluster. * *

          Sample code: * @@ -10617,7 +10985,7 @@ public final ExecuteOntapPostResponse executeOntapPost(ExecuteOntapPostRequest r // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * `ExecuteOntapGet` dispatches the ONTAP `GET` request to the `StoragePool` cluster. + * `ExecuteOntapGet` sends the ONTAP `GET` request to the `StoragePool` cluster. * *

          Sample code: * @@ -10643,7 +11011,7 @@ public final ExecuteOntapGetResponse executeOntapGet(ExecuteOntapGetRequest requ // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * `ExecuteOntapGet` dispatches the ONTAP `GET` request to the `StoragePool` cluster. + * `ExecuteOntapGet` sends the ONTAP `GET` request to the `StoragePool` cluster. * *

          Sample code: * @@ -10670,7 +11038,7 @@ public final ExecuteOntapGetResponse executeOntapGet(ExecuteOntapGetRequest requ // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the `StoragePool` cluster. + * `ExecuteOntapDelete` sends the ONTAP `DELETE` request to the `StoragePool` cluster. * *

          Sample code: * @@ -10696,7 +11064,7 @@ public final ExecuteOntapDeleteResponse executeOntapDelete(ExecuteOntapDeleteReq // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the `StoragePool` cluster. + * `ExecuteOntapDelete` sends the ONTAP `DELETE` request to the `StoragePool` cluster. * *

          Sample code: * @@ -10723,7 +11091,7 @@ public final ExecuteOntapDeleteResponse executeOntapDelete(ExecuteOntapDeleteReq // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the `StoragePool` cluster. + * `ExecuteOntapPatch` sends the ONTAP `PATCH` request to the `StoragePool` cluster. * *

          Sample code: * @@ -10752,7 +11120,7 @@ public final ExecuteOntapPatchResponse executeOntapPatch(ExecuteOntapPatchReques // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the `StoragePool` cluster. + * `ExecuteOntapPatch` sends the ONTAP `PATCH` request to the `StoragePool` cluster. * *

          Sample code: * @@ -10782,10 +11150,533 @@ public final ExecuteOntapPatchResponse executeOntapPatch(ExecuteOntapPatchReques // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Restores a backup to an ONTAP-mode volume. * - *

          This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + *

          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 (NetAppClient netAppClient = NetAppClient.create()) {
          +   *   StoragePoolName name = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]");
          +   *   BackupSource backupSource = BackupSource.newBuilder().build();
          +   *   OntapVolumeTarget ontapVolumeTarget = OntapVolumeTarget.newBuilder().build();
          +   *   RestoreVolumeResponse response =
          +   *       netAppClient.restoreVolumeAsync(name, backupSource, ontapVolumeTarget).get();
          +   * }
          +   * }
          + * + * @param name Required. The resource name of the ONTAP mode storage pool, in the format of + * `projects/{project}/locations/{location}/storagePools/{storage_pool}` + * @param backupSource The backup source of the restore operation. + * @param ontapVolumeTarget The ONTAP volume target of the restore operation. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture restoreVolumeAsync( + @Nullable StoragePoolName name, + BackupSource backupSource, + OntapVolumeTarget ontapVolumeTarget) { + RestoreVolumeRequest request = + RestoreVolumeRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setBackupSource(backupSource) + .setOntapVolumeTarget(ontapVolumeTarget) + .build(); + return restoreVolumeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a backup to an ONTAP-mode volume. + * + *

          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 (NetAppClient netAppClient = NetAppClient.create()) {
          +   *   String name = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString();
          +   *   BackupSource backupSource = BackupSource.newBuilder().build();
          +   *   OntapVolumeTarget ontapVolumeTarget = OntapVolumeTarget.newBuilder().build();
          +   *   RestoreVolumeResponse response =
          +   *       netAppClient.restoreVolumeAsync(name, backupSource, ontapVolumeTarget).get();
          +   * }
          +   * }
          + * + * @param name Required. The resource name of the ONTAP mode storage pool, in the format of + * `projects/{project}/locations/{location}/storagePools/{storage_pool}` + * @param backupSource The backup source of the restore operation. + * @param ontapVolumeTarget The ONTAP volume target of the restore operation. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture restoreVolumeAsync( + String name, BackupSource backupSource, OntapVolumeTarget ontapVolumeTarget) { + RestoreVolumeRequest request = + RestoreVolumeRequest.newBuilder() + .setName(name) + .setBackupSource(backupSource) + .setOntapVolumeTarget(ontapVolumeTarget) + .build(); + return restoreVolumeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a backup to an ONTAP-mode volume. + * + *

          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 (NetAppClient netAppClient = NetAppClient.create()) {
          +   *   RestoreVolumeRequest request =
          +   *       RestoreVolumeRequest.newBuilder()
          +   *           .setName(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString())
          +   *           .build();
          +   *   RestoreVolumeResponse response = netAppClient.restoreVolumeAsync(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 restoreVolumeAsync( + RestoreVolumeRequest request) { + return restoreVolumeOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a backup to an ONTAP-mode volume. + * + *

          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 (NetAppClient netAppClient = NetAppClient.create()) {
          +   *   RestoreVolumeRequest request =
          +   *       RestoreVolumeRequest.newBuilder()
          +   *           .setName(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString())
          +   *           .build();
          +   *   OperationFuture future =
          +   *       netAppClient.restoreVolumeOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   RestoreVolumeResponse response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + restoreVolumeOperationCallable() { + return stub.restoreVolumeOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a backup to an ONTAP-mode volume. + * + *

          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 (NetAppClient netAppClient = NetAppClient.create()) {
          +   *   RestoreVolumeRequest request =
          +   *       RestoreVolumeRequest.newBuilder()
          +   *           .setName(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString())
          +   *           .build();
          +   *   ApiFuture future = netAppClient.restoreVolumeCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable restoreVolumeCallable() { + return stub.restoreVolumeCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists backup configurations for all volumes in an ONTAP-mode Storage Pool. + * + *

          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 (NetAppClient netAppClient = NetAppClient.create()) {
          +   *   StoragePoolName parent = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]");
          +   *   for (VolumeBackupConfig element : netAppClient.listBackupConfigs(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The ONTAP StoragePool for which to retrieve backup configuration + * information, in the format + * `projects/{project}/locations/{location}/storagePools/{storage_pool}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBackupConfigsPagedResponse listBackupConfigs(@Nullable StoragePoolName parent) { + ListBackupConfigsRequest request = + ListBackupConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBackupConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists backup configurations for all volumes in an ONTAP-mode Storage Pool. + * + *

          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 (NetAppClient netAppClient = NetAppClient.create()) {
          +   *   String parent = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString();
          +   *   for (VolumeBackupConfig element : netAppClient.listBackupConfigs(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The ONTAP StoragePool for which to retrieve backup configuration + * information, in the format + * `projects/{project}/locations/{location}/storagePools/{storage_pool}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBackupConfigsPagedResponse listBackupConfigs(String parent) { + ListBackupConfigsRequest request = + ListBackupConfigsRequest.newBuilder().setParent(parent).build(); + return listBackupConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists backup configurations for all volumes in an ONTAP-mode Storage Pool. + * + *

          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 (NetAppClient netAppClient = NetAppClient.create()) {
          +   *   ListBackupConfigsRequest request =
          +   *       ListBackupConfigsRequest.newBuilder()
          +   *           .setParent(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .setFilter("filter-1274492040")
          +   *           .build();
          +   *   for (VolumeBackupConfig element : netAppClient.listBackupConfigs(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 ListBackupConfigsPagedResponse listBackupConfigs(ListBackupConfigsRequest request) { + return listBackupConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists backup configurations for all volumes in an ONTAP-mode Storage Pool. + * + *

          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 (NetAppClient netAppClient = NetAppClient.create()) {
          +   *   ListBackupConfigsRequest request =
          +   *       ListBackupConfigsRequest.newBuilder()
          +   *           .setParent(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .setFilter("filter-1274492040")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       netAppClient.listBackupConfigsPagedCallable().futureCall(request);
          +   *   // Do something.
          +   *   for (VolumeBackupConfig element : future.get().iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + listBackupConfigsPagedCallable() { + return stub.listBackupConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists backup configurations for all volumes in an ONTAP-mode Storage Pool. + * + *

          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 (NetAppClient netAppClient = NetAppClient.create()) {
          +   *   ListBackupConfigsRequest request =
          +   *       ListBackupConfigsRequest.newBuilder()
          +   *           .setParent(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .setFilter("filter-1274492040")
          +   *           .build();
          +   *   while (true) {
          +   *     ListBackupConfigsResponse response = netAppClient.listBackupConfigsCallable().call(request);
          +   *     for (VolumeBackupConfig element : response.getVolumeBackupConfigsList()) {
          +   *       // doThingsWith(element);
          +   *     }
          +   *     String nextPageToken = response.getNextPageToken();
          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
          +   *     } else {
          +   *       break;
          +   *     }
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + listBackupConfigsCallable() { + return stub.listBackupConfigsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the backup configuration for an ONTAP-mode volume. + * + *

          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 (NetAppClient netAppClient = NetAppClient.create()) {
          +   *   StoragePoolName name = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]");
          +   *   String volumeUuid = "volumeUuid-1552535051";
          +   *   BackupConfig backupConfig = BackupConfig.newBuilder().build();
          +   *   FieldMask updateMask = FieldMask.newBuilder().build();
          +   *   UpdateBackupConfigResponse response =
          +   *       netAppClient.updateBackupConfigAsync(name, volumeUuid, backupConfig, updateMask).get();
          +   * }
          +   * }
          + * + * @param name Required. The resource name of the StoragePool, in the format: + * projects/{projectNumber}/locations/{locationId}/storagePools/{poolId} + * @param volumeUuid Required. The UUID of the ONTAP-mode volume. + * @param backupConfig Required. Backup configuration to apply. + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * BackupConfig for the Volume. 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateBackupConfigAsync( + @Nullable StoragePoolName name, + String volumeUuid, + BackupConfig backupConfig, + FieldMask updateMask) { + UpdateBackupConfigRequest request = + UpdateBackupConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setVolumeUuid(volumeUuid) + .setBackupConfig(backupConfig) + .setUpdateMask(updateMask) + .build(); + return updateBackupConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the backup configuration for an ONTAP-mode volume. + * + *

          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 (NetAppClient netAppClient = NetAppClient.create()) {
          +   *   String name = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString();
          +   *   String volumeUuid = "volumeUuid-1552535051";
          +   *   BackupConfig backupConfig = BackupConfig.newBuilder().build();
          +   *   FieldMask updateMask = FieldMask.newBuilder().build();
          +   *   UpdateBackupConfigResponse response =
          +   *       netAppClient.updateBackupConfigAsync(name, volumeUuid, backupConfig, updateMask).get();
          +   * }
          +   * }
          + * + * @param name Required. The resource name of the StoragePool, in the format: + * projects/{projectNumber}/locations/{locationId}/storagePools/{poolId} + * @param volumeUuid Required. The UUID of the ONTAP-mode volume. + * @param backupConfig Required. Backup configuration to apply. + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * BackupConfig for the Volume. 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateBackupConfigAsync( + String name, String volumeUuid, BackupConfig backupConfig, FieldMask updateMask) { + UpdateBackupConfigRequest request = + UpdateBackupConfigRequest.newBuilder() + .setName(name) + .setVolumeUuid(volumeUuid) + .setBackupConfig(backupConfig) + .setUpdateMask(updateMask) + .build(); + return updateBackupConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the backup configuration for an ONTAP-mode volume. + * + *

          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 (NetAppClient netAppClient = NetAppClient.create()) {
          +   *   UpdateBackupConfigRequest request =
          +   *       UpdateBackupConfigRequest.newBuilder()
          +   *           .setName(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString())
          +   *           .setVolumeUuid("volumeUuid-1552535051")
          +   *           .setBackupConfig(BackupConfig.newBuilder().build())
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .build();
          +   *   UpdateBackupConfigResponse response = netAppClient.updateBackupConfigAsync(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 + updateBackupConfigAsync(UpdateBackupConfigRequest request) { + return updateBackupConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the backup configuration for an ONTAP-mode volume. + * + *

          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 (NetAppClient netAppClient = NetAppClient.create()) {
          +   *   UpdateBackupConfigRequest request =
          +   *       UpdateBackupConfigRequest.newBuilder()
          +   *           .setName(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString())
          +   *           .setVolumeUuid("volumeUuid-1552535051")
          +   *           .setBackupConfig(BackupConfig.newBuilder().build())
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .build();
          +   *   OperationFuture future =
          +   *       netAppClient.updateBackupConfigOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   UpdateBackupConfigResponse response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable< + UpdateBackupConfigRequest, UpdateBackupConfigResponse, OperationMetadata> + updateBackupConfigOperationCallable() { + return stub.updateBackupConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the backup configuration for an ONTAP-mode volume. + * + *

          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 (NetAppClient netAppClient = NetAppClient.create()) {
          +   *   UpdateBackupConfigRequest request =
          +   *       UpdateBackupConfigRequest.newBuilder()
          +   *           .setName(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString())
          +   *           .setVolumeUuid("volumeUuid-1552535051")
          +   *           .setBackupConfig(BackupConfig.newBuilder().build())
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .build();
          +   *   ApiFuture future = netAppClient.updateBackupConfigCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable updateBackupConfigCallable() { + return stub.updateBackupConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to @@ -11869,6 +12760,93 @@ protected ListHostGroupsFixedSizeCollection createCollection( } } + public static class ListBackupConfigsPagedResponse + extends AbstractPagedListResponse< + ListBackupConfigsRequest, + ListBackupConfigsResponse, + VolumeBackupConfig, + ListBackupConfigsPage, + ListBackupConfigsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListBackupConfigsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListBackupConfigsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListBackupConfigsPagedResponse(ListBackupConfigsPage page) { + super(page, ListBackupConfigsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListBackupConfigsPage + extends AbstractPage< + ListBackupConfigsRequest, + ListBackupConfigsResponse, + VolumeBackupConfig, + ListBackupConfigsPage> { + + private ListBackupConfigsPage( + @Nullable + PageContext + context, + @Nullable ListBackupConfigsResponse response) { + super(context, response); + } + + private static ListBackupConfigsPage createEmptyPage() { + return new ListBackupConfigsPage(null, null); + } + + @Override + protected ListBackupConfigsPage createPage( + @Nullable + PageContext + context, + @Nullable ListBackupConfigsResponse response) { + return new ListBackupConfigsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListBackupConfigsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListBackupConfigsRequest, + ListBackupConfigsResponse, + VolumeBackupConfig, + ListBackupConfigsPage, + ListBackupConfigsFixedSizeCollection> { + + private ListBackupConfigsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListBackupConfigsFixedSizeCollection createEmptyCollection() { + return new ListBackupConfigsFixedSizeCollection(null, 0); + } + + @Override + protected ListBackupConfigsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListBackupConfigsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListLocationsPagedResponse extends AbstractPagedListResponse< ListLocationsRequest, diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppSettings.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppSettings.java index 0390da23d9b5..c7f773eb2fae 100644 --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppSettings.java +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppSettings.java @@ -17,6 +17,7 @@ package com.google.cloud.netapp.v1; import static com.google.cloud.netapp.v1.NetAppClient.ListActiveDirectoriesPagedResponse; +import static com.google.cloud.netapp.v1.NetAppClient.ListBackupConfigsPagedResponse; import static com.google.cloud.netapp.v1.NetAppClient.ListBackupPoliciesPagedResponse; import static com.google.cloud.netapp.v1.NetAppClient.ListBackupVaultsPagedResponse; import static com.google.cloud.netapp.v1.NetAppClient.ListBackupsPagedResponse; @@ -257,6 +258,22 @@ public UnaryCallSettings revertVolumeSettings() return ((NetAppStubSettings) getStubSettings()).revertVolumeOperationSettings(); } + /** Returns the object with the settings used for calls to startSplit. */ + public UnaryCallSettings startSplitSettings() { + return ((NetAppStubSettings) getStubSettings()).startSplitSettings(); + } + + /** Returns the object with the settings used for calls to startSplit. */ + public OperationCallSettings + startSplitOperationSettings() { + return ((NetAppStubSettings) getStubSettings()).startSplitOperationSettings(); + } + + /** Returns the object with the settings used for calls to getSplitStatus. */ + public UnaryCallSettings getSplitStatusSettings() { + return ((NetAppStubSettings) getStubSettings()).getSplitStatusSettings(); + } + /** Returns the object with the settings used for calls to establishVolumePeering. */ public UnaryCallSettings establishVolumePeeringSettings() { @@ -787,6 +804,36 @@ public UnaryCallSettings deleteHostGroupSetti return ((NetAppStubSettings) getStubSettings()).executeOntapPatchSettings(); } + /** Returns the object with the settings used for calls to restoreVolume. */ + public UnaryCallSettings restoreVolumeSettings() { + return ((NetAppStubSettings) getStubSettings()).restoreVolumeSettings(); + } + + /** Returns the object with the settings used for calls to restoreVolume. */ + public OperationCallSettings + restoreVolumeOperationSettings() { + return ((NetAppStubSettings) getStubSettings()).restoreVolumeOperationSettings(); + } + + /** Returns the object with the settings used for calls to listBackupConfigs. */ + public PagedCallSettings< + ListBackupConfigsRequest, ListBackupConfigsResponse, ListBackupConfigsPagedResponse> + listBackupConfigsSettings() { + return ((NetAppStubSettings) getStubSettings()).listBackupConfigsSettings(); + } + + /** Returns the object with the settings used for calls to updateBackupConfig. */ + public UnaryCallSettings updateBackupConfigSettings() { + return ((NetAppStubSettings) getStubSettings()).updateBackupConfigSettings(); + } + + /** Returns the object with the settings used for calls to updateBackupConfig. */ + public OperationCallSettings< + UpdateBackupConfigRequest, UpdateBackupConfigResponse, OperationMetadata> + updateBackupConfigOperationSettings() { + return ((NetAppStubSettings) getStubSettings()).updateBackupConfigOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -1038,6 +1085,22 @@ public UnaryCallSettings.Builder revertVolumeSet return getStubSettingsBuilder().revertVolumeOperationSettings(); } + /** Returns the builder for the settings used for calls to startSplit. */ + public UnaryCallSettings.Builder startSplitSettings() { + return getStubSettingsBuilder().startSplitSettings(); + } + + /** Returns the builder for the settings used for calls to startSplit. */ + public OperationCallSettings.Builder + startSplitOperationSettings() { + return getStubSettingsBuilder().startSplitOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getSplitStatus. */ + public UnaryCallSettings.Builder getSplitStatusSettings() { + return getStubSettingsBuilder().getSplitStatusSettings(); + } + /** Returns the builder for the settings used for calls to establishVolumePeering. */ public UnaryCallSettings.Builder establishVolumePeeringSettings() { @@ -1586,6 +1649,38 @@ public UnaryCallSettings.Builder deleteHostGr return getStubSettingsBuilder().executeOntapPatchSettings(); } + /** Returns the builder for the settings used for calls to restoreVolume. */ + public UnaryCallSettings.Builder restoreVolumeSettings() { + return getStubSettingsBuilder().restoreVolumeSettings(); + } + + /** Returns the builder for the settings used for calls to restoreVolume. */ + public OperationCallSettings.Builder< + RestoreVolumeRequest, RestoreVolumeResponse, OperationMetadata> + restoreVolumeOperationSettings() { + return getStubSettingsBuilder().restoreVolumeOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listBackupConfigs. */ + public PagedCallSettings.Builder< + ListBackupConfigsRequest, ListBackupConfigsResponse, ListBackupConfigsPagedResponse> + listBackupConfigsSettings() { + return getStubSettingsBuilder().listBackupConfigsSettings(); + } + + /** Returns the builder for the settings used for calls to updateBackupConfig. */ + public UnaryCallSettings.Builder + updateBackupConfigSettings() { + return getStubSettingsBuilder().updateBackupConfigSettings(); + } + + /** Returns the builder for the settings used for calls to updateBackupConfig. */ + public OperationCallSettings.Builder< + UpdateBackupConfigRequest, UpdateBackupConfigResponse, OperationMetadata> + updateBackupConfigOperationSettings() { + return getStubSettingsBuilder().updateBackupConfigOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/gapic_metadata.json b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/gapic_metadata.json index 75afefd35510..8653220d20cf 100644 --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/gapic_metadata.json +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/gapic_metadata.json @@ -127,6 +127,9 @@ "GetSnapshot": { "methods": ["getSnapshot", "getSnapshot", "getSnapshot", "getSnapshotCallable"] }, + "GetSplitStatus": { + "methods": ["getSplitStatus", "getSplitStatus", "getSplitStatus", "getSplitStatusCallable"] + }, "GetStoragePool": { "methods": ["getStoragePool", "getStoragePool", "getStoragePool", "getStoragePoolCallable"] }, @@ -136,6 +139,9 @@ "ListActiveDirectories": { "methods": ["listActiveDirectories", "listActiveDirectories", "listActiveDirectories", "listActiveDirectoriesPagedCallable", "listActiveDirectoriesCallable"] }, + "ListBackupConfigs": { + "methods": ["listBackupConfigs", "listBackupConfigs", "listBackupConfigs", "listBackupConfigsPagedCallable", "listBackupConfigsCallable"] + }, "ListBackupPolicies": { "methods": ["listBackupPolicies", "listBackupPolicies", "listBackupPolicies", "listBackupPoliciesPagedCallable", "listBackupPoliciesCallable"] }, @@ -172,6 +178,9 @@ "RestoreBackupFiles": { "methods": ["restoreBackupFilesAsync", "restoreBackupFilesOperationCallable", "restoreBackupFilesCallable"] }, + "RestoreVolume": { + "methods": ["restoreVolumeAsync", "restoreVolumeAsync", "restoreVolumeAsync", "restoreVolumeOperationCallable", "restoreVolumeCallable"] + }, "ResumeReplication": { "methods": ["resumeReplicationAsync", "resumeReplicationOperationCallable", "resumeReplicationCallable"] }, @@ -181,6 +190,9 @@ "RevertVolume": { "methods": ["revertVolumeAsync", "revertVolumeOperationCallable", "revertVolumeCallable"] }, + "StartSplit": { + "methods": ["startSplitAsync", "startSplitAsync", "startSplitAsync", "startSplitOperationCallable", "startSplitCallable"] + }, "StopReplication": { "methods": ["stopReplicationAsync", "stopReplicationOperationCallable", "stopReplicationCallable"] }, @@ -196,6 +208,9 @@ "UpdateBackup": { "methods": ["updateBackupAsync", "updateBackupAsync", "updateBackupOperationCallable", "updateBackupCallable"] }, + "UpdateBackupConfig": { + "methods": ["updateBackupConfigAsync", "updateBackupConfigAsync", "updateBackupConfigAsync", "updateBackupConfigOperationCallable", "updateBackupConfigCallable"] + }, "UpdateBackupPolicy": { "methods": ["updateBackupPolicyAsync", "updateBackupPolicyAsync", "updateBackupPolicyOperationCallable", "updateBackupPolicyCallable"] }, diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/GrpcNetAppStub.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/GrpcNetAppStub.java index 228125f2ae59..b186a930faad 100644 --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/GrpcNetAppStub.java +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/GrpcNetAppStub.java @@ -17,6 +17,7 @@ package com.google.cloud.netapp.v1.stub; import static com.google.cloud.netapp.v1.NetAppClient.ListActiveDirectoriesPagedResponse; +import static com.google.cloud.netapp.v1.NetAppClient.ListBackupConfigsPagedResponse; import static com.google.cloud.netapp.v1.NetAppClient.ListBackupPoliciesPagedResponse; import static com.google.cloud.netapp.v1.NetAppClient.ListBackupVaultsPagedResponse; import static com.google.cloud.netapp.v1.NetAppClient.ListBackupsPagedResponse; @@ -87,12 +88,15 @@ import com.google.cloud.netapp.v1.GetQuotaRuleRequest; import com.google.cloud.netapp.v1.GetReplicationRequest; import com.google.cloud.netapp.v1.GetSnapshotRequest; +import com.google.cloud.netapp.v1.GetSplitStatusRequest; import com.google.cloud.netapp.v1.GetStoragePoolRequest; import com.google.cloud.netapp.v1.GetVolumeRequest; import com.google.cloud.netapp.v1.HostGroup; import com.google.cloud.netapp.v1.KmsConfig; import com.google.cloud.netapp.v1.ListActiveDirectoriesRequest; import com.google.cloud.netapp.v1.ListActiveDirectoriesResponse; +import com.google.cloud.netapp.v1.ListBackupConfigsRequest; +import com.google.cloud.netapp.v1.ListBackupConfigsResponse; import com.google.cloud.netapp.v1.ListBackupPoliciesRequest; import com.google.cloud.netapp.v1.ListBackupPoliciesResponse; import com.google.cloud.netapp.v1.ListBackupVaultsRequest; @@ -118,15 +122,21 @@ import com.google.cloud.netapp.v1.Replication; import com.google.cloud.netapp.v1.RestoreBackupFilesRequest; import com.google.cloud.netapp.v1.RestoreBackupFilesResponse; +import com.google.cloud.netapp.v1.RestoreVolumeRequest; +import com.google.cloud.netapp.v1.RestoreVolumeResponse; import com.google.cloud.netapp.v1.ResumeReplicationRequest; import com.google.cloud.netapp.v1.ReverseReplicationDirectionRequest; import com.google.cloud.netapp.v1.RevertVolumeRequest; import com.google.cloud.netapp.v1.Snapshot; +import com.google.cloud.netapp.v1.SplitStatus; +import com.google.cloud.netapp.v1.StartSplitRequest; import com.google.cloud.netapp.v1.StopReplicationRequest; import com.google.cloud.netapp.v1.StoragePool; import com.google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest; import com.google.cloud.netapp.v1.SyncReplicationRequest; import com.google.cloud.netapp.v1.UpdateActiveDirectoryRequest; +import com.google.cloud.netapp.v1.UpdateBackupConfigRequest; +import com.google.cloud.netapp.v1.UpdateBackupConfigResponse; import com.google.cloud.netapp.v1.UpdateBackupPolicyRequest; import com.google.cloud.netapp.v1.UpdateBackupRequest; import com.google.cloud.netapp.v1.UpdateBackupVaultRequest; @@ -298,6 +308,26 @@ public class GrpcNetAppStub extends NetAppStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor startSplitMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.netapp.v1.NetApp/StartSplit") + .setRequestMarshaller(ProtoUtils.marshaller(StartSplitRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getSplitStatusMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.netapp.v1.NetApp/GetSplitStatus") + .setRequestMarshaller( + ProtoUtils.marshaller(GetSplitStatusRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SplitStatus.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor establishVolumePeeringMethodDescriptor = MethodDescriptor.newBuilder() @@ -939,6 +969,40 @@ public class GrpcNetAppStub extends NetAppStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + restoreVolumeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.netapp.v1.NetApp/RestoreVolume") + .setRequestMarshaller( + ProtoUtils.marshaller(RestoreVolumeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listBackupConfigsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.netapp.v1.NetApp/ListBackupConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListBackupConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListBackupConfigsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateBackupConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.netapp.v1.NetApp/UpdateBackupConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateBackupConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -998,6 +1062,10 @@ public class GrpcNetAppStub extends NetAppStub { private final UnaryCallable revertVolumeCallable; private final OperationCallable revertVolumeOperationCallable; + private final UnaryCallable startSplitCallable; + private final OperationCallable + startSplitOperationCallable; + private final UnaryCallable getSplitStatusCallable; private final UnaryCallable establishVolumePeeringCallable; private final OperationCallable @@ -1161,6 +1229,17 @@ public class GrpcNetAppStub extends NetAppStub { executeOntapDeleteCallable; private final UnaryCallable executeOntapPatchCallable; + private final UnaryCallable restoreVolumeCallable; + private final OperationCallable + restoreVolumeOperationCallable; + private final UnaryCallable + listBackupConfigsCallable; + private final UnaryCallable + listBackupConfigsPagedCallable; + private final UnaryCallable updateBackupConfigCallable; + private final OperationCallable< + UpdateBackupConfigRequest, UpdateBackupConfigResponse, OperationMetadata> + updateBackupConfigOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -1350,6 +1429,28 @@ protected GrpcNetAppStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + GrpcCallSettings startSplitTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(startSplitMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings getSplitStatusTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSplitStatusMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); GrpcCallSettings establishVolumePeeringTransportSettings = GrpcCallSettings.newBuilder() @@ -1999,6 +2100,40 @@ protected GrpcNetAppStub( return builder.build(); }) .build(); + GrpcCallSettings restoreVolumeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(restoreVolumeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listBackupConfigsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listBackupConfigsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings updateBackupConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateBackupConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -2129,6 +2264,18 @@ protected GrpcNetAppStub( settings.revertVolumeOperationSettings(), clientContext, operationsStub); + this.startSplitCallable = + callableFactory.createUnaryCallable( + startSplitTransportSettings, settings.startSplitSettings(), clientContext); + this.startSplitOperationCallable = + callableFactory.createOperationCallable( + startSplitTransportSettings, + settings.startSplitOperationSettings(), + clientContext, + operationsStub); + this.getSplitStatusCallable = + callableFactory.createUnaryCallable( + getSplitStatusTransportSettings, settings.getSplitStatusSettings(), clientContext); this.establishVolumePeeringCallable = callableFactory.createUnaryCallable( establishVolumePeeringTransportSettings, @@ -2586,6 +2733,36 @@ protected GrpcNetAppStub( executeOntapPatchTransportSettings, settings.executeOntapPatchSettings(), clientContext); + this.restoreVolumeCallable = + callableFactory.createUnaryCallable( + restoreVolumeTransportSettings, settings.restoreVolumeSettings(), clientContext); + this.restoreVolumeOperationCallable = + callableFactory.createOperationCallable( + restoreVolumeTransportSettings, + settings.restoreVolumeOperationSettings(), + clientContext, + operationsStub); + this.listBackupConfigsCallable = + callableFactory.createUnaryCallable( + listBackupConfigsTransportSettings, + settings.listBackupConfigsSettings(), + clientContext); + this.listBackupConfigsPagedCallable = + callableFactory.createPagedCallable( + listBackupConfigsTransportSettings, + settings.listBackupConfigsSettings(), + clientContext); + this.updateBackupConfigCallable = + callableFactory.createUnaryCallable( + updateBackupConfigTransportSettings, + settings.updateBackupConfigSettings(), + clientContext); + this.updateBackupConfigOperationCallable = + callableFactory.createOperationCallable( + updateBackupConfigTransportSettings, + settings.updateBackupConfigOperationSettings(), + clientContext, + operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -2737,6 +2914,22 @@ public UnaryCallable revertVolumeCallable() { return revertVolumeOperationCallable; } + @Override + public UnaryCallable startSplitCallable() { + return startSplitCallable; + } + + @Override + public OperationCallable + startSplitOperationCallable() { + return startSplitOperationCallable; + } + + @Override + public UnaryCallable getSplitStatusCallable() { + return getSplitStatusCallable; + } + @Override public UnaryCallable establishVolumePeeringCallable() { return establishVolumePeeringCallable; @@ -3298,6 +3491,40 @@ public UnaryCallable executeOnt return executeOntapPatchCallable; } + @Override + public UnaryCallable restoreVolumeCallable() { + return restoreVolumeCallable; + } + + @Override + public OperationCallable + restoreVolumeOperationCallable() { + return restoreVolumeOperationCallable; + } + + @Override + public UnaryCallable + listBackupConfigsCallable() { + return listBackupConfigsCallable; + } + + @Override + public UnaryCallable + listBackupConfigsPagedCallable() { + return listBackupConfigsPagedCallable; + } + + @Override + public UnaryCallable updateBackupConfigCallable() { + return updateBackupConfigCallable; + } + + @Override + public OperationCallable + updateBackupConfigOperationCallable() { + return updateBackupConfigOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/HttpJsonNetAppStub.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/HttpJsonNetAppStub.java index fcb08fab7682..304f0ab6d499 100644 --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/HttpJsonNetAppStub.java +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/HttpJsonNetAppStub.java @@ -17,6 +17,7 @@ package com.google.cloud.netapp.v1.stub; import static com.google.cloud.netapp.v1.NetAppClient.ListActiveDirectoriesPagedResponse; +import static com.google.cloud.netapp.v1.NetAppClient.ListBackupConfigsPagedResponse; import static com.google.cloud.netapp.v1.NetAppClient.ListBackupPoliciesPagedResponse; import static com.google.cloud.netapp.v1.NetAppClient.ListBackupVaultsPagedResponse; import static com.google.cloud.netapp.v1.NetAppClient.ListBackupsPagedResponse; @@ -95,12 +96,15 @@ import com.google.cloud.netapp.v1.GetQuotaRuleRequest; import com.google.cloud.netapp.v1.GetReplicationRequest; import com.google.cloud.netapp.v1.GetSnapshotRequest; +import com.google.cloud.netapp.v1.GetSplitStatusRequest; import com.google.cloud.netapp.v1.GetStoragePoolRequest; import com.google.cloud.netapp.v1.GetVolumeRequest; import com.google.cloud.netapp.v1.HostGroup; import com.google.cloud.netapp.v1.KmsConfig; import com.google.cloud.netapp.v1.ListActiveDirectoriesRequest; import com.google.cloud.netapp.v1.ListActiveDirectoriesResponse; +import com.google.cloud.netapp.v1.ListBackupConfigsRequest; +import com.google.cloud.netapp.v1.ListBackupConfigsResponse; import com.google.cloud.netapp.v1.ListBackupPoliciesRequest; import com.google.cloud.netapp.v1.ListBackupPoliciesResponse; import com.google.cloud.netapp.v1.ListBackupVaultsRequest; @@ -126,15 +130,21 @@ import com.google.cloud.netapp.v1.Replication; import com.google.cloud.netapp.v1.RestoreBackupFilesRequest; import com.google.cloud.netapp.v1.RestoreBackupFilesResponse; +import com.google.cloud.netapp.v1.RestoreVolumeRequest; +import com.google.cloud.netapp.v1.RestoreVolumeResponse; import com.google.cloud.netapp.v1.ResumeReplicationRequest; import com.google.cloud.netapp.v1.ReverseReplicationDirectionRequest; import com.google.cloud.netapp.v1.RevertVolumeRequest; import com.google.cloud.netapp.v1.Snapshot; +import com.google.cloud.netapp.v1.SplitStatus; +import com.google.cloud.netapp.v1.StartSplitRequest; import com.google.cloud.netapp.v1.StopReplicationRequest; import com.google.cloud.netapp.v1.StoragePool; import com.google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest; import com.google.cloud.netapp.v1.SyncReplicationRequest; import com.google.cloud.netapp.v1.UpdateActiveDirectoryRequest; +import com.google.cloud.netapp.v1.UpdateBackupConfigRequest; +import com.google.cloud.netapp.v1.UpdateBackupConfigResponse; import com.google.cloud.netapp.v1.UpdateBackupPolicyRequest; import com.google.cloud.netapp.v1.UpdateBackupRequest; import com.google.cloud.netapp.v1.UpdateBackupVaultRequest; @@ -174,6 +184,7 @@ public class HttpJsonNetAppStub extends NetAppStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder() .add(StoragePool.getDescriptor()) + .add(RestoreVolumeResponse.getDescriptor()) .add(BackupPolicy.getDescriptor()) .add(KmsConfig.getDescriptor()) .add(ActiveDirectory.getDescriptor()) @@ -184,6 +195,7 @@ public class HttpJsonNetAppStub extends NetAppStub { .add(OperationMetadata.getDescriptor()) .add(RestoreBackupFilesResponse.getDescriptor()) .add(Volume.getDescriptor()) + .add(UpdateBackupConfigResponse.getDescriptor()) .add(Snapshot.getDescriptor()) .add(BackupVault.getDescriptor()) .add(Backup.getDescriptor()) @@ -694,6 +706,80 @@ public class HttpJsonNetAppStub extends NetAppStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + startSplitMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.netapp.v1.NetApp/StartSplit") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/volumes/*}:startSplit", + 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( + (StartSplitRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getSplitStatusMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.netapp.v1.NetApp/GetSplitStatus") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/volumes/*}:getSplitStatus", + 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 -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SplitStatus.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor establishVolumePeeringMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -2931,6 +3017,124 @@ public class HttpJsonNetAppStub extends NetAppStub { .build()) .build(); + private static final ApiMethodDescriptor + restoreVolumeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.netapp.v1.NetApp/RestoreVolume") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/storagePools/*}:restoreVolume", + 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( + (RestoreVolumeRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listBackupConfigsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.netapp.v1.NetApp/ListBackupConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/storagePools/*}/backupConfigs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListBackupConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateBackupConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.netapp.v1.NetApp/UpdateBackupConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/storagePools/*}:updateBackupConfig", + 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( + (UpdateBackupConfigRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -3037,6 +3241,10 @@ public class HttpJsonNetAppStub extends NetAppStub { private final UnaryCallable revertVolumeCallable; private final OperationCallable revertVolumeOperationCallable; + private final UnaryCallable startSplitCallable; + private final OperationCallable + startSplitOperationCallable; + private final UnaryCallable getSplitStatusCallable; private final UnaryCallable establishVolumePeeringCallable; private final OperationCallable @@ -3200,6 +3408,17 @@ public class HttpJsonNetAppStub extends NetAppStub { executeOntapDeleteCallable; private final UnaryCallable executeOntapPatchCallable; + private final UnaryCallable restoreVolumeCallable; + private final OperationCallable + restoreVolumeOperationCallable; + private final UnaryCallable + listBackupConfigsCallable; + private final UnaryCallable + listBackupConfigsPagedCallable; + private final UnaryCallable updateBackupConfigCallable; + private final OperationCallable< + UpdateBackupConfigRequest, UpdateBackupConfigResponse, OperationMetadata> + updateBackupConfigOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -3430,6 +3649,30 @@ protected HttpJsonNetAppStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + HttpJsonCallSettings startSplitTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(startSplitMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings getSplitStatusTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSplitStatusMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); HttpJsonCallSettings establishVolumePeeringTransportSettings = HttpJsonCallSettings.newBuilder() @@ -4138,6 +4381,43 @@ protected HttpJsonNetAppStub( return builder.build(); }) .build(); + HttpJsonCallSettings restoreVolumeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(restoreVolumeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listBackupConfigsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listBackupConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings updateBackupConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateBackupConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -4271,6 +4551,18 @@ protected HttpJsonNetAppStub( settings.revertVolumeOperationSettings(), clientContext, httpJsonOperationsStub); + this.startSplitCallable = + callableFactory.createUnaryCallable( + startSplitTransportSettings, settings.startSplitSettings(), clientContext); + this.startSplitOperationCallable = + callableFactory.createOperationCallable( + startSplitTransportSettings, + settings.startSplitOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getSplitStatusCallable = + callableFactory.createUnaryCallable( + getSplitStatusTransportSettings, settings.getSplitStatusSettings(), clientContext); this.establishVolumePeeringCallable = callableFactory.createUnaryCallable( establishVolumePeeringTransportSettings, @@ -4728,6 +5020,36 @@ protected HttpJsonNetAppStub( executeOntapPatchTransportSettings, settings.executeOntapPatchSettings(), clientContext); + this.restoreVolumeCallable = + callableFactory.createUnaryCallable( + restoreVolumeTransportSettings, settings.restoreVolumeSettings(), clientContext); + this.restoreVolumeOperationCallable = + callableFactory.createOperationCallable( + restoreVolumeTransportSettings, + settings.restoreVolumeOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listBackupConfigsCallable = + callableFactory.createUnaryCallable( + listBackupConfigsTransportSettings, + settings.listBackupConfigsSettings(), + clientContext); + this.listBackupConfigsPagedCallable = + callableFactory.createPagedCallable( + listBackupConfigsTransportSettings, + settings.listBackupConfigsSettings(), + clientContext); + this.updateBackupConfigCallable = + callableFactory.createUnaryCallable( + updateBackupConfigTransportSettings, + settings.updateBackupConfigSettings(), + clientContext); + this.updateBackupConfigOperationCallable = + callableFactory.createOperationCallable( + updateBackupConfigTransportSettings, + settings.updateBackupConfigOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -4758,6 +5080,8 @@ public static List getMethodDescriptors() { methodDescriptors.add(updateVolumeMethodDescriptor); methodDescriptors.add(deleteVolumeMethodDescriptor); methodDescriptors.add(revertVolumeMethodDescriptor); + methodDescriptors.add(startSplitMethodDescriptor); + methodDescriptors.add(getSplitStatusMethodDescriptor); methodDescriptors.add(establishVolumePeeringMethodDescriptor); methodDescriptors.add(listSnapshotsMethodDescriptor); methodDescriptors.add(getSnapshotMethodDescriptor); @@ -4816,6 +5140,9 @@ public static List getMethodDescriptors() { methodDescriptors.add(executeOntapGetMethodDescriptor); methodDescriptors.add(executeOntapDeleteMethodDescriptor); methodDescriptors.add(executeOntapPatchMethodDescriptor); + methodDescriptors.add(restoreVolumeMethodDescriptor); + methodDescriptors.add(listBackupConfigsMethodDescriptor); + methodDescriptors.add(updateBackupConfigMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; @@ -4958,6 +5285,22 @@ public UnaryCallable revertVolumeCallable() { return revertVolumeOperationCallable; } + @Override + public UnaryCallable startSplitCallable() { + return startSplitCallable; + } + + @Override + public OperationCallable + startSplitOperationCallable() { + return startSplitOperationCallable; + } + + @Override + public UnaryCallable getSplitStatusCallable() { + return getSplitStatusCallable; + } + @Override public UnaryCallable establishVolumePeeringCallable() { return establishVolumePeeringCallable; @@ -5519,6 +5862,40 @@ public UnaryCallable executeOnt return executeOntapPatchCallable; } + @Override + public UnaryCallable restoreVolumeCallable() { + return restoreVolumeCallable; + } + + @Override + public OperationCallable + restoreVolumeOperationCallable() { + return restoreVolumeOperationCallable; + } + + @Override + public UnaryCallable + listBackupConfigsCallable() { + return listBackupConfigsCallable; + } + + @Override + public UnaryCallable + listBackupConfigsPagedCallable() { + return listBackupConfigsPagedCallable; + } + + @Override + public UnaryCallable updateBackupConfigCallable() { + return updateBackupConfigCallable; + } + + @Override + public OperationCallable + updateBackupConfigOperationCallable() { + return updateBackupConfigOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStub.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStub.java index 84d3215436f6..9f40dec8b358 100644 --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStub.java +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStub.java @@ -17,6 +17,7 @@ package com.google.cloud.netapp.v1.stub; import static com.google.cloud.netapp.v1.NetAppClient.ListActiveDirectoriesPagedResponse; +import static com.google.cloud.netapp.v1.NetAppClient.ListBackupConfigsPagedResponse; import static com.google.cloud.netapp.v1.NetAppClient.ListBackupPoliciesPagedResponse; import static com.google.cloud.netapp.v1.NetAppClient.ListBackupVaultsPagedResponse; import static com.google.cloud.netapp.v1.NetAppClient.ListBackupsPagedResponse; @@ -82,12 +83,15 @@ import com.google.cloud.netapp.v1.GetQuotaRuleRequest; import com.google.cloud.netapp.v1.GetReplicationRequest; import com.google.cloud.netapp.v1.GetSnapshotRequest; +import com.google.cloud.netapp.v1.GetSplitStatusRequest; import com.google.cloud.netapp.v1.GetStoragePoolRequest; import com.google.cloud.netapp.v1.GetVolumeRequest; import com.google.cloud.netapp.v1.HostGroup; import com.google.cloud.netapp.v1.KmsConfig; import com.google.cloud.netapp.v1.ListActiveDirectoriesRequest; import com.google.cloud.netapp.v1.ListActiveDirectoriesResponse; +import com.google.cloud.netapp.v1.ListBackupConfigsRequest; +import com.google.cloud.netapp.v1.ListBackupConfigsResponse; import com.google.cloud.netapp.v1.ListBackupPoliciesRequest; import com.google.cloud.netapp.v1.ListBackupPoliciesResponse; import com.google.cloud.netapp.v1.ListBackupVaultsRequest; @@ -113,15 +117,21 @@ import com.google.cloud.netapp.v1.Replication; import com.google.cloud.netapp.v1.RestoreBackupFilesRequest; import com.google.cloud.netapp.v1.RestoreBackupFilesResponse; +import com.google.cloud.netapp.v1.RestoreVolumeRequest; +import com.google.cloud.netapp.v1.RestoreVolumeResponse; import com.google.cloud.netapp.v1.ResumeReplicationRequest; import com.google.cloud.netapp.v1.ReverseReplicationDirectionRequest; import com.google.cloud.netapp.v1.RevertVolumeRequest; import com.google.cloud.netapp.v1.Snapshot; +import com.google.cloud.netapp.v1.SplitStatus; +import com.google.cloud.netapp.v1.StartSplitRequest; import com.google.cloud.netapp.v1.StopReplicationRequest; import com.google.cloud.netapp.v1.StoragePool; import com.google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest; import com.google.cloud.netapp.v1.SyncReplicationRequest; import com.google.cloud.netapp.v1.UpdateActiveDirectoryRequest; +import com.google.cloud.netapp.v1.UpdateBackupConfigRequest; +import com.google.cloud.netapp.v1.UpdateBackupConfigResponse; import com.google.cloud.netapp.v1.UpdateBackupPolicyRequest; import com.google.cloud.netapp.v1.UpdateBackupRequest; import com.google.cloud.netapp.v1.UpdateBackupVaultRequest; @@ -276,6 +286,19 @@ public UnaryCallable revertVolumeCallable() { throw new UnsupportedOperationException("Not implemented: revertVolumeCallable()"); } + public OperationCallable + startSplitOperationCallable() { + throw new UnsupportedOperationException("Not implemented: startSplitOperationCallable()"); + } + + public UnaryCallable startSplitCallable() { + throw new UnsupportedOperationException("Not implemented: startSplitCallable()"); + } + + public UnaryCallable getSplitStatusCallable() { + throw new UnsupportedOperationException("Not implemented: getSplitStatusCallable()"); + } + public OperationCallable establishVolumePeeringOperationCallable() { throw new UnsupportedOperationException( @@ -753,6 +776,35 @@ public UnaryCallable executeOnt throw new UnsupportedOperationException("Not implemented: executeOntapPatchCallable()"); } + public OperationCallable + restoreVolumeOperationCallable() { + throw new UnsupportedOperationException("Not implemented: restoreVolumeOperationCallable()"); + } + + public UnaryCallable restoreVolumeCallable() { + throw new UnsupportedOperationException("Not implemented: restoreVolumeCallable()"); + } + + public UnaryCallable + listBackupConfigsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listBackupConfigsPagedCallable()"); + } + + public UnaryCallable + listBackupConfigsCallable() { + throw new UnsupportedOperationException("Not implemented: listBackupConfigsCallable()"); + } + + public OperationCallable + updateBackupConfigOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateBackupConfigOperationCallable()"); + } + + public UnaryCallable updateBackupConfigCallable() { + throw new UnsupportedOperationException("Not implemented: updateBackupConfigCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStubSettings.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStubSettings.java index d5c926f2450a..2dbdc1977dfd 100644 --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStubSettings.java +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStubSettings.java @@ -17,6 +17,7 @@ package com.google.cloud.netapp.v1.stub; import static com.google.cloud.netapp.v1.NetAppClient.ListActiveDirectoriesPagedResponse; +import static com.google.cloud.netapp.v1.NetAppClient.ListBackupConfigsPagedResponse; import static com.google.cloud.netapp.v1.NetAppClient.ListBackupPoliciesPagedResponse; import static com.google.cloud.netapp.v1.NetAppClient.ListBackupVaultsPagedResponse; import static com.google.cloud.netapp.v1.NetAppClient.ListBackupsPagedResponse; @@ -110,12 +111,15 @@ import com.google.cloud.netapp.v1.GetQuotaRuleRequest; import com.google.cloud.netapp.v1.GetReplicationRequest; import com.google.cloud.netapp.v1.GetSnapshotRequest; +import com.google.cloud.netapp.v1.GetSplitStatusRequest; import com.google.cloud.netapp.v1.GetStoragePoolRequest; import com.google.cloud.netapp.v1.GetVolumeRequest; import com.google.cloud.netapp.v1.HostGroup; import com.google.cloud.netapp.v1.KmsConfig; import com.google.cloud.netapp.v1.ListActiveDirectoriesRequest; import com.google.cloud.netapp.v1.ListActiveDirectoriesResponse; +import com.google.cloud.netapp.v1.ListBackupConfigsRequest; +import com.google.cloud.netapp.v1.ListBackupConfigsResponse; import com.google.cloud.netapp.v1.ListBackupPoliciesRequest; import com.google.cloud.netapp.v1.ListBackupPoliciesResponse; import com.google.cloud.netapp.v1.ListBackupVaultsRequest; @@ -141,15 +145,21 @@ import com.google.cloud.netapp.v1.Replication; import com.google.cloud.netapp.v1.RestoreBackupFilesRequest; import com.google.cloud.netapp.v1.RestoreBackupFilesResponse; +import com.google.cloud.netapp.v1.RestoreVolumeRequest; +import com.google.cloud.netapp.v1.RestoreVolumeResponse; import com.google.cloud.netapp.v1.ResumeReplicationRequest; import com.google.cloud.netapp.v1.ReverseReplicationDirectionRequest; import com.google.cloud.netapp.v1.RevertVolumeRequest; import com.google.cloud.netapp.v1.Snapshot; +import com.google.cloud.netapp.v1.SplitStatus; +import com.google.cloud.netapp.v1.StartSplitRequest; import com.google.cloud.netapp.v1.StopReplicationRequest; import com.google.cloud.netapp.v1.StoragePool; import com.google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest; import com.google.cloud.netapp.v1.SyncReplicationRequest; import com.google.cloud.netapp.v1.UpdateActiveDirectoryRequest; +import com.google.cloud.netapp.v1.UpdateBackupConfigRequest; +import com.google.cloud.netapp.v1.UpdateBackupConfigResponse; import com.google.cloud.netapp.v1.UpdateBackupPolicyRequest; import com.google.cloud.netapp.v1.UpdateBackupRequest; import com.google.cloud.netapp.v1.UpdateBackupVaultRequest; @@ -164,6 +174,7 @@ import com.google.cloud.netapp.v1.VerifyKmsConfigRequest; import com.google.cloud.netapp.v1.VerifyKmsConfigResponse; import com.google.cloud.netapp.v1.Volume; +import com.google.cloud.netapp.v1.VolumeBackupConfig; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -296,6 +307,10 @@ public class NetAppStubSettings extends StubSettings { private final UnaryCallSettings revertVolumeSettings; private final OperationCallSettings revertVolumeOperationSettings; + private final UnaryCallSettings startSplitSettings; + private final OperationCallSettings + startSplitOperationSettings; + private final UnaryCallSettings getSplitStatusSettings; private final UnaryCallSettings establishVolumePeeringSettings; private final OperationCallSettings @@ -458,6 +473,17 @@ public class NetAppStubSettings extends StubSettings { executeOntapDeleteSettings; private final UnaryCallSettings executeOntapPatchSettings; + private final UnaryCallSettings restoreVolumeSettings; + private final OperationCallSettings< + RestoreVolumeRequest, RestoreVolumeResponse, OperationMetadata> + restoreVolumeOperationSettings; + private final PagedCallSettings< + ListBackupConfigsRequest, ListBackupConfigsResponse, ListBackupConfigsPagedResponse> + listBackupConfigsSettings; + private final UnaryCallSettings updateBackupConfigSettings; + private final OperationCallSettings< + UpdateBackupConfigRequest, UpdateBackupConfigResponse, OperationMetadata> + updateBackupConfigOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -861,6 +887,45 @@ public Iterable extractResources(ListHostGroupsResponse payload) { } }; + private static final PagedListDescriptor< + ListBackupConfigsRequest, ListBackupConfigsResponse, VolumeBackupConfig> + LIST_BACKUP_CONFIGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListBackupConfigsRequest, ListBackupConfigsResponse, VolumeBackupConfig>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListBackupConfigsRequest injectToken( + ListBackupConfigsRequest payload, String token) { + return ListBackupConfigsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListBackupConfigsRequest injectPageSize( + ListBackupConfigsRequest payload, int pageSize) { + return ListBackupConfigsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListBackupConfigsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListBackupConfigsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListBackupConfigsResponse payload) { + return payload.getVolumeBackupConfigsList(); + } + }; + private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -1099,6 +1164,27 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListBackupConfigsRequest, ListBackupConfigsResponse, ListBackupConfigsPagedResponse> + LIST_BACKUP_CONFIGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListBackupConfigsRequest, + ListBackupConfigsResponse, + ListBackupConfigsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListBackupConfigsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_BACKUP_CONFIGS_PAGE_STR_DESC, request, context); + return ListBackupConfigsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> LIST_LOCATIONS_PAGE_STR_FACT = @@ -1240,6 +1326,22 @@ public UnaryCallSettings revertVolumeSettings() return revertVolumeOperationSettings; } + /** Returns the object with the settings used for calls to startSplit. */ + public UnaryCallSettings startSplitSettings() { + return startSplitSettings; + } + + /** Returns the object with the settings used for calls to startSplit. */ + public OperationCallSettings + startSplitOperationSettings() { + return startSplitOperationSettings; + } + + /** Returns the object with the settings used for calls to getSplitStatus. */ + public UnaryCallSettings getSplitStatusSettings() { + return getSplitStatusSettings; + } + /** Returns the object with the settings used for calls to establishVolumePeering. */ public UnaryCallSettings establishVolumePeeringSettings() { @@ -1770,6 +1872,36 @@ public UnaryCallSettings deleteHostGroupSetti return executeOntapPatchSettings; } + /** Returns the object with the settings used for calls to restoreVolume. */ + public UnaryCallSettings restoreVolumeSettings() { + return restoreVolumeSettings; + } + + /** Returns the object with the settings used for calls to restoreVolume. */ + public OperationCallSettings + restoreVolumeOperationSettings() { + return restoreVolumeOperationSettings; + } + + /** Returns the object with the settings used for calls to listBackupConfigs. */ + public PagedCallSettings< + ListBackupConfigsRequest, ListBackupConfigsResponse, ListBackupConfigsPagedResponse> + listBackupConfigsSettings() { + return listBackupConfigsSettings; + } + + /** Returns the object with the settings used for calls to updateBackupConfig. */ + public UnaryCallSettings updateBackupConfigSettings() { + return updateBackupConfigSettings; + } + + /** Returns the object with the settings used for calls to updateBackupConfig. */ + public OperationCallSettings< + UpdateBackupConfigRequest, UpdateBackupConfigResponse, OperationMetadata> + updateBackupConfigOperationSettings() { + return updateBackupConfigOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -1917,6 +2049,9 @@ protected NetAppStubSettings(Builder settingsBuilder) throws IOException { deleteVolumeOperationSettings = settingsBuilder.deleteVolumeOperationSettings().build(); revertVolumeSettings = settingsBuilder.revertVolumeSettings().build(); revertVolumeOperationSettings = settingsBuilder.revertVolumeOperationSettings().build(); + startSplitSettings = settingsBuilder.startSplitSettings().build(); + startSplitOperationSettings = settingsBuilder.startSplitOperationSettings().build(); + getSplitStatusSettings = settingsBuilder.getSplitStatusSettings().build(); establishVolumePeeringSettings = settingsBuilder.establishVolumePeeringSettings().build(); establishVolumePeeringOperationSettings = settingsBuilder.establishVolumePeeringOperationSettings().build(); @@ -2027,6 +2162,12 @@ protected NetAppStubSettings(Builder settingsBuilder) throws IOException { executeOntapGetSettings = settingsBuilder.executeOntapGetSettings().build(); executeOntapDeleteSettings = settingsBuilder.executeOntapDeleteSettings().build(); executeOntapPatchSettings = settingsBuilder.executeOntapPatchSettings().build(); + restoreVolumeSettings = settingsBuilder.restoreVolumeSettings().build(); + restoreVolumeOperationSettings = settingsBuilder.restoreVolumeOperationSettings().build(); + listBackupConfigsSettings = settingsBuilder.listBackupConfigsSettings().build(); + updateBackupConfigSettings = settingsBuilder.updateBackupConfigSettings().build(); + updateBackupConfigOperationSettings = + settingsBuilder.updateBackupConfigOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } @@ -2088,6 +2229,11 @@ public static class Builder extends StubSettings.Builder revertVolumeSettings; private final OperationCallSettings.Builder revertVolumeOperationSettings; + private final UnaryCallSettings.Builder startSplitSettings; + private final OperationCallSettings.Builder + startSplitOperationSettings; + private final UnaryCallSettings.Builder + getSplitStatusSettings; private final UnaryCallSettings.Builder establishVolumePeeringSettings; private final OperationCallSettings.Builder< @@ -2299,6 +2445,18 @@ public static class Builder extends StubSettings.Builder executeOntapPatchSettings; + private final UnaryCallSettings.Builder restoreVolumeSettings; + private final OperationCallSettings.Builder< + RestoreVolumeRequest, RestoreVolumeResponse, OperationMetadata> + restoreVolumeOperationSettings; + private final PagedCallSettings.Builder< + ListBackupConfigsRequest, ListBackupConfigsResponse, ListBackupConfigsPagedResponse> + listBackupConfigsSettings; + private final UnaryCallSettings.Builder + updateBackupConfigSettings; + private final OperationCallSettings.Builder< + UpdateBackupConfigRequest, UpdateBackupConfigResponse, OperationMetadata> + updateBackupConfigOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -2376,6 +2534,9 @@ protected Builder(@Nullable ClientContext clientContext) { deleteVolumeOperationSettings = OperationCallSettings.newBuilder(); revertVolumeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); revertVolumeOperationSettings = OperationCallSettings.newBuilder(); + startSplitSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + startSplitOperationSettings = OperationCallSettings.newBuilder(); + getSplitStatusSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); establishVolumePeeringSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); establishVolumePeeringOperationSettings = OperationCallSettings.newBuilder(); listSnapshotsSettings = PagedCallSettings.newBuilder(LIST_SNAPSHOTS_PAGE_STR_FACT); @@ -2470,6 +2631,11 @@ protected Builder(@Nullable ClientContext clientContext) { executeOntapGetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); executeOntapDeleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); executeOntapPatchSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + restoreVolumeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + restoreVolumeOperationSettings = OperationCallSettings.newBuilder(); + listBackupConfigsSettings = PagedCallSettings.newBuilder(LIST_BACKUP_CONFIGS_PAGE_STR_FACT); + updateBackupConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateBackupConfigOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -2488,6 +2654,8 @@ protected Builder(@Nullable ClientContext clientContext) { updateVolumeSettings, deleteVolumeSettings, revertVolumeSettings, + startSplitSettings, + getSplitStatusSettings, establishVolumePeeringSettings, listSnapshotsSettings, getSnapshotSettings, @@ -2546,6 +2714,9 @@ protected Builder(@Nullable ClientContext clientContext) { executeOntapGetSettings, executeOntapDeleteSettings, executeOntapPatchSettings, + restoreVolumeSettings, + listBackupConfigsSettings, + updateBackupConfigSettings, listLocationsSettings, getLocationSettings); initDefaults(this); @@ -2578,6 +2749,9 @@ protected Builder(NetAppStubSettings settings) { deleteVolumeOperationSettings = settings.deleteVolumeOperationSettings.toBuilder(); revertVolumeSettings = settings.revertVolumeSettings.toBuilder(); revertVolumeOperationSettings = settings.revertVolumeOperationSettings.toBuilder(); + startSplitSettings = settings.startSplitSettings.toBuilder(); + startSplitOperationSettings = settings.startSplitOperationSettings.toBuilder(); + getSplitStatusSettings = settings.getSplitStatusSettings.toBuilder(); establishVolumePeeringSettings = settings.establishVolumePeeringSettings.toBuilder(); establishVolumePeeringOperationSettings = settings.establishVolumePeeringOperationSettings.toBuilder(); @@ -2681,6 +2855,12 @@ protected Builder(NetAppStubSettings settings) { executeOntapGetSettings = settings.executeOntapGetSettings.toBuilder(); executeOntapDeleteSettings = settings.executeOntapDeleteSettings.toBuilder(); executeOntapPatchSettings = settings.executeOntapPatchSettings.toBuilder(); + restoreVolumeSettings = settings.restoreVolumeSettings.toBuilder(); + restoreVolumeOperationSettings = settings.restoreVolumeOperationSettings.toBuilder(); + listBackupConfigsSettings = settings.listBackupConfigsSettings.toBuilder(); + updateBackupConfigSettings = settings.updateBackupConfigSettings.toBuilder(); + updateBackupConfigOperationSettings = + settings.updateBackupConfigOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); @@ -2699,6 +2879,8 @@ protected Builder(NetAppStubSettings settings) { updateVolumeSettings, deleteVolumeSettings, revertVolumeSettings, + startSplitSettings, + getSplitStatusSettings, establishVolumePeeringSettings, listSnapshotsSettings, getSnapshotSettings, @@ -2757,6 +2939,9 @@ protected Builder(NetAppStubSettings settings) { executeOntapGetSettings, executeOntapDeleteSettings, executeOntapPatchSettings, + restoreVolumeSettings, + listBackupConfigsSettings, + updateBackupConfigSettings, listLocationsSettings, getLocationSettings); } @@ -2851,6 +3036,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .startSplitSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getSplitStatusSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .establishVolumePeeringSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -3141,6 +3336,21 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .restoreVolumeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listBackupConfigsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateBackupConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -3367,6 +3577,29 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .startSplitOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Volume.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 .establishVolumePeeringOperationSettings() .setInitialCallSettings( @@ -4209,6 +4442,55 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .restoreVolumeOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(RestoreVolumeResponse.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 + .updateBackupConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + UpdateBackupConfigResponse.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; } @@ -4356,6 +4638,22 @@ public UnaryCallSettings.Builder revertVolumeSet return revertVolumeOperationSettings; } + /** Returns the builder for the settings used for calls to startSplit. */ + public UnaryCallSettings.Builder startSplitSettings() { + return startSplitSettings; + } + + /** Returns the builder for the settings used for calls to startSplit. */ + public OperationCallSettings.Builder + startSplitOperationSettings() { + return startSplitOperationSettings; + } + + /** Returns the builder for the settings used for calls to getSplitStatus. */ + public UnaryCallSettings.Builder getSplitStatusSettings() { + return getSplitStatusSettings; + } + /** Returns the builder for the settings used for calls to establishVolumePeering. */ public UnaryCallSettings.Builder establishVolumePeeringSettings() { @@ -4904,6 +5202,38 @@ public UnaryCallSettings.Builder deleteHostGr return executeOntapPatchSettings; } + /** Returns the builder for the settings used for calls to restoreVolume. */ + public UnaryCallSettings.Builder restoreVolumeSettings() { + return restoreVolumeSettings; + } + + /** Returns the builder for the settings used for calls to restoreVolume. */ + public OperationCallSettings.Builder< + RestoreVolumeRequest, RestoreVolumeResponse, OperationMetadata> + restoreVolumeOperationSettings() { + return restoreVolumeOperationSettings; + } + + /** Returns the builder for the settings used for calls to listBackupConfigs. */ + public PagedCallSettings.Builder< + ListBackupConfigsRequest, ListBackupConfigsResponse, ListBackupConfigsPagedResponse> + listBackupConfigsSettings() { + return listBackupConfigsSettings; + } + + /** Returns the builder for the settings used for calls to updateBackupConfig. */ + public UnaryCallSettings.Builder + updateBackupConfigSettings() { + return updateBackupConfigSettings; + } + + /** Returns the builder for the settings used for calls to updateBackupConfig. */ + public OperationCallSettings.Builder< + UpdateBackupConfigRequest, UpdateBackupConfigResponse, OperationMetadata> + updateBackupConfigOperationSettings() { + return updateBackupConfigOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-netapp/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json b/java-netapp/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json index 1166f4326cf7..91b3efeaa893 100644 --- a/java-netapp/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json +++ b/java-netapp/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json @@ -710,6 +710,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.netapp.v1.BackupSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.BackupSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.netapp.v1.BackupVault", "queryAllDeclaredConstructors": true, @@ -1700,6 +1718,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.netapp.v1.GetSplitStatusRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.GetSplitStatusRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.netapp.v1.GetStoragePoolRequest", "queryAllDeclaredConstructors": true, @@ -1925,6 +1961,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.netapp.v1.ListBackupConfigsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.ListBackupConfigsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.ListBackupConfigsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.ListBackupConfigsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.netapp.v1.ListBackupPoliciesRequest", "queryAllDeclaredConstructors": true, @@ -2303,6 +2375,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.netapp.v1.LocationMetadata$FlexPerformanceTier", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.netapp.v1.Mode", "queryAllDeclaredConstructors": true, @@ -2348,6 +2429,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.netapp.v1.OntapSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.OntapSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.OntapVolumeTarget", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.OntapVolumeTarget$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.netapp.v1.OperationMetadata", "queryAllDeclaredConstructors": true, @@ -2546,6 +2663,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.netapp.v1.RestoreVolumeRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.RestoreVolumeRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.RestoreVolumeResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.RestoreVolumeResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.netapp.v1.RestrictedAction", "queryAllDeclaredConstructors": true, @@ -2717,6 +2870,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.netapp.v1.SplitState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.SplitStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.SplitStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.StartSplitRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.StartSplitRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.netapp.v1.StopReplicationRequest", "queryAllDeclaredConstructors": true, @@ -2870,6 +3068,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.netapp.v1.UpdateBackupConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.UpdateBackupConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.UpdateBackupConfigResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.UpdateBackupConfigResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.netapp.v1.UpdateBackupPolicyRequest", "queryAllDeclaredConstructors": true, @@ -3167,6 +3401,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.netapp.v1.VolumeBackupConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.VolumeBackupConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.netapp.v1.WeeklySchedule", "queryAllDeclaredConstructors": true, diff --git a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/MockNetAppImpl.java b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/MockNetAppImpl.java index 5a4fb80bd456..6605e50c478e 100644 --- a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/MockNetAppImpl.java +++ b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/MockNetAppImpl.java @@ -333,6 +333,47 @@ public void revertVolume( } } + @Override + public void startSplit(StartSplitRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method StartSplit, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getSplitStatus( + GetSplitStatusRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SplitStatus) { + requests.add(request); + responseObserver.onNext(((SplitStatus) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSplitStatus, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SplitStatus.class.getName(), + Exception.class.getName()))); + } + } + @Override public void establishVolumePeering( EstablishVolumePeeringRequest request, StreamObserver responseObserver) { @@ -1558,4 +1599,68 @@ public void executeOntapPatch( Exception.class.getName()))); } } + + @Override + public void restoreVolume( + RestoreVolumeRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method RestoreVolume, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listBackupConfigs( + ListBackupConfigsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListBackupConfigsResponse) { + requests.add(request); + responseObserver.onNext(((ListBackupConfigsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListBackupConfigs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListBackupConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateBackupConfig( + UpdateBackupConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateBackupConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java index 62226d07f6e7..3e2963e49bb3 100644 --- a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java +++ b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java @@ -17,6 +17,7 @@ package com.google.cloud.netapp.v1; import static com.google.cloud.netapp.v1.NetAppClient.ListActiveDirectoriesPagedResponse; +import static com.google.cloud.netapp.v1.NetAppClient.ListBackupConfigsPagedResponse; import static com.google.cloud.netapp.v1.NetAppClient.ListBackupPoliciesPagedResponse; import static com.google.cloud.netapp.v1.NetAppClient.ListBackupVaultsPagedResponse; import static com.google.cloud.netapp.v1.NetAppClient.ListBackupsPagedResponse; @@ -1765,6 +1766,284 @@ public void revertVolumeExceptionTest() throws Exception { } } + @Test + public void startSplitTest() throws Exception { + Volume expectedResponse = + Volume.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setStateDetails("stateDetails1730982001") + .setCreateTime(Timestamp.newBuilder().build()) + .setShareName("shareName-1582221558") + .setPsaRange("psaRange-534274785") + .setStoragePool( + StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString()) + .setNetwork("network1843485230") + .setServiceLevel(ServiceLevel.forNumber(0)) + .setCapacityGib(498394811) + .setExportPolicy(ExportPolicy.newBuilder().build()) + .addAllProtocols(new ArrayList()) + .addAllSmbSettings(new ArrayList()) + .addAllMountOptions(new ArrayList()) + .setUnixPermissions("unixPermissions882114012") + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setSnapshotPolicy(SnapshotPolicy.newBuilder().build()) + .setSnapReserve(-1429587641) + .setSnapshotDirectory(true) + .setUsedGib(-279083970) + .setSecurityStyle(SecurityStyle.forNumber(0)) + .setKerberosEnabled(true) + .setLdapEnabled(true) + .setActiveDirectory( + ActiveDirectoryName.of("[PROJECT]", "[LOCATION]", "[ACTIVE_DIRECTORY]").toString()) + .setRestoreParameters(RestoreParameters.newBuilder().build()) + .setKmsConfig(KmsConfigName.of("[PROJECT]", "[LOCATION]", "[KMS_CONFIG]").toString()) + .setEncryptionType(EncryptionType.forNumber(0)) + .setHasReplication(true) + .setBackupConfig(BackupConfig.newBuilder().build()) + .addAllRestrictedActions(new ArrayList()) + .setLargeCapacity(true) + .setMultipleEndpoints(true) + .setTieringPolicy(TieringPolicy.newBuilder().build()) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") + .setColdTierSizeGib(212809252) + .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) + .setThroughputMibps(1498696820) + .setCacheParameters(CacheParameters.newBuilder().build()) + .setHotTierSizeUsedGib(-151116719) + .addAllBlockDevices(new ArrayList()) + .setLargeCapacityConfig(LargeCapacityConfig.newBuilder().build()) + .setCloneDetails(Volume.CloneDetails.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("startSplitTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + VolumeName name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + + Volume actualResponse = client.startSplitAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void startSplitExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + VolumeName name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + client.startSplitAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void startSplitTest2() throws Exception { + Volume expectedResponse = + Volume.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setStateDetails("stateDetails1730982001") + .setCreateTime(Timestamp.newBuilder().build()) + .setShareName("shareName-1582221558") + .setPsaRange("psaRange-534274785") + .setStoragePool( + StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString()) + .setNetwork("network1843485230") + .setServiceLevel(ServiceLevel.forNumber(0)) + .setCapacityGib(498394811) + .setExportPolicy(ExportPolicy.newBuilder().build()) + .addAllProtocols(new ArrayList()) + .addAllSmbSettings(new ArrayList()) + .addAllMountOptions(new ArrayList()) + .setUnixPermissions("unixPermissions882114012") + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setSnapshotPolicy(SnapshotPolicy.newBuilder().build()) + .setSnapReserve(-1429587641) + .setSnapshotDirectory(true) + .setUsedGib(-279083970) + .setSecurityStyle(SecurityStyle.forNumber(0)) + .setKerberosEnabled(true) + .setLdapEnabled(true) + .setActiveDirectory( + ActiveDirectoryName.of("[PROJECT]", "[LOCATION]", "[ACTIVE_DIRECTORY]").toString()) + .setRestoreParameters(RestoreParameters.newBuilder().build()) + .setKmsConfig(KmsConfigName.of("[PROJECT]", "[LOCATION]", "[KMS_CONFIG]").toString()) + .setEncryptionType(EncryptionType.forNumber(0)) + .setHasReplication(true) + .setBackupConfig(BackupConfig.newBuilder().build()) + .addAllRestrictedActions(new ArrayList()) + .setLargeCapacity(true) + .setMultipleEndpoints(true) + .setTieringPolicy(TieringPolicy.newBuilder().build()) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") + .setColdTierSizeGib(212809252) + .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) + .setThroughputMibps(1498696820) + .setCacheParameters(CacheParameters.newBuilder().build()) + .setHotTierSizeUsedGib(-151116719) + .addAllBlockDevices(new ArrayList()) + .setLargeCapacityConfig(LargeCapacityConfig.newBuilder().build()) + .setCloneDetails(Volume.CloneDetails.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("startSplitTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-4193/locations/location-4193/volumes/volume-4193"; + + Volume actualResponse = client.startSplitAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void startSplitExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4193/locations/location-4193/volumes/volume-4193"; + client.startSplitAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getSplitStatusTest() throws Exception { + SplitStatus expectedResponse = + SplitStatus.newBuilder() + .setSplitState(SplitState.forNumber(0)) + .setStateDetails("stateDetails1730982001") + .setProgressPercent(-2137894861) + .build(); + mockService.addResponse(expectedResponse); + + VolumeName name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + + SplitStatus actualResponse = client.getSplitStatus(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSplitStatusExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + VolumeName name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + client.getSplitStatus(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSplitStatusTest2() throws Exception { + SplitStatus expectedResponse = + SplitStatus.newBuilder() + .setSplitState(SplitState.forNumber(0)) + .setStateDetails("stateDetails1730982001") + .setProgressPercent(-2137894861) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4193/locations/location-4193/volumes/volume-4193"; + + SplitStatus actualResponse = client.getSplitStatus(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSplitStatusExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4193/locations/location-4193/volumes/volume-4193"; + client.getSplitStatus(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void establishVolumePeeringTest() throws Exception { Volume expectedResponse = @@ -5033,6 +5312,7 @@ public void createBackupTest() throws Exception { .setVolumeRegion(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setBackupRegion(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setEnforcedRetentionEndTime(Timestamp.newBuilder().build()) + .setOntapSource(OntapSource.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -5100,6 +5380,7 @@ public void createBackupTest2() throws Exception { .setVolumeRegion(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setBackupRegion(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setEnforcedRetentionEndTime(Timestamp.newBuilder().build()) + .setOntapSource(OntapSource.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -5167,6 +5448,7 @@ public void getBackupTest() throws Exception { .setVolumeRegion(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setBackupRegion(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setEnforcedRetentionEndTime(Timestamp.newBuilder().build()) + .setOntapSource(OntapSource.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -5225,6 +5507,7 @@ public void getBackupTest2() throws Exception { .setVolumeRegion(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setBackupRegion(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setEnforcedRetentionEndTime(Timestamp.newBuilder().build()) + .setOntapSource(OntapSource.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -5477,6 +5760,7 @@ public void updateBackupTest() throws Exception { .setVolumeRegion(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setBackupRegion(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setEnforcedRetentionEndTime(Timestamp.newBuilder().build()) + .setOntapSource(OntapSource.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -5503,6 +5787,7 @@ public void updateBackupTest() throws Exception { .setVolumeRegion(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setBackupRegion(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setEnforcedRetentionEndTime(Timestamp.newBuilder().build()) + .setOntapSource(OntapSource.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -5549,6 +5834,7 @@ public void updateBackupExceptionTest() throws Exception { .setVolumeRegion(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setBackupRegion(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setEnforcedRetentionEndTime(Timestamp.newBuilder().build()) + .setOntapSource(OntapSource.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateBackupAsync(backup, updateMask).get(); @@ -7293,6 +7579,322 @@ public void executeOntapPatchExceptionTest() throws Exception { } } + @Test + public void restoreVolumeTest() throws Exception { + RestoreVolumeResponse expectedResponse = RestoreVolumeResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreVolumeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + StoragePoolName name = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"); + BackupSource backupSource = BackupSource.newBuilder().build(); + OntapVolumeTarget ontapVolumeTarget = OntapVolumeTarget.newBuilder().build(); + + RestoreVolumeResponse actualResponse = + client.restoreVolumeAsync(name, backupSource, ontapVolumeTarget).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void restoreVolumeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + StoragePoolName name = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"); + BackupSource backupSource = BackupSource.newBuilder().build(); + OntapVolumeTarget ontapVolumeTarget = OntapVolumeTarget.newBuilder().build(); + client.restoreVolumeAsync(name, backupSource, ontapVolumeTarget).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void restoreVolumeTest2() throws Exception { + RestoreVolumeResponse expectedResponse = RestoreVolumeResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreVolumeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-1868/locations/location-1868/storagePools/storagePool-1868"; + BackupSource backupSource = BackupSource.newBuilder().build(); + OntapVolumeTarget ontapVolumeTarget = OntapVolumeTarget.newBuilder().build(); + + RestoreVolumeResponse actualResponse = + client.restoreVolumeAsync(name, backupSource, ontapVolumeTarget).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void restoreVolumeExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1868/locations/location-1868/storagePools/storagePool-1868"; + BackupSource backupSource = BackupSource.newBuilder().build(); + OntapVolumeTarget ontapVolumeTarget = OntapVolumeTarget.newBuilder().build(); + client.restoreVolumeAsync(name, backupSource, ontapVolumeTarget).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listBackupConfigsTest() throws Exception { + VolumeBackupConfig responsesElement = VolumeBackupConfig.newBuilder().build(); + ListBackupConfigsResponse expectedResponse = + ListBackupConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVolumeBackupConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + StoragePoolName parent = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"); + + ListBackupConfigsPagedResponse pagedListResponse = client.listBackupConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVolumeBackupConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBackupConfigsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + StoragePoolName parent = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"); + client.listBackupConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBackupConfigsTest2() throws Exception { + VolumeBackupConfig responsesElement = VolumeBackupConfig.newBuilder().build(); + ListBackupConfigsResponse expectedResponse = + ListBackupConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVolumeBackupConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-7693/locations/location-7693/storagePools/storagePool-7693"; + + ListBackupConfigsPagedResponse pagedListResponse = client.listBackupConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVolumeBackupConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBackupConfigsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-7693/locations/location-7693/storagePools/storagePool-7693"; + client.listBackupConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateBackupConfigTest() throws Exception { + UpdateBackupConfigResponse expectedResponse = + UpdateBackupConfigResponse.newBuilder() + .setVolumeUuid("volumeUuid-1552535051") + .setBackupConfig(BackupConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateBackupConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + StoragePoolName name = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"); + String volumeUuid = "volumeUuid-1552535051"; + BackupConfig backupConfig = BackupConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + UpdateBackupConfigResponse actualResponse = + client.updateBackupConfigAsync(name, volumeUuid, backupConfig, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateBackupConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + StoragePoolName name = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"); + String volumeUuid = "volumeUuid-1552535051"; + BackupConfig backupConfig = BackupConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateBackupConfigAsync(name, volumeUuid, backupConfig, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateBackupConfigTest2() throws Exception { + UpdateBackupConfigResponse expectedResponse = + UpdateBackupConfigResponse.newBuilder() + .setVolumeUuid("volumeUuid-1552535051") + .setBackupConfig(BackupConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateBackupConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-1868/locations/location-1868/storagePools/storagePool-1868"; + String volumeUuid = "volumeUuid-1552535051"; + BackupConfig backupConfig = BackupConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + UpdateBackupConfigResponse actualResponse = + client.updateBackupConfigAsync(name, volumeUuid, backupConfig, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateBackupConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1868/locations/location-1868/storagePools/storagePool-1868"; + String volumeUuid = "volumeUuid-1552535051"; + BackupConfig backupConfig = BackupConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateBackupConfigAsync(name, volumeUuid, backupConfig, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java index cb07f7560e6e..4033bd9e53ac 100644 --- a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java +++ b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java @@ -17,6 +17,7 @@ package com.google.cloud.netapp.v1; import static com.google.cloud.netapp.v1.NetAppClient.ListActiveDirectoriesPagedResponse; +import static com.google.cloud.netapp.v1.NetAppClient.ListBackupConfigsPagedResponse; import static com.google.cloud.netapp.v1.NetAppClient.ListBackupPoliciesPagedResponse; import static com.google.cloud.netapp.v1.NetAppClient.ListBackupVaultsPagedResponse; import static com.google.cloud.netapp.v1.NetAppClient.ListBackupsPagedResponse; @@ -1532,6 +1533,266 @@ public void revertVolumeExceptionTest() throws Exception { } } + @Test + public void startSplitTest() throws Exception { + Volume expectedResponse = + Volume.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setStateDetails("stateDetails1730982001") + .setCreateTime(Timestamp.newBuilder().build()) + .setShareName("shareName-1582221558") + .setPsaRange("psaRange-534274785") + .setStoragePool( + StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString()) + .setNetwork("network1843485230") + .setServiceLevel(ServiceLevel.forNumber(0)) + .setCapacityGib(498394811) + .setExportPolicy(ExportPolicy.newBuilder().build()) + .addAllProtocols(new ArrayList()) + .addAllSmbSettings(new ArrayList()) + .addAllMountOptions(new ArrayList()) + .setUnixPermissions("unixPermissions882114012") + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setSnapshotPolicy(SnapshotPolicy.newBuilder().build()) + .setSnapReserve(-1429587641) + .setSnapshotDirectory(true) + .setUsedGib(-279083970) + .setSecurityStyle(SecurityStyle.forNumber(0)) + .setKerberosEnabled(true) + .setLdapEnabled(true) + .setActiveDirectory( + ActiveDirectoryName.of("[PROJECT]", "[LOCATION]", "[ACTIVE_DIRECTORY]").toString()) + .setRestoreParameters(RestoreParameters.newBuilder().build()) + .setKmsConfig(KmsConfigName.of("[PROJECT]", "[LOCATION]", "[KMS_CONFIG]").toString()) + .setEncryptionType(EncryptionType.forNumber(0)) + .setHasReplication(true) + .setBackupConfig(BackupConfig.newBuilder().build()) + .addAllRestrictedActions(new ArrayList()) + .setLargeCapacity(true) + .setMultipleEndpoints(true) + .setTieringPolicy(TieringPolicy.newBuilder().build()) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") + .setColdTierSizeGib(212809252) + .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) + .setThroughputMibps(1498696820) + .setCacheParameters(CacheParameters.newBuilder().build()) + .setHotTierSizeUsedGib(-151116719) + .addAllBlockDevices(new ArrayList()) + .setLargeCapacityConfig(LargeCapacityConfig.newBuilder().build()) + .setCloneDetails(Volume.CloneDetails.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("startSplitTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetApp.addResponse(resultOperation); + + VolumeName name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + + Volume actualResponse = client.startSplitAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetApp.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + StartSplitRequest actualRequest = ((StartSplitRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void startSplitExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetApp.addException(exception); + + try { + VolumeName name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + client.startSplitAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void startSplitTest2() throws Exception { + Volume expectedResponse = + Volume.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setStateDetails("stateDetails1730982001") + .setCreateTime(Timestamp.newBuilder().build()) + .setShareName("shareName-1582221558") + .setPsaRange("psaRange-534274785") + .setStoragePool( + StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString()) + .setNetwork("network1843485230") + .setServiceLevel(ServiceLevel.forNumber(0)) + .setCapacityGib(498394811) + .setExportPolicy(ExportPolicy.newBuilder().build()) + .addAllProtocols(new ArrayList()) + .addAllSmbSettings(new ArrayList()) + .addAllMountOptions(new ArrayList()) + .setUnixPermissions("unixPermissions882114012") + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setSnapshotPolicy(SnapshotPolicy.newBuilder().build()) + .setSnapReserve(-1429587641) + .setSnapshotDirectory(true) + .setUsedGib(-279083970) + .setSecurityStyle(SecurityStyle.forNumber(0)) + .setKerberosEnabled(true) + .setLdapEnabled(true) + .setActiveDirectory( + ActiveDirectoryName.of("[PROJECT]", "[LOCATION]", "[ACTIVE_DIRECTORY]").toString()) + .setRestoreParameters(RestoreParameters.newBuilder().build()) + .setKmsConfig(KmsConfigName.of("[PROJECT]", "[LOCATION]", "[KMS_CONFIG]").toString()) + .setEncryptionType(EncryptionType.forNumber(0)) + .setHasReplication(true) + .setBackupConfig(BackupConfig.newBuilder().build()) + .addAllRestrictedActions(new ArrayList()) + .setLargeCapacity(true) + .setMultipleEndpoints(true) + .setTieringPolicy(TieringPolicy.newBuilder().build()) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") + .setColdTierSizeGib(212809252) + .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) + .setThroughputMibps(1498696820) + .setCacheParameters(CacheParameters.newBuilder().build()) + .setHotTierSizeUsedGib(-151116719) + .addAllBlockDevices(new ArrayList()) + .setLargeCapacityConfig(LargeCapacityConfig.newBuilder().build()) + .setCloneDetails(Volume.CloneDetails.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("startSplitTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetApp.addResponse(resultOperation); + + String name = "name3373707"; + + Volume actualResponse = client.startSplitAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetApp.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + StartSplitRequest actualRequest = ((StartSplitRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void startSplitExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetApp.addException(exception); + + try { + String name = "name3373707"; + client.startSplitAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getSplitStatusTest() throws Exception { + SplitStatus expectedResponse = + SplitStatus.newBuilder() + .setSplitState(SplitState.forNumber(0)) + .setStateDetails("stateDetails1730982001") + .setProgressPercent(-2137894861) + .build(); + mockNetApp.addResponse(expectedResponse); + + VolumeName name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + + SplitStatus actualResponse = client.getSplitStatus(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetApp.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSplitStatusRequest actualRequest = ((GetSplitStatusRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSplitStatusExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetApp.addException(exception); + + try { + VolumeName name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + client.getSplitStatus(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSplitStatusTest2() throws Exception { + SplitStatus expectedResponse = + SplitStatus.newBuilder() + .setSplitState(SplitState.forNumber(0)) + .setStateDetails("stateDetails1730982001") + .setProgressPercent(-2137894861) + .build(); + mockNetApp.addResponse(expectedResponse); + + String name = "name3373707"; + + SplitStatus actualResponse = client.getSplitStatus(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetApp.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSplitStatusRequest actualRequest = ((GetSplitStatusRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSplitStatusExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetApp.addException(exception); + + try { + String name = "name3373707"; + client.getSplitStatus(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void establishVolumePeeringTest() throws Exception { Volume expectedResponse = @@ -4458,6 +4719,7 @@ public void createBackupTest() throws Exception { .setVolumeRegion(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setBackupRegion(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setEnforcedRetentionEndTime(Timestamp.newBuilder().build()) + .setOntapSource(OntapSource.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -4524,6 +4786,7 @@ public void createBackupTest2() throws Exception { .setVolumeRegion(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setBackupRegion(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setEnforcedRetentionEndTime(Timestamp.newBuilder().build()) + .setOntapSource(OntapSource.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -4590,6 +4853,7 @@ public void getBackupTest() throws Exception { .setVolumeRegion(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setBackupRegion(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setEnforcedRetentionEndTime(Timestamp.newBuilder().build()) + .setOntapSource(OntapSource.newBuilder().build()) .build(); mockNetApp.addResponse(expectedResponse); @@ -4642,6 +4906,7 @@ public void getBackupTest2() throws Exception { .setVolumeRegion(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setBackupRegion(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setEnforcedRetentionEndTime(Timestamp.newBuilder().build()) + .setOntapSource(OntapSource.newBuilder().build()) .build(); mockNetApp.addResponse(expectedResponse); @@ -4866,6 +5131,7 @@ public void updateBackupTest() throws Exception { .setVolumeRegion(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setBackupRegion(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setEnforcedRetentionEndTime(Timestamp.newBuilder().build()) + .setOntapSource(OntapSource.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -6442,6 +6708,308 @@ public void executeOntapPatchExceptionTest() throws Exception { } } + @Test + public void restoreVolumeTest() throws Exception { + RestoreVolumeResponse expectedResponse = RestoreVolumeResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreVolumeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetApp.addResponse(resultOperation); + + StoragePoolName name = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"); + BackupSource backupSource = BackupSource.newBuilder().build(); + OntapVolumeTarget ontapVolumeTarget = OntapVolumeTarget.newBuilder().build(); + + RestoreVolumeResponse actualResponse = + client.restoreVolumeAsync(name, backupSource, ontapVolumeTarget).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetApp.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreVolumeRequest actualRequest = ((RestoreVolumeRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(backupSource, actualRequest.getBackupSource()); + Assert.assertEquals(ontapVolumeTarget, actualRequest.getOntapVolumeTarget()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreVolumeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetApp.addException(exception); + + try { + StoragePoolName name = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"); + BackupSource backupSource = BackupSource.newBuilder().build(); + OntapVolumeTarget ontapVolumeTarget = OntapVolumeTarget.newBuilder().build(); + client.restoreVolumeAsync(name, backupSource, ontapVolumeTarget).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void restoreVolumeTest2() throws Exception { + RestoreVolumeResponse expectedResponse = RestoreVolumeResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreVolumeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetApp.addResponse(resultOperation); + + String name = "name3373707"; + BackupSource backupSource = BackupSource.newBuilder().build(); + OntapVolumeTarget ontapVolumeTarget = OntapVolumeTarget.newBuilder().build(); + + RestoreVolumeResponse actualResponse = + client.restoreVolumeAsync(name, backupSource, ontapVolumeTarget).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetApp.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreVolumeRequest actualRequest = ((RestoreVolumeRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(backupSource, actualRequest.getBackupSource()); + Assert.assertEquals(ontapVolumeTarget, actualRequest.getOntapVolumeTarget()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreVolumeExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetApp.addException(exception); + + try { + String name = "name3373707"; + BackupSource backupSource = BackupSource.newBuilder().build(); + OntapVolumeTarget ontapVolumeTarget = OntapVolumeTarget.newBuilder().build(); + client.restoreVolumeAsync(name, backupSource, ontapVolumeTarget).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listBackupConfigsTest() throws Exception { + VolumeBackupConfig responsesElement = VolumeBackupConfig.newBuilder().build(); + ListBackupConfigsResponse expectedResponse = + ListBackupConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVolumeBackupConfigs(Arrays.asList(responsesElement)) + .build(); + mockNetApp.addResponse(expectedResponse); + + StoragePoolName parent = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"); + + ListBackupConfigsPagedResponse pagedListResponse = client.listBackupConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVolumeBackupConfigsList().get(0), resources.get(0)); + + List actualRequests = mockNetApp.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBackupConfigsRequest actualRequest = ((ListBackupConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBackupConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetApp.addException(exception); + + try { + StoragePoolName parent = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"); + client.listBackupConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBackupConfigsTest2() throws Exception { + VolumeBackupConfig responsesElement = VolumeBackupConfig.newBuilder().build(); + ListBackupConfigsResponse expectedResponse = + ListBackupConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVolumeBackupConfigs(Arrays.asList(responsesElement)) + .build(); + mockNetApp.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListBackupConfigsPagedResponse pagedListResponse = client.listBackupConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVolumeBackupConfigsList().get(0), resources.get(0)); + + List actualRequests = mockNetApp.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBackupConfigsRequest actualRequest = ((ListBackupConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBackupConfigsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetApp.addException(exception); + + try { + String parent = "parent-995424086"; + client.listBackupConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateBackupConfigTest() throws Exception { + UpdateBackupConfigResponse expectedResponse = + UpdateBackupConfigResponse.newBuilder() + .setVolumeUuid("volumeUuid-1552535051") + .setBackupConfig(BackupConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateBackupConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetApp.addResponse(resultOperation); + + StoragePoolName name = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"); + String volumeUuid = "volumeUuid-1552535051"; + BackupConfig backupConfig = BackupConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + UpdateBackupConfigResponse actualResponse = + client.updateBackupConfigAsync(name, volumeUuid, backupConfig, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetApp.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateBackupConfigRequest actualRequest = ((UpdateBackupConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(volumeUuid, actualRequest.getVolumeUuid()); + Assert.assertEquals(backupConfig, actualRequest.getBackupConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateBackupConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetApp.addException(exception); + + try { + StoragePoolName name = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"); + String volumeUuid = "volumeUuid-1552535051"; + BackupConfig backupConfig = BackupConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateBackupConfigAsync(name, volumeUuid, backupConfig, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateBackupConfigTest2() throws Exception { + UpdateBackupConfigResponse expectedResponse = + UpdateBackupConfigResponse.newBuilder() + .setVolumeUuid("volumeUuid-1552535051") + .setBackupConfig(BackupConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateBackupConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetApp.addResponse(resultOperation); + + String name = "name3373707"; + String volumeUuid = "volumeUuid-1552535051"; + BackupConfig backupConfig = BackupConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + UpdateBackupConfigResponse actualResponse = + client.updateBackupConfigAsync(name, volumeUuid, backupConfig, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetApp.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateBackupConfigRequest actualRequest = ((UpdateBackupConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(volumeUuid, actualRequest.getVolumeUuid()); + Assert.assertEquals(backupConfig, actualRequest.getBackupConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateBackupConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetApp.addException(exception); + + try { + String name = "name3373707"; + String volumeUuid = "volumeUuid-1552535051"; + BackupConfig backupConfig = BackupConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateBackupConfigAsync(name, volumeUuid, backupConfig, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-netapp/grpc-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/NetAppGrpc.java b/java-netapp/grpc-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/NetAppGrpc.java index 7c8dd23dbfca..580ffe8b849a 100644 --- a/java-netapp/grpc-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/NetAppGrpc.java +++ b/java-netapp/grpc-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/NetAppGrpc.java @@ -593,6 +593,90 @@ private NetAppGrpc() {} return getRevertVolumeMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.netapp.v1.StartSplitRequest, com.google.longrunning.Operation> + getStartSplitMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartSplit", + requestType = com.google.cloud.netapp.v1.StartSplitRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.netapp.v1.StartSplitRequest, com.google.longrunning.Operation> + getStartSplitMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.netapp.v1.StartSplitRequest, com.google.longrunning.Operation> + getStartSplitMethod; + if ((getStartSplitMethod = NetAppGrpc.getStartSplitMethod) == null) { + synchronized (NetAppGrpc.class) { + if ((getStartSplitMethod = NetAppGrpc.getStartSplitMethod) == null) { + NetAppGrpc.getStartSplitMethod = + getStartSplitMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartSplit")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.netapp.v1.StartSplitRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NetAppMethodDescriptorSupplier("StartSplit")) + .build(); + } + } + } + return getStartSplitMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.netapp.v1.GetSplitStatusRequest, com.google.cloud.netapp.v1.SplitStatus> + getGetSplitStatusMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSplitStatus", + requestType = com.google.cloud.netapp.v1.GetSplitStatusRequest.class, + responseType = com.google.cloud.netapp.v1.SplitStatus.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.netapp.v1.GetSplitStatusRequest, com.google.cloud.netapp.v1.SplitStatus> + getGetSplitStatusMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.netapp.v1.GetSplitStatusRequest, + com.google.cloud.netapp.v1.SplitStatus> + getGetSplitStatusMethod; + if ((getGetSplitStatusMethod = NetAppGrpc.getGetSplitStatusMethod) == null) { + synchronized (NetAppGrpc.class) { + if ((getGetSplitStatusMethod = NetAppGrpc.getGetSplitStatusMethod) == null) { + NetAppGrpc.getGetSplitStatusMethod = + getGetSplitStatusMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSplitStatus")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.netapp.v1.GetSplitStatusRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.netapp.v1.SplitStatus.getDefaultInstance())) + .setSchemaDescriptor(new NetAppMethodDescriptorSupplier("GetSplitStatus")) + .build(); + } + } + } + return getGetSplitStatusMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.netapp.v1.EstablishVolumePeeringRequest, com.google.longrunning.Operation> @@ -3106,6 +3190,135 @@ private NetAppGrpc() {} return getExecuteOntapPatchMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.netapp.v1.RestoreVolumeRequest, com.google.longrunning.Operation> + getRestoreVolumeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RestoreVolume", + requestType = com.google.cloud.netapp.v1.RestoreVolumeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.netapp.v1.RestoreVolumeRequest, com.google.longrunning.Operation> + getRestoreVolumeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.netapp.v1.RestoreVolumeRequest, com.google.longrunning.Operation> + getRestoreVolumeMethod; + if ((getRestoreVolumeMethod = NetAppGrpc.getRestoreVolumeMethod) == null) { + synchronized (NetAppGrpc.class) { + if ((getRestoreVolumeMethod = NetAppGrpc.getRestoreVolumeMethod) == null) { + NetAppGrpc.getRestoreVolumeMethod = + getRestoreVolumeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreVolume")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.netapp.v1.RestoreVolumeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NetAppMethodDescriptorSupplier("RestoreVolume")) + .build(); + } + } + } + return getRestoreVolumeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.netapp.v1.ListBackupConfigsRequest, + com.google.cloud.netapp.v1.ListBackupConfigsResponse> + getListBackupConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBackupConfigs", + requestType = com.google.cloud.netapp.v1.ListBackupConfigsRequest.class, + responseType = com.google.cloud.netapp.v1.ListBackupConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.netapp.v1.ListBackupConfigsRequest, + com.google.cloud.netapp.v1.ListBackupConfigsResponse> + getListBackupConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.netapp.v1.ListBackupConfigsRequest, + com.google.cloud.netapp.v1.ListBackupConfigsResponse> + getListBackupConfigsMethod; + if ((getListBackupConfigsMethod = NetAppGrpc.getListBackupConfigsMethod) == null) { + synchronized (NetAppGrpc.class) { + if ((getListBackupConfigsMethod = NetAppGrpc.getListBackupConfigsMethod) == null) { + NetAppGrpc.getListBackupConfigsMethod = + getListBackupConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBackupConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.netapp.v1.ListBackupConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.netapp.v1.ListBackupConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new NetAppMethodDescriptorSupplier("ListBackupConfigs")) + .build(); + } + } + } + return getListBackupConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.netapp.v1.UpdateBackupConfigRequest, com.google.longrunning.Operation> + getUpdateBackupConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateBackupConfig", + requestType = com.google.cloud.netapp.v1.UpdateBackupConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.netapp.v1.UpdateBackupConfigRequest, com.google.longrunning.Operation> + getUpdateBackupConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.netapp.v1.UpdateBackupConfigRequest, com.google.longrunning.Operation> + getUpdateBackupConfigMethod; + if ((getUpdateBackupConfigMethod = NetAppGrpc.getUpdateBackupConfigMethod) == null) { + synchronized (NetAppGrpc.class) { + if ((getUpdateBackupConfigMethod = NetAppGrpc.getUpdateBackupConfigMethod) == null) { + NetAppGrpc.getUpdateBackupConfigMethod = + getUpdateBackupConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBackupConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.netapp.v1.UpdateBackupConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NetAppMethodDescriptorSupplier("UpdateBackupConfig")) + .build(); + } + } + } + return getUpdateBackupConfigMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static NetAppStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -3355,6 +3568,38 @@ default void revertVolume( getRevertVolumeMethod(), responseObserver); } + /** + * + * + *

          +     * Splits a clone volume from its source volume.
          +     * This operation will only work for volumes which have clone_details
          +     * set(clones).
          +     * For volumes that are not clones, this operation will return an error.
          +     * 
          + */ + default void startSplit( + com.google.cloud.netapp.v1.StartSplitRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartSplitMethod(), responseObserver); + } + + /** + * + * + *
          +     * Retrieves the current state, progress, and details of a split operation for
          +     * a volume. This method is relevant when the volume is a clone. For volumes
          +     * that are not clones, this method will return an error.
          +     * 
          + */ + default void getSplitStatus( + com.google.cloud.netapp.v1.GetSplitStatusRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSplitStatusMethod(), responseObserver); + } + /** * * @@ -4133,7 +4378,7 @@ default void deleteHostGroup( * * *
          -     * `ExecuteOntapPost` dispatches the ONTAP `POST` request to the
          +     * `ExecuteOntapPost` sends the ONTAP `POST` request to the
                * `StoragePool` cluster.
                * 
          */ @@ -4149,7 +4394,7 @@ default void executeOntapPost( * * *
          -     * `ExecuteOntapGet` dispatches the ONTAP `GET` request to the
          +     * `ExecuteOntapGet` sends the ONTAP `GET` request to the
                * `StoragePool` cluster.
                * 
          */ @@ -4165,7 +4410,7 @@ default void executeOntapGet( * * *
          -     * `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the
          +     * `ExecuteOntapDelete` sends the ONTAP `DELETE` request to the
                * `StoragePool` cluster.
                * 
          */ @@ -4181,7 +4426,7 @@ default void executeOntapDelete( * * *
          -     * `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the
          +     * `ExecuteOntapPatch` sends the ONTAP `PATCH` request to the
                * `StoragePool` cluster.
                * 
          */ @@ -4192,6 +4437,49 @@ default void executeOntapPatch( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getExecuteOntapPatchMethod(), responseObserver); } + + /** + * + * + *
          +     * Restores a backup to an ONTAP-mode volume.
          +     * 
          + */ + default void restoreVolume( + com.google.cloud.netapp.v1.RestoreVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRestoreVolumeMethod(), responseObserver); + } + + /** + * + * + *
          +     * Lists backup configurations for all volumes in an ONTAP-mode Storage Pool.
          +     * 
          + */ + default void listBackupConfigs( + com.google.cloud.netapp.v1.ListBackupConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBackupConfigsMethod(), responseObserver); + } + + /** + * + * + *
          +     * Updates the backup configuration for an ONTAP-mode volume.
          +     * 
          + */ + default void updateBackupConfig( + com.google.cloud.netapp.v1.UpdateBackupConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBackupConfigMethod(), responseObserver); + } } /** @@ -4438,6 +4726,41 @@ public void revertVolume( responseObserver); } + /** + * + * + *
          +     * Splits a clone volume from its source volume.
          +     * This operation will only work for volumes which have clone_details
          +     * set(clones).
          +     * For volumes that are not clones, this operation will return an error.
          +     * 
          + */ + public void startSplit( + com.google.cloud.netapp.v1.StartSplitRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartSplitMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
          +     * Retrieves the current state, progress, and details of a split operation for
          +     * a volume. This method is relevant when the volume is a clone. For volumes
          +     * that are not clones, this method will return an error.
          +     * 
          + */ + public void getSplitStatus( + com.google.cloud.netapp.v1.GetSplitStatusRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSplitStatusMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -5323,7 +5646,7 @@ public void deleteHostGroup( * * *
          -     * `ExecuteOntapPost` dispatches the ONTAP `POST` request to the
          +     * `ExecuteOntapPost` sends the ONTAP `POST` request to the
                * `StoragePool` cluster.
                * 
          */ @@ -5341,7 +5664,7 @@ public void executeOntapPost( * * *
          -     * `ExecuteOntapGet` dispatches the ONTAP `GET` request to the
          +     * `ExecuteOntapGet` sends the ONTAP `GET` request to the
                * `StoragePool` cluster.
                * 
          */ @@ -5359,7 +5682,7 @@ public void executeOntapGet( * * *
          -     * `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the
          +     * `ExecuteOntapDelete` sends the ONTAP `DELETE` request to the
                * `StoragePool` cluster.
                * 
          */ @@ -5377,7 +5700,7 @@ public void executeOntapDelete( * * *
          -     * `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the
          +     * `ExecuteOntapPatch` sends the ONTAP `PATCH` request to the
                * `StoragePool` cluster.
                * 
          */ @@ -5390,6 +5713,55 @@ public void executeOntapPatch( request, responseObserver); } + + /** + * + * + *
          +     * Restores a backup to an ONTAP-mode volume.
          +     * 
          + */ + public void restoreVolume( + com.google.cloud.netapp.v1.RestoreVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRestoreVolumeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Lists backup configurations for all volumes in an ONTAP-mode Storage Pool.
          +     * 
          + */ + public void listBackupConfigs( + com.google.cloud.netapp.v1.ListBackupConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBackupConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Updates the backup configuration for an ONTAP-mode volume.
          +     * 
          + */ + public void updateBackupConfig( + com.google.cloud.netapp.v1.UpdateBackupConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBackupConfigMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -5588,6 +5960,37 @@ public com.google.longrunning.Operation revertVolume( getChannel(), getRevertVolumeMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Splits a clone volume from its source volume.
          +     * This operation will only work for volumes which have clone_details
          +     * set(clones).
          +     * For volumes that are not clones, this operation will return an error.
          +     * 
          + */ + public com.google.longrunning.Operation startSplit( + com.google.cloud.netapp.v1.StartSplitRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getStartSplitMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Retrieves the current state, progress, and details of a split operation for
          +     * a volume. This method is relevant when the volume is a clone. For volumes
          +     * that are not clones, this method will return an error.
          +     * 
          + */ + public com.google.cloud.netapp.v1.SplitStatus getSplitStatus( + com.google.cloud.netapp.v1.GetSplitStatusRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetSplitStatusMethod(), getCallOptions(), request); + } + /** * * @@ -6322,7 +6725,7 @@ public com.google.longrunning.Operation deleteHostGroup( * * *
          -     * `ExecuteOntapPost` dispatches the ONTAP `POST` request to the
          +     * `ExecuteOntapPost` sends the ONTAP `POST` request to the
                * `StoragePool` cluster.
                * 
          */ @@ -6336,7 +6739,7 @@ public com.google.cloud.netapp.v1.ExecuteOntapPostResponse executeOntapPost( * * *
          -     * `ExecuteOntapGet` dispatches the ONTAP `GET` request to the
          +     * `ExecuteOntapGet` sends the ONTAP `GET` request to the
                * `StoragePool` cluster.
                * 
          */ @@ -6350,7 +6753,7 @@ public com.google.cloud.netapp.v1.ExecuteOntapGetResponse executeOntapGet( * * *
          -     * `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the
          +     * `ExecuteOntapDelete` sends the ONTAP `DELETE` request to the
                * `StoragePool` cluster.
                * 
          */ @@ -6365,7 +6768,7 @@ public com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse executeOntapDelete( * * *
          -     * `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the
          +     * `ExecuteOntapPatch` sends the ONTAP `PATCH` request to the
                * `StoragePool` cluster.
                * 
          */ @@ -6375,6 +6778,47 @@ public com.google.cloud.netapp.v1.ExecuteOntapPatchResponse executeOntapPatch( return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExecuteOntapPatchMethod(), getCallOptions(), request); } + + /** + * + * + *
          +     * Restores a backup to an ONTAP-mode volume.
          +     * 
          + */ + public com.google.longrunning.Operation restoreVolume( + com.google.cloud.netapp.v1.RestoreVolumeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRestoreVolumeMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Lists backup configurations for all volumes in an ONTAP-mode Storage Pool.
          +     * 
          + */ + public com.google.cloud.netapp.v1.ListBackupConfigsResponse listBackupConfigs( + com.google.cloud.netapp.v1.ListBackupConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListBackupConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Updates the backup configuration for an ONTAP-mode volume.
          +     * 
          + */ + public com.google.longrunning.Operation updateBackupConfig( + com.google.cloud.netapp.v1.UpdateBackupConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateBackupConfigMethod(), getCallOptions(), request); + } } /** @@ -6568,6 +7012,37 @@ public com.google.longrunning.Operation revertVolume( getChannel(), getRevertVolumeMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Splits a clone volume from its source volume.
          +     * This operation will only work for volumes which have clone_details
          +     * set(clones).
          +     * For volumes that are not clones, this operation will return an error.
          +     * 
          + */ + public com.google.longrunning.Operation startSplit( + com.google.cloud.netapp.v1.StartSplitRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartSplitMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Retrieves the current state, progress, and details of a split operation for
          +     * a volume. This method is relevant when the volume is a clone. For volumes
          +     * that are not clones, this method will return an error.
          +     * 
          + */ + public com.google.cloud.netapp.v1.SplitStatus getSplitStatus( + com.google.cloud.netapp.v1.GetSplitStatusRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSplitStatusMethod(), getCallOptions(), request); + } + /** * * @@ -7283,7 +7758,7 @@ public com.google.longrunning.Operation deleteHostGroup( * * *
          -     * `ExecuteOntapPost` dispatches the ONTAP `POST` request to the
          +     * `ExecuteOntapPost` sends the ONTAP `POST` request to the
                * `StoragePool` cluster.
                * 
          */ @@ -7297,7 +7772,7 @@ public com.google.cloud.netapp.v1.ExecuteOntapPostResponse executeOntapPost( * * *
          -     * `ExecuteOntapGet` dispatches the ONTAP `GET` request to the
          +     * `ExecuteOntapGet` sends the ONTAP `GET` request to the
                * `StoragePool` cluster.
                * 
          */ @@ -7311,7 +7786,7 @@ public com.google.cloud.netapp.v1.ExecuteOntapGetResponse executeOntapGet( * * *
          -     * `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the
          +     * `ExecuteOntapDelete` sends the ONTAP `DELETE` request to the
                * `StoragePool` cluster.
                * 
          */ @@ -7325,7 +7800,7 @@ public com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse executeOntapDelete( * * *
          -     * `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the
          +     * `ExecuteOntapPatch` sends the ONTAP `PATCH` request to the
                * `StoragePool` cluster.
                * 
          */ @@ -7334,6 +7809,45 @@ public com.google.cloud.netapp.v1.ExecuteOntapPatchResponse executeOntapPatch( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getExecuteOntapPatchMethod(), getCallOptions(), request); } + + /** + * + * + *
          +     * Restores a backup to an ONTAP-mode volume.
          +     * 
          + */ + public com.google.longrunning.Operation restoreVolume( + com.google.cloud.netapp.v1.RestoreVolumeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestoreVolumeMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Lists backup configurations for all volumes in an ONTAP-mode Storage Pool.
          +     * 
          + */ + public com.google.cloud.netapp.v1.ListBackupConfigsResponse listBackupConfigs( + com.google.cloud.netapp.v1.ListBackupConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBackupConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Updates the backup configuration for an ONTAP-mode volume.
          +     * 
          + */ + public com.google.longrunning.Operation updateBackupConfig( + com.google.cloud.netapp.v1.UpdateBackupConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBackupConfigMethod(), getCallOptions(), request); + } } /** @@ -7531,6 +8045,38 @@ protected NetAppFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca getChannel().newCall(getRevertVolumeMethod(), getCallOptions()), request); } + /** + * + * + *
          +     * Splits a clone volume from its source volume.
          +     * This operation will only work for volumes which have clone_details
          +     * set(clones).
          +     * For volumes that are not clones, this operation will return an error.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + startSplit(com.google.cloud.netapp.v1.StartSplitRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartSplitMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Retrieves the current state, progress, and details of a split operation for
          +     * a volume. This method is relevant when the volume is a clone. For volumes
          +     * that are not clones, this method will return an error.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.netapp.v1.SplitStatus> + getSplitStatus(com.google.cloud.netapp.v1.GetSplitStatusRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSplitStatusMethod(), getCallOptions()), request); + } + /** * * @@ -8261,7 +8807,7 @@ protected NetAppFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
          -     * `ExecuteOntapPost` dispatches the ONTAP `POST` request to the
          +     * `ExecuteOntapPost` sends the ONTAP `POST` request to the
                * `StoragePool` cluster.
                * 
          */ @@ -8276,7 +8822,7 @@ protected NetAppFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
          -     * `ExecuteOntapGet` dispatches the ONTAP `GET` request to the
          +     * `ExecuteOntapGet` sends the ONTAP `GET` request to the
                * `StoragePool` cluster.
                * 
          */ @@ -8291,7 +8837,7 @@ protected NetAppFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
          -     * `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the
          +     * `ExecuteOntapDelete` sends the ONTAP `DELETE` request to the
                * `StoragePool` cluster.
                * 
          */ @@ -8306,7 +8852,7 @@ protected NetAppFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
          -     * `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the
          +     * `ExecuteOntapPatch` sends the ONTAP `PATCH` request to the
                * `StoragePool` cluster.
                * 
          */ @@ -8316,6 +8862,46 @@ protected NetAppFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExecuteOntapPatchMethod(), getCallOptions()), request); } + + /** + * + * + *
          +     * Restores a backup to an ONTAP-mode volume.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + restoreVolume(com.google.cloud.netapp.v1.RestoreVolumeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRestoreVolumeMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Lists backup configurations for all volumes in an ONTAP-mode Storage Pool.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.netapp.v1.ListBackupConfigsResponse> + listBackupConfigs(com.google.cloud.netapp.v1.ListBackupConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBackupConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Updates the backup configuration for an ONTAP-mode volume.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + updateBackupConfig(com.google.cloud.netapp.v1.UpdateBackupConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateBackupConfigMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_STORAGE_POOLS = 0; @@ -8331,64 +8917,69 @@ protected NetAppFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca private static final int METHODID_UPDATE_VOLUME = 10; private static final int METHODID_DELETE_VOLUME = 11; private static final int METHODID_REVERT_VOLUME = 12; - private static final int METHODID_ESTABLISH_VOLUME_PEERING = 13; - private static final int METHODID_LIST_SNAPSHOTS = 14; - private static final int METHODID_GET_SNAPSHOT = 15; - private static final int METHODID_CREATE_SNAPSHOT = 16; - private static final int METHODID_DELETE_SNAPSHOT = 17; - private static final int METHODID_UPDATE_SNAPSHOT = 18; - private static final int METHODID_LIST_ACTIVE_DIRECTORIES = 19; - private static final int METHODID_GET_ACTIVE_DIRECTORY = 20; - private static final int METHODID_CREATE_ACTIVE_DIRECTORY = 21; - private static final int METHODID_UPDATE_ACTIVE_DIRECTORY = 22; - private static final int METHODID_DELETE_ACTIVE_DIRECTORY = 23; - private static final int METHODID_LIST_KMS_CONFIGS = 24; - private static final int METHODID_CREATE_KMS_CONFIG = 25; - private static final int METHODID_GET_KMS_CONFIG = 26; - private static final int METHODID_UPDATE_KMS_CONFIG = 27; - private static final int METHODID_ENCRYPT_VOLUMES = 28; - private static final int METHODID_VERIFY_KMS_CONFIG = 29; - private static final int METHODID_DELETE_KMS_CONFIG = 30; - private static final int METHODID_LIST_REPLICATIONS = 31; - private static final int METHODID_GET_REPLICATION = 32; - private static final int METHODID_CREATE_REPLICATION = 33; - private static final int METHODID_DELETE_REPLICATION = 34; - private static final int METHODID_UPDATE_REPLICATION = 35; - private static final int METHODID_STOP_REPLICATION = 36; - private static final int METHODID_RESUME_REPLICATION = 37; - private static final int METHODID_REVERSE_REPLICATION_DIRECTION = 38; - private static final int METHODID_ESTABLISH_PEERING = 39; - private static final int METHODID_SYNC_REPLICATION = 40; - private static final int METHODID_CREATE_BACKUP_VAULT = 41; - private static final int METHODID_GET_BACKUP_VAULT = 42; - private static final int METHODID_LIST_BACKUP_VAULTS = 43; - private static final int METHODID_UPDATE_BACKUP_VAULT = 44; - private static final int METHODID_DELETE_BACKUP_VAULT = 45; - private static final int METHODID_CREATE_BACKUP = 46; - private static final int METHODID_GET_BACKUP = 47; - private static final int METHODID_LIST_BACKUPS = 48; - private static final int METHODID_DELETE_BACKUP = 49; - private static final int METHODID_UPDATE_BACKUP = 50; - private static final int METHODID_CREATE_BACKUP_POLICY = 51; - private static final int METHODID_GET_BACKUP_POLICY = 52; - private static final int METHODID_LIST_BACKUP_POLICIES = 53; - private static final int METHODID_UPDATE_BACKUP_POLICY = 54; - private static final int METHODID_DELETE_BACKUP_POLICY = 55; - private static final int METHODID_LIST_QUOTA_RULES = 56; - private static final int METHODID_GET_QUOTA_RULE = 57; - private static final int METHODID_CREATE_QUOTA_RULE = 58; - private static final int METHODID_UPDATE_QUOTA_RULE = 59; - private static final int METHODID_DELETE_QUOTA_RULE = 60; - private static final int METHODID_RESTORE_BACKUP_FILES = 61; - private static final int METHODID_LIST_HOST_GROUPS = 62; - private static final int METHODID_GET_HOST_GROUP = 63; - private static final int METHODID_CREATE_HOST_GROUP = 64; - private static final int METHODID_UPDATE_HOST_GROUP = 65; - private static final int METHODID_DELETE_HOST_GROUP = 66; - private static final int METHODID_EXECUTE_ONTAP_POST = 67; - private static final int METHODID_EXECUTE_ONTAP_GET = 68; - private static final int METHODID_EXECUTE_ONTAP_DELETE = 69; - private static final int METHODID_EXECUTE_ONTAP_PATCH = 70; + private static final int METHODID_START_SPLIT = 13; + private static final int METHODID_GET_SPLIT_STATUS = 14; + private static final int METHODID_ESTABLISH_VOLUME_PEERING = 15; + private static final int METHODID_LIST_SNAPSHOTS = 16; + private static final int METHODID_GET_SNAPSHOT = 17; + private static final int METHODID_CREATE_SNAPSHOT = 18; + private static final int METHODID_DELETE_SNAPSHOT = 19; + private static final int METHODID_UPDATE_SNAPSHOT = 20; + private static final int METHODID_LIST_ACTIVE_DIRECTORIES = 21; + private static final int METHODID_GET_ACTIVE_DIRECTORY = 22; + private static final int METHODID_CREATE_ACTIVE_DIRECTORY = 23; + private static final int METHODID_UPDATE_ACTIVE_DIRECTORY = 24; + private static final int METHODID_DELETE_ACTIVE_DIRECTORY = 25; + private static final int METHODID_LIST_KMS_CONFIGS = 26; + private static final int METHODID_CREATE_KMS_CONFIG = 27; + private static final int METHODID_GET_KMS_CONFIG = 28; + private static final int METHODID_UPDATE_KMS_CONFIG = 29; + private static final int METHODID_ENCRYPT_VOLUMES = 30; + private static final int METHODID_VERIFY_KMS_CONFIG = 31; + private static final int METHODID_DELETE_KMS_CONFIG = 32; + private static final int METHODID_LIST_REPLICATIONS = 33; + private static final int METHODID_GET_REPLICATION = 34; + private static final int METHODID_CREATE_REPLICATION = 35; + private static final int METHODID_DELETE_REPLICATION = 36; + private static final int METHODID_UPDATE_REPLICATION = 37; + private static final int METHODID_STOP_REPLICATION = 38; + private static final int METHODID_RESUME_REPLICATION = 39; + private static final int METHODID_REVERSE_REPLICATION_DIRECTION = 40; + private static final int METHODID_ESTABLISH_PEERING = 41; + private static final int METHODID_SYNC_REPLICATION = 42; + private static final int METHODID_CREATE_BACKUP_VAULT = 43; + private static final int METHODID_GET_BACKUP_VAULT = 44; + private static final int METHODID_LIST_BACKUP_VAULTS = 45; + private static final int METHODID_UPDATE_BACKUP_VAULT = 46; + private static final int METHODID_DELETE_BACKUP_VAULT = 47; + private static final int METHODID_CREATE_BACKUP = 48; + private static final int METHODID_GET_BACKUP = 49; + private static final int METHODID_LIST_BACKUPS = 50; + private static final int METHODID_DELETE_BACKUP = 51; + private static final int METHODID_UPDATE_BACKUP = 52; + private static final int METHODID_CREATE_BACKUP_POLICY = 53; + private static final int METHODID_GET_BACKUP_POLICY = 54; + private static final int METHODID_LIST_BACKUP_POLICIES = 55; + private static final int METHODID_UPDATE_BACKUP_POLICY = 56; + private static final int METHODID_DELETE_BACKUP_POLICY = 57; + private static final int METHODID_LIST_QUOTA_RULES = 58; + private static final int METHODID_GET_QUOTA_RULE = 59; + private static final int METHODID_CREATE_QUOTA_RULE = 60; + private static final int METHODID_UPDATE_QUOTA_RULE = 61; + private static final int METHODID_DELETE_QUOTA_RULE = 62; + private static final int METHODID_RESTORE_BACKUP_FILES = 63; + private static final int METHODID_LIST_HOST_GROUPS = 64; + private static final int METHODID_GET_HOST_GROUP = 65; + private static final int METHODID_CREATE_HOST_GROUP = 66; + private static final int METHODID_UPDATE_HOST_GROUP = 67; + private static final int METHODID_DELETE_HOST_GROUP = 68; + private static final int METHODID_EXECUTE_ONTAP_POST = 69; + private static final int METHODID_EXECUTE_ONTAP_GET = 70; + private static final int METHODID_EXECUTE_ONTAP_DELETE = 71; + private static final int METHODID_EXECUTE_ONTAP_PATCH = 72; + private static final int METHODID_RESTORE_VOLUME = 73; + private static final int METHODID_LIST_BACKUP_CONFIGS = 74; + private static final int METHODID_UPDATE_BACKUP_CONFIG = 75; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -8475,6 +9066,17 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.netapp.v1.RevertVolumeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_START_SPLIT: + serviceImpl.startSplit( + (com.google.cloud.netapp.v1.StartSplitRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SPLIT_STATUS: + serviceImpl.getSplitStatus( + (com.google.cloud.netapp.v1.GetSplitStatusRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_ESTABLISH_VOLUME_PEERING: serviceImpl.establishVolumePeering( (com.google.cloud.netapp.v1.EstablishVolumePeeringRequest) request, @@ -8784,6 +9386,22 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_RESTORE_VOLUME: + serviceImpl.restoreVolume( + (com.google.cloud.netapp.v1.RestoreVolumeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_BACKUP_CONFIGS: + serviceImpl.listBackupConfigs( + (com.google.cloud.netapp.v1.ListBackupConfigsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_BACKUP_CONFIG: + serviceImpl.updateBackupConfig( + (com.google.cloud.netapp.v1.UpdateBackupConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -8884,6 +9502,18 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.netapp.v1.RevertVolumeRequest, com.google.longrunning.Operation>(service, METHODID_REVERT_VOLUME))) + .addMethod( + getStartSplitMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.netapp.v1.StartSplitRequest, com.google.longrunning.Operation>( + service, METHODID_START_SPLIT))) + .addMethod( + getGetSplitStatusMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.netapp.v1.GetSplitStatusRequest, + com.google.cloud.netapp.v1.SplitStatus>(service, METHODID_GET_SPLIT_STATUS))) .addMethod( getEstablishVolumePeeringMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -9248,6 +9878,25 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.netapp.v1.ExecuteOntapPatchRequest, com.google.cloud.netapp.v1.ExecuteOntapPatchResponse>( service, METHODID_EXECUTE_ONTAP_PATCH))) + .addMethod( + getRestoreVolumeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.netapp.v1.RestoreVolumeRequest, + com.google.longrunning.Operation>(service, METHODID_RESTORE_VOLUME))) + .addMethod( + getListBackupConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.netapp.v1.ListBackupConfigsRequest, + com.google.cloud.netapp.v1.ListBackupConfigsResponse>( + service, METHODID_LIST_BACKUP_CONFIGS))) + .addMethod( + getUpdateBackupConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.netapp.v1.UpdateBackupConfigRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_BACKUP_CONFIG))) .build(); } @@ -9310,6 +9959,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateVolumeMethod()) .addMethod(getDeleteVolumeMethod()) .addMethod(getRevertVolumeMethod()) + .addMethod(getStartSplitMethod()) + .addMethod(getGetSplitStatusMethod()) .addMethod(getEstablishVolumePeeringMethod()) .addMethod(getListSnapshotsMethod()) .addMethod(getGetSnapshotMethod()) @@ -9368,6 +10019,9 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getExecuteOntapGetMethod()) .addMethod(getExecuteOntapDeleteMethod()) .addMethod(getExecuteOntapPatchMethod()) + .addMethod(getRestoreVolumeMethod()) + .addMethod(getListBackupConfigsMethod()) + .addMethod(getUpdateBackupConfigMethod()) .build(); } } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Backup.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Backup.java index edd0141c153a..f0bdbab448d0 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Backup.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Backup.java @@ -754,10 +754,9 @@ public com.google.cloud.netapp.v1.Backup.Type getBackupType() { * * *
          -   * Volume full name of this backup belongs to.
          -   * Either source_volume or ontap_source should be provided.
          -   * Format:
          -   * `projects/{projects_id}/locations/{location}/volumes/{volume_id}`
          +   * The resource name of the volume that this backup belongs to. You must
          +   * provide either `source_volume` or `ontap_source`. Format:
          +   * `projects/{project_id}/locations/{location}/volumes/{volume_id}`
              * 
          * * string source_volume = 6 [(.google.api.resource_reference) = { ... } @@ -781,10 +780,9 @@ public java.lang.String getSourceVolume() { * * *
          -   * Volume full name of this backup belongs to.
          -   * Either source_volume or ontap_source should be provided.
          -   * Format:
          -   * `projects/{projects_id}/locations/{location}/volumes/{volume_id}`
          +   * The resource name of the volume that this backup belongs to. You must
          +   * provide either `source_volume` or `ontap_source`. Format:
          +   * `projects/{project_id}/locations/{location}/volumes/{volume_id}`
              * 
          * * string source_volume = 6 [(.google.api.resource_reference) = { ... } @@ -1276,6 +1274,68 @@ public com.google.protobuf.TimestampOrBuilder getEnforcedRetentionEndTimeOrBuild : enforcedRetentionEndTime_; } + public static final int ONTAP_SOURCE_FIELD_NUMBER = 16; + private com.google.cloud.netapp.v1.OntapSource ontapSource_; + + /** + * + * + *
          +   * Optional. Represents source details for ONTAP backups.
          +   * Either source_volume or ontap_source should be provided.
          +   * 
          + * + * + * .google.cloud.netapp.v1.OntapSource ontap_source = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ontapSource field is set. + */ + @java.lang.Override + public boolean hasOntapSource() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
          +   * Optional. Represents source details for ONTAP backups.
          +   * Either source_volume or ontap_source should be provided.
          +   * 
          + * + * + * .google.cloud.netapp.v1.OntapSource ontap_source = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ontapSource. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.OntapSource getOntapSource() { + return ontapSource_ == null + ? com.google.cloud.netapp.v1.OntapSource.getDefaultInstance() + : ontapSource_; + } + + /** + * + * + *
          +   * Optional. Represents source details for ONTAP backups.
          +   * Either source_volume or ontap_source should be provided.
          +   * 
          + * + * + * .google.cloud.netapp.v1.OntapSource ontap_source = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.netapp.v1.OntapSourceOrBuilder getOntapSourceOrBuilder() { + return ontapSource_ == null + ? com.google.cloud.netapp.v1.OntapSource.getDefaultInstance() + : ontapSource_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1334,6 +1394,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(15, getEnforcedRetentionEndTime()); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(16, getOntapSource()); + } getUnknownFields().writeTo(output); } @@ -1397,6 +1460,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 15, getEnforcedRetentionEndTime()); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getOntapSource()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1436,6 +1502,10 @@ public boolean equals(final java.lang.Object obj) { if (hasEnforcedRetentionEndTime()) { if (!getEnforcedRetentionEndTime().equals(other.getEnforcedRetentionEndTime())) return false; } + if (hasOntapSource() != other.hasOntapSource()) return false; + if (hasOntapSource()) { + if (!getOntapSource().equals(other.getOntapSource())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1485,6 +1555,10 @@ public int hashCode() { hash = (37 * hash) + ENFORCED_RETENTION_END_TIME_FIELD_NUMBER; hash = (53 * hash) + getEnforcedRetentionEndTime().hashCode(); } + if (hasOntapSource()) { + hash = (37 * hash) + ONTAP_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getOntapSource().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1649,6 +1723,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetCreateTimeFieldBuilder(); internalGetEnforcedRetentionEndTimeFieldBuilder(); + internalGetOntapSourceFieldBuilder(); } } @@ -1679,6 +1754,11 @@ public Builder clear() { enforcedRetentionEndTimeBuilder_.dispose(); enforcedRetentionEndTimeBuilder_ = null; } + ontapSource_ = null; + if (ontapSourceBuilder_ != null) { + ontapSourceBuilder_.dispose(); + ontapSourceBuilder_ = null; + } return this; } @@ -1767,6 +1847,11 @@ private void buildPartial0(com.google.cloud.netapp.v1.Backup result) { : enforcedRetentionEndTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.ontapSource_ = + ontapSourceBuilder_ == null ? ontapSource_ : ontapSourceBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -1838,6 +1923,9 @@ public Builder mergeFrom(com.google.cloud.netapp.v1.Backup other) { if (other.hasEnforcedRetentionEndTime()) { mergeEnforcedRetentionEndTime(other.getEnforcedRetentionEndTime()); } + if (other.hasOntapSource()) { + mergeOntapSource(other.getOntapSource()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1963,6 +2051,13 @@ public Builder mergeFrom( bitField0_ |= 0x00004000; break; } // case 122 + case 130: + { + input.readMessage( + internalGetOntapSourceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2502,10 +2597,9 @@ public Builder clearBackupType() { * * *
          -     * Volume full name of this backup belongs to.
          -     * Either source_volume or ontap_source should be provided.
          -     * Format:
          -     * `projects/{projects_id}/locations/{location}/volumes/{volume_id}`
          +     * The resource name of the volume that this backup belongs to. You must
          +     * provide either `source_volume` or `ontap_source`. Format:
          +     * `projects/{project_id}/locations/{location}/volumes/{volume_id}`
                * 
          * * string source_volume = 6 [(.google.api.resource_reference) = { ... } @@ -2528,10 +2622,9 @@ public java.lang.String getSourceVolume() { * * *
          -     * Volume full name of this backup belongs to.
          -     * Either source_volume or ontap_source should be provided.
          -     * Format:
          -     * `projects/{projects_id}/locations/{location}/volumes/{volume_id}`
          +     * The resource name of the volume that this backup belongs to. You must
          +     * provide either `source_volume` or `ontap_source`. Format:
          +     * `projects/{project_id}/locations/{location}/volumes/{volume_id}`
                * 
          * * string source_volume = 6 [(.google.api.resource_reference) = { ... } @@ -2554,10 +2647,9 @@ public com.google.protobuf.ByteString getSourceVolumeBytes() { * * *
          -     * Volume full name of this backup belongs to.
          -     * Either source_volume or ontap_source should be provided.
          -     * Format:
          -     * `projects/{projects_id}/locations/{location}/volumes/{volume_id}`
          +     * The resource name of the volume that this backup belongs to. You must
          +     * provide either `source_volume` or `ontap_source`. Format:
          +     * `projects/{project_id}/locations/{location}/volumes/{volume_id}`
                * 
          * * string source_volume = 6 [(.google.api.resource_reference) = { ... } @@ -2579,10 +2671,9 @@ public Builder setSourceVolume(java.lang.String value) { * * *
          -     * Volume full name of this backup belongs to.
          -     * Either source_volume or ontap_source should be provided.
          -     * Format:
          -     * `projects/{projects_id}/locations/{location}/volumes/{volume_id}`
          +     * The resource name of the volume that this backup belongs to. You must
          +     * provide either `source_volume` or `ontap_source`. Format:
          +     * `projects/{project_id}/locations/{location}/volumes/{volume_id}`
                * 
          * * string source_volume = 6 [(.google.api.resource_reference) = { ... } @@ -2600,10 +2691,9 @@ public Builder clearSourceVolume() { * * *
          -     * Volume full name of this backup belongs to.
          -     * Either source_volume or ontap_source should be provided.
          -     * Format:
          -     * `projects/{projects_id}/locations/{location}/volumes/{volume_id}`
          +     * The resource name of the volume that this backup belongs to. You must
          +     * provide either `source_volume` or `ontap_source`. Format:
          +     * `projects/{project_id}/locations/{location}/volumes/{volume_id}`
                * 
          * * string source_volume = 6 [(.google.api.resource_reference) = { ... } @@ -3786,6 +3876,227 @@ public com.google.protobuf.TimestampOrBuilder getEnforcedRetentionEndTimeOrBuild return enforcedRetentionEndTimeBuilder_; } + private com.google.cloud.netapp.v1.OntapSource ontapSource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.netapp.v1.OntapSource, + com.google.cloud.netapp.v1.OntapSource.Builder, + com.google.cloud.netapp.v1.OntapSourceOrBuilder> + ontapSourceBuilder_; + + /** + * + * + *
          +     * Optional. Represents source details for ONTAP backups.
          +     * Either source_volume or ontap_source should be provided.
          +     * 
          + * + * + * .google.cloud.netapp.v1.OntapSource ontap_source = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ontapSource field is set. + */ + public boolean hasOntapSource() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
          +     * Optional. Represents source details for ONTAP backups.
          +     * Either source_volume or ontap_source should be provided.
          +     * 
          + * + * + * .google.cloud.netapp.v1.OntapSource ontap_source = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ontapSource. + */ + public com.google.cloud.netapp.v1.OntapSource getOntapSource() { + if (ontapSourceBuilder_ == null) { + return ontapSource_ == null + ? com.google.cloud.netapp.v1.OntapSource.getDefaultInstance() + : ontapSource_; + } else { + return ontapSourceBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Optional. Represents source details for ONTAP backups.
          +     * Either source_volume or ontap_source should be provided.
          +     * 
          + * + * + * .google.cloud.netapp.v1.OntapSource ontap_source = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOntapSource(com.google.cloud.netapp.v1.OntapSource value) { + if (ontapSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ontapSource_ = value; + } else { + ontapSourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Represents source details for ONTAP backups.
          +     * Either source_volume or ontap_source should be provided.
          +     * 
          + * + * + * .google.cloud.netapp.v1.OntapSource ontap_source = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOntapSource(com.google.cloud.netapp.v1.OntapSource.Builder builderForValue) { + if (ontapSourceBuilder_ == null) { + ontapSource_ = builderForValue.build(); + } else { + ontapSourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Represents source details for ONTAP backups.
          +     * Either source_volume or ontap_source should be provided.
          +     * 
          + * + * + * .google.cloud.netapp.v1.OntapSource ontap_source = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOntapSource(com.google.cloud.netapp.v1.OntapSource value) { + if (ontapSourceBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && ontapSource_ != null + && ontapSource_ != com.google.cloud.netapp.v1.OntapSource.getDefaultInstance()) { + getOntapSourceBuilder().mergeFrom(value); + } else { + ontapSource_ = value; + } + } else { + ontapSourceBuilder_.mergeFrom(value); + } + if (ontapSource_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Optional. Represents source details for ONTAP backups.
          +     * Either source_volume or ontap_source should be provided.
          +     * 
          + * + * + * .google.cloud.netapp.v1.OntapSource ontap_source = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOntapSource() { + bitField0_ = (bitField0_ & ~0x00008000); + ontapSource_ = null; + if (ontapSourceBuilder_ != null) { + ontapSourceBuilder_.dispose(); + ontapSourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Represents source details for ONTAP backups.
          +     * Either source_volume or ontap_source should be provided.
          +     * 
          + * + * + * .google.cloud.netapp.v1.OntapSource ontap_source = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.netapp.v1.OntapSource.Builder getOntapSourceBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return internalGetOntapSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Optional. Represents source details for ONTAP backups.
          +     * Either source_volume or ontap_source should be provided.
          +     * 
          + * + * + * .google.cloud.netapp.v1.OntapSource ontap_source = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.netapp.v1.OntapSourceOrBuilder getOntapSourceOrBuilder() { + if (ontapSourceBuilder_ != null) { + return ontapSourceBuilder_.getMessageOrBuilder(); + } else { + return ontapSource_ == null + ? com.google.cloud.netapp.v1.OntapSource.getDefaultInstance() + : ontapSource_; + } + } + + /** + * + * + *
          +     * Optional. Represents source details for ONTAP backups.
          +     * Either source_volume or ontap_source should be provided.
          +     * 
          + * + * + * .google.cloud.netapp.v1.OntapSource ontap_source = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.netapp.v1.OntapSource, + com.google.cloud.netapp.v1.OntapSource.Builder, + com.google.cloud.netapp.v1.OntapSourceOrBuilder> + internalGetOntapSourceFieldBuilder() { + if (ontapSourceBuilder_ == null) { + ontapSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.netapp.v1.OntapSource, + com.google.cloud.netapp.v1.OntapSource.Builder, + com.google.cloud.netapp.v1.OntapSourceOrBuilder>( + getOntapSource(), getParentForChildren(), isClean()); + ontapSource_ = null; + } + return ontapSourceBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.Backup) } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupOrBuilder.java index d163cced7e41..52c7792ecc23 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupOrBuilder.java @@ -165,10 +165,9 @@ public interface BackupOrBuilder * * *
          -   * Volume full name of this backup belongs to.
          -   * Either source_volume or ontap_source should be provided.
          -   * Format:
          -   * `projects/{projects_id}/locations/{location}/volumes/{volume_id}`
          +   * The resource name of the volume that this backup belongs to. You must
          +   * provide either `source_volume` or `ontap_source`. Format:
          +   * `projects/{project_id}/locations/{location}/volumes/{volume_id}`
              * 
          * * string source_volume = 6 [(.google.api.resource_reference) = { ... } @@ -181,10 +180,9 @@ public interface BackupOrBuilder * * *
          -   * Volume full name of this backup belongs to.
          -   * Either source_volume or ontap_source should be provided.
          -   * Format:
          -   * `projects/{projects_id}/locations/{location}/volumes/{volume_id}`
          +   * The resource name of the volume that this backup belongs to. You must
          +   * provide either `source_volume` or `ontap_source`. Format:
          +   * `projects/{project_id}/locations/{location}/volumes/{volume_id}`
              * 
          * * string source_volume = 6 [(.google.api.resource_reference) = { ... } @@ -490,4 +488,50 @@ java.lang.String getLabelsOrDefault( *
          */ com.google.protobuf.TimestampOrBuilder getEnforcedRetentionEndTimeOrBuilder(); + + /** + * + * + *
          +   * Optional. Represents source details for ONTAP backups.
          +   * Either source_volume or ontap_source should be provided.
          +   * 
          + * + * + * .google.cloud.netapp.v1.OntapSource ontap_source = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ontapSource field is set. + */ + boolean hasOntapSource(); + + /** + * + * + *
          +   * Optional. Represents source details for ONTAP backups.
          +   * Either source_volume or ontap_source should be provided.
          +   * 
          + * + * + * .google.cloud.netapp.v1.OntapSource ontap_source = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ontapSource. + */ + com.google.cloud.netapp.v1.OntapSource getOntapSource(); + + /** + * + * + *
          +   * Optional. Represents source details for ONTAP backups.
          +   * Either source_volume or ontap_source should be provided.
          +   * 
          + * + * + * .google.cloud.netapp.v1.OntapSource ontap_source = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.netapp.v1.OntapSourceOrBuilder getOntapSourceOrBuilder(); } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupProto.java index cac7b1335d45..0dd035e9d05d 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupProto.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupProto.java @@ -72,6 +72,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_netapp_v1_UpdateBackupRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_netapp_v1_UpdateBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_OntapSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_netapp_v1_OntapSource_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -85,7 +89,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#google/cloud/netapp/v1/backup.proto\022\026g" + "oogle.cloud.netapp.v1\032\037google/api/field_" + "behavior.proto\032\031google/api/resource.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\324\010\n" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\224\t\n" + "\006Backup\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0228\n" + "\005state\030\002" @@ -110,7 +114,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "backup_region\030\016 \001(\tB)\340A\003\372A#\n" + "!locations.googleapis.com/Location\022D\n" + "\033enforced_retention_end_time\030\017" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032-\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022>\n" + + "\014ontap_source\030\020" + + " \001(\0132#.google.cloud.netapp.v1.OntapSourceB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"m\n" @@ -126,9 +132,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020TYPE_UNSPECIFIED\020\000\022\n\n" + "\006MANUAL\020\001\022\r\n" + "\tSCHEDULED\020\002:\211\001\352A\205\001\n" - + "\034netapp.googleapis.com/Backup\022Tprojects/{project}/loc" - + "ations/{location}/backupVaults/{backup_v" - + "ault}/backups/{backup}*\007backups2\006backupB\022\n" + + "\034netapp.googleapis.com/Backup\022Tprojects/{project}/locations/{location" + + "}/backupVaults/{backup_vault}/backups/{backup}*\007backups2\006backupB\022\n" + "\020_source_snapshot\"\223\001\n" + "\022ListBackupsRequest\0224\n" + "\006parent\030\001 \001(" @@ -154,12 +159,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034netapp.googleapis.com/Backup\"\200\001\n" + "\023UpdateBackupRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\0223\n" - + "\006backup\030\002 " - + "\001(\0132\036.google.cloud.netapp.v1.BackupB\003\340A\002B\255\001\n" - + "\032com.google.cloud.netapp.v1B\013BackupProtoP\001Z2cloud.google.com/go/netapp/apiv1" - + "/netapppb;netapppb\252\002\026Google.Cloud.NetApp" - + ".V1\312\002\026Google\\Cloud\\NetApp\\V1\352\002\031Google::C" - + "loud::NetApp::V1b\006proto3" + + "\006backup\030\002" + + " \001(\0132\036.google.cloud.netapp.v1.BackupB\003\340A\002\"\232\001\n" + + "\013OntapSource\022D\n" + + "\014storage_pool\030\001 \001(\tB)\340A\002\372A#\n" + + "!netapp.googleapis.com/StoragePoolH\000\210\001\001\022\030\n" + + "\013volume_uuid\030\002 \001(\tB\003\340A\002\022\032\n\r" + + "snapshot_uuid\030\003 \001(\tB\003\340A\001B\017\n\r" + + "_storage_poolB\255\001\n" + + "\032com.google.cloud.netapp.v1B\013BackupProtoP\001Z2cloud.googl" + + "e.com/go/netapp/apiv1/netapppb;netapppb\252" + + "\002\026Google.Cloud.NetApp.V1\312\002\026Google\\Cloud\\" + + "NetApp\\V1\352\002\031Google::Cloud::NetApp::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -190,6 +201,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "VolumeRegion", "BackupRegion", "EnforcedRetentionEndTime", + "OntapSource", }); internal_static_google_cloud_netapp_v1_Backup_LabelsEntry_descriptor = internal_static_google_cloud_netapp_v1_Backup_descriptor.getNestedType(0); @@ -247,6 +259,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "UpdateMask", "Backup", }); + internal_static_google_cloud_netapp_v1_OntapSource_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_netapp_v1_OntapSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_OntapSource_descriptor, + new java.lang.String[] { + "StoragePool", "VolumeUuid", "SnapshotUuid", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupSource.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupSource.java new file mode 100644 index 000000000000..0c5673b27159 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupSource.java @@ -0,0 +1,924 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +/** + * + * + *
          + * Represents the backup source of the restore operation.
          + * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.BackupSource} + */ +@com.google.protobuf.Generated +public final class BackupSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.BackupSource) + BackupSourceOrBuilder { + 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= */ "", + "BackupSource"); + } + + // Use BackupSource.newBuilder() to construct. + private BackupSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BackupSource() { + backup_ = ""; + fileList_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_BackupSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_BackupSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.BackupSource.class, + com.google.cloud.netapp.v1.BackupSource.Builder.class); + } + + public static final int BACKUP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object backup_ = ""; + + /** + * + * + *
          +   * Required. The backup resource name.
          +   * 
          + * + * + * string backup = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The backup. + */ + @java.lang.Override + public java.lang.String getBackup() { + java.lang.Object ref = backup_; + 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(); + backup_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The backup resource name.
          +   * 
          + * + * + * string backup = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for backup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackupBytes() { + java.lang.Object ref = backup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILE_LIST_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList fileList_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
          +   * Optional. List of files to be restored in the form of their absolute path
          +   * as in source volume. If provided, only these files will be restored. If not
          +   * provided, the entire backup will be restored (Full Backup Restore)
          +   * 
          + * + * repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the fileList. + */ + public com.google.protobuf.ProtocolStringList getFileListList() { + return fileList_; + } + + /** + * + * + *
          +   * Optional. List of files to be restored in the form of their absolute path
          +   * as in source volume. If provided, only these files will be restored. If not
          +   * provided, the entire backup will be restored (Full Backup Restore)
          +   * 
          + * + * repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of fileList. + */ + public int getFileListCount() { + return fileList_.size(); + } + + /** + * + * + *
          +   * Optional. List of files to be restored in the form of their absolute path
          +   * as in source volume. If provided, only these files will be restored. If not
          +   * provided, the entire backup will be restored (Full Backup Restore)
          +   * 
          + * + * repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The fileList at the given index. + */ + public java.lang.String getFileList(int index) { + return fileList_.get(index); + } + + /** + * + * + *
          +   * Optional. List of files to be restored in the form of their absolute path
          +   * as in source volume. If provided, only these files will be restored. If not
          +   * provided, the entire backup will be restored (Full Backup Restore)
          +   * 
          + * + * repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the fileList at the given index. + */ + public com.google.protobuf.ByteString getFileListBytes(int index) { + return fileList_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(backup_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, backup_); + } + for (int i = 0; i < fileList_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, fileList_.getRaw(i)); + } + 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(backup_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, backup_); + } + { + int dataSize = 0; + for (int i = 0; i < fileList_.size(); i++) { + dataSize += computeStringSizeNoTag(fileList_.getRaw(i)); + } + size += dataSize; + size += 1 * getFileListList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.netapp.v1.BackupSource)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.BackupSource other = (com.google.cloud.netapp.v1.BackupSource) obj; + + if (!getBackup().equals(other.getBackup())) return false; + if (!getFileListList().equals(other.getFileListList())) 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) + BACKUP_FIELD_NUMBER; + hash = (53 * hash) + getBackup().hashCode(); + if (getFileListCount() > 0) { + hash = (37 * hash) + FILE_LIST_FIELD_NUMBER; + hash = (53 * hash) + getFileListList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.BackupSource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.BackupSource 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.netapp.v1.BackupSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.BackupSource 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.netapp.v1.BackupSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.BackupSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.BackupSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.BackupSource 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.netapp.v1.BackupSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.BackupSource 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.netapp.v1.BackupSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.BackupSource 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.netapp.v1.BackupSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Represents the backup source of the restore operation.
          +   * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.BackupSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.BackupSource) + com.google.cloud.netapp.v1.BackupSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_BackupSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_BackupSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.BackupSource.class, + com.google.cloud.netapp.v1.BackupSource.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.BackupSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + backup_ = ""; + fileList_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_BackupSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.BackupSource getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.BackupSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.BackupSource build() { + com.google.cloud.netapp.v1.BackupSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.BackupSource buildPartial() { + com.google.cloud.netapp.v1.BackupSource result = + new com.google.cloud.netapp.v1.BackupSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.BackupSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.backup_ = backup_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + fileList_.makeImmutable(); + result.fileList_ = fileList_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.netapp.v1.BackupSource) { + return mergeFrom((com.google.cloud.netapp.v1.BackupSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.BackupSource other) { + if (other == com.google.cloud.netapp.v1.BackupSource.getDefaultInstance()) return this; + if (!other.getBackup().isEmpty()) { + backup_ = other.backup_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.fileList_.isEmpty()) { + if (fileList_.isEmpty()) { + fileList_ = other.fileList_; + bitField0_ |= 0x00000002; + } else { + ensureFileListIsMutable(); + fileList_.addAll(other.fileList_); + } + 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: + { + backup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFileListIsMutable(); + fileList_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object backup_ = ""; + + /** + * + * + *
          +     * Required. The backup resource name.
          +     * 
          + * + * + * string backup = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The backup. + */ + public java.lang.String getBackup() { + java.lang.Object ref = backup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The backup resource name.
          +     * 
          + * + * + * string backup = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for backup. + */ + public com.google.protobuf.ByteString getBackupBytes() { + java.lang.Object ref = backup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The backup resource name.
          +     * 
          + * + * + * string backup = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The backup to set. + * @return This builder for chaining. + */ + public Builder setBackup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + backup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The backup resource name.
          +     * 
          + * + * + * string backup = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearBackup() { + backup_ = getDefaultInstance().getBackup(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The backup resource name.
          +     * 
          + * + * + * string backup = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for backup to set. + * @return This builder for chaining. + */ + public Builder setBackupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList fileList_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureFileListIsMutable() { + if (!fileList_.isModifiable()) { + fileList_ = new com.google.protobuf.LazyStringArrayList(fileList_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
          +     * Optional. List of files to be restored in the form of their absolute path
          +     * as in source volume. If provided, only these files will be restored. If not
          +     * provided, the entire backup will be restored (Full Backup Restore)
          +     * 
          + * + * repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the fileList. + */ + public com.google.protobuf.ProtocolStringList getFileListList() { + fileList_.makeImmutable(); + return fileList_; + } + + /** + * + * + *
          +     * Optional. List of files to be restored in the form of their absolute path
          +     * as in source volume. If provided, only these files will be restored. If not
          +     * provided, the entire backup will be restored (Full Backup Restore)
          +     * 
          + * + * repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of fileList. + */ + public int getFileListCount() { + return fileList_.size(); + } + + /** + * + * + *
          +     * Optional. List of files to be restored in the form of their absolute path
          +     * as in source volume. If provided, only these files will be restored. If not
          +     * provided, the entire backup will be restored (Full Backup Restore)
          +     * 
          + * + * repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The fileList at the given index. + */ + public java.lang.String getFileList(int index) { + return fileList_.get(index); + } + + /** + * + * + *
          +     * Optional. List of files to be restored in the form of their absolute path
          +     * as in source volume. If provided, only these files will be restored. If not
          +     * provided, the entire backup will be restored (Full Backup Restore)
          +     * 
          + * + * repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the fileList at the given index. + */ + public com.google.protobuf.ByteString getFileListBytes(int index) { + return fileList_.getByteString(index); + } + + /** + * + * + *
          +     * Optional. List of files to be restored in the form of their absolute path
          +     * as in source volume. If provided, only these files will be restored. If not
          +     * provided, the entire backup will be restored (Full Backup Restore)
          +     * 
          + * + * repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The fileList to set. + * @return This builder for chaining. + */ + public Builder setFileList(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileListIsMutable(); + fileList_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. List of files to be restored in the form of their absolute path
          +     * as in source volume. If provided, only these files will be restored. If not
          +     * provided, the entire backup will be restored (Full Backup Restore)
          +     * 
          + * + * repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The fileList to add. + * @return This builder for chaining. + */ + public Builder addFileList(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileListIsMutable(); + fileList_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. List of files to be restored in the form of their absolute path
          +     * as in source volume. If provided, only these files will be restored. If not
          +     * provided, the entire backup will be restored (Full Backup Restore)
          +     * 
          + * + * repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The fileList to add. + * @return This builder for chaining. + */ + public Builder addAllFileList(java.lang.Iterable values) { + ensureFileListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileList_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. List of files to be restored in the form of their absolute path
          +     * as in source volume. If provided, only these files will be restored. If not
          +     * provided, the entire backup will be restored (Full Backup Restore)
          +     * 
          + * + * repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFileList() { + fileList_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. List of files to be restored in the form of their absolute path
          +     * as in source volume. If provided, only these files will be restored. If not
          +     * provided, the entire backup will be restored (Full Backup Restore)
          +     * 
          + * + * repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the fileList to add. + * @return This builder for chaining. + */ + public Builder addFileListBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFileListIsMutable(); + fileList_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.BackupSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.BackupSource) + private static final com.google.cloud.netapp.v1.BackupSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.BackupSource(); + } + + public static com.google.cloud.netapp.v1.BackupSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackupSource 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.netapp.v1.BackupSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupSourceOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupSourceOrBuilder.java new file mode 100644 index 000000000000..8dca0e84bcb4 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupSourceOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +@com.google.protobuf.Generated +public interface BackupSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.BackupSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The backup resource name.
          +   * 
          + * + * + * string backup = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The backup. + */ + java.lang.String getBackup(); + + /** + * + * + *
          +   * Required. The backup resource name.
          +   * 
          + * + * + * string backup = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for backup. + */ + com.google.protobuf.ByteString getBackupBytes(); + + /** + * + * + *
          +   * Optional. List of files to be restored in the form of their absolute path
          +   * as in source volume. If provided, only these files will be restored. If not
          +   * provided, the entire backup will be restored (Full Backup Restore)
          +   * 
          + * + * repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the fileList. + */ + java.util.List getFileListList(); + + /** + * + * + *
          +   * Optional. List of files to be restored in the form of their absolute path
          +   * as in source volume. If provided, only these files will be restored. If not
          +   * provided, the entire backup will be restored (Full Backup Restore)
          +   * 
          + * + * repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of fileList. + */ + int getFileListCount(); + + /** + * + * + *
          +   * Optional. List of files to be restored in the form of their absolute path
          +   * as in source volume. If provided, only these files will be restored. If not
          +   * provided, the entire backup will be restored (Full Backup Restore)
          +   * 
          + * + * repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The fileList at the given index. + */ + java.lang.String getFileList(int index); + + /** + * + * + *
          +   * Optional. List of files to be restored in the form of their absolute path
          +   * as in source volume. If provided, only these files will be restored. If not
          +   * provided, the entire backup will be restored (Full Backup Restore)
          +   * 
          + * + * repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the fileList at the given index. + */ + com.google.protobuf.ByteString getFileListBytes(int index); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupVault.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupVault.java index ad7535eed6e7..8e8aa5c1f5b6 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupVault.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupVault.java @@ -2089,12 +2089,12 @@ public com.google.cloud.netapp.v1.BackupVault.BackupVaultType getBackupVaultType * * *
          -   * Output only. Region in which the backup vault is created.
          +   * Optional. Region in which the backup vault is created.
              * Format: `projects/{project_id}/locations/{location}`
              * 
          * * - * string source_region = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string source_region = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The sourceRegion. @@ -2116,12 +2116,12 @@ public java.lang.String getSourceRegion() { * * *
          -   * Output only. Region in which the backup vault is created.
          +   * Optional. Region in which the backup vault is created.
              * Format: `projects/{project_id}/locations/{location}`
              * 
          * * - * string source_region = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string source_region = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for sourceRegion. @@ -4073,12 +4073,12 @@ public Builder clearBackupVaultType() { * * *
          -     * Output only. Region in which the backup vault is created.
          +     * Optional. Region in which the backup vault is created.
                * Format: `projects/{project_id}/locations/{location}`
                * 
          * * - * string source_region = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string source_region = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The sourceRegion. @@ -4099,12 +4099,12 @@ public java.lang.String getSourceRegion() { * * *
          -     * Output only. Region in which the backup vault is created.
          +     * Optional. Region in which the backup vault is created.
                * Format: `projects/{project_id}/locations/{location}`
                * 
          * * - * string source_region = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string source_region = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for sourceRegion. @@ -4125,12 +4125,12 @@ public com.google.protobuf.ByteString getSourceRegionBytes() { * * *
          -     * Output only. Region in which the backup vault is created.
          +     * Optional. Region in which the backup vault is created.
                * Format: `projects/{project_id}/locations/{location}`
                * 
          * * - * string source_region = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string source_region = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @param value The sourceRegion to set. @@ -4150,12 +4150,12 @@ public Builder setSourceRegion(java.lang.String value) { * * *
          -     * Output only. Region in which the backup vault is created.
          +     * Optional. Region in which the backup vault is created.
                * Format: `projects/{project_id}/locations/{location}`
                * 
          * * - * string source_region = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string source_region = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -4171,12 +4171,12 @@ public Builder clearSourceRegion() { * * *
          -     * Output only. Region in which the backup vault is created.
          +     * Optional. Region in which the backup vault is created.
                * Format: `projects/{project_id}/locations/{location}`
                * 
          * * - * string source_region = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string source_region = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @param value The bytes for sourceRegion to set. diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupVaultOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupVaultOrBuilder.java index 6702605fdcb3..64e12fccea64 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupVaultOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupVaultOrBuilder.java @@ -251,12 +251,12 @@ java.lang.String getLabelsOrDefault( * * *
          -   * Output only. Region in which the backup vault is created.
          +   * Optional. Region in which the backup vault is created.
              * Format: `projects/{project_id}/locations/{location}`
              * 
          * * - * string source_region = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string source_region = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The sourceRegion. @@ -267,12 +267,12 @@ java.lang.String getLabelsOrDefault( * * *
          -   * Output only. Region in which the backup vault is created.
          +   * Optional. Region in which the backup vault is created.
              * Format: `projects/{project_id}/locations/{location}`
              * 
          * * - * string source_region = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string source_region = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for sourceRegion. diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupVaultProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupVaultProto.java index f9f6243b2860..4726e8fc456e 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupVaultProto.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupVaultProto.java @@ -101,7 +101,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021backup_vault_type\030\006" + " \001(\01623.google.cloud.netapp.v1.BackupVault.BackupVaultTypeB\003\340A\001\022@\n" + "\r" - + "source_region\030\007 \001(\tB)\340A\003\372A#\n" + + "source_region\030\007 \001(\tB)\340A\001\372A#\n" + "!locations.googleapis.com/Location\022@\n\r" + "backup_region\030\010 \001(\tB)\340A\001\372A#\n" + "!locations.googleapis.com/Location\022F\n" diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CloudNetappServiceProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CloudNetappServiceProto.java index 2b6acdfaf0d9..43a6020af44d 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CloudNetappServiceProto.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CloudNetappServiceProto.java @@ -75,7 +75,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004verb\030\004 \001(\tB\003\340A\003\022\033\n" + "\016status_message\030\005 \001(\tB\003\340A\003\022#\n" + "\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n" - + "\013api_version\030\007 \001(\tB\003\340A\0032\316u\n" + + "\013api_version\030\007 \001(\tB\003\340A\0032\251~\n" + "\006NetApp\022\270\001\n" + "\020ListStoragePools\022/.google.cloud.netapp.v1.ListStoragePoolsRequest\0320.goog" + "le.cloud.netapp.v1.ListStoragePoolsRespo" @@ -129,268 +129,293 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014RevertVolume\022+.google.cloud.netapp.v1.Reve" + "rtVolumeRequest\032\035.google.longrunning.Operation\"[\312A\033\n" + "\006Volume\022\021OperationMetadata\202\323" - + "\344\223\0027\"2/v1/{name=projects/*/locations/*/volumes/*}:revert:\001*\022\325\001\n" - + "\026EstablishVolumePeering\0225.google.cloud.netapp.v1.Establis" - + "hVolumePeeringRequest\032\035.google.longrunning.Operation\"e\312A\033\n" - + "\006Volume\022\021OperationMeta" - + "data\202\323\344\223\002A\"/v1/{name=projects/*/lo" + + "cations/*/storagePools/*}:restoreVolume:" + + "\001*\022\313\001\n\021ListBackupConfigs\0220.google.cloud." + + "netapp.v1.ListBackupConfigsRequest\0321.goo" + + "gle.cloud.netapp.v1.ListBackupConfigsRes" + + "ponse\"Q\332A\006parent\202\323\344\223\002B\022@/v1/{parent=proj" + + "ects/*/locations/*/storagePools/*}/backu" + + "pConfigs\022\226\002\n\022UpdateBackupConfig\0221.google" + + ".cloud.netapp.v1.UpdateBackupConfigReque" + + "st\032\035.google.longrunning.Operation\"\255\001\312A/\n" + + "\032UpdateBackupConfigResponse\022\021OperationMe" + + "tadata\332A*name,volume_uuid,backup_config," + + "update_mask\202\323\344\223\002H\"C/v1/{name=projects/*/" + + "locations/*/storagePools/*}:updateBackup" + + "Config:\001*\032I\312A\025netapp.googleapis.com\322A.ht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "formB\212\002\n\032com.google.cloud.netapp.v1B\027Clo" + + "udNetappServiceProtoP\001Z2cloud.google.com" + + "/go/netapp/apiv1/netapppb;netapppb\252\002\026Goo" + + "gle.Cloud.NetApp.V1\312\002\026Google\\Cloud\\NetAp" + + "p\\V1\352\002\031Google::Cloud::NetApp::V1\352AN\n\036com" + + "pute.googleapis.com/Network\022,projects/{p" + + "roject}/global/networks/{network}b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CommonProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CommonProto.java index 3a476bbd3bb6..ed7fc2f82b76 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CommonProto.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CommonProto.java @@ -59,14 +59,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n" + "#google/cloud/netapp/v1/common.proto\022\026g" - + "oogle.cloud.netapp.v1\032\037google/api/field_behavior.proto\"\345\001\n" + + "oogle.cloud.netapp.v1\032\037google/api/field_behavior.proto\"\222\003\n" + "\020LocationMetadata\022K\n" + "\030supported_service_levels\030\001" + " \003(\0162$.google.cloud.netapp.v1.ServiceLevelB\003\340A\003\022P\n" + "\032supported_flex_performance\030\002" + " \003(\0162\'.google.cloud.netapp.v1.FlexPerformanceB\003\340A\003\022\024\n" + "\007has_vcp\030\003 \001(\010B\003\340A\003\022\034\n" - + "\017has_ontap_proxy\030\004 \001(\010B\003\340A\003\"%\n" + + "\017has_ontap_proxy\030\004 \001(\010B\003\340A\003\022`\n" + + "\025flex_performance_tier\030\005 \001(\0162<." + + "google.cloud.netapp.v1.LocationMetadata.FlexPerformanceTierB\003\340A\003\"I\n" + + "\023FlexPerformanceTier\022%\n" + + "!FLEX_PERFORMANCE_TIER_UNSPECIFIED\020\000\022\013\n" + + "\007LIMITED\020\001\"%\n" + "\014UserCommands\022\025\n" + "\010commands\030\001 \003(\tB\003\340A\003*_\n" + "\014ServiceLevel\022\035\n" @@ -108,10 +113,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005LINUX\020\001\022\013\n" + "\007WINDOWS\020\002\022\010\n" + "\004ESXI\020\003B\255\001\n" - + "\032com.google.cloud.netapp.v1B\013CommonProtoP\001Z2cloud.google.com/go/netapp/apiv" - + "1/netapppb;netapppb\252\002\026Google.Cloud.NetAp" - + "p.V1\312\002\026Google\\Cloud\\NetApp\\V1\352\002\031Google::" - + "Cloud::NetApp::V1b\006proto3" + + "\032com.google.cloud.netapp.v1B\013CommonProtoP\001Z2cloud.google.com/g" + + "o/netapp/apiv1/netapppb;netapppb\252\002\026Googl" + + "e.Cloud.NetApp.V1\312\002\026Google\\Cloud\\NetApp\\" + + "V1\352\002\031Google::Cloud::NetApp::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -125,7 +130,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_LocationMetadata_descriptor, new java.lang.String[] { - "SupportedServiceLevels", "SupportedFlexPerformance", "HasVcp", "HasOntapProxy", + "SupportedServiceLevels", + "SupportedFlexPerformance", + "HasVcp", + "HasOntapProxy", + "FlexPerformanceTier", }); internal_static_google_cloud_netapp_v1_UserCommands_descriptor = getDescriptor().getMessageType(1); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/EstablishVolumePeeringRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/EstablishVolumePeeringRequest.java index 26e4ba0b6232..82a22b12f9ed 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/EstablishVolumePeeringRequest.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/EstablishVolumePeeringRequest.java @@ -254,7 +254,7 @@ public com.google.protobuf.ByteString getPeerSvmNameBytes() { * * *
          -   * Optional. List of IPv4 ip addresses to be used for peering.
          +   * Optional. List of IPv4 IP addresses to be used for peering.
              * 
          * * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -269,7 +269,7 @@ public com.google.protobuf.ProtocolStringList getPeerIpAddressesList() { * * *
          -   * Optional. List of IPv4 ip addresses to be used for peering.
          +   * Optional. List of IPv4 IP addresses to be used for peering.
              * 
          * * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -284,7 +284,7 @@ public int getPeerIpAddressesCount() { * * *
          -   * Optional. List of IPv4 ip addresses to be used for peering.
          +   * Optional. List of IPv4 IP addresses to be used for peering.
              * 
          * * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -300,7 +300,7 @@ public java.lang.String getPeerIpAddresses(int index) { * * *
          -   * Optional. List of IPv4 ip addresses to be used for peering.
          +   * Optional. List of IPv4 IP addresses to be used for peering.
              * 
          * * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1161,7 +1161,7 @@ private void ensurePeerIpAddressesIsMutable() { * * *
          -     * Optional. List of IPv4 ip addresses to be used for peering.
          +     * Optional. List of IPv4 IP addresses to be used for peering.
                * 
          * * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1177,7 +1177,7 @@ public com.google.protobuf.ProtocolStringList getPeerIpAddressesList() { * * *
          -     * Optional. List of IPv4 ip addresses to be used for peering.
          +     * Optional. List of IPv4 IP addresses to be used for peering.
                * 
          * * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1192,7 +1192,7 @@ public int getPeerIpAddressesCount() { * * *
          -     * Optional. List of IPv4 ip addresses to be used for peering.
          +     * Optional. List of IPv4 IP addresses to be used for peering.
                * 
          * * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1208,7 +1208,7 @@ public java.lang.String getPeerIpAddresses(int index) { * * *
          -     * Optional. List of IPv4 ip addresses to be used for peering.
          +     * Optional. List of IPv4 IP addresses to be used for peering.
                * 
          * * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1224,7 +1224,7 @@ public com.google.protobuf.ByteString getPeerIpAddressesBytes(int index) { * * *
          -     * Optional. List of IPv4 ip addresses to be used for peering.
          +     * Optional. List of IPv4 IP addresses to be used for peering.
                * 
          * * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1248,7 +1248,7 @@ public Builder setPeerIpAddresses(int index, java.lang.String value) { * * *
          -     * Optional. List of IPv4 ip addresses to be used for peering.
          +     * Optional. List of IPv4 IP addresses to be used for peering.
                * 
          * * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1271,7 +1271,7 @@ public Builder addPeerIpAddresses(java.lang.String value) { * * *
          -     * Optional. List of IPv4 ip addresses to be used for peering.
          +     * Optional. List of IPv4 IP addresses to be used for peering.
                * 
          * * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1291,7 +1291,7 @@ public Builder addAllPeerIpAddresses(java.lang.Iterable values * * *
          -     * Optional. List of IPv4 ip addresses to be used for peering.
          +     * Optional. List of IPv4 IP addresses to be used for peering.
                * 
          * * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1310,7 +1310,7 @@ public Builder clearPeerIpAddresses() { * * *
          -     * Optional. List of IPv4 ip addresses to be used for peering.
          +     * Optional. List of IPv4 IP addresses to be used for peering.
                * 
          * * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/EstablishVolumePeeringRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/EstablishVolumePeeringRequestOrBuilder.java index 2556c8d990db..8ef7d0b02629 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/EstablishVolumePeeringRequestOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/EstablishVolumePeeringRequestOrBuilder.java @@ -118,7 +118,7 @@ public interface EstablishVolumePeeringRequestOrBuilder * * *
          -   * Optional. List of IPv4 ip addresses to be used for peering.
          +   * Optional. List of IPv4 IP addresses to be used for peering.
              * 
          * * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -131,7 +131,7 @@ public interface EstablishVolumePeeringRequestOrBuilder * * *
          -   * Optional. List of IPv4 ip addresses to be used for peering.
          +   * Optional. List of IPv4 IP addresses to be used for peering.
              * 
          * * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -144,7 +144,7 @@ public interface EstablishVolumePeeringRequestOrBuilder * * *
          -   * Optional. List of IPv4 ip addresses to be used for peering.
          +   * Optional. List of IPv4 IP addresses to be used for peering.
              * 
          * * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -158,7 +158,7 @@ public interface EstablishVolumePeeringRequestOrBuilder * * *
          -   * Optional. List of IPv4 ip addresses to be used for peering.
          +   * Optional. List of IPv4 IP addresses to be used for peering.
              * 
          * * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPostRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPostRequest.java index dfd2a8774d33..4d49ea86223e 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPostRequest.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPostRequest.java @@ -159,7 +159,7 @@ public com.google.protobuf.StructOrBuilder getBodyOrBuilder() { * * *
          -   * Required. The resource path of the ONTAP resource.
          +   * Required. The path of the ONTAP resource.
              * Format:
              * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
              * For example:
          @@ -187,7 +187,7 @@ public java.lang.String getOntapPath() {
              *
              *
              * 
          -   * Required. The resource path of the ONTAP resource.
          +   * Required. The path of the ONTAP resource.
              * Format:
              * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
              * For example:
          @@ -849,7 +849,7 @@ public com.google.protobuf.StructOrBuilder getBodyOrBuilder() {
                *
                *
                * 
          -     * Required. The resource path of the ONTAP resource.
          +     * Required. The path of the ONTAP resource.
                * Format:
                * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                * For example:
          @@ -876,7 +876,7 @@ public java.lang.String getOntapPath() {
                *
                *
                * 
          -     * Required. The resource path of the ONTAP resource.
          +     * Required. The path of the ONTAP resource.
                * Format:
                * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                * For example:
          @@ -903,7 +903,7 @@ public com.google.protobuf.ByteString getOntapPathBytes() {
                *
                *
                * 
          -     * Required. The resource path of the ONTAP resource.
          +     * Required. The path of the ONTAP resource.
                * Format:
                * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                * For example:
          @@ -929,7 +929,7 @@ public Builder setOntapPath(java.lang.String value) {
                *
                *
                * 
          -     * Required. The resource path of the ONTAP resource.
          +     * Required. The path of the ONTAP resource.
                * Format:
                * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                * For example:
          @@ -951,7 +951,7 @@ public Builder clearOntapPath() {
                *
                *
                * 
          -     * Required. The resource path of the ONTAP resource.
          +     * Required. The path of the ONTAP resource.
                * Format:
                * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                * For example:
          diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPostRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPostRequestOrBuilder.java
          index 0d4d97a05365..13a524d7ebdb 100644
          --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPostRequestOrBuilder.java
          +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPostRequestOrBuilder.java
          @@ -97,7 +97,7 @@ public interface ExecuteOntapPostRequestOrBuilder
              *
              *
              * 
          -   * Required. The resource path of the ONTAP resource.
          +   * Required. The path of the ONTAP resource.
              * Format:
              * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
              * For example:
          @@ -114,7 +114,7 @@ public interface ExecuteOntapPostRequestOrBuilder
              *
              *
              * 
          -   * Required. The resource path of the ONTAP resource.
          +   * Required. The path of the ONTAP resource.
              * Format:
              * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
              * For example:
          diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/GetSplitStatusRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/GetSplitStatusRequest.java
          new file mode 100644
          index 000000000000..bbc31a59e179
          --- /dev/null
          +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/GetSplitStatusRequest.java
          @@ -0,0 +1,617 @@
          +/*
          + * Copyright 2026 Google LLC
          + *
          + * Licensed under the Apache License, Version 2.0 (the "License");
          + * you may not use this file except in compliance with the License.
          + * You may obtain a copy of the License at
          + *
          + *     https://www.apache.org/licenses/LICENSE-2.0
          + *
          + * Unless required by applicable law or agreed to in writing, software
          + * distributed under the License is distributed on an "AS IS" BASIS,
          + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
          + * See the License for the specific language governing permissions and
          + * limitations under the License.
          + */
          +// Generated by the protocol buffer compiler.  DO NOT EDIT!
          +// NO CHECKED-IN PROTOBUF GENCODE
          +// source: google/cloud/netapp/v1/volume.proto
          +// Protobuf Java Version: 4.33.6
          +
          +package com.google.cloud.netapp.v1;
          +
          +/**
          + *
          + *
          + * 
          + * Request message for GetSplitStatus.
          + * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.GetSplitStatusRequest} + */ +@com.google.protobuf.Generated +public final class GetSplitStatusRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.GetSplitStatusRequest) + GetSplitStatusRequestOrBuilder { + 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= */ "", + "GetSplitStatusRequest"); + } + + // Use GetSplitStatusRequest.newBuilder() to construct. + private GetSplitStatusRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetSplitStatusRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_GetSplitStatusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_GetSplitStatusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.GetSplitStatusRequest.class, + com.google.cloud.netapp.v1.GetSplitStatusRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Required. The full name of the volume.
          +   * Format: projects/{project_number}/locations/{location}/volumes/{volume_id}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The full name of the volume.
          +   * Format: projects/{project_number}/locations/{location}/volumes/{volume_id}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.netapp.v1.GetSplitStatusRequest)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.GetSplitStatusRequest other = + (com.google.cloud.netapp.v1.GetSplitStatusRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.GetSplitStatusRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.GetSplitStatusRequest 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.netapp.v1.GetSplitStatusRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.GetSplitStatusRequest 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.netapp.v1.GetSplitStatusRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.GetSplitStatusRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.GetSplitStatusRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.GetSplitStatusRequest 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.netapp.v1.GetSplitStatusRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.GetSplitStatusRequest 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.netapp.v1.GetSplitStatusRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.GetSplitStatusRequest 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.netapp.v1.GetSplitStatusRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request message for GetSplitStatus.
          +   * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.GetSplitStatusRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.GetSplitStatusRequest) + com.google.cloud.netapp.v1.GetSplitStatusRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_GetSplitStatusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_GetSplitStatusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.GetSplitStatusRequest.class, + com.google.cloud.netapp.v1.GetSplitStatusRequest.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.GetSplitStatusRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_GetSplitStatusRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.GetSplitStatusRequest getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.GetSplitStatusRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.GetSplitStatusRequest build() { + com.google.cloud.netapp.v1.GetSplitStatusRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.GetSplitStatusRequest buildPartial() { + com.google.cloud.netapp.v1.GetSplitStatusRequest result = + new com.google.cloud.netapp.v1.GetSplitStatusRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.GetSplitStatusRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.netapp.v1.GetSplitStatusRequest) { + return mergeFrom((com.google.cloud.netapp.v1.GetSplitStatusRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.GetSplitStatusRequest other) { + if (other == com.google.cloud.netapp.v1.GetSplitStatusRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Required. The full name of the volume.
          +     * Format: projects/{project_number}/locations/{location}/volumes/{volume_id}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The full name of the volume.
          +     * Format: projects/{project_number}/locations/{location}/volumes/{volume_id}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The full name of the volume.
          +     * Format: projects/{project_number}/locations/{location}/volumes/{volume_id}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The full name of the volume.
          +     * Format: projects/{project_number}/locations/{location}/volumes/{volume_id}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The full name of the volume.
          +     * Format: projects/{project_number}/locations/{location}/volumes/{volume_id}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.GetSplitStatusRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.GetSplitStatusRequest) + private static final com.google.cloud.netapp.v1.GetSplitStatusRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.GetSplitStatusRequest(); + } + + public static com.google.cloud.netapp.v1.GetSplitStatusRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSplitStatusRequest 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.netapp.v1.GetSplitStatusRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/GetSplitStatusRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/GetSplitStatusRequestOrBuilder.java new file mode 100644 index 000000000000..d4668ffc1d6f --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/GetSplitStatusRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +@com.google.protobuf.Generated +public interface GetSplitStatusRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.GetSplitStatusRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The full name of the volume.
          +   * Format: projects/{project_number}/locations/{location}/volumes/{volume_id}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Required. The full name of the volume.
          +   * Format: projects/{project_number}/locations/{location}/volumes/{volume_id}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/KmsConfig.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/KmsConfig.java index 85fca662ae60..d44905d8ba8d 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/KmsConfig.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/KmsConfig.java @@ -478,7 +478,7 @@ private State(int value) { * * *
          -   * Identifier. Name of the KmsConfig.
          +   * Identifier. Name of the `KmsConfig`.
              * Format: `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
              * 
          * @@ -503,7 +503,7 @@ public java.lang.String getName() { * * *
          -   * Identifier. Name of the KmsConfig.
          +   * Identifier. Name of the `KmsConfig`.
              * Format: `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
              * 
          * @@ -537,7 +537,9 @@ public com.google.protobuf.ByteString getNameBytes() { * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` *
          * - * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The cryptoKeyName. */ @@ -562,7 +564,9 @@ public java.lang.String getCryptoKeyName() { * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` *
          * - * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for cryptoKeyName. */ @@ -1551,7 +1555,7 @@ public Builder mergeFrom( * * *
          -     * Identifier. Name of the KmsConfig.
          +     * Identifier. Name of the `KmsConfig`.
                * Format: `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
                * 
          * @@ -1575,7 +1579,7 @@ public java.lang.String getName() { * * *
          -     * Identifier. Name of the KmsConfig.
          +     * Identifier. Name of the `KmsConfig`.
                * Format: `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
                * 
          * @@ -1599,7 +1603,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
          -     * Identifier. Name of the KmsConfig.
          +     * Identifier. Name of the `KmsConfig`.
                * Format: `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
                * 
          * @@ -1622,7 +1626,7 @@ public Builder setName(java.lang.String value) { * * *
          -     * Identifier. Name of the KmsConfig.
          +     * Identifier. Name of the `KmsConfig`.
                * Format: `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
                * 
          * @@ -1641,7 +1645,7 @@ public Builder clearName() { * * *
          -     * Identifier. Name of the KmsConfig.
          +     * Identifier. Name of the `KmsConfig`.
                * Format: `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
                * 
          * @@ -1671,7 +1675,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` *
          * - * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The cryptoKeyName. */ @@ -1695,7 +1701,9 @@ public java.lang.String getCryptoKeyName() { * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` *
          * - * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for cryptoKeyName. */ @@ -1719,7 +1727,9 @@ public com.google.protobuf.ByteString getCryptoKeyNameBytes() { * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` *
          * - * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The cryptoKeyName to set. * @return This builder for chaining. @@ -1742,7 +1752,9 @@ public Builder setCryptoKeyName(java.lang.String value) { * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` *
          * - * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -1761,7 +1773,9 @@ public Builder clearCryptoKeyName() { * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` *
          * - * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for cryptoKeyName to set. * @return This builder for chaining. diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/KmsConfigOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/KmsConfigOrBuilder.java index 2d3af4277588..aad4d8381f0f 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/KmsConfigOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/KmsConfigOrBuilder.java @@ -30,7 +30,7 @@ public interface KmsConfigOrBuilder * * *
          -   * Identifier. Name of the KmsConfig.
          +   * Identifier. Name of the `KmsConfig`.
              * Format: `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
              * 
          * @@ -44,7 +44,7 @@ public interface KmsConfigOrBuilder * * *
          -   * Identifier. Name of the KmsConfig.
          +   * Identifier. Name of the `KmsConfig`.
              * Format: `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
              * 
          * @@ -62,7 +62,9 @@ public interface KmsConfigOrBuilder * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` *
          * - * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The cryptoKeyName. */ @@ -76,7 +78,9 @@ public interface KmsConfigOrBuilder * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` *
          * - * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for cryptoKeyName. */ diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/KmsProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/KmsProto.java index da58c77d9a26..8b7166c74eba 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/KmsProto.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/KmsProto.java @@ -133,12 +133,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027VerifyKmsConfigResponse\022\024\n" + "\007healthy\030\001 \001(\010B\003\340A\003\022\031\n" + "\014health_error\030\002 \001(\tB\003\340A\003\022\031\n" - + "\014instructions\030\003 \001(\tB\003\340A\003\"\314\005\n" + + "\014instructions\030\003 \001(\tB\003\340A\003\"\362\005\n" + "\tKmsConfig\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\022\034\n" - + "\017crypto_key_name\030\002 \001(\tB\003\340A\002\022;\n" - + "\005state\030\003 " - + "\001(\0162\'.google.cloud.netapp.v1.KmsConfig.StateB\003\340A\003\022\032\n\r" + + "\004name\030\001 \001(\tB\003\340A\010\022B\n" + + "\017crypto_key_name\030\002 \001(\tB)\340A\002\372A#\n" + + "!cloudkms.googleapis.com/CryptoKey\022;\n" + + "\005state\030\003 \001(" + + "\0162\'.google.cloud.netapp.v1.KmsConfig.StateB\003\340A\003\022\032\n\r" + "state_details\030\004 \001(\tB\003\340A\003\0224\n" + "\013create_time\030\005" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" @@ -163,15 +164,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010DISABLED\020\n" + "\022\r\n" + "\tMIGRATING\020\013:|\352Ay\n" - + "\037netapp.googleapis.com/KmsConfig\022?pr" - + "ojects/{project}/locations/{location}/kmsConfigs/{kms_config}*\n" - + "kmsConfigs2\tkmsConfigB\324\002\n" - + "\032com.google.cloud.netapp.v1B\010KmsProtoP\001Z2cloud.google.com/go/netapp/apiv" - + "1/netapppb;netapppb\252\002\026Google.Cloud.NetAp" - + "p.V1\312\002\026Google\\Cloud\\NetApp\\V1\352\002\031Google::Cloud::NetApp::V1\352A\246\001\n" - + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects/{proje" - + "ct}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVe" - + "rsions/{crypto_key_version}b\006proto3" + + "\037netapp.googleapis.com/KmsConfig\022?proj" + + "ects/{project}/locations/{location}/kmsConfigs/{kms_config}*\n" + + "kmsConfigs2\tkmsConfigB\317\003\n" + + "\032com.google.cloud.netapp.v1B\010KmsProtoP\001Z2cloud.google.com/go/netapp/apiv1/" + + "netapppb;netapppb\252\002\026Google.Cloud.NetApp." + + "V1\312\002\026Google\\Cloud\\NetApp\\V1\352\002\031Google::Cloud::NetApp::V1\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project}/locati" + + "ons/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352A\246\001\n" + + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects/{proj" + + "ect}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyV" + + "ersions/{crypto_key_version}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LargeCapacityConfig.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LargeCapacityConfig.java index b0800c7c8730..82d447338b6c 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LargeCapacityConfig.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LargeCapacityConfig.java @@ -25,7 +25,7 @@ * *
            * Configuration for a Large Capacity Volume. A Large Capacity Volume
          - * supports sizes ranging from 4.8 TiB to 20 PiB, it is composed of multiple
          + * supports sizes ranging from 4.8 TiB to 20 PiB; it is composed of multiple
            * internal constituents, and must be created in a large capacity pool.
            * 
          * @@ -255,7 +255,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * *
              * Configuration for a Large Capacity Volume. A Large Capacity Volume
          -   * supports sizes ranging from 4.8 TiB to 20 PiB, it is composed of multiple
          +   * supports sizes ranging from 4.8 TiB to 20 PiB; it is composed of multiple
              * internal constituents, and must be created in a large capacity pool.
              * 
          * diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ListBackupConfigsRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ListBackupConfigsRequest.java new file mode 100644 index 000000000000..102f558e0c2d --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ListBackupConfigsRequest.java @@ -0,0 +1,1303 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +/** + * + * + *
          + * Message for requesting list of BackupConfigs in a StoragePool.
          + * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.ListBackupConfigsRequest} + */ +@com.google.protobuf.Generated +public final class ListBackupConfigsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.ListBackupConfigsRequest) + ListBackupConfigsRequestOrBuilder { + 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= */ "", + "ListBackupConfigsRequest"); + } + + // Use ListBackupConfigsRequest.newBuilder() to construct. + private ListBackupConfigsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListBackupConfigsRequest() { + parent_ = ""; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_ListBackupConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_ListBackupConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.ListBackupConfigsRequest.class, + com.google.cloud.netapp.v1.ListBackupConfigsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
          +   * Required. The ONTAP StoragePool for which to retrieve backup configuration
          +   * information, in the format
          +   * `projects/{project}/locations/{location}/storagePools/{storage_pool}`.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The ONTAP StoragePool for which to retrieve backup configuration
          +   * information, in the format
          +   * `projects/{project}/locations/{location}/storagePools/{storage_pool}`.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
          +   * Optional. The maximum number of items to return. The service may return
          +   * fewer than this value. The maximum value is 1000; values above 1000 will be
          +   * coerced to 1000. If unspecified or set to 0, a default of 50 will be used.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +   * Optional. The next_page_token value to use if there are additional
          +   * results to retrieve for this list request.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. The next_page_token value to use if there are additional
          +   * results to retrieve for this list request.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
          +   * Optional. Sort results. Supported values are "volume_id" or ""
          +   * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Sort results. Supported values are "volume_id" or ""
          +   * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
          +   * Optional. The standard list filter.
          +   * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. The standard list filter.
          +   * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, filter_); + } + 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.netapp.v1.ListBackupConfigsRequest)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.ListBackupConfigsRequest other = + (com.google.cloud.netapp.v1.ListBackupConfigsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.ListBackupConfigsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ListBackupConfigsRequest 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.netapp.v1.ListBackupConfigsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ListBackupConfigsRequest 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.netapp.v1.ListBackupConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ListBackupConfigsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ListBackupConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ListBackupConfigsRequest 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.netapp.v1.ListBackupConfigsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ListBackupConfigsRequest 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.netapp.v1.ListBackupConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ListBackupConfigsRequest 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.netapp.v1.ListBackupConfigsRequest 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; + } + + /** + * + * + *
          +   * Message for requesting list of BackupConfigs in a StoragePool.
          +   * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.ListBackupConfigsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.ListBackupConfigsRequest) + com.google.cloud.netapp.v1.ListBackupConfigsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_ListBackupConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_ListBackupConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.ListBackupConfigsRequest.class, + com.google.cloud.netapp.v1.ListBackupConfigsRequest.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.ListBackupConfigsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_ListBackupConfigsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ListBackupConfigsRequest getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.ListBackupConfigsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ListBackupConfigsRequest build() { + com.google.cloud.netapp.v1.ListBackupConfigsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ListBackupConfigsRequest buildPartial() { + com.google.cloud.netapp.v1.ListBackupConfigsRequest result = + new com.google.cloud.netapp.v1.ListBackupConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.ListBackupConfigsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.netapp.v1.ListBackupConfigsRequest) { + return mergeFrom((com.google.cloud.netapp.v1.ListBackupConfigsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.ListBackupConfigsRequest other) { + if (other == com.google.cloud.netapp.v1.ListBackupConfigsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 parent_ = ""; + + /** + * + * + *
          +     * Required. The ONTAP StoragePool for which to retrieve backup configuration
          +     * information, in the format
          +     * `projects/{project}/locations/{location}/storagePools/{storage_pool}`.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The ONTAP StoragePool for which to retrieve backup configuration
          +     * information, in the format
          +     * `projects/{project}/locations/{location}/storagePools/{storage_pool}`.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The ONTAP StoragePool for which to retrieve backup configuration
          +     * information, in the format
          +     * `projects/{project}/locations/{location}/storagePools/{storage_pool}`.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The ONTAP StoragePool for which to retrieve backup configuration
          +     * information, in the format
          +     * `projects/{project}/locations/{location}/storagePools/{storage_pool}`.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The ONTAP StoragePool for which to retrieve backup configuration
          +     * information, in the format
          +     * `projects/{project}/locations/{location}/storagePools/{storage_pool}`.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
          +     * Optional. The maximum number of items to return. The service may return
          +     * fewer than this value. The maximum value is 1000; values above 1000 will be
          +     * coerced to 1000. If unspecified or set to 0, a default of 50 will be used.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
          +     * Optional. The maximum number of items to return. The service may return
          +     * fewer than this value. The maximum value is 1000; values above 1000 will be
          +     * coerced to 1000. If unspecified or set to 0, a default of 50 will be used.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The maximum number of items to return. The service may return
          +     * fewer than this value. The maximum value is 1000; values above 1000 will be
          +     * coerced to 1000. If unspecified or set to 0, a default of 50 will be used.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +     * Optional. The next_page_token value to use if there are additional
          +     * results to retrieve for this list request.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. The next_page_token value to use if there are additional
          +     * results to retrieve for this list request.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. The next_page_token value to use if there are additional
          +     * results to retrieve for this list request.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The next_page_token value to use if there are additional
          +     * results to retrieve for this list request.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The next_page_token value to use if there are additional
          +     * results to retrieve for this list request.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
          +     * Optional. Sort results. Supported values are "volume_id" or ""
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Sort results. Supported values are "volume_id" or ""
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Sort results. Supported values are "volume_id" or ""
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Sort results. Supported values are "volume_id" or ""
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Sort results. Supported values are "volume_id" or ""
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
          +     * Optional. The standard list filter.
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. The standard list filter.
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. The standard list filter.
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The standard list filter.
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The standard list filter.
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.ListBackupConfigsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.ListBackupConfigsRequest) + private static final com.google.cloud.netapp.v1.ListBackupConfigsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.ListBackupConfigsRequest(); + } + + public static com.google.cloud.netapp.v1.ListBackupConfigsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupConfigsRequest 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.netapp.v1.ListBackupConfigsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ListBackupConfigsRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ListBackupConfigsRequestOrBuilder.java new file mode 100644 index 000000000000..4c90b6c41ab9 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ListBackupConfigsRequestOrBuilder.java @@ -0,0 +1,157 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +@com.google.protobuf.Generated +public interface ListBackupConfigsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.ListBackupConfigsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The ONTAP StoragePool for which to retrieve backup configuration
          +   * information, in the format
          +   * `projects/{project}/locations/{location}/storagePools/{storage_pool}`.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
          +   * Required. The ONTAP StoragePool for which to retrieve backup configuration
          +   * information, in the format
          +   * `projects/{project}/locations/{location}/storagePools/{storage_pool}`.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Optional. The maximum number of items to return. The service may return
          +   * fewer than this value. The maximum value is 1000; values above 1000 will be
          +   * coerced to 1000. If unspecified or set to 0, a default of 50 will be used.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
          +   * Optional. The next_page_token value to use if there are additional
          +   * results to retrieve for this list request.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
          +   * Optional. The next_page_token value to use if there are additional
          +   * results to retrieve for this list request.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
          +   * Optional. Sort results. Supported values are "volume_id" or ""
          +   * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
          +   * Optional. Sort results. Supported values are "volume_id" or ""
          +   * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
          +   * Optional. The standard list filter.
          +   * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
          +   * Optional. The standard list filter.
          +   * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ListBackupConfigsResponse.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ListBackupConfigsResponse.java new file mode 100644 index 000000000000..908b63487eae --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ListBackupConfigsResponse.java @@ -0,0 +1,1423 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +/** + * + * + *
          + * Message for response to listing BackupConfigs in an ONTAP StoragePool.
          + * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.ListBackupConfigsResponse} + */ +@com.google.protobuf.Generated +public final class ListBackupConfigsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.ListBackupConfigsResponse) + ListBackupConfigsResponseOrBuilder { + 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= */ "", + "ListBackupConfigsResponse"); + } + + // Use ListBackupConfigsResponse.newBuilder() to construct. + private ListBackupConfigsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListBackupConfigsResponse() { + volumeBackupConfigs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_ListBackupConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_ListBackupConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.ListBackupConfigsResponse.class, + com.google.cloud.netapp.v1.ListBackupConfigsResponse.Builder.class); + } + + public static final int VOLUME_BACKUP_CONFIGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List volumeBackupConfigs_; + + /** + * + * + *
          +   * A list of backup configurations for volumes in the pool.
          +   * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + @java.lang.Override + public java.util.List + getVolumeBackupConfigsList() { + return volumeBackupConfigs_; + } + + /** + * + * + *
          +   * A list of backup configurations for volumes in the pool.
          +   * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + @java.lang.Override + public java.util.List + getVolumeBackupConfigsOrBuilderList() { + return volumeBackupConfigs_; + } + + /** + * + * + *
          +   * A list of backup configurations for volumes in the pool.
          +   * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + @java.lang.Override + public int getVolumeBackupConfigsCount() { + return volumeBackupConfigs_.size(); + } + + /** + * + * + *
          +   * A list of backup configurations for volumes in the pool.
          +   * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + @java.lang.Override + public com.google.cloud.netapp.v1.VolumeBackupConfig getVolumeBackupConfigs(int index) { + return volumeBackupConfigs_.get(index); + } + + /** + * + * + *
          +   * A list of backup configurations for volumes in the pool.
          +   * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + @java.lang.Override + public com.google.cloud.netapp.v1.VolumeBackupConfigOrBuilder getVolumeBackupConfigsOrBuilder( + int index) { + return volumeBackupConfigs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +   * The token you can use to retrieve the next page of results. Not returned
          +   * if there are no more results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * The token you can use to retrieve the next page of results. Not returned
          +   * if there are no more results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < volumeBackupConfigs_.size(); i++) { + output.writeMessage(1, volumeBackupConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < volumeBackupConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, volumeBackupConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.netapp.v1.ListBackupConfigsResponse)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.ListBackupConfigsResponse other = + (com.google.cloud.netapp.v1.ListBackupConfigsResponse) obj; + + if (!getVolumeBackupConfigsList().equals(other.getVolumeBackupConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getVolumeBackupConfigsCount() > 0) { + hash = (37 * hash) + VOLUME_BACKUP_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getVolumeBackupConfigsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.ListBackupConfigsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ListBackupConfigsResponse 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.netapp.v1.ListBackupConfigsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ListBackupConfigsResponse 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.netapp.v1.ListBackupConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ListBackupConfigsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ListBackupConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ListBackupConfigsResponse 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.netapp.v1.ListBackupConfigsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ListBackupConfigsResponse 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.netapp.v1.ListBackupConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ListBackupConfigsResponse 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.netapp.v1.ListBackupConfigsResponse 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; + } + + /** + * + * + *
          +   * Message for response to listing BackupConfigs in an ONTAP StoragePool.
          +   * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.ListBackupConfigsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.ListBackupConfigsResponse) + com.google.cloud.netapp.v1.ListBackupConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_ListBackupConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_ListBackupConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.ListBackupConfigsResponse.class, + com.google.cloud.netapp.v1.ListBackupConfigsResponse.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.ListBackupConfigsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (volumeBackupConfigsBuilder_ == null) { + volumeBackupConfigs_ = java.util.Collections.emptyList(); + } else { + volumeBackupConfigs_ = null; + volumeBackupConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_ListBackupConfigsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ListBackupConfigsResponse getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.ListBackupConfigsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ListBackupConfigsResponse build() { + com.google.cloud.netapp.v1.ListBackupConfigsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ListBackupConfigsResponse buildPartial() { + com.google.cloud.netapp.v1.ListBackupConfigsResponse result = + new com.google.cloud.netapp.v1.ListBackupConfigsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.netapp.v1.ListBackupConfigsResponse result) { + if (volumeBackupConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + volumeBackupConfigs_ = java.util.Collections.unmodifiableList(volumeBackupConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.volumeBackupConfigs_ = volumeBackupConfigs_; + } else { + result.volumeBackupConfigs_ = volumeBackupConfigsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.netapp.v1.ListBackupConfigsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.netapp.v1.ListBackupConfigsResponse) { + return mergeFrom((com.google.cloud.netapp.v1.ListBackupConfigsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.ListBackupConfigsResponse other) { + if (other == com.google.cloud.netapp.v1.ListBackupConfigsResponse.getDefaultInstance()) + return this; + if (volumeBackupConfigsBuilder_ == null) { + if (!other.volumeBackupConfigs_.isEmpty()) { + if (volumeBackupConfigs_.isEmpty()) { + volumeBackupConfigs_ = other.volumeBackupConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureVolumeBackupConfigsIsMutable(); + volumeBackupConfigs_.addAll(other.volumeBackupConfigs_); + } + onChanged(); + } + } else { + if (!other.volumeBackupConfigs_.isEmpty()) { + if (volumeBackupConfigsBuilder_.isEmpty()) { + volumeBackupConfigsBuilder_.dispose(); + volumeBackupConfigsBuilder_ = null; + volumeBackupConfigs_ = other.volumeBackupConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + volumeBackupConfigsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetVolumeBackupConfigsFieldBuilder() + : null; + } else { + volumeBackupConfigsBuilder_.addAllMessages(other.volumeBackupConfigs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + 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: + { + com.google.cloud.netapp.v1.VolumeBackupConfig m = + input.readMessage( + com.google.cloud.netapp.v1.VolumeBackupConfig.parser(), extensionRegistry); + if (volumeBackupConfigsBuilder_ == null) { + ensureVolumeBackupConfigsIsMutable(); + volumeBackupConfigs_.add(m); + } else { + volumeBackupConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + 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.util.List volumeBackupConfigs_ = + java.util.Collections.emptyList(); + + private void ensureVolumeBackupConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + volumeBackupConfigs_ = + new java.util.ArrayList( + volumeBackupConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.netapp.v1.VolumeBackupConfig, + com.google.cloud.netapp.v1.VolumeBackupConfig.Builder, + com.google.cloud.netapp.v1.VolumeBackupConfigOrBuilder> + volumeBackupConfigsBuilder_; + + /** + * + * + *
          +     * A list of backup configurations for volumes in the pool.
          +     * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + public java.util.List + getVolumeBackupConfigsList() { + if (volumeBackupConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(volumeBackupConfigs_); + } else { + return volumeBackupConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * A list of backup configurations for volumes in the pool.
          +     * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + public int getVolumeBackupConfigsCount() { + if (volumeBackupConfigsBuilder_ == null) { + return volumeBackupConfigs_.size(); + } else { + return volumeBackupConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * A list of backup configurations for volumes in the pool.
          +     * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + public com.google.cloud.netapp.v1.VolumeBackupConfig getVolumeBackupConfigs(int index) { + if (volumeBackupConfigsBuilder_ == null) { + return volumeBackupConfigs_.get(index); + } else { + return volumeBackupConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * A list of backup configurations for volumes in the pool.
          +     * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + public Builder setVolumeBackupConfigs( + int index, com.google.cloud.netapp.v1.VolumeBackupConfig value) { + if (volumeBackupConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVolumeBackupConfigsIsMutable(); + volumeBackupConfigs_.set(index, value); + onChanged(); + } else { + volumeBackupConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * A list of backup configurations for volumes in the pool.
          +     * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + public Builder setVolumeBackupConfigs( + int index, com.google.cloud.netapp.v1.VolumeBackupConfig.Builder builderForValue) { + if (volumeBackupConfigsBuilder_ == null) { + ensureVolumeBackupConfigsIsMutable(); + volumeBackupConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + volumeBackupConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of backup configurations for volumes in the pool.
          +     * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + public Builder addVolumeBackupConfigs(com.google.cloud.netapp.v1.VolumeBackupConfig value) { + if (volumeBackupConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVolumeBackupConfigsIsMutable(); + volumeBackupConfigs_.add(value); + onChanged(); + } else { + volumeBackupConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * A list of backup configurations for volumes in the pool.
          +     * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + public Builder addVolumeBackupConfigs( + int index, com.google.cloud.netapp.v1.VolumeBackupConfig value) { + if (volumeBackupConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVolumeBackupConfigsIsMutable(); + volumeBackupConfigs_.add(index, value); + onChanged(); + } else { + volumeBackupConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * A list of backup configurations for volumes in the pool.
          +     * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + public Builder addVolumeBackupConfigs( + com.google.cloud.netapp.v1.VolumeBackupConfig.Builder builderForValue) { + if (volumeBackupConfigsBuilder_ == null) { + ensureVolumeBackupConfigsIsMutable(); + volumeBackupConfigs_.add(builderForValue.build()); + onChanged(); + } else { + volumeBackupConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of backup configurations for volumes in the pool.
          +     * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + public Builder addVolumeBackupConfigs( + int index, com.google.cloud.netapp.v1.VolumeBackupConfig.Builder builderForValue) { + if (volumeBackupConfigsBuilder_ == null) { + ensureVolumeBackupConfigsIsMutable(); + volumeBackupConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + volumeBackupConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of backup configurations for volumes in the pool.
          +     * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + public Builder addAllVolumeBackupConfigs( + java.lang.Iterable values) { + if (volumeBackupConfigsBuilder_ == null) { + ensureVolumeBackupConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumeBackupConfigs_); + onChanged(); + } else { + volumeBackupConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * A list of backup configurations for volumes in the pool.
          +     * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + public Builder clearVolumeBackupConfigs() { + if (volumeBackupConfigsBuilder_ == null) { + volumeBackupConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + volumeBackupConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * A list of backup configurations for volumes in the pool.
          +     * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + public Builder removeVolumeBackupConfigs(int index) { + if (volumeBackupConfigsBuilder_ == null) { + ensureVolumeBackupConfigsIsMutable(); + volumeBackupConfigs_.remove(index); + onChanged(); + } else { + volumeBackupConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * A list of backup configurations for volumes in the pool.
          +     * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + public com.google.cloud.netapp.v1.VolumeBackupConfig.Builder getVolumeBackupConfigsBuilder( + int index) { + return internalGetVolumeBackupConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * A list of backup configurations for volumes in the pool.
          +     * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + public com.google.cloud.netapp.v1.VolumeBackupConfigOrBuilder getVolumeBackupConfigsOrBuilder( + int index) { + if (volumeBackupConfigsBuilder_ == null) { + return volumeBackupConfigs_.get(index); + } else { + return volumeBackupConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * A list of backup configurations for volumes in the pool.
          +     * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + public java.util.List + getVolumeBackupConfigsOrBuilderList() { + if (volumeBackupConfigsBuilder_ != null) { + return volumeBackupConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(volumeBackupConfigs_); + } + } + + /** + * + * + *
          +     * A list of backup configurations for volumes in the pool.
          +     * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + public com.google.cloud.netapp.v1.VolumeBackupConfig.Builder addVolumeBackupConfigsBuilder() { + return internalGetVolumeBackupConfigsFieldBuilder() + .addBuilder(com.google.cloud.netapp.v1.VolumeBackupConfig.getDefaultInstance()); + } + + /** + * + * + *
          +     * A list of backup configurations for volumes in the pool.
          +     * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + public com.google.cloud.netapp.v1.VolumeBackupConfig.Builder addVolumeBackupConfigsBuilder( + int index) { + return internalGetVolumeBackupConfigsFieldBuilder() + .addBuilder(index, com.google.cloud.netapp.v1.VolumeBackupConfig.getDefaultInstance()); + } + + /** + * + * + *
          +     * A list of backup configurations for volumes in the pool.
          +     * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + public java.util.List + getVolumeBackupConfigsBuilderList() { + return internalGetVolumeBackupConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.netapp.v1.VolumeBackupConfig, + com.google.cloud.netapp.v1.VolumeBackupConfig.Builder, + com.google.cloud.netapp.v1.VolumeBackupConfigOrBuilder> + internalGetVolumeBackupConfigsFieldBuilder() { + if (volumeBackupConfigsBuilder_ == null) { + volumeBackupConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.netapp.v1.VolumeBackupConfig, + com.google.cloud.netapp.v1.VolumeBackupConfig.Builder, + com.google.cloud.netapp.v1.VolumeBackupConfigOrBuilder>( + volumeBackupConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + volumeBackupConfigs_ = null; + } + return volumeBackupConfigsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +     * The token you can use to retrieve the next page of results. Not returned
          +     * if there are no more results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * The token you can use to retrieve the next page of results. Not returned
          +     * if there are no more results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * The token you can use to retrieve the next page of results. Not returned
          +     * if there are no more results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * The token you can use to retrieve the next page of results. Not returned
          +     * if there are no more results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * The token you can use to retrieve the next page of results. Not returned
          +     * if there are no more results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.ListBackupConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.ListBackupConfigsResponse) + private static final com.google.cloud.netapp.v1.ListBackupConfigsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.ListBackupConfigsResponse(); + } + + public static com.google.cloud.netapp.v1.ListBackupConfigsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupConfigsResponse 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.netapp.v1.ListBackupConfigsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ListBackupConfigsResponseOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ListBackupConfigsResponseOrBuilder.java new file mode 100644 index 000000000000..29ec676e3802 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ListBackupConfigsResponseOrBuilder.java @@ -0,0 +1,166 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +@com.google.protobuf.Generated +public interface ListBackupConfigsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.ListBackupConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * A list of backup configurations for volumes in the pool.
          +   * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + java.util.List getVolumeBackupConfigsList(); + + /** + * + * + *
          +   * A list of backup configurations for volumes in the pool.
          +   * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + com.google.cloud.netapp.v1.VolumeBackupConfig getVolumeBackupConfigs(int index); + + /** + * + * + *
          +   * A list of backup configurations for volumes in the pool.
          +   * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + int getVolumeBackupConfigsCount(); + + /** + * + * + *
          +   * A list of backup configurations for volumes in the pool.
          +   * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + java.util.List + getVolumeBackupConfigsOrBuilderList(); + + /** + * + * + *
          +   * A list of backup configurations for volumes in the pool.
          +   * 
          + * + * repeated .google.cloud.netapp.v1.VolumeBackupConfig volume_backup_configs = 1; + */ + com.google.cloud.netapp.v1.VolumeBackupConfigOrBuilder getVolumeBackupConfigsOrBuilder(int index); + + /** + * + * + *
          +   * The token you can use to retrieve the next page of results. Not returned
          +   * if there are no more results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
          +   * The token you can use to retrieve the next page of results. Not returned
          +   * if there are no more results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LocationMetadata.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LocationMetadata.java index 017d4be3804e..b84bfe21e4dc 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LocationMetadata.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LocationMetadata.java @@ -55,6 +55,7 @@ private LocationMetadata(com.google.protobuf.GeneratedMessage.Builder builder private LocationMetadata() { supportedServiceLevels_ = emptyIntList(); supportedFlexPerformance_ = emptyIntList(); + flexPerformanceTier_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -72,6 +73,155 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.netapp.v1.LocationMetadata.Builder.class); } + /** + * + * + *
          +   * The flex performance tier of this location.
          +   * 
          + * + * Protobuf enum {@code google.cloud.netapp.v1.LocationMetadata.FlexPerformanceTier} + */ + public enum FlexPerformanceTier implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Unspecified flex performance tier.
          +     * 
          + * + * FLEX_PERFORMANCE_TIER_UNSPECIFIED = 0; + */ + FLEX_PERFORMANCE_TIER_UNSPECIFIED(0), + /** + * + * + *
          +     * Flex performance tier is limited.
          +     * 
          + * + * LIMITED = 1; + */ + LIMITED(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FlexPerformanceTier"); + } + + /** + * + * + *
          +     * Unspecified flex performance tier.
          +     * 
          + * + * FLEX_PERFORMANCE_TIER_UNSPECIFIED = 0; + */ + public static final int FLEX_PERFORMANCE_TIER_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
          +     * Flex performance tier is limited.
          +     * 
          + * + * LIMITED = 1; + */ + public static final int LIMITED_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FlexPerformanceTier valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static FlexPerformanceTier forNumber(int value) { + switch (value) { + case 0: + return FLEX_PERFORMANCE_TIER_UNSPECIFIED; + case 1: + return LIMITED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FlexPerformanceTier findValueByNumber(int number) { + return FlexPerformanceTier.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.netapp.v1.LocationMetadata.getDescriptor().getEnumTypes().get(0); + } + + private static final FlexPerformanceTier[] VALUES = values(); + + public static FlexPerformanceTier valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private FlexPerformanceTier(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.netapp.v1.LocationMetadata.FlexPerformanceTier) + } + public static final int SUPPORTED_SERVICE_LEVELS_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -338,6 +488,50 @@ public boolean getHasOntapProxy() { return hasOntapProxy_; } + public static final int FLEX_PERFORMANCE_TIER_FIELD_NUMBER = 5; + private int flexPerformanceTier_ = 0; + + /** + * + * + *
          +   * Output only. Indicates the flex performance tier of this location.
          +   * 
          + * + * + * .google.cloud.netapp.v1.LocationMetadata.FlexPerformanceTier flex_performance_tier = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for flexPerformanceTier. + */ + @java.lang.Override + public int getFlexPerformanceTierValue() { + return flexPerformanceTier_; + } + + /** + * + * + *
          +   * Output only. Indicates the flex performance tier of this location.
          +   * 
          + * + * + * .google.cloud.netapp.v1.LocationMetadata.FlexPerformanceTier flex_performance_tier = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The flexPerformanceTier. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.LocationMetadata.FlexPerformanceTier getFlexPerformanceTier() { + com.google.cloud.netapp.v1.LocationMetadata.FlexPerformanceTier result = + com.google.cloud.netapp.v1.LocationMetadata.FlexPerformanceTier.forNumber( + flexPerformanceTier_); + return result == null + ? com.google.cloud.netapp.v1.LocationMetadata.FlexPerformanceTier.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -373,6 +567,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (hasOntapProxy_ != false) { output.writeBool(4, hasOntapProxy_); } + if (flexPerformanceTier_ + != com.google.cloud.netapp.v1.LocationMetadata.FlexPerformanceTier + .FLEX_PERFORMANCE_TIER_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, flexPerformanceTier_); + } getUnknownFields().writeTo(output); } @@ -416,6 +616,12 @@ public int getSerializedSize() { if (hasOntapProxy_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, hasOntapProxy_); } + if (flexPerformanceTier_ + != com.google.cloud.netapp.v1.LocationMetadata.FlexPerformanceTier + .FLEX_PERFORMANCE_TIER_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, flexPerformanceTier_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -436,6 +642,7 @@ public boolean equals(final java.lang.Object obj) { if (!supportedFlexPerformance_.equals(other.supportedFlexPerformance_)) return false; if (getHasVcp() != other.getHasVcp()) return false; if (getHasOntapProxy() != other.getHasOntapProxy()) return false; + if (flexPerformanceTier_ != other.flexPerformanceTier_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -459,6 +666,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasVcp()); hash = (37 * hash) + HAS_ONTAP_PROXY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasOntapProxy()); + hash = (37 * hash) + FLEX_PERFORMANCE_TIER_FIELD_NUMBER; + hash = (53 * hash) + flexPerformanceTier_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -604,6 +813,7 @@ public Builder clear() { supportedFlexPerformance_ = emptyIntList(); hasVcp_ = false; hasOntapProxy_ = false; + flexPerformanceTier_ = 0; return this; } @@ -654,6 +864,9 @@ private void buildPartial0(com.google.cloud.netapp.v1.LocationMetadata result) { if (((from_bitField0_ & 0x00000008) != 0)) { result.hasOntapProxy_ = hasOntapProxy_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.flexPerformanceTier_ = flexPerformanceTier_; + } } @java.lang.Override @@ -696,6 +909,9 @@ public Builder mergeFrom(com.google.cloud.netapp.v1.LocationMetadata other) { if (other.getHasOntapProxy() != false) { setHasOntapProxy(other.getHasOntapProxy()); } + if (other.flexPerformanceTier_ != 0) { + setFlexPerformanceTierValue(other.getFlexPerformanceTierValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -770,6 +986,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 32 + case 40: + { + flexPerformanceTier_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1421,6 +1643,116 @@ public Builder clearHasOntapProxy() { return this; } + private int flexPerformanceTier_ = 0; + + /** + * + * + *
          +     * Output only. Indicates the flex performance tier of this location.
          +     * 
          + * + * + * .google.cloud.netapp.v1.LocationMetadata.FlexPerformanceTier flex_performance_tier = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for flexPerformanceTier. + */ + @java.lang.Override + public int getFlexPerformanceTierValue() { + return flexPerformanceTier_; + } + + /** + * + * + *
          +     * Output only. Indicates the flex performance tier of this location.
          +     * 
          + * + * + * .google.cloud.netapp.v1.LocationMetadata.FlexPerformanceTier flex_performance_tier = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for flexPerformanceTier to set. + * @return This builder for chaining. + */ + public Builder setFlexPerformanceTierValue(int value) { + flexPerformanceTier_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Indicates the flex performance tier of this location.
          +     * 
          + * + * + * .google.cloud.netapp.v1.LocationMetadata.FlexPerformanceTier flex_performance_tier = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The flexPerformanceTier. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.LocationMetadata.FlexPerformanceTier + getFlexPerformanceTier() { + com.google.cloud.netapp.v1.LocationMetadata.FlexPerformanceTier result = + com.google.cloud.netapp.v1.LocationMetadata.FlexPerformanceTier.forNumber( + flexPerformanceTier_); + return result == null + ? com.google.cloud.netapp.v1.LocationMetadata.FlexPerformanceTier.UNRECOGNIZED + : result; + } + + /** + * + * + *
          +     * Output only. Indicates the flex performance tier of this location.
          +     * 
          + * + * + * .google.cloud.netapp.v1.LocationMetadata.FlexPerformanceTier flex_performance_tier = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The flexPerformanceTier to set. + * @return This builder for chaining. + */ + public Builder setFlexPerformanceTier( + com.google.cloud.netapp.v1.LocationMetadata.FlexPerformanceTier value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + flexPerformanceTier_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Indicates the flex performance tier of this location.
          +     * 
          + * + * + * .google.cloud.netapp.v1.LocationMetadata.FlexPerformanceTier flex_performance_tier = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearFlexPerformanceTier() { + bitField0_ = (bitField0_ & ~0x00000010); + flexPerformanceTier_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.LocationMetadata) } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LocationMetadataOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LocationMetadataOrBuilder.java index d744bc3c6a51..86b09de2f1c4 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LocationMetadataOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LocationMetadataOrBuilder.java @@ -205,4 +205,34 @@ public interface LocationMetadataOrBuilder * @return The hasOntapProxy. */ boolean getHasOntapProxy(); + + /** + * + * + *
          +   * Output only. Indicates the flex performance tier of this location.
          +   * 
          + * + * + * .google.cloud.netapp.v1.LocationMetadata.FlexPerformanceTier flex_performance_tier = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for flexPerformanceTier. + */ + int getFlexPerformanceTierValue(); + + /** + * + * + *
          +   * Output only. Indicates the flex performance tier of this location.
          +   * 
          + * + * + * .google.cloud.netapp.v1.LocationMetadata.FlexPerformanceTier flex_performance_tier = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The flexPerformanceTier. + */ + com.google.cloud.netapp.v1.LocationMetadata.FlexPerformanceTier getFlexPerformanceTier(); } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/OntapSource.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/OntapSource.java new file mode 100644 index 000000000000..28ca11b84d20 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/OntapSource.java @@ -0,0 +1,1048 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/backup.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +/** + * + * + *
          + * Represents ONTAP source details.
          + * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.OntapSource} + */ +@com.google.protobuf.Generated +public final class OntapSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.OntapSource) + OntapSourceOrBuilder { + 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= */ "", + "OntapSource"); + } + + // Use OntapSource.newBuilder() to construct. + private OntapSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OntapSource() { + storagePool_ = ""; + volumeUuid_ = ""; + snapshotUuid_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.BackupProto + .internal_static_google_cloud_netapp_v1_OntapSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.BackupProto + .internal_static_google_cloud_netapp_v1_OntapSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.OntapSource.class, + com.google.cloud.netapp.v1.OntapSource.Builder.class); + } + + private int bitField0_; + public static final int STORAGE_POOL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object storagePool_ = ""; + + /** + * + * + *
          +   * Required. Name of the storage pool. This must be specified for creating
          +   * backups for ONTAP mode volumes. Format:
          +   * `projects/{projects_id}/locations/{location}/storagePools/{storage_pool_id}`
          +   * 
          + * + * + * optional string storage_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the storagePool field is set. + */ + @java.lang.Override + public boolean hasStoragePool() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Required. Name of the storage pool. This must be specified for creating
          +   * backups for ONTAP mode volumes. Format:
          +   * `projects/{projects_id}/locations/{location}/storagePools/{storage_pool_id}`
          +   * 
          + * + * + * optional string storage_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The storagePool. + */ + @java.lang.Override + public java.lang.String getStoragePool() { + java.lang.Object ref = storagePool_; + 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(); + storagePool_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. Name of the storage pool. This must be specified for creating
          +   * backups for ONTAP mode volumes. Format:
          +   * `projects/{projects_id}/locations/{location}/storagePools/{storage_pool_id}`
          +   * 
          + * + * + * optional string storage_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for storagePool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStoragePoolBytes() { + java.lang.Object ref = storagePool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storagePool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VOLUME_UUID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object volumeUuid_ = ""; + + /** + * + * + *
          +   * Required. The UUID of the ONTAP source volume.
          +   * 
          + * + * string volume_uuid = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The volumeUuid. + */ + @java.lang.Override + public java.lang.String getVolumeUuid() { + java.lang.Object ref = volumeUuid_; + 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(); + volumeUuid_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The UUID of the ONTAP source volume.
          +   * 
          + * + * string volume_uuid = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for volumeUuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVolumeUuidBytes() { + java.lang.Object ref = volumeUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + volumeUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SNAPSHOT_UUID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object snapshotUuid_ = ""; + + /** + * + * + *
          +   * Optional. The UUID of the ONTAP source snapshot.
          +   * 
          + * + * string snapshot_uuid = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The snapshotUuid. + */ + @java.lang.Override + public java.lang.String getSnapshotUuid() { + java.lang.Object ref = snapshotUuid_; + 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(); + snapshotUuid_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. The UUID of the ONTAP source snapshot.
          +   * 
          + * + * string snapshot_uuid = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for snapshotUuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSnapshotUuidBytes() { + java.lang.Object ref = snapshotUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + snapshotUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, storagePool_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(volumeUuid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, volumeUuid_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshotUuid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, snapshotUuid_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, storagePool_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(volumeUuid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, volumeUuid_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshotUuid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, snapshotUuid_); + } + 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.netapp.v1.OntapSource)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.OntapSource other = (com.google.cloud.netapp.v1.OntapSource) obj; + + if (hasStoragePool() != other.hasStoragePool()) return false; + if (hasStoragePool()) { + if (!getStoragePool().equals(other.getStoragePool())) return false; + } + if (!getVolumeUuid().equals(other.getVolumeUuid())) return false; + if (!getSnapshotUuid().equals(other.getSnapshotUuid())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStoragePool()) { + hash = (37 * hash) + STORAGE_POOL_FIELD_NUMBER; + hash = (53 * hash) + getStoragePool().hashCode(); + } + hash = (37 * hash) + VOLUME_UUID_FIELD_NUMBER; + hash = (53 * hash) + getVolumeUuid().hashCode(); + hash = (37 * hash) + SNAPSHOT_UUID_FIELD_NUMBER; + hash = (53 * hash) + getSnapshotUuid().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.OntapSource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.OntapSource 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.netapp.v1.OntapSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.OntapSource 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.netapp.v1.OntapSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.OntapSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.OntapSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.OntapSource 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.netapp.v1.OntapSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.OntapSource 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.netapp.v1.OntapSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.OntapSource 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.netapp.v1.OntapSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Represents ONTAP source details.
          +   * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.OntapSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.OntapSource) + com.google.cloud.netapp.v1.OntapSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.BackupProto + .internal_static_google_cloud_netapp_v1_OntapSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.BackupProto + .internal_static_google_cloud_netapp_v1_OntapSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.OntapSource.class, + com.google.cloud.netapp.v1.OntapSource.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.OntapSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + storagePool_ = ""; + volumeUuid_ = ""; + snapshotUuid_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.BackupProto + .internal_static_google_cloud_netapp_v1_OntapSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.OntapSource getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.OntapSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.OntapSource build() { + com.google.cloud.netapp.v1.OntapSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.OntapSource buildPartial() { + com.google.cloud.netapp.v1.OntapSource result = + new com.google.cloud.netapp.v1.OntapSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.OntapSource result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.storagePool_ = storagePool_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.volumeUuid_ = volumeUuid_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.snapshotUuid_ = snapshotUuid_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.netapp.v1.OntapSource) { + return mergeFrom((com.google.cloud.netapp.v1.OntapSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.OntapSource other) { + if (other == com.google.cloud.netapp.v1.OntapSource.getDefaultInstance()) return this; + if (other.hasStoragePool()) { + storagePool_ = other.storagePool_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVolumeUuid().isEmpty()) { + volumeUuid_ = other.volumeUuid_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSnapshotUuid().isEmpty()) { + snapshotUuid_ = other.snapshotUuid_; + 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: + { + storagePool_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + volumeUuid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + snapshotUuid_ = 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 storagePool_ = ""; + + /** + * + * + *
          +     * Required. Name of the storage pool. This must be specified for creating
          +     * backups for ONTAP mode volumes. Format:
          +     * `projects/{projects_id}/locations/{location}/storagePools/{storage_pool_id}`
          +     * 
          + * + * + * optional string storage_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the storagePool field is set. + */ + public boolean hasStoragePool() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +     * Required. Name of the storage pool. This must be specified for creating
          +     * backups for ONTAP mode volumes. Format:
          +     * `projects/{projects_id}/locations/{location}/storagePools/{storage_pool_id}`
          +     * 
          + * + * + * optional string storage_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The storagePool. + */ + public java.lang.String getStoragePool() { + java.lang.Object ref = storagePool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storagePool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. Name of the storage pool. This must be specified for creating
          +     * backups for ONTAP mode volumes. Format:
          +     * `projects/{projects_id}/locations/{location}/storagePools/{storage_pool_id}`
          +     * 
          + * + * + * optional string storage_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for storagePool. + */ + public com.google.protobuf.ByteString getStoragePoolBytes() { + java.lang.Object ref = storagePool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storagePool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. Name of the storage pool. This must be specified for creating
          +     * backups for ONTAP mode volumes. Format:
          +     * `projects/{projects_id}/locations/{location}/storagePools/{storage_pool_id}`
          +     * 
          + * + * + * optional string storage_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The storagePool to set. + * @return This builder for chaining. + */ + public Builder setStoragePool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + storagePool_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Name of the storage pool. This must be specified for creating
          +     * backups for ONTAP mode volumes. Format:
          +     * `projects/{projects_id}/locations/{location}/storagePools/{storage_pool_id}`
          +     * 
          + * + * + * optional string storage_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearStoragePool() { + storagePool_ = getDefaultInstance().getStoragePool(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Name of the storage pool. This must be specified for creating
          +     * backups for ONTAP mode volumes. Format:
          +     * `projects/{projects_id}/locations/{location}/storagePools/{storage_pool_id}`
          +     * 
          + * + * + * optional string storage_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for storagePool to set. + * @return This builder for chaining. + */ + public Builder setStoragePoolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + storagePool_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object volumeUuid_ = ""; + + /** + * + * + *
          +     * Required. The UUID of the ONTAP source volume.
          +     * 
          + * + * string volume_uuid = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The volumeUuid. + */ + public java.lang.String getVolumeUuid() { + java.lang.Object ref = volumeUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + volumeUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The UUID of the ONTAP source volume.
          +     * 
          + * + * string volume_uuid = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for volumeUuid. + */ + public com.google.protobuf.ByteString getVolumeUuidBytes() { + java.lang.Object ref = volumeUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + volumeUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The UUID of the ONTAP source volume.
          +     * 
          + * + * string volume_uuid = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The volumeUuid to set. + * @return This builder for chaining. + */ + public Builder setVolumeUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + volumeUuid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The UUID of the ONTAP source volume.
          +     * 
          + * + * string volume_uuid = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVolumeUuid() { + volumeUuid_ = getDefaultInstance().getVolumeUuid(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The UUID of the ONTAP source volume.
          +     * 
          + * + * string volume_uuid = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for volumeUuid to set. + * @return This builder for chaining. + */ + public Builder setVolumeUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + volumeUuid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object snapshotUuid_ = ""; + + /** + * + * + *
          +     * Optional. The UUID of the ONTAP source snapshot.
          +     * 
          + * + * string snapshot_uuid = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The snapshotUuid. + */ + public java.lang.String getSnapshotUuid() { + java.lang.Object ref = snapshotUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snapshotUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. The UUID of the ONTAP source snapshot.
          +     * 
          + * + * string snapshot_uuid = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for snapshotUuid. + */ + public com.google.protobuf.ByteString getSnapshotUuidBytes() { + java.lang.Object ref = snapshotUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + snapshotUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. The UUID of the ONTAP source snapshot.
          +     * 
          + * + * string snapshot_uuid = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The snapshotUuid to set. + * @return This builder for chaining. + */ + public Builder setSnapshotUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + snapshotUuid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The UUID of the ONTAP source snapshot.
          +     * 
          + * + * string snapshot_uuid = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSnapshotUuid() { + snapshotUuid_ = getDefaultInstance().getSnapshotUuid(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The UUID of the ONTAP source snapshot.
          +     * 
          + * + * string snapshot_uuid = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for snapshotUuid to set. + * @return This builder for chaining. + */ + public Builder setSnapshotUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + snapshotUuid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.OntapSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.OntapSource) + private static final com.google.cloud.netapp.v1.OntapSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.OntapSource(); + } + + public static com.google.cloud.netapp.v1.OntapSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OntapSource 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.netapp.v1.OntapSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/OntapSourceOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/OntapSourceOrBuilder.java new file mode 100644 index 000000000000..35ad75377ef6 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/OntapSourceOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/backup.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +@com.google.protobuf.Generated +public interface OntapSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.OntapSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Name of the storage pool. This must be specified for creating
          +   * backups for ONTAP mode volumes. Format:
          +   * `projects/{projects_id}/locations/{location}/storagePools/{storage_pool_id}`
          +   * 
          + * + * + * optional string storage_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the storagePool field is set. + */ + boolean hasStoragePool(); + + /** + * + * + *
          +   * Required. Name of the storage pool. This must be specified for creating
          +   * backups for ONTAP mode volumes. Format:
          +   * `projects/{projects_id}/locations/{location}/storagePools/{storage_pool_id}`
          +   * 
          + * + * + * optional string storage_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The storagePool. + */ + java.lang.String getStoragePool(); + + /** + * + * + *
          +   * Required. Name of the storage pool. This must be specified for creating
          +   * backups for ONTAP mode volumes. Format:
          +   * `projects/{projects_id}/locations/{location}/storagePools/{storage_pool_id}`
          +   * 
          + * + * + * optional string storage_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for storagePool. + */ + com.google.protobuf.ByteString getStoragePoolBytes(); + + /** + * + * + *
          +   * Required. The UUID of the ONTAP source volume.
          +   * 
          + * + * string volume_uuid = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The volumeUuid. + */ + java.lang.String getVolumeUuid(); + + /** + * + * + *
          +   * Required. The UUID of the ONTAP source volume.
          +   * 
          + * + * string volume_uuid = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for volumeUuid. + */ + com.google.protobuf.ByteString getVolumeUuidBytes(); + + /** + * + * + *
          +   * Optional. The UUID of the ONTAP source snapshot.
          +   * 
          + * + * string snapshot_uuid = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The snapshotUuid. + */ + java.lang.String getSnapshotUuid(); + + /** + * + * + *
          +   * Optional. The UUID of the ONTAP source snapshot.
          +   * 
          + * + * string snapshot_uuid = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for snapshotUuid. + */ + com.google.protobuf.ByteString getSnapshotUuidBytes(); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/OntapVolumeTarget.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/OntapVolumeTarget.java new file mode 100644 index 000000000000..eae13ad4861a --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/OntapVolumeTarget.java @@ -0,0 +1,784 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +/** + * + * + *
          + * Represents the ONTAP volume target of the restore operation.
          + * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.OntapVolumeTarget} + */ +@com.google.protobuf.Generated +public final class OntapVolumeTarget extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.OntapVolumeTarget) + OntapVolumeTargetOrBuilder { + 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= */ "", + "OntapVolumeTarget"); + } + + // Use OntapVolumeTarget.newBuilder() to construct. + private OntapVolumeTarget(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OntapVolumeTarget() { + volumeUuid_ = ""; + restoreDestinationPath_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_OntapVolumeTarget_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_OntapVolumeTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.OntapVolumeTarget.class, + com.google.cloud.netapp.v1.OntapVolumeTarget.Builder.class); + } + + public static final int VOLUME_UUID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object volumeUuid_ = ""; + + /** + * + * + *
          +   * Required. The UUID of the ONTAP volume to restore to.
          +   * 
          + * + * string volume_uuid = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The volumeUuid. + */ + @java.lang.Override + public java.lang.String getVolumeUuid() { + java.lang.Object ref = volumeUuid_; + 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(); + volumeUuid_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The UUID of the ONTAP volume to restore to.
          +   * 
          + * + * string volume_uuid = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for volumeUuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVolumeUuidBytes() { + java.lang.Object ref = volumeUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + volumeUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESTORE_DESTINATION_PATH_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object restoreDestinationPath_ = ""; + + /** + * + * + *
          +   * Optional. Absolute directory path in the destination volume.
          +   * 
          + * + * string restore_destination_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The restoreDestinationPath. + */ + @java.lang.Override + public java.lang.String getRestoreDestinationPath() { + java.lang.Object ref = restoreDestinationPath_; + 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(); + restoreDestinationPath_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Absolute directory path in the destination volume.
          +   * 
          + * + * string restore_destination_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for restoreDestinationPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRestoreDestinationPathBytes() { + java.lang.Object ref = restoreDestinationPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + restoreDestinationPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(volumeUuid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, volumeUuid_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(restoreDestinationPath_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, restoreDestinationPath_); + } + 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(volumeUuid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, volumeUuid_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(restoreDestinationPath_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, restoreDestinationPath_); + } + 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.netapp.v1.OntapVolumeTarget)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.OntapVolumeTarget other = + (com.google.cloud.netapp.v1.OntapVolumeTarget) obj; + + if (!getVolumeUuid().equals(other.getVolumeUuid())) return false; + if (!getRestoreDestinationPath().equals(other.getRestoreDestinationPath())) 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) + VOLUME_UUID_FIELD_NUMBER; + hash = (53 * hash) + getVolumeUuid().hashCode(); + hash = (37 * hash) + RESTORE_DESTINATION_PATH_FIELD_NUMBER; + hash = (53 * hash) + getRestoreDestinationPath().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.OntapVolumeTarget parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.OntapVolumeTarget 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.netapp.v1.OntapVolumeTarget parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.OntapVolumeTarget 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.netapp.v1.OntapVolumeTarget parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.OntapVolumeTarget parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.OntapVolumeTarget parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.OntapVolumeTarget 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.netapp.v1.OntapVolumeTarget parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.OntapVolumeTarget 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.netapp.v1.OntapVolumeTarget parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.OntapVolumeTarget 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.netapp.v1.OntapVolumeTarget prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Represents the ONTAP volume target of the restore operation.
          +   * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.OntapVolumeTarget} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.OntapVolumeTarget) + com.google.cloud.netapp.v1.OntapVolumeTargetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_OntapVolumeTarget_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_OntapVolumeTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.OntapVolumeTarget.class, + com.google.cloud.netapp.v1.OntapVolumeTarget.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.OntapVolumeTarget.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + volumeUuid_ = ""; + restoreDestinationPath_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_OntapVolumeTarget_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.OntapVolumeTarget getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.OntapVolumeTarget.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.OntapVolumeTarget build() { + com.google.cloud.netapp.v1.OntapVolumeTarget result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.OntapVolumeTarget buildPartial() { + com.google.cloud.netapp.v1.OntapVolumeTarget result = + new com.google.cloud.netapp.v1.OntapVolumeTarget(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.OntapVolumeTarget result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.volumeUuid_ = volumeUuid_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.restoreDestinationPath_ = restoreDestinationPath_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.netapp.v1.OntapVolumeTarget) { + return mergeFrom((com.google.cloud.netapp.v1.OntapVolumeTarget) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.OntapVolumeTarget other) { + if (other == com.google.cloud.netapp.v1.OntapVolumeTarget.getDefaultInstance()) return this; + if (!other.getVolumeUuid().isEmpty()) { + volumeUuid_ = other.volumeUuid_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRestoreDestinationPath().isEmpty()) { + restoreDestinationPath_ = other.restoreDestinationPath_; + bitField0_ |= 0x00000002; + 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: + { + volumeUuid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + restoreDestinationPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object volumeUuid_ = ""; + + /** + * + * + *
          +     * Required. The UUID of the ONTAP volume to restore to.
          +     * 
          + * + * string volume_uuid = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The volumeUuid. + */ + public java.lang.String getVolumeUuid() { + java.lang.Object ref = volumeUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + volumeUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The UUID of the ONTAP volume to restore to.
          +     * 
          + * + * string volume_uuid = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for volumeUuid. + */ + public com.google.protobuf.ByteString getVolumeUuidBytes() { + java.lang.Object ref = volumeUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + volumeUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The UUID of the ONTAP volume to restore to.
          +     * 
          + * + * string volume_uuid = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The volumeUuid to set. + * @return This builder for chaining. + */ + public Builder setVolumeUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + volumeUuid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The UUID of the ONTAP volume to restore to.
          +     * 
          + * + * string volume_uuid = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVolumeUuid() { + volumeUuid_ = getDefaultInstance().getVolumeUuid(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The UUID of the ONTAP volume to restore to.
          +     * 
          + * + * string volume_uuid = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for volumeUuid to set. + * @return This builder for chaining. + */ + public Builder setVolumeUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + volumeUuid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object restoreDestinationPath_ = ""; + + /** + * + * + *
          +     * Optional. Absolute directory path in the destination volume.
          +     * 
          + * + * string restore_destination_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The restoreDestinationPath. + */ + public java.lang.String getRestoreDestinationPath() { + java.lang.Object ref = restoreDestinationPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + restoreDestinationPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Absolute directory path in the destination volume.
          +     * 
          + * + * string restore_destination_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for restoreDestinationPath. + */ + public com.google.protobuf.ByteString getRestoreDestinationPathBytes() { + java.lang.Object ref = restoreDestinationPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + restoreDestinationPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Absolute directory path in the destination volume.
          +     * 
          + * + * string restore_destination_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The restoreDestinationPath to set. + * @return This builder for chaining. + */ + public Builder setRestoreDestinationPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + restoreDestinationPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Absolute directory path in the destination volume.
          +     * 
          + * + * string restore_destination_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRestoreDestinationPath() { + restoreDestinationPath_ = getDefaultInstance().getRestoreDestinationPath(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Absolute directory path in the destination volume.
          +     * 
          + * + * string restore_destination_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for restoreDestinationPath to set. + * @return This builder for chaining. + */ + public Builder setRestoreDestinationPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + restoreDestinationPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.OntapVolumeTarget) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.OntapVolumeTarget) + private static final com.google.cloud.netapp.v1.OntapVolumeTarget DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.OntapVolumeTarget(); + } + + public static com.google.cloud.netapp.v1.OntapVolumeTarget getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OntapVolumeTarget 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.netapp.v1.OntapVolumeTarget getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/OntapVolumeTargetOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/OntapVolumeTargetOrBuilder.java new file mode 100644 index 000000000000..141872bde9e8 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/OntapVolumeTargetOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +@com.google.protobuf.Generated +public interface OntapVolumeTargetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.OntapVolumeTarget) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The UUID of the ONTAP volume to restore to.
          +   * 
          + * + * string volume_uuid = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The volumeUuid. + */ + java.lang.String getVolumeUuid(); + + /** + * + * + *
          +   * Required. The UUID of the ONTAP volume to restore to.
          +   * 
          + * + * string volume_uuid = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for volumeUuid. + */ + com.google.protobuf.ByteString getVolumeUuidBytes(); + + /** + * + * + *
          +   * Optional. Absolute directory path in the destination volume.
          +   * 
          + * + * string restore_destination_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The restoreDestinationPath. + */ + java.lang.String getRestoreDestinationPath(); + + /** + * + * + *
          +   * Optional. Absolute directory path in the destination volume.
          +   * 
          + * + * string restore_destination_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for restoreDestinationPath. + */ + com.google.protobuf.ByteString getRestoreDestinationPathBytes(); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Protocols.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Protocols.java index d437c5168f9b..834ca9fd5f67 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Protocols.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Protocols.java @@ -81,6 +81,16 @@ public enum Protocols implements com.google.protobuf.ProtocolMessageEnum { * ISCSI = 4; */ ISCSI(4), + /** + * + * + *
          +   * NVMe protocol
          +   * 
          + * + * NVME = 5; + */ + NVME(5), UNRECOGNIZED(-1), ; @@ -149,6 +159,17 @@ public enum Protocols implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ISCSI_VALUE = 4; + /** + * + * + *
          +   * NVMe protocol
          +   * 
          + * + * NVME = 5; + */ + public static final int NVME_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -183,6 +204,8 @@ public static Protocols forNumber(int value) { return SMB; case 4: return ISCSI; + case 5: + return NVME; default: return null; } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreParameters.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreParameters.java index 7923e5810f25..faed0c464f3d 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreParameters.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreParameters.java @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getSourceSnapshotBytes() { *
              * Full name of the backup resource.
              * Format for standard backup:
          -   * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
          +   * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}.
              * Format for BackupDR backup:
              * projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
              * 
          @@ -224,7 +224,7 @@ public boolean hasSourceBackup() { *
              * Full name of the backup resource.
              * Format for standard backup:
          -   * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
          +   * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}.
              * Format for BackupDR backup:
              * projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
              * 
          @@ -256,7 +256,7 @@ public java.lang.String getSourceBackup() { *
              * Full name of the backup resource.
              * Format for standard backup:
          -   * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
          +   * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}.
              * Format for BackupDR backup:
              * projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
              * 
          @@ -815,7 +815,7 @@ public Builder setSourceSnapshotBytes(com.google.protobuf.ByteString value) { *
                * Full name of the backup resource.
                * Format for standard backup:
          -     * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
          +     * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}.
                * Format for BackupDR backup:
                * projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
                * 
          @@ -835,7 +835,7 @@ public boolean hasSourceBackup() { *
                * Full name of the backup resource.
                * Format for standard backup:
          -     * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
          +     * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}.
                * Format for BackupDR backup:
                * projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
                * 
          @@ -868,7 +868,7 @@ public java.lang.String getSourceBackup() { *
                * Full name of the backup resource.
                * Format for standard backup:
          -     * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
          +     * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}.
                * Format for BackupDR backup:
                * projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
                * 
          @@ -901,7 +901,7 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { *
                * Full name of the backup resource.
                * Format for standard backup:
          -     * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
          +     * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}.
                * Format for BackupDR backup:
                * projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
                * 
          @@ -927,7 +927,7 @@ public Builder setSourceBackup(java.lang.String value) { *
                * Full name of the backup resource.
                * Format for standard backup:
          -     * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
          +     * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}.
                * Format for BackupDR backup:
                * projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
                * 
          @@ -951,7 +951,7 @@ public Builder clearSourceBackup() { *
                * Full name of the backup resource.
                * Format for standard backup:
          -     * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
          +     * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}.
                * Format for BackupDR backup:
                * projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
                * 
          diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreParametersOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreParametersOrBuilder.java index dcb4ec2c80d3..06f260a963da 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreParametersOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreParametersOrBuilder.java @@ -77,7 +77,7 @@ public interface RestoreParametersOrBuilder *
              * Full name of the backup resource.
              * Format for standard backup:
          -   * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
          +   * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}.
              * Format for BackupDR backup:
              * projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
              * 
          @@ -94,7 +94,7 @@ public interface RestoreParametersOrBuilder *
              * Full name of the backup resource.
              * Format for standard backup:
          -   * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
          +   * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}.
              * Format for BackupDR backup:
              * projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
              * 
          @@ -111,7 +111,7 @@ public interface RestoreParametersOrBuilder *
              * Full name of the backup resource.
              * Format for standard backup:
          -   * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
          +   * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}.
              * Format for BackupDR backup:
              * projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
              * 
          diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreVolumeRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreVolumeRequest.java new file mode 100644 index 000000000000..7c1b40fd5103 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreVolumeRequest.java @@ -0,0 +1,1391 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +/** + * + * + *
          + * Request message for `RestoreVolume` API.
          + * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.RestoreVolumeRequest} + */ +@com.google.protobuf.Generated +public final class RestoreVolumeRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.RestoreVolumeRequest) + RestoreVolumeRequestOrBuilder { + 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= */ "", + "RestoreVolumeRequest"); + } + + // Use RestoreVolumeRequest.newBuilder() to construct. + private RestoreVolumeRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RestoreVolumeRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_RestoreVolumeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_RestoreVolumeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.RestoreVolumeRequest.class, + com.google.cloud.netapp.v1.RestoreVolumeRequest.Builder.class); + } + + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BACKUP_SOURCE(2), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 2: + return BACKUP_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + private int targetCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object target_; + + public enum TargetCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ONTAP_VOLUME_TARGET(3), + TARGET_NOT_SET(0); + private final int value; + + private TargetCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetCase valueOf(int value) { + return forNumber(value); + } + + public static TargetCase forNumber(int value) { + switch (value) { + case 3: + return ONTAP_VOLUME_TARGET; + case 0: + return TARGET_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); + } + + public static final int BACKUP_SOURCE_FIELD_NUMBER = 2; + + /** + * + * + *
          +   * The backup source of the restore operation.
          +   * 
          + * + * .google.cloud.netapp.v1.BackupSource backup_source = 2; + * + * @return Whether the backupSource field is set. + */ + @java.lang.Override + public boolean hasBackupSource() { + return sourceCase_ == 2; + } + + /** + * + * + *
          +   * The backup source of the restore operation.
          +   * 
          + * + * .google.cloud.netapp.v1.BackupSource backup_source = 2; + * + * @return The backupSource. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.BackupSource getBackupSource() { + if (sourceCase_ == 2) { + return (com.google.cloud.netapp.v1.BackupSource) source_; + } + return com.google.cloud.netapp.v1.BackupSource.getDefaultInstance(); + } + + /** + * + * + *
          +   * The backup source of the restore operation.
          +   * 
          + * + * .google.cloud.netapp.v1.BackupSource backup_source = 2; + */ + @java.lang.Override + public com.google.cloud.netapp.v1.BackupSourceOrBuilder getBackupSourceOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.cloud.netapp.v1.BackupSource) source_; + } + return com.google.cloud.netapp.v1.BackupSource.getDefaultInstance(); + } + + public static final int ONTAP_VOLUME_TARGET_FIELD_NUMBER = 3; + + /** + * + * + *
          +   * The ONTAP volume target of the restore operation.
          +   * 
          + * + * .google.cloud.netapp.v1.OntapVolumeTarget ontap_volume_target = 3; + * + * @return Whether the ontapVolumeTarget field is set. + */ + @java.lang.Override + public boolean hasOntapVolumeTarget() { + return targetCase_ == 3; + } + + /** + * + * + *
          +   * The ONTAP volume target of the restore operation.
          +   * 
          + * + * .google.cloud.netapp.v1.OntapVolumeTarget ontap_volume_target = 3; + * + * @return The ontapVolumeTarget. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.OntapVolumeTarget getOntapVolumeTarget() { + if (targetCase_ == 3) { + return (com.google.cloud.netapp.v1.OntapVolumeTarget) target_; + } + return com.google.cloud.netapp.v1.OntapVolumeTarget.getDefaultInstance(); + } + + /** + * + * + *
          +   * The ONTAP volume target of the restore operation.
          +   * 
          + * + * .google.cloud.netapp.v1.OntapVolumeTarget ontap_volume_target = 3; + */ + @java.lang.Override + public com.google.cloud.netapp.v1.OntapVolumeTargetOrBuilder getOntapVolumeTargetOrBuilder() { + if (targetCase_ == 3) { + return (com.google.cloud.netapp.v1.OntapVolumeTarget) target_; + } + return com.google.cloud.netapp.v1.OntapVolumeTarget.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Required. The resource name of the ONTAP mode storage pool, in the format
          +   * of `projects/{project}/locations/{location}/storagePools/{storage_pool}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The resource name of the ONTAP mode storage pool, in the format
          +   * of `projects/{project}/locations/{location}/storagePools/{storage_pool}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (sourceCase_ == 2) { + output.writeMessage(2, (com.google.cloud.netapp.v1.BackupSource) source_); + } + if (targetCase_ == 3) { + output.writeMessage(3, (com.google.cloud.netapp.v1.OntapVolumeTarget) target_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (sourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.netapp.v1.BackupSource) source_); + } + if (targetCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.netapp.v1.OntapVolumeTarget) target_); + } + 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.netapp.v1.RestoreVolumeRequest)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.RestoreVolumeRequest other = + (com.google.cloud.netapp.v1.RestoreVolumeRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 2: + if (!getBackupSource().equals(other.getBackupSource())) return false; + break; + case 0: + default: + } + if (!getTargetCase().equals(other.getTargetCase())) return false; + switch (targetCase_) { + case 3: + if (!getOntapVolumeTarget().equals(other.getOntapVolumeTarget())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + switch (sourceCase_) { + case 2: + hash = (37 * hash) + BACKUP_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getBackupSource().hashCode(); + break; + case 0: + default: + } + switch (targetCase_) { + case 3: + hash = (37 * hash) + ONTAP_VOLUME_TARGET_FIELD_NUMBER; + hash = (53 * hash) + getOntapVolumeTarget().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.RestoreVolumeRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.RestoreVolumeRequest 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.netapp.v1.RestoreVolumeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.RestoreVolumeRequest 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.netapp.v1.RestoreVolumeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.RestoreVolumeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.RestoreVolumeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.RestoreVolumeRequest 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.netapp.v1.RestoreVolumeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.RestoreVolumeRequest 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.netapp.v1.RestoreVolumeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.RestoreVolumeRequest 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.netapp.v1.RestoreVolumeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request message for `RestoreVolume` API.
          +   * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.RestoreVolumeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.RestoreVolumeRequest) + com.google.cloud.netapp.v1.RestoreVolumeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_RestoreVolumeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_RestoreVolumeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.RestoreVolumeRequest.class, + com.google.cloud.netapp.v1.RestoreVolumeRequest.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.RestoreVolumeRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (backupSourceBuilder_ != null) { + backupSourceBuilder_.clear(); + } + if (ontapVolumeTargetBuilder_ != null) { + ontapVolumeTargetBuilder_.clear(); + } + name_ = ""; + sourceCase_ = 0; + source_ = null; + targetCase_ = 0; + target_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_RestoreVolumeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.RestoreVolumeRequest getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.RestoreVolumeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.RestoreVolumeRequest build() { + com.google.cloud.netapp.v1.RestoreVolumeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.RestoreVolumeRequest buildPartial() { + com.google.cloud.netapp.v1.RestoreVolumeRequest result = + new com.google.cloud.netapp.v1.RestoreVolumeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.RestoreVolumeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + } + + private void buildPartialOneofs(com.google.cloud.netapp.v1.RestoreVolumeRequest result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 2 && backupSourceBuilder_ != null) { + result.source_ = backupSourceBuilder_.build(); + } + result.targetCase_ = targetCase_; + result.target_ = this.target_; + if (targetCase_ == 3 && ontapVolumeTargetBuilder_ != null) { + result.target_ = ontapVolumeTargetBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.netapp.v1.RestoreVolumeRequest) { + return mergeFrom((com.google.cloud.netapp.v1.RestoreVolumeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.RestoreVolumeRequest other) { + if (other == com.google.cloud.netapp.v1.RestoreVolumeRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + switch (other.getSourceCase()) { + case BACKUP_SOURCE: + { + mergeBackupSource(other.getBackupSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + switch (other.getTargetCase()) { + case ONTAP_VOLUME_TARGET: + { + mergeOntapVolumeTarget(other.getOntapVolumeTarget()); + break; + } + case TARGET_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetBackupSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetOntapVolumeTargetFieldBuilder().getBuilder(), extensionRegistry); + targetCase_ = 3; + 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 sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int targetCase_ = 0; + private java.lang.Object target_; + + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); + } + + public Builder clearTarget() { + targetCase_ = 0; + target_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.netapp.v1.BackupSource, + com.google.cloud.netapp.v1.BackupSource.Builder, + com.google.cloud.netapp.v1.BackupSourceOrBuilder> + backupSourceBuilder_; + + /** + * + * + *
          +     * The backup source of the restore operation.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupSource backup_source = 2; + * + * @return Whether the backupSource field is set. + */ + @java.lang.Override + public boolean hasBackupSource() { + return sourceCase_ == 2; + } + + /** + * + * + *
          +     * The backup source of the restore operation.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupSource backup_source = 2; + * + * @return The backupSource. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.BackupSource getBackupSource() { + if (backupSourceBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.cloud.netapp.v1.BackupSource) source_; + } + return com.google.cloud.netapp.v1.BackupSource.getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return backupSourceBuilder_.getMessage(); + } + return com.google.cloud.netapp.v1.BackupSource.getDefaultInstance(); + } + } + + /** + * + * + *
          +     * The backup source of the restore operation.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupSource backup_source = 2; + */ + public Builder setBackupSource(com.google.cloud.netapp.v1.BackupSource value) { + if (backupSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + backupSourceBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + + /** + * + * + *
          +     * The backup source of the restore operation.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupSource backup_source = 2; + */ + public Builder setBackupSource( + com.google.cloud.netapp.v1.BackupSource.Builder builderForValue) { + if (backupSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + backupSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 2; + return this; + } + + /** + * + * + *
          +     * The backup source of the restore operation.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupSource backup_source = 2; + */ + public Builder mergeBackupSource(com.google.cloud.netapp.v1.BackupSource value) { + if (backupSourceBuilder_ == null) { + if (sourceCase_ == 2 + && source_ != com.google.cloud.netapp.v1.BackupSource.getDefaultInstance()) { + source_ = + com.google.cloud.netapp.v1.BackupSource.newBuilder( + (com.google.cloud.netapp.v1.BackupSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + backupSourceBuilder_.mergeFrom(value); + } else { + backupSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 2; + return this; + } + + /** + * + * + *
          +     * The backup source of the restore operation.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupSource backup_source = 2; + */ + public Builder clearBackupSource() { + if (backupSourceBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + backupSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * The backup source of the restore operation.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupSource backup_source = 2; + */ + public com.google.cloud.netapp.v1.BackupSource.Builder getBackupSourceBuilder() { + return internalGetBackupSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * The backup source of the restore operation.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupSource backup_source = 2; + */ + @java.lang.Override + public com.google.cloud.netapp.v1.BackupSourceOrBuilder getBackupSourceOrBuilder() { + if ((sourceCase_ == 2) && (backupSourceBuilder_ != null)) { + return backupSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (com.google.cloud.netapp.v1.BackupSource) source_; + } + return com.google.cloud.netapp.v1.BackupSource.getDefaultInstance(); + } + } + + /** + * + * + *
          +     * The backup source of the restore operation.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupSource backup_source = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.netapp.v1.BackupSource, + com.google.cloud.netapp.v1.BackupSource.Builder, + com.google.cloud.netapp.v1.BackupSourceOrBuilder> + internalGetBackupSourceFieldBuilder() { + if (backupSourceBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = com.google.cloud.netapp.v1.BackupSource.getDefaultInstance(); + } + backupSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.netapp.v1.BackupSource, + com.google.cloud.netapp.v1.BackupSource.Builder, + com.google.cloud.netapp.v1.BackupSourceOrBuilder>( + (com.google.cloud.netapp.v1.BackupSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged(); + return backupSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.netapp.v1.OntapVolumeTarget, + com.google.cloud.netapp.v1.OntapVolumeTarget.Builder, + com.google.cloud.netapp.v1.OntapVolumeTargetOrBuilder> + ontapVolumeTargetBuilder_; + + /** + * + * + *
          +     * The ONTAP volume target of the restore operation.
          +     * 
          + * + * .google.cloud.netapp.v1.OntapVolumeTarget ontap_volume_target = 3; + * + * @return Whether the ontapVolumeTarget field is set. + */ + @java.lang.Override + public boolean hasOntapVolumeTarget() { + return targetCase_ == 3; + } + + /** + * + * + *
          +     * The ONTAP volume target of the restore operation.
          +     * 
          + * + * .google.cloud.netapp.v1.OntapVolumeTarget ontap_volume_target = 3; + * + * @return The ontapVolumeTarget. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.OntapVolumeTarget getOntapVolumeTarget() { + if (ontapVolumeTargetBuilder_ == null) { + if (targetCase_ == 3) { + return (com.google.cloud.netapp.v1.OntapVolumeTarget) target_; + } + return com.google.cloud.netapp.v1.OntapVolumeTarget.getDefaultInstance(); + } else { + if (targetCase_ == 3) { + return ontapVolumeTargetBuilder_.getMessage(); + } + return com.google.cloud.netapp.v1.OntapVolumeTarget.getDefaultInstance(); + } + } + + /** + * + * + *
          +     * The ONTAP volume target of the restore operation.
          +     * 
          + * + * .google.cloud.netapp.v1.OntapVolumeTarget ontap_volume_target = 3; + */ + public Builder setOntapVolumeTarget(com.google.cloud.netapp.v1.OntapVolumeTarget value) { + if (ontapVolumeTargetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + ontapVolumeTargetBuilder_.setMessage(value); + } + targetCase_ = 3; + return this; + } + + /** + * + * + *
          +     * The ONTAP volume target of the restore operation.
          +     * 
          + * + * .google.cloud.netapp.v1.OntapVolumeTarget ontap_volume_target = 3; + */ + public Builder setOntapVolumeTarget( + com.google.cloud.netapp.v1.OntapVolumeTarget.Builder builderForValue) { + if (ontapVolumeTargetBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + ontapVolumeTargetBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 3; + return this; + } + + /** + * + * + *
          +     * The ONTAP volume target of the restore operation.
          +     * 
          + * + * .google.cloud.netapp.v1.OntapVolumeTarget ontap_volume_target = 3; + */ + public Builder mergeOntapVolumeTarget(com.google.cloud.netapp.v1.OntapVolumeTarget value) { + if (ontapVolumeTargetBuilder_ == null) { + if (targetCase_ == 3 + && target_ != com.google.cloud.netapp.v1.OntapVolumeTarget.getDefaultInstance()) { + target_ = + com.google.cloud.netapp.v1.OntapVolumeTarget.newBuilder( + (com.google.cloud.netapp.v1.OntapVolumeTarget) target_) + .mergeFrom(value) + .buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 3) { + ontapVolumeTargetBuilder_.mergeFrom(value); + } else { + ontapVolumeTargetBuilder_.setMessage(value); + } + } + targetCase_ = 3; + return this; + } + + /** + * + * + *
          +     * The ONTAP volume target of the restore operation.
          +     * 
          + * + * .google.cloud.netapp.v1.OntapVolumeTarget ontap_volume_target = 3; + */ + public Builder clearOntapVolumeTarget() { + if (ontapVolumeTargetBuilder_ == null) { + if (targetCase_ == 3) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 3) { + targetCase_ = 0; + target_ = null; + } + ontapVolumeTargetBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * The ONTAP volume target of the restore operation.
          +     * 
          + * + * .google.cloud.netapp.v1.OntapVolumeTarget ontap_volume_target = 3; + */ + public com.google.cloud.netapp.v1.OntapVolumeTarget.Builder getOntapVolumeTargetBuilder() { + return internalGetOntapVolumeTargetFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * The ONTAP volume target of the restore operation.
          +     * 
          + * + * .google.cloud.netapp.v1.OntapVolumeTarget ontap_volume_target = 3; + */ + @java.lang.Override + public com.google.cloud.netapp.v1.OntapVolumeTargetOrBuilder getOntapVolumeTargetOrBuilder() { + if ((targetCase_ == 3) && (ontapVolumeTargetBuilder_ != null)) { + return ontapVolumeTargetBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 3) { + return (com.google.cloud.netapp.v1.OntapVolumeTarget) target_; + } + return com.google.cloud.netapp.v1.OntapVolumeTarget.getDefaultInstance(); + } + } + + /** + * + * + *
          +     * The ONTAP volume target of the restore operation.
          +     * 
          + * + * .google.cloud.netapp.v1.OntapVolumeTarget ontap_volume_target = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.netapp.v1.OntapVolumeTarget, + com.google.cloud.netapp.v1.OntapVolumeTarget.Builder, + com.google.cloud.netapp.v1.OntapVolumeTargetOrBuilder> + internalGetOntapVolumeTargetFieldBuilder() { + if (ontapVolumeTargetBuilder_ == null) { + if (!(targetCase_ == 3)) { + target_ = com.google.cloud.netapp.v1.OntapVolumeTarget.getDefaultInstance(); + } + ontapVolumeTargetBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.netapp.v1.OntapVolumeTarget, + com.google.cloud.netapp.v1.OntapVolumeTarget.Builder, + com.google.cloud.netapp.v1.OntapVolumeTargetOrBuilder>( + (com.google.cloud.netapp.v1.OntapVolumeTarget) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 3; + onChanged(); + return ontapVolumeTargetBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Required. The resource name of the ONTAP mode storage pool, in the format
          +     * of `projects/{project}/locations/{location}/storagePools/{storage_pool}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The resource name of the ONTAP mode storage pool, in the format
          +     * of `projects/{project}/locations/{location}/storagePools/{storage_pool}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The resource name of the ONTAP mode storage pool, in the format
          +     * of `projects/{project}/locations/{location}/storagePools/{storage_pool}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The resource name of the ONTAP mode storage pool, in the format
          +     * of `projects/{project}/locations/{location}/storagePools/{storage_pool}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The resource name of the ONTAP mode storage pool, in the format
          +     * of `projects/{project}/locations/{location}/storagePools/{storage_pool}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.RestoreVolumeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.RestoreVolumeRequest) + private static final com.google.cloud.netapp.v1.RestoreVolumeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.RestoreVolumeRequest(); + } + + public static com.google.cloud.netapp.v1.RestoreVolumeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreVolumeRequest 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.netapp.v1.RestoreVolumeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreVolumeRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreVolumeRequestOrBuilder.java new file mode 100644 index 000000000000..b850d88adc2d --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreVolumeRequestOrBuilder.java @@ -0,0 +1,138 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +@com.google.protobuf.Generated +public interface RestoreVolumeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.RestoreVolumeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The backup source of the restore operation.
          +   * 
          + * + * .google.cloud.netapp.v1.BackupSource backup_source = 2; + * + * @return Whether the backupSource field is set. + */ + boolean hasBackupSource(); + + /** + * + * + *
          +   * The backup source of the restore operation.
          +   * 
          + * + * .google.cloud.netapp.v1.BackupSource backup_source = 2; + * + * @return The backupSource. + */ + com.google.cloud.netapp.v1.BackupSource getBackupSource(); + + /** + * + * + *
          +   * The backup source of the restore operation.
          +   * 
          + * + * .google.cloud.netapp.v1.BackupSource backup_source = 2; + */ + com.google.cloud.netapp.v1.BackupSourceOrBuilder getBackupSourceOrBuilder(); + + /** + * + * + *
          +   * The ONTAP volume target of the restore operation.
          +   * 
          + * + * .google.cloud.netapp.v1.OntapVolumeTarget ontap_volume_target = 3; + * + * @return Whether the ontapVolumeTarget field is set. + */ + boolean hasOntapVolumeTarget(); + + /** + * + * + *
          +   * The ONTAP volume target of the restore operation.
          +   * 
          + * + * .google.cloud.netapp.v1.OntapVolumeTarget ontap_volume_target = 3; + * + * @return The ontapVolumeTarget. + */ + com.google.cloud.netapp.v1.OntapVolumeTarget getOntapVolumeTarget(); + + /** + * + * + *
          +   * The ONTAP volume target of the restore operation.
          +   * 
          + * + * .google.cloud.netapp.v1.OntapVolumeTarget ontap_volume_target = 3; + */ + com.google.cloud.netapp.v1.OntapVolumeTargetOrBuilder getOntapVolumeTargetOrBuilder(); + + /** + * + * + *
          +   * Required. The resource name of the ONTAP mode storage pool, in the format
          +   * of `projects/{project}/locations/{location}/storagePools/{storage_pool}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Required. The resource name of the ONTAP mode storage pool, in the format
          +   * of `projects/{project}/locations/{location}/storagePools/{storage_pool}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + com.google.cloud.netapp.v1.RestoreVolumeRequest.SourceCase getSourceCase(); + + com.google.cloud.netapp.v1.RestoreVolumeRequest.TargetCase getTargetCase(); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreVolumeResponse.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreVolumeResponse.java new file mode 100644 index 000000000000..af43587dbe26 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreVolumeResponse.java @@ -0,0 +1,396 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +/** + * + * + *
          + * Response message for `RestoreVolume` API.
          + * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.RestoreVolumeResponse} + */ +@com.google.protobuf.Generated +public final class RestoreVolumeResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.RestoreVolumeResponse) + RestoreVolumeResponseOrBuilder { + 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= */ "", + "RestoreVolumeResponse"); + } + + // Use RestoreVolumeResponse.newBuilder() to construct. + private RestoreVolumeResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RestoreVolumeResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_RestoreVolumeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_RestoreVolumeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.RestoreVolumeResponse.class, + com.google.cloud.netapp.v1.RestoreVolumeResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.netapp.v1.RestoreVolumeResponse)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.RestoreVolumeResponse other = + (com.google.cloud.netapp.v1.RestoreVolumeResponse) obj; + + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.RestoreVolumeResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.RestoreVolumeResponse 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.netapp.v1.RestoreVolumeResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.RestoreVolumeResponse 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.netapp.v1.RestoreVolumeResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.RestoreVolumeResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.RestoreVolumeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.RestoreVolumeResponse 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.netapp.v1.RestoreVolumeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.RestoreVolumeResponse 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.netapp.v1.RestoreVolumeResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.RestoreVolumeResponse 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.netapp.v1.RestoreVolumeResponse 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; + } + + /** + * + * + *
          +   * Response message for `RestoreVolume` API.
          +   * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.RestoreVolumeResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.RestoreVolumeResponse) + com.google.cloud.netapp.v1.RestoreVolumeResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_RestoreVolumeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_RestoreVolumeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.RestoreVolumeResponse.class, + com.google.cloud.netapp.v1.RestoreVolumeResponse.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.RestoreVolumeResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_RestoreVolumeResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.RestoreVolumeResponse getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.RestoreVolumeResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.RestoreVolumeResponse build() { + com.google.cloud.netapp.v1.RestoreVolumeResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.RestoreVolumeResponse buildPartial() { + com.google.cloud.netapp.v1.RestoreVolumeResponse result = + new com.google.cloud.netapp.v1.RestoreVolumeResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.netapp.v1.RestoreVolumeResponse) { + return mergeFrom((com.google.cloud.netapp.v1.RestoreVolumeResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.RestoreVolumeResponse other) { + if (other == com.google.cloud.netapp.v1.RestoreVolumeResponse.getDefaultInstance()) + return this; + 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; + 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.RestoreVolumeResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.RestoreVolumeResponse) + private static final com.google.cloud.netapp.v1.RestoreVolumeResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.RestoreVolumeResponse(); + } + + public static com.google.cloud.netapp.v1.RestoreVolumeResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreVolumeResponse 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.netapp.v1.RestoreVolumeResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreVolumeResponseOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreVolumeResponseOrBuilder.java new file mode 100644 index 000000000000..94503f21bcbe --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreVolumeResponseOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +@com.google.protobuf.Generated +public interface RestoreVolumeResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.RestoreVolumeResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestrictedAction.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestrictedAction.java index 71d4f2906b68..0dc3ec73045f 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestrictedAction.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestrictedAction.java @@ -143,7 +143,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.netapp.v1.VolumeProto.getDescriptor().getEnumTypes().get(4); + return com.google.cloud.netapp.v1.VolumeProto.getDescriptor().getEnumTypes().get(5); } private static final RestrictedAction[] VALUES = values(); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/SecurityStyle.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/SecurityStyle.java index 706d275a748d..51b8591afe1c 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/SecurityStyle.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/SecurityStyle.java @@ -166,7 +166,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.netapp.v1.VolumeProto.getDescriptor().getEnumTypes().get(3); + return com.google.cloud.netapp.v1.VolumeProto.getDescriptor().getEnumTypes().get(4); } private static final SecurityStyle[] VALUES = values(); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/SplitState.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/SplitState.java new file mode 100644 index 000000000000..cca2ec4cb895 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/SplitState.java @@ -0,0 +1,214 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +/** + * + * + *
          + * Enum to indicate the state of the clone in relation to the split process.
          + * 
          + * + * Protobuf enum {@code google.cloud.netapp.v1.SplitState} + */ +@com.google.protobuf.Generated +public enum SplitState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +   * State is not specified.
          +   * 
          + * + * SPLIT_STATE_UNSPECIFIED = 0; + */ + SPLIT_STATE_UNSPECIFIED(0), + /** + * + * + *
          +   * The volume is a thin clone, sharing blocks with its source.
          +   * 
          + * + * SPLIT_STATE_NOT_SPLITTING = 1; + */ + SPLIT_STATE_NOT_SPLITTING(1), + /** + * + * + *
          +   * A split operation is currently active and in progress.
          +   * 
          + * + * SPLIT_STATE_IN_PROGRESS = 2; + */ + SPLIT_STATE_IN_PROGRESS(2), + /** + * + * + *
          +   * The attempt to split the volume failed.
          +   * 
          + * + * SPLIT_STATE_FAILED = 3; + */ + SPLIT_STATE_FAILED(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SplitState"); + } + + /** + * + * + *
          +   * State is not specified.
          +   * 
          + * + * SPLIT_STATE_UNSPECIFIED = 0; + */ + public static final int SPLIT_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
          +   * The volume is a thin clone, sharing blocks with its source.
          +   * 
          + * + * SPLIT_STATE_NOT_SPLITTING = 1; + */ + public static final int SPLIT_STATE_NOT_SPLITTING_VALUE = 1; + + /** + * + * + *
          +   * A split operation is currently active and in progress.
          +   * 
          + * + * SPLIT_STATE_IN_PROGRESS = 2; + */ + public static final int SPLIT_STATE_IN_PROGRESS_VALUE = 2; + + /** + * + * + *
          +   * The attempt to split the volume failed.
          +   * 
          + * + * SPLIT_STATE_FAILED = 3; + */ + public static final int SPLIT_STATE_FAILED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SplitState valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SplitState forNumber(int value) { + switch (value) { + case 0: + return SPLIT_STATE_UNSPECIFIED; + case 1: + return SPLIT_STATE_NOT_SPLITTING; + case 2: + return SPLIT_STATE_IN_PROGRESS; + case 3: + return SPLIT_STATE_FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SplitState findValueByNumber(int number) { + return SplitState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto.getDescriptor().getEnumTypes().get(3); + } + + private static final SplitState[] VALUES = values(); + + public static SplitState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SplitState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.netapp.v1.SplitState) +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/SplitStatus.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/SplitStatus.java new file mode 100644 index 000000000000..00c227a00d84 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/SplitStatus.java @@ -0,0 +1,878 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +/** + * + * + *
          + * Message for SplitStatus.
          + * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.SplitStatus} + */ +@com.google.protobuf.Generated +public final class SplitStatus extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.SplitStatus) + SplitStatusOrBuilder { + 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= */ "", + "SplitStatus"); + } + + // Use SplitStatus.newBuilder() to construct. + private SplitStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SplitStatus() { + splitState_ = 0; + stateDetails_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_SplitStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_SplitStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.SplitStatus.class, + com.google.cloud.netapp.v1.SplitStatus.Builder.class); + } + + public static final int SPLIT_STATE_FIELD_NUMBER = 1; + private int splitState_ = 0; + + /** + * + * + *
          +   * Output only. The current state of the clone split operation.
          +   * 
          + * + * + * .google.cloud.netapp.v1.SplitState split_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for splitState. + */ + @java.lang.Override + public int getSplitStateValue() { + return splitState_; + } + + /** + * + * + *
          +   * Output only. The current state of the clone split operation.
          +   * 
          + * + * + * .google.cloud.netapp.v1.SplitState split_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The splitState. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.SplitState getSplitState() { + com.google.cloud.netapp.v1.SplitState result = + com.google.cloud.netapp.v1.SplitState.forNumber(splitState_); + return result == null ? com.google.cloud.netapp.v1.SplitState.UNRECOGNIZED : result; + } + + public static final int STATE_DETAILS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object stateDetails_ = ""; + + /** + * + * + *
          +   * Output only. Human-readable details about the current state. Mostly used
          +   * for displaying error messages during split failure Examples: "Split in
          +   * progress", "Error: insufficient capacity".
          +   * 
          + * + * string state_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The stateDetails. + */ + @java.lang.Override + public java.lang.String getStateDetails() { + java.lang.Object ref = stateDetails_; + 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(); + stateDetails_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. Human-readable details about the current state. Mostly used
          +   * for displaying error messages during split failure Examples: "Split in
          +   * progress", "Error: insufficient capacity".
          +   * 
          + * + * string state_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for stateDetails. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStateDetailsBytes() { + java.lang.Object ref = stateDetails_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stateDetails_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROGRESS_PERCENT_FIELD_NUMBER = 3; + private int progressPercent_ = 0; + + /** + * + * + *
          +   * Output only. The estimated progress percentage of the split operation
          +   * (0-100). This is meaningful primarily when split_state is IN_PROGRESS.
          +   * 
          + * + * int32 progress_percent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The progressPercent. + */ + @java.lang.Override + public int getProgressPercent() { + return progressPercent_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (splitState_ != com.google.cloud.netapp.v1.SplitState.SPLIT_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, splitState_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(stateDetails_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, stateDetails_); + } + if (progressPercent_ != 0) { + output.writeInt32(3, progressPercent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (splitState_ != com.google.cloud.netapp.v1.SplitState.SPLIT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, splitState_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(stateDetails_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, stateDetails_); + } + if (progressPercent_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, progressPercent_); + } + 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.netapp.v1.SplitStatus)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.SplitStatus other = (com.google.cloud.netapp.v1.SplitStatus) obj; + + if (splitState_ != other.splitState_) return false; + if (!getStateDetails().equals(other.getStateDetails())) return false; + if (getProgressPercent() != other.getProgressPercent()) 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) + SPLIT_STATE_FIELD_NUMBER; + hash = (53 * hash) + splitState_; + hash = (37 * hash) + STATE_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getStateDetails().hashCode(); + hash = (37 * hash) + PROGRESS_PERCENT_FIELD_NUMBER; + hash = (53 * hash) + getProgressPercent(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.SplitStatus parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.SplitStatus 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.netapp.v1.SplitStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.SplitStatus 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.netapp.v1.SplitStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.SplitStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.SplitStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.SplitStatus 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.netapp.v1.SplitStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.SplitStatus 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.netapp.v1.SplitStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.SplitStatus 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.netapp.v1.SplitStatus 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; + } + + /** + * + * + *
          +   * Message for SplitStatus.
          +   * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.SplitStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.SplitStatus) + com.google.cloud.netapp.v1.SplitStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_SplitStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_SplitStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.SplitStatus.class, + com.google.cloud.netapp.v1.SplitStatus.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.SplitStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + splitState_ = 0; + stateDetails_ = ""; + progressPercent_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_SplitStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.SplitStatus getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.SplitStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.SplitStatus build() { + com.google.cloud.netapp.v1.SplitStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.SplitStatus buildPartial() { + com.google.cloud.netapp.v1.SplitStatus result = + new com.google.cloud.netapp.v1.SplitStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.SplitStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.splitState_ = splitState_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.stateDetails_ = stateDetails_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.progressPercent_ = progressPercent_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.netapp.v1.SplitStatus) { + return mergeFrom((com.google.cloud.netapp.v1.SplitStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.SplitStatus other) { + if (other == com.google.cloud.netapp.v1.SplitStatus.getDefaultInstance()) return this; + if (other.splitState_ != 0) { + setSplitStateValue(other.getSplitStateValue()); + } + if (!other.getStateDetails().isEmpty()) { + stateDetails_ = other.stateDetails_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getProgressPercent() != 0) { + setProgressPercent(other.getProgressPercent()); + } + 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 8: + { + splitState_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + stateDetails_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + progressPercent_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + 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 int splitState_ = 0; + + /** + * + * + *
          +     * Output only. The current state of the clone split operation.
          +     * 
          + * + * + * .google.cloud.netapp.v1.SplitState split_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for splitState. + */ + @java.lang.Override + public int getSplitStateValue() { + return splitState_; + } + + /** + * + * + *
          +     * Output only. The current state of the clone split operation.
          +     * 
          + * + * + * .google.cloud.netapp.v1.SplitState split_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for splitState to set. + * @return This builder for chaining. + */ + public Builder setSplitStateValue(int value) { + splitState_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The current state of the clone split operation.
          +     * 
          + * + * + * .google.cloud.netapp.v1.SplitState split_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The splitState. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.SplitState getSplitState() { + com.google.cloud.netapp.v1.SplitState result = + com.google.cloud.netapp.v1.SplitState.forNumber(splitState_); + return result == null ? com.google.cloud.netapp.v1.SplitState.UNRECOGNIZED : result; + } + + /** + * + * + *
          +     * Output only. The current state of the clone split operation.
          +     * 
          + * + * + * .google.cloud.netapp.v1.SplitState split_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The splitState to set. + * @return This builder for chaining. + */ + public Builder setSplitState(com.google.cloud.netapp.v1.SplitState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + splitState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The current state of the clone split operation.
          +     * 
          + * + * + * .google.cloud.netapp.v1.SplitState split_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearSplitState() { + bitField0_ = (bitField0_ & ~0x00000001); + splitState_ = 0; + onChanged(); + return this; + } + + private java.lang.Object stateDetails_ = ""; + + /** + * + * + *
          +     * Output only. Human-readable details about the current state. Mostly used
          +     * for displaying error messages during split failure Examples: "Split in
          +     * progress", "Error: insufficient capacity".
          +     * 
          + * + * string state_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The stateDetails. + */ + public java.lang.String getStateDetails() { + java.lang.Object ref = stateDetails_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stateDetails_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. Human-readable details about the current state. Mostly used
          +     * for displaying error messages during split failure Examples: "Split in
          +     * progress", "Error: insufficient capacity".
          +     * 
          + * + * string state_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for stateDetails. + */ + public com.google.protobuf.ByteString getStateDetailsBytes() { + java.lang.Object ref = stateDetails_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stateDetails_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. Human-readable details about the current state. Mostly used
          +     * for displaying error messages during split failure Examples: "Split in
          +     * progress", "Error: insufficient capacity".
          +     * 
          + * + * string state_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The stateDetails to set. + * @return This builder for chaining. + */ + public Builder setStateDetails(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + stateDetails_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Human-readable details about the current state. Mostly used
          +     * for displaying error messages during split failure Examples: "Split in
          +     * progress", "Error: insufficient capacity".
          +     * 
          + * + * string state_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStateDetails() { + stateDetails_ = getDefaultInstance().getStateDetails(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Human-readable details about the current state. Mostly used
          +     * for displaying error messages during split failure Examples: "Split in
          +     * progress", "Error: insufficient capacity".
          +     * 
          + * + * string state_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for stateDetails to set. + * @return This builder for chaining. + */ + public Builder setStateDetailsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stateDetails_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int progressPercent_; + + /** + * + * + *
          +     * Output only. The estimated progress percentage of the split operation
          +     * (0-100). This is meaningful primarily when split_state is IN_PROGRESS.
          +     * 
          + * + * int32 progress_percent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The progressPercent. + */ + @java.lang.Override + public int getProgressPercent() { + return progressPercent_; + } + + /** + * + * + *
          +     * Output only. The estimated progress percentage of the split operation
          +     * (0-100). This is meaningful primarily when split_state is IN_PROGRESS.
          +     * 
          + * + * int32 progress_percent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The progressPercent to set. + * @return This builder for chaining. + */ + public Builder setProgressPercent(int value) { + + progressPercent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The estimated progress percentage of the split operation
          +     * (0-100). This is meaningful primarily when split_state is IN_PROGRESS.
          +     * 
          + * + * int32 progress_percent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearProgressPercent() { + bitField0_ = (bitField0_ & ~0x00000004); + progressPercent_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.SplitStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.SplitStatus) + private static final com.google.cloud.netapp.v1.SplitStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.SplitStatus(); + } + + public static com.google.cloud.netapp.v1.SplitStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SplitStatus 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.netapp.v1.SplitStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/SplitStatusOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/SplitStatusOrBuilder.java new file mode 100644 index 000000000000..b2c0414dc882 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/SplitStatusOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +@com.google.protobuf.Generated +public interface SplitStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.SplitStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Output only. The current state of the clone split operation.
          +   * 
          + * + * + * .google.cloud.netapp.v1.SplitState split_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for splitState. + */ + int getSplitStateValue(); + + /** + * + * + *
          +   * Output only. The current state of the clone split operation.
          +   * 
          + * + * + * .google.cloud.netapp.v1.SplitState split_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The splitState. + */ + com.google.cloud.netapp.v1.SplitState getSplitState(); + + /** + * + * + *
          +   * Output only. Human-readable details about the current state. Mostly used
          +   * for displaying error messages during split failure Examples: "Split in
          +   * progress", "Error: insufficient capacity".
          +   * 
          + * + * string state_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The stateDetails. + */ + java.lang.String getStateDetails(); + + /** + * + * + *
          +   * Output only. Human-readable details about the current state. Mostly used
          +   * for displaying error messages during split failure Examples: "Split in
          +   * progress", "Error: insufficient capacity".
          +   * 
          + * + * string state_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for stateDetails. + */ + com.google.protobuf.ByteString getStateDetailsBytes(); + + /** + * + * + *
          +   * Output only. The estimated progress percentage of the split operation
          +   * (0-100). This is meaningful primarily when split_state is IN_PROGRESS.
          +   * 
          + * + * int32 progress_percent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The progressPercent. + */ + int getProgressPercent(); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StartSplitRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StartSplitRequest.java new file mode 100644 index 000000000000..e816632cebc6 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StartSplitRequest.java @@ -0,0 +1,616 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +/** + * + * + *
          + * Request message for splitting a volume.
          + * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.StartSplitRequest} + */ +@com.google.protobuf.Generated +public final class StartSplitRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.StartSplitRequest) + StartSplitRequestOrBuilder { + 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= */ "", + "StartSplitRequest"); + } + + // Use StartSplitRequest.newBuilder() to construct. + private StartSplitRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private StartSplitRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_StartSplitRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_StartSplitRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.StartSplitRequest.class, + com.google.cloud.netapp.v1.StartSplitRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Required. The full name of the clone volume to be split from its source.
          +   * Format: projects/{project_number}/locations/{location}/volumes/{volume_id}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The full name of the clone volume to be split from its source.
          +   * Format: projects/{project_number}/locations/{location}/volumes/{volume_id}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.netapp.v1.StartSplitRequest)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.StartSplitRequest other = + (com.google.cloud.netapp.v1.StartSplitRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.StartSplitRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.StartSplitRequest 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.netapp.v1.StartSplitRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.StartSplitRequest 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.netapp.v1.StartSplitRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.StartSplitRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.StartSplitRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.StartSplitRequest 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.netapp.v1.StartSplitRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.StartSplitRequest 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.netapp.v1.StartSplitRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.StartSplitRequest 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.netapp.v1.StartSplitRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request message for splitting a volume.
          +   * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.StartSplitRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.StartSplitRequest) + com.google.cloud.netapp.v1.StartSplitRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_StartSplitRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_StartSplitRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.StartSplitRequest.class, + com.google.cloud.netapp.v1.StartSplitRequest.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.StartSplitRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_StartSplitRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.StartSplitRequest getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.StartSplitRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.StartSplitRequest build() { + com.google.cloud.netapp.v1.StartSplitRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.StartSplitRequest buildPartial() { + com.google.cloud.netapp.v1.StartSplitRequest result = + new com.google.cloud.netapp.v1.StartSplitRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.StartSplitRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.netapp.v1.StartSplitRequest) { + return mergeFrom((com.google.cloud.netapp.v1.StartSplitRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.StartSplitRequest other) { + if (other == com.google.cloud.netapp.v1.StartSplitRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Required. The full name of the clone volume to be split from its source.
          +     * Format: projects/{project_number}/locations/{location}/volumes/{volume_id}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The full name of the clone volume to be split from its source.
          +     * Format: projects/{project_number}/locations/{location}/volumes/{volume_id}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The full name of the clone volume to be split from its source.
          +     * Format: projects/{project_number}/locations/{location}/volumes/{volume_id}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The full name of the clone volume to be split from its source.
          +     * Format: projects/{project_number}/locations/{location}/volumes/{volume_id}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The full name of the clone volume to be split from its source.
          +     * Format: projects/{project_number}/locations/{location}/volumes/{volume_id}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.StartSplitRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.StartSplitRequest) + private static final com.google.cloud.netapp.v1.StartSplitRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.StartSplitRequest(); + } + + public static com.google.cloud.netapp.v1.StartSplitRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartSplitRequest 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.netapp.v1.StartSplitRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StartSplitRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StartSplitRequestOrBuilder.java new file mode 100644 index 000000000000..5c9348a1b855 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StartSplitRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +@com.google.protobuf.Generated +public interface StartSplitRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.StartSplitRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The full name of the clone volume to be split from its source.
          +   * Format: projects/{project_number}/locations/{location}/volumes/{volume_id}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Required. The full name of the clone volume to be split from its source.
          +   * Format: projects/{project_number}/locations/{location}/volumes/{volume_id}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePool.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePool.java index cecc41366e7e..4649e7627add 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePool.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePool.java @@ -1635,8 +1635,8 @@ public com.google.cloud.netapp.v1.StoragePoolType getType() { * *
              * Optional. Mode of the storage pool. This field is used to control whether
          -   * the user can perform the ONTAP operations on the storage pool using the
          -   * GCNV ONTAP Mode APIs. If not specified during creation, it defaults to
          +   * the user can perform ONTAP operations on the storage pool using the GCNV
          +   * ONTAP Mode APIs. If not specified during creation, it defaults to
              * `DEFAULT`.
              * 
          * @@ -1656,8 +1656,8 @@ public boolean hasMode() { * *
              * Optional. Mode of the storage pool. This field is used to control whether
          -   * the user can perform the ONTAP operations on the storage pool using the
          -   * GCNV ONTAP Mode APIs. If not specified during creation, it defaults to
          +   * the user can perform ONTAP operations on the storage pool using the GCNV
          +   * ONTAP Mode APIs. If not specified during creation, it defaults to
              * `DEFAULT`.
              * 
          * @@ -1677,8 +1677,8 @@ public int getModeValue() { * *
              * Optional. Mode of the storage pool. This field is used to control whether
          -   * the user can perform the ONTAP operations on the storage pool using the
          -   * GCNV ONTAP Mode APIs. If not specified during creation, it defaults to
          +   * the user can perform ONTAP operations on the storage pool using the GCNV
          +   * ONTAP Mode APIs. If not specified during creation, it defaults to
              * `DEFAULT`.
              * 
          * @@ -5875,8 +5875,8 @@ public Builder clearType() { * *
                * Optional. Mode of the storage pool. This field is used to control whether
          -     * the user can perform the ONTAP operations on the storage pool using the
          -     * GCNV ONTAP Mode APIs. If not specified during creation, it defaults to
          +     * the user can perform ONTAP operations on the storage pool using the GCNV
          +     * ONTAP Mode APIs. If not specified during creation, it defaults to
                * `DEFAULT`.
                * 
          * @@ -5896,8 +5896,8 @@ public boolean hasMode() { * *
                * Optional. Mode of the storage pool. This field is used to control whether
          -     * the user can perform the ONTAP operations on the storage pool using the
          -     * GCNV ONTAP Mode APIs. If not specified during creation, it defaults to
          +     * the user can perform ONTAP operations on the storage pool using the GCNV
          +     * ONTAP Mode APIs. If not specified during creation, it defaults to
                * `DEFAULT`.
                * 
          * @@ -5917,8 +5917,8 @@ public int getModeValue() { * *
                * Optional. Mode of the storage pool. This field is used to control whether
          -     * the user can perform the ONTAP operations on the storage pool using the
          -     * GCNV ONTAP Mode APIs. If not specified during creation, it defaults to
          +     * the user can perform ONTAP operations on the storage pool using the GCNV
          +     * ONTAP Mode APIs. If not specified during creation, it defaults to
                * `DEFAULT`.
                * 
          * @@ -5941,8 +5941,8 @@ public Builder setModeValue(int value) { * *
                * Optional. Mode of the storage pool. This field is used to control whether
          -     * the user can perform the ONTAP operations on the storage pool using the
          -     * GCNV ONTAP Mode APIs. If not specified during creation, it defaults to
          +     * the user can perform ONTAP operations on the storage pool using the GCNV
          +     * ONTAP Mode APIs. If not specified during creation, it defaults to
                * `DEFAULT`.
                * 
          * @@ -5963,8 +5963,8 @@ public com.google.cloud.netapp.v1.Mode getMode() { * *
                * Optional. Mode of the storage pool. This field is used to control whether
          -     * the user can perform the ONTAP operations on the storage pool using the
          -     * GCNV ONTAP Mode APIs. If not specified during creation, it defaults to
          +     * the user can perform ONTAP operations on the storage pool using the GCNV
          +     * ONTAP Mode APIs. If not specified during creation, it defaults to
                * `DEFAULT`.
                * 
          * @@ -5990,8 +5990,8 @@ public Builder setMode(com.google.cloud.netapp.v1.Mode value) { * *
                * Optional. Mode of the storage pool. This field is used to control whether
          -     * the user can perform the ONTAP operations on the storage pool using the
          -     * GCNV ONTAP Mode APIs. If not specified during creation, it defaults to
          +     * the user can perform ONTAP operations on the storage pool using the GCNV
          +     * ONTAP Mode APIs. If not specified during creation, it defaults to
                * `DEFAULT`.
                * 
          * diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolOrBuilder.java index 501c302ed437..fce609481f5d 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolOrBuilder.java @@ -815,8 +815,8 @@ java.lang.String getLabelsOrDefault( * *
              * Optional. Mode of the storage pool. This field is used to control whether
          -   * the user can perform the ONTAP operations on the storage pool using the
          -   * GCNV ONTAP Mode APIs. If not specified during creation, it defaults to
          +   * the user can perform ONTAP operations on the storage pool using the GCNV
          +   * ONTAP Mode APIs. If not specified during creation, it defaults to
              * `DEFAULT`.
              * 
          * @@ -833,8 +833,8 @@ java.lang.String getLabelsOrDefault( * *
              * Optional. Mode of the storage pool. This field is used to control whether
          -   * the user can perform the ONTAP operations on the storage pool using the
          -   * GCNV ONTAP Mode APIs. If not specified during creation, it defaults to
          +   * the user can perform ONTAP operations on the storage pool using the GCNV
          +   * ONTAP Mode APIs. If not specified during creation, it defaults to
              * `DEFAULT`.
              * 
          * @@ -851,8 +851,8 @@ java.lang.String getLabelsOrDefault( * *
              * Optional. Mode of the storage pool. This field is used to control whether
          -   * the user can perform the ONTAP operations on the storage pool using the
          -   * GCNV ONTAP Mode APIs. If not specified during creation, it defaults to
          +   * the user can perform ONTAP operations on the storage pool using the GCNV
          +   * ONTAP Mode APIs. If not specified during creation, it defaults to
              * `DEFAULT`.
              * 
          * diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/UpdateBackupConfigRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/UpdateBackupConfigRequest.java new file mode 100644 index 000000000000..f3494ff69f30 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/UpdateBackupConfigRequest.java @@ -0,0 +1,1449 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +/** + * + * + *
          + * Request message for UpdateBackupConfig
          + * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.UpdateBackupConfigRequest} + */ +@com.google.protobuf.Generated +public final class UpdateBackupConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.UpdateBackupConfigRequest) + UpdateBackupConfigRequestOrBuilder { + 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= */ "", + "UpdateBackupConfigRequest"); + } + + // Use UpdateBackupConfigRequest.newBuilder() to construct. + private UpdateBackupConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateBackupConfigRequest() { + name_ = ""; + volumeUuid_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_UpdateBackupConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_UpdateBackupConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.UpdateBackupConfigRequest.class, + com.google.cloud.netapp.v1.UpdateBackupConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Required. The resource name of the StoragePool, in the format:
          +   * projects/{projectNumber}/locations/{locationId}/storagePools/{poolId}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The resource name of the StoragePool, in the format:
          +   * projects/{projectNumber}/locations/{locationId}/storagePools/{poolId}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VOLUME_UUID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object volumeUuid_ = ""; + + /** + * + * + *
          +   * Required. The UUID of the ONTAP-mode volume.
          +   * 
          + * + * string volume_uuid = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The volumeUuid. + */ + @java.lang.Override + public java.lang.String getVolumeUuid() { + java.lang.Object ref = volumeUuid_; + 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(); + volumeUuid_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The UUID of the ONTAP-mode volume.
          +   * 
          + * + * string volume_uuid = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for volumeUuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVolumeUuidBytes() { + java.lang.Object ref = volumeUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + volumeUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKUP_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.netapp.v1.BackupConfig backupConfig_; + + /** + * + * + *
          +   * Required. Backup configuration to apply.
          +   * 
          + * + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backupConfig field is set. + */ + @java.lang.Override + public boolean hasBackupConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Required. Backup configuration to apply.
          +   * 
          + * + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backupConfig. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.BackupConfig getBackupConfig() { + return backupConfig_ == null + ? com.google.cloud.netapp.v1.BackupConfig.getDefaultInstance() + : backupConfig_; + } + + /** + * + * + *
          +   * Required. Backup configuration to apply.
          +   * 
          + * + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.netapp.v1.BackupConfigOrBuilder getBackupConfigOrBuilder() { + return backupConfig_ == null + ? com.google.cloud.netapp.v1.BackupConfig.getDefaultInstance() + : backupConfig_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 4; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
          +   * Required. Field mask is used to specify the fields to be overwritten in the
          +   * BackupConfig for the Volume.
          +   * 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.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +   * Required. Field mask is used to specify the fields to be overwritten in the
          +   * BackupConfig for the Volume.
          +   * 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.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
          +   * Required. Field mask is used to specify the fields to be overwritten in the
          +   * BackupConfig for the Volume.
          +   * 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.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(volumeUuid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, volumeUuid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getBackupConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(volumeUuid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, volumeUuid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBackupConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateMask()); + } + 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.netapp.v1.UpdateBackupConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.UpdateBackupConfigRequest other = + (com.google.cloud.netapp.v1.UpdateBackupConfigRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getVolumeUuid().equals(other.getVolumeUuid())) return false; + if (hasBackupConfig() != other.hasBackupConfig()) return false; + if (hasBackupConfig()) { + if (!getBackupConfig().equals(other.getBackupConfig())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VOLUME_UUID_FIELD_NUMBER; + hash = (53 * hash) + getVolumeUuid().hashCode(); + if (hasBackupConfig()) { + hash = (37 * hash) + BACKUP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getBackupConfig().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.UpdateBackupConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.UpdateBackupConfigRequest 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.netapp.v1.UpdateBackupConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.UpdateBackupConfigRequest 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.netapp.v1.UpdateBackupConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.UpdateBackupConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.UpdateBackupConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.UpdateBackupConfigRequest 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.netapp.v1.UpdateBackupConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.UpdateBackupConfigRequest 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.netapp.v1.UpdateBackupConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.UpdateBackupConfigRequest 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.netapp.v1.UpdateBackupConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request message for UpdateBackupConfig
          +   * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.UpdateBackupConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.UpdateBackupConfigRequest) + com.google.cloud.netapp.v1.UpdateBackupConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_UpdateBackupConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_UpdateBackupConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.UpdateBackupConfigRequest.class, + com.google.cloud.netapp.v1.UpdateBackupConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.UpdateBackupConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBackupConfigFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + volumeUuid_ = ""; + backupConfig_ = null; + if (backupConfigBuilder_ != null) { + backupConfigBuilder_.dispose(); + backupConfigBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_UpdateBackupConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.UpdateBackupConfigRequest getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.UpdateBackupConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.UpdateBackupConfigRequest build() { + com.google.cloud.netapp.v1.UpdateBackupConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.UpdateBackupConfigRequest buildPartial() { + com.google.cloud.netapp.v1.UpdateBackupConfigRequest result = + new com.google.cloud.netapp.v1.UpdateBackupConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.UpdateBackupConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.volumeUuid_ = volumeUuid_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.backupConfig_ = + backupConfigBuilder_ == null ? backupConfig_ : backupConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.netapp.v1.UpdateBackupConfigRequest) { + return mergeFrom((com.google.cloud.netapp.v1.UpdateBackupConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.UpdateBackupConfigRequest other) { + if (other == com.google.cloud.netapp.v1.UpdateBackupConfigRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVolumeUuid().isEmpty()) { + volumeUuid_ = other.volumeUuid_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasBackupConfig()) { + mergeBackupConfig(other.getBackupConfig()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + volumeUuid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetBackupConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Required. The resource name of the StoragePool, in the format:
          +     * projects/{projectNumber}/locations/{locationId}/storagePools/{poolId}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The resource name of the StoragePool, in the format:
          +     * projects/{projectNumber}/locations/{locationId}/storagePools/{poolId}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The resource name of the StoragePool, in the format:
          +     * projects/{projectNumber}/locations/{locationId}/storagePools/{poolId}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The resource name of the StoragePool, in the format:
          +     * projects/{projectNumber}/locations/{locationId}/storagePools/{poolId}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The resource name of the StoragePool, in the format:
          +     * projects/{projectNumber}/locations/{locationId}/storagePools/{poolId}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object volumeUuid_ = ""; + + /** + * + * + *
          +     * Required. The UUID of the ONTAP-mode volume.
          +     * 
          + * + * string volume_uuid = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The volumeUuid. + */ + public java.lang.String getVolumeUuid() { + java.lang.Object ref = volumeUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + volumeUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The UUID of the ONTAP-mode volume.
          +     * 
          + * + * string volume_uuid = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for volumeUuid. + */ + public com.google.protobuf.ByteString getVolumeUuidBytes() { + java.lang.Object ref = volumeUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + volumeUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The UUID of the ONTAP-mode volume.
          +     * 
          + * + * string volume_uuid = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The volumeUuid to set. + * @return This builder for chaining. + */ + public Builder setVolumeUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + volumeUuid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The UUID of the ONTAP-mode volume.
          +     * 
          + * + * string volume_uuid = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVolumeUuid() { + volumeUuid_ = getDefaultInstance().getVolumeUuid(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The UUID of the ONTAP-mode volume.
          +     * 
          + * + * string volume_uuid = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for volumeUuid to set. + * @return This builder for chaining. + */ + public Builder setVolumeUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + volumeUuid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.netapp.v1.BackupConfig backupConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.netapp.v1.BackupConfig, + com.google.cloud.netapp.v1.BackupConfig.Builder, + com.google.cloud.netapp.v1.BackupConfigOrBuilder> + backupConfigBuilder_; + + /** + * + * + *
          +     * Required. Backup configuration to apply.
          +     * 
          + * + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backupConfig field is set. + */ + public boolean hasBackupConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
          +     * Required. Backup configuration to apply.
          +     * 
          + * + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backupConfig. + */ + public com.google.cloud.netapp.v1.BackupConfig getBackupConfig() { + if (backupConfigBuilder_ == null) { + return backupConfig_ == null + ? com.google.cloud.netapp.v1.BackupConfig.getDefaultInstance() + : backupConfig_; + } else { + return backupConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Required. Backup configuration to apply.
          +     * 
          + * + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBackupConfig(com.google.cloud.netapp.v1.BackupConfig value) { + if (backupConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backupConfig_ = value; + } else { + backupConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Backup configuration to apply.
          +     * 
          + * + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBackupConfig( + com.google.cloud.netapp.v1.BackupConfig.Builder builderForValue) { + if (backupConfigBuilder_ == null) { + backupConfig_ = builderForValue.build(); + } else { + backupConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Backup configuration to apply.
          +     * 
          + * + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeBackupConfig(com.google.cloud.netapp.v1.BackupConfig value) { + if (backupConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && backupConfig_ != null + && backupConfig_ != com.google.cloud.netapp.v1.BackupConfig.getDefaultInstance()) { + getBackupConfigBuilder().mergeFrom(value); + } else { + backupConfig_ = value; + } + } else { + backupConfigBuilder_.mergeFrom(value); + } + if (backupConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Required. Backup configuration to apply.
          +     * 
          + * + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearBackupConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + backupConfig_ = null; + if (backupConfigBuilder_ != null) { + backupConfigBuilder_.dispose(); + backupConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Backup configuration to apply.
          +     * 
          + * + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.netapp.v1.BackupConfig.Builder getBackupConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetBackupConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Required. Backup configuration to apply.
          +     * 
          + * + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.netapp.v1.BackupConfigOrBuilder getBackupConfigOrBuilder() { + if (backupConfigBuilder_ != null) { + return backupConfigBuilder_.getMessageOrBuilder(); + } else { + return backupConfig_ == null + ? com.google.cloud.netapp.v1.BackupConfig.getDefaultInstance() + : backupConfig_; + } + } + + /** + * + * + *
          +     * Required. Backup configuration to apply.
          +     * 
          + * + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.netapp.v1.BackupConfig, + com.google.cloud.netapp.v1.BackupConfig.Builder, + com.google.cloud.netapp.v1.BackupConfigOrBuilder> + internalGetBackupConfigFieldBuilder() { + if (backupConfigBuilder_ == null) { + backupConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.netapp.v1.BackupConfig, + com.google.cloud.netapp.v1.BackupConfig.Builder, + com.google.cloud.netapp.v1.BackupConfigOrBuilder>( + getBackupConfig(), getParentForChildren(), isClean()); + backupConfig_ = null; + } + return backupConfigBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
          +     * Required. Field mask is used to specify the fields to be overwritten in the
          +     * BackupConfig for the Volume.
          +     * 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.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
          +     * Required. Field mask is used to specify the fields to be overwritten in the
          +     * BackupConfig for the Volume.
          +     * 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.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Required. Field mask is used to specify the fields to be overwritten in the
          +     * BackupConfig for the Volume.
          +     * 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.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Field mask is used to specify the fields to be overwritten in the
          +     * BackupConfig for the Volume.
          +     * 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.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Field mask is used to specify the fields to be overwritten in the
          +     * BackupConfig for the Volume.
          +     * 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.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Required. Field mask is used to specify the fields to be overwritten in the
          +     * BackupConfig for the Volume.
          +     * 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.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000008); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Field mask is used to specify the fields to be overwritten in the
          +     * BackupConfig for the Volume.
          +     * 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.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Required. Field mask is used to specify the fields to be overwritten in the
          +     * BackupConfig for the Volume.
          +     * 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.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
          +     * Required. Field mask is used to specify the fields to be overwritten in the
          +     * BackupConfig for the Volume.
          +     * 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.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.UpdateBackupConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.UpdateBackupConfigRequest) + private static final com.google.cloud.netapp.v1.UpdateBackupConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.UpdateBackupConfigRequest(); + } + + public static com.google.cloud.netapp.v1.UpdateBackupConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateBackupConfigRequest 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.netapp.v1.UpdateBackupConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/UpdateBackupConfigRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/UpdateBackupConfigRequestOrBuilder.java new file mode 100644 index 000000000000..30d27f759f66 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/UpdateBackupConfigRequestOrBuilder.java @@ -0,0 +1,178 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +@com.google.protobuf.Generated +public interface UpdateBackupConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.UpdateBackupConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The resource name of the StoragePool, in the format:
          +   * projects/{projectNumber}/locations/{locationId}/storagePools/{poolId}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Required. The resource name of the StoragePool, in the format:
          +   * projects/{projectNumber}/locations/{locationId}/storagePools/{poolId}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Required. The UUID of the ONTAP-mode volume.
          +   * 
          + * + * string volume_uuid = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The volumeUuid. + */ + java.lang.String getVolumeUuid(); + + /** + * + * + *
          +   * Required. The UUID of the ONTAP-mode volume.
          +   * 
          + * + * string volume_uuid = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for volumeUuid. + */ + com.google.protobuf.ByteString getVolumeUuidBytes(); + + /** + * + * + *
          +   * Required. Backup configuration to apply.
          +   * 
          + * + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backupConfig field is set. + */ + boolean hasBackupConfig(); + + /** + * + * + *
          +   * Required. Backup configuration to apply.
          +   * 
          + * + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backupConfig. + */ + com.google.cloud.netapp.v1.BackupConfig getBackupConfig(); + + /** + * + * + *
          +   * Required. Backup configuration to apply.
          +   * 
          + * + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.netapp.v1.BackupConfigOrBuilder getBackupConfigOrBuilder(); + + /** + * + * + *
          +   * Required. Field mask is used to specify the fields to be overwritten in the
          +   * BackupConfig for the Volume.
          +   * 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.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
          +   * Required. Field mask is used to specify the fields to be overwritten in the
          +   * BackupConfig for the Volume.
          +   * 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.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
          +   * Required. Field mask is used to specify the fields to be overwritten in the
          +   * BackupConfig for the Volume.
          +   * 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.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/UpdateBackupConfigResponse.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/UpdateBackupConfigResponse.java new file mode 100644 index 000000000000..7e3fbd00a488 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/UpdateBackupConfigResponse.java @@ -0,0 +1,891 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +/** + * + * + *
          + * Response message for UpdateBackupConfig
          + * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.UpdateBackupConfigResponse} + */ +@com.google.protobuf.Generated +public final class UpdateBackupConfigResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.UpdateBackupConfigResponse) + UpdateBackupConfigResponseOrBuilder { + 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= */ "", + "UpdateBackupConfigResponse"); + } + + // Use UpdateBackupConfigResponse.newBuilder() to construct. + private UpdateBackupConfigResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateBackupConfigResponse() { + volumeUuid_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_UpdateBackupConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_UpdateBackupConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.UpdateBackupConfigResponse.class, + com.google.cloud.netapp.v1.UpdateBackupConfigResponse.Builder.class); + } + + private int bitField0_; + public static final int VOLUME_UUID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object volumeUuid_ = ""; + + /** + * + * + *
          +   * The UUID of the ONTAP-mode volume.
          +   * 
          + * + * string volume_uuid = 1; + * + * @return The volumeUuid. + */ + @java.lang.Override + public java.lang.String getVolumeUuid() { + java.lang.Object ref = volumeUuid_; + 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(); + volumeUuid_ = s; + return s; + } + } + + /** + * + * + *
          +   * The UUID of the ONTAP-mode volume.
          +   * 
          + * + * string volume_uuid = 1; + * + * @return The bytes for volumeUuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVolumeUuidBytes() { + java.lang.Object ref = volumeUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + volumeUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKUP_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.netapp.v1.BackupConfig backupConfig_; + + /** + * + * + *
          +   * The updated Backup configuration for the volume.
          +   * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + * + * @return Whether the backupConfig field is set. + */ + @java.lang.Override + public boolean hasBackupConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * The updated Backup configuration for the volume.
          +   * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + * + * @return The backupConfig. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.BackupConfig getBackupConfig() { + return backupConfig_ == null + ? com.google.cloud.netapp.v1.BackupConfig.getDefaultInstance() + : backupConfig_; + } + + /** + * + * + *
          +   * The updated Backup configuration for the volume.
          +   * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + */ + @java.lang.Override + public com.google.cloud.netapp.v1.BackupConfigOrBuilder getBackupConfigOrBuilder() { + return backupConfig_ == null + ? com.google.cloud.netapp.v1.BackupConfig.getDefaultInstance() + : backupConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(volumeUuid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, volumeUuid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getBackupConfig()); + } + 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(volumeUuid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, volumeUuid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBackupConfig()); + } + 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.netapp.v1.UpdateBackupConfigResponse)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.UpdateBackupConfigResponse other = + (com.google.cloud.netapp.v1.UpdateBackupConfigResponse) obj; + + if (!getVolumeUuid().equals(other.getVolumeUuid())) return false; + if (hasBackupConfig() != other.hasBackupConfig()) return false; + if (hasBackupConfig()) { + if (!getBackupConfig().equals(other.getBackupConfig())) 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) + VOLUME_UUID_FIELD_NUMBER; + hash = (53 * hash) + getVolumeUuid().hashCode(); + if (hasBackupConfig()) { + hash = (37 * hash) + BACKUP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getBackupConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.UpdateBackupConfigResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.UpdateBackupConfigResponse 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.netapp.v1.UpdateBackupConfigResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.UpdateBackupConfigResponse 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.netapp.v1.UpdateBackupConfigResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.UpdateBackupConfigResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.UpdateBackupConfigResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.UpdateBackupConfigResponse 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.netapp.v1.UpdateBackupConfigResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.UpdateBackupConfigResponse 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.netapp.v1.UpdateBackupConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.UpdateBackupConfigResponse 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.netapp.v1.UpdateBackupConfigResponse 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; + } + + /** + * + * + *
          +   * Response message for UpdateBackupConfig
          +   * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.UpdateBackupConfigResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.UpdateBackupConfigResponse) + com.google.cloud.netapp.v1.UpdateBackupConfigResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_UpdateBackupConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_UpdateBackupConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.UpdateBackupConfigResponse.class, + com.google.cloud.netapp.v1.UpdateBackupConfigResponse.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.UpdateBackupConfigResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBackupConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + volumeUuid_ = ""; + backupConfig_ = null; + if (backupConfigBuilder_ != null) { + backupConfigBuilder_.dispose(); + backupConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_UpdateBackupConfigResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.UpdateBackupConfigResponse getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.UpdateBackupConfigResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.UpdateBackupConfigResponse build() { + com.google.cloud.netapp.v1.UpdateBackupConfigResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.UpdateBackupConfigResponse buildPartial() { + com.google.cloud.netapp.v1.UpdateBackupConfigResponse result = + new com.google.cloud.netapp.v1.UpdateBackupConfigResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.UpdateBackupConfigResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.volumeUuid_ = volumeUuid_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.backupConfig_ = + backupConfigBuilder_ == null ? backupConfig_ : backupConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.netapp.v1.UpdateBackupConfigResponse) { + return mergeFrom((com.google.cloud.netapp.v1.UpdateBackupConfigResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.UpdateBackupConfigResponse other) { + if (other == com.google.cloud.netapp.v1.UpdateBackupConfigResponse.getDefaultInstance()) + return this; + if (!other.getVolumeUuid().isEmpty()) { + volumeUuid_ = other.volumeUuid_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasBackupConfig()) { + mergeBackupConfig(other.getBackupConfig()); + } + 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: + { + volumeUuid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetBackupConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object volumeUuid_ = ""; + + /** + * + * + *
          +     * The UUID of the ONTAP-mode volume.
          +     * 
          + * + * string volume_uuid = 1; + * + * @return The volumeUuid. + */ + public java.lang.String getVolumeUuid() { + java.lang.Object ref = volumeUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + volumeUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * The UUID of the ONTAP-mode volume.
          +     * 
          + * + * string volume_uuid = 1; + * + * @return The bytes for volumeUuid. + */ + public com.google.protobuf.ByteString getVolumeUuidBytes() { + java.lang.Object ref = volumeUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + volumeUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * The UUID of the ONTAP-mode volume.
          +     * 
          + * + * string volume_uuid = 1; + * + * @param value The volumeUuid to set. + * @return This builder for chaining. + */ + public Builder setVolumeUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + volumeUuid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * The UUID of the ONTAP-mode volume.
          +     * 
          + * + * string volume_uuid = 1; + * + * @return This builder for chaining. + */ + public Builder clearVolumeUuid() { + volumeUuid_ = getDefaultInstance().getVolumeUuid(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * The UUID of the ONTAP-mode volume.
          +     * 
          + * + * string volume_uuid = 1; + * + * @param value The bytes for volumeUuid to set. + * @return This builder for chaining. + */ + public Builder setVolumeUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + volumeUuid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.netapp.v1.BackupConfig backupConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.netapp.v1.BackupConfig, + com.google.cloud.netapp.v1.BackupConfig.Builder, + com.google.cloud.netapp.v1.BackupConfigOrBuilder> + backupConfigBuilder_; + + /** + * + * + *
          +     * The updated Backup configuration for the volume.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + * + * @return Whether the backupConfig field is set. + */ + public boolean hasBackupConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +     * The updated Backup configuration for the volume.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + * + * @return The backupConfig. + */ + public com.google.cloud.netapp.v1.BackupConfig getBackupConfig() { + if (backupConfigBuilder_ == null) { + return backupConfig_ == null + ? com.google.cloud.netapp.v1.BackupConfig.getDefaultInstance() + : backupConfig_; + } else { + return backupConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * The updated Backup configuration for the volume.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + */ + public Builder setBackupConfig(com.google.cloud.netapp.v1.BackupConfig value) { + if (backupConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backupConfig_ = value; + } else { + backupConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * The updated Backup configuration for the volume.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + */ + public Builder setBackupConfig( + com.google.cloud.netapp.v1.BackupConfig.Builder builderForValue) { + if (backupConfigBuilder_ == null) { + backupConfig_ = builderForValue.build(); + } else { + backupConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * The updated Backup configuration for the volume.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + */ + public Builder mergeBackupConfig(com.google.cloud.netapp.v1.BackupConfig value) { + if (backupConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && backupConfig_ != null + && backupConfig_ != com.google.cloud.netapp.v1.BackupConfig.getDefaultInstance()) { + getBackupConfigBuilder().mergeFrom(value); + } else { + backupConfig_ = value; + } + } else { + backupConfigBuilder_.mergeFrom(value); + } + if (backupConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * The updated Backup configuration for the volume.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + */ + public Builder clearBackupConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + backupConfig_ = null; + if (backupConfigBuilder_ != null) { + backupConfigBuilder_.dispose(); + backupConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * The updated Backup configuration for the volume.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + */ + public com.google.cloud.netapp.v1.BackupConfig.Builder getBackupConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetBackupConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * The updated Backup configuration for the volume.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + */ + public com.google.cloud.netapp.v1.BackupConfigOrBuilder getBackupConfigOrBuilder() { + if (backupConfigBuilder_ != null) { + return backupConfigBuilder_.getMessageOrBuilder(); + } else { + return backupConfig_ == null + ? com.google.cloud.netapp.v1.BackupConfig.getDefaultInstance() + : backupConfig_; + } + } + + /** + * + * + *
          +     * The updated Backup configuration for the volume.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.netapp.v1.BackupConfig, + com.google.cloud.netapp.v1.BackupConfig.Builder, + com.google.cloud.netapp.v1.BackupConfigOrBuilder> + internalGetBackupConfigFieldBuilder() { + if (backupConfigBuilder_ == null) { + backupConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.netapp.v1.BackupConfig, + com.google.cloud.netapp.v1.BackupConfig.Builder, + com.google.cloud.netapp.v1.BackupConfigOrBuilder>( + getBackupConfig(), getParentForChildren(), isClean()); + backupConfig_ = null; + } + return backupConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.UpdateBackupConfigResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.UpdateBackupConfigResponse) + private static final com.google.cloud.netapp.v1.UpdateBackupConfigResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.UpdateBackupConfigResponse(); + } + + public static com.google.cloud.netapp.v1.UpdateBackupConfigResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateBackupConfigResponse 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.netapp.v1.UpdateBackupConfigResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/UpdateBackupConfigResponseOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/UpdateBackupConfigResponseOrBuilder.java new file mode 100644 index 000000000000..267600d9195d --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/UpdateBackupConfigResponseOrBuilder.java @@ -0,0 +1,91 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +@com.google.protobuf.Generated +public interface UpdateBackupConfigResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.UpdateBackupConfigResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The UUID of the ONTAP-mode volume.
          +   * 
          + * + * string volume_uuid = 1; + * + * @return The volumeUuid. + */ + java.lang.String getVolumeUuid(); + + /** + * + * + *
          +   * The UUID of the ONTAP-mode volume.
          +   * 
          + * + * string volume_uuid = 1; + * + * @return The bytes for volumeUuid. + */ + com.google.protobuf.ByteString getVolumeUuidBytes(); + + /** + * + * + *
          +   * The updated Backup configuration for the volume.
          +   * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + * + * @return Whether the backupConfig field is set. + */ + boolean hasBackupConfig(); + + /** + * + * + *
          +   * The updated Backup configuration for the volume.
          +   * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + * + * @return The backupConfig. + */ + com.google.cloud.netapp.v1.BackupConfig getBackupConfig(); + + /** + * + * + *
          +   * The updated Backup configuration for the volume.
          +   * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + */ + com.google.cloud.netapp.v1.BackupConfigOrBuilder getBackupConfigOrBuilder(); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Volume.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Volume.java index 5a8c23cfc726..4619b8afa4b2 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Volume.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Volume.java @@ -522,6 +522,36 @@ public interface CloneDetailsOrBuilder * @return The sharedSpaceGib. */ long getSharedSpaceGib(); + + /** + * + * + *
          +     * Output only. The current state of the clone split operation.
          +     * 
          + * + * + * .google.cloud.netapp.v1.SplitState split_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for splitState. + */ + int getSplitStateValue(); + + /** + * + * + *
          +     * Output only. The current state of the clone split operation.
          +     * 
          + * + * + * .google.cloud.netapp.v1.SplitState split_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The splitState. + */ + com.google.cloud.netapp.v1.SplitState getSplitState(); } /** @@ -557,6 +587,7 @@ private CloneDetails(com.google.protobuf.GeneratedMessage.Builder builder) { private CloneDetails() { sourceSnapshot_ = ""; sourceVolume_ = ""; + splitState_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -716,6 +747,47 @@ public long getSharedSpaceGib() { return sharedSpaceGib_; } + public static final int SPLIT_STATE_FIELD_NUMBER = 4; + private int splitState_ = 0; + + /** + * + * + *
          +     * Output only. The current state of the clone split operation.
          +     * 
          + * + * + * .google.cloud.netapp.v1.SplitState split_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for splitState. + */ + @java.lang.Override + public int getSplitStateValue() { + return splitState_; + } + + /** + * + * + *
          +     * Output only. The current state of the clone split operation.
          +     * 
          + * + * + * .google.cloud.netapp.v1.SplitState split_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The splitState. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.SplitState getSplitState() { + com.google.cloud.netapp.v1.SplitState result = + com.google.cloud.netapp.v1.SplitState.forNumber(splitState_); + return result == null ? com.google.cloud.netapp.v1.SplitState.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -739,6 +811,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sharedSpaceGib_ != 0L) { output.writeInt64(3, sharedSpaceGib_); } + if (splitState_ + != com.google.cloud.netapp.v1.SplitState.SPLIT_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, splitState_); + } getUnknownFields().writeTo(output); } @@ -757,6 +833,10 @@ public int getSerializedSize() { if (sharedSpaceGib_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, sharedSpaceGib_); } + if (splitState_ + != com.google.cloud.netapp.v1.SplitState.SPLIT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, splitState_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -776,6 +856,7 @@ public boolean equals(final java.lang.Object obj) { if (!getSourceSnapshot().equals(other.getSourceSnapshot())) return false; if (!getSourceVolume().equals(other.getSourceVolume())) return false; if (getSharedSpaceGib() != other.getSharedSpaceGib()) return false; + if (splitState_ != other.splitState_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -793,6 +874,8 @@ public int hashCode() { hash = (53 * hash) + getSourceVolume().hashCode(); hash = (37 * hash) + SHARED_SPACE_GIB_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSharedSpaceGib()); + hash = (37 * hash) + SPLIT_STATE_FIELD_NUMBER; + hash = (53 * hash) + splitState_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -936,6 +1019,7 @@ public Builder clear() { sourceSnapshot_ = ""; sourceVolume_ = ""; sharedSpaceGib_ = 0L; + splitState_ = 0; return this; } @@ -981,6 +1065,9 @@ private void buildPartial0(com.google.cloud.netapp.v1.Volume.CloneDetails result if (((from_bitField0_ & 0x00000004) != 0)) { result.sharedSpaceGib_ = sharedSpaceGib_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.splitState_ = splitState_; + } } @java.lang.Override @@ -1009,6 +1096,9 @@ public Builder mergeFrom(com.google.cloud.netapp.v1.Volume.CloneDetails other) { if (other.getSharedSpaceGib() != 0L) { setSharedSpaceGib(other.getSharedSpaceGib()); } + if (other.splitState_ != 0) { + setSplitStateValue(other.getSplitStateValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1053,6 +1143,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 24 + case 32: + { + splitState_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1393,6 +1489,111 @@ public Builder clearSharedSpaceGib() { return this; } + private int splitState_ = 0; + + /** + * + * + *
          +       * Output only. The current state of the clone split operation.
          +       * 
          + * + * + * .google.cloud.netapp.v1.SplitState split_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for splitState. + */ + @java.lang.Override + public int getSplitStateValue() { + return splitState_; + } + + /** + * + * + *
          +       * Output only. The current state of the clone split operation.
          +       * 
          + * + * + * .google.cloud.netapp.v1.SplitState split_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for splitState to set. + * @return This builder for chaining. + */ + public Builder setSplitStateValue(int value) { + splitState_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +       * Output only. The current state of the clone split operation.
          +       * 
          + * + * + * .google.cloud.netapp.v1.SplitState split_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The splitState. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.SplitState getSplitState() { + com.google.cloud.netapp.v1.SplitState result = + com.google.cloud.netapp.v1.SplitState.forNumber(splitState_); + return result == null ? com.google.cloud.netapp.v1.SplitState.UNRECOGNIZED : result; + } + + /** + * + * + *
          +       * Output only. The current state of the clone split operation.
          +       * 
          + * + * + * .google.cloud.netapp.v1.SplitState split_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The splitState to set. + * @return This builder for chaining. + */ + public Builder setSplitState(com.google.cloud.netapp.v1.SplitState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + splitState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +       * Output only. The current state of the clone split operation.
          +       * 
          + * + * + * .google.cloud.netapp.v1.SplitState split_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearSplitState() { + bitField0_ = (bitField0_ & ~0x00000008); + splitState_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.Volume.CloneDetails) } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeBackupConfig.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeBackupConfig.java new file mode 100644 index 000000000000..2a3c28493a2e --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeBackupConfig.java @@ -0,0 +1,889 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +/** + * + * + *
          + * Backup configuration for a volume in a pool.
          + * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.VolumeBackupConfig} + */ +@com.google.protobuf.Generated +public final class VolumeBackupConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.VolumeBackupConfig) + VolumeBackupConfigOrBuilder { + 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= */ "", + "VolumeBackupConfig"); + } + + // Use VolumeBackupConfig.newBuilder() to construct. + private VolumeBackupConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VolumeBackupConfig() { + volumeUuid_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_VolumeBackupConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_VolumeBackupConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.VolumeBackupConfig.class, + com.google.cloud.netapp.v1.VolumeBackupConfig.Builder.class); + } + + private int bitField0_; + public static final int VOLUME_UUID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object volumeUuid_ = ""; + + /** + * + * + *
          +   * Provides the Ontap UUID of the volume within the pool.
          +   * 
          + * + * string volume_uuid = 1; + * + * @return The volumeUuid. + */ + @java.lang.Override + public java.lang.String getVolumeUuid() { + java.lang.Object ref = volumeUuid_; + 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(); + volumeUuid_ = s; + return s; + } + } + + /** + * + * + *
          +   * Provides the Ontap UUID of the volume within the pool.
          +   * 
          + * + * string volume_uuid = 1; + * + * @return The bytes for volumeUuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVolumeUuidBytes() { + java.lang.Object ref = volumeUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + volumeUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKUP_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.netapp.v1.BackupConfig backupConfig_; + + /** + * + * + *
          +   * Backup configuration for the volume.
          +   * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + * + * @return Whether the backupConfig field is set. + */ + @java.lang.Override + public boolean hasBackupConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Backup configuration for the volume.
          +   * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + * + * @return The backupConfig. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.BackupConfig getBackupConfig() { + return backupConfig_ == null + ? com.google.cloud.netapp.v1.BackupConfig.getDefaultInstance() + : backupConfig_; + } + + /** + * + * + *
          +   * Backup configuration for the volume.
          +   * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + */ + @java.lang.Override + public com.google.cloud.netapp.v1.BackupConfigOrBuilder getBackupConfigOrBuilder() { + return backupConfig_ == null + ? com.google.cloud.netapp.v1.BackupConfig.getDefaultInstance() + : backupConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(volumeUuid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, volumeUuid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getBackupConfig()); + } + 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(volumeUuid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, volumeUuid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBackupConfig()); + } + 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.netapp.v1.VolumeBackupConfig)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.VolumeBackupConfig other = + (com.google.cloud.netapp.v1.VolumeBackupConfig) obj; + + if (!getVolumeUuid().equals(other.getVolumeUuid())) return false; + if (hasBackupConfig() != other.hasBackupConfig()) return false; + if (hasBackupConfig()) { + if (!getBackupConfig().equals(other.getBackupConfig())) 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) + VOLUME_UUID_FIELD_NUMBER; + hash = (53 * hash) + getVolumeUuid().hashCode(); + if (hasBackupConfig()) { + hash = (37 * hash) + BACKUP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getBackupConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.VolumeBackupConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.VolumeBackupConfig 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.netapp.v1.VolumeBackupConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.VolumeBackupConfig 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.netapp.v1.VolumeBackupConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.VolumeBackupConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.VolumeBackupConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.VolumeBackupConfig 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.netapp.v1.VolumeBackupConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.VolumeBackupConfig 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.netapp.v1.VolumeBackupConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.VolumeBackupConfig 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.netapp.v1.VolumeBackupConfig 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; + } + + /** + * + * + *
          +   * Backup configuration for a volume in a pool.
          +   * 
          + * + * Protobuf type {@code google.cloud.netapp.v1.VolumeBackupConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.VolumeBackupConfig) + com.google.cloud.netapp.v1.VolumeBackupConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_VolumeBackupConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_VolumeBackupConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.VolumeBackupConfig.class, + com.google.cloud.netapp.v1.VolumeBackupConfig.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.VolumeBackupConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBackupConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + volumeUuid_ = ""; + backupConfig_ = null; + if (backupConfigBuilder_ != null) { + backupConfigBuilder_.dispose(); + backupConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_VolumeBackupConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.VolumeBackupConfig getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.VolumeBackupConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.VolumeBackupConfig build() { + com.google.cloud.netapp.v1.VolumeBackupConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.VolumeBackupConfig buildPartial() { + com.google.cloud.netapp.v1.VolumeBackupConfig result = + new com.google.cloud.netapp.v1.VolumeBackupConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.VolumeBackupConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.volumeUuid_ = volumeUuid_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.backupConfig_ = + backupConfigBuilder_ == null ? backupConfig_ : backupConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.netapp.v1.VolumeBackupConfig) { + return mergeFrom((com.google.cloud.netapp.v1.VolumeBackupConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.VolumeBackupConfig other) { + if (other == com.google.cloud.netapp.v1.VolumeBackupConfig.getDefaultInstance()) return this; + if (!other.getVolumeUuid().isEmpty()) { + volumeUuid_ = other.volumeUuid_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasBackupConfig()) { + mergeBackupConfig(other.getBackupConfig()); + } + 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: + { + volumeUuid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetBackupConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object volumeUuid_ = ""; + + /** + * + * + *
          +     * Provides the Ontap UUID of the volume within the pool.
          +     * 
          + * + * string volume_uuid = 1; + * + * @return The volumeUuid. + */ + public java.lang.String getVolumeUuid() { + java.lang.Object ref = volumeUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + volumeUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Provides the Ontap UUID of the volume within the pool.
          +     * 
          + * + * string volume_uuid = 1; + * + * @return The bytes for volumeUuid. + */ + public com.google.protobuf.ByteString getVolumeUuidBytes() { + java.lang.Object ref = volumeUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + volumeUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Provides the Ontap UUID of the volume within the pool.
          +     * 
          + * + * string volume_uuid = 1; + * + * @param value The volumeUuid to set. + * @return This builder for chaining. + */ + public Builder setVolumeUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + volumeUuid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Provides the Ontap UUID of the volume within the pool.
          +     * 
          + * + * string volume_uuid = 1; + * + * @return This builder for chaining. + */ + public Builder clearVolumeUuid() { + volumeUuid_ = getDefaultInstance().getVolumeUuid(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Provides the Ontap UUID of the volume within the pool.
          +     * 
          + * + * string volume_uuid = 1; + * + * @param value The bytes for volumeUuid to set. + * @return This builder for chaining. + */ + public Builder setVolumeUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + volumeUuid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.netapp.v1.BackupConfig backupConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.netapp.v1.BackupConfig, + com.google.cloud.netapp.v1.BackupConfig.Builder, + com.google.cloud.netapp.v1.BackupConfigOrBuilder> + backupConfigBuilder_; + + /** + * + * + *
          +     * Backup configuration for the volume.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + * + * @return Whether the backupConfig field is set. + */ + public boolean hasBackupConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +     * Backup configuration for the volume.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + * + * @return The backupConfig. + */ + public com.google.cloud.netapp.v1.BackupConfig getBackupConfig() { + if (backupConfigBuilder_ == null) { + return backupConfig_ == null + ? com.google.cloud.netapp.v1.BackupConfig.getDefaultInstance() + : backupConfig_; + } else { + return backupConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Backup configuration for the volume.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + */ + public Builder setBackupConfig(com.google.cloud.netapp.v1.BackupConfig value) { + if (backupConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backupConfig_ = value; + } else { + backupConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Backup configuration for the volume.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + */ + public Builder setBackupConfig( + com.google.cloud.netapp.v1.BackupConfig.Builder builderForValue) { + if (backupConfigBuilder_ == null) { + backupConfig_ = builderForValue.build(); + } else { + backupConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Backup configuration for the volume.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + */ + public Builder mergeBackupConfig(com.google.cloud.netapp.v1.BackupConfig value) { + if (backupConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && backupConfig_ != null + && backupConfig_ != com.google.cloud.netapp.v1.BackupConfig.getDefaultInstance()) { + getBackupConfigBuilder().mergeFrom(value); + } else { + backupConfig_ = value; + } + } else { + backupConfigBuilder_.mergeFrom(value); + } + if (backupConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Backup configuration for the volume.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + */ + public Builder clearBackupConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + backupConfig_ = null; + if (backupConfigBuilder_ != null) { + backupConfigBuilder_.dispose(); + backupConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Backup configuration for the volume.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + */ + public com.google.cloud.netapp.v1.BackupConfig.Builder getBackupConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetBackupConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Backup configuration for the volume.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + */ + public com.google.cloud.netapp.v1.BackupConfigOrBuilder getBackupConfigOrBuilder() { + if (backupConfigBuilder_ != null) { + return backupConfigBuilder_.getMessageOrBuilder(); + } else { + return backupConfig_ == null + ? com.google.cloud.netapp.v1.BackupConfig.getDefaultInstance() + : backupConfig_; + } + } + + /** + * + * + *
          +     * Backup configuration for the volume.
          +     * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.netapp.v1.BackupConfig, + com.google.cloud.netapp.v1.BackupConfig.Builder, + com.google.cloud.netapp.v1.BackupConfigOrBuilder> + internalGetBackupConfigFieldBuilder() { + if (backupConfigBuilder_ == null) { + backupConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.netapp.v1.BackupConfig, + com.google.cloud.netapp.v1.BackupConfig.Builder, + com.google.cloud.netapp.v1.BackupConfigOrBuilder>( + getBackupConfig(), getParentForChildren(), isClean()); + backupConfig_ = null; + } + return backupConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.VolumeBackupConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.VolumeBackupConfig) + private static final com.google.cloud.netapp.v1.VolumeBackupConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.VolumeBackupConfig(); + } + + public static com.google.cloud.netapp.v1.VolumeBackupConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VolumeBackupConfig 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.netapp.v1.VolumeBackupConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeBackupConfigOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeBackupConfigOrBuilder.java new file mode 100644 index 000000000000..8a9ec53ee68b --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeBackupConfigOrBuilder.java @@ -0,0 +1,91 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.netapp.v1; + +@com.google.protobuf.Generated +public interface VolumeBackupConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.VolumeBackupConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Provides the Ontap UUID of the volume within the pool.
          +   * 
          + * + * string volume_uuid = 1; + * + * @return The volumeUuid. + */ + java.lang.String getVolumeUuid(); + + /** + * + * + *
          +   * Provides the Ontap UUID of the volume within the pool.
          +   * 
          + * + * string volume_uuid = 1; + * + * @return The bytes for volumeUuid. + */ + com.google.protobuf.ByteString getVolumeUuidBytes(); + + /** + * + * + *
          +   * Backup configuration for the volume.
          +   * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + * + * @return Whether the backupConfig field is set. + */ + boolean hasBackupConfig(); + + /** + * + * + *
          +   * Backup configuration for the volume.
          +   * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + * + * @return The backupConfig. + */ + com.google.cloud.netapp.v1.BackupConfig getBackupConfig(); + + /** + * + * + *
          +   * Backup configuration for the volume.
          +   * 
          + * + * .google.cloud.netapp.v1.BackupConfig backup_config = 2; + */ + com.google.cloud.netapp.v1.BackupConfigOrBuilder getBackupConfigOrBuilder(); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java index ed4b558e4054..3f8727b44315 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java @@ -48,6 +48,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_netapp_v1_ListVolumesResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_netapp_v1_ListVolumesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_ListBackupConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_netapp_v1_ListBackupConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_ListBackupConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_netapp_v1_ListBackupConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_VolumeBackupConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_netapp_v1_VolumeBackupConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_netapp_v1_GetVolumeRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -68,6 +80,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_netapp_v1_RevertVolumeRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_netapp_v1_RevertVolumeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_StartSplitRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_netapp_v1_StartSplitRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_GetSplitStatusRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_netapp_v1_GetSplitStatusRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_SplitStatus_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_netapp_v1_SplitStatus_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_netapp_v1_Volume_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -160,10 +184,34 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_netapp_v1_RestoreBackupFilesResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_netapp_v1_RestoreBackupFilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_RestoreVolumeRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_netapp_v1_RestoreVolumeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_BackupSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_netapp_v1_BackupSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_OntapVolumeTarget_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_netapp_v1_OntapVolumeTarget_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_RestoreVolumeResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_netapp_v1_RestoreVolumeResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_netapp_v1_EstablishVolumePeeringRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_netapp_v1_EstablishVolumePeeringRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_UpdateBackupConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_netapp_v1_UpdateBackupConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_UpdateBackupConfigResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_netapp_v1_UpdateBackupConfigResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -189,7 +237,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023ListVolumesResponse\022/\n" + "\007volumes\030\001 \003(\0132\036.google.cloud.netapp.v1.Volume\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" - + "\013unreachable\030\003 \003(\t\"F\n" + + "\013unreachable\030\003 \003(\t\"\262\001\n" + + "\030ListBackupConfigsRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!netapp.googleapis.com/StoragePool\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\005 \001(\tB\003\340A\001\"\231\001\n" + + "\031ListBackupConfigsResponse\022I\n" + + "\025volume_backup_configs\030\001" + + " \003(\0132*.google.cloud.netapp.v1.VolumeBackupConfig\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\030\n" + + "\013unreachable\030\003 \003(\tB\003\340A\006\"f\n" + + "\022VolumeBackupConfig\022\023\n" + + "\013volume_uuid\030\001 \001(\t\022;\n\r" + + "backup_config\030\002 \001(\0132$.google.cloud.netapp.v1.BackupConfig\"F\n" + "\020GetVolumeRequest\0222\n" + "\004name\030\001 \001(\tB$\340A\002\372A\036\n" + "\034netapp.googleapis.com/Volume\"\230\001\n" @@ -209,11 +272,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023RevertVolumeRequest\0222\n" + "\004name\030\001 \001(\tB$\340A\002\372A\036\n" + "\034netapp.googleapis.com/Volume\022\030\n" - + "\013snapshot_id\030\002 \001(\tB\003\340A\002\"\246\025\n" + + "\013snapshot_id\030\002 \001(\tB\003\340A\002\"G\n" + + "\021StartSplitRequest\0222\n" + + "\004name\030\001 \001(\tB$\340A\002\372A\036\n" + + "\034netapp.googleapis.com/Volume\"K\n" + + "\025GetSplitStatusRequest\0222\n" + + "\004name\030\001 \001(\tB$\340A\002\372A\036\n" + + "\034netapp.googleapis.com/Volume\"\206\001\n" + + "\013SplitStatus\022<\n" + + "\013split_state\030\001" + + " \001(\0162\".google.cloud.netapp.v1.SplitStateB\003\340A\003\022\032\n\r" + + "state_details\030\002 \001(\tB\003\340A\003\022\035\n" + + "\020progress_percent\030\003 \001(\005B\003\340A\003\"\344\025\n" + "\006Volume\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0228\n" - + "\005state\030\002 \001(\0162$.g" - + "oogle.cloud.netapp.v1.Volume.StateB\003\340A\003\022\032\n\r" + + "\005state\030\002" + + " \001(\0162$.google.cloud.netapp.v1.Volume.StateB\003\340A\003\022\032\n\r" + "state_details\030\003 \001(\tB\003\340A\003\0224\n" + "\013create_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\027\n\n" @@ -223,8 +297,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!netapp.googleapis.com/StoragePool\0227\n" + "\007network\030\010 \001(\tB&\340A\003\372A \n" + "\036compute.googleapis.com/Network\022@\n\r" - + "service_level\030\t \001(\0162$.go" - + "ogle.cloud.netapp.v1.ServiceLevelB\003\340A\003\022\031\n" + + "service_level\030\t " + + "\001(\0162$.google.cloud.netapp.v1.ServiceLevelB\003\340A\003\022\031\n" + "\014capacity_gib\030\n" + " \001(\003B\003\340A\002\022@\n\r" + "export_policy\030\013" @@ -232,14 +306,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tprotocols\030\014 \003(\0162!.google.cloud.netapp.v1.ProtocolsB\003\340A\002\022>\n" + "\014smb_settings\030\r" + " \003(\0162#.google.cloud.netapp.v1.SMBSettingsB\003\340A\001\022?\n\r" - + "mount_options\030\016 \003(\0132#." - + "google.cloud.netapp.v1.MountOptionB\003\340A\003\022\035\n" + + "mount_options\030\016" + + " \003(\0132#.google.cloud.netapp.v1.MountOptionB\003\340A\003\022\035\n" + "\020unix_permissions\030\017 \001(\tB\003\340A\001\022?\n" + "\006labels\030\020" + " \003(\0132*.google.cloud.netapp.v1.Volume.LabelsEntryB\003\340A\001\022\030\n" + "\013description\030\021 \001(\tB\003\340A\001\022D\n" - + "\017snapshot_policy\030\022" - + " \001(\0132&.google.cloud.netapp.v1.SnapshotPolicyB\003\340A\001\022\031\n" + + "\017snapshot_policy\030\022 \001(\0132&.goo" + + "gle.cloud.netapp.v1.SnapshotPolicyB\003\340A\001\022\031\n" + "\014snap_reserve\030\023 \001(\001B\003\340A\001\022\037\n" + "\022snapshot_directory\030\024 \001(\010B\003\340A\001\022\025\n" + "\010used_gib\030\025 \001(\003B\003\340A\003\022B\n" @@ -250,11 +324,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020active_directory\030\031 \001(\tB-\340A\003\372A\'\n" + "%netapp.googleapis.com/ActiveDirectory\022J\n" + "\022restore_parameters\030\032" - + " \001(\0132).google.cloud.netapp.v1.RestoreParametersB\003\340A\001\022;\n\n" + + " \001(\0132).google.cloud.netapp.v1.RestoreParametersB\003\340A\001\022;\n" + + "\n" + "kms_config\030\033 \001(\tB\'\340A\003\372A!\n" + "\037netapp.googleapis.com/KmsConfig\022D\n" - + "\017encryption_type\030\034 \001(\0162&.go" - + "ogle.cloud.netapp.v1.EncryptionTypeB\003\340A\003\022\034\n" + + "\017encryption_type\030\034 " + + "\001(\0162&.google.cloud.netapp.v1.EncryptionTypeB\003\340A\003\022\034\n" + "\017has_replication\030\035 \001(\010B\003\340A\003\022@\n\r" + "backup_config\030\036" + " \001(\0132$.google.cloud.netapp.v1.BackupConfigH\000\210\001\001\022I\n" @@ -267,26 +342,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014replica_zone\030$ \001(\tB\003\340A\003\022\021\n" + "\004zone\030% \001(\tB\003\340A\003\022\037\n" + "\022cold_tier_size_gib\030\' \001(\003B\003\340A\003\022_\n" - + "\035hybrid_replication_parameters\030(" - + " \001(\01323.google.cloud.netapp.v1.HybridReplicationParametersB\003\340A\001\022\035\n" + + "\035hybrid_replication_parameters\030( \001(\01323.google.clo" + + "ud.netapp.v1.HybridReplicationParametersB\003\340A\001\022\035\n" + "\020throughput_mibps\030) \001(\001B\003\340A\001\022F\n" + "\020cache_parameters\030*" + " \001(\0132\'.google.cloud.netapp.v1.CacheParametersB\003\340A\001\022#\n" + "\026hot_tier_size_used_gib\030, \001(\003B\003\340A\003\022?\n\r" + "block_devices\030- \003(\0132#.google.cloud.netapp.v1.BlockDeviceB\003\340A\001\022O\n" - + "\025large_capacity_config\030. \001(\0132+.goog" - + "le.cloud.netapp.v1.LargeCapacityConfigB\003\340A\001\022G\n\r" - + "clone_details\030/" - + " \001(\0132+.google.cloud.netapp.v1.Volume.CloneDetailsB\003\340A\003\032\253\001\n" + + "\025large_capacity_config\030. \001(" + + "\0132+.google.cloud.netapp.v1.LargeCapacityConfigB\003\340A\001\022G\n\r" + + "clone_details\030/ \001(\0132+.goo" + + "gle.cloud.netapp.v1.Volume.CloneDetailsB\003\340A\003\032\351\001\n" + "\014CloneDetails\022?\n" + "\017source_snapshot\030\001 \001(\tB&\340A\003\372A \n" + "\036netapp.googleapis.com/Snapshot\022;\n\r" + "source_volume\030\002 \001(\tB$\340A\003\372A\036\n" + "\034netapp.googleapis.com/Volume\022\035\n" - + "\020shared_space_gib\030\003 \001(\003B\003\340A\003\032-\n" + + "\020shared_space_gib\030\003 \001(\003B\003\340A\003\022<\n" + + "\013split_state\030\004 \001(\0162" + + "\".google.cloud.netapp.v1.SplitStateB\003\340A\003\032-\n" + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r" - + "\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\231\001\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\t\n" @@ -297,23 +373,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tRESTORING\020\005\022\014\n" + "\010DISABLED\020\006\022\t\n" + "\005ERROR\020\007\022\r\n" - + "\tPREPARING\020\010\022\r" - + "\n" + + "\tPREPARING\020\010\022\r\n" + "\tREAD_ONLY\020\t:l\352Ai\n" - + "\034netapp.googleapis.com/Volume\0228projects/{project}/locations/{" - + "location}/volumes/{volume}*\007volumes2\006volumeB\020\n" + + "\034netapp.googleapis.com/Volume\0228" + + "projects/{project}/locations/{location}/volumes/{volume}*\007volumes2\006volumeB\020\n" + "\016_backup_configB\021\n" + "\017_tiering_policy\"5\n" + "\023LargeCapacityConfig\022\036\n" + "\021constituent_count\030\001 \001(\005B\003\340A\001\"R\n" + "\014ExportPolicy\022B\n" - + "\005rules\030\001" - + " \003(\0132..google.cloud.netapp.v1.SimpleExportPolicyRuleB\003\340A\002\"\357\006\n" + + "\005rules\030\001 \003(\0132..g" + + "oogle.cloud.netapp.v1.SimpleExportPolicyRuleB\003\340A\002\"\357\006\n" + "\026SimpleExportPolicyRule\022\034\n" + "\017allowed_clients\030\001 \001(\tH\000\210\001\001\022\034\n" + "\017has_root_access\030\002 \001(\tH\001\210\001\001\022<\n" - + "\013access_type\030\003" - + " \001(\0162\".google.cloud.netapp.v1.AccessTypeH\002\210\001\001\022\022\n" + + "\013access_type\030\003 \001(\0162\"." + + "google.cloud.netapp.v1.AccessTypeH\002\210\001\001\022\022\n" + "\005nfsv3\030\004 \001(\010H\003\210\001\001\022\022\n" + "\005nfsv4\030\005 \001(\010H\004\210\001\001\022!\n" + "\024kerberos_5_read_only\030\006 \001(\010H\005\210\001\001\022\"\n" @@ -324,8 +399,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\010H\t\210\001\001\022#\n" + "\026kerberos_5p_read_write\030\013 \001(\010H\n" + "\210\001\001\022X\n" - + "\013squash_mode\030\014" - + " \001(\01629.google.cloud.netapp.v1.SimpleExportPolicyRule.SquashModeB\003\340A\001H\013\210\001\001\022\032\n" + + "\013squash_mode\030\014 \001(\01629.g" + + "oogle.cloud.netapp.v1.SimpleExportPolicyRule.SquashModeB\003\340A\001H\013\210\001\001\022\032\n" + "\010anon_uid\030\r" + " \001(\003B\003\340A\001H\014\210\001\001\"^\n\n" + "SquashMode\022\033\n" @@ -348,10 +423,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t_anon_uid\"\232\003\n" + "\016SnapshotPolicy\022\024\n" + "\007enabled\030\001 \001(\010H\000\210\001\001\022D\n" - + "\017hourly_schedule\030\002" - + " \001(\0132&.google.cloud.netapp.v1.HourlyScheduleH\001\210\001\001\022B\n" - + "\016daily_schedule\030\003 \001(\0132%.g" - + "oogle.cloud.netapp.v1.DailyScheduleH\002\210\001\001\022D\n" + + "\017hourly_schedule\030\002 \001(\0132&." + + "google.cloud.netapp.v1.HourlyScheduleH\001\210\001\001\022B\n" + + "\016daily_schedule\030\003" + + " \001(\0132%.google.cloud.netapp.v1.DailyScheduleH\002\210\001\001\022D\n" + "\017weekly_schedule\030\004" + " \001(\0132&.google.cloud.netapp.v1.WeeklyScheduleH\003\210\001\001\022F\n" + "\020monthly_schedule\030\005" @@ -412,8 +487,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031_scheduled_backup_enabledB\025\n" + "\023_backup_chain_bytes\"\312\002\n\r" + "TieringPolicy\022O\n" - + "\013tier_action\030\001" - + " \001(\01620.google.cloud.netapp.v1.TieringPolicy.TierActionB\003\340A\001H\000\210\001\001\022(\n" + + "\013tier_action\030\001 \001" + + "(\01620.google.cloud.netapp.v1.TieringPolicy.TierActionB\003\340A\001H\000\210\001\001\022(\n" + "\026cooling_threshold_days\030\002 \001(\005B\003\340A\001H\001\210\001\001\022.\n" + "\034hot_tier_bypass_mode_enabled\030\003" + " \001(\010B\003\340A\001H\002\210\001\001\"B\n\n" @@ -433,13 +508,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021peer_ip_addresses\030\005 \003(\tB\003\340A\002\022\035\n" + "\020cluster_location\030\006 \001(\tB\003\340A\001\022\030\n" + "\013description\030\007 \001(\tB\003\340A\001\022T\n" - + "\006labels\030\010 \003(\0132?" - + ".google.cloud.netapp.v1.HybridReplicationParameters.LabelsEntryB\003\340A\001\022T\n" + + "\006labels\030\010 \003(\0132?.google.cl" + + "oud.netapp.v1.HybridReplicationParameters.LabelsEntryB\003\340A\001\022T\n" + "\024replication_schedule\030\t" + " \001(\01621.google.cloud.netapp.v1.HybridReplicationScheduleB\003\340A\001\022u\n" + "\027hybrid_replication_type\030\n" - + " \001(\0162O.google.clo" - + "ud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationTypeB\003\340A\001\022+\n" + + " \001(\0162O.google.cloud.netapp." + + "v1.HybridReplicationParameters.VolumeHybridReplicationTypeB\003\340A\001\022+\n" + "\036large_volume_constituent_count\030\013 \001(\005B\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -474,12 +549,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005ERROR\020\004B\032\n" + "\030_enable_global_file_lock\"\277\003\n" + "\013CacheConfig\022I\n" - + "\022cache_pre_populate\030\001" - + " \001(\0132(.google.cloud.netapp.v1.CachePrePopulateB\003\340A\001\022#\n" + + "\022cache_pre_populate\030\001 \001(\0132" + + "(.google.cloud.netapp.v1.CachePrePopulateB\003\340A\001\022#\n" + "\021writeback_enabled\030\002 \001(\010B\003\340A\001H\000\210\001\001\022,\n" + "\032cifs_change_notify_enabled\030\005 \001(\010B\003\340A\001H\001\210\001\001\022`\n" - + "\030cache_pre_populate_state\030\006" - + " \001(\01629.google.cloud.netapp.v1.CacheConfig.CachePrePopulateStateB\003\340A\003\"{\n" + + "\030cache_pre_populate_state\030\006 " + + "\001(\01629.google.cloud.netapp.v1.CacheConfig.CachePrePopulateStateB\003\340A\003\"{\n" + "\025CachePrePopulateState\022(\n" + "$CACHE_PRE_POPULATE_STATE_UNSPECIFIED\020\000\022\016\n\n" + "NOT_NEEDED\020\001\022\017\n" @@ -510,20 +585,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034netapp.googleapis.com/Backup\022\026\n" + "\tfile_list\030\003 \003(\tB\003\340A\002\022%\n" + "\030restore_destination_path\030\004 \001(\tB\003\340A\001\"\034\n" - + "\032RestoreBackupFilesResponse\"\316\001\n" + + "\032RestoreBackupFilesResponse\"\354\001\n" + + "\024RestoreVolumeRequest\022=\n\r" + + "backup_source\030\002 \001(\0132$.google.cloud.netapp.v1.BackupSourceH\000\022H\n" + + "\023ontap_volume_target\030\003" + + " \001(\0132).google.cloud.netapp.v1.OntapVolumeTargetH\001\0227\n" + + "\004name\030\001 \001(\tB)\340A\002\372A#\n" + + "!netapp.googleapis.com/StoragePoolB\010\n" + + "\006sourceB\010\n" + + "\006target\"\\\n" + + "\014BackupSource\0224\n" + + "\006backup\030\001 \001(\tB$\340A\002\372A\036\n" + + "\034netapp.googleapis.com/Backup\022\026\n" + + "\tfile_list\030\002 \003(\tB\003\340A\001\"T\n" + + "\021OntapVolumeTarget\022\030\n" + + "\013volume_uuid\030\001 \001(\tB\003\340A\002\022%\n" + + "\030restore_destination_path\030\002 \001(\tB\003\340A\001\"\027\n" + + "\025RestoreVolumeResponse\"\316\001\n" + "\035EstablishVolumePeeringRequest\0222\n" + "\004name\030\001 \001(\tB$\340A\002\372A\036\n" + "\034netapp.googleapis.com/Volume\022\036\n" + "\021peer_cluster_name\030\002 \001(\tB\003\340A\002\022\032\n\r" + "peer_svm_name\030\003 \001(\tB\003\340A\002\022\036\n" + "\021peer_ip_addresses\030\004 \003(\tB\003\340A\001\022\035\n" - + "\020peer_volume_name\030\005 \001(\tB\003\340A\002*P\n" + + "\020peer_volume_name\030\005 \001(\tB\003\340A\002\"\346\001\n" + + "\031UpdateBackupConfigRequest\0227\n" + + "\004name\030\001 \001(\tB)\340A\002\372A#\n" + + "!netapp.googleapis.com/StoragePool\022\030\n" + + "\013volume_uuid\030\002 \001(\tB\003\340A\002\022@\n\r" + + "backup_config\030\003" + + " \001(\0132$.google.cloud.netapp.v1.BackupConfigB\003\340A\002\0224\n" + + "\013update_mask\030\004 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"n\n" + + "\032UpdateBackupConfigResponse\022\023\n" + + "\013volume_uuid\030\001 \001(\t\022;\n\r" + + "backup_config\030\002 \001(\0132$.google.cloud.netapp.v1.BackupConfig*Z\n" + "\tProtocols\022\031\n" + "\025PROTOCOLS_UNSPECIFIED\020\000\022\t\n" + "\005NFSV3\020\001\022\t\n" + "\005NFSV4\020\002\022\007\n" + "\003SMB\020\003\022\t\n" - + "\005ISCSI\020\004*W\n\n" + + "\005ISCSI\020\004\022\010\n" + + "\004NVME\020\005*W\n" + + "\n" + "AccessType\022\033\n" + "\027ACCESS_TYPE_UNSPECIFIED\020\000\022\r\n" + "\tREAD_ONLY\020\001\022\016\n\n" @@ -539,7 +642,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "SHOW_SNAPSHOT\020\006\022\032\n" + "\026SHOW_PREVIOUS_VERSIONS\020\007\022\034\n" + "\030ACCESS_BASED_ENUMERATION\020\010\022\032\n" - + "\026CONTINUOUSLY_AVAILABLE\020\t*C\n\r" + + "\026CONTINUOUSLY_AVAILABLE\020\t*}\n\n" + + "SplitState\022\033\n" + + "\027SPLIT_STATE_UNSPECIFIED\020\000\022\035\n" + + "\031SPLIT_STATE_NOT_SPLITTING\020\001\022\033\n" + + "\027SPLIT_STATE_IN_PROGRESS\020\002\022\026\n" + + "\022SPLIT_STATE_FAILED\020\003*C\n\r" + "SecurityStyle\022\036\n" + "\032SECURITY_STYLE_UNSPECIFIED\020\000\022\010\n" + "\004NTFS\020\001\022\010\n" @@ -547,10 +655,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020RestrictedAction\022!\n" + "\035RESTRICTED_ACTION_UNSPECIFIED\020\000\022\n\n" + "\006DELETE\020\001B\255\001\n" - + "\032com.google.cloud.netapp.v1B\013VolumeProtoP\001Z2clou" - + "d.google.com/go/netapp/apiv1/netapppb;ne" - + "tapppb\252\002\026Google.Cloud.NetApp.V1\312\002\026Google" - + "\\Cloud\\NetApp\\V1\352\002\031Google::Cloud::NetApp::V1b\006proto3" + + "\032com.google.cloud.netapp.v1B\013VolumeProtoP\001Z2cloud.go" + + "ogle.com/go/netapp/apiv1/netapppb;netapp" + + "pb\252\002\026Google.Cloud.NetApp.V1\312\002\026Google\\Clo" + + "ud\\NetApp\\V1\352\002\031Google::Cloud::NetApp::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -579,8 +687,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Volumes", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_netapp_v1_GetVolumeRequest_descriptor = + internal_static_google_cloud_netapp_v1_ListBackupConfigsRequest_descriptor = getDescriptor().getMessageType(2); + internal_static_google_cloud_netapp_v1_ListBackupConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_ListBackupConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "OrderBy", "Filter", + }); + internal_static_google_cloud_netapp_v1_ListBackupConfigsResponse_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_netapp_v1_ListBackupConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_ListBackupConfigsResponse_descriptor, + new java.lang.String[] { + "VolumeBackupConfigs", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_netapp_v1_VolumeBackupConfig_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_netapp_v1_VolumeBackupConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_VolumeBackupConfig_descriptor, + new java.lang.String[] { + "VolumeUuid", "BackupConfig", + }); + internal_static_google_cloud_netapp_v1_GetVolumeRequest_descriptor = + getDescriptor().getMessageType(5); internal_static_google_cloud_netapp_v1_GetVolumeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_GetVolumeRequest_descriptor, @@ -588,7 +720,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_netapp_v1_CreateVolumeRequest_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(6); internal_static_google_cloud_netapp_v1_CreateVolumeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_CreateVolumeRequest_descriptor, @@ -596,7 +728,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "VolumeId", "Volume", }); internal_static_google_cloud_netapp_v1_UpdateVolumeRequest_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(7); internal_static_google_cloud_netapp_v1_UpdateVolumeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_UpdateVolumeRequest_descriptor, @@ -604,7 +736,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Volume", }); internal_static_google_cloud_netapp_v1_DeleteVolumeRequest_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(8); internal_static_google_cloud_netapp_v1_DeleteVolumeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_DeleteVolumeRequest_descriptor, @@ -612,14 +744,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Force", }); internal_static_google_cloud_netapp_v1_RevertVolumeRequest_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(9); internal_static_google_cloud_netapp_v1_RevertVolumeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_RevertVolumeRequest_descriptor, new java.lang.String[] { "Name", "SnapshotId", }); - internal_static_google_cloud_netapp_v1_Volume_descriptor = getDescriptor().getMessageType(7); + internal_static_google_cloud_netapp_v1_StartSplitRequest_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_netapp_v1_StartSplitRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_StartSplitRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_netapp_v1_GetSplitStatusRequest_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_netapp_v1_GetSplitStatusRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_GetSplitStatusRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_netapp_v1_SplitStatus_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_netapp_v1_SplitStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_SplitStatus_descriptor, + new java.lang.String[] { + "SplitState", "StateDetails", "ProgressPercent", + }); + internal_static_google_cloud_netapp_v1_Volume_descriptor = getDescriptor().getMessageType(13); internal_static_google_cloud_netapp_v1_Volume_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_Volume_descriptor, @@ -675,7 +831,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_Volume_CloneDetails_descriptor, new java.lang.String[] { - "SourceSnapshot", "SourceVolume", "SharedSpaceGib", + "SourceSnapshot", "SourceVolume", "SharedSpaceGib", "SplitState", }); internal_static_google_cloud_netapp_v1_Volume_LabelsEntry_descriptor = internal_static_google_cloud_netapp_v1_Volume_descriptor.getNestedType(1); @@ -686,7 +842,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_netapp_v1_LargeCapacityConfig_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(14); internal_static_google_cloud_netapp_v1_LargeCapacityConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_LargeCapacityConfig_descriptor, @@ -694,7 +850,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConstituentCount", }); internal_static_google_cloud_netapp_v1_ExportPolicy_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(15); internal_static_google_cloud_netapp_v1_ExportPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_ExportPolicy_descriptor, @@ -702,7 +858,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Rules", }); internal_static_google_cloud_netapp_v1_SimpleExportPolicyRule_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(16); internal_static_google_cloud_netapp_v1_SimpleExportPolicyRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_SimpleExportPolicyRule_descriptor, @@ -722,7 +878,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AnonUid", }); internal_static_google_cloud_netapp_v1_SnapshotPolicy_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(17); internal_static_google_cloud_netapp_v1_SnapshotPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_SnapshotPolicy_descriptor, @@ -730,7 +886,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", "HourlySchedule", "DailySchedule", "WeeklySchedule", "MonthlySchedule", }); internal_static_google_cloud_netapp_v1_HourlySchedule_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(18); internal_static_google_cloud_netapp_v1_HourlySchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_HourlySchedule_descriptor, @@ -738,7 +894,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SnapshotsToKeep", "Minute", }); internal_static_google_cloud_netapp_v1_DailySchedule_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(19); internal_static_google_cloud_netapp_v1_DailySchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_DailySchedule_descriptor, @@ -746,7 +902,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SnapshotsToKeep", "Minute", "Hour", }); internal_static_google_cloud_netapp_v1_WeeklySchedule_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(20); internal_static_google_cloud_netapp_v1_WeeklySchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_WeeklySchedule_descriptor, @@ -754,7 +910,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SnapshotsToKeep", "Minute", "Hour", "Day", }); internal_static_google_cloud_netapp_v1_MonthlySchedule_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(21); internal_static_google_cloud_netapp_v1_MonthlySchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_MonthlySchedule_descriptor, @@ -762,7 +918,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SnapshotsToKeep", "Minute", "Hour", "DaysOfMonth", }); internal_static_google_cloud_netapp_v1_MountOption_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(22); internal_static_google_cloud_netapp_v1_MountOption_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_MountOption_descriptor, @@ -770,7 +926,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Export", "ExportFull", "Protocol", "Instructions", "IpAddress", }); internal_static_google_cloud_netapp_v1_RestoreParameters_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(23); internal_static_google_cloud_netapp_v1_RestoreParameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_RestoreParameters_descriptor, @@ -778,7 +934,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceSnapshot", "SourceBackup", "Source", }); internal_static_google_cloud_netapp_v1_BackupConfig_descriptor = - getDescriptor().getMessageType(18); + getDescriptor().getMessageType(24); internal_static_google_cloud_netapp_v1_BackupConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_BackupConfig_descriptor, @@ -786,7 +942,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackupPolicies", "BackupVault", "ScheduledBackupEnabled", "BackupChainBytes", }); internal_static_google_cloud_netapp_v1_TieringPolicy_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(25); internal_static_google_cloud_netapp_v1_TieringPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_TieringPolicy_descriptor, @@ -794,7 +950,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TierAction", "CoolingThresholdDays", "HotTierBypassModeEnabled", }); internal_static_google_cloud_netapp_v1_HybridReplicationParameters_descriptor = - getDescriptor().getMessageType(20); + getDescriptor().getMessageType(26); internal_static_google_cloud_netapp_v1_HybridReplicationParameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_HybridReplicationParameters_descriptor, @@ -821,7 +977,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_netapp_v1_CacheParameters_descriptor = - getDescriptor().getMessageType(21); + getDescriptor().getMessageType(27); internal_static_google_cloud_netapp_v1_CacheParameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_CacheParameters_descriptor, @@ -839,7 +995,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StateDetails", }); internal_static_google_cloud_netapp_v1_CacheConfig_descriptor = - getDescriptor().getMessageType(22); + getDescriptor().getMessageType(28); internal_static_google_cloud_netapp_v1_CacheConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_CacheConfig_descriptor, @@ -850,7 +1006,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CachePrePopulateState", }); internal_static_google_cloud_netapp_v1_CachePrePopulate_descriptor = - getDescriptor().getMessageType(23); + getDescriptor().getMessageType(29); internal_static_google_cloud_netapp_v1_CachePrePopulate_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_CachePrePopulate_descriptor, @@ -858,7 +1014,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PathList", "ExcludePathList", "Recursion", }); internal_static_google_cloud_netapp_v1_BlockDevice_descriptor = - getDescriptor().getMessageType(24); + getDescriptor().getMessageType(30); internal_static_google_cloud_netapp_v1_BlockDevice_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_BlockDevice_descriptor, @@ -866,7 +1022,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "HostGroups", "Identifier", "SizeGib", "OsType", }); internal_static_google_cloud_netapp_v1_RestoreBackupFilesRequest_descriptor = - getDescriptor().getMessageType(25); + getDescriptor().getMessageType(31); internal_static_google_cloud_netapp_v1_RestoreBackupFilesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_RestoreBackupFilesRequest_descriptor, @@ -874,19 +1030,65 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Backup", "FileList", "RestoreDestinationPath", }); internal_static_google_cloud_netapp_v1_RestoreBackupFilesResponse_descriptor = - getDescriptor().getMessageType(26); + getDescriptor().getMessageType(32); internal_static_google_cloud_netapp_v1_RestoreBackupFilesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_RestoreBackupFilesResponse_descriptor, new java.lang.String[] {}); + internal_static_google_cloud_netapp_v1_RestoreVolumeRequest_descriptor = + getDescriptor().getMessageType(33); + internal_static_google_cloud_netapp_v1_RestoreVolumeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_RestoreVolumeRequest_descriptor, + new java.lang.String[] { + "BackupSource", "OntapVolumeTarget", "Name", "Source", "Target", + }); + internal_static_google_cloud_netapp_v1_BackupSource_descriptor = + getDescriptor().getMessageType(34); + internal_static_google_cloud_netapp_v1_BackupSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_BackupSource_descriptor, + new java.lang.String[] { + "Backup", "FileList", + }); + internal_static_google_cloud_netapp_v1_OntapVolumeTarget_descriptor = + getDescriptor().getMessageType(35); + internal_static_google_cloud_netapp_v1_OntapVolumeTarget_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_OntapVolumeTarget_descriptor, + new java.lang.String[] { + "VolumeUuid", "RestoreDestinationPath", + }); + internal_static_google_cloud_netapp_v1_RestoreVolumeResponse_descriptor = + getDescriptor().getMessageType(36); + internal_static_google_cloud_netapp_v1_RestoreVolumeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_RestoreVolumeResponse_descriptor, + new java.lang.String[] {}); internal_static_google_cloud_netapp_v1_EstablishVolumePeeringRequest_descriptor = - getDescriptor().getMessageType(27); + getDescriptor().getMessageType(37); internal_static_google_cloud_netapp_v1_EstablishVolumePeeringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_EstablishVolumePeeringRequest_descriptor, new java.lang.String[] { "Name", "PeerClusterName", "PeerSvmName", "PeerIpAddresses", "PeerVolumeName", }); + internal_static_google_cloud_netapp_v1_UpdateBackupConfigRequest_descriptor = + getDescriptor().getMessageType(38); + internal_static_google_cloud_netapp_v1_UpdateBackupConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_UpdateBackupConfigRequest_descriptor, + new java.lang.String[] { + "Name", "VolumeUuid", "BackupConfig", "UpdateMask", + }); + internal_static_google_cloud_netapp_v1_UpdateBackupConfigResponse_descriptor = + getDescriptor().getMessageType(39); + internal_static_google_cloud_netapp_v1_UpdateBackupConfigResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_UpdateBackupConfigResponse_descriptor, + new java.lang.String[] { + "VolumeUuid", "BackupConfig", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.FieldInfoProto.getDescriptor(); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup.proto index 22f6dfd68bb7..1e1adc627f62 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup.proto @@ -99,10 +99,9 @@ message Backup { // policy. Type backup_type = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Volume full name of this backup belongs to. - // Either source_volume or ontap_source should be provided. - // Format: - // `projects/{projects_id}/locations/{location}/volumes/{volume_id}` + // The resource name of the volume that this backup belongs to. You must + // provide either `source_volume` or `ontap_source`. Format: + // `projects/{project_id}/locations/{location}/volumes/{volume_id}` string source_volume = 6 [ (google.api.resource_reference) = { type: "netapp.googleapis.com/Volume" } ]; @@ -153,6 +152,10 @@ message Backup { // Output only. The time until which the backup is not deletable. google.protobuf.Timestamp enforced_retention_end_time = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Represents source details for ONTAP backups. + // Either source_volume or ontap_source should be provided. + OntapSource ontap_source = 16 [(google.api.field_behavior) = OPTIONAL]; } // ListBackupsRequest lists backups. @@ -260,3 +263,22 @@ message UpdateBackupRequest { // Required. The backup being updated Backup backup = 2 [(google.api.field_behavior) = REQUIRED]; } + +// Represents ONTAP source details. +message OntapSource { + // Required. Name of the storage pool. This must be specified for creating + // backups for ONTAP mode volumes. Format: + // `projects/{projects_id}/locations/{location}/storagePools/{storage_pool_id}` + optional string storage_pool = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "netapp.googleapis.com/StoragePool" + } + ]; + + // Required. The UUID of the ONTAP source volume. + string volume_uuid = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The UUID of the ONTAP source snapshot. + string snapshot_uuid = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup_vault.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup_vault.proto index baa4232afee9..22bed722174d 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup_vault.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup_vault.proto @@ -140,10 +140,10 @@ message BackupVault { BackupVaultType backup_vault_type = 6 [(google.api.field_behavior) = OPTIONAL]; - // Output only. Region in which the backup vault is created. + // Optional. Region in which the backup vault is created. // Format: `projects/{project_id}/locations/{location}` string source_region = 7 [ - (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { type: "locations.googleapis.com/Location" } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/cloud_netapp_service.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/cloud_netapp_service.proto index 6d4beaa54356..32cbf7ff2c95 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/cloud_netapp_service.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/cloud_netapp_service.proto @@ -209,6 +209,32 @@ service NetApp { }; } + // Splits a clone volume from its source volume. + // This operation will only work for volumes which have clone_details + // set(clones). + // For volumes that are not clones, this operation will return an error. + rpc StartSplit(StartSplitRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/volumes/*}:startSplit" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Volume" + metadata_type: "OperationMetadata" + }; + } + + // Retrieves the current state, progress, and details of a split operation for + // a volume. This method is relevant when the volume is a clone. For volumes + // that are not clones, this method will return an error. + rpc GetSplitStatus(GetSplitStatusRequest) returns (SplitStatus) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/volumes/*}:getSplitStatus" + }; + option (google.api.method_signature) = "name"; + } + // Establish volume peering. This is used to establish cluster and svm // peerings between the GCNV and OnPrem clusters. rpc EstablishVolumePeering(EstablishVolumePeeringRequest) @@ -848,7 +874,7 @@ service NetApp { }; } - // `ExecuteOntapPost` dispatches the ONTAP `POST` request to the + // `ExecuteOntapPost` sends the ONTAP `POST` request to the // `StoragePool` cluster. rpc ExecuteOntapPost(ExecuteOntapPostRequest) returns (ExecuteOntapPostResponse) { @@ -858,7 +884,7 @@ service NetApp { }; } - // `ExecuteOntapGet` dispatches the ONTAP `GET` request to the + // `ExecuteOntapGet` sends the ONTAP `GET` request to the // `StoragePool` cluster. rpc ExecuteOntapGet(ExecuteOntapGetRequest) returns (ExecuteOntapGetResponse) { @@ -867,7 +893,7 @@ service NetApp { }; } - // `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the + // `ExecuteOntapDelete` sends the ONTAP `DELETE` request to the // `StoragePool` cluster. rpc ExecuteOntapDelete(ExecuteOntapDeleteRequest) returns (ExecuteOntapDeleteResponse) { @@ -876,7 +902,7 @@ service NetApp { }; } - // `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the + // `ExecuteOntapPatch` sends the ONTAP `PATCH` request to the // `StoragePool` cluster. rpc ExecuteOntapPatch(ExecuteOntapPatchRequest) returns (ExecuteOntapPatchResponse) { @@ -885,6 +911,45 @@ service NetApp { body: "*" }; } + + // Restores a backup to an ONTAP-mode volume. + rpc RestoreVolume(RestoreVolumeRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/storagePools/*}:restoreVolume" + body: "*" + }; + option (google.api.method_signature) = + "name,backup_source,ontap_volume_target"; + option (google.longrunning.operation_info) = { + response_type: "RestoreVolumeResponse" + metadata_type: "OperationMetadata" + }; + } + + // Lists backup configurations for all volumes in an ONTAP-mode Storage Pool. + rpc ListBackupConfigs(ListBackupConfigsRequest) + returns (ListBackupConfigsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/storagePools/*}/backupConfigs" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates the backup configuration for an ONTAP-mode volume. + rpc UpdateBackupConfig(UpdateBackupConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/storagePools/*}:updateBackupConfig" + body: "*" + }; + option (google.api.method_signature) = + "name,volume_uuid,backup_config,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "UpdateBackupConfigResponse" + metadata_type: "OperationMetadata" + }; + } } // Represents the metadata of the long-running operation. diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/common.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/common.proto index d73116f1b372..976c72e05f34 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/common.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/common.proto @@ -150,6 +150,15 @@ enum OsType { // Metadata for a given // [google.cloud.location.Location][google.cloud.location.Location]. message LocationMetadata { + // The flex performance tier of this location. + enum FlexPerformanceTier { + // Unspecified flex performance tier. + FLEX_PERFORMANCE_TIER_UNSPECIFIED = 0; + + // Flex performance tier is limited. + LIMITED = 1; + } + // Output only. Supported service levels in a location. repeated ServiceLevel supported_service_levels = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -163,6 +172,10 @@ message LocationMetadata { // Output only. Indicates if the location has ONTAP Proxy support. bool has_ontap_proxy = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates the flex performance tier of this location. + FlexPerformanceTier flex_performance_tier = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // UserCommands contains the commands to be executed by the customer. diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/kms.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/kms.proto index 05572278de48..af41958c4e37 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/kms.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/kms.proto @@ -28,6 +28,10 @@ option java_outer_classname = "KmsProto"; option java_package = "com.google.cloud.netapp.v1"; option php_namespace = "Google\\Cloud\\NetApp\\V1"; option ruby_package = "Google::Cloud::NetApp::V1"; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKey" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}" +}; option (google.api.resource_definition) = { type: "cloudkms.googleapis.com/CryptoKeyVersion" pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}" @@ -212,13 +216,18 @@ message KmsConfig { MIGRATING = 11; } - // Identifier. Name of the KmsConfig. + // Identifier. Name of the `KmsConfig`. // Format: `projects/{project}/locations/{location}/kmsConfigs/{kms_config}` string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. Customer-managed crypto key resource full name. Format: // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` - string crypto_key_name = 2 [(google.api.field_behavior) = REQUIRED]; + string crypto_key_name = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + } + ]; // Output only. State of the KmsConfig. State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/ontap.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/ontap.proto index 24470361718a..44f3f9df66c0 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/ontap.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/ontap.proto @@ -42,7 +42,7 @@ message ExecuteOntapPostRequest { // ``` google.protobuf.Struct body = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The resource path of the ONTAP resource. + // Required. The path of the ONTAP resource. // Format: // `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`. // For example: diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto index 6d7d0a090b73..2e67d6229863 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto @@ -319,8 +319,8 @@ message StoragePool { optional StoragePoolType type = 35 [(google.api.field_behavior) = OPTIONAL]; // Optional. Mode of the storage pool. This field is used to control whether - // the user can perform the ONTAP operations on the storage pool using the - // GCNV ONTAP Mode APIs. If not specified during creation, it defaults to + // the user can perform ONTAP operations on the storage pool using the GCNV + // ONTAP Mode APIs. If not specified during creation, it defaults to // `DEFAULT`. optional Mode mode = 36 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto index 8b90c83e5602..8c0b76b41b0d 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto @@ -47,6 +47,9 @@ enum Protocols { // ISCSI protocol ISCSI = 4; + + // NVMe protocol + NVME = 5; } // AccessType is an enum of all the supported access types for a volume. @@ -98,6 +101,21 @@ enum SMBSettings { CONTINUOUSLY_AVAILABLE = 9; } +// Enum to indicate the state of the clone in relation to the split process. +enum SplitState { + // State is not specified. + SPLIT_STATE_UNSPECIFIED = 0; + + // The volume is a thin clone, sharing blocks with its source. + SPLIT_STATE_NOT_SPLITTING = 1; + + // A split operation is currently active and in progress. + SPLIT_STATE_IN_PROGRESS = 2; + + // The attempt to split the volume failed. + SPLIT_STATE_FAILED = 3; +} + // The security style of the volume, can be either UNIX or NTFS. enum SecurityStyle { // SecurityStyle is unspecified @@ -155,6 +173,57 @@ message ListVolumesResponse { repeated string unreachable = 3; } +// Message for requesting list of BackupConfigs in a StoragePool. +message ListBackupConfigsRequest { + // Required. The ONTAP StoragePool for which to retrieve backup configuration + // information, in the format + // `projects/{project}/locations/{location}/storagePools/{storage_pool}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "netapp.googleapis.com/StoragePool" + } + ]; + + // Optional. The maximum number of items to return. The service may return + // fewer than this value. The maximum value is 1000; values above 1000 will be + // coerced to 1000. If unspecified or set to 0, a default of 50 will be used. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The next_page_token value to use if there are additional + // results to retrieve for this list request. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sort results. Supported values are "volume_id" or "" + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The standard list filter. + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing BackupConfigs in an ONTAP StoragePool. +message ListBackupConfigsResponse { + // A list of backup configurations for volumes in the pool. + repeated VolumeBackupConfig volume_backup_configs = 1; + + // The token you can use to retrieve the next page of results. Not returned + // if there are no more results in the list. + string next_page_token = 2; + + // Unordered list. Locations that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + +// Backup configuration for a volume in a pool. +message VolumeBackupConfig { + // Provides the Ontap UUID of the volume within the pool. + string volume_uuid = 1; + + // Backup configuration for the volume. + BackupConfig backup_config = 2; +} + // Message for getting a Volume message GetVolumeRequest { // Required. Name of the volume @@ -227,6 +296,41 @@ message RevertVolumeRequest { string snapshot_id = 2 [(google.api.field_behavior) = REQUIRED]; } +// Request message for splitting a volume. +message StartSplitRequest { + // Required. The full name of the clone volume to be split from its source. + // Format: projects/{project_number}/locations/{location}/volumes/{volume_id} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "netapp.googleapis.com/Volume" } + ]; +} + +// Request message for GetSplitStatus. +message GetSplitStatusRequest { + // Required. The full name of the volume. + // Format: projects/{project_number}/locations/{location}/volumes/{volume_id} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "netapp.googleapis.com/Volume" } + ]; +} + +// Message for SplitStatus. +message SplitStatus { + // Output only. The current state of the clone split operation. + SplitState split_state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable details about the current state. Mostly used + // for displaying error messages during split failure Examples: "Split in + // progress", "Error: insufficient capacity". + string state_details = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The estimated progress percentage of the split operation + // (0-100). This is meaningful primarily when split_state is IN_PROGRESS. + int32 progress_percent = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Volume provides a filesystem that you can mount. message Volume { option (google.api.resource) = { @@ -259,6 +363,9 @@ message Volume { // Output only. Shared space in GiB. Determined at volume creation time // based on size of source snapshot. int64 shared_space_gib = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the clone split operation. + SplitState split_state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } // The volume states @@ -480,7 +587,7 @@ message Volume { } // Configuration for a Large Capacity Volume. A Large Capacity Volume -// supports sizes ranging from 4.8 TiB to 20 PiB, it is composed of multiple +// supports sizes ranging from 4.8 TiB to 20 PiB; it is composed of multiple // internal constituents, and must be created in a large capacity pool. message LargeCapacityConfig { // Optional. The number of internal constituents (e.g., FlexVols) for this @@ -683,7 +790,7 @@ message RestoreParameters { // Full name of the backup resource. // Format for standard backup: - // projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id} + // projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}. // Format for BackupDR backup: // projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup} string source_backup = 2 [ @@ -1013,6 +1120,56 @@ message RestoreBackupFilesRequest { // RestoreBackupFilesResponse is the result of RestoreBackupFilesRequest. message RestoreBackupFilesResponse {} +// Request message for `RestoreVolume` API. +message RestoreVolumeRequest { + // The source of the restore operation. + oneof source { + // The backup source of the restore operation. + BackupSource backup_source = 2; + } + + // The target of the restore operation. + oneof target { + // The ONTAP volume target of the restore operation. + OntapVolumeTarget ontap_volume_target = 3; + } + + // Required. The resource name of the ONTAP mode storage pool, in the format + // of `projects/{project}/locations/{location}/storagePools/{storage_pool}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "netapp.googleapis.com/StoragePool" + } + ]; +} + +// Represents the backup source of the restore operation. +message BackupSource { + // Required. The backup resource name. + string backup = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "netapp.googleapis.com/Backup" } + ]; + + // Optional. List of files to be restored in the form of their absolute path + // as in source volume. If provided, only these files will be restored. If not + // provided, the entire backup will be restored (Full Backup Restore) + repeated string file_list = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents the ONTAP volume target of the restore operation. +message OntapVolumeTarget { + // Required. The UUID of the ONTAP volume to restore to. + string volume_uuid = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Absolute directory path in the destination volume. + string restore_destination_path = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for `RestoreVolume` API. +message RestoreVolumeResponse {} + // EstablishVolumePeeringRequest establishes cluster and svm peerings between // the source and destination clusters. message EstablishVolumePeeringRequest { @@ -1031,7 +1188,7 @@ message EstablishVolumePeeringRequest { // destination vserver svm. string peer_svm_name = 3 [(google.api.field_behavior) = REQUIRED]; - // Optional. List of IPv4 ip addresses to be used for peering. + // Optional. List of IPv4 IP addresses to be used for peering. repeated string peer_ip_addresses = 4 [(google.api.field_behavior) = OPTIONAL]; @@ -1039,3 +1196,37 @@ message EstablishVolumePeeringRequest { // destination volume. string peer_volume_name = 5 [(google.api.field_behavior) = REQUIRED]; } + +// Request message for UpdateBackupConfig +message UpdateBackupConfigRequest { + // Required. The resource name of the StoragePool, in the format: + // projects/{projectNumber}/locations/{locationId}/storagePools/{poolId} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "netapp.googleapis.com/StoragePool" + } + ]; + + // Required. The UUID of the ONTAP-mode volume. + string volume_uuid = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Backup configuration to apply. + BackupConfig backup_config = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Field mask is used to specify the fields to be overwritten in the + // BackupConfig for the Volume. + // 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. + google.protobuf.FieldMask update_mask = 4 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for UpdateBackupConfig +message UpdateBackupConfigResponse { + // The UUID of the ONTAP-mode volume. + string volume_uuid = 1; + + // The updated Backup configuration for the volume. + BackupConfig backup_config = 2; +} diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/getsplitstatus/AsyncGetSplitStatus.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/getsplitstatus/AsyncGetSplitStatus.java new file mode 100644 index 000000000000..5651d9c308fb --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/getsplitstatus/AsyncGetSplitStatus.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_GetSplitStatus_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.netapp.v1.GetSplitStatusRequest; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.SplitStatus; +import com.google.cloud.netapp.v1.VolumeName; + +public class AsyncGetSplitStatus { + + public static void main(String[] args) throws Exception { + asyncGetSplitStatus(); + } + + public static void asyncGetSplitStatus() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + GetSplitStatusRequest request = + GetSplitStatusRequest.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .build(); + ApiFuture future = netAppClient.getSplitStatusCallable().futureCall(request); + // Do something. + SplitStatus response = future.get(); + } + } +} +// [END netapp_v1_generated_NetApp_GetSplitStatus_async] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/getsplitstatus/SyncGetSplitStatus.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/getsplitstatus/SyncGetSplitStatus.java new file mode 100644 index 000000000000..4fe5b7544d61 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/getsplitstatus/SyncGetSplitStatus.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_GetSplitStatus_sync] +import com.google.cloud.netapp.v1.GetSplitStatusRequest; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.SplitStatus; +import com.google.cloud.netapp.v1.VolumeName; + +public class SyncGetSplitStatus { + + public static void main(String[] args) throws Exception { + syncGetSplitStatus(); + } + + public static void syncGetSplitStatus() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + GetSplitStatusRequest request = + GetSplitStatusRequest.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .build(); + SplitStatus response = netAppClient.getSplitStatus(request); + } + } +} +// [END netapp_v1_generated_NetApp_GetSplitStatus_sync] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/getsplitstatus/SyncGetSplitStatusString.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/getsplitstatus/SyncGetSplitStatusString.java new file mode 100644 index 000000000000..10a25dadd984 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/getsplitstatus/SyncGetSplitStatusString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_GetSplitStatus_String_sync] +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.SplitStatus; +import com.google.cloud.netapp.v1.VolumeName; + +public class SyncGetSplitStatusString { + + public static void main(String[] args) throws Exception { + syncGetSplitStatusString(); + } + + public static void syncGetSplitStatusString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + String name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString(); + SplitStatus response = netAppClient.getSplitStatus(name); + } + } +} +// [END netapp_v1_generated_NetApp_GetSplitStatus_String_sync] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/getsplitstatus/SyncGetSplitStatusVolumename.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/getsplitstatus/SyncGetSplitStatusVolumename.java new file mode 100644 index 000000000000..12d719894fa7 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/getsplitstatus/SyncGetSplitStatusVolumename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_GetSplitStatus_Volumename_sync] +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.SplitStatus; +import com.google.cloud.netapp.v1.VolumeName; + +public class SyncGetSplitStatusVolumename { + + public static void main(String[] args) throws Exception { + syncGetSplitStatusVolumename(); + } + + public static void syncGetSplitStatusVolumename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + VolumeName name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + SplitStatus response = netAppClient.getSplitStatus(name); + } + } +} +// [END netapp_v1_generated_NetApp_GetSplitStatus_Volumename_sync] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/listbackupconfigs/AsyncListBackupConfigs.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/listbackupconfigs/AsyncListBackupConfigs.java new file mode 100644 index 000000000000..e582559f9504 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/listbackupconfigs/AsyncListBackupConfigs.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_ListBackupConfigs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.netapp.v1.ListBackupConfigsRequest; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.StoragePoolName; +import com.google.cloud.netapp.v1.VolumeBackupConfig; + +public class AsyncListBackupConfigs { + + public static void main(String[] args) throws Exception { + asyncListBackupConfigs(); + } + + public static void asyncListBackupConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + ListBackupConfigsRequest request = + ListBackupConfigsRequest.newBuilder() + .setParent(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + netAppClient.listBackupConfigsPagedCallable().futureCall(request); + // Do something. + for (VolumeBackupConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END netapp_v1_generated_NetApp_ListBackupConfigs_async] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/listbackupconfigs/AsyncListBackupConfigsPaged.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/listbackupconfigs/AsyncListBackupConfigsPaged.java new file mode 100644 index 000000000000..f23dcc384d1f --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/listbackupconfigs/AsyncListBackupConfigsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_ListBackupConfigs_Paged_async] +import com.google.cloud.netapp.v1.ListBackupConfigsRequest; +import com.google.cloud.netapp.v1.ListBackupConfigsResponse; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.StoragePoolName; +import com.google.cloud.netapp.v1.VolumeBackupConfig; +import com.google.common.base.Strings; + +public class AsyncListBackupConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncListBackupConfigsPaged(); + } + + public static void asyncListBackupConfigsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + ListBackupConfigsRequest request = + ListBackupConfigsRequest.newBuilder() + .setParent(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListBackupConfigsResponse response = netAppClient.listBackupConfigsCallable().call(request); + for (VolumeBackupConfig element : response.getVolumeBackupConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END netapp_v1_generated_NetApp_ListBackupConfigs_Paged_async] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/listbackupconfigs/SyncListBackupConfigs.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/listbackupconfigs/SyncListBackupConfigs.java new file mode 100644 index 000000000000..3d18cf70bf7a --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/listbackupconfigs/SyncListBackupConfigs.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_ListBackupConfigs_sync] +import com.google.cloud.netapp.v1.ListBackupConfigsRequest; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.StoragePoolName; +import com.google.cloud.netapp.v1.VolumeBackupConfig; + +public class SyncListBackupConfigs { + + public static void main(String[] args) throws Exception { + syncListBackupConfigs(); + } + + public static void syncListBackupConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + ListBackupConfigsRequest request = + ListBackupConfigsRequest.newBuilder() + .setParent(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + for (VolumeBackupConfig element : netAppClient.listBackupConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END netapp_v1_generated_NetApp_ListBackupConfigs_sync] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/listbackupconfigs/SyncListBackupConfigsStoragepoolname.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/listbackupconfigs/SyncListBackupConfigsStoragepoolname.java new file mode 100644 index 000000000000..259db0efe880 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/listbackupconfigs/SyncListBackupConfigsStoragepoolname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_ListBackupConfigs_Storagepoolname_sync] +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.StoragePoolName; +import com.google.cloud.netapp.v1.VolumeBackupConfig; + +public class SyncListBackupConfigsStoragepoolname { + + public static void main(String[] args) throws Exception { + syncListBackupConfigsStoragepoolname(); + } + + public static void syncListBackupConfigsStoragepoolname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + StoragePoolName parent = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"); + for (VolumeBackupConfig element : netAppClient.listBackupConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END netapp_v1_generated_NetApp_ListBackupConfigs_Storagepoolname_sync] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/listbackupconfigs/SyncListBackupConfigsString.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/listbackupconfigs/SyncListBackupConfigsString.java new file mode 100644 index 000000000000..fa8b88079ad3 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/listbackupconfigs/SyncListBackupConfigsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_ListBackupConfigs_String_sync] +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.StoragePoolName; +import com.google.cloud.netapp.v1.VolumeBackupConfig; + +public class SyncListBackupConfigsString { + + public static void main(String[] args) throws Exception { + syncListBackupConfigsString(); + } + + public static void syncListBackupConfigsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + String parent = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString(); + for (VolumeBackupConfig element : netAppClient.listBackupConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END netapp_v1_generated_NetApp_ListBackupConfigs_String_sync] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/restorevolume/AsyncRestoreVolume.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/restorevolume/AsyncRestoreVolume.java new file mode 100644 index 000000000000..0f031669346f --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/restorevolume/AsyncRestoreVolume.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_RestoreVolume_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.RestoreVolumeRequest; +import com.google.cloud.netapp.v1.StoragePoolName; +import com.google.longrunning.Operation; + +public class AsyncRestoreVolume { + + public static void main(String[] args) throws Exception { + asyncRestoreVolume(); + } + + public static void asyncRestoreVolume() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + RestoreVolumeRequest request = + RestoreVolumeRequest.newBuilder() + .setName(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString()) + .build(); + ApiFuture future = netAppClient.restoreVolumeCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END netapp_v1_generated_NetApp_RestoreVolume_async] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/restorevolume/AsyncRestoreVolumeLRO.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/restorevolume/AsyncRestoreVolumeLRO.java new file mode 100644 index 000000000000..6bd258fdc5d6 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/restorevolume/AsyncRestoreVolumeLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_RestoreVolume_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.OperationMetadata; +import com.google.cloud.netapp.v1.RestoreVolumeRequest; +import com.google.cloud.netapp.v1.RestoreVolumeResponse; +import com.google.cloud.netapp.v1.StoragePoolName; + +public class AsyncRestoreVolumeLRO { + + public static void main(String[] args) throws Exception { + asyncRestoreVolumeLRO(); + } + + public static void asyncRestoreVolumeLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + RestoreVolumeRequest request = + RestoreVolumeRequest.newBuilder() + .setName(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString()) + .build(); + OperationFuture future = + netAppClient.restoreVolumeOperationCallable().futureCall(request); + // Do something. + RestoreVolumeResponse response = future.get(); + } + } +} +// [END netapp_v1_generated_NetApp_RestoreVolume_LRO_async] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/restorevolume/SyncRestoreVolume.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/restorevolume/SyncRestoreVolume.java new file mode 100644 index 000000000000..84edc3ba5a91 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/restorevolume/SyncRestoreVolume.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_RestoreVolume_sync] +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.RestoreVolumeRequest; +import com.google.cloud.netapp.v1.RestoreVolumeResponse; +import com.google.cloud.netapp.v1.StoragePoolName; + +public class SyncRestoreVolume { + + public static void main(String[] args) throws Exception { + syncRestoreVolume(); + } + + public static void syncRestoreVolume() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + RestoreVolumeRequest request = + RestoreVolumeRequest.newBuilder() + .setName(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString()) + .build(); + RestoreVolumeResponse response = netAppClient.restoreVolumeAsync(request).get(); + } + } +} +// [END netapp_v1_generated_NetApp_RestoreVolume_sync] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/restorevolume/SyncRestoreVolumeStoragepoolnameBackupsourceOntapvolumetarget.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/restorevolume/SyncRestoreVolumeStoragepoolnameBackupsourceOntapvolumetarget.java new file mode 100644 index 000000000000..4c7fcbbe88f3 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/restorevolume/SyncRestoreVolumeStoragepoolnameBackupsourceOntapvolumetarget.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_RestoreVolume_StoragepoolnameBackupsourceOntapvolumetarget_sync] +import com.google.cloud.netapp.v1.BackupSource; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.OntapVolumeTarget; +import com.google.cloud.netapp.v1.RestoreVolumeResponse; +import com.google.cloud.netapp.v1.StoragePoolName; + +public class SyncRestoreVolumeStoragepoolnameBackupsourceOntapvolumetarget { + + public static void main(String[] args) throws Exception { + syncRestoreVolumeStoragepoolnameBackupsourceOntapvolumetarget(); + } + + public static void syncRestoreVolumeStoragepoolnameBackupsourceOntapvolumetarget() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + StoragePoolName name = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"); + BackupSource backupSource = BackupSource.newBuilder().build(); + OntapVolumeTarget ontapVolumeTarget = OntapVolumeTarget.newBuilder().build(); + RestoreVolumeResponse response = + netAppClient.restoreVolumeAsync(name, backupSource, ontapVolumeTarget).get(); + } + } +} +// [END netapp_v1_generated_NetApp_RestoreVolume_StoragepoolnameBackupsourceOntapvolumetarget_sync] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/restorevolume/SyncRestoreVolumeStringBackupsourceOntapvolumetarget.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/restorevolume/SyncRestoreVolumeStringBackupsourceOntapvolumetarget.java new file mode 100644 index 000000000000..9a60f311ca5f --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/restorevolume/SyncRestoreVolumeStringBackupsourceOntapvolumetarget.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_RestoreVolume_StringBackupsourceOntapvolumetarget_sync] +import com.google.cloud.netapp.v1.BackupSource; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.OntapVolumeTarget; +import com.google.cloud.netapp.v1.RestoreVolumeResponse; +import com.google.cloud.netapp.v1.StoragePoolName; + +public class SyncRestoreVolumeStringBackupsourceOntapvolumetarget { + + public static void main(String[] args) throws Exception { + syncRestoreVolumeStringBackupsourceOntapvolumetarget(); + } + + public static void syncRestoreVolumeStringBackupsourceOntapvolumetarget() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + String name = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString(); + BackupSource backupSource = BackupSource.newBuilder().build(); + OntapVolumeTarget ontapVolumeTarget = OntapVolumeTarget.newBuilder().build(); + RestoreVolumeResponse response = + netAppClient.restoreVolumeAsync(name, backupSource, ontapVolumeTarget).get(); + } + } +} +// [END netapp_v1_generated_NetApp_RestoreVolume_StringBackupsourceOntapvolumetarget_sync] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/startsplit/AsyncStartSplit.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/startsplit/AsyncStartSplit.java new file mode 100644 index 000000000000..587770b23068 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/startsplit/AsyncStartSplit.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_StartSplit_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.StartSplitRequest; +import com.google.cloud.netapp.v1.VolumeName; +import com.google.longrunning.Operation; + +public class AsyncStartSplit { + + public static void main(String[] args) throws Exception { + asyncStartSplit(); + } + + public static void asyncStartSplit() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + StartSplitRequest request = + StartSplitRequest.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .build(); + ApiFuture future = netAppClient.startSplitCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END netapp_v1_generated_NetApp_StartSplit_async] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/startsplit/AsyncStartSplitLRO.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/startsplit/AsyncStartSplitLRO.java new file mode 100644 index 000000000000..f636e733c4d7 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/startsplit/AsyncStartSplitLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_StartSplit_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.OperationMetadata; +import com.google.cloud.netapp.v1.StartSplitRequest; +import com.google.cloud.netapp.v1.Volume; +import com.google.cloud.netapp.v1.VolumeName; + +public class AsyncStartSplitLRO { + + public static void main(String[] args) throws Exception { + asyncStartSplitLRO(); + } + + public static void asyncStartSplitLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + StartSplitRequest request = + StartSplitRequest.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .build(); + OperationFuture future = + netAppClient.startSplitOperationCallable().futureCall(request); + // Do something. + Volume response = future.get(); + } + } +} +// [END netapp_v1_generated_NetApp_StartSplit_LRO_async] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/startsplit/SyncStartSplit.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/startsplit/SyncStartSplit.java new file mode 100644 index 000000000000..4ad67d8fbc1c --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/startsplit/SyncStartSplit.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_StartSplit_sync] +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.StartSplitRequest; +import com.google.cloud.netapp.v1.Volume; +import com.google.cloud.netapp.v1.VolumeName; + +public class SyncStartSplit { + + public static void main(String[] args) throws Exception { + syncStartSplit(); + } + + public static void syncStartSplit() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + StartSplitRequest request = + StartSplitRequest.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .build(); + Volume response = netAppClient.startSplitAsync(request).get(); + } + } +} +// [END netapp_v1_generated_NetApp_StartSplit_sync] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/startsplit/SyncStartSplitString.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/startsplit/SyncStartSplitString.java new file mode 100644 index 000000000000..2a2e4c436d52 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/startsplit/SyncStartSplitString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_StartSplit_String_sync] +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.Volume; +import com.google.cloud.netapp.v1.VolumeName; + +public class SyncStartSplitString { + + public static void main(String[] args) throws Exception { + syncStartSplitString(); + } + + public static void syncStartSplitString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + String name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString(); + Volume response = netAppClient.startSplitAsync(name).get(); + } + } +} +// [END netapp_v1_generated_NetApp_StartSplit_String_sync] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/startsplit/SyncStartSplitVolumename.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/startsplit/SyncStartSplitVolumename.java new file mode 100644 index 000000000000..07f1c92bc73c --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/startsplit/SyncStartSplitVolumename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_StartSplit_Volumename_sync] +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.Volume; +import com.google.cloud.netapp.v1.VolumeName; + +public class SyncStartSplitVolumename { + + public static void main(String[] args) throws Exception { + syncStartSplitVolumename(); + } + + public static void syncStartSplitVolumename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + VolumeName name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + Volume response = netAppClient.startSplitAsync(name).get(); + } + } +} +// [END netapp_v1_generated_NetApp_StartSplit_Volumename_sync] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/updatebackupconfig/AsyncUpdateBackupConfig.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/updatebackupconfig/AsyncUpdateBackupConfig.java new file mode 100644 index 000000000000..7c7c42ce443c --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/updatebackupconfig/AsyncUpdateBackupConfig.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_UpdateBackupConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.netapp.v1.BackupConfig; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.StoragePoolName; +import com.google.cloud.netapp.v1.UpdateBackupConfigRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateBackupConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateBackupConfig(); + } + + public static void asyncUpdateBackupConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + UpdateBackupConfigRequest request = + UpdateBackupConfigRequest.newBuilder() + .setName(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString()) + .setVolumeUuid("volumeUuid-1552535051") + .setBackupConfig(BackupConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = netAppClient.updateBackupConfigCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END netapp_v1_generated_NetApp_UpdateBackupConfig_async] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/updatebackupconfig/AsyncUpdateBackupConfigLRO.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/updatebackupconfig/AsyncUpdateBackupConfigLRO.java new file mode 100644 index 000000000000..db7a8391f6b0 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/updatebackupconfig/AsyncUpdateBackupConfigLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_UpdateBackupConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.netapp.v1.BackupConfig; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.OperationMetadata; +import com.google.cloud.netapp.v1.StoragePoolName; +import com.google.cloud.netapp.v1.UpdateBackupConfigRequest; +import com.google.cloud.netapp.v1.UpdateBackupConfigResponse; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateBackupConfigLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateBackupConfigLRO(); + } + + public static void asyncUpdateBackupConfigLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + UpdateBackupConfigRequest request = + UpdateBackupConfigRequest.newBuilder() + .setName(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString()) + .setVolumeUuid("volumeUuid-1552535051") + .setBackupConfig(BackupConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + netAppClient.updateBackupConfigOperationCallable().futureCall(request); + // Do something. + UpdateBackupConfigResponse response = future.get(); + } + } +} +// [END netapp_v1_generated_NetApp_UpdateBackupConfig_LRO_async] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/updatebackupconfig/SyncUpdateBackupConfig.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/updatebackupconfig/SyncUpdateBackupConfig.java new file mode 100644 index 000000000000..25d68f4cb633 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/updatebackupconfig/SyncUpdateBackupConfig.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_UpdateBackupConfig_sync] +import com.google.cloud.netapp.v1.BackupConfig; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.StoragePoolName; +import com.google.cloud.netapp.v1.UpdateBackupConfigRequest; +import com.google.cloud.netapp.v1.UpdateBackupConfigResponse; +import com.google.protobuf.FieldMask; + +public class SyncUpdateBackupConfig { + + public static void main(String[] args) throws Exception { + syncUpdateBackupConfig(); + } + + public static void syncUpdateBackupConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + UpdateBackupConfigRequest request = + UpdateBackupConfigRequest.newBuilder() + .setName(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString()) + .setVolumeUuid("volumeUuid-1552535051") + .setBackupConfig(BackupConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + UpdateBackupConfigResponse response = netAppClient.updateBackupConfigAsync(request).get(); + } + } +} +// [END netapp_v1_generated_NetApp_UpdateBackupConfig_sync] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/updatebackupconfig/SyncUpdateBackupConfigStoragepoolnameStringBackupconfigFieldmask.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/updatebackupconfig/SyncUpdateBackupConfigStoragepoolnameStringBackupconfigFieldmask.java new file mode 100644 index 000000000000..bba8fd6d97e5 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/updatebackupconfig/SyncUpdateBackupConfigStoragepoolnameStringBackupconfigFieldmask.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_UpdateBackupConfig_StoragepoolnameStringBackupconfigFieldmask_sync] +import com.google.cloud.netapp.v1.BackupConfig; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.StoragePoolName; +import com.google.cloud.netapp.v1.UpdateBackupConfigResponse; +import com.google.protobuf.FieldMask; + +public class SyncUpdateBackupConfigStoragepoolnameStringBackupconfigFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateBackupConfigStoragepoolnameStringBackupconfigFieldmask(); + } + + public static void syncUpdateBackupConfigStoragepoolnameStringBackupconfigFieldmask() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + StoragePoolName name = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"); + String volumeUuid = "volumeUuid-1552535051"; + BackupConfig backupConfig = BackupConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + UpdateBackupConfigResponse response = + netAppClient.updateBackupConfigAsync(name, volumeUuid, backupConfig, updateMask).get(); + } + } +} +// [END netapp_v1_generated_NetApp_UpdateBackupConfig_StoragepoolnameStringBackupconfigFieldmask_sync] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/updatebackupconfig/SyncUpdateBackupConfigStringStringBackupconfigFieldmask.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/updatebackupconfig/SyncUpdateBackupConfigStringStringBackupconfigFieldmask.java new file mode 100644 index 000000000000..138f37302f0c --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/updatebackupconfig/SyncUpdateBackupConfigStringStringBackupconfigFieldmask.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_UpdateBackupConfig_StringStringBackupconfigFieldmask_sync] +import com.google.cloud.netapp.v1.BackupConfig; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.StoragePoolName; +import com.google.cloud.netapp.v1.UpdateBackupConfigResponse; +import com.google.protobuf.FieldMask; + +public class SyncUpdateBackupConfigStringStringBackupconfigFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateBackupConfigStringStringBackupconfigFieldmask(); + } + + public static void syncUpdateBackupConfigStringStringBackupconfigFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + String name = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString(); + String volumeUuid = "volumeUuid-1552535051"; + BackupConfig backupConfig = BackupConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + UpdateBackupConfigResponse response = + netAppClient.updateBackupConfigAsync(name, volumeUuid, backupConfig, updateMask).get(); + } + } +} +// [END netapp_v1_generated_NetApp_UpdateBackupConfig_StringStringBackupconfigFieldmask_sync] diff --git a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json index 0432d5932ac1..106f086e974d 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json +++ b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json @@ -1745,6 +1745,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.BigtableConfig$ColumnFamilyMapping", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.BigtableConfig$ColumnFamilyMapping$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.BigtableConfig$ColumnFamilyMapping$DelimitedKey", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.BigtableConfig$ColumnFamilyMapping$DelimitedKey$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.BigtableConfig$ColumnFamilyMapping$RowKeySchema", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.BigtableConfig$ColumnFamilyMapping$RowKeySchema$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.BigtableConfig$State", "queryAllDeclaredConstructors": true, diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigtableConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigtableConfig.java index 4dcd31dfe57f..d506904a549d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigtableConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigtableConfig.java @@ -24,13 +24,9 @@ * * *
          - * Configuration for a Bigtable subscription. The Pub/Sub message will be
          - * written to a Bigtable row as follows:
          - * - row key: subscription name, message ID hash, and message ID delimited by
          - * `#`.
          - * - columns: message bytes written to a single column family `data` with an
          - * empty-string column qualifier.
          - * - cell timestamp: the message publish timestamp.
          + * Configuration for a Bigtable subscription, which will write a Pub/Sub message
          + * to a Bigtable row. See the ColumnFamilyMapping documentation below for
          + * details on how the row keys and columns will be written.
            * 
          * * Protobuf type {@code google.pubsub.v1.BigtableConfig} @@ -386,6 +382,2788 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.pubsub.v1.BigtableConfig.State) } + public interface ColumnFamilyMappingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.BigtableConfig.ColumnFamilyMapping) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +     * Optional. If set, the row key is constructed from the field names of
          +     * the table's structured row key
          +     * ({$universe.dns_names.final_documentation_domain}/bigtable/docs/manage-row-key-schemas).
          +     * Note that if the field is nullable in the structured row key, then it
          +     * need not be present in the message; null will be used instead.
          +     * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema row_key_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rowKeySchema field is set. + */ + boolean hasRowKeySchema(); + + /** + * + * + *
          +     * Optional. If set, the row key is constructed from the field names of
          +     * the table's structured row key
          +     * ({$universe.dns_names.final_documentation_domain}/bigtable/docs/manage-row-key-schemas).
          +     * Note that if the field is nullable in the structured row key, then it
          +     * need not be present in the message; null will be used instead.
          +     * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema row_key_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rowKeySchema. + */ + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema getRowKeySchema(); + + /** + * + * + *
          +     * Optional. If set, the row key is constructed from the field names of
          +     * the table's structured row key
          +     * ({$universe.dns_names.final_documentation_domain}/bigtable/docs/manage-row-key-schemas).
          +     * Note that if the field is nullable in the structured row key, then it
          +     * need not be present in the message; null will be used instead.
          +     * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema row_key_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchemaOrBuilder + getRowKeySchemaOrBuilder(); + + /** + * + * + *
          +     * Optional. If set, the row key is constructed from the given key fields
          +     * and delimiter. All key fields must be present in the message;
          +     * otherwise, the message remains in the subscription backlog.
          +     * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey delimited_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the delimitedKey field is set. + */ + boolean hasDelimitedKey(); + + /** + * + * + *
          +     * Optional. If set, the row key is constructed from the given key fields
          +     * and delimiter. All key fields must be present in the message;
          +     * otherwise, the message remains in the subscription backlog.
          +     * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey delimited_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The delimitedKey. + */ + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey getDelimitedKey(); + + /** + * + * + *
          +     * Optional. If set, the row key is constructed from the given key fields
          +     * and delimiter. All key fields must be present in the message;
          +     * otherwise, the message remains in the subscription backlog.
          +     * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey delimited_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKeyOrBuilder + getDelimitedKeyOrBuilder(); + + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.KeyDefinitionCase + getKeyDefinitionCase(); + } + + /** + * + * + *
          +   * Configuration for writing a Pub/Sub message to a Bigtable row with a
          +   * user-defined key and writing to column families.
          +   *
          +   * If this field is set:
          +   *
          +   * - The subscription messages must be formatted as JSON.
          +   * - The row key mapping is configured in the `key_definition` section.
          +   * - The top-level fields will be written either:
          +   * - By default, they will be written to the `data` column family with the
          +   * field name as the column qualifier.
          +   * - But if the field name matches an existing column family (except for
          +   * the default `data` column), then that field will be written to that
          +   * column family, either as a scalar or its next level nested fields if
          +   * it's a JSON object.
          +   * - The cell timestamp will be the message publish timestamp.
          +   *
          +   * If the field is not set, the default behavior is to write:
          +   *
          +   * - row key: subscription name, message ID hash, and message ID delimited by
          +   * `#`.
          +   * - columns: message bytes written to a single column family `data` with an
          +   * empty-string column qualifier.
          +   * - cell timestamp: the message publish timestamp.
          +   * 
          + * + * Protobuf type {@code google.pubsub.v1.BigtableConfig.ColumnFamilyMapping} + */ + public static final class ColumnFamilyMapping extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.BigtableConfig.ColumnFamilyMapping) + ColumnFamilyMappingOrBuilder { + 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= */ "", + "ColumnFamilyMapping"); + } + + // Use ColumnFamilyMapping.newBuilder() to construct. + private ColumnFamilyMapping(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ColumnFamilyMapping() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.class, + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.Builder.class); + } + + public interface RowKeySchemaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema) + com.google.protobuf.MessageOrBuilder {} + + /** + * + * + *
          +     * Row key definition that reads the input message fields based on the field
          +     * names of the table's structured row key
          +     * ({$universe.dns_names.final_documentation_domain}/bigtable/docs/manage-row-key-schemas).
          +     * Note that if the field is nullable in the structured row key, then it
          +     * need not be present in the message; null will be used instead.
          +     * 
          + * + * Protobuf type {@code google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema} + */ + public static final class RowKeySchema extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema) + RowKeySchemaOrBuilder { + 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= */ "", + "RowKeySchema"); + } + + // Use RowKeySchema.newBuilder() to construct. + private RowKeySchema(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RowKeySchema() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_RowKeySchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_RowKeySchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema.class, + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema)) { + return super.equals(obj); + } + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema other = + (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema) obj; + + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema 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.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema 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.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema + 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.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema 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.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema 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; + } + + /** + * + * + *
          +       * Row key definition that reads the input message fields based on the field
          +       * names of the table's structured row key
          +       * ({$universe.dns_names.final_documentation_domain}/bigtable/docs/manage-row-key-schemas).
          +       * Note that if the field is nullable in the structured row key, then it
          +       * need not be present in the message; null will be used instead.
          +       * 
          + * + * Protobuf type {@code google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema) + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchemaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_RowKeySchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_RowKeySchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema.class, + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema.Builder + .class); + } + + // Construct using + // com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_RowKeySchema_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema + getDefaultInstanceForType() { + return com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema build() { + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema buildPartial() { + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema result = + new com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema) { + return mergeFrom( + (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema other) { + if (other + == com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema + .getDefaultInstance()) return this; + 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; + 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; + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema) + private static final com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema(); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RowKeySchema 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.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DelimitedKeyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +       * Required. The key fields to construct from the row key. The fields must
          +       * be present in the message as a top-level field, i.e. JSON path
          +       * expressions will not traverse into nested objects.
          +       * 
          + * + * repeated string key_fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the keyFields. + */ + java.util.List getKeyFieldsList(); + + /** + * + * + *
          +       * Required. The key fields to construct from the row key. The fields must
          +       * be present in the message as a top-level field, i.e. JSON path
          +       * expressions will not traverse into nested objects.
          +       * 
          + * + * repeated string key_fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of keyFields. + */ + int getKeyFieldsCount(); + + /** + * + * + *
          +       * Required. The key fields to construct from the row key. The fields must
          +       * be present in the message as a top-level field, i.e. JSON path
          +       * expressions will not traverse into nested objects.
          +       * 
          + * + * repeated string key_fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The keyFields at the given index. + */ + java.lang.String getKeyFields(int index); + + /** + * + * + *
          +       * Required. The key fields to construct from the row key. The fields must
          +       * be present in the message as a top-level field, i.e. JSON path
          +       * expressions will not traverse into nested objects.
          +       * 
          + * + * repeated string key_fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the keyFields at the given index. + */ + com.google.protobuf.ByteString getKeyFieldsBytes(int index); + + /** + * + * + *
          +       * Optional. Byte sequence used to delimit concatenated fields. Must be
          +       * specified if multiple key fields are used. The delimiter must contain
          +       * at least 1 character and at most 50 characters.
          +       * 
          + * + * bytes delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The delimiter. + */ + com.google.protobuf.ByteString getDelimiter(); + } + + /** + * + * + *
          +     * Row key definition based on fields from the message.
          +     * 
          + * + * Protobuf type {@code google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey} + */ + public static final class DelimitedKey extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey) + DelimitedKeyOrBuilder { + 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= */ "", + "DelimitedKey"); + } + + // Use DelimitedKey.newBuilder() to construct. + private DelimitedKey(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DelimitedKey() { + keyFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + delimiter_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_DelimitedKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_DelimitedKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey.class, + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey.Builder.class); + } + + public static final int KEY_FIELDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList keyFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
          +       * Required. The key fields to construct from the row key. The fields must
          +       * be present in the message as a top-level field, i.e. JSON path
          +       * expressions will not traverse into nested objects.
          +       * 
          + * + * repeated string key_fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the keyFields. + */ + public com.google.protobuf.ProtocolStringList getKeyFieldsList() { + return keyFields_; + } + + /** + * + * + *
          +       * Required. The key fields to construct from the row key. The fields must
          +       * be present in the message as a top-level field, i.e. JSON path
          +       * expressions will not traverse into nested objects.
          +       * 
          + * + * repeated string key_fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of keyFields. + */ + public int getKeyFieldsCount() { + return keyFields_.size(); + } + + /** + * + * + *
          +       * Required. The key fields to construct from the row key. The fields must
          +       * be present in the message as a top-level field, i.e. JSON path
          +       * expressions will not traverse into nested objects.
          +       * 
          + * + * repeated string key_fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The keyFields at the given index. + */ + public java.lang.String getKeyFields(int index) { + return keyFields_.get(index); + } + + /** + * + * + *
          +       * Required. The key fields to construct from the row key. The fields must
          +       * be present in the message as a top-level field, i.e. JSON path
          +       * expressions will not traverse into nested objects.
          +       * 
          + * + * repeated string key_fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the keyFields at the given index. + */ + public com.google.protobuf.ByteString getKeyFieldsBytes(int index) { + return keyFields_.getByteString(index); + } + + public static final int DELIMITER_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString delimiter_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
          +       * Optional. Byte sequence used to delimit concatenated fields. Must be
          +       * specified if multiple key fields are used. The delimiter must contain
          +       * at least 1 character and at most 50 characters.
          +       * 
          + * + * bytes delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The delimiter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDelimiter() { + return delimiter_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < keyFields_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, keyFields_.getRaw(i)); + } + if (!delimiter_.isEmpty()) { + output.writeBytes(2, delimiter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < keyFields_.size(); i++) { + dataSize += computeStringSizeNoTag(keyFields_.getRaw(i)); + } + size += dataSize; + size += 1 * getKeyFieldsList().size(); + } + if (!delimiter_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, delimiter_); + } + 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.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey)) { + return super.equals(obj); + } + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey other = + (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey) obj; + + if (!getKeyFieldsList().equals(other.getKeyFieldsList())) return false; + if (!getDelimiter().equals(other.getDelimiter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getKeyFieldsCount() > 0) { + hash = (37 * hash) + KEY_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getKeyFieldsList().hashCode(); + } + hash = (37 * hash) + DELIMITER_FIELD_NUMBER; + hash = (53 * hash) + getDelimiter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey 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.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey 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.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey + 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.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey 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.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey 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; + } + + /** + * + * + *
          +       * Row key definition based on fields from the message.
          +       * 
          + * + * Protobuf type {@code google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey) + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_DelimitedKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_DelimitedKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey.class, + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey.Builder + .class); + } + + // Construct using + // com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + keyFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + delimiter_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_DelimitedKey_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey + getDefaultInstanceForType() { + return com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey build() { + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey buildPartial() { + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey result = + new com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + keyFields_.makeImmutable(); + result.keyFields_ = keyFields_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.delimiter_ = delimiter_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey) { + return mergeFrom( + (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey other) { + if (other + == com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey + .getDefaultInstance()) return this; + if (!other.keyFields_.isEmpty()) { + if (keyFields_.isEmpty()) { + keyFields_ = other.keyFields_; + bitField0_ |= 0x00000001; + } else { + ensureKeyFieldsIsMutable(); + keyFields_.addAll(other.keyFields_); + } + onChanged(); + } + if (!other.getDelimiter().isEmpty()) { + setDelimiter(other.getDelimiter()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureKeyFieldsIsMutable(); + keyFields_.add(s); + break; + } // case 10 + case 18: + { + delimiter_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList keyFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureKeyFieldsIsMutable() { + if (!keyFields_.isModifiable()) { + keyFields_ = new com.google.protobuf.LazyStringArrayList(keyFields_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
          +         * Required. The key fields to construct from the row key. The fields must
          +         * be present in the message as a top-level field, i.e. JSON path
          +         * expressions will not traverse into nested objects.
          +         * 
          + * + * repeated string key_fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the keyFields. + */ + public com.google.protobuf.ProtocolStringList getKeyFieldsList() { + keyFields_.makeImmutable(); + return keyFields_; + } + + /** + * + * + *
          +         * Required. The key fields to construct from the row key. The fields must
          +         * be present in the message as a top-level field, i.e. JSON path
          +         * expressions will not traverse into nested objects.
          +         * 
          + * + * repeated string key_fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of keyFields. + */ + public int getKeyFieldsCount() { + return keyFields_.size(); + } + + /** + * + * + *
          +         * Required. The key fields to construct from the row key. The fields must
          +         * be present in the message as a top-level field, i.e. JSON path
          +         * expressions will not traverse into nested objects.
          +         * 
          + * + * repeated string key_fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The keyFields at the given index. + */ + public java.lang.String getKeyFields(int index) { + return keyFields_.get(index); + } + + /** + * + * + *
          +         * Required. The key fields to construct from the row key. The fields must
          +         * be present in the message as a top-level field, i.e. JSON path
          +         * expressions will not traverse into nested objects.
          +         * 
          + * + * repeated string key_fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the keyFields at the given index. + */ + public com.google.protobuf.ByteString getKeyFieldsBytes(int index) { + return keyFields_.getByteString(index); + } + + /** + * + * + *
          +         * Required. The key fields to construct from the row key. The fields must
          +         * be present in the message as a top-level field, i.e. JSON path
          +         * expressions will not traverse into nested objects.
          +         * 
          + * + * repeated string key_fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The keyFields to set. + * @return This builder for chaining. + */ + public Builder setKeyFields(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeyFieldsIsMutable(); + keyFields_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +         * Required. The key fields to construct from the row key. The fields must
          +         * be present in the message as a top-level field, i.e. JSON path
          +         * expressions will not traverse into nested objects.
          +         * 
          + * + * repeated string key_fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The keyFields to add. + * @return This builder for chaining. + */ + public Builder addKeyFields(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeyFieldsIsMutable(); + keyFields_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +         * Required. The key fields to construct from the row key. The fields must
          +         * be present in the message as a top-level field, i.e. JSON path
          +         * expressions will not traverse into nested objects.
          +         * 
          + * + * repeated string key_fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The keyFields to add. + * @return This builder for chaining. + */ + public Builder addAllKeyFields(java.lang.Iterable values) { + ensureKeyFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keyFields_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +         * Required. The key fields to construct from the row key. The fields must
          +         * be present in the message as a top-level field, i.e. JSON path
          +         * expressions will not traverse into nested objects.
          +         * 
          + * + * repeated string key_fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearKeyFields() { + keyFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
          +         * Required. The key fields to construct from the row key. The fields must
          +         * be present in the message as a top-level field, i.e. JSON path
          +         * expressions will not traverse into nested objects.
          +         * 
          + * + * repeated string key_fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the keyFields to add. + * @return This builder for chaining. + */ + public Builder addKeyFieldsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureKeyFieldsIsMutable(); + keyFields_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString delimiter_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
          +         * Optional. Byte sequence used to delimit concatenated fields. Must be
          +         * specified if multiple key fields are used. The delimiter must contain
          +         * at least 1 character and at most 50 characters.
          +         * 
          + * + * bytes delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The delimiter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDelimiter() { + return delimiter_; + } + + /** + * + * + *
          +         * Optional. Byte sequence used to delimit concatenated fields. Must be
          +         * specified if multiple key fields are used. The delimiter must contain
          +         * at least 1 character and at most 50 characters.
          +         * 
          + * + * bytes delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The delimiter to set. + * @return This builder for chaining. + */ + public Builder setDelimiter(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + delimiter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +         * Optional. Byte sequence used to delimit concatenated fields. Must be
          +         * specified if multiple key fields are used. The delimiter must contain
          +         * at least 1 character and at most 50 characters.
          +         * 
          + * + * bytes delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDelimiter() { + bitField0_ = (bitField0_ & ~0x00000002); + delimiter_ = getDefaultInstance().getDelimiter(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey) + private static final com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey(); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DelimitedKey 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.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int keyDefinitionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object keyDefinition_; + + public enum KeyDefinitionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ROW_KEY_SCHEMA(1), + DELIMITED_KEY(2), + KEYDEFINITION_NOT_SET(0); + private final int value; + + private KeyDefinitionCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static KeyDefinitionCase valueOf(int value) { + return forNumber(value); + } + + public static KeyDefinitionCase forNumber(int value) { + switch (value) { + case 1: + return ROW_KEY_SCHEMA; + case 2: + return DELIMITED_KEY; + case 0: + return KEYDEFINITION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public KeyDefinitionCase getKeyDefinitionCase() { + return KeyDefinitionCase.forNumber(keyDefinitionCase_); + } + + public static final int ROW_KEY_SCHEMA_FIELD_NUMBER = 1; + + /** + * + * + *
          +     * Optional. If set, the row key is constructed from the field names of
          +     * the table's structured row key
          +     * ({$universe.dns_names.final_documentation_domain}/bigtable/docs/manage-row-key-schemas).
          +     * Note that if the field is nullable in the structured row key, then it
          +     * need not be present in the message; null will be used instead.
          +     * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema row_key_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rowKeySchema field is set. + */ + @java.lang.Override + public boolean hasRowKeySchema() { + return keyDefinitionCase_ == 1; + } + + /** + * + * + *
          +     * Optional. If set, the row key is constructed from the field names of
          +     * the table's structured row key
          +     * ({$universe.dns_names.final_documentation_domain}/bigtable/docs/manage-row-key-schemas).
          +     * Note that if the field is nullable in the structured row key, then it
          +     * need not be present in the message; null will be used instead.
          +     * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema row_key_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rowKeySchema. + */ + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema getRowKeySchema() { + if (keyDefinitionCase_ == 1) { + return (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema) + keyDefinition_; + } + return com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema + .getDefaultInstance(); + } + + /** + * + * + *
          +     * Optional. If set, the row key is constructed from the field names of
          +     * the table's structured row key
          +     * ({$universe.dns_names.final_documentation_domain}/bigtable/docs/manage-row-key-schemas).
          +     * Note that if the field is nullable in the structured row key, then it
          +     * need not be present in the message; null will be used instead.
          +     * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema row_key_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchemaOrBuilder + getRowKeySchemaOrBuilder() { + if (keyDefinitionCase_ == 1) { + return (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema) + keyDefinition_; + } + return com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema + .getDefaultInstance(); + } + + public static final int DELIMITED_KEY_FIELD_NUMBER = 2; + + /** + * + * + *
          +     * Optional. If set, the row key is constructed from the given key fields
          +     * and delimiter. All key fields must be present in the message;
          +     * otherwise, the message remains in the subscription backlog.
          +     * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey delimited_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the delimitedKey field is set. + */ + @java.lang.Override + public boolean hasDelimitedKey() { + return keyDefinitionCase_ == 2; + } + + /** + * + * + *
          +     * Optional. If set, the row key is constructed from the given key fields
          +     * and delimiter. All key fields must be present in the message;
          +     * otherwise, the message remains in the subscription backlog.
          +     * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey delimited_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The delimitedKey. + */ + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey getDelimitedKey() { + if (keyDefinitionCase_ == 2) { + return (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey) + keyDefinition_; + } + return com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey + .getDefaultInstance(); + } + + /** + * + * + *
          +     * Optional. If set, the row key is constructed from the given key fields
          +     * and delimiter. All key fields must be present in the message;
          +     * otherwise, the message remains in the subscription backlog.
          +     * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey delimited_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKeyOrBuilder + getDelimitedKeyOrBuilder() { + if (keyDefinitionCase_ == 2) { + return (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey) + keyDefinition_; + } + return com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (keyDefinitionCase_ == 1) { + output.writeMessage( + 1, + (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema) keyDefinition_); + } + if (keyDefinitionCase_ == 2) { + output.writeMessage( + 2, + (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey) keyDefinition_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (keyDefinitionCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema) + keyDefinition_); + } + if (keyDefinitionCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey) + keyDefinition_); + } + 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.pubsub.v1.BigtableConfig.ColumnFamilyMapping)) { + return super.equals(obj); + } + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping other = + (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping) obj; + + if (!getKeyDefinitionCase().equals(other.getKeyDefinitionCase())) return false; + switch (keyDefinitionCase_) { + case 1: + if (!getRowKeySchema().equals(other.getRowKeySchema())) return false; + break; + case 2: + if (!getDelimitedKey().equals(other.getDelimitedKey())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (keyDefinitionCase_) { + case 1: + hash = (37 * hash) + ROW_KEY_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getRowKeySchema().hashCode(); + break; + case 2: + hash = (37 * hash) + DELIMITED_KEY_FIELD_NUMBER; + hash = (53 * hash) + getDelimitedKey().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping 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.pubsub.v1.BigtableConfig.ColumnFamilyMapping parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping 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.pubsub.v1.BigtableConfig.ColumnFamilyMapping parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping 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.pubsub.v1.BigtableConfig.ColumnFamilyMapping parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping 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.pubsub.v1.BigtableConfig.ColumnFamilyMapping 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; + } + + /** + * + * + *
          +     * Configuration for writing a Pub/Sub message to a Bigtable row with a
          +     * user-defined key and writing to column families.
          +     *
          +     * If this field is set:
          +     *
          +     * - The subscription messages must be formatted as JSON.
          +     * - The row key mapping is configured in the `key_definition` section.
          +     * - The top-level fields will be written either:
          +     * - By default, they will be written to the `data` column family with the
          +     * field name as the column qualifier.
          +     * - But if the field name matches an existing column family (except for
          +     * the default `data` column), then that field will be written to that
          +     * column family, either as a scalar or its next level nested fields if
          +     * it's a JSON object.
          +     * - The cell timestamp will be the message publish timestamp.
          +     *
          +     * If the field is not set, the default behavior is to write:
          +     *
          +     * - row key: subscription name, message ID hash, and message ID delimited by
          +     * `#`.
          +     * - columns: message bytes written to a single column family `data` with an
          +     * empty-string column qualifier.
          +     * - cell timestamp: the message publish timestamp.
          +     * 
          + * + * Protobuf type {@code google.pubsub.v1.BigtableConfig.ColumnFamilyMapping} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.BigtableConfig.ColumnFamilyMapping) + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMappingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.class, + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.Builder.class); + } + + // Construct using com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (rowKeySchemaBuilder_ != null) { + rowKeySchemaBuilder_.clear(); + } + if (delimitedKeyBuilder_ != null) { + delimitedKeyBuilder_.clear(); + } + keyDefinitionCase_ = 0; + keyDefinition_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping getDefaultInstanceForType() { + return com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping build() { + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping buildPartial() { + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping result = + new com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping result) { + result.keyDefinitionCase_ = keyDefinitionCase_; + result.keyDefinition_ = this.keyDefinition_; + if (keyDefinitionCase_ == 1 && rowKeySchemaBuilder_ != null) { + result.keyDefinition_ = rowKeySchemaBuilder_.build(); + } + if (keyDefinitionCase_ == 2 && delimitedKeyBuilder_ != null) { + result.keyDefinition_ = delimitedKeyBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping) { + return mergeFrom((com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping other) { + if (other == com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.getDefaultInstance()) + return this; + switch (other.getKeyDefinitionCase()) { + case ROW_KEY_SCHEMA: + { + mergeRowKeySchema(other.getRowKeySchema()); + break; + } + case DELIMITED_KEY: + { + mergeDelimitedKey(other.getDelimitedKey()); + break; + } + case KEYDEFINITION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetRowKeySchemaFieldBuilder().getBuilder(), extensionRegistry); + keyDefinitionCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetDelimitedKeyFieldBuilder().getBuilder(), extensionRegistry); + keyDefinitionCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int keyDefinitionCase_ = 0; + private java.lang.Object keyDefinition_; + + public KeyDefinitionCase getKeyDefinitionCase() { + return KeyDefinitionCase.forNumber(keyDefinitionCase_); + } + + public Builder clearKeyDefinition() { + keyDefinitionCase_ = 0; + keyDefinition_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema, + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema.Builder, + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchemaOrBuilder> + rowKeySchemaBuilder_; + + /** + * + * + *
          +       * Optional. If set, the row key is constructed from the field names of
          +       * the table's structured row key
          +       * ({$universe.dns_names.final_documentation_domain}/bigtable/docs/manage-row-key-schemas).
          +       * Note that if the field is nullable in the structured row key, then it
          +       * need not be present in the message; null will be used instead.
          +       * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema row_key_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rowKeySchema field is set. + */ + @java.lang.Override + public boolean hasRowKeySchema() { + return keyDefinitionCase_ == 1; + } + + /** + * + * + *
          +       * Optional. If set, the row key is constructed from the field names of
          +       * the table's structured row key
          +       * ({$universe.dns_names.final_documentation_domain}/bigtable/docs/manage-row-key-schemas).
          +       * Note that if the field is nullable in the structured row key, then it
          +       * need not be present in the message; null will be used instead.
          +       * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema row_key_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rowKeySchema. + */ + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema + getRowKeySchema() { + if (rowKeySchemaBuilder_ == null) { + if (keyDefinitionCase_ == 1) { + return (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema) + keyDefinition_; + } + return com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema + .getDefaultInstance(); + } else { + if (keyDefinitionCase_ == 1) { + return rowKeySchemaBuilder_.getMessage(); + } + return com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema + .getDefaultInstance(); + } + } + + /** + * + * + *
          +       * Optional. If set, the row key is constructed from the field names of
          +       * the table's structured row key
          +       * ({$universe.dns_names.final_documentation_domain}/bigtable/docs/manage-row-key-schemas).
          +       * Note that if the field is nullable in the structured row key, then it
          +       * need not be present in the message; null will be used instead.
          +       * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema row_key_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRowKeySchema( + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema value) { + if (rowKeySchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + keyDefinition_ = value; + onChanged(); + } else { + rowKeySchemaBuilder_.setMessage(value); + } + keyDefinitionCase_ = 1; + return this; + } + + /** + * + * + *
          +       * Optional. If set, the row key is constructed from the field names of
          +       * the table's structured row key
          +       * ({$universe.dns_names.final_documentation_domain}/bigtable/docs/manage-row-key-schemas).
          +       * Note that if the field is nullable in the structured row key, then it
          +       * need not be present in the message; null will be used instead.
          +       * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema row_key_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRowKeySchema( + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema.Builder + builderForValue) { + if (rowKeySchemaBuilder_ == null) { + keyDefinition_ = builderForValue.build(); + onChanged(); + } else { + rowKeySchemaBuilder_.setMessage(builderForValue.build()); + } + keyDefinitionCase_ = 1; + return this; + } + + /** + * + * + *
          +       * Optional. If set, the row key is constructed from the field names of
          +       * the table's structured row key
          +       * ({$universe.dns_names.final_documentation_domain}/bigtable/docs/manage-row-key-schemas).
          +       * Note that if the field is nullable in the structured row key, then it
          +       * need not be present in the message; null will be used instead.
          +       * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema row_key_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRowKeySchema( + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema value) { + if (rowKeySchemaBuilder_ == null) { + if (keyDefinitionCase_ == 1 + && keyDefinition_ + != com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema + .getDefaultInstance()) { + keyDefinition_ = + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema.newBuilder( + (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema) + keyDefinition_) + .mergeFrom(value) + .buildPartial(); + } else { + keyDefinition_ = value; + } + onChanged(); + } else { + if (keyDefinitionCase_ == 1) { + rowKeySchemaBuilder_.mergeFrom(value); + } else { + rowKeySchemaBuilder_.setMessage(value); + } + } + keyDefinitionCase_ = 1; + return this; + } + + /** + * + * + *
          +       * Optional. If set, the row key is constructed from the field names of
          +       * the table's structured row key
          +       * ({$universe.dns_names.final_documentation_domain}/bigtable/docs/manage-row-key-schemas).
          +       * Note that if the field is nullable in the structured row key, then it
          +       * need not be present in the message; null will be used instead.
          +       * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema row_key_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRowKeySchema() { + if (rowKeySchemaBuilder_ == null) { + if (keyDefinitionCase_ == 1) { + keyDefinitionCase_ = 0; + keyDefinition_ = null; + onChanged(); + } + } else { + if (keyDefinitionCase_ == 1) { + keyDefinitionCase_ = 0; + keyDefinition_ = null; + } + rowKeySchemaBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +       * Optional. If set, the row key is constructed from the field names of
          +       * the table's structured row key
          +       * ({$universe.dns_names.final_documentation_domain}/bigtable/docs/manage-row-key-schemas).
          +       * Note that if the field is nullable in the structured row key, then it
          +       * need not be present in the message; null will be used instead.
          +       * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema row_key_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema.Builder + getRowKeySchemaBuilder() { + return internalGetRowKeySchemaFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +       * Optional. If set, the row key is constructed from the field names of
          +       * the table's structured row key
          +       * ({$universe.dns_names.final_documentation_domain}/bigtable/docs/manage-row-key-schemas).
          +       * Note that if the field is nullable in the structured row key, then it
          +       * need not be present in the message; null will be used instead.
          +       * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema row_key_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchemaOrBuilder + getRowKeySchemaOrBuilder() { + if ((keyDefinitionCase_ == 1) && (rowKeySchemaBuilder_ != null)) { + return rowKeySchemaBuilder_.getMessageOrBuilder(); + } else { + if (keyDefinitionCase_ == 1) { + return (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema) + keyDefinition_; + } + return com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema + .getDefaultInstance(); + } + } + + /** + * + * + *
          +       * Optional. If set, the row key is constructed from the field names of
          +       * the table's structured row key
          +       * ({$universe.dns_names.final_documentation_domain}/bigtable/docs/manage-row-key-schemas).
          +       * Note that if the field is nullable in the structured row key, then it
          +       * need not be present in the message; null will be used instead.
          +       * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema row_key_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema, + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema.Builder, + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchemaOrBuilder> + internalGetRowKeySchemaFieldBuilder() { + if (rowKeySchemaBuilder_ == null) { + if (!(keyDefinitionCase_ == 1)) { + keyDefinition_ = + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema + .getDefaultInstance(); + } + rowKeySchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema, + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema.Builder, + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchemaOrBuilder>( + (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema) + keyDefinition_, + getParentForChildren(), + isClean()); + keyDefinition_ = null; + } + keyDefinitionCase_ = 1; + onChanged(); + return rowKeySchemaBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey, + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey.Builder, + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKeyOrBuilder> + delimitedKeyBuilder_; + + /** + * + * + *
          +       * Optional. If set, the row key is constructed from the given key fields
          +       * and delimiter. All key fields must be present in the message;
          +       * otherwise, the message remains in the subscription backlog.
          +       * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey delimited_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the delimitedKey field is set. + */ + @java.lang.Override + public boolean hasDelimitedKey() { + return keyDefinitionCase_ == 2; + } + + /** + * + * + *
          +       * Optional. If set, the row key is constructed from the given key fields
          +       * and delimiter. All key fields must be present in the message;
          +       * otherwise, the message remains in the subscription backlog.
          +       * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey delimited_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The delimitedKey. + */ + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey + getDelimitedKey() { + if (delimitedKeyBuilder_ == null) { + if (keyDefinitionCase_ == 2) { + return (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey) + keyDefinition_; + } + return com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey + .getDefaultInstance(); + } else { + if (keyDefinitionCase_ == 2) { + return delimitedKeyBuilder_.getMessage(); + } + return com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey + .getDefaultInstance(); + } + } + + /** + * + * + *
          +       * Optional. If set, the row key is constructed from the given key fields
          +       * and delimiter. All key fields must be present in the message;
          +       * otherwise, the message remains in the subscription backlog.
          +       * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey delimited_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDelimitedKey( + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey value) { + if (delimitedKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + keyDefinition_ = value; + onChanged(); + } else { + delimitedKeyBuilder_.setMessage(value); + } + keyDefinitionCase_ = 2; + return this; + } + + /** + * + * + *
          +       * Optional. If set, the row key is constructed from the given key fields
          +       * and delimiter. All key fields must be present in the message;
          +       * otherwise, the message remains in the subscription backlog.
          +       * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey delimited_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDelimitedKey( + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey.Builder + builderForValue) { + if (delimitedKeyBuilder_ == null) { + keyDefinition_ = builderForValue.build(); + onChanged(); + } else { + delimitedKeyBuilder_.setMessage(builderForValue.build()); + } + keyDefinitionCase_ = 2; + return this; + } + + /** + * + * + *
          +       * Optional. If set, the row key is constructed from the given key fields
          +       * and delimiter. All key fields must be present in the message;
          +       * otherwise, the message remains in the subscription backlog.
          +       * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey delimited_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDelimitedKey( + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey value) { + if (delimitedKeyBuilder_ == null) { + if (keyDefinitionCase_ == 2 + && keyDefinition_ + != com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey + .getDefaultInstance()) { + keyDefinition_ = + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey.newBuilder( + (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey) + keyDefinition_) + .mergeFrom(value) + .buildPartial(); + } else { + keyDefinition_ = value; + } + onChanged(); + } else { + if (keyDefinitionCase_ == 2) { + delimitedKeyBuilder_.mergeFrom(value); + } else { + delimitedKeyBuilder_.setMessage(value); + } + } + keyDefinitionCase_ = 2; + return this; + } + + /** + * + * + *
          +       * Optional. If set, the row key is constructed from the given key fields
          +       * and delimiter. All key fields must be present in the message;
          +       * otherwise, the message remains in the subscription backlog.
          +       * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey delimited_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDelimitedKey() { + if (delimitedKeyBuilder_ == null) { + if (keyDefinitionCase_ == 2) { + keyDefinitionCase_ = 0; + keyDefinition_ = null; + onChanged(); + } + } else { + if (keyDefinitionCase_ == 2) { + keyDefinitionCase_ = 0; + keyDefinition_ = null; + } + delimitedKeyBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +       * Optional. If set, the row key is constructed from the given key fields
          +       * and delimiter. All key fields must be present in the message;
          +       * otherwise, the message remains in the subscription backlog.
          +       * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey delimited_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey.Builder + getDelimitedKeyBuilder() { + return internalGetDelimitedKeyFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +       * Optional. If set, the row key is constructed from the given key fields
          +       * and delimiter. All key fields must be present in the message;
          +       * otherwise, the message remains in the subscription backlog.
          +       * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey delimited_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKeyOrBuilder + getDelimitedKeyOrBuilder() { + if ((keyDefinitionCase_ == 2) && (delimitedKeyBuilder_ != null)) { + return delimitedKeyBuilder_.getMessageOrBuilder(); + } else { + if (keyDefinitionCase_ == 2) { + return (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey) + keyDefinition_; + } + return com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey + .getDefaultInstance(); + } + } + + /** + * + * + *
          +       * Optional. If set, the row key is constructed from the given key fields
          +       * and delimiter. All key fields must be present in the message;
          +       * otherwise, the message remains in the subscription backlog.
          +       * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey delimited_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey, + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey.Builder, + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKeyOrBuilder> + internalGetDelimitedKeyFieldBuilder() { + if (delimitedKeyBuilder_ == null) { + if (!(keyDefinitionCase_ == 2)) { + keyDefinition_ = + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey + .getDefaultInstance(); + } + delimitedKeyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey, + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey.Builder, + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKeyOrBuilder>( + (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey) + keyDefinition_, + getParentForChildren(), + isClean()); + keyDefinition_ = null; + } + keyDefinitionCase_ = 2; + onChanged(); + return delimitedKeyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.BigtableConfig.ColumnFamilyMapping) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.BigtableConfig.ColumnFamilyMapping) + private static final com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping(); + } + + public static com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColumnFamilyMapping 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.pubsub.v1.BigtableConfig.ColumnFamilyMapping getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int messageMappingCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object messageMapping_; + + public enum MessageMappingCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + COLUMN_FAMILY_MAPPING(6), + MESSAGEMAPPING_NOT_SET(0); + private final int value; + + private MessageMappingCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MessageMappingCase valueOf(int value) { + return forNumber(value); + } + + public static MessageMappingCase forNumber(int value) { + switch (value) { + case 6: + return COLUMN_FAMILY_MAPPING; + case 0: + return MESSAGEMAPPING_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public MessageMappingCase getMessageMappingCase() { + return MessageMappingCase.forNumber(messageMappingCase_); + } + public static final int TABLE_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -589,6 +3367,73 @@ public boolean getWriteMetadata() { return writeMetadata_; } + public static final int COLUMN_FAMILY_MAPPING_FIELD_NUMBER = 6; + + /** + * + * + *
          +   * Optional. Configuration that allows writing row keys and/or columns based
          +   * on fields in the input message. The input message format must be JSON if
          +   * this field is set.
          +   * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping column_family_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the columnFamilyMapping field is set. + */ + @java.lang.Override + public boolean hasColumnFamilyMapping() { + return messageMappingCase_ == 6; + } + + /** + * + * + *
          +   * Optional. Configuration that allows writing row keys and/or columns based
          +   * on fields in the input message. The input message format must be JSON if
          +   * this field is set.
          +   * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping column_family_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The columnFamilyMapping. + */ + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping getColumnFamilyMapping() { + if (messageMappingCase_ == 6) { + return (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping) messageMapping_; + } + return com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.getDefaultInstance(); + } + + /** + * + * + *
          +   * Optional. Configuration that allows writing row keys and/or columns based
          +   * on fields in the input message. The input message format must be JSON if
          +   * this field is set.
          +   * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping column_family_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig.ColumnFamilyMappingOrBuilder + getColumnFamilyMappingOrBuilder() { + if (messageMappingCase_ == 6) { + return (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping) messageMapping_; + } + return com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.getDefaultInstance(); + } + public static final int STATE_FIELD_NUMBER = 4; private int state_ = 0; @@ -661,6 +3506,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (writeMetadata_ != false) { output.writeBool(5, writeMetadata_); } + if (messageMappingCase_ == 6) { + output.writeMessage( + 6, (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping) messageMapping_); + } getUnknownFields().writeTo(output); } @@ -685,6 +3534,11 @@ public int getSerializedSize() { if (writeMetadata_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, writeMetadata_); } + if (messageMappingCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping) messageMapping_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -705,6 +3559,14 @@ public boolean equals(final java.lang.Object obj) { if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; if (getWriteMetadata() != other.getWriteMetadata()) return false; if (state_ != other.state_) return false; + if (!getMessageMappingCase().equals(other.getMessageMappingCase())) return false; + switch (messageMappingCase_) { + case 6: + if (!getColumnFamilyMapping().equals(other.getColumnFamilyMapping())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -726,6 +3588,14 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getWriteMetadata()); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; + switch (messageMappingCase_) { + case 6: + hash = (37 * hash) + COLUMN_FAMILY_MAPPING_FIELD_NUMBER; + hash = (53 * hash) + getColumnFamilyMapping().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -830,13 +3700,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
          -   * Configuration for a Bigtable subscription. The Pub/Sub message will be
          -   * written to a Bigtable row as follows:
          -   * - row key: subscription name, message ID hash, and message ID delimited by
          -   * `#`.
          -   * - columns: message bytes written to a single column family `data` with an
          -   * empty-string column qualifier.
          -   * - cell timestamp: the message publish timestamp.
          +   * Configuration for a Bigtable subscription, which will write a Pub/Sub message
          +   * to a Bigtable row. See the ColumnFamilyMapping documentation below for
          +   * details on how the row keys and columns will be written.
              * 
          * * Protobuf type {@code google.pubsub.v1.BigtableConfig} @@ -875,7 +3741,12 @@ public Builder clear() { appProfileId_ = ""; serviceAccountEmail_ = ""; writeMetadata_ = false; + if (columnFamilyMappingBuilder_ != null) { + columnFamilyMappingBuilder_.clear(); + } state_ = 0; + messageMappingCase_ = 0; + messageMapping_ = null; return this; } @@ -905,6 +3776,7 @@ public com.google.pubsub.v1.BigtableConfig buildPartial() { if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } @@ -923,11 +3795,19 @@ private void buildPartial0(com.google.pubsub.v1.BigtableConfig result) { if (((from_bitField0_ & 0x00000008) != 0)) { result.writeMetadata_ = writeMetadata_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.state_ = state_; } } + private void buildPartialOneofs(com.google.pubsub.v1.BigtableConfig result) { + result.messageMappingCase_ = messageMappingCase_; + result.messageMapping_ = this.messageMapping_; + if (messageMappingCase_ == 6 && columnFamilyMappingBuilder_ != null) { + result.messageMapping_ = columnFamilyMappingBuilder_.build(); + } + } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.BigtableConfig) { @@ -961,6 +3841,17 @@ public Builder mergeFrom(com.google.pubsub.v1.BigtableConfig other) { if (other.state_ != 0) { setStateValue(other.getStateValue()); } + switch (other.getMessageMappingCase()) { + case COLUMN_FAMILY_MAPPING: + { + mergeColumnFamilyMapping(other.getColumnFamilyMapping()); + break; + } + case MESSAGEMAPPING_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1008,7 +3899,7 @@ public Builder mergeFrom( case 32: { state_ = input.readEnum(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 32 case 40: @@ -1017,6 +3908,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 40 + case 50: + { + input.readMessage( + internalGetColumnFamilyMappingFieldBuilder().getBuilder(), extensionRegistry); + messageMappingCase_ = 6; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1034,6 +3932,20 @@ public Builder mergeFrom( return this; } + private int messageMappingCase_ = 0; + private java.lang.Object messageMapping_; + + public MessageMappingCase getMessageMappingCase() { + return MessageMappingCase.forNumber(messageMappingCase_); + } + + public Builder clearMessageMapping() { + messageMappingCase_ = 0; + messageMapping_ = null; + onChanged(); + return this; + } + private int bitField0_; private java.lang.Object table_ = ""; @@ -1490,6 +4402,266 @@ public Builder clearWriteMetadata() { return this; } + private com.google.protobuf.SingleFieldBuilder< + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping, + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.Builder, + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMappingOrBuilder> + columnFamilyMappingBuilder_; + + /** + * + * + *
          +     * Optional. Configuration that allows writing row keys and/or columns based
          +     * on fields in the input message. The input message format must be JSON if
          +     * this field is set.
          +     * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping column_family_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the columnFamilyMapping field is set. + */ + @java.lang.Override + public boolean hasColumnFamilyMapping() { + return messageMappingCase_ == 6; + } + + /** + * + * + *
          +     * Optional. Configuration that allows writing row keys and/or columns based
          +     * on fields in the input message. The input message format must be JSON if
          +     * this field is set.
          +     * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping column_family_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The columnFamilyMapping. + */ + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping getColumnFamilyMapping() { + if (columnFamilyMappingBuilder_ == null) { + if (messageMappingCase_ == 6) { + return (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping) messageMapping_; + } + return com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.getDefaultInstance(); + } else { + if (messageMappingCase_ == 6) { + return columnFamilyMappingBuilder_.getMessage(); + } + return com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.getDefaultInstance(); + } + } + + /** + * + * + *
          +     * Optional. Configuration that allows writing row keys and/or columns based
          +     * on fields in the input message. The input message format must be JSON if
          +     * this field is set.
          +     * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping column_family_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setColumnFamilyMapping( + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping value) { + if (columnFamilyMappingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + messageMapping_ = value; + onChanged(); + } else { + columnFamilyMappingBuilder_.setMessage(value); + } + messageMappingCase_ = 6; + return this; + } + + /** + * + * + *
          +     * Optional. Configuration that allows writing row keys and/or columns based
          +     * on fields in the input message. The input message format must be JSON if
          +     * this field is set.
          +     * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping column_family_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setColumnFamilyMapping( + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.Builder builderForValue) { + if (columnFamilyMappingBuilder_ == null) { + messageMapping_ = builderForValue.build(); + onChanged(); + } else { + columnFamilyMappingBuilder_.setMessage(builderForValue.build()); + } + messageMappingCase_ = 6; + return this; + } + + /** + * + * + *
          +     * Optional. Configuration that allows writing row keys and/or columns based
          +     * on fields in the input message. The input message format must be JSON if
          +     * this field is set.
          +     * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping column_family_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeColumnFamilyMapping( + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping value) { + if (columnFamilyMappingBuilder_ == null) { + if (messageMappingCase_ == 6 + && messageMapping_ + != com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.getDefaultInstance()) { + messageMapping_ = + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.newBuilder( + (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping) messageMapping_) + .mergeFrom(value) + .buildPartial(); + } else { + messageMapping_ = value; + } + onChanged(); + } else { + if (messageMappingCase_ == 6) { + columnFamilyMappingBuilder_.mergeFrom(value); + } else { + columnFamilyMappingBuilder_.setMessage(value); + } + } + messageMappingCase_ = 6; + return this; + } + + /** + * + * + *
          +     * Optional. Configuration that allows writing row keys and/or columns based
          +     * on fields in the input message. The input message format must be JSON if
          +     * this field is set.
          +     * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping column_family_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearColumnFamilyMapping() { + if (columnFamilyMappingBuilder_ == null) { + if (messageMappingCase_ == 6) { + messageMappingCase_ = 0; + messageMapping_ = null; + onChanged(); + } + } else { + if (messageMappingCase_ == 6) { + messageMappingCase_ = 0; + messageMapping_ = null; + } + columnFamilyMappingBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * Optional. Configuration that allows writing row keys and/or columns based
          +     * on fields in the input message. The input message format must be JSON if
          +     * this field is set.
          +     * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping column_family_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.Builder + getColumnFamilyMappingBuilder() { + return internalGetColumnFamilyMappingFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Optional. Configuration that allows writing row keys and/or columns based
          +     * on fields in the input message. The input message format must be JSON if
          +     * this field is set.
          +     * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping column_family_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig.ColumnFamilyMappingOrBuilder + getColumnFamilyMappingOrBuilder() { + if ((messageMappingCase_ == 6) && (columnFamilyMappingBuilder_ != null)) { + return columnFamilyMappingBuilder_.getMessageOrBuilder(); + } else { + if (messageMappingCase_ == 6) { + return (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping) messageMapping_; + } + return com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.getDefaultInstance(); + } + } + + /** + * + * + *
          +     * Optional. Configuration that allows writing row keys and/or columns based
          +     * on fields in the input message. The input message format must be JSON if
          +     * this field is set.
          +     * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping column_family_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping, + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.Builder, + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMappingOrBuilder> + internalGetColumnFamilyMappingFieldBuilder() { + if (columnFamilyMappingBuilder_ == null) { + if (!(messageMappingCase_ == 6)) { + messageMapping_ = + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.getDefaultInstance(); + } + columnFamilyMappingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping, + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.Builder, + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMappingOrBuilder>( + (com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping) messageMapping_, + getParentForChildren(), + isClean()); + messageMapping_ = null; + } + messageMappingCase_ = 6; + onChanged(); + return columnFamilyMappingBuilder_; + } + private int state_ = 0; /** @@ -1528,7 +4700,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1573,7 +4745,7 @@ public Builder setState(com.google.pubsub.v1.BigtableConfig.State value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; state_ = value.getNumber(); onChanged(); return this; @@ -1594,7 +4766,7 @@ public Builder setState(com.google.pubsub.v1.BigtableConfig.State value) { * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); state_ = 0; onChanged(); return this; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigtableConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigtableConfigOrBuilder.java index 8528f9c0fc80..b836ec83add5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigtableConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigtableConfigOrBuilder.java @@ -142,6 +142,56 @@ public interface BigtableConfigOrBuilder */ boolean getWriteMetadata(); + /** + * + * + *
          +   * Optional. Configuration that allows writing row keys and/or columns based
          +   * on fields in the input message. The input message format must be JSON if
          +   * this field is set.
          +   * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping column_family_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the columnFamilyMapping field is set. + */ + boolean hasColumnFamilyMapping(); + + /** + * + * + *
          +   * Optional. Configuration that allows writing row keys and/or columns based
          +   * on fields in the input message. The input message format must be JSON if
          +   * this field is set.
          +   * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping column_family_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The columnFamilyMapping. + */ + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping getColumnFamilyMapping(); + + /** + * + * + *
          +   * Optional. Configuration that allows writing row keys and/or columns based
          +   * on fields in the input message. The input message format must be JSON if
          +   * this field is set.
          +   * 
          + * + * + * .google.pubsub.v1.BigtableConfig.ColumnFamilyMapping column_family_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.BigtableConfig.ColumnFamilyMappingOrBuilder + getColumnFamilyMappingOrBuilder(); + /** * * @@ -173,4 +223,6 @@ public interface BigtableConfigOrBuilder * @return The state. */ com.google.pubsub.v1.BigtableConfig.State getState(); + + com.google.pubsub.v1.BigtableConfig.MessageMappingCase getMessageMappingCase(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 84b0a3d8983a..c495133d1e8d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -276,6 +276,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_BigtableConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_BigtableConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_RowKeySchema_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_RowKeySchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_DelimitedKey_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_DelimitedKey_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_CloudStorageConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -857,14 +869,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tNOT_FOUND\020\003\022\023\n" + "\017SCHEMA_MISMATCH\020\004\022#\n" + "\037IN_TRANSIT_LOCATION_RESTRICTION\020\005\022\"\n" - + "\036VERTEX_AI_LOCATION_RESTRICTION\020\006\"\216\003\n" + + "\036VERTEX_AI_LOCATION_RESTRICTION\020\006\"\273\006\n" + "\016BigtableConfig\022\022\n" + "\005table\030\001 \001(\tB\003\340A\001\022\033\n" + "\016app_profile_id\030\002 \001(\tB\003\340A\001\022\"\n" + "\025service_account_email\030\003 \001(\tB\003\340A\001\022\033\n" - + "\016write_metadata\030\005 \001(\010B\003\340A\001\022:\n" - + "\005state\030\004 \001(\0162&.goog" - + "le.pubsub.v1.BigtableConfig.StateB\003\340A\003\"\315\001\n" + + "\016write_metadata\030\005 \001(\010B\003\340A\001\022Z\n" + + "\025column_family_mapping\030\006" + + " \001(\01324.google.pubsub.v1.BigtableConfig.ColumnFamilyMappingB\003\340A\001H\000\022:\n" + + "\005state\030\004" + + " \001(\0162&.google.pubsub.v1.BigtableConfig.StateB\003\340A\003\032\273\002\n" + + "\023ColumnFamilyMapping\022`\n" + + "\016row_key_schema\030\001 \001(\0132A.google.pubsub.v1.Bi" + + "gtableConfig.ColumnFamilyMapping.RowKeySchemaB\003\340A\001H\000\022_\n\r" + + "delimited_key\030\002 \001(\0132A.go" + + "ogle.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKeyB\003\340A\001H\000\032\016\n" + + "\014RowKeySchema\032?\n" + + "\014DelimitedKey\022\027\n\n" + + "key_fields\030\001 \003(\tB\003\340A\002\022\026\n" + + "\tdelimiter\030\002 \001(\014B\003\340A\001B\020\n" + + "\016key_definition\"\315\001\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\r\n" @@ -873,17 +897,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021PERMISSION_DENIED\020\004\022\023\n" + "\017SCHEMA_MISMATCH\020\005\022#\n" + "\037IN_TRANSIT_LOCATION_RESTRICTION\020\006\022\"\n" - + "\036VERTEX_AI_LOCATION_RESTRICTION\020\007\"\215\006\n" + + "\036VERTEX_AI_LOCATION_RESTRICTION\020\007B\021\n" + + "\017message_mapping\"\215\006\n" + "\022CloudStorageConfig\022\023\n" + "\006bucket\030\001 \001(\tB\003\340A\002\022\034\n" + "\017filename_prefix\030\002 \001(\tB\003\340A\001\022\034\n" + "\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n" + "\030filename_datetime_format\030\n" + " \001(\tB\003\340A\001\022K\n" - + "\013text_config\030\004" - + " \001(\0132/.google.pubsub.v1.CloudStorageConfig.TextConfigB\003\340A\001H\000\022K\n" - + "\013avro_config\030\005" - + " \001(\0132/.google.pubsub.v1.CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" + + "\013text_config\030\004 \001(\0132" + + "/.google.pubsub.v1.CloudStorageConfig.TextConfigB\003\340A\001H\000\022K\n" + + "\013avro_config\030\005 \001(\0132/.g" + + "oogle.pubsub.v1.CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" + "\014max_duration\030\006" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\026\n" + "\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n" @@ -922,7 +947,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "+cloudresourcemanager.googleapis.com/Project\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"u\n" - + "\031ListSubscriptionsResponse\022:\n\r" + + "\031ListSubscriptionsResponse\022:\n" + + "\r" + "subscriptions\030\001" + " \003(\0132\036.google.pubsub.v1.SubscriptionB\003\340A\001\022\034\n" + "\017next_page_token\030\002 \001(\tB\003\340A\001\"]\n" @@ -932,22 +958,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027ModifyPushConfigRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\0226\n" - + "\013push_config\030\002" - + " \001(\0132\034.google.pubsub.v1.PushConfigB\003\340A\002\"\215\001\n" + + "\013", + "push_config\030\002 \001(\0132\034.google.pubsub.v1.PushConfigB\003\340A\002\"\215\001\n" + "\013PullRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\022!\n" + "\022return_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n" + "\014max_messages\030\003 \001(\005B\003\340A\002\"Q\n" + "\014PullResponse\022A\n" - + "\021received_messages\030\001" - + " \003(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\"\225\001\n" + + "\021received_messages\030\001 \003(\0132" + + "!.google.pubsub.v1.ReceivedMessageB\003\340A\001\"\225\001\n" + "\030ModifyAckDeadlineRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\022\024\n" + "\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n" - + "\024ack_deadline_seconds\030\003 \001(\005B\003\340", - "A\002\"l\n" + + "\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n" + "\022AcknowledgeRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\022\024\n" @@ -967,12 +992,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025StreamingPullResponse\022A\n" + "\021received_messages\030\001" + " \003(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\022f\n" - + "\030acknowledge_confirmation\030\005 \001(\013" - + "2?.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" - + " modify_ack_deadline_confirmation\030\003 \001(\0132E.googl" - + "e.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" - + "\027subscription_properties\030\004 \001(\0132>.google.pubsub.v1" - + ".StreamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + + "\030acknowledge_confirmation\030\005 \001(\0132?.google.p" + + "ubsub.v1.StreamingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" + + " modify_ack_deadline_confirmation\030\003 \001(\0132E.google.pubsub.v1" + + ".StreamingPullResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" + + "\027subscription_properties\030\004 \001(\0132>.google.pubsub.v1.StreamingP" + + "ullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + "\027AcknowledgeConfirmation\022\024\n" + "\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n" + "\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n" @@ -990,13 +1015,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036pubsub.googleapis.com/Snapshot\022@\n" + "\014subscription\030\002 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\022H\n" - + "\006labels\030\003 \003(\01323.g" - + "oogle.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\022J\n" + + "\006labels\030\003 \003(\01323.google.pubsu" + + "b.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\022J\n" + "\004tags\030\004 \003(\01321.google.pubsub.v1.CreateSnapshotRequest.TagsEntryB" + "\t\340A\004\340A\005\340A\001\032-\n" + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r" - + "\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032+\n" + "\tTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -1040,107 +1064,103 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006target\"\016\n" + "\014SeekResponse\"\364\001\n" + "\025PubsubClientTelemetry\022Z\n" - + "\021publish_operation\030\001 \001(\01328.google.pubsub.v" - + "1.PubsubClientTelemetry.PublishOperationB\003\340A\001H\000\032r\n" + + "\021publish_operation\030\001" + + " \001(\01328.google.pubsub.v1.PubsubClientTelemetry.PublishOperationB\003\340A\001H\000\032r\n" + "\020PublishOperation\022!\n" + "\024hedged_attempt_count\030\001 \001(\005B\003\340A\001\022;\n" + "\022publish_start_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001B\013\n" + "\toperation2\270\013\n" + "\tPublisher\022q\n" - + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027.google." - + "pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022\221\001\n" - + "\013UpdateTopic\022$.google.pubsub.v1.UpdateTopicRequest\032" - + "\027.google.pubsub.v1.Topic\"C\332A\021topic,updat" - + "e_mask\202\323\344\223\002)2$/v1/{topic.name=projects/*/topics/*}:\001*\022\223\001\n" - + "\007Publish\022 .google.pubsub.v1.PublishRequest\032!.google.pubsub.v1.P" - + "ublishResponse\"C\332A\016topic,messages\202\323\344\223\002,\"" - + "\'/v1/{topic=projects/*/topics/*}:publish:\001*\022w\n" - + "\010GetTopic\022!.google.pubsub.v1.GetTo" - + "picRequest\032\027.google.pubsub.v1.Topic\"/\332A\005" - + "topic\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022\212\001\n\n" - + "ListTopics\022#.google.pubsub.v1.ListTopicsRequest\032$.google.pubsub.v1.List" - + "TopicsResponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics\022\272\001\n" - + "\026ListTopicSubscriptions\022/.google.pubsub.v1.ListTopi" - + "cSubscriptionsRequest\0320.google.pubsub.v1" - + ".ListTopicSubscriptionsResponse\"=\332A\005topi" - + "c\202\323\344\223\002/\022-/v1/{topic=projects/*/topics/*}/subscriptions\022\252\001\n" - + "\022ListTopicSnapshots\022+.google.pubsub.v1.ListTopicSnapshotsReque" - + "st\032,.google.pubsub.v1.ListTopicSnapshots" - + "Response\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=projects/*/topics/*}/snapshots\022|\n" - + "\013DeleteTopic\022$.google.pubsub.v1.DeleteTopicRequest" - + "\032\026.google.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}\022\255\001\n" - + "\022DetachSubscription\022+.google.pubsub.v1.Deta" - + "chSubscriptionRequest\032,.google.pubsub.v1" - + ".DetachSubscriptionResponse\"<\202\323\344\223\0026\"4/v1" - + "/{subscription=projects/*/subscriptions/" - + "*}:detach\032p\312A\025pubsub.googleapis.com\322AUht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "form,https://www.googleapis.com/auth/pubsub2\322\025\n\n" + + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027.google.pubsub.v1.T" + + "opic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022\221\001\n" + + "\013UpdateTopic\022$.google.pubsub.v1.UpdateTopicRequest\032\027.google.pu" + + "bsub.v1.Topic\"C\332A\021topic,update_mask\202\323\344\223\002" + + ")2$/v1/{topic.name=projects/*/topics/*}:\001*\022\223\001\n" + + "\007Publish\022 .google.pubsub.v1.PublishRequest\032!.google.pubsub.v1.PublishRespo" + + "nse\"C\332A\016topic,messages\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics/*}:publish:\001*\022w\n" + + "\010GetTopic\022!.google.pubsub.v1.GetTopicRequest\032" + + "\027.google.pubsub.v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022\212\001\n\n" + + "ListTopics\022#.google.pubsub.v1.ListTopicsRe" + + "quest\032$.google.pubsub.v1.ListTopicsRespo" + + "nse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics\022\272\001\n" + + "\026ListTopicSubscriptions\022/.google.pubsub.v1.ListTopicSubscripti" + + "onsRequest\0320.google.pubsub.v1.ListTopicS" + + "ubscriptionsResponse\"=\332A\005topic\202\323\344\223\002/\022-/v" + + "1/{topic=projects/*/topics/*}/subscriptions\022\252\001\n" + + "\022ListTopicSnapshots\022+.google.pubsub.v1.ListTopicSnapshotsRequest\032,.google" + + ".pubsub.v1.ListTopicSnapshotsResponse\"9\332" + + "A\005topic\202\323\344\223\002+\022)/v1/{topic=projects/*/topics/*}/snapshots\022|\n" + + "\013DeleteTopic\022$.google.pubsub.v1.DeleteTopicRequest\032\026.google.p" + + "rotobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}\022\255\001\n" + + "\022DetachSubscription\022+.google.pubsub.v1.DetachSubscript" + + "ionRequest\032,.google.pubsub.v1.DetachSubs" + + "criptionResponse\"<\202\323\344\223\0026\"4/v1/{subscript" + + "ion=projects/*/subscriptions/*}:detach\032p" + + "\312A\025pubsub.googleapis.com\322AUhttps://www.g" + + "oogleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/pubsub2\322\025\n\n" + "Subscriber\022\264\001\n" - + "\022CreateSubscription\022\036.google.pubsub.v1.Subscription\032\036.goog" - + "le.pubsub.v1.Subscription\"^\332A+name,topic" - + ",push_config,ack_deadline_seconds\202\323\344\223\002*\032" - + "%/v1/{name=projects/*/subscriptions/*}:\001*\022\241\001\n" - + "\017GetSubscription\022(.google.pubsub.v1" - + ".GetSubscriptionRequest\032\036.google.pubsub." - + "v1.Subscription\"D\332A\014subscription\202\323\344\223\002/\022-" - + "/v1/{subscription=projects/*/subscriptions/*}\022\273\001\n" - + "\022UpdateSubscription\022+.google.pubsub.v1.UpdateSubscriptionRequest\032\036.goog" - + "le.pubsub.v1.Subscription\"X\332A\030subscripti" - + "on,update_mask\202\323\344\223\002722/v1/{subscription.name=projects/*/subscriptions/*}:\001*\022\246\001\n" - + "\021ListSubscriptions\022*.google.pubsub.v1.Lis" - + "tSubscriptionsRequest\032+.google.pubsub.v1" - + ".ListSubscriptionsResponse\"8\332A\007project\202\323" - + "\344\223\002(\022&/v1/{project=projects/*}/subscriptions\022\237\001\n" - + "\022DeleteSubscription\022+.google.pubsub.v1.DeleteSubscriptionRequest\032\026.googl" - + "e.protobuf.Empty\"D\332A\014subscription\202\323\344\223\002/*" - + "-/v1/{subscription=projects/*/subscriptions/*}\022\317\001\n" - + "\021ModifyAckDeadline\022*.google.pubsub.v1.ModifyAckDeadlineRequest\032\026.googl" - + "e.protobuf.Empty\"v\332A)subscription,ack_id" - + "s,ack_deadline_seconds\202\323\344\223\002D\"?/v1/{subsc" - + "ription=projects/*/subscriptions/*}:modifyAckDeadline:\001*\022\250\001\n" - + "\013Acknowledge\022$.google.pubsub.v1.AcknowledgeRequest\032\026.google." - + "protobuf.Empty\"[\332A\024subscription,ack_ids\202" - + "\323\344\223\002>\"9/v1/{subscription=projects/*/subscriptions/*}:acknowledge:\001*\022\320\001\n" - + "\004Pull\022\035.google.pubsub.v1.PullRequest\032\036.google.pub" - + "sub.v1.PullResponse\"\210\001\332A,subscription,re" - + "turn_immediately,max_messages\332A\031subscrip" - + "tion,max_messages\202\323\344\223\0027\"2/v1/{subscripti" - + "on=projects/*/subscriptions/*}:pull:\001*\022f\n\r" - + "StreamingPull\022&.google.pubsub.v1.Strea" - + "mingPullRequest\032\'.google.pubsub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n" - + "\020ModifyPushConfig\022).google.pubsub.v1.ModifyPushConfigR" - + "equest\032\026.google.protobuf.Empty\"d\332A\030subsc" - + "ription,push_config\202\323\344\223\002C\">/v1/{subscrip" - + "tion=projects/*/subscriptions/*}:modifyPushConfig:\001*\022\211\001\n" - + "\013GetSnapshot\022$.google.pubsub.v1.GetSnapshotRequest\032\032.google.pubs" - + "ub.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapshots/*}\022\226\001\n\r" - + "ListSnapshots\022&.google.pubsub.v1.ListSnapsh" - + "otsRequest\032\'.google.pubsub.v1.ListSnapsh" - + "otsResponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{project=projects/*}/snapshots\022\227\001\n" - + "\016CreateSnapshot\022\'.google.pubsub.v1.CreateSnapshotRe" - + "quest\032\032.google.pubsub.v1.Snapshot\"@\332A\021na" - + "me,subscription\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots/*}:\001*\022\243\001\n" - + "\016UpdateSnapshot\022\'.google.pubsub.v1.UpdateSnapshotRequest\032" - + "\032.google.pubsub.v1.Snapshot\"L\332A\024snapshot" - + ",update_mask\202\323\344\223\002/2*/v1/{snapshot.name=projects/*/snapshots/*}:\001*\022\213\001\n" - + "\016DeleteSnapshot\022\'.google.pubsub.v1.DeleteSnapshotRe" - + "quest\032\026.google.protobuf.Empty\"8\332A\010snapsh" - + "ot\202\323\344\223\002\'*%/v1/{snapshot=projects/*/snapshots/*}\022\204\001\n" - + "\004Seek\022\035.google.pubsub.v1.SeekRequest\032\036.google.pubsub.v1.SeekResponse\"" - + "=\202\323\344\223\0027\"2/v1/{subscription=projects/*/su" - + "bscriptions/*}:seek:\001*\032p\312A\025pubsub.google" - + "apis.com\322AUhttps://www.googleapis.com/au" - + "th/cloud-platform,https://www.googleapis.com/auth/pubsubB\247\003\n" - + "\024com.google.pubsub.v1B\013PubsubProtoP\001Z5cloud.google.com/go/pu" - + "bsub/v2/apiv1/pubsubpb;pubsubpb\252\002\026Google" - + ".Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1\352Ax\n" - + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{p" - + "roject}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352A\177\n" - + "#analyticshub.googleapis.com/Listing\022Xprojec" - + "ts/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listin" - + "g}b\006proto3" + + "\022CreateSubscription\022\036.google.pubsub.v1.Subscription\032\036.google.pubsub.v" + + "1.Subscription\"^\332A+name,topic,push_confi" + + "g,ack_deadline_seconds\202\323\344\223\002*\032%/v1/{name=projects/*/subscriptions/*}:\001*\022\241\001\n" + + "\017GetSubscription\022(.google.pubsub.v1.GetSubscri" + + "ptionRequest\032\036.google.pubsub.v1.Subscrip" + + "tion\"D\332A\014subscription\202\323\344\223\002/\022-/v1/{subscription=projects/*/subscriptions/*}\022\273\001\n" + + "\022UpdateSubscription\022+.google.pubsub.v1.Upd" + + "ateSubscriptionRequest\032\036.google.pubsub.v" + + "1.Subscription\"X\332A\030subscription,update_m" + + "ask\202\323\344\223\002722/v1/{subscription.name=projects/*/subscriptions/*}:\001*\022\246\001\n" + + "\021ListSubscriptions\022*.google.pubsub.v1.ListSubscripti" + + "onsRequest\032+.google.pubsub.v1.ListSubscr" + + "iptionsResponse\"8\332A\007project\202\323\344\223\002(\022&/v1/{project=projects/*}/subscriptions\022\237\001\n" + + "\022DeleteSubscription\022+.google.pubsub.v1.Dele" + + "teSubscriptionRequest\032\026.google.protobuf." + + "Empty\"D\332A\014subscription\202\323\344\223\002/*-/v1/{subscription=projects/*/subscriptions/*}\022\317\001\n" + + "\021ModifyAckDeadline\022*.google.pubsub.v1.Mod" + + "ifyAckDeadlineRequest\032\026.google.protobuf." + + "Empty\"v\332A)subscription,ack_ids,ack_deadl" + + "ine_seconds\202\323\344\223\002D\"?/v1/{subscription=pro" + + "jects/*/subscriptions/*}:modifyAckDeadline:\001*\022\250\001\n" + + "\013Acknowledge\022$.google.pubsub.v1.AcknowledgeRequest\032\026.google.protobuf.Em" + + "pty\"[\332A\024subscription,ack_ids\202\323\344\223\002>\"9/v1/" + + "{subscription=projects/*/subscriptions/*}:acknowledge:\001*\022\320\001\n" + + "\004Pull\022\035.google.pubsub.v1.PullRequest\032\036.google.pubsub.v1.Pull" + + "Response\"\210\001\332A,subscription,return_immedi" + + "ately,max_messages\332A\031subscription,max_me" + + "ssages\202\323\344\223\0027\"2/v1/{subscription=projects/*/subscriptions/*}:pull:\001*\022f\n\r" + + "StreamingPull\022&.google.pubsub.v1.StreamingPullReq" + + "uest\032\'.google.pubsub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n" + + "\020ModifyPushConfig\022).google.pubsub.v1.ModifyPushConfigRequest\032\026.go" + + "ogle.protobuf.Empty\"d\332A\030subscription,pus" + + "h_config\202\323\344\223\002C\">/v1/{subscription=projec" + + "ts/*/subscriptions/*}:modifyPushConfig:\001*\022\211\001\n" + + "\013GetSnapshot\022$.google.pubsub.v1.Get" + + "SnapshotRequest\032\032.google.pubsub.v1.Snaps" + + "hot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapshots/*}\022\226\001\n\r" + + "ListSnapshots\022&.google.pubsub.v1.ListSnapshotsRequest\032" + + "\'.google.pubsub.v1.ListSnapshotsResponse" + + "\"4\332A\007project\202\323\344\223\002$\022\"/v1/{project=projects/*}/snapshots\022\227\001\n" + + "\016CreateSnapshot\022\'.google.pubsub.v1.CreateSnapshotRequest\032\032.goo" + + "gle.pubsub.v1.Snapshot\"@\332A\021name,subscrip" + + "tion\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots/*}:\001*\022\243\001\n" + + "\016UpdateSnapshot\022\'.google.pubsub.v1.UpdateSnapshotRequest\032\032.google.pu" + + "bsub.v1.Snapshot\"L\332A\024snapshot,update_mas" + + "k\202\323\344\223\002/2*/v1/{snapshot.name=projects/*/snapshots/*}:\001*\022\213\001\n" + + "\016DeleteSnapshot\022\'.google.pubsub.v1.DeleteSnapshotRequest\032\026.goo" + + "gle.protobuf.Empty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snapshot=projects/*/snapshots/*}\022\204\001\n" + + "\004Seek\022\035.google.pubsub.v1.SeekRequest\032\036.g" + + "oogle.pubsub.v1.SeekResponse\"=\202\323\344\223\0027\"2/v" + + "1/{subscription=projects/*/subscriptions" + + "/*}:seek:\001*\032p\312A\025pubsub.googleapis.com\322AU" + + "https://www.googleapis.com/auth/cloud-pl" + + "atform,https://www.googleapis.com/auth/pubsubB\247\003\n" + + "\024com.google.pubsub.v1B\013PubsubProtoP\001Z5cloud.google.com/go/pubsub/v2/api" + + "v1/pubsubpb;pubsubpb\252\002\026Google.Cloud.PubS" + + "ub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project}/loc" + + "ations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352A\177\n" + + "#analyticshub.googleapis.com/Listing\022Xprojects/{project" + + "}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1711,7 +1731,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_BigtableConfig_descriptor, new java.lang.String[] { - "Table", "AppProfileId", "ServiceAccountEmail", "WriteMetadata", "State", + "Table", + "AppProfileId", + "ServiceAccountEmail", + "WriteMetadata", + "ColumnFamilyMapping", + "State", + "MessageMapping", + }); + internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_descriptor = + internal_static_google_pubsub_v1_BigtableConfig_descriptor.getNestedType(0); + internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_descriptor, + new java.lang.String[] { + "RowKeySchema", "DelimitedKey", "KeyDefinition", + }); + internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_RowKeySchema_descriptor = + internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_descriptor + .getNestedType(0); + internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_RowKeySchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_RowKeySchema_descriptor, + new java.lang.String[] {}); + internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_DelimitedKey_descriptor = + internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_descriptor + .getNestedType(1); + internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_DelimitedKey_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_pubsub_v1_BigtableConfig_ColumnFamilyMapping_DelimitedKey_descriptor, + new java.lang.String[] { + "KeyFields", "Delimiter", }); internal_static_google_pubsub_v1_CloudStorageConfig_descriptor = getDescriptor().getMessageType(31); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 472ac28a4f9f..5dc3fdebd08c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { *
          * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2251 + * google/pubsub/v1/pubsub.proto;l=2327 * @return The returnImmediately. */ @java.lang.Override @@ -673,7 +673,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2251 + * google/pubsub/v1/pubsub.proto;l=2327 * @return The returnImmediately. */ @java.lang.Override @@ -700,7 +700,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2251 + * google/pubsub/v1/pubsub.proto;l=2327 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -731,7 +731,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2251 + * google/pubsub/v1/pubsub.proto;l=2327 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index e51c0f21619d..2a5022dc2dbb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -75,7 +75,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2251 + * google/pubsub/v1/pubsub.proto;l=2327 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 3dc32c4fb072..51b2707f19bc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -1927,14 +1927,72 @@ message BigQueryConfig { string service_account_email = 7 [(google.api.field_behavior) = OPTIONAL]; } -// Configuration for a Bigtable subscription. The Pub/Sub message will be -// written to a Bigtable row as follows: -// - row key: subscription name, message ID hash, and message ID delimited by -// `#`. -// - columns: message bytes written to a single column family `data` with an -// empty-string column qualifier. -// - cell timestamp: the message publish timestamp. +// Configuration for a Bigtable subscription, which will write a Pub/Sub message +// to a Bigtable row. See the ColumnFamilyMapping documentation below for +// details on how the row keys and columns will be written. message BigtableConfig { + // Configuration for writing a Pub/Sub message to a Bigtable row with a + // user-defined key and writing to column families. + // + // If this field is set: + // + // - The subscription messages must be formatted as JSON. + // - The row key mapping is configured in the `key_definition` section. + // - The top-level fields will be written either: + // - By default, they will be written to the `data` column family with the + // field name as the column qualifier. + // - But if the field name matches an existing column family (except for + // the default `data` column), then that field will be written to that + // column family, either as a scalar or its next level nested fields if + // it's a JSON object. + // - The cell timestamp will be the message publish timestamp. + // + // If the field is not set, the default behavior is to write: + // + // - row key: subscription name, message ID hash, and message ID delimited by + // `#`. + // - columns: message bytes written to a single column family `data` with an + // empty-string column qualifier. + // - cell timestamp: the message publish timestamp. + message ColumnFamilyMapping { + // Row key definition that reads the input message fields based on the field + // names of the table's structured row key + // ({$universe.dns_names.final_documentation_domain}/bigtable/docs/manage-row-key-schemas). + // Note that if the field is nullable in the structured row key, then it + // need not be present in the message; null will be used instead. + message RowKeySchema {} + + // Row key definition based on fields from the message. + message DelimitedKey { + // Required. The key fields to construct from the row key. The fields must + // be present in the message as a top-level field, i.e. JSON path + // expressions will not traverse into nested objects. + repeated string key_fields = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Byte sequence used to delimit concatenated fields. Must be + // specified if multiple key fields are used. The delimiter must contain + // at least 1 character and at most 50 characters. + bytes delimiter = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // How to construct the row key from the Pub/Sub message. + // If not specified, the default behavior is to construct the row key from + // the subscription name, message ID hash, and message ID delimited by `#`. + oneof key_definition { + // Optional. If set, the row key is constructed from the field names of + // the table's structured row key + // ({$universe.dns_names.final_documentation_domain}/bigtable/docs/manage-row-key-schemas). + // Note that if the field is nullable in the structured row key, then it + // need not be present in the message; null will be used instead. + RowKeySchema row_key_schema = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, the row key is constructed from the given key fields + // and delimiter. All key fields must be present in the message; + // otherwise, the message remains in the subscription backlog. + DelimitedKey delimited_key = 2 [(google.api.field_behavior) = OPTIONAL]; + } + } + // Possible states for a Bigtable subscription. // Note: more states could be added in the future. Please code accordingly. enum State { @@ -2001,6 +2059,24 @@ message BigtableConfig { // column. bool write_metadata = 5 [(google.api.field_behavior) = OPTIONAL]; + // How to write a Pub/Sub message to a Bigtable row, notably for defining keys + // and columns. + // + // If not specified, the default is the following: + // + // - row key: subscription name, message ID hash, and message ID delimited by + // `#`. + // - columns: message bytes written to a single column family `data` with an + // empty-string column qualifier. + // - cell timestamp: the message publish timestamp. + oneof message_mapping { + // Optional. Configuration that allows writing row keys and/or columns based + // on fields in the input message. The input message format must be JSON if + // this field is set. + ColumnFamilyMapping column_family_mapping = 6 + [(google.api.field_behavior) = OPTIONAL]; + } + // Output only. An output-only field that indicates whether or not the // subscription can receive messages. State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClient.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClient.java index ce826401a8a1..1c05a95589dd 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClient.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClient.java @@ -122,6 +122,31 @@ * * * + *

          ListAclPolicies + *

          Lists all ACL policies owned by a project in either the specified location (region) or all locations. + *

          The location should have the following format: + *

            + *
          • `projects/{project_id}/locations/{location_id}` + *
          + *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • listAclPolicies(ListAclPoliciesRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • listAclPolicies(LocationName parent) + *

          • listAclPolicies(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.

          + *
            + *
          • listAclPoliciesPagedCallable() + *

          • listAclPoliciesCallable() + *

          + * + * + * *

          GetCluster *

          Gets the details of a specific Redis cluster. * @@ -141,6 +166,25 @@ * * * + *

          GetAclPolicy + *

          Gets the details of a specific Redis Cluster ACL policy. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • getAclPolicy(GetAclPolicyRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • getAclPolicy(AclPolicyName name) + *

          • getAclPolicy(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.

          + *
            + *
          • getAclPolicyCallable() + *

          + * + * + * *

          UpdateCluster *

          Updates the metadata and configuration of a specific Redis cluster. *

          Completed longrunning.Operation will contain the new cluster object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. @@ -161,6 +205,27 @@ * * * + *

          UpdateAclPolicy + *

          Updates the ACL policy. + *

          The operation applies the updated ACL policy to all of the linked clusters. If Memorystore can apply the policy to all clusters, then the operation returns a SUCCESS status. If Memorystore can't apply the policy to all clusters, then to ensure eventual consistency, Memorystore uses reconciliation to apply the policy to the failed clusters. + *

          Completed longrunning.Operation will contain the new ACL policy object in the response field. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • updateAclPolicyAsync(UpdateAclPolicyRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • updateAclPolicyAsync(AclPolicy aclPolicy, 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.

          + *
            + *
          • updateAclPolicyOperationCallable() + *

          • updateAclPolicyCallable() + *

          + * + * + * *

          DeleteCluster *

          Deletes a specific Redis cluster. Cluster stops serving and data is deleted. * @@ -181,6 +246,65 @@ * * * + *

          DeleteAclPolicy + *

          Deletes a specific ACL policy. This action will delete the ACL policy and all the rules associated with it. An ACL policy cannot be deleted if it is attached to a cluster. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • deleteAclPolicyAsync(DeleteAclPolicyRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • deleteAclPolicyAsync(AclPolicyName name) + *

          • deleteAclPolicyAsync(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.

          + *
            + *
          • deleteAclPolicyOperationCallable() + *

          • deleteAclPolicyCallable() + *

          + * + * + * + *

          GetAclPolicyRevision + *

          Gets details of a specific ACL policy revision. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • getAclPolicyRevision(GetAclPolicyRevisionRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • getAclPolicyRevision(AclPolicyRevisionName name) + *

          • getAclPolicyRevision(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.

          + *
            + *
          • getAclPolicyRevisionCallable() + *

          + * + * + * + *

          ListAclPolicyRevisions + *

          Lists all ACL policy revisions in a given ACL policy. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • listAclPolicyRevisions(ListAclPolicyRevisionsRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • listAclPolicyRevisions(AclPolicyName parent) + *

          • listAclPolicyRevisions(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.

          + *
            + *
          • listAclPolicyRevisionsPagedCallable() + *

          • listAclPolicyRevisionsCallable() + *

          + * + * + * *

          CreateCluster *

          Creates a Redis cluster based on the specified properties. The creation is executed asynchronously and callers may check the returned operation to track its progress. Once the operation is completed the Redis cluster will be fully functional. The completed longrunning.Operation will contain the new cluster object in the response field. *

          The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. @@ -202,6 +326,25 @@ * * * + *

          CreateAclPolicy + *

          Creates an ACL policy. The creation is executed synchronously and the policy is available for use immediately after the RPC returns. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • createAclPolicy(CreateAclPolicyRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • createAclPolicy(LocationName parent, AclPolicy aclPolicy, String aclPolicyId) + *

          • createAclPolicy(String parent, AclPolicy aclPolicy, String aclPolicyId) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • createAclPolicyCallable() + *

          + * + * + * *

          GetClusterCertificateAuthority *

          Gets the details of certificate authority information for Redis cluster. * @@ -394,6 +537,166 @@ * * * + *

          ListTokenAuthUsers + *

          Lists all the token auth users for a token based auth enabled cluster. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • listTokenAuthUsers(ListTokenAuthUsersRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • listTokenAuthUsers(ClusterName parent) + *

          • listTokenAuthUsers(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.

          + *
            + *
          • listTokenAuthUsersPagedCallable() + *

          • listTokenAuthUsersCallable() + *

          + * + * + * + *

          GetTokenAuthUser + *

          Gets a specific token auth user for a basic auth enabled cluster. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • getTokenAuthUser(GetTokenAuthUserRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • getTokenAuthUser(TokenAuthUserName name) + *

          • getTokenAuthUser(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.

          + *
            + *
          • getTokenAuthUserCallable() + *

          + * + * + * + *

          ListAuthTokens + *

          Lists all the auth tokens for a specific token auth user. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • listAuthTokens(ListAuthTokensRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • listAuthTokens(TokenAuthUserName parent) + *

          • listAuthTokens(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.

          + *
            + *
          • listAuthTokensPagedCallable() + *

          • listAuthTokensCallable() + *

          + * + * + * + *

          GetAuthToken + *

          Gets a specific auth token for a specific token auth user. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • getAuthToken(GetAuthTokenRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • getAuthToken(AuthTokenName name) + *

          • getAuthToken(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.

          + *
            + *
          • getAuthTokenCallable() + *

          + * + * + * + *

          AddTokenAuthUser + *

          Adds a token auth user for a token based auth enabled cluster. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • addTokenAuthUserAsync(AddTokenAuthUserRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • addTokenAuthUserAsync(ClusterName cluster, TokenAuthUserName tokenAuthUser) + *

          • addTokenAuthUserAsync(ClusterName cluster, String tokenAuthUser) + *

          • addTokenAuthUserAsync(String cluster, TokenAuthUserName tokenAuthUser) + *

          • addTokenAuthUserAsync(String cluster, String tokenAuthUser) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • addTokenAuthUserOperationCallable() + *

          • addTokenAuthUserCallable() + *

          + * + * + * + *

          DeleteTokenAuthUser + *

          Deletes a token auth user for a token based auth enabled cluster. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • deleteTokenAuthUserAsync(DeleteTokenAuthUserRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • deleteTokenAuthUserAsync(TokenAuthUserName name) + *

          • deleteTokenAuthUserAsync(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.

          + *
            + *
          • deleteTokenAuthUserOperationCallable() + *

          • deleteTokenAuthUserCallable() + *

          + * + * + * + *

          AddAuthToken + *

          Adds a auth token for a user of a token based auth enabled cluster. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • addAuthTokenAsync(AddAuthTokenRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • addAuthTokenAsync(TokenAuthUserName tokenAuthUser, AuthToken authToken) + *

          • addAuthTokenAsync(String tokenAuthUser, AuthToken authToken) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • addAuthTokenOperationCallable() + *

          • addAuthTokenCallable() + *

          + * + * + * + *

          DeleteAuthToken + *

          Removes a auth token for a user of a token based auth enabled instance. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • deleteAuthTokenAsync(DeleteAuthTokenRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • deleteAuthTokenAsync(AuthTokenName name) + *

          • deleteAuthTokenAsync(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.

          + *
            + *
          • deleteAuthTokenOperationCallable() + *

          • deleteAuthTokenCallable() + *

          + * + * + * *

          ListLocations *

          Lists information about the supported locations for this service. * @@ -773,7 +1076,17 @@ public final UnaryCallable listCluste // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a specific Redis cluster. + * Lists all ACL policies owned by a project in either the specified location (region) or all + * locations. + * + *

          The location should have the following format: + * + *

            + *
          • `projects/{project_id}/locations/{location_id}` + *
          + * + *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. * *

          Sample code: * @@ -784,25 +1097,39 @@ public final UnaryCallable listCluste * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - * Cluster response = cloudRedisClusterClient.getCluster(name); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (AclPolicy element : cloudRedisClusterClient.listAclPolicies(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. Redis cluster resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` - * refers to a GCP region. + * @param parent Required. The resource name of the ACL policy location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google + * Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Cluster getCluster(@Nullable ClusterName name) { - GetClusterRequest request = - GetClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getCluster(request); + public final ListAclPoliciesPagedResponse listAclPolicies(@Nullable LocationName parent) { + ListAclPoliciesRequest request = + ListAclPoliciesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAclPolicies(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a specific Redis cluster. + * Lists all ACL policies owned by a project in either the specified location (region) or all + * locations. + * + *

          The location should have the following format: + * + *

            + *
          • `projects/{project_id}/locations/{location_id}` + *
          + * + *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. * *

          Sample code: * @@ -813,52 +1140,78 @@ public final Cluster getCluster(@Nullable ClusterName name) { * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); - * Cluster response = cloudRedisClusterClient.getCluster(name); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (AclPolicy element : cloudRedisClusterClient.listAclPolicies(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. Redis cluster resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` - * refers to a GCP region. + * @param parent Required. The resource name of the ACL policy location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google + * Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Cluster getCluster(String name) { - GetClusterRequest request = GetClusterRequest.newBuilder().setName(name).build(); - return getCluster(request); + public final ListAclPoliciesPagedResponse listAclPolicies(String parent) { + ListAclPoliciesRequest request = ListAclPoliciesRequest.newBuilder().setParent(parent).build(); + return listAclPolicies(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a specific Redis cluster. + * Lists all ACL policies owned by a project in either the specified location (region) or all + * locations. * - *

          Sample code: + *

          The location should have the following format: * - *

          {@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
          +   * 
            + *
          • `projects/{project_id}/locations/{location_id}` + *
          + * + *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          -   *   GetClusterRequest request =
          -   *       GetClusterRequest.newBuilder()
          -   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
          +   *   ListAclPoliciesRequest request =
          +   *       ListAclPoliciesRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
              *           .build();
          -   *   Cluster response = cloudRedisClusterClient.getCluster(request);
          +   *   for (AclPolicy element : cloudRedisClusterClient.listAclPolicies(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 Cluster getCluster(GetClusterRequest request) { - return getClusterCallable().call(request); + public final ListAclPoliciesPagedResponse listAclPolicies(ListAclPoliciesRequest request) { + return listAclPoliciesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a specific Redis cluster. + * Lists all ACL policies owned by a project in either the specified location (region) or all + * locations. + * + *

          The location should have the following format: + * + *

            + *
          • `projects/{project_id}/locations/{location_id}` + *
          + * + *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. * *

          Sample code: * @@ -869,27 +1222,39 @@ public final Cluster getCluster(GetClusterRequest 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * GetClusterRequest request = - * GetClusterRequest.newBuilder() - * .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + * ListAclPoliciesRequest request = + * ListAclPoliciesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = cloudRedisClusterClient.getClusterCallable().futureCall(request); + * ApiFuture future = + * cloudRedisClusterClient.listAclPoliciesPagedCallable().futureCall(request); * // Do something. - * Cluster response = future.get(); + * for (AclPolicy element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * }

          */ - public final UnaryCallable getClusterCallable() { - return stub.getClusterCallable(); + public final UnaryCallable + listAclPoliciesPagedCallable() { + return stub.listAclPoliciesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the metadata and configuration of a specific Redis cluster. + * Lists all ACL policies owned by a project in either the specified location (region) or all + * locations. * - *

          Completed longrunning.Operation will contain the new cluster object in the response field. - * The returned operation is automatically deleted after a few hours, so there is no need to call - * DeleteOperation. + *

          The location should have the following format: + * + *

            + *
          • `projects/{project_id}/locations/{location_id}` + *
          + * + *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. * *

          Sample code: * @@ -900,33 +1265,36 @@ public final UnaryCallable getClusterCallable() { * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * Cluster cluster = Cluster.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * Cluster response = cloudRedisClusterClient.updateClusterAsync(cluster, updateMask).get(); + * ListAclPoliciesRequest request = + * ListAclPoliciesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListAclPoliciesResponse response = + * cloudRedisClusterClient.listAclPoliciesCallable().call(request); + * for (AclPolicy element : response.getAclPoliciesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @param cluster Required. Update description. Only fields specified in update_mask are updated. - * @param updateMask Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field may only include these fields from - * [Cluster][google.cloud.redis.cluster.v1.Cluster]: - *

          * `size_gb` * `replica_count` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updateClusterAsync( - Cluster cluster, FieldMask updateMask) { - UpdateClusterRequest request = - UpdateClusterRequest.newBuilder().setCluster(cluster).setUpdateMask(updateMask).build(); - return updateClusterAsync(request); + public final UnaryCallable + listAclPoliciesCallable() { + return stub.listAclPoliciesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the metadata and configuration of a specific Redis cluster. - * - *

          Completed longrunning.Operation will contain the new cluster object in the response field. - * The returned operation is automatically deleted after a few hours, so there is no need to call - * DeleteOperation. + * Gets the details of a specific Redis cluster. * *

          Sample code: * @@ -937,30 +1305,25 @@ public final OperationFuture updateClusterAsync( * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * UpdateClusterRequest request = - * UpdateClusterRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setCluster(Cluster.newBuilder().build()) - * .setRequestId("requestId693933066") - * .build(); - * Cluster response = cloudRedisClusterClient.updateClusterAsync(request).get(); + * ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + * Cluster response = cloudRedisClusterClient.getCluster(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updateClusterAsync(UpdateClusterRequest request) { - return updateClusterOperationCallable().futureCall(request); + public final Cluster getCluster(@Nullable ClusterName name) { + GetClusterRequest request = + GetClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getCluster(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the metadata and configuration of a specific Redis cluster. - * - *

          Completed longrunning.Operation will contain the new cluster object in the response field. - * The returned operation is automatically deleted after a few hours, so there is no need to call - * DeleteOperation. + * Gets the details of a specific Redis cluster. * *

          Sample code: * @@ -971,31 +1334,24 @@ public final OperationFuture updateClusterAsync(UpdateClusterReque * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * UpdateClusterRequest request = - * UpdateClusterRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setCluster(Cluster.newBuilder().build()) - * .setRequestId("requestId693933066") - * .build(); - * OperationFuture future = - * cloudRedisClusterClient.updateClusterOperationCallable().futureCall(request); - * // Do something. - * Cluster response = future.get(); + * String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); + * Cluster response = cloudRedisClusterClient.getCluster(name); * } * } + * + * @param name Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationCallable - updateClusterOperationCallable() { - return stub.updateClusterOperationCallable(); + public final Cluster getCluster(String name) { + GetClusterRequest request = GetClusterRequest.newBuilder().setName(name).build(); + return getCluster(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the metadata and configuration of a specific Redis cluster. - * - *

          Completed longrunning.Operation will contain the new cluster object in the response field. - * The returned operation is automatically deleted after a few hours, so there is no need to call - * DeleteOperation. + * Gets the details of a specific Redis cluster. * *

          Sample code: * @@ -1006,26 +1362,24 @@ public final OperationFuture updateClusterAsync(UpdateClusterReque * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * UpdateClusterRequest request = - * UpdateClusterRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setCluster(Cluster.newBuilder().build()) - * .setRequestId("requestId693933066") + * GetClusterRequest request = + * GetClusterRequest.newBuilder() + * .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) * .build(); - * ApiFuture future = - * cloudRedisClusterClient.updateClusterCallable().futureCall(request); - * // Do something. - * Operation response = future.get(); + * Cluster response = cloudRedisClusterClient.getCluster(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 UnaryCallable updateClusterCallable() { - return stub.updateClusterCallable(); + public final Cluster getCluster(GetClusterRequest request) { + return getClusterCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a specific Redis cluster. Cluster stops serving and data is deleted. + * Gets the details of a specific Redis cluster. * *

          Sample code: * @@ -1036,25 +1390,23 @@ public final UnaryCallable updateClusterCallabl * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - * cloudRedisClusterClient.deleteClusterAsync(name).get(); + * GetClusterRequest request = + * GetClusterRequest.newBuilder() + * .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + * .build(); + * ApiFuture future = cloudRedisClusterClient.getClusterCallable().futureCall(request); + * // Do something. + * Cluster response = future.get(); * } * } - * - * @param name Required. Redis cluster resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` - * refers to a GCP region. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteClusterAsync(@Nullable ClusterName name) { - DeleteClusterRequest request = - DeleteClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return deleteClusterAsync(request); + public final UnaryCallable getClusterCallable() { + return stub.getClusterCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a specific Redis cluster. Cluster stops serving and data is deleted. + * Gets the details of a specific Redis Cluster ACL policy. * *

          Sample code: * @@ -1065,24 +1417,25 @@ public final OperationFuture deleteClusterAsync(@Nullable ClusterNam * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); - * cloudRedisClusterClient.deleteClusterAsync(name).get(); + * AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + * AclPolicy response = cloudRedisClusterClient.getAclPolicy(name); * } * } * - * @param name Required. Redis cluster resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` - * refers to a GCP region. + * @param name Required. Redis ACL policy resource name using the form: + * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` where + * `location_id` refers to a Google Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteClusterAsync(String name) { - DeleteClusterRequest request = DeleteClusterRequest.newBuilder().setName(name).build(); - return deleteClusterAsync(request); + public final AclPolicy getAclPolicy(@Nullable AclPolicyName name) { + GetAclPolicyRequest request = + GetAclPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAclPolicy(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a specific Redis cluster. Cluster stops serving and data is deleted. + * Gets the details of a specific Redis Cluster ACL policy. * *

          Sample code: * @@ -1093,25 +1446,24 @@ public final OperationFuture deleteClusterAsync(String name) { * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * DeleteClusterRequest request = - * DeleteClusterRequest.newBuilder() - * .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - * .setRequestId("requestId693933066") - * .build(); - * cloudRedisClusterClient.deleteClusterAsync(request).get(); + * String name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString(); + * AclPolicy response = cloudRedisClusterClient.getAclPolicy(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. Redis ACL policy resource name using the form: + * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` where + * `location_id` refers to a Google Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteClusterAsync(DeleteClusterRequest request) { - return deleteClusterOperationCallable().futureCall(request); + public final AclPolicy getAclPolicy(String name) { + GetAclPolicyRequest request = GetAclPolicyRequest.newBuilder().setName(name).build(); + return getAclPolicy(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a specific Redis cluster. Cluster stops serving and data is deleted. + * Gets the details of a specific Redis Cluster ACL policy. * *

          Sample code: * @@ -1122,26 +1474,24 @@ public final OperationFuture deleteClusterAsync(DeleteClusterRequest * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * DeleteClusterRequest request = - * DeleteClusterRequest.newBuilder() - * .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - * .setRequestId("requestId693933066") + * GetAclPolicyRequest request = + * GetAclPolicyRequest.newBuilder() + * .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) * .build(); - * OperationFuture future = - * cloudRedisClusterClient.deleteClusterOperationCallable().futureCall(request); - * // Do something. - * future.get(); + * AclPolicy response = cloudRedisClusterClient.getAclPolicy(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 OperationCallable - deleteClusterOperationCallable() { - return stub.deleteClusterOperationCallable(); + public final AclPolicy getAclPolicy(GetAclPolicyRequest request) { + return getAclPolicyCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a specific Redis cluster. Cluster stops serving and data is deleted. + * Gets the details of a specific Redis Cluster ACL policy. * *

          Sample code: * @@ -1152,31 +1502,28 @@ public final OperationFuture deleteClusterAsync(DeleteClusterRequest * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * DeleteClusterRequest request = - * DeleteClusterRequest.newBuilder() - * .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - * .setRequestId("requestId693933066") + * GetAclPolicyRequest request = + * GetAclPolicyRequest.newBuilder() + * .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) * .build(); - * ApiFuture future = - * cloudRedisClusterClient.deleteClusterCallable().futureCall(request); + * ApiFuture future = + * cloudRedisClusterClient.getAclPolicyCallable().futureCall(request); * // Do something. - * future.get(); + * AclPolicy response = future.get(); * } * } */ - public final UnaryCallable deleteClusterCallable() { - return stub.deleteClusterCallable(); + public final UnaryCallable getAclPolicyCallable() { + return stub.getAclPolicyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a Redis cluster based on the specified properties. The creation is executed - * asynchronously and callers may check the returned operation to track its progress. Once the - * operation is completed the Redis cluster will be fully functional. The completed - * longrunning.Operation will contain the new cluster object in the response field. + * Updates the metadata and configuration of a specific Redis cluster. * - *

          The returned operation is automatically deleted after a few hours, so there is no need to - * call DeleteOperation. + *

          Completed longrunning.Operation will contain the new cluster object in the response field. + * The returned operation is automatically deleted after a few hours, so there is no need to call + * DeleteOperation. * *

          Sample code: * @@ -1187,102 +1534,33 @@ public final UnaryCallable deleteClusterCallabl * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Cluster cluster = Cluster.newBuilder().build(); - * String clusterId = "clusterId561939637"; - * Cluster response = - * cloudRedisClusterClient.createClusterAsync(parent, cluster, clusterId).get(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * Cluster response = cloudRedisClusterClient.updateClusterAsync(cluster, updateMask).get(); * } * } * - * @param parent Required. The resource name of the cluster location using the form: - * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. - * @param cluster Required. The cluster that is to be created. - * @param clusterId Required. The logical name of the Redis cluster in the customer project with - * the following restrictions: - *

            - *
          • Must contain only lowercase letters, numbers, and hyphens. - *
          • Must start with a letter. - *
          • Must be between 1-63 characters. - *
          • Must end with a number or a letter. - *
          • Must be unique within the customer project / location - *
          - * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createClusterAsync( - @Nullable LocationName parent, Cluster cluster, String clusterId) { - CreateClusterRequest request = - CreateClusterRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setCluster(cluster) - .setClusterId(clusterId) - .build(); - return createClusterAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a Redis cluster based on the specified properties. The creation is executed - * asynchronously and callers may check the returned operation to track its progress. Once the - * operation is completed the Redis cluster will be fully functional. The completed - * longrunning.Operation will contain the new cluster object in the response field. - * - *

          The returned operation is automatically deleted after a few hours, so there is no need to - * call DeleteOperation. - * - *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          -   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
          -   *   Cluster cluster = Cluster.newBuilder().build();
          -   *   String clusterId = "clusterId561939637";
          -   *   Cluster response =
          -   *       cloudRedisClusterClient.createClusterAsync(parent, cluster, clusterId).get();
          -   * }
          -   * }
          - * - * @param parent Required. The resource name of the cluster location using the form: - * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. - * @param cluster Required. The cluster that is to be created. - * @param clusterId Required. The logical name of the Redis cluster in the customer project with - * the following restrictions: - *
            - *
          • Must contain only lowercase letters, numbers, and hyphens. - *
          • Must start with a letter. - *
          • Must be between 1-63 characters. - *
          • Must end with a number or a letter. - *
          • Must be unique within the customer project / location - *
          - * + * @param cluster Required. Update description. Only fields specified in update_mask are updated. + * @param updateMask Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field may only include these fields from + * [Cluster][google.cloud.redis.cluster.v1.Cluster]: + *

          * `size_gb` * `replica_count` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createClusterAsync( - String parent, Cluster cluster, String clusterId) { - CreateClusterRequest request = - CreateClusterRequest.newBuilder() - .setParent(parent) - .setCluster(cluster) - .setClusterId(clusterId) - .build(); - return createClusterAsync(request); + public final OperationFuture updateClusterAsync( + Cluster cluster, FieldMask updateMask) { + UpdateClusterRequest request = + UpdateClusterRequest.newBuilder().setCluster(cluster).setUpdateMask(updateMask).build(); + return updateClusterAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a Redis cluster based on the specified properties. The creation is executed - * asynchronously and callers may check the returned operation to track its progress. Once the - * operation is completed the Redis cluster will be fully functional. The completed - * longrunning.Operation will contain the new cluster object in the response field. + * Updates the metadata and configuration of a specific Redis cluster. * - *

          The returned operation is automatically deleted after a few hours, so there is no need to - * call DeleteOperation. + *

          Completed longrunning.Operation will contain the new cluster object in the response field. + * The returned operation is automatically deleted after a few hours, so there is no need to call + * DeleteOperation. * *

          Sample code: * @@ -1293,33 +1571,30 @@ public final OperationFuture createClusterAsync( * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * CreateClusterRequest request = - * CreateClusterRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setClusterId("clusterId561939637") + * UpdateClusterRequest request = + * UpdateClusterRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) * .setCluster(Cluster.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); - * Cluster response = cloudRedisClusterClient.createClusterAsync(request).get(); + * Cluster response = cloudRedisClusterClient.updateClusterAsync(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 createClusterAsync(CreateClusterRequest request) { - return createClusterOperationCallable().futureCall(request); + public final OperationFuture updateClusterAsync(UpdateClusterRequest request) { + return updateClusterOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a Redis cluster based on the specified properties. The creation is executed - * asynchronously and callers may check the returned operation to track its progress. Once the - * operation is completed the Redis cluster will be fully functional. The completed - * longrunning.Operation will contain the new cluster object in the response field. + * Updates the metadata and configuration of a specific Redis cluster. * - *

          The returned operation is automatically deleted after a few hours, so there is no need to - * call DeleteOperation. + *

          Completed longrunning.Operation will contain the new cluster object in the response field. + * The returned operation is automatically deleted after a few hours, so there is no need to call + * DeleteOperation. * *

          Sample code: * @@ -1330,34 +1605,31 @@ public final OperationFuture createClusterAsync(CreateClusterReque * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * CreateClusterRequest request = - * CreateClusterRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setClusterId("clusterId561939637") + * UpdateClusterRequest request = + * UpdateClusterRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) * .setCluster(Cluster.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); * OperationFuture future = - * cloudRedisClusterClient.createClusterOperationCallable().futureCall(request); + * cloudRedisClusterClient.updateClusterOperationCallable().futureCall(request); * // Do something. * Cluster response = future.get(); * } * } */ - public final OperationCallable - createClusterOperationCallable() { - return stub.createClusterOperationCallable(); + public final OperationCallable + updateClusterOperationCallable() { + return stub.updateClusterOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a Redis cluster based on the specified properties. The creation is executed - * asynchronously and callers may check the returned operation to track its progress. Once the - * operation is completed the Redis cluster will be fully functional. The completed - * longrunning.Operation will contain the new cluster object in the response field. + * Updates the metadata and configuration of a specific Redis cluster. * - *

          The returned operation is automatically deleted after a few hours, so there is no need to - * call DeleteOperation. + *

          Completed longrunning.Operation will contain the new cluster object in the response field. + * The returned operation is automatically deleted after a few hours, so there is no need to call + * DeleteOperation. * *

          Sample code: * @@ -1368,27 +1640,34 @@ public final OperationFuture createClusterAsync(CreateClusterReque * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * CreateClusterRequest request = - * CreateClusterRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setClusterId("clusterId561939637") + * UpdateClusterRequest request = + * UpdateClusterRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) * .setCluster(Cluster.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); * ApiFuture future = - * cloudRedisClusterClient.createClusterCallable().futureCall(request); + * cloudRedisClusterClient.updateClusterCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * } */ - public final UnaryCallable createClusterCallable() { - return stub.createClusterCallable(); + public final UnaryCallable updateClusterCallable() { + return stub.updateClusterCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of certificate authority information for Redis cluster. + * Updates the ACL policy. + * + *

          The operation applies the updated ACL policy to all of the linked clusters. If Memorystore + * can apply the policy to all clusters, then the operation returns a SUCCESS status. If + * Memorystore can't apply the policy to all clusters, then to ensure eventual consistency, + * Memorystore uses reconciliation to apply the policy to the failed clusters. + * + *

          Completed longrunning.Operation will contain the new ACL policy object in the response + * field. * *

          Sample code: * @@ -1399,29 +1678,41 @@ public final UnaryCallable createClusterCallabl * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * CertificateAuthorityName name = - * CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - * CertificateAuthority response = cloudRedisClusterClient.getClusterCertificateAuthority(name); + * AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * AclPolicy response = + * cloudRedisClusterClient.updateAclPolicyAsync(aclPolicy, updateMask).get(); * } * } * - * @param name Required. Redis cluster certificate authority resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority` - * where `location_id` refers to a GCP region. + * @param aclPolicy Required. The ACL policy to be updated. + * @param updateMask Optional. Mask of fields to be updated. At least one path must be supplied in + * this field. The elements of the repeated paths field may only include these fields from + * `AclPolicy`: + *

          * `rules` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CertificateAuthority getClusterCertificateAuthority( - @Nullable CertificateAuthorityName name) { - GetClusterCertificateAuthorityRequest request = - GetClusterCertificateAuthorityRequest.newBuilder() - .setName(name == null ? null : name.toString()) + public final OperationFuture updateAclPolicyAsync( + AclPolicy aclPolicy, FieldMask updateMask) { + UpdateAclPolicyRequest request = + UpdateAclPolicyRequest.newBuilder() + .setAclPolicy(aclPolicy) + .setUpdateMask(updateMask) .build(); - return getClusterCertificateAuthority(request); + return updateAclPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of certificate authority information for Redis cluster. + * Updates the ACL policy. + * + *

          The operation applies the updated ACL policy to all of the linked clusters. If Memorystore + * can apply the policy to all clusters, then the operation returns a SUCCESS status. If + * Memorystore can't apply the policy to all clusters, then to ensure eventual consistency, + * Memorystore uses reconciliation to apply the policy to the failed clusters. + * + *

          Completed longrunning.Operation will contain the new ACL policy object in the response + * field. * *

          Sample code: * @@ -1432,25 +1723,35 @@ public final CertificateAuthority getClusterCertificateAuthority( * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * String name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); - * CertificateAuthority response = cloudRedisClusterClient.getClusterCertificateAuthority(name); + * UpdateAclPolicyRequest request = + * UpdateAclPolicyRequest.newBuilder() + * .setAclPolicy(AclPolicy.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setRequestId("requestId693933066") + * .build(); + * AclPolicy response = cloudRedisClusterClient.updateAclPolicyAsync(request).get(); * } * } * - * @param name Required. Redis cluster certificate authority resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority` - * where `location_id` refers to a GCP region. + * @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 CertificateAuthority getClusterCertificateAuthority(String name) { - GetClusterCertificateAuthorityRequest request = - GetClusterCertificateAuthorityRequest.newBuilder().setName(name).build(); - return getClusterCertificateAuthority(request); + public final OperationFuture updateAclPolicyAsync( + UpdateAclPolicyRequest request) { + return updateAclPolicyOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of certificate authority information for Redis cluster. + * Updates the ACL policy. + * + *

          The operation applies the updated ACL policy to all of the linked clusters. If Memorystore + * can apply the policy to all clusters, then the operation returns a SUCCESS status. If + * Memorystore can't apply the policy to all clusters, then to ensure eventual consistency, + * Memorystore uses reconciliation to apply the policy to the failed clusters. + * + *

          Completed longrunning.Operation will contain the new ACL policy object in the response + * field. * *

          Sample code: * @@ -1461,27 +1762,35 @@ public final CertificateAuthority getClusterCertificateAuthority(String name) { * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * GetClusterCertificateAuthorityRequest request = - * GetClusterCertificateAuthorityRequest.newBuilder() - * .setName( - * CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + * UpdateAclPolicyRequest request = + * UpdateAclPolicyRequest.newBuilder() + * .setAclPolicy(AclPolicy.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * CertificateAuthority response = - * cloudRedisClusterClient.getClusterCertificateAuthority(request); + * OperationFuture future = + * cloudRedisClusterClient.updateAclPolicyOperationCallable().futureCall(request); + * // Do something. + * AclPolicy 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 CertificateAuthority getClusterCertificateAuthority( - GetClusterCertificateAuthorityRequest request) { - return getClusterCertificateAuthorityCallable().call(request); + public final OperationCallable + updateAclPolicyOperationCallable() { + return stub.updateAclPolicyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of certificate authority information for Redis cluster. + * Updates the ACL policy. + * + *

          The operation applies the updated ACL policy to all of the linked clusters. If Memorystore + * can apply the policy to all clusters, then the operation returns a SUCCESS status. If + * Memorystore can't apply the policy to all clusters, then to ensure eventual consistency, + * Memorystore uses reconciliation to apply the policy to the failed clusters. + * + *

          Completed longrunning.Operation will contain the new ACL policy object in the response + * field. * *

          Sample code: * @@ -1492,26 +1801,26 @@ public final CertificateAuthority getClusterCertificateAuthority( * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * GetClusterCertificateAuthorityRequest request = - * GetClusterCertificateAuthorityRequest.newBuilder() - * .setName( - * CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + * UpdateAclPolicyRequest request = + * UpdateAclPolicyRequest.newBuilder() + * .setAclPolicy(AclPolicy.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * ApiFuture future = - * cloudRedisClusterClient.getClusterCertificateAuthorityCallable().futureCall(request); + * ApiFuture future = + * cloudRedisClusterClient.updateAclPolicyCallable().futureCall(request); * // Do something. - * CertificateAuthority response = future.get(); + * Operation response = future.get(); * } * } */ - public final UnaryCallable - getClusterCertificateAuthorityCallable() { - return stub.getClusterCertificateAuthorityCallable(); + public final UnaryCallable updateAclPolicyCallable() { + return stub.updateAclPolicyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of regional certificate authority information for Redis cluster. + * Deletes a specific Redis cluster. Cluster stops serving and data is deleted. * *

          Sample code: * @@ -1522,30 +1831,25 @@ public final CertificateAuthority getClusterCertificateAuthority( * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * SharedRegionalCertificateAuthorityName name = - * SharedRegionalCertificateAuthorityName.of("[PROJECT]", "[LOCATION]"); - * SharedRegionalCertificateAuthority response = - * cloudRedisClusterClient.getSharedRegionalCertificateAuthority(name); + * ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + * cloudRedisClusterClient.deleteClusterAsync(name).get(); * } * } * - * @param name Required. Regional certificate authority resource name using the form: - * `projects/{project_id}/locations/{location_id}/sharedRegionalCertificateAuthority` where - * `location_id` refers to a Google Cloud region. + * @param name Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SharedRegionalCertificateAuthority getSharedRegionalCertificateAuthority( - @Nullable SharedRegionalCertificateAuthorityName name) { - GetSharedRegionalCertificateAuthorityRequest request = - GetSharedRegionalCertificateAuthorityRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getSharedRegionalCertificateAuthority(request); + public final OperationFuture deleteClusterAsync(@Nullable ClusterName name) { + DeleteClusterRequest request = + DeleteClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteClusterAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of regional certificate authority information for Redis cluster. + * Deletes a specific Redis cluster. Cluster stops serving and data is deleted. * *

          Sample code: * @@ -1556,27 +1860,144 @@ public final SharedRegionalCertificateAuthority getSharedRegionalCertificateAuth * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * String name = SharedRegionalCertificateAuthorityName.of("[PROJECT]", "[LOCATION]").toString(); - * SharedRegionalCertificateAuthority response = - * cloudRedisClusterClient.getSharedRegionalCertificateAuthority(name); + * String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); + * cloudRedisClusterClient.deleteClusterAsync(name).get(); * } * } * - * @param name Required. Regional certificate authority resource name using the form: - * `projects/{project_id}/locations/{location_id}/sharedRegionalCertificateAuthority` where + * @param name Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteClusterAsync(String name) { + DeleteClusterRequest request = DeleteClusterRequest.newBuilder().setName(name).build(); + return deleteClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific Redis cluster. Cluster stops serving and data is deleted. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   DeleteClusterRequest request =
          +   *       DeleteClusterRequest.newBuilder()
          +   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   cloudRedisClusterClient.deleteClusterAsync(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 deleteClusterAsync(DeleteClusterRequest request) { + return deleteClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific Redis cluster. Cluster stops serving and data is deleted. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   DeleteClusterRequest request =
          +   *       DeleteClusterRequest.newBuilder()
          +   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       cloudRedisClusterClient.deleteClusterOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + deleteClusterOperationCallable() { + return stub.deleteClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific Redis cluster. Cluster stops serving and data is deleted. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   DeleteClusterRequest request =
          +   *       DeleteClusterRequest.newBuilder()
          +   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       cloudRedisClusterClient.deleteClusterCallable().futureCall(request);
          +   *   // Do something.
          +   *   future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable deleteClusterCallable() { + return stub.deleteClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific ACL policy. This action will delete the ACL policy and all the rules + * associated with it. An ACL policy cannot be deleted if it is attached to a cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
          +   *   cloudRedisClusterClient.deleteAclPolicyAsync(name).get();
          +   * }
          +   * }
          + * + * @param name Required. Redis ACL policy resource name using the form: + * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` where * `location_id` refers to a Google Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SharedRegionalCertificateAuthority getSharedRegionalCertificateAuthority( - String name) { - GetSharedRegionalCertificateAuthorityRequest request = - GetSharedRegionalCertificateAuthorityRequest.newBuilder().setName(name).build(); - return getSharedRegionalCertificateAuthority(request); + public final OperationFuture deleteAclPolicyAsync( + @Nullable AclPolicyName name) { + DeleteAclPolicyRequest request = + DeleteAclPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteAclPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of regional certificate authority information for Redis cluster. + * Deletes a specific ACL policy. This action will delete the ACL policy and all the rules + * associated with it. An ACL policy cannot be deleted if it is attached to a cluster. * *

          Sample code: * @@ -1587,27 +2008,57 @@ public final SharedRegionalCertificateAuthority getSharedRegionalCertificateAuth * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * GetSharedRegionalCertificateAuthorityRequest request = - * GetSharedRegionalCertificateAuthorityRequest.newBuilder() - * .setName( - * SharedRegionalCertificateAuthorityName.of("[PROJECT]", "[LOCATION]").toString()) + * String name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString(); + * cloudRedisClusterClient.deleteAclPolicyAsync(name).get(); + * } + * } + * + * @param name Required. Redis ACL policy resource name using the form: + * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` where + * `location_id` refers to a Google Cloud region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAclPolicyAsync(String name) { + DeleteAclPolicyRequest request = DeleteAclPolicyRequest.newBuilder().setName(name).build(); + return deleteAclPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific ACL policy. This action will delete the ACL policy and all the rules + * associated with it. An ACL policy cannot be deleted if it is attached to a cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   DeleteAclPolicyRequest request =
          +   *       DeleteAclPolicyRequest.newBuilder()
          +   *           .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .setEtag("etag3123477")
              *           .build();
          -   *   SharedRegionalCertificateAuthority response =
          -   *       cloudRedisClusterClient.getSharedRegionalCertificateAuthority(request);
          +   *   cloudRedisClusterClient.deleteAclPolicyAsync(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 SharedRegionalCertificateAuthority getSharedRegionalCertificateAuthority( - GetSharedRegionalCertificateAuthorityRequest request) { - return getSharedRegionalCertificateAuthorityCallable().call(request); + public final OperationFuture deleteAclPolicyAsync( + DeleteAclPolicyRequest request) { + return deleteAclPolicyOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of regional certificate authority information for Redis cluster. + * Deletes a specific ACL policy. This action will delete the ACL policy and all the rules + * associated with it. An ACL policy cannot be deleted if it is attached to a cluster. * *

          Sample code: * @@ -1618,29 +2069,28 @@ public final SharedRegionalCertificateAuthority getSharedRegionalCertificateAuth * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * GetSharedRegionalCertificateAuthorityRequest request = - * GetSharedRegionalCertificateAuthorityRequest.newBuilder() - * .setName( - * SharedRegionalCertificateAuthorityName.of("[PROJECT]", "[LOCATION]").toString()) + * DeleteAclPolicyRequest request = + * DeleteAclPolicyRequest.newBuilder() + * .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + * .setRequestId("requestId693933066") + * .setEtag("etag3123477") * .build(); - * ApiFuture future = - * cloudRedisClusterClient - * .getSharedRegionalCertificateAuthorityCallable() - * .futureCall(request); + * OperationFuture future = + * cloudRedisClusterClient.deleteAclPolicyOperationCallable().futureCall(request); * // Do something. - * SharedRegionalCertificateAuthority response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable< - GetSharedRegionalCertificateAuthorityRequest, SharedRegionalCertificateAuthority> - getSharedRegionalCertificateAuthorityCallable() { - return stub.getSharedRegionalCertificateAuthorityCallable(); + public final OperationCallable + deleteAclPolicyOperationCallable() { + return stub.deleteAclPolicyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Reschedules upcoming maintenance event. + * Deletes a specific ACL policy. This action will delete the ACL policy and all the rules + * associated with it. An ACL policy cannot be deleted if it is attached to a cluster. * *

          Sample code: * @@ -1651,42 +2101,2341 @@ public final SharedRegionalCertificateAuthority getSharedRegionalCertificateAuth * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - * RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType = - * RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0); - * Timestamp scheduleTime = Timestamp.newBuilder().build(); - * Cluster response = - * cloudRedisClusterClient - * .rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime) - * .get(); + * DeleteAclPolicyRequest request = + * DeleteAclPolicyRequest.newBuilder() + * .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + * .setRequestId("requestId693933066") + * .setEtag("etag3123477") + * .build(); + * ApiFuture future = + * cloudRedisClusterClient.deleteAclPolicyCallable().futureCall(request); + * // Do something. + * future.get(); + * } + * } + */ + public final UnaryCallable deleteAclPolicyCallable() { + return stub.deleteAclPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a specific ACL policy revision. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   AclPolicyRevisionName name =
          +   *       AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]");
          +   *   AclPolicyRevision response = cloudRedisClusterClient.getAclPolicyRevision(name);
          +   * }
          +   * }
          + * + * @param name Required. Redis ACL policy revision resource name using the form: + * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}` + * where `location_id` refers to a Google Cloud region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclPolicyRevision getAclPolicyRevision(@Nullable AclPolicyRevisionName name) { + GetAclPolicyRevisionRequest request = + GetAclPolicyRevisionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getAclPolicyRevision(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a specific ACL policy revision. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   String name =
          +   *       AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]")
          +   *           .toString();
          +   *   AclPolicyRevision response = cloudRedisClusterClient.getAclPolicyRevision(name);
          +   * }
          +   * }
          + * + * @param name Required. Redis ACL policy revision resource name using the form: + * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}` + * where `location_id` refers to a Google Cloud region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclPolicyRevision getAclPolicyRevision(String name) { + GetAclPolicyRevisionRequest request = + GetAclPolicyRevisionRequest.newBuilder().setName(name).build(); + return getAclPolicyRevision(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a specific ACL policy revision. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   GetAclPolicyRevisionRequest request =
          +   *       GetAclPolicyRevisionRequest.newBuilder()
          +   *           .setName(
          +   *               AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]")
          +   *                   .toString())
          +   *           .build();
          +   *   AclPolicyRevision response = cloudRedisClusterClient.getAclPolicyRevision(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 AclPolicyRevision getAclPolicyRevision(GetAclPolicyRevisionRequest request) { + return getAclPolicyRevisionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a specific ACL policy revision. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   GetAclPolicyRevisionRequest request =
          +   *       GetAclPolicyRevisionRequest.newBuilder()
          +   *           .setName(
          +   *               AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]")
          +   *                   .toString())
          +   *           .build();
          +   *   ApiFuture future =
          +   *       cloudRedisClusterClient.getAclPolicyRevisionCallable().futureCall(request);
          +   *   // Do something.
          +   *   AclPolicyRevision response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable + getAclPolicyRevisionCallable() { + return stub.getAclPolicyRevisionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ACL policy revisions in a given ACL policy. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   AclPolicyName parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
          +   *   for (AclPolicyRevision element :
          +   *       cloudRedisClusterClient.listAclPolicyRevisions(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The name of the ACL policy to list revisions for. Format: + * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAclPolicyRevisionsPagedResponse listAclPolicyRevisions( + @Nullable AclPolicyName parent) { + ListAclPolicyRevisionsRequest request = + ListAclPolicyRevisionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAclPolicyRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ACL policy revisions in a given ACL policy. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   String parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString();
          +   *   for (AclPolicyRevision element :
          +   *       cloudRedisClusterClient.listAclPolicyRevisions(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The name of the ACL policy to list revisions for. Format: + * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAclPolicyRevisionsPagedResponse listAclPolicyRevisions(String parent) { + ListAclPolicyRevisionsRequest request = + ListAclPolicyRevisionsRequest.newBuilder().setParent(parent).build(); + return listAclPolicyRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ACL policy revisions in a given ACL policy. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   ListAclPolicyRevisionsRequest request =
          +   *       ListAclPolicyRevisionsRequest.newBuilder()
          +   *           .setParent(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   for (AclPolicyRevision element :
          +   *       cloudRedisClusterClient.listAclPolicyRevisions(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 ListAclPolicyRevisionsPagedResponse listAclPolicyRevisions( + ListAclPolicyRevisionsRequest request) { + return listAclPolicyRevisionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ACL policy revisions in a given ACL policy. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   ListAclPolicyRevisionsRequest request =
          +   *       ListAclPolicyRevisionsRequest.newBuilder()
          +   *           .setParent(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       cloudRedisClusterClient.listAclPolicyRevisionsPagedCallable().futureCall(request);
          +   *   // Do something.
          +   *   for (AclPolicyRevision element : future.get().iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + listAclPolicyRevisionsPagedCallable() { + return stub.listAclPolicyRevisionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ACL policy revisions in a given ACL policy. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   ListAclPolicyRevisionsRequest request =
          +   *       ListAclPolicyRevisionsRequest.newBuilder()
          +   *           .setParent(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   while (true) {
          +   *     ListAclPolicyRevisionsResponse response =
          +   *         cloudRedisClusterClient.listAclPolicyRevisionsCallable().call(request);
          +   *     for (AclPolicyRevision element : response.getAclPolicyRevisionsList()) {
          +   *       // doThingsWith(element);
          +   *     }
          +   *     String nextPageToken = response.getNextPageToken();
          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
          +   *     } else {
          +   *       break;
          +   *     }
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + listAclPolicyRevisionsCallable() { + return stub.listAclPolicyRevisionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Redis cluster based on the specified properties. The creation is executed + * asynchronously and callers may check the returned operation to track its progress. Once the + * operation is completed the Redis cluster will be fully functional. The completed + * longrunning.Operation will contain the new cluster object in the response field. + * + *

          The returned operation is automatically deleted after a few hours, so there is no need to + * call DeleteOperation. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
          +   *   Cluster cluster = Cluster.newBuilder().build();
          +   *   String clusterId = "clusterId561939637";
          +   *   Cluster response =
          +   *       cloudRedisClusterClient.createClusterAsync(parent, cluster, clusterId).get();
          +   * }
          +   * }
          + * + * @param parent Required. The resource name of the cluster location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. + * @param cluster Required. The cluster that is to be created. + * @param clusterId Required. The logical name of the Redis cluster in the customer project with + * the following restrictions: + *
            + *
          • Must contain only lowercase letters, numbers, and hyphens. + *
          • Must start with a letter. + *
          • Must be between 1-63 characters. + *
          • Must end with a number or a letter. + *
          • Must be unique within the customer project / location + *
          + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createClusterAsync( + @Nullable LocationName parent, Cluster cluster, String clusterId) { + CreateClusterRequest request = + CreateClusterRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCluster(cluster) + .setClusterId(clusterId) + .build(); + return createClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Redis cluster based on the specified properties. The creation is executed + * asynchronously and callers may check the returned operation to track its progress. Once the + * operation is completed the Redis cluster will be fully functional. The completed + * longrunning.Operation will contain the new cluster object in the response field. + * + *

          The returned operation is automatically deleted after a few hours, so there is no need to + * call DeleteOperation. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
          +   *   Cluster cluster = Cluster.newBuilder().build();
          +   *   String clusterId = "clusterId561939637";
          +   *   Cluster response =
          +   *       cloudRedisClusterClient.createClusterAsync(parent, cluster, clusterId).get();
          +   * }
          +   * }
          + * + * @param parent Required. The resource name of the cluster location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. + * @param cluster Required. The cluster that is to be created. + * @param clusterId Required. The logical name of the Redis cluster in the customer project with + * the following restrictions: + *
            + *
          • Must contain only lowercase letters, numbers, and hyphens. + *
          • Must start with a letter. + *
          • Must be between 1-63 characters. + *
          • Must end with a number or a letter. + *
          • Must be unique within the customer project / location + *
          + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createClusterAsync( + String parent, Cluster cluster, String clusterId) { + CreateClusterRequest request = + CreateClusterRequest.newBuilder() + .setParent(parent) + .setCluster(cluster) + .setClusterId(clusterId) + .build(); + return createClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Redis cluster based on the specified properties. The creation is executed + * asynchronously and callers may check the returned operation to track its progress. Once the + * operation is completed the Redis cluster will be fully functional. The completed + * longrunning.Operation will contain the new cluster object in the response field. + * + *

          The returned operation is automatically deleted after a few hours, so there is no need to + * call DeleteOperation. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   CreateClusterRequest request =
          +   *       CreateClusterRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setClusterId("clusterId561939637")
          +   *           .setCluster(Cluster.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   Cluster response = cloudRedisClusterClient.createClusterAsync(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 createClusterAsync(CreateClusterRequest request) { + return createClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Redis cluster based on the specified properties. The creation is executed + * asynchronously and callers may check the returned operation to track its progress. Once the + * operation is completed the Redis cluster will be fully functional. The completed + * longrunning.Operation will contain the new cluster object in the response field. + * + *

          The returned operation is automatically deleted after a few hours, so there is no need to + * call DeleteOperation. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   CreateClusterRequest request =
          +   *       CreateClusterRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setClusterId("clusterId561939637")
          +   *           .setCluster(Cluster.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       cloudRedisClusterClient.createClusterOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   Cluster response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + createClusterOperationCallable() { + return stub.createClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Redis cluster based on the specified properties. The creation is executed + * asynchronously and callers may check the returned operation to track its progress. Once the + * operation is completed the Redis cluster will be fully functional. The completed + * longrunning.Operation will contain the new cluster object in the response field. + * + *

          The returned operation is automatically deleted after a few hours, so there is no need to + * call DeleteOperation. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   CreateClusterRequest request =
          +   *       CreateClusterRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setClusterId("clusterId561939637")
          +   *           .setCluster(Cluster.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       cloudRedisClusterClient.createClusterCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable createClusterCallable() { + return stub.createClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an ACL policy. The creation is executed synchronously and the policy is available for + * use immediately after the RPC returns. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
          +   *   AclPolicy aclPolicy = AclPolicy.newBuilder().build();
          +   *   String aclPolicyId = "aclPolicyId-1805591401";
          +   *   AclPolicy response = cloudRedisClusterClient.createAclPolicy(parent, aclPolicy, aclPolicyId);
          +   * }
          +   * }
          + * + * @param parent Required. The resource name of the cluster location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google + * Cloud region. + * @param aclPolicy Required. The ACL policy that is to be created. + * @param aclPolicyId Required. The logical name of the ACL policy in the customer project with + * the following restrictions: + *
            + *
          • Must contain only lowercase letters, numbers, and hyphens. + *
          • Must start with a letter. + *
          • Must be between 1-63 characters. + *
          • Must end with a number or a letter. + *
          • Must be unique within the customer project / location + *
          + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclPolicy createAclPolicy( + @Nullable LocationName parent, AclPolicy aclPolicy, String aclPolicyId) { + CreateAclPolicyRequest request = + CreateAclPolicyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAclPolicy(aclPolicy) + .setAclPolicyId(aclPolicyId) + .build(); + return createAclPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an ACL policy. The creation is executed synchronously and the policy is available for + * use immediately after the RPC returns. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
          +   *   AclPolicy aclPolicy = AclPolicy.newBuilder().build();
          +   *   String aclPolicyId = "aclPolicyId-1805591401";
          +   *   AclPolicy response = cloudRedisClusterClient.createAclPolicy(parent, aclPolicy, aclPolicyId);
          +   * }
          +   * }
          + * + * @param parent Required. The resource name of the cluster location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google + * Cloud region. + * @param aclPolicy Required. The ACL policy that is to be created. + * @param aclPolicyId Required. The logical name of the ACL policy in the customer project with + * the following restrictions: + *
            + *
          • Must contain only lowercase letters, numbers, and hyphens. + *
          • Must start with a letter. + *
          • Must be between 1-63 characters. + *
          • Must end with a number or a letter. + *
          • Must be unique within the customer project / location + *
          + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclPolicy createAclPolicy(String parent, AclPolicy aclPolicy, String aclPolicyId) { + CreateAclPolicyRequest request = + CreateAclPolicyRequest.newBuilder() + .setParent(parent) + .setAclPolicy(aclPolicy) + .setAclPolicyId(aclPolicyId) + .build(); + return createAclPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an ACL policy. The creation is executed synchronously and the policy is available for + * use immediately after the RPC returns. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   CreateAclPolicyRequest request =
          +   *       CreateAclPolicyRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setAclPolicyId("aclPolicyId-1805591401")
          +   *           .setAclPolicy(AclPolicy.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   AclPolicy response = cloudRedisClusterClient.createAclPolicy(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 AclPolicy createAclPolicy(CreateAclPolicyRequest request) { + return createAclPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an ACL policy. The creation is executed synchronously and the policy is available for + * use immediately after the RPC returns. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   CreateAclPolicyRequest request =
          +   *       CreateAclPolicyRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setAclPolicyId("aclPolicyId-1805591401")
          +   *           .setAclPolicy(AclPolicy.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       cloudRedisClusterClient.createAclPolicyCallable().futureCall(request);
          +   *   // Do something.
          +   *   AclPolicy response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable createAclPolicyCallable() { + return stub.createAclPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of certificate authority information for Redis cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   CertificateAuthorityName name =
          +   *       CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
          +   *   CertificateAuthority response = cloudRedisClusterClient.getClusterCertificateAuthority(name);
          +   * }
          +   * }
          + * + * @param name Required. Redis cluster certificate authority resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority` + * where `location_id` refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CertificateAuthority getClusterCertificateAuthority( + @Nullable CertificateAuthorityName name) { + GetClusterCertificateAuthorityRequest request = + GetClusterCertificateAuthorityRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getClusterCertificateAuthority(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of certificate authority information for Redis cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   String name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
          +   *   CertificateAuthority response = cloudRedisClusterClient.getClusterCertificateAuthority(name);
          +   * }
          +   * }
          + * + * @param name Required. Redis cluster certificate authority resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority` + * where `location_id` refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CertificateAuthority getClusterCertificateAuthority(String name) { + GetClusterCertificateAuthorityRequest request = + GetClusterCertificateAuthorityRequest.newBuilder().setName(name).build(); + return getClusterCertificateAuthority(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of certificate authority information for Redis cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   GetClusterCertificateAuthorityRequest request =
          +   *       GetClusterCertificateAuthorityRequest.newBuilder()
          +   *           .setName(
          +   *               CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
          +   *           .build();
          +   *   CertificateAuthority response =
          +   *       cloudRedisClusterClient.getClusterCertificateAuthority(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 CertificateAuthority getClusterCertificateAuthority( + GetClusterCertificateAuthorityRequest request) { + return getClusterCertificateAuthorityCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of certificate authority information for Redis cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   GetClusterCertificateAuthorityRequest request =
          +   *       GetClusterCertificateAuthorityRequest.newBuilder()
          +   *           .setName(
          +   *               CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
          +   *           .build();
          +   *   ApiFuture future =
          +   *       cloudRedisClusterClient.getClusterCertificateAuthorityCallable().futureCall(request);
          +   *   // Do something.
          +   *   CertificateAuthority response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable + getClusterCertificateAuthorityCallable() { + return stub.getClusterCertificateAuthorityCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of regional certificate authority information for Redis cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   SharedRegionalCertificateAuthorityName name =
          +   *       SharedRegionalCertificateAuthorityName.of("[PROJECT]", "[LOCATION]");
          +   *   SharedRegionalCertificateAuthority response =
          +   *       cloudRedisClusterClient.getSharedRegionalCertificateAuthority(name);
          +   * }
          +   * }
          + * + * @param name Required. Regional certificate authority resource name using the form: + * `projects/{project_id}/locations/{location_id}/sharedRegionalCertificateAuthority` where + * `location_id` refers to a Google Cloud region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SharedRegionalCertificateAuthority getSharedRegionalCertificateAuthority( + @Nullable SharedRegionalCertificateAuthorityName name) { + GetSharedRegionalCertificateAuthorityRequest request = + GetSharedRegionalCertificateAuthorityRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getSharedRegionalCertificateAuthority(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of regional certificate authority information for Redis cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   String name = SharedRegionalCertificateAuthorityName.of("[PROJECT]", "[LOCATION]").toString();
          +   *   SharedRegionalCertificateAuthority response =
          +   *       cloudRedisClusterClient.getSharedRegionalCertificateAuthority(name);
          +   * }
          +   * }
          + * + * @param name Required. Regional certificate authority resource name using the form: + * `projects/{project_id}/locations/{location_id}/sharedRegionalCertificateAuthority` where + * `location_id` refers to a Google Cloud region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SharedRegionalCertificateAuthority getSharedRegionalCertificateAuthority( + String name) { + GetSharedRegionalCertificateAuthorityRequest request = + GetSharedRegionalCertificateAuthorityRequest.newBuilder().setName(name).build(); + return getSharedRegionalCertificateAuthority(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of regional certificate authority information for Redis cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   GetSharedRegionalCertificateAuthorityRequest request =
          +   *       GetSharedRegionalCertificateAuthorityRequest.newBuilder()
          +   *           .setName(
          +   *               SharedRegionalCertificateAuthorityName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .build();
          +   *   SharedRegionalCertificateAuthority response =
          +   *       cloudRedisClusterClient.getSharedRegionalCertificateAuthority(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 SharedRegionalCertificateAuthority getSharedRegionalCertificateAuthority( + GetSharedRegionalCertificateAuthorityRequest request) { + return getSharedRegionalCertificateAuthorityCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of regional certificate authority information for Redis cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   GetSharedRegionalCertificateAuthorityRequest request =
          +   *       GetSharedRegionalCertificateAuthorityRequest.newBuilder()
          +   *           .setName(
          +   *               SharedRegionalCertificateAuthorityName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .build();
          +   *   ApiFuture future =
          +   *       cloudRedisClusterClient
          +   *           .getSharedRegionalCertificateAuthorityCallable()
          +   *           .futureCall(request);
          +   *   // Do something.
          +   *   SharedRegionalCertificateAuthority response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable< + GetSharedRegionalCertificateAuthorityRequest, SharedRegionalCertificateAuthority> + getSharedRegionalCertificateAuthorityCallable() { + return stub.getSharedRegionalCertificateAuthorityCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Reschedules upcoming maintenance event. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
          +   *   RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType =
          +   *       RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0);
          +   *   Timestamp scheduleTime = Timestamp.newBuilder().build();
          +   *   Cluster response =
          +   *       cloudRedisClusterClient
          +   *           .rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime)
          +   *           .get();
          +   * }
          +   * }
          + * + * @param name Required. Redis Cluster instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a GCP region. + * @param rescheduleType Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time + * as well. + * @param scheduleTime Optional. Timestamp when the maintenance shall be rescheduled to if + * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:19:00.094Z`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture rescheduleClusterMaintenanceAsync( + @Nullable ClusterName name, + RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType, + Timestamp scheduleTime) { + RescheduleClusterMaintenanceRequest request = + RescheduleClusterMaintenanceRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setRescheduleType(rescheduleType) + .setScheduleTime(scheduleTime) + .build(); + return rescheduleClusterMaintenanceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Reschedules upcoming maintenance event. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
          +   *   RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType =
          +   *       RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0);
          +   *   Timestamp scheduleTime = Timestamp.newBuilder().build();
          +   *   Cluster response =
          +   *       cloudRedisClusterClient
          +   *           .rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime)
          +   *           .get();
          +   * }
          +   * }
          + * + * @param name Required. Redis Cluster instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a GCP region. + * @param rescheduleType Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time + * as well. + * @param scheduleTime Optional. Timestamp when the maintenance shall be rescheduled to if + * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:19:00.094Z`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture rescheduleClusterMaintenanceAsync( + String name, + RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType, + Timestamp scheduleTime) { + RescheduleClusterMaintenanceRequest request = + RescheduleClusterMaintenanceRequest.newBuilder() + .setName(name) + .setRescheduleType(rescheduleType) + .setScheduleTime(scheduleTime) + .build(); + return rescheduleClusterMaintenanceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Reschedules upcoming maintenance event. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   RescheduleClusterMaintenanceRequest request =
          +   *       RescheduleClusterMaintenanceRequest.newBuilder()
          +   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
          +   *           .setScheduleTime(Timestamp.newBuilder().build())
          +   *           .build();
          +   *   Cluster response = cloudRedisClusterClient.rescheduleClusterMaintenanceAsync(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 rescheduleClusterMaintenanceAsync( + RescheduleClusterMaintenanceRequest request) { + return rescheduleClusterMaintenanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Reschedules upcoming maintenance event. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   RescheduleClusterMaintenanceRequest request =
          +   *       RescheduleClusterMaintenanceRequest.newBuilder()
          +   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
          +   *           .setScheduleTime(Timestamp.newBuilder().build())
          +   *           .build();
          +   *   OperationFuture future =
          +   *       cloudRedisClusterClient
          +   *           .rescheduleClusterMaintenanceOperationCallable()
          +   *           .futureCall(request);
          +   *   // Do something.
          +   *   Cluster response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + rescheduleClusterMaintenanceOperationCallable() { + return stub.rescheduleClusterMaintenanceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Reschedules upcoming maintenance event. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   RescheduleClusterMaintenanceRequest request =
          +   *       RescheduleClusterMaintenanceRequest.newBuilder()
          +   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
          +   *           .setScheduleTime(Timestamp.newBuilder().build())
          +   *           .build();
          +   *   ApiFuture future =
          +   *       cloudRedisClusterClient.rescheduleClusterMaintenanceCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable + rescheduleClusterMaintenanceCallable() { + return stub.rescheduleClusterMaintenanceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backup collections owned by a consumer project in either the specified location + * (region) or all locations. + * + *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
          +   *   for (BackupCollection element :
          +   *       cloudRedisClusterClient.listBackupCollections(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The resource name of the backupCollection location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBackupCollectionsPagedResponse listBackupCollections( + @Nullable LocationName parent) { + ListBackupCollectionsRequest request = + ListBackupCollectionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBackupCollections(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backup collections owned by a consumer project in either the specified location + * (region) or all locations. + * + *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
          +   *   for (BackupCollection element :
          +   *       cloudRedisClusterClient.listBackupCollections(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The resource name of the backupCollection location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBackupCollectionsPagedResponse listBackupCollections(String parent) { + ListBackupCollectionsRequest request = + ListBackupCollectionsRequest.newBuilder().setParent(parent).build(); + return listBackupCollections(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backup collections owned by a consumer project in either the specified location + * (region) or all locations. + * + *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   ListBackupCollectionsRequest request =
          +   *       ListBackupCollectionsRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   for (BackupCollection element :
          +   *       cloudRedisClusterClient.listBackupCollections(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 ListBackupCollectionsPagedResponse listBackupCollections( + ListBackupCollectionsRequest request) { + return listBackupCollectionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backup collections owned by a consumer project in either the specified location + * (region) or all locations. + * + *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   ListBackupCollectionsRequest request =
          +   *       ListBackupCollectionsRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       cloudRedisClusterClient.listBackupCollectionsPagedCallable().futureCall(request);
          +   *   // Do something.
          +   *   for (BackupCollection element : future.get().iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + listBackupCollectionsPagedCallable() { + return stub.listBackupCollectionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backup collections owned by a consumer project in either the specified location + * (region) or all locations. + * + *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   ListBackupCollectionsRequest request =
          +   *       ListBackupCollectionsRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   while (true) {
          +   *     ListBackupCollectionsResponse response =
          +   *         cloudRedisClusterClient.listBackupCollectionsCallable().call(request);
          +   *     for (BackupCollection element : response.getBackupCollectionsList()) {
          +   *       // doThingsWith(element);
          +   *     }
          +   *     String nextPageToken = response.getNextPageToken();
          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
          +   *     } else {
          +   *       break;
          +   *     }
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + listBackupCollectionsCallable() { + return stub.listBackupCollectionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a backup collection. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   BackupCollectionName name =
          +   *       BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]");
          +   *   BackupCollection response = cloudRedisClusterClient.getBackupCollection(name);
          +   * }
          +   * }
          + * + * @param name Required. Redis backupCollection resource name using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` + * where `location_id` refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BackupCollection getBackupCollection(@Nullable BackupCollectionName name) { + GetBackupCollectionRequest request = + GetBackupCollectionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getBackupCollection(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a backup collection. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   String name =
          +   *       BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]").toString();
          +   *   BackupCollection response = cloudRedisClusterClient.getBackupCollection(name);
          +   * }
          +   * }
          + * + * @param name Required. Redis backupCollection resource name using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` + * where `location_id` refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BackupCollection getBackupCollection(String name) { + GetBackupCollectionRequest request = + GetBackupCollectionRequest.newBuilder().setName(name).build(); + return getBackupCollection(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a backup collection. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   GetBackupCollectionRequest request =
          +   *       GetBackupCollectionRequest.newBuilder()
          +   *           .setName(
          +   *               BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
          +   *                   .toString())
          +   *           .build();
          +   *   BackupCollection response = cloudRedisClusterClient.getBackupCollection(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 BackupCollection getBackupCollection(GetBackupCollectionRequest request) { + return getBackupCollectionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a backup collection. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   GetBackupCollectionRequest request =
          +   *       GetBackupCollectionRequest.newBuilder()
          +   *           .setName(
          +   *               BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
          +   *                   .toString())
          +   *           .build();
          +   *   ApiFuture future =
          +   *       cloudRedisClusterClient.getBackupCollectionCallable().futureCall(request);
          +   *   // Do something.
          +   *   BackupCollection response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable + getBackupCollectionCallable() { + return stub.getBackupCollectionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backups owned by a backup collection. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   BackupCollectionName parent =
          +   *       BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]");
          +   *   for (Backup element : cloudRedisClusterClient.listBackups(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The resource name of the backupCollection using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBackupsPagedResponse listBackups(@Nullable BackupCollectionName parent) { + ListBackupsRequest request = + ListBackupsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBackups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backups owned by a backup collection. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   String parent =
          +   *       BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]").toString();
          +   *   for (Backup element : cloudRedisClusterClient.listBackups(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The resource name of the backupCollection using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBackupsPagedResponse listBackups(String parent) { + ListBackupsRequest request = ListBackupsRequest.newBuilder().setParent(parent).build(); + return listBackups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backups owned by a backup collection. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   ListBackupsRequest request =
          +   *       ListBackupsRequest.newBuilder()
          +   *           .setParent(
          +   *               BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
          +   *                   .toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   for (Backup element : cloudRedisClusterClient.listBackups(request).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBackupsPagedResponse listBackups(ListBackupsRequest request) { + return listBackupsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backups owned by a backup collection. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   ListBackupsRequest request =
          +   *       ListBackupsRequest.newBuilder()
          +   *           .setParent(
          +   *               BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
          +   *                   .toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       cloudRedisClusterClient.listBackupsPagedCallable().futureCall(request);
          +   *   // Do something.
          +   *   for (Backup element : future.get().iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + listBackupsPagedCallable() { + return stub.listBackupsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backups owned by a backup collection. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   ListBackupsRequest request =
          +   *       ListBackupsRequest.newBuilder()
          +   *           .setParent(
          +   *               BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
          +   *                   .toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   while (true) {
          +   *     ListBackupsResponse response = cloudRedisClusterClient.listBackupsCallable().call(request);
          +   *     for (Backup element : response.getBackupsList()) {
          +   *       // doThingsWith(element);
          +   *     }
          +   *     String nextPageToken = response.getNextPageToken();
          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
          +   *     } else {
          +   *       break;
          +   *     }
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable listBackupsCallable() { + return stub.listBackupsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific backup. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]");
          +   *   Backup response = cloudRedisClusterClient.getBackup(name);
          +   * }
          +   * }
          + * + * @param name Required. Redis backup resource name using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Backup getBackup(@Nullable BackupName name) { + GetBackupRequest request = + GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getBackup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific backup. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   String name =
          +   *       BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]").toString();
          +   *   Backup response = cloudRedisClusterClient.getBackup(name);
          +   * }
          +   * }
          + * + * @param name Required. Redis backup resource name using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Backup getBackup(String name) { + GetBackupRequest request = GetBackupRequest.newBuilder().setName(name).build(); + return getBackup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific backup. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   GetBackupRequest request =
          +   *       GetBackupRequest.newBuilder()
          +   *           .setName(
          +   *               BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
          +   *                   .toString())
          +   *           .build();
          +   *   Backup response = cloudRedisClusterClient.getBackup(request);
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Backup getBackup(GetBackupRequest request) { + return getBackupCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific backup. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   GetBackupRequest request =
          +   *       GetBackupRequest.newBuilder()
          +   *           .setName(
          +   *               BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
          +   *                   .toString())
          +   *           .build();
          +   *   ApiFuture future = cloudRedisClusterClient.getBackupCallable().futureCall(request);
          +   *   // Do something.
          +   *   Backup response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable getBackupCallable() { + return stub.getBackupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific backup. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]");
          +   *   cloudRedisClusterClient.deleteBackupAsync(name).get();
          +   * }
          +   * }
          + * + * @param name Required. Redis backup resource name using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteBackupAsync(@Nullable BackupName name) { + DeleteBackupRequest request = + DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific backup. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   String name =
          +   *       BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]").toString();
          +   *   cloudRedisClusterClient.deleteBackupAsync(name).get();
          +   * }
          +   * }
          + * + * @param name Required. Redis backup resource name using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteBackupAsync(String name) { + DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name).build(); + return deleteBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific backup. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   DeleteBackupRequest request =
          +   *       DeleteBackupRequest.newBuilder()
          +   *           .setName(
          +   *               BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
          +   *                   .toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   cloudRedisClusterClient.deleteBackupAsync(request).get();
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteBackupAsync(DeleteBackupRequest request) { + return deleteBackupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific backup. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   DeleteBackupRequest request =
          +   *       DeleteBackupRequest.newBuilder()
          +   *           .setName(
          +   *               BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
          +   *                   .toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       cloudRedisClusterClient.deleteBackupOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable deleteBackupOperationCallable() { + return stub.deleteBackupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific backup. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   DeleteBackupRequest request =
          +   *       DeleteBackupRequest.newBuilder()
          +   *           .setName(
          +   *               BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
          +   *                   .toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       cloudRedisClusterClient.deleteBackupCallable().futureCall(request);
          +   *   // Do something.
          +   *   future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable deleteBackupCallable() { + return stub.deleteBackupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports a specific backup to a customer target Cloud Storage URI. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   ExportBackupRequest request =
          +   *       ExportBackupRequest.newBuilder()
          +   *           .setName(
          +   *               BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
          +   *                   .toString())
          +   *           .build();
          +   *   Backup response = cloudRedisClusterClient.exportBackupAsync(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 exportBackupAsync(ExportBackupRequest request) { + return exportBackupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports a specific backup to a customer target Cloud Storage URI. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   ExportBackupRequest request =
          +   *       ExportBackupRequest.newBuilder()
          +   *           .setName(
          +   *               BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
          +   *                   .toString())
          +   *           .build();
          +   *   OperationFuture future =
          +   *       cloudRedisClusterClient.exportBackupOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   Backup response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable exportBackupOperationCallable() { + return stub.exportBackupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports a specific backup to a customer target Cloud Storage URI. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   ExportBackupRequest request =
          +   *       ExportBackupRequest.newBuilder()
          +   *           .setName(
          +   *               BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
          +   *                   .toString())
          +   *           .build();
          +   *   ApiFuture future =
          +   *       cloudRedisClusterClient.exportBackupCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable exportBackupCallable() { + return stub.exportBackupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Backup Redis Cluster. If this is the first time a backup is being created, a backup collection + * will be created at the backend, and this backup belongs to this collection. Both collection and + * backup will have a resource name. Backup will be executed for each shard. A replica (primary if + * nonHA) will be selected to perform the execution. Backup call will be rejected if there is an + * ongoing backup or update operation. Be aware that during preview, if the cluster's internal + * software version is too old, critical update will be performed before actual backup. Once the + * internal software version is updated to the minimum version required by the backup feature, + * subsequent backups will not require critical update. After preview, there will be no critical + * update needed for backup. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
          +   *   Cluster response = cloudRedisClusterClient.backupClusterAsync(name).get();
          +   * }
          +   * }
          + * + * @param name Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture backupClusterAsync(@Nullable ClusterName name) { + BackupClusterRequest request = + BackupClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return backupClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Backup Redis Cluster. If this is the first time a backup is being created, a backup collection + * will be created at the backend, and this backup belongs to this collection. Both collection and + * backup will have a resource name. Backup will be executed for each shard. A replica (primary if + * nonHA) will be selected to perform the execution. Backup call will be rejected if there is an + * ongoing backup or update operation. Be aware that during preview, if the cluster's internal + * software version is too old, critical update will be performed before actual backup. Once the + * internal software version is updated to the minimum version required by the backup feature, + * subsequent backups will not require critical update. After preview, there will be no critical + * update needed for backup. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
          +   *   Cluster response = cloudRedisClusterClient.backupClusterAsync(name).get();
          +   * }
          +   * }
          + * + * @param name Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture backupClusterAsync(String name) { + BackupClusterRequest request = BackupClusterRequest.newBuilder().setName(name).build(); + return backupClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Backup Redis Cluster. If this is the first time a backup is being created, a backup collection + * will be created at the backend, and this backup belongs to this collection. Both collection and + * backup will have a resource name. Backup will be executed for each shard. A replica (primary if + * nonHA) will be selected to perform the execution. Backup call will be rejected if there is an + * ongoing backup or update operation. Be aware that during preview, if the cluster's internal + * software version is too old, critical update will be performed before actual backup. Once the + * internal software version is updated to the minimum version required by the backup feature, + * subsequent backups will not require critical update. After preview, there will be no critical + * update needed for backup. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   BackupClusterRequest request =
          +   *       BackupClusterRequest.newBuilder()
          +   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
          +   *           .setTtl(Duration.newBuilder().build())
          +   *           .setBackupId("backupId2121930365")
          +   *           .build();
          +   *   Cluster response = cloudRedisClusterClient.backupClusterAsync(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 backupClusterAsync(BackupClusterRequest request) { + return backupClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Backup Redis Cluster. If this is the first time a backup is being created, a backup collection + * will be created at the backend, and this backup belongs to this collection. Both collection and + * backup will have a resource name. Backup will be executed for each shard. A replica (primary if + * nonHA) will be selected to perform the execution. Backup call will be rejected if there is an + * ongoing backup or update operation. Be aware that during preview, if the cluster's internal + * software version is too old, critical update will be performed before actual backup. Once the + * internal software version is updated to the minimum version required by the backup feature, + * subsequent backups will not require critical update. After preview, there will be no critical + * update needed for backup. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   BackupClusterRequest request =
          +   *       BackupClusterRequest.newBuilder()
          +   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
          +   *           .setTtl(Duration.newBuilder().build())
          +   *           .setBackupId("backupId2121930365")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       cloudRedisClusterClient.backupClusterOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   Cluster response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + backupClusterOperationCallable() { + return stub.backupClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Backup Redis Cluster. If this is the first time a backup is being created, a backup collection + * will be created at the backend, and this backup belongs to this collection. Both collection and + * backup will have a resource name. Backup will be executed for each shard. A replica (primary if + * nonHA) will be selected to perform the execution. Backup call will be rejected if there is an + * ongoing backup or update operation. Be aware that during preview, if the cluster's internal + * software version is too old, critical update will be performed before actual backup. Once the + * internal software version is updated to the minimum version required by the backup feature, + * subsequent backups will not require critical update. After preview, there will be no critical + * update needed for backup. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   BackupClusterRequest request =
          +   *       BackupClusterRequest.newBuilder()
          +   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
          +   *           .setTtl(Duration.newBuilder().build())
          +   *           .setBackupId("backupId2121930365")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       cloudRedisClusterClient.backupClusterCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable backupClusterCallable() { + return stub.backupClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the token auth users for a token based auth enabled cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   ClusterName parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
          +   *   for (TokenAuthUser element :
          +   *       cloudRedisClusterClient.listTokenAuthUsers(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The parent resource that this token based auth user will be listed for. + * Format: projects/{project}/locations/{location}/clusters/{cluster} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTokenAuthUsersPagedResponse listTokenAuthUsers(@Nullable ClusterName parent) { + ListTokenAuthUsersRequest request = + ListTokenAuthUsersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listTokenAuthUsers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the token auth users for a token based auth enabled cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   String parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
          +   *   for (TokenAuthUser element :
          +   *       cloudRedisClusterClient.listTokenAuthUsers(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The parent resource that this token based auth user will be listed for. + * Format: projects/{project}/locations/{location}/clusters/{cluster} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTokenAuthUsersPagedResponse listTokenAuthUsers(String parent) { + ListTokenAuthUsersRequest request = + ListTokenAuthUsersRequest.newBuilder().setParent(parent).build(); + return listTokenAuthUsers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the token auth users for a token based auth enabled cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   ListTokenAuthUsersRequest request =
          +   *       ListTokenAuthUsersRequest.newBuilder()
          +   *           .setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   for (TokenAuthUser element :
          +   *       cloudRedisClusterClient.listTokenAuthUsers(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 ListTokenAuthUsersPagedResponse listTokenAuthUsers( + ListTokenAuthUsersRequest request) { + return listTokenAuthUsersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the token auth users for a token based auth enabled cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   ListTokenAuthUsersRequest request =
          +   *       ListTokenAuthUsersRequest.newBuilder()
          +   *           .setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       cloudRedisClusterClient.listTokenAuthUsersPagedCallable().futureCall(request);
          +   *   // Do something.
          +   *   for (TokenAuthUser element : future.get().iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + listTokenAuthUsersPagedCallable() { + return stub.listTokenAuthUsersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the token auth users for a token based auth enabled cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   ListTokenAuthUsersRequest request =
          +   *       ListTokenAuthUsersRequest.newBuilder()
          +   *           .setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   while (true) {
          +   *     ListTokenAuthUsersResponse response =
          +   *         cloudRedisClusterClient.listTokenAuthUsersCallable().call(request);
          +   *     for (TokenAuthUser element : response.getTokenAuthUsersList()) {
          +   *       // doThingsWith(element);
          +   *     }
          +   *     String nextPageToken = response.getNextPageToken();
          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
          +   *     } else {
          +   *       break;
          +   *     }
          +   *   }
              * }
              * }
          - * - * @param name Required. Redis Cluster instance resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` - * refers to a GCP region. - * @param rescheduleType Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time - * as well. - * @param scheduleTime Optional. Timestamp when the maintenance shall be rescheduled to if - * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:19:00.094Z`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture rescheduleClusterMaintenanceAsync( - @Nullable ClusterName name, - RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType, - Timestamp scheduleTime) { - RescheduleClusterMaintenanceRequest request = - RescheduleClusterMaintenanceRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setRescheduleType(rescheduleType) - .setScheduleTime(scheduleTime) - .build(); - return rescheduleClusterMaintenanceAsync(request); + public final UnaryCallable + listTokenAuthUsersCallable() { + return stub.listTokenAuthUsersCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Reschedules upcoming maintenance event. + * Gets a specific token auth user for a basic auth enabled cluster. * *

          Sample code: * @@ -1697,42 +4446,26 @@ public final OperationFuture rescheduleClusterMaintenanceAsync( * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); - * RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType = - * RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0); - * Timestamp scheduleTime = Timestamp.newBuilder().build(); - * Cluster response = - * cloudRedisClusterClient - * .rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime) - * .get(); + * TokenAuthUserName name = + * TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + * TokenAuthUser response = cloudRedisClusterClient.getTokenAuthUser(name); * } * } * - * @param name Required. Redis Cluster instance resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` - * refers to a GCP region. - * @param rescheduleType Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time - * as well. - * @param scheduleTime Optional. Timestamp when the maintenance shall be rescheduled to if - * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:19:00.094Z`. + * @param name Required. The name of token auth user for a token based auth enabled cluster. + * Format: + * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture rescheduleClusterMaintenanceAsync( - String name, - RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType, - Timestamp scheduleTime) { - RescheduleClusterMaintenanceRequest request = - RescheduleClusterMaintenanceRequest.newBuilder() - .setName(name) - .setRescheduleType(rescheduleType) - .setScheduleTime(scheduleTime) - .build(); - return rescheduleClusterMaintenanceAsync(request); + public final TokenAuthUser getTokenAuthUser(@Nullable TokenAuthUserName name) { + GetTokenAuthUserRequest request = + GetTokenAuthUserRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getTokenAuthUser(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Reschedules upcoming maintenance event. + * Gets a specific token auth user for a basic auth enabled cluster. * *

          Sample code: * @@ -1743,26 +4476,26 @@ public final OperationFuture rescheduleClusterMaintenanceAsync( * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * RescheduleClusterMaintenanceRequest request = - * RescheduleClusterMaintenanceRequest.newBuilder() - * .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - * .setScheduleTime(Timestamp.newBuilder().build()) - * .build(); - * Cluster response = cloudRedisClusterClient.rescheduleClusterMaintenanceAsync(request).get(); + * String name = + * TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + * .toString(); + * TokenAuthUser response = cloudRedisClusterClient.getTokenAuthUser(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The name of token auth user for a token based auth enabled cluster. + * Format: + * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture rescheduleClusterMaintenanceAsync( - RescheduleClusterMaintenanceRequest request) { - return rescheduleClusterMaintenanceOperationCallable().futureCall(request); + public final TokenAuthUser getTokenAuthUser(String name) { + GetTokenAuthUserRequest request = GetTokenAuthUserRequest.newBuilder().setName(name).build(); + return getTokenAuthUser(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Reschedules upcoming maintenance event. + * Gets a specific token auth user for a basic auth enabled cluster. * *

          Sample code: * @@ -1773,28 +4506,26 @@ public final OperationFuture rescheduleClusterMaintenanceAsync( * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * RescheduleClusterMaintenanceRequest request = - * RescheduleClusterMaintenanceRequest.newBuilder() - * .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - * .setScheduleTime(Timestamp.newBuilder().build()) + * GetTokenAuthUserRequest request = + * GetTokenAuthUserRequest.newBuilder() + * .setName( + * TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + * .toString()) * .build(); - * OperationFuture future = - * cloudRedisClusterClient - * .rescheduleClusterMaintenanceOperationCallable() - * .futureCall(request); - * // Do something. - * Cluster response = future.get(); + * TokenAuthUser response = cloudRedisClusterClient.getTokenAuthUser(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 OperationCallable - rescheduleClusterMaintenanceOperationCallable() { - return stub.rescheduleClusterMaintenanceOperationCallable(); + public final TokenAuthUser getTokenAuthUser(GetTokenAuthUserRequest request) { + return getTokenAuthUserCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Reschedules upcoming maintenance event. + * Gets a specific token auth user for a basic auth enabled cluster. * *

          Sample code: * @@ -1805,30 +4536,26 @@ public final OperationFuture rescheduleClusterMaintenanceAsync( * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * RescheduleClusterMaintenanceRequest request = - * RescheduleClusterMaintenanceRequest.newBuilder() - * .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - * .setScheduleTime(Timestamp.newBuilder().build()) + * GetTokenAuthUserRequest request = + * GetTokenAuthUserRequest.newBuilder() + * .setName( + * TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + * .toString()) * .build(); - * ApiFuture future = - * cloudRedisClusterClient.rescheduleClusterMaintenanceCallable().futureCall(request); + * ApiFuture future = + * cloudRedisClusterClient.getTokenAuthUserCallable().futureCall(request); * // Do something. - * Operation response = future.get(); + * TokenAuthUser response = future.get(); * } * } */ - public final UnaryCallable - rescheduleClusterMaintenanceCallable() { - return stub.rescheduleClusterMaintenanceCallable(); + public final UnaryCallable getTokenAuthUserCallable() { + return stub.getTokenAuthUserCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all backup collections owned by a consumer project in either the specified location - * (region) or all locations. - * - *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project - * are queried, and the results are aggregated. + * Lists all the auth tokens for a specific token auth user. * *

          Sample code: * @@ -1839,34 +4566,29 @@ public final OperationFuture rescheduleClusterMaintenanceAsync( * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (BackupCollection element : - * cloudRedisClusterClient.listBackupCollections(parent).iterateAll()) { + * TokenAuthUserName parent = + * TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + * for (AuthToken element : cloudRedisClusterClient.listAuthTokens(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The resource name of the backupCollection location using the form: - * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. + * @param parent Required. The parent resource that this auth token will be listed for. Format: + * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupCollectionsPagedResponse listBackupCollections( - @Nullable LocationName parent) { - ListBackupCollectionsRequest request = - ListBackupCollectionsRequest.newBuilder() + public final ListAuthTokensPagedResponse listAuthTokens(@Nullable TokenAuthUserName parent) { + ListAuthTokensRequest request = + ListAuthTokensRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listBackupCollections(request); + return listAuthTokens(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all backup collections owned by a consumer project in either the specified location - * (region) or all locations. - * - *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project - * are queried, and the results are aggregated. + * Lists all the auth tokens for a specific token auth user. * *

          Sample code: * @@ -1877,31 +4599,27 @@ public final ListBackupCollectionsPagedResponse listBackupCollections( * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (BackupCollection element : - * cloudRedisClusterClient.listBackupCollections(parent).iterateAll()) { + * String parent = + * TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + * .toString(); + * for (AuthToken element : cloudRedisClusterClient.listAuthTokens(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The resource name of the backupCollection location using the form: - * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. + * @param parent Required. The parent resource that this auth token will be listed for. Format: + * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupCollectionsPagedResponse listBackupCollections(String parent) { - ListBackupCollectionsRequest request = - ListBackupCollectionsRequest.newBuilder().setParent(parent).build(); - return listBackupCollections(request); + public final ListAuthTokensPagedResponse listAuthTokens(String parent) { + ListAuthTokensRequest request = ListAuthTokensRequest.newBuilder().setParent(parent).build(); + return listAuthTokens(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all backup collections owned by a consumer project in either the specified location - * (region) or all locations. - * - *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project - * are queried, and the results are aggregated. + * Lists all the auth tokens for a specific token auth user. * *

          Sample code: * @@ -1912,14 +4630,17 @@ public final ListBackupCollectionsPagedResponse listBackupCollections(String par * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * ListBackupCollectionsRequest request = - * ListBackupCollectionsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * ListAuthTokensRequest request = + * ListAuthTokensRequest.newBuilder() + * .setParent( + * TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + * .toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * for (BackupCollection element : - * cloudRedisClusterClient.listBackupCollections(request).iterateAll()) { + * for (AuthToken element : cloudRedisClusterClient.listAuthTokens(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -1928,18 +4649,13 @@ public final ListBackupCollectionsPagedResponse listBackupCollections(String par * @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 ListBackupCollectionsPagedResponse listBackupCollections( - ListBackupCollectionsRequest request) { - return listBackupCollectionsPagedCallable().call(request); + public final ListAuthTokensPagedResponse listAuthTokens(ListAuthTokensRequest request) { + return listAuthTokensPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all backup collections owned by a consumer project in either the specified location - * (region) or all locations. - * - *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project - * are queried, and the results are aggregated. + * Lists all the auth tokens for a specific token auth user. * *

          Sample code: * @@ -1950,33 +4666,33 @@ public final ListBackupCollectionsPagedResponse listBackupCollections( * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * ListBackupCollectionsRequest request = - * ListBackupCollectionsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * ListAuthTokensRequest request = + * ListAuthTokensRequest.newBuilder() + * .setParent( + * TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + * .toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * ApiFuture future = - * cloudRedisClusterClient.listBackupCollectionsPagedCallable().futureCall(request); + * ApiFuture future = + * cloudRedisClusterClient.listAuthTokensPagedCallable().futureCall(request); * // Do something. - * for (BackupCollection element : future.get().iterateAll()) { + * for (AuthToken element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listBackupCollectionsPagedCallable() { - return stub.listBackupCollectionsPagedCallable(); + public final UnaryCallable + listAuthTokensPagedCallable() { + return stub.listAuthTokensPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all backup collections owned by a consumer project in either the specified location - * (region) or all locations. - * - *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project - * are queried, and the results are aggregated. + * Lists all the auth tokens for a specific token auth user. * *

          Sample code: * @@ -1987,16 +4703,20 @@ public final ListBackupCollectionsPagedResponse listBackupCollections( * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * ListBackupCollectionsRequest request = - * ListBackupCollectionsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * ListAuthTokensRequest request = + * ListAuthTokensRequest.newBuilder() + * .setParent( + * TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + * .toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); * while (true) { - * ListBackupCollectionsResponse response = - * cloudRedisClusterClient.listBackupCollectionsCallable().call(request); - * for (BackupCollection element : response.getBackupCollectionsList()) { + * ListAuthTokensResponse response = + * cloudRedisClusterClient.listAuthTokensCallable().call(request); + * for (AuthToken element : response.getAuthTokensList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -2009,76 +4729,14 @@ public final ListBackupCollectionsPagedResponse listBackupCollections( * } * } */ - public final UnaryCallable - listBackupCollectionsCallable() { - return stub.listBackupCollectionsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Get a backup collection. - * - *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          -   *   BackupCollectionName name =
          -   *       BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]");
          -   *   BackupCollection response = cloudRedisClusterClient.getBackupCollection(name);
          -   * }
          -   * }
          - * - * @param name Required. Redis backupCollection resource name using the form: - * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` - * where `location_id` refers to a GCP region. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final BackupCollection getBackupCollection(@Nullable BackupCollectionName name) { - GetBackupCollectionRequest request = - GetBackupCollectionRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getBackupCollection(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Get a backup collection. - * - *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          -   *   String name =
          -   *       BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]").toString();
          -   *   BackupCollection response = cloudRedisClusterClient.getBackupCollection(name);
          -   * }
          -   * }
          - * - * @param name Required. Redis backupCollection resource name using the form: - * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` - * where `location_id` refers to a GCP region. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final BackupCollection getBackupCollection(String name) { - GetBackupCollectionRequest request = - GetBackupCollectionRequest.newBuilder().setName(name).build(); - return getBackupCollection(request); + public final UnaryCallable + listAuthTokensCallable() { + return stub.listAuthTokensCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get a backup collection. + * Gets a specific auth token for a specific token auth user. * *

          Sample code: * @@ -2089,26 +4747,26 @@ public final BackupCollection getBackupCollection(String name) { * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * GetBackupCollectionRequest request = - * GetBackupCollectionRequest.newBuilder() - * .setName( - * BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") - * .toString()) - * .build(); - * BackupCollection response = cloudRedisClusterClient.getBackupCollection(request); + * AuthTokenName name = + * AuthTokenName.of( + * "[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]", "[AUTH_TOKEN]"); + * AuthToken response = cloudRedisClusterClient.getAuthToken(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The name of auth token for a token based auth enabled cluster. Format: + * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BackupCollection getBackupCollection(GetBackupCollectionRequest request) { - return getBackupCollectionCallable().call(request); + public final AuthToken getAuthToken(@Nullable AuthTokenName name) { + GetAuthTokenRequest request = + GetAuthTokenRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAuthToken(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get a backup collection. + * Gets a specific auth token for a specific token auth user. * *

          Sample code: * @@ -2118,28 +4776,27 @@ public final BackupCollection getBackupCollection(GetBackupCollectionRequest req * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * GetBackupCollectionRequest request = - * GetBackupCollectionRequest.newBuilder() - * .setName( - * BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") - * .toString()) - * .build(); - * ApiFuture future = - * cloudRedisClusterClient.getBackupCollectionCallable().futureCall(request); - * // Do something. - * BackupCollection response = future.get(); + * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + * String name = + * AuthTokenName.of( + * "[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]", "[AUTH_TOKEN]") + * .toString(); + * AuthToken response = cloudRedisClusterClient.getAuthToken(name); * } * } + * + * @param name Required. The name of auth token for a token based auth enabled cluster. Format: + * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - getBackupCollectionCallable() { - return stub.getBackupCollectionCallable(); + public final AuthToken getAuthToken(String name) { + GetAuthTokenRequest request = GetAuthTokenRequest.newBuilder().setName(name).build(); + return getAuthToken(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all backups owned by a backup collection. + * Gets a specific auth token for a specific token auth user. * *

          Sample code: * @@ -2150,29 +4807,31 @@ public final BackupCollection getBackupCollection(GetBackupCollectionRequest req * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * BackupCollectionName parent = - * BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]"); - * for (Backup element : cloudRedisClusterClient.listBackups(parent).iterateAll()) { - * // doThingsWith(element); - * } + * GetAuthTokenRequest request = + * GetAuthTokenRequest.newBuilder() + * .setName( + * AuthTokenName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[CLUSTER]", + * "[TOKEN_AUTH_USER]", + * "[AUTH_TOKEN]") + * .toString()) + * .build(); + * AuthToken response = cloudRedisClusterClient.getAuthToken(request); * } * } * - * @param parent Required. The resource name of the backupCollection using the form: - * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupsPagedResponse listBackups(@Nullable BackupCollectionName parent) { - ListBackupsRequest request = - ListBackupsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listBackups(request); + public final AuthToken getAuthToken(GetAuthTokenRequest request) { + return getAuthTokenCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all backups owned by a backup collection. + * Gets a specific auth token for a specific token auth user. * *

          Sample code: * @@ -2183,26 +4842,31 @@ public final ListBackupsPagedResponse listBackups(@Nullable BackupCollectionName * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * String parent = - * BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]").toString(); - * for (Backup element : cloudRedisClusterClient.listBackups(parent).iterateAll()) { - * // doThingsWith(element); - * } + * GetAuthTokenRequest request = + * GetAuthTokenRequest.newBuilder() + * .setName( + * AuthTokenName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[CLUSTER]", + * "[TOKEN_AUTH_USER]", + * "[AUTH_TOKEN]") + * .toString()) + * .build(); + * ApiFuture future = + * cloudRedisClusterClient.getAuthTokenCallable().futureCall(request); + * // Do something. + * AuthToken response = future.get(); * } * } - * - * @param parent Required. The resource name of the backupCollection using the form: - * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupsPagedResponse listBackups(String parent) { - ListBackupsRequest request = ListBackupsRequest.newBuilder().setParent(parent).build(); - return listBackups(request); + public final UnaryCallable getAuthTokenCallable() { + return stub.getAuthTokenCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all backups owned by a backup collection. + * Adds a token auth user for a token based auth enabled cluster. * *

          Sample code: * @@ -2213,30 +4877,32 @@ public final ListBackupsPagedResponse listBackups(String parent) { * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * ListBackupsRequest request = - * ListBackupsRequest.newBuilder() - * .setParent( - * BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") - * .toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * for (Backup element : cloudRedisClusterClient.listBackups(request).iterateAll()) { - * // doThingsWith(element); - * } + * ClusterName cluster = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + * TokenAuthUserName tokenAuthUser = + * TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + * Cluster response = + * cloudRedisClusterClient.addTokenAuthUserAsync(cluster, tokenAuthUser).get(); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param cluster Required. The cluster resource that this token auth user will be added for. + * Format: projects/{project}/locations/{location}/clusters/{cluster} + * @param tokenAuthUser Required. The id of the token auth user to add. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupsPagedResponse listBackups(ListBackupsRequest request) { - return listBackupsPagedCallable().call(request); + public final OperationFuture addTokenAuthUserAsync( + @Nullable ClusterName cluster, @Nullable TokenAuthUserName tokenAuthUser) { + AddTokenAuthUserRequest request = + AddTokenAuthUserRequest.newBuilder() + .setCluster(cluster == null ? null : cluster.toString()) + .setTokenAuthUser(tokenAuthUser == null ? null : tokenAuthUser.toString()) + .build(); + return addTokenAuthUserAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all backups owned by a backup collection. + * Adds a token auth user for a token based auth enabled cluster. * *

          Sample code: * @@ -2247,31 +4913,33 @@ public final ListBackupsPagedResponse listBackups(ListBackupsRequest 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * ListBackupsRequest request = - * ListBackupsRequest.newBuilder() - * .setParent( - * BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") - * .toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * ApiFuture future = - * cloudRedisClusterClient.listBackupsPagedCallable().futureCall(request); - * // Do something. - * for (Backup element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * ClusterName cluster = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + * String tokenAuthUser = + * TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + * .toString(); + * Cluster response = + * cloudRedisClusterClient.addTokenAuthUserAsync(cluster, tokenAuthUser).get(); * } * } + * + * @param cluster Required. The cluster resource that this token auth user will be added for. + * Format: projects/{project}/locations/{location}/clusters/{cluster} + * @param tokenAuthUser Required. The id of the token auth user to add. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listBackupsPagedCallable() { - return stub.listBackupsPagedCallable(); + public final OperationFuture addTokenAuthUserAsync( + @Nullable ClusterName cluster, String tokenAuthUser) { + AddTokenAuthUserRequest request = + AddTokenAuthUserRequest.newBuilder() + .setCluster(cluster == null ? null : cluster.toString()) + .setTokenAuthUser(tokenAuthUser) + .build(); + return addTokenAuthUserAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all backups owned by a backup collection. + * Adds a token auth user for a token based auth enabled cluster. * *

          Sample code: * @@ -2282,36 +4950,32 @@ public final ListBackupsPagedResponse listBackups(ListBackupsRequest 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * ListBackupsRequest request = - * ListBackupsRequest.newBuilder() - * .setParent( - * BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") - * .toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * while (true) { - * ListBackupsResponse response = cloudRedisClusterClient.listBackupsCallable().call(request); - * for (Backup element : response.getBackupsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * String cluster = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); + * TokenAuthUserName tokenAuthUser = + * TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + * Cluster response = + * cloudRedisClusterClient.addTokenAuthUserAsync(cluster, tokenAuthUser).get(); * } * } + * + * @param cluster Required. The cluster resource that this token auth user will be added for. + * Format: projects/{project}/locations/{location}/clusters/{cluster} + * @param tokenAuthUser Required. The id of the token auth user to add. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable listBackupsCallable() { - return stub.listBackupsCallable(); + public final OperationFuture addTokenAuthUserAsync( + String cluster, @Nullable TokenAuthUserName tokenAuthUser) { + AddTokenAuthUserRequest request = + AddTokenAuthUserRequest.newBuilder() + .setCluster(cluster) + .setTokenAuthUser(tokenAuthUser == null ? null : tokenAuthUser.toString()) + .build(); + return addTokenAuthUserAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a specific backup. + * Adds a token auth user for a token based auth enabled cluster. * *

          Sample code: * @@ -2322,24 +4986,33 @@ public final UnaryCallable listBackupsC * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]"); - * Backup response = cloudRedisClusterClient.getBackup(name); + * String cluster = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); + * String tokenAuthUser = + * TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + * .toString(); + * Cluster response = + * cloudRedisClusterClient.addTokenAuthUserAsync(cluster, tokenAuthUser).get(); * } * } * - * @param name Required. Redis backup resource name using the form: - * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + * @param cluster Required. The cluster resource that this token auth user will be added for. + * Format: projects/{project}/locations/{location}/clusters/{cluster} + * @param tokenAuthUser Required. The id of the token auth user to add. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Backup getBackup(@Nullable BackupName name) { - GetBackupRequest request = - GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getBackup(request); + public final OperationFuture addTokenAuthUserAsync( + String cluster, String tokenAuthUser) { + AddTokenAuthUserRequest request = + AddTokenAuthUserRequest.newBuilder() + .setCluster(cluster) + .setTokenAuthUser(tokenAuthUser) + .build(); + return addTokenAuthUserAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a specific backup. + * Adds a token auth user for a token based auth enabled cluster. * *

          Sample code: * @@ -2350,24 +5023,28 @@ public final Backup getBackup(@Nullable BackupName name) { * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * String name = - * BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]").toString(); - * Backup response = cloudRedisClusterClient.getBackup(name); + * AddTokenAuthUserRequest request = + * AddTokenAuthUserRequest.newBuilder() + * .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + * .setTokenAuthUser( + * TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + * .toString()) + * .build(); + * Cluster response = cloudRedisClusterClient.addTokenAuthUserAsync(request).get(); * } * } * - * @param name Required. Redis backup resource name using the form: - * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Backup getBackup(String name) { - GetBackupRequest request = GetBackupRequest.newBuilder().setName(name).build(); - return getBackup(request); + public final OperationFuture addTokenAuthUserAsync( + AddTokenAuthUserRequest request) { + return addTokenAuthUserOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a specific backup. + * Adds a token auth user for a token based auth enabled cluster. * *

          Sample code: * @@ -2378,26 +5055,28 @@ public final Backup getBackup(String name) { * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * GetBackupRequest request = - * GetBackupRequest.newBuilder() - * .setName( - * BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + * AddTokenAuthUserRequest request = + * AddTokenAuthUserRequest.newBuilder() + * .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + * .setTokenAuthUser( + * TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") * .toString()) * .build(); - * Backup response = cloudRedisClusterClient.getBackup(request); + * OperationFuture future = + * cloudRedisClusterClient.addTokenAuthUserOperationCallable().futureCall(request); + * // Do something. + * Cluster 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 Backup getBackup(GetBackupRequest request) { - return getBackupCallable().call(request); + public final OperationCallable + addTokenAuthUserOperationCallable() { + return stub.addTokenAuthUserOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a specific backup. + * Adds a token auth user for a token based auth enabled cluster. * *

          Sample code: * @@ -2408,25 +5087,27 @@ public final Backup getBackup(GetBackupRequest 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * GetBackupRequest request = - * GetBackupRequest.newBuilder() - * .setName( - * BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + * AddTokenAuthUserRequest request = + * AddTokenAuthUserRequest.newBuilder() + * .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + * .setTokenAuthUser( + * TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") * .toString()) * .build(); - * ApiFuture future = cloudRedisClusterClient.getBackupCallable().futureCall(request); + * ApiFuture future = + * cloudRedisClusterClient.addTokenAuthUserCallable().futureCall(request); * // Do something. - * Backup response = future.get(); + * Operation response = future.get(); * } * } */ - public final UnaryCallable getBackupCallable() { - return stub.getBackupCallable(); + public final UnaryCallable addTokenAuthUserCallable() { + return stub.addTokenAuthUserCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a specific backup. + * Deletes a token auth user for a token based auth enabled cluster. * *

          Sample code: * @@ -2437,24 +5118,28 @@ public final UnaryCallable getBackupCallable() { * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]"); - * cloudRedisClusterClient.deleteBackupAsync(name).get(); + * TokenAuthUserName name = + * TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + * cloudRedisClusterClient.deleteTokenAuthUserAsync(name).get(); * } * } * - * @param name Required. Redis backup resource name using the form: - * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + * @param name Required. The name of the token auth user to delete. Format: + * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteBackupAsync(@Nullable BackupName name) { - DeleteBackupRequest request = - DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return deleteBackupAsync(request); + public final OperationFuture deleteTokenAuthUserAsync( + @Nullable TokenAuthUserName name) { + DeleteTokenAuthUserRequest request = + DeleteTokenAuthUserRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteTokenAuthUserAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a specific backup. + * Deletes a token auth user for a token based auth enabled cluster. * *

          Sample code: * @@ -2466,23 +5151,25 @@ public final OperationFuture deleteBackupAsync(@Nullable BackupName * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { * String name = - * BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]").toString(); - * cloudRedisClusterClient.deleteBackupAsync(name).get(); + * TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + * .toString(); + * cloudRedisClusterClient.deleteTokenAuthUserAsync(name).get(); * } * } * - * @param name Required. Redis backup resource name using the form: - * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + * @param name Required. The name of the token auth user to delete. Format: + * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteBackupAsync(String name) { - DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name).build(); - return deleteBackupAsync(request); + public final OperationFuture deleteTokenAuthUserAsync(String name) { + DeleteTokenAuthUserRequest request = + DeleteTokenAuthUserRequest.newBuilder().setName(name).build(); + return deleteTokenAuthUserAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a specific backup. + * Deletes a token auth user for a token based auth enabled cluster. * *

          Sample code: * @@ -2493,27 +5180,29 @@ public final OperationFuture deleteBackupAsync(String name) { * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * DeleteBackupRequest request = - * DeleteBackupRequest.newBuilder() + * DeleteTokenAuthUserRequest request = + * DeleteTokenAuthUserRequest.newBuilder() * .setName( - * BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + * TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") * .toString()) * .setRequestId("requestId693933066") + * .setForce(true) * .build(); - * cloudRedisClusterClient.deleteBackupAsync(request).get(); + * cloudRedisClusterClient.deleteTokenAuthUserAsync(request).get(); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteBackupAsync(DeleteBackupRequest request) { - return deleteBackupOperationCallable().futureCall(request); + public final OperationFuture deleteTokenAuthUserAsync( + DeleteTokenAuthUserRequest request) { + return deleteTokenAuthUserOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a specific backup. + * Deletes a token auth user for a token based auth enabled cluster. * *

          Sample code: * @@ -2524,27 +5213,29 @@ public final OperationFuture deleteBackupAsync(DeleteBackupRequest r * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * DeleteBackupRequest request = - * DeleteBackupRequest.newBuilder() + * DeleteTokenAuthUserRequest request = + * DeleteTokenAuthUserRequest.newBuilder() * .setName( - * BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + * TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") * .toString()) * .setRequestId("requestId693933066") + * .setForce(true) * .build(); - * OperationFuture future = - * cloudRedisClusterClient.deleteBackupOperationCallable().futureCall(request); + * OperationFuture future = + * cloudRedisClusterClient.deleteTokenAuthUserOperationCallable().futureCall(request); * // Do something. * future.get(); * } * } */ - public final OperationCallable deleteBackupOperationCallable() { - return stub.deleteBackupOperationCallable(); + public final OperationCallable + deleteTokenAuthUserOperationCallable() { + return stub.deleteTokenAuthUserOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a specific backup. + * Deletes a token auth user for a token based auth enabled cluster. * *

          Sample code: * @@ -2555,27 +5246,28 @@ public final OperationCallable deleteBackupOper * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * DeleteBackupRequest request = - * DeleteBackupRequest.newBuilder() + * DeleteTokenAuthUserRequest request = + * DeleteTokenAuthUserRequest.newBuilder() * .setName( - * BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + * TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") * .toString()) * .setRequestId("requestId693933066") + * .setForce(true) * .build(); * ApiFuture future = - * cloudRedisClusterClient.deleteBackupCallable().futureCall(request); + * cloudRedisClusterClient.deleteTokenAuthUserCallable().futureCall(request); * // Do something. * future.get(); * } * } */ - public final UnaryCallable deleteBackupCallable() { - return stub.deleteBackupCallable(); + public final UnaryCallable deleteTokenAuthUserCallable() { + return stub.deleteTokenAuthUserCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Exports a specific backup to a customer target Cloud Storage URI. + * Adds a auth token for a user of a token based auth enabled cluster. * *

          Sample code: * @@ -2586,26 +5278,103 @@ public final UnaryCallable deleteBackupCallable( * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * ExportBackupRequest request = - * ExportBackupRequest.newBuilder() - * .setName( - * BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + * TokenAuthUserName tokenAuthUser = + * TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + * AuthToken authToken = AuthToken.newBuilder().build(); + * TokenAuthUser response = + * cloudRedisClusterClient.addAuthTokenAsync(tokenAuthUser, authToken).get(); + * } + * } + * + * @param tokenAuthUser Required. The name of the token auth user resource that this auth token + * will be added for. Format: + * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} + * @param authToken Required. The auth token to add. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture addAuthTokenAsync( + @Nullable TokenAuthUserName tokenAuthUser, AuthToken authToken) { + AddAuthTokenRequest request = + AddAuthTokenRequest.newBuilder() + .setTokenAuthUser(tokenAuthUser == null ? null : tokenAuthUser.toString()) + .setAuthToken(authToken) + .build(); + return addAuthTokenAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a auth token for a user of a token based auth enabled cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   String tokenAuthUser =
          +   *       TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]")
          +   *           .toString();
          +   *   AuthToken authToken = AuthToken.newBuilder().build();
          +   *   TokenAuthUser response =
          +   *       cloudRedisClusterClient.addAuthTokenAsync(tokenAuthUser, authToken).get();
          +   * }
          +   * }
          + * + * @param tokenAuthUser Required. The name of the token auth user resource that this auth token + * will be added for. Format: + * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} + * @param authToken Required. The auth token to add. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture addAuthTokenAsync( + String tokenAuthUser, AuthToken authToken) { + AddAuthTokenRequest request = + AddAuthTokenRequest.newBuilder() + .setTokenAuthUser(tokenAuthUser) + .setAuthToken(authToken) + .build(); + return addAuthTokenAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a auth token for a user of a token based auth enabled cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   AddAuthTokenRequest request =
          +   *       AddAuthTokenRequest.newBuilder()
          +   *           .setTokenAuthUser(
          +   *               TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]")
              *                   .toString())
          +   *           .setAuthToken(AuthToken.newBuilder().build())
              *           .build();
          -   *   Backup response = cloudRedisClusterClient.exportBackupAsync(request).get();
          +   *   TokenAuthUser response = cloudRedisClusterClient.addAuthTokenAsync(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 exportBackupAsync(ExportBackupRequest request) { - return exportBackupOperationCallable().futureCall(request); + public final OperationFuture addAuthTokenAsync( + AddAuthTokenRequest request) { + return addAuthTokenOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Exports a specific backup to a customer target Cloud Storage URI. + * Adds a auth token for a user of a token based auth enabled cluster. * *

          Sample code: * @@ -2616,26 +5385,28 @@ public final OperationFuture exportBackupAsync(ExportBackupRequest * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * ExportBackupRequest request = - * ExportBackupRequest.newBuilder() - * .setName( - * BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + * AddAuthTokenRequest request = + * AddAuthTokenRequest.newBuilder() + * .setTokenAuthUser( + * TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") * .toString()) + * .setAuthToken(AuthToken.newBuilder().build()) * .build(); - * OperationFuture future = - * cloudRedisClusterClient.exportBackupOperationCallable().futureCall(request); + * OperationFuture future = + * cloudRedisClusterClient.addAuthTokenOperationCallable().futureCall(request); * // Do something. - * Backup response = future.get(); + * TokenAuthUser response = future.get(); * } * } */ - public final OperationCallable exportBackupOperationCallable() { - return stub.exportBackupOperationCallable(); + public final OperationCallable + addAuthTokenOperationCallable() { + return stub.addAuthTokenOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Exports a specific backup to a customer target Cloud Storage URI. + * Adds a auth token for a user of a token based auth enabled cluster. * *

          Sample code: * @@ -2646,34 +5417,27 @@ public final OperationCallable exportBackupOpe * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * ExportBackupRequest request = - * ExportBackupRequest.newBuilder() - * .setName( - * BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + * AddAuthTokenRequest request = + * AddAuthTokenRequest.newBuilder() + * .setTokenAuthUser( + * TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") * .toString()) + * .setAuthToken(AuthToken.newBuilder().build()) * .build(); * ApiFuture future = - * cloudRedisClusterClient.exportBackupCallable().futureCall(request); + * cloudRedisClusterClient.addAuthTokenCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * } */ - public final UnaryCallable exportBackupCallable() { - return stub.exportBackupCallable(); + public final UnaryCallable addAuthTokenCallable() { + return stub.addAuthTokenCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Backup Redis Cluster. If this is the first time a backup is being created, a backup collection - * will be created at the backend, and this backup belongs to this collection. Both collection and - * backup will have a resource name. Backup will be executed for each shard. A replica (primary if - * nonHA) will be selected to perform the execution. Backup call will be rejected if there is an - * ongoing backup or update operation. Be aware that during preview, if the cluster's internal - * software version is too old, critical update will be performed before actual backup. Once the - * internal software version is updated to the minimum version required by the backup feature, - * subsequent backups will not require critical update. After preview, there will be no critical - * update needed for backup. + * Removes a auth token for a user of a token based auth enabled instance. * *

          Sample code: * @@ -2684,33 +5448,28 @@ public final UnaryCallable exportBackupCallable( * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - * Cluster response = cloudRedisClusterClient.backupClusterAsync(name).get(); + * AuthTokenName name = + * AuthTokenName.of( + * "[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]", "[AUTH_TOKEN]"); + * cloudRedisClusterClient.deleteAuthTokenAsync(name).get(); * } * } * - * @param name Required. Redis cluster resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` - * refers to a GCP region. + * @param name Required. The name of the token auth user resource that this auth token will be + * deleted from. Format: + * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture backupClusterAsync(@Nullable ClusterName name) { - BackupClusterRequest request = - BackupClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return backupClusterAsync(request); + public final OperationFuture deleteAuthTokenAsync( + @Nullable AuthTokenName name) { + DeleteAuthTokenRequest request = + DeleteAuthTokenRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteAuthTokenAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Backup Redis Cluster. If this is the first time a backup is being created, a backup collection - * will be created at the backend, and this backup belongs to this collection. Both collection and - * backup will have a resource name. Backup will be executed for each shard. A replica (primary if - * nonHA) will be selected to perform the execution. Backup call will be rejected if there is an - * ongoing backup or update operation. Be aware that during preview, if the cluster's internal - * software version is too old, critical update will be performed before actual backup. Once the - * internal software version is updated to the minimum version required by the backup feature, - * subsequent backups will not require critical update. After preview, there will be no critical - * update needed for backup. + * Removes a auth token for a user of a token based auth enabled instance. * *

          Sample code: * @@ -2721,32 +5480,27 @@ public final OperationFuture backupClusterAsync(@Nullable ClusterN * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); - * Cluster response = cloudRedisClusterClient.backupClusterAsync(name).get(); + * String name = + * AuthTokenName.of( + * "[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]", "[AUTH_TOKEN]") + * .toString(); + * cloudRedisClusterClient.deleteAuthTokenAsync(name).get(); * } * } * - * @param name Required. Redis cluster resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` - * refers to a GCP region. + * @param name Required. The name of the token auth user resource that this auth token will be + * deleted from. Format: + * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture backupClusterAsync(String name) { - BackupClusterRequest request = BackupClusterRequest.newBuilder().setName(name).build(); - return backupClusterAsync(request); + public final OperationFuture deleteAuthTokenAsync(String name) { + DeleteAuthTokenRequest request = DeleteAuthTokenRequest.newBuilder().setName(name).build(); + return deleteAuthTokenAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Backup Redis Cluster. If this is the first time a backup is being created, a backup collection - * will be created at the backend, and this backup belongs to this collection. Both collection and - * backup will have a resource name. Backup will be executed for each shard. A replica (primary if - * nonHA) will be selected to perform the execution. Backup call will be rejected if there is an - * ongoing backup or update operation. Be aware that during preview, if the cluster's internal - * software version is too old, critical update will be performed before actual backup. Once the - * internal software version is updated to the minimum version required by the backup feature, - * subsequent backups will not require critical update. After preview, there will be no critical - * update needed for backup. + * Removes a auth token for a user of a token based auth enabled instance. * *

          Sample code: * @@ -2757,34 +5511,32 @@ public final OperationFuture backupClusterAsync(String name) { * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * BackupClusterRequest request = - * BackupClusterRequest.newBuilder() - * .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - * .setTtl(Duration.newBuilder().build()) - * .setBackupId("backupId2121930365") + * DeleteAuthTokenRequest request = + * DeleteAuthTokenRequest.newBuilder() + * .setName( + * AuthTokenName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[CLUSTER]", + * "[TOKEN_AUTH_USER]", + * "[AUTH_TOKEN]") + * .toString()) * .build(); - * Cluster response = cloudRedisClusterClient.backupClusterAsync(request).get(); + * cloudRedisClusterClient.deleteAuthTokenAsync(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 backupClusterAsync(BackupClusterRequest request) { - return backupClusterOperationCallable().futureCall(request); + public final OperationFuture deleteAuthTokenAsync( + DeleteAuthTokenRequest request) { + return deleteAuthTokenOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Backup Redis Cluster. If this is the first time a backup is being created, a backup collection - * will be created at the backend, and this backup belongs to this collection. Both collection and - * backup will have a resource name. Backup will be executed for each shard. A replica (primary if - * nonHA) will be selected to perform the execution. Backup call will be rejected if there is an - * ongoing backup or update operation. Be aware that during preview, if the cluster's internal - * software version is too old, critical update will be performed before actual backup. Once the - * internal software version is updated to the minimum version required by the backup feature, - * subsequent backups will not require critical update. After preview, there will be no critical - * update needed for backup. + * Removes a auth token for a user of a token based auth enabled instance. * *

          Sample code: * @@ -2795,35 +5547,32 @@ public final OperationFuture backupClusterAsync(BackupClusterReque * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * BackupClusterRequest request = - * BackupClusterRequest.newBuilder() - * .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - * .setTtl(Duration.newBuilder().build()) - * .setBackupId("backupId2121930365") + * DeleteAuthTokenRequest request = + * DeleteAuthTokenRequest.newBuilder() + * .setName( + * AuthTokenName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[CLUSTER]", + * "[TOKEN_AUTH_USER]", + * "[AUTH_TOKEN]") + * .toString()) * .build(); - * OperationFuture future = - * cloudRedisClusterClient.backupClusterOperationCallable().futureCall(request); + * OperationFuture future = + * cloudRedisClusterClient.deleteAuthTokenOperationCallable().futureCall(request); * // Do something. - * Cluster response = future.get(); + * future.get(); * } * } */ - public final OperationCallable - backupClusterOperationCallable() { - return stub.backupClusterOperationCallable(); + public final OperationCallable + deleteAuthTokenOperationCallable() { + return stub.deleteAuthTokenOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Backup Redis Cluster. If this is the first time a backup is being created, a backup collection - * will be created at the backend, and this backup belongs to this collection. Both collection and - * backup will have a resource name. Backup will be executed for each shard. A replica (primary if - * nonHA) will be selected to perform the execution. Backup call will be rejected if there is an - * ongoing backup or update operation. Be aware that during preview, if the cluster's internal - * software version is too old, critical update will be performed before actual backup. Once the - * internal software version is updated to the minimum version required by the backup feature, - * subsequent backups will not require critical update. After preview, there will be no critical - * update needed for backup. + * Removes a auth token for a user of a token based auth enabled instance. * *

          Sample code: * @@ -2834,21 +5583,26 @@ public final OperationFuture backupClusterAsync(BackupClusterReque * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * BackupClusterRequest request = - * BackupClusterRequest.newBuilder() - * .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - * .setTtl(Duration.newBuilder().build()) - * .setBackupId("backupId2121930365") + * DeleteAuthTokenRequest request = + * DeleteAuthTokenRequest.newBuilder() + * .setName( + * AuthTokenName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[CLUSTER]", + * "[TOKEN_AUTH_USER]", + * "[AUTH_TOKEN]") + * .toString()) * .build(); * ApiFuture future = - * cloudRedisClusterClient.backupClusterCallable().futureCall(request); + * cloudRedisClusterClient.deleteAuthTokenCallable().futureCall(request); * // Do something. - * Operation response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable backupClusterCallable() { - return stub.backupClusterCallable(); + public final UnaryCallable deleteAuthTokenCallable() { + return stub.deleteAuthTokenCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. @@ -3114,6 +5868,174 @@ protected ListClustersFixedSizeCollection createCollection( } } + public static class ListAclPoliciesPagedResponse + extends AbstractPagedListResponse< + ListAclPoliciesRequest, + ListAclPoliciesResponse, + AclPolicy, + ListAclPoliciesPage, + ListAclPoliciesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAclPoliciesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAclPoliciesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAclPoliciesPagedResponse(ListAclPoliciesPage page) { + super(page, ListAclPoliciesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAclPoliciesPage + extends AbstractPage< + ListAclPoliciesRequest, ListAclPoliciesResponse, AclPolicy, ListAclPoliciesPage> { + + private ListAclPoliciesPage( + @Nullable PageContext context, + @Nullable ListAclPoliciesResponse response) { + super(context, response); + } + + private static ListAclPoliciesPage createEmptyPage() { + return new ListAclPoliciesPage(null, null); + } + + @Override + protected ListAclPoliciesPage createPage( + @Nullable PageContext context, + @Nullable ListAclPoliciesResponse response) { + return new ListAclPoliciesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAclPoliciesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAclPoliciesRequest, + ListAclPoliciesResponse, + AclPolicy, + ListAclPoliciesPage, + ListAclPoliciesFixedSizeCollection> { + + private ListAclPoliciesFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAclPoliciesFixedSizeCollection createEmptyCollection() { + return new ListAclPoliciesFixedSizeCollection(null, 0); + } + + @Override + protected ListAclPoliciesFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAclPoliciesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListAclPolicyRevisionsPagedResponse + extends AbstractPagedListResponse< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + AclPolicyRevision, + ListAclPolicyRevisionsPage, + ListAclPolicyRevisionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse, AclPolicyRevision> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAclPolicyRevisionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAclPolicyRevisionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAclPolicyRevisionsPagedResponse(ListAclPolicyRevisionsPage page) { + super(page, ListAclPolicyRevisionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAclPolicyRevisionsPage + extends AbstractPage< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + AclPolicyRevision, + ListAclPolicyRevisionsPage> { + + private ListAclPolicyRevisionsPage( + @Nullable + PageContext< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse, AclPolicyRevision> + context, + @Nullable ListAclPolicyRevisionsResponse response) { + super(context, response); + } + + private static ListAclPolicyRevisionsPage createEmptyPage() { + return new ListAclPolicyRevisionsPage(null, null); + } + + @Override + protected ListAclPolicyRevisionsPage createPage( + @Nullable + PageContext< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse, AclPolicyRevision> + context, + @Nullable ListAclPolicyRevisionsResponse response) { + return new ListAclPolicyRevisionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse, AclPolicyRevision> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAclPolicyRevisionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + AclPolicyRevision, + ListAclPolicyRevisionsPage, + ListAclPolicyRevisionsFixedSizeCollection> { + + private ListAclPolicyRevisionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAclPolicyRevisionsFixedSizeCollection createEmptyCollection() { + return new ListAclPolicyRevisionsFixedSizeCollection(null, 0); + } + + @Override + protected ListAclPolicyRevisionsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAclPolicyRevisionsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListBackupCollectionsPagedResponse extends AbstractPagedListResponse< ListBackupCollectionsRequest, @@ -3278,6 +6200,166 @@ protected ListBackupsFixedSizeCollection createCollection( } } + public static class ListTokenAuthUsersPagedResponse + extends AbstractPagedListResponse< + ListTokenAuthUsersRequest, + ListTokenAuthUsersResponse, + TokenAuthUser, + ListTokenAuthUsersPage, + ListTokenAuthUsersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListTokenAuthUsersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListTokenAuthUsersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListTokenAuthUsersPagedResponse(ListTokenAuthUsersPage page) { + super(page, ListTokenAuthUsersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListTokenAuthUsersPage + extends AbstractPage< + ListTokenAuthUsersRequest, + ListTokenAuthUsersResponse, + TokenAuthUser, + ListTokenAuthUsersPage> { + + private ListTokenAuthUsersPage( + @Nullable PageContext + context, + @Nullable ListTokenAuthUsersResponse response) { + super(context, response); + } + + private static ListTokenAuthUsersPage createEmptyPage() { + return new ListTokenAuthUsersPage(null, null); + } + + @Override + protected ListTokenAuthUsersPage createPage( + @Nullable PageContext + context, + @Nullable ListTokenAuthUsersResponse response) { + return new ListTokenAuthUsersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListTokenAuthUsersFixedSizeCollection + extends AbstractFixedSizeCollection< + ListTokenAuthUsersRequest, + ListTokenAuthUsersResponse, + TokenAuthUser, + ListTokenAuthUsersPage, + ListTokenAuthUsersFixedSizeCollection> { + + private ListTokenAuthUsersFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListTokenAuthUsersFixedSizeCollection createEmptyCollection() { + return new ListTokenAuthUsersFixedSizeCollection(null, 0); + } + + @Override + protected ListTokenAuthUsersFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListTokenAuthUsersFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListAuthTokensPagedResponse + extends AbstractPagedListResponse< + ListAuthTokensRequest, + ListAuthTokensResponse, + AuthToken, + ListAuthTokensPage, + ListAuthTokensFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAuthTokensPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAuthTokensPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAuthTokensPagedResponse(ListAuthTokensPage page) { + super(page, ListAuthTokensFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAuthTokensPage + extends AbstractPage< + ListAuthTokensRequest, ListAuthTokensResponse, AuthToken, ListAuthTokensPage> { + + private ListAuthTokensPage( + @Nullable PageContext context, + @Nullable ListAuthTokensResponse response) { + super(context, response); + } + + private static ListAuthTokensPage createEmptyPage() { + return new ListAuthTokensPage(null, null); + } + + @Override + protected ListAuthTokensPage createPage( + @Nullable PageContext context, + @Nullable ListAuthTokensResponse response) { + return new ListAuthTokensPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAuthTokensFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAuthTokensRequest, + ListAuthTokensResponse, + AuthToken, + ListAuthTokensPage, + ListAuthTokensFixedSizeCollection> { + + private ListAuthTokensFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAuthTokensFixedSizeCollection createEmptyCollection() { + return new ListAuthTokensFixedSizeCollection(null, 0); + } + + @Override + protected ListAuthTokensFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAuthTokensFixedSizeCollection(pages, collectionSize); + } + } + public static class ListLocationsPagedResponse extends AbstractPagedListResponse< ListLocationsRequest, diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterSettings.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterSettings.java index fe5b164bb4c4..3ca6ab89c270 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterSettings.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterSettings.java @@ -16,10 +16,14 @@ package com.google.cloud.redis.cluster.v1; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListAclPoliciesPagedResponse; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListAclPolicyRevisionsPagedResponse; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListAuthTokensPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupsPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListClustersPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListLocationsPagedResponse; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListTokenAuthUsersPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -134,11 +138,23 @@ public class CloudRedisClusterSettings extends ClientSettings + listAclPoliciesSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).listAclPoliciesSettings(); + } + /** Returns the object with the settings used for calls to getCluster. */ public UnaryCallSettings getClusterSettings() { return ((CloudRedisClusterStubSettings) getStubSettings()).getClusterSettings(); } + /** Returns the object with the settings used for calls to getAclPolicy. */ + public UnaryCallSettings getAclPolicySettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).getAclPolicySettings(); + } + /** Returns the object with the settings used for calls to updateCluster. */ public UnaryCallSettings updateClusterSettings() { return ((CloudRedisClusterStubSettings) getStubSettings()).updateClusterSettings(); @@ -150,6 +166,17 @@ public UnaryCallSettings updateClusterSettings( return ((CloudRedisClusterStubSettings) getStubSettings()).updateClusterOperationSettings(); } + /** Returns the object with the settings used for calls to updateAclPolicy. */ + public UnaryCallSettings updateAclPolicySettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).updateAclPolicySettings(); + } + + /** Returns the object with the settings used for calls to updateAclPolicy. */ + public OperationCallSettings + updateAclPolicyOperationSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).updateAclPolicyOperationSettings(); + } + /** Returns the object with the settings used for calls to deleteCluster. */ public UnaryCallSettings deleteClusterSettings() { return ((CloudRedisClusterStubSettings) getStubSettings()).deleteClusterSettings(); @@ -160,6 +187,32 @@ public OperationCallSettings deleteClusterOper return ((CloudRedisClusterStubSettings) getStubSettings()).deleteClusterOperationSettings(); } + /** Returns the object with the settings used for calls to deleteAclPolicy. */ + public UnaryCallSettings deleteAclPolicySettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).deleteAclPolicySettings(); + } + + /** Returns the object with the settings used for calls to deleteAclPolicy. */ + public OperationCallSettings + deleteAclPolicyOperationSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).deleteAclPolicyOperationSettings(); + } + + /** Returns the object with the settings used for calls to getAclPolicyRevision. */ + public UnaryCallSettings + getAclPolicyRevisionSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).getAclPolicyRevisionSettings(); + } + + /** Returns the object with the settings used for calls to listAclPolicyRevisions. */ + public PagedCallSettings< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + ListAclPolicyRevisionsPagedResponse> + listAclPolicyRevisionsSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).listAclPolicyRevisionsSettings(); + } + /** Returns the object with the settings used for calls to createCluster. */ public UnaryCallSettings createClusterSettings() { return ((CloudRedisClusterStubSettings) getStubSettings()).createClusterSettings(); @@ -171,6 +224,11 @@ public UnaryCallSettings createClusterSettings( return ((CloudRedisClusterStubSettings) getStubSettings()).createClusterOperationSettings(); } + /** Returns the object with the settings used for calls to createAclPolicy. */ + public UnaryCallSettings createAclPolicySettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).createAclPolicySettings(); + } + /** Returns the object with the settings used for calls to getClusterCertificateAuthority. */ public UnaryCallSettings getClusterCertificateAuthoritySettings() { @@ -259,6 +317,75 @@ public UnaryCallSettings backupClusterSettings( return ((CloudRedisClusterStubSettings) getStubSettings()).backupClusterOperationSettings(); } + /** Returns the object with the settings used for calls to listTokenAuthUsers. */ + public PagedCallSettings< + ListTokenAuthUsersRequest, ListTokenAuthUsersResponse, ListTokenAuthUsersPagedResponse> + listTokenAuthUsersSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).listTokenAuthUsersSettings(); + } + + /** Returns the object with the settings used for calls to getTokenAuthUser. */ + public UnaryCallSettings getTokenAuthUserSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).getTokenAuthUserSettings(); + } + + /** Returns the object with the settings used for calls to listAuthTokens. */ + public PagedCallSettings< + ListAuthTokensRequest, ListAuthTokensResponse, ListAuthTokensPagedResponse> + listAuthTokensSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).listAuthTokensSettings(); + } + + /** Returns the object with the settings used for calls to getAuthToken. */ + public UnaryCallSettings getAuthTokenSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).getAuthTokenSettings(); + } + + /** Returns the object with the settings used for calls to addTokenAuthUser. */ + public UnaryCallSettings addTokenAuthUserSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).addTokenAuthUserSettings(); + } + + /** Returns the object with the settings used for calls to addTokenAuthUser. */ + public OperationCallSettings + addTokenAuthUserOperationSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).addTokenAuthUserOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteTokenAuthUser. */ + public UnaryCallSettings deleteTokenAuthUserSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).deleteTokenAuthUserSettings(); + } + + /** Returns the object with the settings used for calls to deleteTokenAuthUser. */ + public OperationCallSettings + deleteTokenAuthUserOperationSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()) + .deleteTokenAuthUserOperationSettings(); + } + + /** Returns the object with the settings used for calls to addAuthToken. */ + public UnaryCallSettings addAuthTokenSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).addAuthTokenSettings(); + } + + /** Returns the object with the settings used for calls to addAuthToken. */ + public OperationCallSettings + addAuthTokenOperationSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).addAuthTokenOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteAuthToken. */ + public UnaryCallSettings deleteAuthTokenSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).deleteAuthTokenSettings(); + } + + /** Returns the object with the settings used for calls to deleteAuthToken. */ + public OperationCallSettings + deleteAuthTokenOperationSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).deleteAuthTokenOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -389,11 +516,23 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().listClustersSettings(); } + /** Returns the builder for the settings used for calls to listAclPolicies. */ + public PagedCallSettings.Builder< + ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse> + listAclPoliciesSettings() { + return getStubSettingsBuilder().listAclPoliciesSettings(); + } + /** Returns the builder for the settings used for calls to getCluster. */ public UnaryCallSettings.Builder getClusterSettings() { return getStubSettingsBuilder().getClusterSettings(); } + /** Returns the builder for the settings used for calls to getAclPolicy. */ + public UnaryCallSettings.Builder getAclPolicySettings() { + return getStubSettingsBuilder().getAclPolicySettings(); + } + /** Returns the builder for the settings used for calls to updateCluster. */ public UnaryCallSettings.Builder updateClusterSettings() { return getStubSettingsBuilder().updateClusterSettings(); @@ -405,6 +544,17 @@ public UnaryCallSettings.Builder updateClusterS return getStubSettingsBuilder().updateClusterOperationSettings(); } + /** Returns the builder for the settings used for calls to updateAclPolicy. */ + public UnaryCallSettings.Builder updateAclPolicySettings() { + return getStubSettingsBuilder().updateAclPolicySettings(); + } + + /** Returns the builder for the settings used for calls to updateAclPolicy. */ + public OperationCallSettings.Builder + updateAclPolicyOperationSettings() { + return getStubSettingsBuilder().updateAclPolicyOperationSettings(); + } + /** Returns the builder for the settings used for calls to deleteCluster. */ public UnaryCallSettings.Builder deleteClusterSettings() { return getStubSettingsBuilder().deleteClusterSettings(); @@ -416,6 +566,32 @@ public UnaryCallSettings.Builder deleteClusterS return getStubSettingsBuilder().deleteClusterOperationSettings(); } + /** Returns the builder for the settings used for calls to deleteAclPolicy. */ + public UnaryCallSettings.Builder deleteAclPolicySettings() { + return getStubSettingsBuilder().deleteAclPolicySettings(); + } + + /** Returns the builder for the settings used for calls to deleteAclPolicy. */ + public OperationCallSettings.Builder + deleteAclPolicyOperationSettings() { + return getStubSettingsBuilder().deleteAclPolicyOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getAclPolicyRevision. */ + public UnaryCallSettings.Builder + getAclPolicyRevisionSettings() { + return getStubSettingsBuilder().getAclPolicyRevisionSettings(); + } + + /** Returns the builder for the settings used for calls to listAclPolicyRevisions. */ + public PagedCallSettings.Builder< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + ListAclPolicyRevisionsPagedResponse> + listAclPolicyRevisionsSettings() { + return getStubSettingsBuilder().listAclPolicyRevisionsSettings(); + } + /** Returns the builder for the settings used for calls to createCluster. */ public UnaryCallSettings.Builder createClusterSettings() { return getStubSettingsBuilder().createClusterSettings(); @@ -427,6 +603,11 @@ public UnaryCallSettings.Builder createClusterS return getStubSettingsBuilder().createClusterOperationSettings(); } + /** Returns the builder for the settings used for calls to createAclPolicy. */ + public UnaryCallSettings.Builder createAclPolicySettings() { + return getStubSettingsBuilder().createAclPolicySettings(); + } + /** Returns the builder for the settings used for calls to getClusterCertificateAuthority. */ public UnaryCallSettings.Builder getClusterCertificateAuthoritySettings() { @@ -514,6 +695,77 @@ public UnaryCallSettings.Builder backupClusterS return getStubSettingsBuilder().backupClusterOperationSettings(); } + /** Returns the builder for the settings used for calls to listTokenAuthUsers. */ + public PagedCallSettings.Builder< + ListTokenAuthUsersRequest, ListTokenAuthUsersResponse, ListTokenAuthUsersPagedResponse> + listTokenAuthUsersSettings() { + return getStubSettingsBuilder().listTokenAuthUsersSettings(); + } + + /** Returns the builder for the settings used for calls to getTokenAuthUser. */ + public UnaryCallSettings.Builder + getTokenAuthUserSettings() { + return getStubSettingsBuilder().getTokenAuthUserSettings(); + } + + /** Returns the builder for the settings used for calls to listAuthTokens. */ + public PagedCallSettings.Builder< + ListAuthTokensRequest, ListAuthTokensResponse, ListAuthTokensPagedResponse> + listAuthTokensSettings() { + return getStubSettingsBuilder().listAuthTokensSettings(); + } + + /** Returns the builder for the settings used for calls to getAuthToken. */ + public UnaryCallSettings.Builder getAuthTokenSettings() { + return getStubSettingsBuilder().getAuthTokenSettings(); + } + + /** Returns the builder for the settings used for calls to addTokenAuthUser. */ + public UnaryCallSettings.Builder + addTokenAuthUserSettings() { + return getStubSettingsBuilder().addTokenAuthUserSettings(); + } + + /** Returns the builder for the settings used for calls to addTokenAuthUser. */ + public OperationCallSettings.Builder + addTokenAuthUserOperationSettings() { + return getStubSettingsBuilder().addTokenAuthUserOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTokenAuthUser. */ + public UnaryCallSettings.Builder + deleteTokenAuthUserSettings() { + return getStubSettingsBuilder().deleteTokenAuthUserSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTokenAuthUser. */ + public OperationCallSettings.Builder + deleteTokenAuthUserOperationSettings() { + return getStubSettingsBuilder().deleteTokenAuthUserOperationSettings(); + } + + /** Returns the builder for the settings used for calls to addAuthToken. */ + public UnaryCallSettings.Builder addAuthTokenSettings() { + return getStubSettingsBuilder().addAuthTokenSettings(); + } + + /** Returns the builder for the settings used for calls to addAuthToken. */ + public OperationCallSettings.Builder + addAuthTokenOperationSettings() { + return getStubSettingsBuilder().addAuthTokenOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAuthToken. */ + public UnaryCallSettings.Builder deleteAuthTokenSettings() { + return getStubSettingsBuilder().deleteAuthTokenSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAuthToken. */ + public OperationCallSettings.Builder + deleteAuthTokenOperationSettings() { + return getStubSettingsBuilder().deleteAuthTokenOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/gapic_metadata.json b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/gapic_metadata.json index 1618cfd9f143..b1af81aaeed4 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/gapic_metadata.json +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/gapic_metadata.json @@ -10,21 +10,48 @@ "grpc": { "libraryClient": "CloudRedisClusterClient", "rpcs": { + "AddAuthToken": { + "methods": ["addAuthTokenAsync", "addAuthTokenAsync", "addAuthTokenAsync", "addAuthTokenOperationCallable", "addAuthTokenCallable"] + }, + "AddTokenAuthUser": { + "methods": ["addTokenAuthUserAsync", "addTokenAuthUserAsync", "addTokenAuthUserAsync", "addTokenAuthUserAsync", "addTokenAuthUserAsync", "addTokenAuthUserOperationCallable", "addTokenAuthUserCallable"] + }, "BackupCluster": { "methods": ["backupClusterAsync", "backupClusterAsync", "backupClusterAsync", "backupClusterOperationCallable", "backupClusterCallable"] }, + "CreateAclPolicy": { + "methods": ["createAclPolicy", "createAclPolicy", "createAclPolicy", "createAclPolicyCallable"] + }, "CreateCluster": { "methods": ["createClusterAsync", "createClusterAsync", "createClusterAsync", "createClusterOperationCallable", "createClusterCallable"] }, + "DeleteAclPolicy": { + "methods": ["deleteAclPolicyAsync", "deleteAclPolicyAsync", "deleteAclPolicyAsync", "deleteAclPolicyOperationCallable", "deleteAclPolicyCallable"] + }, + "DeleteAuthToken": { + "methods": ["deleteAuthTokenAsync", "deleteAuthTokenAsync", "deleteAuthTokenAsync", "deleteAuthTokenOperationCallable", "deleteAuthTokenCallable"] + }, "DeleteBackup": { "methods": ["deleteBackupAsync", "deleteBackupAsync", "deleteBackupAsync", "deleteBackupOperationCallable", "deleteBackupCallable"] }, "DeleteCluster": { "methods": ["deleteClusterAsync", "deleteClusterAsync", "deleteClusterAsync", "deleteClusterOperationCallable", "deleteClusterCallable"] }, + "DeleteTokenAuthUser": { + "methods": ["deleteTokenAuthUserAsync", "deleteTokenAuthUserAsync", "deleteTokenAuthUserAsync", "deleteTokenAuthUserOperationCallable", "deleteTokenAuthUserCallable"] + }, "ExportBackup": { "methods": ["exportBackupAsync", "exportBackupOperationCallable", "exportBackupCallable"] }, + "GetAclPolicy": { + "methods": ["getAclPolicy", "getAclPolicy", "getAclPolicy", "getAclPolicyCallable"] + }, + "GetAclPolicyRevision": { + "methods": ["getAclPolicyRevision", "getAclPolicyRevision", "getAclPolicyRevision", "getAclPolicyRevisionCallable"] + }, + "GetAuthToken": { + "methods": ["getAuthToken", "getAuthToken", "getAuthToken", "getAuthTokenCallable"] + }, "GetBackup": { "methods": ["getBackup", "getBackup", "getBackup", "getBackupCallable"] }, @@ -43,6 +70,18 @@ "GetSharedRegionalCertificateAuthority": { "methods": ["getSharedRegionalCertificateAuthority", "getSharedRegionalCertificateAuthority", "getSharedRegionalCertificateAuthority", "getSharedRegionalCertificateAuthorityCallable"] }, + "GetTokenAuthUser": { + "methods": ["getTokenAuthUser", "getTokenAuthUser", "getTokenAuthUser", "getTokenAuthUserCallable"] + }, + "ListAclPolicies": { + "methods": ["listAclPolicies", "listAclPolicies", "listAclPolicies", "listAclPoliciesPagedCallable", "listAclPoliciesCallable"] + }, + "ListAclPolicyRevisions": { + "methods": ["listAclPolicyRevisions", "listAclPolicyRevisions", "listAclPolicyRevisions", "listAclPolicyRevisionsPagedCallable", "listAclPolicyRevisionsCallable"] + }, + "ListAuthTokens": { + "methods": ["listAuthTokens", "listAuthTokens", "listAuthTokens", "listAuthTokensPagedCallable", "listAuthTokensCallable"] + }, "ListBackupCollections": { "methods": ["listBackupCollections", "listBackupCollections", "listBackupCollections", "listBackupCollectionsPagedCallable", "listBackupCollectionsCallable"] }, @@ -55,9 +94,15 @@ "ListLocations": { "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] }, + "ListTokenAuthUsers": { + "methods": ["listTokenAuthUsers", "listTokenAuthUsers", "listTokenAuthUsers", "listTokenAuthUsersPagedCallable", "listTokenAuthUsersCallable"] + }, "RescheduleClusterMaintenance": { "methods": ["rescheduleClusterMaintenanceAsync", "rescheduleClusterMaintenanceAsync", "rescheduleClusterMaintenanceAsync", "rescheduleClusterMaintenanceOperationCallable", "rescheduleClusterMaintenanceCallable"] }, + "UpdateAclPolicy": { + "methods": ["updateAclPolicyAsync", "updateAclPolicyAsync", "updateAclPolicyOperationCallable", "updateAclPolicyCallable"] + }, "UpdateCluster": { "methods": ["updateClusterAsync", "updateClusterAsync", "updateClusterOperationCallable", "updateClusterCallable"] } diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStub.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStub.java index f3cac30c5778..21c22ae4969b 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStub.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStub.java @@ -16,10 +16,14 @@ package com.google.cloud.redis.cluster.v1.stub; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListAclPoliciesPagedResponse; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListAclPolicyRevisionsPagedResponse; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListAuthTokensPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupsPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListClustersPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListLocationsPagedResponse; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListTokenAuthUsersPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; @@ -28,28 +32,52 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.redis.cluster.v1.AclPolicy; +import com.google.cloud.redis.cluster.v1.AclPolicyRevision; +import com.google.cloud.redis.cluster.v1.AddAuthTokenRequest; +import com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest; +import com.google.cloud.redis.cluster.v1.AuthToken; import com.google.cloud.redis.cluster.v1.Backup; import com.google.cloud.redis.cluster.v1.BackupClusterRequest; import com.google.cloud.redis.cluster.v1.BackupCollection; import com.google.cloud.redis.cluster.v1.CertificateAuthority; import com.google.cloud.redis.cluster.v1.Cluster; +import com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest; import com.google.cloud.redis.cluster.v1.CreateClusterRequest; +import com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest; +import com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest; import com.google.cloud.redis.cluster.v1.DeleteBackupRequest; import com.google.cloud.redis.cluster.v1.DeleteClusterRequest; +import com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest; import com.google.cloud.redis.cluster.v1.ExportBackupRequest; +import com.google.cloud.redis.cluster.v1.GetAclPolicyRequest; +import com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest; +import com.google.cloud.redis.cluster.v1.GetAuthTokenRequest; import com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest; import com.google.cloud.redis.cluster.v1.GetBackupRequest; import com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest; import com.google.cloud.redis.cluster.v1.GetClusterRequest; import com.google.cloud.redis.cluster.v1.GetSharedRegionalCertificateAuthorityRequest; +import com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest; +import com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest; +import com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse; +import com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest; +import com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse; +import com.google.cloud.redis.cluster.v1.ListAuthTokensRequest; +import com.google.cloud.redis.cluster.v1.ListAuthTokensResponse; import com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest; import com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse; import com.google.cloud.redis.cluster.v1.ListBackupsRequest; import com.google.cloud.redis.cluster.v1.ListBackupsResponse; import com.google.cloud.redis.cluster.v1.ListClustersRequest; import com.google.cloud.redis.cluster.v1.ListClustersResponse; +import com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest; +import com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse; +import com.google.cloud.redis.cluster.v1.OperationMetadata; import com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest; import com.google.cloud.redis.cluster.v1.SharedRegionalCertificateAuthority; +import com.google.cloud.redis.cluster.v1.TokenAuthUser; +import com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest; import com.google.cloud.redis.cluster.v1.UpdateClusterRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; @@ -86,10 +114,23 @@ public UnaryCallable listClustersCall throw new UnsupportedOperationException("Not implemented: listClustersCallable()"); } + public UnaryCallable + listAclPoliciesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAclPoliciesPagedCallable()"); + } + + public UnaryCallable listAclPoliciesCallable() { + throw new UnsupportedOperationException("Not implemented: listAclPoliciesCallable()"); + } + public UnaryCallable getClusterCallable() { throw new UnsupportedOperationException("Not implemented: getClusterCallable()"); } + public UnaryCallable getAclPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getAclPolicyCallable()"); + } + public OperationCallable updateClusterOperationCallable() { throw new UnsupportedOperationException("Not implemented: updateClusterOperationCallable()"); } @@ -98,6 +139,15 @@ public UnaryCallable updateClusterCallable() { throw new UnsupportedOperationException("Not implemented: updateClusterCallable()"); } + public OperationCallable + updateAclPolicyOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateAclPolicyOperationCallable()"); + } + + public UnaryCallable updateAclPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: updateAclPolicyCallable()"); + } + public OperationCallable deleteClusterOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteClusterOperationCallable()"); } @@ -106,6 +156,31 @@ public UnaryCallable deleteClusterCallable() { throw new UnsupportedOperationException("Not implemented: deleteClusterCallable()"); } + public OperationCallable + deleteAclPolicyOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAclPolicyOperationCallable()"); + } + + public UnaryCallable deleteAclPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAclPolicyCallable()"); + } + + public UnaryCallable + getAclPolicyRevisionCallable() { + throw new UnsupportedOperationException("Not implemented: getAclPolicyRevisionCallable()"); + } + + public UnaryCallable + listAclPolicyRevisionsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAclPolicyRevisionsPagedCallable()"); + } + + public UnaryCallable + listAclPolicyRevisionsCallable() { + throw new UnsupportedOperationException("Not implemented: listAclPolicyRevisionsCallable()"); + } + public OperationCallable createClusterOperationCallable() { throw new UnsupportedOperationException("Not implemented: createClusterOperationCallable()"); } @@ -114,6 +189,10 @@ public UnaryCallable createClusterCallable() { throw new UnsupportedOperationException("Not implemented: createClusterCallable()"); } + public UnaryCallable createAclPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: createAclPolicyCallable()"); + } + public UnaryCallable getClusterCertificateAuthorityCallable() { throw new UnsupportedOperationException( @@ -190,6 +269,70 @@ public UnaryCallable backupClusterCallable() { throw new UnsupportedOperationException("Not implemented: backupClusterCallable()"); } + public UnaryCallable + listTokenAuthUsersPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listTokenAuthUsersPagedCallable()"); + } + + public UnaryCallable + listTokenAuthUsersCallable() { + throw new UnsupportedOperationException("Not implemented: listTokenAuthUsersCallable()"); + } + + public UnaryCallable getTokenAuthUserCallable() { + throw new UnsupportedOperationException("Not implemented: getTokenAuthUserCallable()"); + } + + public UnaryCallable + listAuthTokensPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAuthTokensPagedCallable()"); + } + + public UnaryCallable listAuthTokensCallable() { + throw new UnsupportedOperationException("Not implemented: listAuthTokensCallable()"); + } + + public UnaryCallable getAuthTokenCallable() { + throw new UnsupportedOperationException("Not implemented: getAuthTokenCallable()"); + } + + public OperationCallable + addTokenAuthUserOperationCallable() { + throw new UnsupportedOperationException("Not implemented: addTokenAuthUserOperationCallable()"); + } + + public UnaryCallable addTokenAuthUserCallable() { + throw new UnsupportedOperationException("Not implemented: addTokenAuthUserCallable()"); + } + + public OperationCallable + deleteTokenAuthUserOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteTokenAuthUserOperationCallable()"); + } + + public UnaryCallable deleteTokenAuthUserCallable() { + throw new UnsupportedOperationException("Not implemented: deleteTokenAuthUserCallable()"); + } + + public OperationCallable + addAuthTokenOperationCallable() { + throw new UnsupportedOperationException("Not implemented: addAuthTokenOperationCallable()"); + } + + public UnaryCallable addAuthTokenCallable() { + throw new UnsupportedOperationException("Not implemented: addAuthTokenCallable()"); + } + + public OperationCallable + deleteAuthTokenOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAuthTokenOperationCallable()"); + } + + public UnaryCallable deleteAuthTokenCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAuthTokenCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStubSettings.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStubSettings.java index a1bf24e1e067..c23fd626549e 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStubSettings.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStubSettings.java @@ -16,10 +16,14 @@ package com.google.cloud.redis.cluster.v1.stub; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListAclPoliciesPagedResponse; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListAclPolicyRevisionsPagedResponse; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListAuthTokensPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupsPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListClustersPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListLocationsPagedResponse; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListTokenAuthUsersPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -56,28 +60,52 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.redis.cluster.v1.AclPolicy; +import com.google.cloud.redis.cluster.v1.AclPolicyRevision; +import com.google.cloud.redis.cluster.v1.AddAuthTokenRequest; +import com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest; +import com.google.cloud.redis.cluster.v1.AuthToken; import com.google.cloud.redis.cluster.v1.Backup; import com.google.cloud.redis.cluster.v1.BackupClusterRequest; import com.google.cloud.redis.cluster.v1.BackupCollection; import com.google.cloud.redis.cluster.v1.CertificateAuthority; import com.google.cloud.redis.cluster.v1.Cluster; +import com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest; import com.google.cloud.redis.cluster.v1.CreateClusterRequest; +import com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest; +import com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest; import com.google.cloud.redis.cluster.v1.DeleteBackupRequest; import com.google.cloud.redis.cluster.v1.DeleteClusterRequest; +import com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest; import com.google.cloud.redis.cluster.v1.ExportBackupRequest; +import com.google.cloud.redis.cluster.v1.GetAclPolicyRequest; +import com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest; +import com.google.cloud.redis.cluster.v1.GetAuthTokenRequest; import com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest; import com.google.cloud.redis.cluster.v1.GetBackupRequest; import com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest; import com.google.cloud.redis.cluster.v1.GetClusterRequest; import com.google.cloud.redis.cluster.v1.GetSharedRegionalCertificateAuthorityRequest; +import com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest; +import com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest; +import com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse; +import com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest; +import com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse; +import com.google.cloud.redis.cluster.v1.ListAuthTokensRequest; +import com.google.cloud.redis.cluster.v1.ListAuthTokensResponse; import com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest; import com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse; import com.google.cloud.redis.cluster.v1.ListBackupsRequest; import com.google.cloud.redis.cluster.v1.ListBackupsResponse; import com.google.cloud.redis.cluster.v1.ListClustersRequest; import com.google.cloud.redis.cluster.v1.ListClustersResponse; +import com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest; +import com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse; +import com.google.cloud.redis.cluster.v1.OperationMetadata; import com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest; import com.google.cloud.redis.cluster.v1.SharedRegionalCertificateAuthority; +import com.google.cloud.redis.cluster.v1.TokenAuthUser; +import com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest; import com.google.cloud.redis.cluster.v1.UpdateClusterRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; @@ -181,16 +209,34 @@ public class CloudRedisClusterStubSettings extends StubSettings listClustersSettings; + private final PagedCallSettings< + ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse> + listAclPoliciesSettings; private final UnaryCallSettings getClusterSettings; + private final UnaryCallSettings getAclPolicySettings; private final UnaryCallSettings updateClusterSettings; private final OperationCallSettings updateClusterOperationSettings; + private final UnaryCallSettings updateAclPolicySettings; + private final OperationCallSettings + updateAclPolicyOperationSettings; private final UnaryCallSettings deleteClusterSettings; private final OperationCallSettings deleteClusterOperationSettings; + private final UnaryCallSettings deleteAclPolicySettings; + private final OperationCallSettings + deleteAclPolicyOperationSettings; + private final UnaryCallSettings + getAclPolicyRevisionSettings; + private final PagedCallSettings< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + ListAclPolicyRevisionsPagedResponse> + listAclPolicyRevisionsSettings; private final UnaryCallSettings createClusterSettings; private final OperationCallSettings createClusterOperationSettings; + private final UnaryCallSettings createAclPolicySettings; private final UnaryCallSettings getClusterCertificateAuthoritySettings; private final UnaryCallSettings< @@ -219,6 +265,27 @@ public class CloudRedisClusterStubSettings extends StubSettings backupClusterSettings; private final OperationCallSettings backupClusterOperationSettings; + private final PagedCallSettings< + ListTokenAuthUsersRequest, ListTokenAuthUsersResponse, ListTokenAuthUsersPagedResponse> + listTokenAuthUsersSettings; + private final UnaryCallSettings getTokenAuthUserSettings; + private final PagedCallSettings< + ListAuthTokensRequest, ListAuthTokensResponse, ListAuthTokensPagedResponse> + listAuthTokensSettings; + private final UnaryCallSettings getAuthTokenSettings; + private final UnaryCallSettings addTokenAuthUserSettings; + private final OperationCallSettings + addTokenAuthUserOperationSettings; + private final UnaryCallSettings + deleteTokenAuthUserSettings; + private final OperationCallSettings + deleteTokenAuthUserOperationSettings; + private final UnaryCallSettings addAuthTokenSettings; + private final OperationCallSettings + addAuthTokenOperationSettings; + private final UnaryCallSettings deleteAuthTokenSettings; + private final OperationCallSettings + deleteAuthTokenOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -258,6 +325,84 @@ public Iterable extractResources(ListClustersResponse payload) { } }; + private static final PagedListDescriptor< + ListAclPoliciesRequest, ListAclPoliciesResponse, AclPolicy> + LIST_ACL_POLICIES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAclPoliciesRequest injectToken( + ListAclPoliciesRequest payload, String token) { + return ListAclPoliciesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAclPoliciesRequest injectPageSize( + ListAclPoliciesRequest payload, int pageSize) { + return ListAclPoliciesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAclPoliciesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAclPoliciesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAclPoliciesResponse payload) { + return payload.getAclPoliciesList(); + } + }; + + private static final PagedListDescriptor< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse, AclPolicyRevision> + LIST_ACL_POLICY_REVISIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse, AclPolicyRevision>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAclPolicyRevisionsRequest injectToken( + ListAclPolicyRevisionsRequest payload, String token) { + return ListAclPolicyRevisionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAclPolicyRevisionsRequest injectPageSize( + ListAclPolicyRevisionsRequest payload, int pageSize) { + return ListAclPolicyRevisionsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListAclPolicyRevisionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAclPolicyRevisionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListAclPolicyRevisionsResponse payload) { + return payload.getAclPolicyRevisionsList(); + } + }; + private static final PagedListDescriptor< ListBackupCollectionsRequest, ListBackupCollectionsResponse, BackupCollection> LIST_BACKUP_COLLECTIONS_PAGE_STR_DESC = @@ -331,6 +476,79 @@ public Iterable extractResources(ListBackupsResponse payload) { } }; + private static final PagedListDescriptor< + ListTokenAuthUsersRequest, ListTokenAuthUsersResponse, TokenAuthUser> + LIST_TOKEN_AUTH_USERS_PAGE_STR_DESC = + new PagedListDescriptor< + ListTokenAuthUsersRequest, ListTokenAuthUsersResponse, TokenAuthUser>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListTokenAuthUsersRequest injectToken( + ListTokenAuthUsersRequest payload, String token) { + return ListTokenAuthUsersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListTokenAuthUsersRequest injectPageSize( + ListTokenAuthUsersRequest payload, int pageSize) { + return ListTokenAuthUsersRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListTokenAuthUsersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListTokenAuthUsersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListTokenAuthUsersResponse payload) { + return payload.getTokenAuthUsersList(); + } + }; + + private static final PagedListDescriptor + LIST_AUTH_TOKENS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAuthTokensRequest injectToken(ListAuthTokensRequest payload, String token) { + return ListAuthTokensRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAuthTokensRequest injectPageSize( + ListAuthTokensRequest payload, int pageSize) { + return ListAuthTokensRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAuthTokensRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAuthTokensResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAuthTokensResponse payload) { + return payload.getAuthTokensList(); + } + }; + private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -382,6 +600,50 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse> + LIST_ACL_POLICIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAclPoliciesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_ACL_POLICIES_PAGE_STR_DESC, request, context); + return ListAclPoliciesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + ListAclPolicyRevisionsPagedResponse> + LIST_ACL_POLICY_REVISIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + ListAclPolicyRevisionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListAclPolicyRevisionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + AclPolicyRevision> + pageContext = + PageContext.create( + callable, LIST_ACL_POLICY_REVISIONS_PAGE_STR_DESC, request, context); + return ListAclPolicyRevisionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListBackupCollectionsRequest, ListBackupCollectionsResponse, @@ -423,6 +685,44 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListTokenAuthUsersRequest, ListTokenAuthUsersResponse, ListTokenAuthUsersPagedResponse> + LIST_TOKEN_AUTH_USERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListTokenAuthUsersRequest, + ListTokenAuthUsersResponse, + ListTokenAuthUsersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListTokenAuthUsersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_TOKEN_AUTH_USERS_PAGE_STR_DESC, request, context); + return ListTokenAuthUsersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAuthTokensRequest, ListAuthTokensResponse, ListAuthTokensPagedResponse> + LIST_AUTH_TOKENS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAuthTokensRequest, ListAuthTokensResponse, ListAuthTokensPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAuthTokensRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_AUTH_TOKENS_PAGE_STR_DESC, request, context); + return ListAuthTokensPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> LIST_LOCATIONS_PAGE_STR_FACT = @@ -446,11 +746,23 @@ public ApiFuture getFuturePagedResponse( return listClustersSettings; } + /** Returns the object with the settings used for calls to listAclPolicies. */ + public PagedCallSettings< + ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse> + listAclPoliciesSettings() { + return listAclPoliciesSettings; + } + /** Returns the object with the settings used for calls to getCluster. */ public UnaryCallSettings getClusterSettings() { return getClusterSettings; } + /** Returns the object with the settings used for calls to getAclPolicy. */ + public UnaryCallSettings getAclPolicySettings() { + return getAclPolicySettings; + } + /** Returns the object with the settings used for calls to updateCluster. */ public UnaryCallSettings updateClusterSettings() { return updateClusterSettings; @@ -462,6 +774,17 @@ public UnaryCallSettings updateClusterSettings( return updateClusterOperationSettings; } + /** Returns the object with the settings used for calls to updateAclPolicy. */ + public UnaryCallSettings updateAclPolicySettings() { + return updateAclPolicySettings; + } + + /** Returns the object with the settings used for calls to updateAclPolicy. */ + public OperationCallSettings + updateAclPolicyOperationSettings() { + return updateAclPolicyOperationSettings; + } + /** Returns the object with the settings used for calls to deleteCluster. */ public UnaryCallSettings deleteClusterSettings() { return deleteClusterSettings; @@ -472,6 +795,32 @@ public OperationCallSettings deleteClusterOper return deleteClusterOperationSettings; } + /** Returns the object with the settings used for calls to deleteAclPolicy. */ + public UnaryCallSettings deleteAclPolicySettings() { + return deleteAclPolicySettings; + } + + /** Returns the object with the settings used for calls to deleteAclPolicy. */ + public OperationCallSettings + deleteAclPolicyOperationSettings() { + return deleteAclPolicyOperationSettings; + } + + /** Returns the object with the settings used for calls to getAclPolicyRevision. */ + public UnaryCallSettings + getAclPolicyRevisionSettings() { + return getAclPolicyRevisionSettings; + } + + /** Returns the object with the settings used for calls to listAclPolicyRevisions. */ + public PagedCallSettings< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + ListAclPolicyRevisionsPagedResponse> + listAclPolicyRevisionsSettings() { + return listAclPolicyRevisionsSettings; + } + /** Returns the object with the settings used for calls to createCluster. */ public UnaryCallSettings createClusterSettings() { return createClusterSettings; @@ -483,6 +832,11 @@ public UnaryCallSettings createClusterSettings( return createClusterOperationSettings; } + /** Returns the object with the settings used for calls to createAclPolicy. */ + public UnaryCallSettings createAclPolicySettings() { + return createAclPolicySettings; + } + /** Returns the object with the settings used for calls to getClusterCertificateAuthority. */ public UnaryCallSettings getClusterCertificateAuthoritySettings() { @@ -567,6 +921,74 @@ public UnaryCallSettings backupClusterSettings( return backupClusterOperationSettings; } + /** Returns the object with the settings used for calls to listTokenAuthUsers. */ + public PagedCallSettings< + ListTokenAuthUsersRequest, ListTokenAuthUsersResponse, ListTokenAuthUsersPagedResponse> + listTokenAuthUsersSettings() { + return listTokenAuthUsersSettings; + } + + /** Returns the object with the settings used for calls to getTokenAuthUser. */ + public UnaryCallSettings getTokenAuthUserSettings() { + return getTokenAuthUserSettings; + } + + /** Returns the object with the settings used for calls to listAuthTokens. */ + public PagedCallSettings< + ListAuthTokensRequest, ListAuthTokensResponse, ListAuthTokensPagedResponse> + listAuthTokensSettings() { + return listAuthTokensSettings; + } + + /** Returns the object with the settings used for calls to getAuthToken. */ + public UnaryCallSettings getAuthTokenSettings() { + return getAuthTokenSettings; + } + + /** Returns the object with the settings used for calls to addTokenAuthUser. */ + public UnaryCallSettings addTokenAuthUserSettings() { + return addTokenAuthUserSettings; + } + + /** Returns the object with the settings used for calls to addTokenAuthUser. */ + public OperationCallSettings + addTokenAuthUserOperationSettings() { + return addTokenAuthUserOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteTokenAuthUser. */ + public UnaryCallSettings deleteTokenAuthUserSettings() { + return deleteTokenAuthUserSettings; + } + + /** Returns the object with the settings used for calls to deleteTokenAuthUser. */ + public OperationCallSettings + deleteTokenAuthUserOperationSettings() { + return deleteTokenAuthUserOperationSettings; + } + + /** Returns the object with the settings used for calls to addAuthToken. */ + public UnaryCallSettings addAuthTokenSettings() { + return addAuthTokenSettings; + } + + /** Returns the object with the settings used for calls to addAuthToken. */ + public OperationCallSettings + addAuthTokenOperationSettings() { + return addAuthTokenOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteAuthToken. */ + public UnaryCallSettings deleteAuthTokenSettings() { + return deleteAuthTokenSettings; + } + + /** Returns the object with the settings used for calls to deleteAuthToken. */ + public OperationCallSettings + deleteAuthTokenOperationSettings() { + return deleteAuthTokenOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -690,13 +1112,22 @@ protected CloudRedisClusterStubSettings(Builder settingsBuilder) throws IOExcept super(settingsBuilder); listClustersSettings = settingsBuilder.listClustersSettings().build(); + listAclPoliciesSettings = settingsBuilder.listAclPoliciesSettings().build(); getClusterSettings = settingsBuilder.getClusterSettings().build(); + getAclPolicySettings = settingsBuilder.getAclPolicySettings().build(); updateClusterSettings = settingsBuilder.updateClusterSettings().build(); updateClusterOperationSettings = settingsBuilder.updateClusterOperationSettings().build(); + updateAclPolicySettings = settingsBuilder.updateAclPolicySettings().build(); + updateAclPolicyOperationSettings = settingsBuilder.updateAclPolicyOperationSettings().build(); deleteClusterSettings = settingsBuilder.deleteClusterSettings().build(); deleteClusterOperationSettings = settingsBuilder.deleteClusterOperationSettings().build(); + deleteAclPolicySettings = settingsBuilder.deleteAclPolicySettings().build(); + deleteAclPolicyOperationSettings = settingsBuilder.deleteAclPolicyOperationSettings().build(); + getAclPolicyRevisionSettings = settingsBuilder.getAclPolicyRevisionSettings().build(); + listAclPolicyRevisionsSettings = settingsBuilder.listAclPolicyRevisionsSettings().build(); createClusterSettings = settingsBuilder.createClusterSettings().build(); createClusterOperationSettings = settingsBuilder.createClusterOperationSettings().build(); + createAclPolicySettings = settingsBuilder.createAclPolicySettings().build(); getClusterCertificateAuthoritySettings = settingsBuilder.getClusterCertificateAuthoritySettings().build(); getSharedRegionalCertificateAuthoritySettings = @@ -715,6 +1146,19 @@ protected CloudRedisClusterStubSettings(Builder settingsBuilder) throws IOExcept exportBackupOperationSettings = settingsBuilder.exportBackupOperationSettings().build(); backupClusterSettings = settingsBuilder.backupClusterSettings().build(); backupClusterOperationSettings = settingsBuilder.backupClusterOperationSettings().build(); + listTokenAuthUsersSettings = settingsBuilder.listTokenAuthUsersSettings().build(); + getTokenAuthUserSettings = settingsBuilder.getTokenAuthUserSettings().build(); + listAuthTokensSettings = settingsBuilder.listAuthTokensSettings().build(); + getAuthTokenSettings = settingsBuilder.getAuthTokenSettings().build(); + addTokenAuthUserSettings = settingsBuilder.addTokenAuthUserSettings().build(); + addTokenAuthUserOperationSettings = settingsBuilder.addTokenAuthUserOperationSettings().build(); + deleteTokenAuthUserSettings = settingsBuilder.deleteTokenAuthUserSettings().build(); + deleteTokenAuthUserOperationSettings = + settingsBuilder.deleteTokenAuthUserOperationSettings().build(); + addAuthTokenSettings = settingsBuilder.addAuthTokenSettings().build(); + addAuthTokenOperationSettings = settingsBuilder.addAuthTokenOperationSettings().build(); + deleteAuthTokenSettings = settingsBuilder.deleteAuthTokenSettings().build(); + deleteAuthTokenOperationSettings = settingsBuilder.deleteAuthTokenOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } @@ -734,16 +1178,38 @@ public static class Builder extends StubSettings.Builder listClustersSettings; + private final PagedCallSettings.Builder< + ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse> + listAclPoliciesSettings; private final UnaryCallSettings.Builder getClusterSettings; + private final UnaryCallSettings.Builder getAclPolicySettings; private final UnaryCallSettings.Builder updateClusterSettings; private final OperationCallSettings.Builder updateClusterOperationSettings; + private final UnaryCallSettings.Builder + updateAclPolicySettings; + private final OperationCallSettings.Builder< + UpdateAclPolicyRequest, AclPolicy, OperationMetadata> + updateAclPolicyOperationSettings; private final UnaryCallSettings.Builder deleteClusterSettings; private final OperationCallSettings.Builder deleteClusterOperationSettings; + private final UnaryCallSettings.Builder + deleteAclPolicySettings; + private final OperationCallSettings.Builder + deleteAclPolicyOperationSettings; + private final UnaryCallSettings.Builder + getAclPolicyRevisionSettings; + private final PagedCallSettings.Builder< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + ListAclPolicyRevisionsPagedResponse> + listAclPolicyRevisionsSettings; private final UnaryCallSettings.Builder createClusterSettings; private final OperationCallSettings.Builder createClusterOperationSettings; + private final UnaryCallSettings.Builder + createAclPolicySettings; private final UnaryCallSettings.Builder< GetClusterCertificateAuthorityRequest, CertificateAuthority> getClusterCertificateAuthoritySettings; @@ -774,6 +1240,32 @@ public static class Builder extends StubSettings.Builder backupClusterSettings; private final OperationCallSettings.Builder backupClusterOperationSettings; + private final PagedCallSettings.Builder< + ListTokenAuthUsersRequest, ListTokenAuthUsersResponse, ListTokenAuthUsersPagedResponse> + listTokenAuthUsersSettings; + private final UnaryCallSettings.Builder + getTokenAuthUserSettings; + private final PagedCallSettings.Builder< + ListAuthTokensRequest, ListAuthTokensResponse, ListAuthTokensPagedResponse> + listAuthTokensSettings; + private final UnaryCallSettings.Builder getAuthTokenSettings; + private final UnaryCallSettings.Builder + addTokenAuthUserSettings; + private final OperationCallSettings.Builder + addTokenAuthUserOperationSettings; + private final UnaryCallSettings.Builder + deleteTokenAuthUserSettings; + private final OperationCallSettings.Builder< + DeleteTokenAuthUserRequest, Empty, OperationMetadata> + deleteTokenAuthUserOperationSettings; + private final UnaryCallSettings.Builder addAuthTokenSettings; + private final OperationCallSettings.Builder< + AddAuthTokenRequest, TokenAuthUser, OperationMetadata> + addAuthTokenOperationSettings; + private final UnaryCallSettings.Builder + deleteAuthTokenSettings; + private final OperationCallSettings.Builder + deleteAuthTokenOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -816,13 +1308,23 @@ protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listClustersSettings = PagedCallSettings.newBuilder(LIST_CLUSTERS_PAGE_STR_FACT); + listAclPoliciesSettings = PagedCallSettings.newBuilder(LIST_ACL_POLICIES_PAGE_STR_FACT); getClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getAclPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateClusterOperationSettings = OperationCallSettings.newBuilder(); + updateAclPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAclPolicyOperationSettings = OperationCallSettings.newBuilder(); deleteClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteClusterOperationSettings = OperationCallSettings.newBuilder(); + deleteAclPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAclPolicyOperationSettings = OperationCallSettings.newBuilder(); + getAclPolicyRevisionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listAclPolicyRevisionsSettings = + PagedCallSettings.newBuilder(LIST_ACL_POLICY_REVISIONS_PAGE_STR_FACT); createClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createClusterOperationSettings = OperationCallSettings.newBuilder(); + createAclPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getClusterCertificateAuthoritySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getSharedRegionalCertificateAuthoritySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -839,16 +1341,36 @@ protected Builder(@Nullable ClientContext clientContext) { exportBackupOperationSettings = OperationCallSettings.newBuilder(); backupClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); backupClusterOperationSettings = OperationCallSettings.newBuilder(); + listTokenAuthUsersSettings = + PagedCallSettings.newBuilder(LIST_TOKEN_AUTH_USERS_PAGE_STR_FACT); + getTokenAuthUserSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listAuthTokensSettings = PagedCallSettings.newBuilder(LIST_AUTH_TOKENS_PAGE_STR_FACT); + getAuthTokenSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + addTokenAuthUserSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + addTokenAuthUserOperationSettings = OperationCallSettings.newBuilder(); + deleteTokenAuthUserSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteTokenAuthUserOperationSettings = OperationCallSettings.newBuilder(); + addAuthTokenSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + addAuthTokenOperationSettings = OperationCallSettings.newBuilder(); + deleteAuthTokenSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAuthTokenOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( listClustersSettings, + listAclPoliciesSettings, getClusterSettings, + getAclPolicySettings, updateClusterSettings, + updateAclPolicySettings, deleteClusterSettings, + deleteAclPolicySettings, + getAclPolicyRevisionSettings, + listAclPolicyRevisionsSettings, createClusterSettings, + createAclPolicySettings, getClusterCertificateAuthoritySettings, getSharedRegionalCertificateAuthoritySettings, rescheduleClusterMaintenanceSettings, @@ -859,6 +1381,14 @@ protected Builder(@Nullable ClientContext clientContext) { deleteBackupSettings, exportBackupSettings, backupClusterSettings, + listTokenAuthUsersSettings, + getTokenAuthUserSettings, + listAuthTokensSettings, + getAuthTokenSettings, + addTokenAuthUserSettings, + deleteTokenAuthUserSettings, + addAuthTokenSettings, + deleteAuthTokenSettings, listLocationsSettings, getLocationSettings); initDefaults(this); @@ -868,13 +1398,22 @@ protected Builder(CloudRedisClusterStubSettings settings) { super(settings); listClustersSettings = settings.listClustersSettings.toBuilder(); + listAclPoliciesSettings = settings.listAclPoliciesSettings.toBuilder(); getClusterSettings = settings.getClusterSettings.toBuilder(); + getAclPolicySettings = settings.getAclPolicySettings.toBuilder(); updateClusterSettings = settings.updateClusterSettings.toBuilder(); updateClusterOperationSettings = settings.updateClusterOperationSettings.toBuilder(); + updateAclPolicySettings = settings.updateAclPolicySettings.toBuilder(); + updateAclPolicyOperationSettings = settings.updateAclPolicyOperationSettings.toBuilder(); deleteClusterSettings = settings.deleteClusterSettings.toBuilder(); deleteClusterOperationSettings = settings.deleteClusterOperationSettings.toBuilder(); + deleteAclPolicySettings = settings.deleteAclPolicySettings.toBuilder(); + deleteAclPolicyOperationSettings = settings.deleteAclPolicyOperationSettings.toBuilder(); + getAclPolicyRevisionSettings = settings.getAclPolicyRevisionSettings.toBuilder(); + listAclPolicyRevisionsSettings = settings.listAclPolicyRevisionsSettings.toBuilder(); createClusterSettings = settings.createClusterSettings.toBuilder(); createClusterOperationSettings = settings.createClusterOperationSettings.toBuilder(); + createAclPolicySettings = settings.createAclPolicySettings.toBuilder(); getClusterCertificateAuthoritySettings = settings.getClusterCertificateAuthoritySettings.toBuilder(); getSharedRegionalCertificateAuthoritySettings = @@ -893,16 +1432,36 @@ protected Builder(CloudRedisClusterStubSettings settings) { exportBackupOperationSettings = settings.exportBackupOperationSettings.toBuilder(); backupClusterSettings = settings.backupClusterSettings.toBuilder(); backupClusterOperationSettings = settings.backupClusterOperationSettings.toBuilder(); + listTokenAuthUsersSettings = settings.listTokenAuthUsersSettings.toBuilder(); + getTokenAuthUserSettings = settings.getTokenAuthUserSettings.toBuilder(); + listAuthTokensSettings = settings.listAuthTokensSettings.toBuilder(); + getAuthTokenSettings = settings.getAuthTokenSettings.toBuilder(); + addTokenAuthUserSettings = settings.addTokenAuthUserSettings.toBuilder(); + addTokenAuthUserOperationSettings = settings.addTokenAuthUserOperationSettings.toBuilder(); + deleteTokenAuthUserSettings = settings.deleteTokenAuthUserSettings.toBuilder(); + deleteTokenAuthUserOperationSettings = + settings.deleteTokenAuthUserOperationSettings.toBuilder(); + addAuthTokenSettings = settings.addAuthTokenSettings.toBuilder(); + addAuthTokenOperationSettings = settings.addAuthTokenOperationSettings.toBuilder(); + deleteAuthTokenSettings = settings.deleteAuthTokenSettings.toBuilder(); + deleteAuthTokenOperationSettings = settings.deleteAuthTokenOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( listClustersSettings, + listAclPoliciesSettings, getClusterSettings, + getAclPolicySettings, updateClusterSettings, + updateAclPolicySettings, deleteClusterSettings, + deleteAclPolicySettings, + getAclPolicyRevisionSettings, + listAclPolicyRevisionsSettings, createClusterSettings, + createAclPolicySettings, getClusterCertificateAuthoritySettings, getSharedRegionalCertificateAuthoritySettings, rescheduleClusterMaintenanceSettings, @@ -913,6 +1472,14 @@ protected Builder(CloudRedisClusterStubSettings settings) { deleteBackupSettings, exportBackupSettings, backupClusterSettings, + listTokenAuthUsersSettings, + getTokenAuthUserSettings, + listAuthTokensSettings, + getAuthTokenSettings, + addTokenAuthUserSettings, + deleteTokenAuthUserSettings, + addAuthTokenSettings, + deleteAuthTokenSettings, listLocationsSettings, getLocationSettings); } @@ -947,26 +1514,61 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .listAclPoliciesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .getClusterSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .getAclPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .updateClusterSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .updateAclPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .deleteClusterSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .deleteAclPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .getAclPolicyRevisionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listAclPolicyRevisionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .createClusterSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .createAclPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .getClusterCertificateAuthoritySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) @@ -1017,6 +1619,46 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .listTokenAuthUsersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getTokenAuthUserSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listAuthTokensSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getAuthTokenSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .addTokenAuthUserSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteTokenAuthUserSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .addAuthTokenSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteAuthTokenSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -1050,6 +1692,30 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(7200000L)) .build())); + builder + .updateAclPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AclPolicy.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 .deleteClusterOperationSettings() .setInitialCallSettings( @@ -1073,6 +1739,30 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(1200000L)) .build())); + builder + .deleteAclPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_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 .createClusterOperationSettings() .setInitialCallSettings( @@ -1189,6 +1879,102 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .addTokenAuthUserOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Cluster.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 + .deleteTokenAuthUserOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_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 + .addAuthTokenOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(TokenAuthUser.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 + .deleteAuthTokenOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_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())); + return builder; } @@ -1214,11 +2000,23 @@ public Builder applyToAllUnaryMethods( return listClustersSettings; } + /** Returns the builder for the settings used for calls to listAclPolicies. */ + public PagedCallSettings.Builder< + ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse> + listAclPoliciesSettings() { + return listAclPoliciesSettings; + } + /** Returns the builder for the settings used for calls to getCluster. */ public UnaryCallSettings.Builder getClusterSettings() { return getClusterSettings; } + /** Returns the builder for the settings used for calls to getAclPolicy. */ + public UnaryCallSettings.Builder getAclPolicySettings() { + return getAclPolicySettings; + } + /** Returns the builder for the settings used for calls to updateCluster. */ public UnaryCallSettings.Builder updateClusterSettings() { return updateClusterSettings; @@ -1230,6 +2028,17 @@ public UnaryCallSettings.Builder updateClusterS return updateClusterOperationSettings; } + /** Returns the builder for the settings used for calls to updateAclPolicy. */ + public UnaryCallSettings.Builder updateAclPolicySettings() { + return updateAclPolicySettings; + } + + /** Returns the builder for the settings used for calls to updateAclPolicy. */ + public OperationCallSettings.Builder + updateAclPolicyOperationSettings() { + return updateAclPolicyOperationSettings; + } + /** Returns the builder for the settings used for calls to deleteCluster. */ public UnaryCallSettings.Builder deleteClusterSettings() { return deleteClusterSettings; @@ -1241,6 +2050,32 @@ public UnaryCallSettings.Builder deleteClusterS return deleteClusterOperationSettings; } + /** Returns the builder for the settings used for calls to deleteAclPolicy. */ + public UnaryCallSettings.Builder deleteAclPolicySettings() { + return deleteAclPolicySettings; + } + + /** Returns the builder for the settings used for calls to deleteAclPolicy. */ + public OperationCallSettings.Builder + deleteAclPolicyOperationSettings() { + return deleteAclPolicyOperationSettings; + } + + /** Returns the builder for the settings used for calls to getAclPolicyRevision. */ + public UnaryCallSettings.Builder + getAclPolicyRevisionSettings() { + return getAclPolicyRevisionSettings; + } + + /** Returns the builder for the settings used for calls to listAclPolicyRevisions. */ + public PagedCallSettings.Builder< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + ListAclPolicyRevisionsPagedResponse> + listAclPolicyRevisionsSettings() { + return listAclPolicyRevisionsSettings; + } + /** Returns the builder for the settings used for calls to createCluster. */ public UnaryCallSettings.Builder createClusterSettings() { return createClusterSettings; @@ -1252,6 +2087,11 @@ public UnaryCallSettings.Builder createClusterS return createClusterOperationSettings; } + /** Returns the builder for the settings used for calls to createAclPolicy. */ + public UnaryCallSettings.Builder createAclPolicySettings() { + return createAclPolicySettings; + } + /** Returns the builder for the settings used for calls to getClusterCertificateAuthority. */ public UnaryCallSettings.Builder getClusterCertificateAuthoritySettings() { @@ -1339,6 +2179,77 @@ public UnaryCallSettings.Builder backupClusterS return backupClusterOperationSettings; } + /** Returns the builder for the settings used for calls to listTokenAuthUsers. */ + public PagedCallSettings.Builder< + ListTokenAuthUsersRequest, ListTokenAuthUsersResponse, ListTokenAuthUsersPagedResponse> + listTokenAuthUsersSettings() { + return listTokenAuthUsersSettings; + } + + /** Returns the builder for the settings used for calls to getTokenAuthUser. */ + public UnaryCallSettings.Builder + getTokenAuthUserSettings() { + return getTokenAuthUserSettings; + } + + /** Returns the builder for the settings used for calls to listAuthTokens. */ + public PagedCallSettings.Builder< + ListAuthTokensRequest, ListAuthTokensResponse, ListAuthTokensPagedResponse> + listAuthTokensSettings() { + return listAuthTokensSettings; + } + + /** Returns the builder for the settings used for calls to getAuthToken. */ + public UnaryCallSettings.Builder getAuthTokenSettings() { + return getAuthTokenSettings; + } + + /** Returns the builder for the settings used for calls to addTokenAuthUser. */ + public UnaryCallSettings.Builder + addTokenAuthUserSettings() { + return addTokenAuthUserSettings; + } + + /** Returns the builder for the settings used for calls to addTokenAuthUser. */ + public OperationCallSettings.Builder + addTokenAuthUserOperationSettings() { + return addTokenAuthUserOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteTokenAuthUser. */ + public UnaryCallSettings.Builder + deleteTokenAuthUserSettings() { + return deleteTokenAuthUserSettings; + } + + /** Returns the builder for the settings used for calls to deleteTokenAuthUser. */ + public OperationCallSettings.Builder + deleteTokenAuthUserOperationSettings() { + return deleteTokenAuthUserOperationSettings; + } + + /** Returns the builder for the settings used for calls to addAuthToken. */ + public UnaryCallSettings.Builder addAuthTokenSettings() { + return addAuthTokenSettings; + } + + /** Returns the builder for the settings used for calls to addAuthToken. */ + public OperationCallSettings.Builder + addAuthTokenOperationSettings() { + return addAuthTokenOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteAuthToken. */ + public UnaryCallSettings.Builder deleteAuthTokenSettings() { + return deleteAuthTokenSettings; + } + + /** Returns the builder for the settings used for calls to deleteAuthToken. */ + public OperationCallSettings.Builder + deleteAuthTokenOperationSettings() { + return deleteAuthTokenOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/GrpcCloudRedisClusterStub.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/GrpcCloudRedisClusterStub.java index d7b8fa8dc16a..91625afe5011 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/GrpcCloudRedisClusterStub.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/GrpcCloudRedisClusterStub.java @@ -16,10 +16,14 @@ package com.google.cloud.redis.cluster.v1.stub; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListAclPoliciesPagedResponse; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListAclPolicyRevisionsPagedResponse; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListAuthTokensPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupsPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListClustersPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListLocationsPagedResponse; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListTokenAuthUsersPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -33,28 +37,52 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.redis.cluster.v1.AclPolicy; +import com.google.cloud.redis.cluster.v1.AclPolicyRevision; +import com.google.cloud.redis.cluster.v1.AddAuthTokenRequest; +import com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest; +import com.google.cloud.redis.cluster.v1.AuthToken; import com.google.cloud.redis.cluster.v1.Backup; import com.google.cloud.redis.cluster.v1.BackupClusterRequest; import com.google.cloud.redis.cluster.v1.BackupCollection; import com.google.cloud.redis.cluster.v1.CertificateAuthority; import com.google.cloud.redis.cluster.v1.Cluster; +import com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest; import com.google.cloud.redis.cluster.v1.CreateClusterRequest; +import com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest; +import com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest; import com.google.cloud.redis.cluster.v1.DeleteBackupRequest; import com.google.cloud.redis.cluster.v1.DeleteClusterRequest; +import com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest; import com.google.cloud.redis.cluster.v1.ExportBackupRequest; +import com.google.cloud.redis.cluster.v1.GetAclPolicyRequest; +import com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest; +import com.google.cloud.redis.cluster.v1.GetAuthTokenRequest; import com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest; import com.google.cloud.redis.cluster.v1.GetBackupRequest; import com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest; import com.google.cloud.redis.cluster.v1.GetClusterRequest; import com.google.cloud.redis.cluster.v1.GetSharedRegionalCertificateAuthorityRequest; +import com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest; +import com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest; +import com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse; +import com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest; +import com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse; +import com.google.cloud.redis.cluster.v1.ListAuthTokensRequest; +import com.google.cloud.redis.cluster.v1.ListAuthTokensResponse; import com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest; import com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse; import com.google.cloud.redis.cluster.v1.ListBackupsRequest; import com.google.cloud.redis.cluster.v1.ListBackupsResponse; import com.google.cloud.redis.cluster.v1.ListClustersRequest; import com.google.cloud.redis.cluster.v1.ListClustersResponse; +import com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest; +import com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse; +import com.google.cloud.redis.cluster.v1.OperationMetadata; import com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest; import com.google.cloud.redis.cluster.v1.SharedRegionalCertificateAuthority; +import com.google.cloud.redis.cluster.v1.TokenAuthUser; +import com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest; import com.google.cloud.redis.cluster.v1.UpdateClusterRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; @@ -87,6 +115,18 @@ public class GrpcCloudRedisClusterStub extends CloudRedisClusterStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + listAclPoliciesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/ListAclPolicies") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAclPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAclPoliciesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor getClusterMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -96,6 +136,16 @@ public class GrpcCloudRedisClusterStub extends CloudRedisClusterStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + getAclPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/GetAclPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetAclPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AclPolicy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor updateClusterMethodDescriptor = MethodDescriptor.newBuilder() @@ -107,6 +157,17 @@ public class GrpcCloudRedisClusterStub extends CloudRedisClusterStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + updateAclPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/UpdateAclPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAclPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor deleteClusterMethodDescriptor = MethodDescriptor.newBuilder() @@ -118,6 +179,44 @@ public class GrpcCloudRedisClusterStub extends CloudRedisClusterStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + deleteAclPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/DeleteAclPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAclPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAclPolicyRevisionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.redis.cluster.v1.CloudRedisCluster/GetAclPolicyRevision") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAclPolicyRevisionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AclPolicyRevision.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse> + listAclPolicyRevisionsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.redis.cluster.v1.CloudRedisCluster/ListAclPolicyRevisions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAclPolicyRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAclPolicyRevisionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor createClusterMethodDescriptor = MethodDescriptor.newBuilder() @@ -129,6 +228,17 @@ public class GrpcCloudRedisClusterStub extends CloudRedisClusterStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + createAclPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/CreateAclPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAclPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AclPolicy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor getClusterCertificateAuthorityMethodDescriptor = MethodDescriptor.newBuilder() @@ -247,6 +357,96 @@ public class GrpcCloudRedisClusterStub extends CloudRedisClusterStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + listTokenAuthUsersMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.redis.cluster.v1.CloudRedisCluster/ListTokenAuthUsers") + .setRequestMarshaller( + ProtoUtils.marshaller(ListTokenAuthUsersRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListTokenAuthUsersResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getTokenAuthUserMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/GetTokenAuthUser") + .setRequestMarshaller( + ProtoUtils.marshaller(GetTokenAuthUserRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(TokenAuthUser.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listAuthTokensMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/ListAuthTokens") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAuthTokensRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAuthTokensResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAuthTokenMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/GetAuthToken") + .setRequestMarshaller(ProtoUtils.marshaller(GetAuthTokenRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AuthToken.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + addTokenAuthUserMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/AddTokenAuthUser") + .setRequestMarshaller( + ProtoUtils.marshaller(AddTokenAuthUserRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteTokenAuthUserMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.redis.cluster.v1.CloudRedisCluster/DeleteTokenAuthUser") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteTokenAuthUserRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + addAuthTokenMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/AddAuthToken") + .setRequestMarshaller(ProtoUtils.marshaller(AddAuthTokenRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteAuthTokenMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/DeleteAuthToken") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAuthTokenRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -271,15 +471,33 @@ public class GrpcCloudRedisClusterStub extends CloudRedisClusterStub { private final UnaryCallable listClustersCallable; private final UnaryCallable listClustersPagedCallable; + private final UnaryCallable + listAclPoliciesCallable; + private final UnaryCallable + listAclPoliciesPagedCallable; private final UnaryCallable getClusterCallable; + private final UnaryCallable getAclPolicyCallable; private final UnaryCallable updateClusterCallable; private final OperationCallable updateClusterOperationCallable; + private final UnaryCallable updateAclPolicyCallable; + private final OperationCallable + updateAclPolicyOperationCallable; private final UnaryCallable deleteClusterCallable; private final OperationCallable deleteClusterOperationCallable; + private final UnaryCallable deleteAclPolicyCallable; + private final OperationCallable + deleteAclPolicyOperationCallable; + private final UnaryCallable + getAclPolicyRevisionCallable; + private final UnaryCallable + listAclPolicyRevisionsCallable; + private final UnaryCallable + listAclPolicyRevisionsPagedCallable; private final UnaryCallable createClusterCallable; private final OperationCallable createClusterOperationCallable; + private final UnaryCallable createAclPolicyCallable; private final UnaryCallable getClusterCertificateAuthorityCallable; private final UnaryCallable< @@ -306,6 +524,27 @@ public class GrpcCloudRedisClusterStub extends CloudRedisClusterStub { private final UnaryCallable backupClusterCallable; private final OperationCallable backupClusterOperationCallable; + private final UnaryCallable + listTokenAuthUsersCallable; + private final UnaryCallable + listTokenAuthUsersPagedCallable; + private final UnaryCallable getTokenAuthUserCallable; + private final UnaryCallable listAuthTokensCallable; + private final UnaryCallable + listAuthTokensPagedCallable; + private final UnaryCallable getAuthTokenCallable; + private final UnaryCallable addTokenAuthUserCallable; + private final OperationCallable + addTokenAuthUserOperationCallable; + private final UnaryCallable deleteTokenAuthUserCallable; + private final OperationCallable + deleteTokenAuthUserOperationCallable; + private final UnaryCallable addAuthTokenCallable; + private final OperationCallable + addAuthTokenOperationCallable; + private final UnaryCallable deleteAuthTokenCallable; + private final OperationCallable + deleteAuthTokenOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -366,6 +605,18 @@ protected GrpcCloudRedisClusterStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + GrpcCallSettings + listAclPoliciesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAclPoliciesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); GrpcCallSettings getClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getClusterMethodDescriptor) @@ -377,6 +628,17 @@ protected GrpcCloudRedisClusterStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + GrpcCallSettings getAclPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAclPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); GrpcCallSettings updateClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateClusterMethodDescriptor) @@ -387,6 +649,16 @@ protected GrpcCloudRedisClusterStub( return builder.build(); }) .build(); + GrpcCallSettings updateAclPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAclPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("acl_policy.name", String.valueOf(request.getAclPolicy().getName())); + return builder.build(); + }) + .build(); GrpcCallSettings deleteClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteClusterMethodDescriptor) @@ -398,6 +670,42 @@ protected GrpcCloudRedisClusterStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + GrpcCallSettings deleteAclPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAclPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + getAclPolicyRevisionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAclPolicyRevisionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listAclPolicyRevisionsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listAclPolicyRevisionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); GrpcCallSettings createClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createClusterMethodDescriptor) @@ -409,6 +717,17 @@ protected GrpcCloudRedisClusterStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + GrpcCallSettings createAclPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAclPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); GrpcCallSettings getClusterCertificateAuthorityTransportSettings = GrpcCallSettings @@ -529,6 +848,96 @@ protected GrpcCloudRedisClusterStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + GrpcCallSettings + listTokenAuthUsersTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listTokenAuthUsersMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getTokenAuthUserTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getTokenAuthUserMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listAuthTokensTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAuthTokensMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getAuthTokenTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAuthTokenMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings addTokenAuthUserTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(addTokenAuthUserMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster", String.valueOf(request.getCluster())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getCluster()) + .build(); + GrpcCallSettings deleteTokenAuthUserTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteTokenAuthUserMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings addAuthTokenTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(addAuthTokenMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("token_auth_user", String.valueOf(request.getTokenAuthUser())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getTokenAuthUser()) + .build(); + GrpcCallSettings deleteAuthTokenTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAuthTokenMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -556,9 +965,18 @@ protected GrpcCloudRedisClusterStub( this.listClustersPagedCallable = callableFactory.createPagedCallable( listClustersTransportSettings, settings.listClustersSettings(), clientContext); + this.listAclPoliciesCallable = + callableFactory.createUnaryCallable( + listAclPoliciesTransportSettings, settings.listAclPoliciesSettings(), clientContext); + this.listAclPoliciesPagedCallable = + callableFactory.createPagedCallable( + listAclPoliciesTransportSettings, settings.listAclPoliciesSettings(), clientContext); this.getClusterCallable = callableFactory.createUnaryCallable( getClusterTransportSettings, settings.getClusterSettings(), clientContext); + this.getAclPolicyCallable = + callableFactory.createUnaryCallable( + getAclPolicyTransportSettings, settings.getAclPolicySettings(), clientContext); this.updateClusterCallable = callableFactory.createUnaryCallable( updateClusterTransportSettings, settings.updateClusterSettings(), clientContext); @@ -568,6 +986,15 @@ protected GrpcCloudRedisClusterStub( settings.updateClusterOperationSettings(), clientContext, operationsStub); + this.updateAclPolicyCallable = + callableFactory.createUnaryCallable( + updateAclPolicyTransportSettings, settings.updateAclPolicySettings(), clientContext); + this.updateAclPolicyOperationCallable = + callableFactory.createOperationCallable( + updateAclPolicyTransportSettings, + settings.updateAclPolicyOperationSettings(), + clientContext, + operationsStub); this.deleteClusterCallable = callableFactory.createUnaryCallable( deleteClusterTransportSettings, settings.deleteClusterSettings(), clientContext); @@ -577,6 +1004,30 @@ protected GrpcCloudRedisClusterStub( settings.deleteClusterOperationSettings(), clientContext, operationsStub); + this.deleteAclPolicyCallable = + callableFactory.createUnaryCallable( + deleteAclPolicyTransportSettings, settings.deleteAclPolicySettings(), clientContext); + this.deleteAclPolicyOperationCallable = + callableFactory.createOperationCallable( + deleteAclPolicyTransportSettings, + settings.deleteAclPolicyOperationSettings(), + clientContext, + operationsStub); + this.getAclPolicyRevisionCallable = + callableFactory.createUnaryCallable( + getAclPolicyRevisionTransportSettings, + settings.getAclPolicyRevisionSettings(), + clientContext); + this.listAclPolicyRevisionsCallable = + callableFactory.createUnaryCallable( + listAclPolicyRevisionsTransportSettings, + settings.listAclPolicyRevisionsSettings(), + clientContext); + this.listAclPolicyRevisionsPagedCallable = + callableFactory.createPagedCallable( + listAclPolicyRevisionsTransportSettings, + settings.listAclPolicyRevisionsSettings(), + clientContext); this.createClusterCallable = callableFactory.createUnaryCallable( createClusterTransportSettings, settings.createClusterSettings(), clientContext); @@ -586,6 +1037,9 @@ protected GrpcCloudRedisClusterStub( settings.createClusterOperationSettings(), clientContext, operationsStub); + this.createAclPolicyCallable = + callableFactory.createUnaryCallable( + createAclPolicyTransportSettings, settings.createAclPolicySettings(), clientContext); this.getClusterCertificateAuthorityCallable = callableFactory.createUnaryCallable( getClusterCertificateAuthorityTransportSettings, @@ -658,6 +1112,66 @@ protected GrpcCloudRedisClusterStub( settings.backupClusterOperationSettings(), clientContext, operationsStub); + this.listTokenAuthUsersCallable = + callableFactory.createUnaryCallable( + listTokenAuthUsersTransportSettings, + settings.listTokenAuthUsersSettings(), + clientContext); + this.listTokenAuthUsersPagedCallable = + callableFactory.createPagedCallable( + listTokenAuthUsersTransportSettings, + settings.listTokenAuthUsersSettings(), + clientContext); + this.getTokenAuthUserCallable = + callableFactory.createUnaryCallable( + getTokenAuthUserTransportSettings, settings.getTokenAuthUserSettings(), clientContext); + this.listAuthTokensCallable = + callableFactory.createUnaryCallable( + listAuthTokensTransportSettings, settings.listAuthTokensSettings(), clientContext); + this.listAuthTokensPagedCallable = + callableFactory.createPagedCallable( + listAuthTokensTransportSettings, settings.listAuthTokensSettings(), clientContext); + this.getAuthTokenCallable = + callableFactory.createUnaryCallable( + getAuthTokenTransportSettings, settings.getAuthTokenSettings(), clientContext); + this.addTokenAuthUserCallable = + callableFactory.createUnaryCallable( + addTokenAuthUserTransportSettings, settings.addTokenAuthUserSettings(), clientContext); + this.addTokenAuthUserOperationCallable = + callableFactory.createOperationCallable( + addTokenAuthUserTransportSettings, + settings.addTokenAuthUserOperationSettings(), + clientContext, + operationsStub); + this.deleteTokenAuthUserCallable = + callableFactory.createUnaryCallable( + deleteTokenAuthUserTransportSettings, + settings.deleteTokenAuthUserSettings(), + clientContext); + this.deleteTokenAuthUserOperationCallable = + callableFactory.createOperationCallable( + deleteTokenAuthUserTransportSettings, + settings.deleteTokenAuthUserOperationSettings(), + clientContext, + operationsStub); + this.addAuthTokenCallable = + callableFactory.createUnaryCallable( + addAuthTokenTransportSettings, settings.addAuthTokenSettings(), clientContext); + this.addAuthTokenOperationCallable = + callableFactory.createOperationCallable( + addAuthTokenTransportSettings, + settings.addAuthTokenOperationSettings(), + clientContext, + operationsStub); + this.deleteAuthTokenCallable = + callableFactory.createUnaryCallable( + deleteAuthTokenTransportSettings, settings.deleteAuthTokenSettings(), clientContext); + this.deleteAuthTokenOperationCallable = + callableFactory.createOperationCallable( + deleteAuthTokenTransportSettings, + settings.deleteAuthTokenOperationSettings(), + clientContext, + operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -686,11 +1200,27 @@ public UnaryCallable listCluster return listClustersPagedCallable; } + @Override + public UnaryCallable listAclPoliciesCallable() { + return listAclPoliciesCallable; + } + + @Override + public UnaryCallable + listAclPoliciesPagedCallable() { + return listAclPoliciesPagedCallable; + } + @Override public UnaryCallable getClusterCallable() { return getClusterCallable; } + @Override + public UnaryCallable getAclPolicyCallable() { + return getAclPolicyCallable; + } + @Override public UnaryCallable updateClusterCallable() { return updateClusterCallable; @@ -701,6 +1231,17 @@ public OperationCallable updateClusterOperat return updateClusterOperationCallable; } + @Override + public UnaryCallable updateAclPolicyCallable() { + return updateAclPolicyCallable; + } + + @Override + public OperationCallable + updateAclPolicyOperationCallable() { + return updateAclPolicyOperationCallable; + } + @Override public UnaryCallable deleteClusterCallable() { return deleteClusterCallable; @@ -711,6 +1252,35 @@ public OperationCallable deleteClusterOperatio return deleteClusterOperationCallable; } + @Override + public UnaryCallable deleteAclPolicyCallable() { + return deleteAclPolicyCallable; + } + + @Override + public OperationCallable + deleteAclPolicyOperationCallable() { + return deleteAclPolicyOperationCallable; + } + + @Override + public UnaryCallable + getAclPolicyRevisionCallable() { + return getAclPolicyRevisionCallable; + } + + @Override + public UnaryCallable + listAclPolicyRevisionsCallable() { + return listAclPolicyRevisionsCallable; + } + + @Override + public UnaryCallable + listAclPolicyRevisionsPagedCallable() { + return listAclPolicyRevisionsPagedCallable; + } + @Override public UnaryCallable createClusterCallable() { return createClusterCallable; @@ -721,6 +1291,11 @@ public OperationCallable createClusterOperat return createClusterOperationCallable; } + @Override + public UnaryCallable createAclPolicyCallable() { + return createAclPolicyCallable; + } + @Override public UnaryCallable getClusterCertificateAuthorityCallable() { @@ -808,6 +1383,83 @@ public OperationCallable backupClusterOperat return backupClusterOperationCallable; } + @Override + public UnaryCallable + listTokenAuthUsersCallable() { + return listTokenAuthUsersCallable; + } + + @Override + public UnaryCallable + listTokenAuthUsersPagedCallable() { + return listTokenAuthUsersPagedCallable; + } + + @Override + public UnaryCallable getTokenAuthUserCallable() { + return getTokenAuthUserCallable; + } + + @Override + public UnaryCallable listAuthTokensCallable() { + return listAuthTokensCallable; + } + + @Override + public UnaryCallable + listAuthTokensPagedCallable() { + return listAuthTokensPagedCallable; + } + + @Override + public UnaryCallable getAuthTokenCallable() { + return getAuthTokenCallable; + } + + @Override + public UnaryCallable addTokenAuthUserCallable() { + return addTokenAuthUserCallable; + } + + @Override + public OperationCallable + addTokenAuthUserOperationCallable() { + return addTokenAuthUserOperationCallable; + } + + @Override + public UnaryCallable deleteTokenAuthUserCallable() { + return deleteTokenAuthUserCallable; + } + + @Override + public OperationCallable + deleteTokenAuthUserOperationCallable() { + return deleteTokenAuthUserOperationCallable; + } + + @Override + public UnaryCallable addAuthTokenCallable() { + return addAuthTokenCallable; + } + + @Override + public OperationCallable + addAuthTokenOperationCallable() { + return addAuthTokenOperationCallable; + } + + @Override + public UnaryCallable deleteAuthTokenCallable() { + return deleteAuthTokenCallable; + } + + @Override + public OperationCallable + deleteAuthTokenOperationCallable() { + return deleteAuthTokenOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/HttpJsonCloudRedisClusterStub.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/HttpJsonCloudRedisClusterStub.java index eba0d4c7fb4f..17b9b7d6ff9e 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/HttpJsonCloudRedisClusterStub.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/HttpJsonCloudRedisClusterStub.java @@ -16,10 +16,14 @@ package com.google.cloud.redis.cluster.v1.stub; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListAclPoliciesPagedResponse; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListAclPolicyRevisionsPagedResponse; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListAuthTokensPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupsPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListClustersPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListLocationsPagedResponse; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListTokenAuthUsersPagedResponse; import com.google.api.HttpRule; import com.google.api.core.InternalApi; @@ -41,28 +45,52 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.redis.cluster.v1.AclPolicy; +import com.google.cloud.redis.cluster.v1.AclPolicyRevision; +import com.google.cloud.redis.cluster.v1.AddAuthTokenRequest; +import com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest; +import com.google.cloud.redis.cluster.v1.AuthToken; import com.google.cloud.redis.cluster.v1.Backup; import com.google.cloud.redis.cluster.v1.BackupClusterRequest; import com.google.cloud.redis.cluster.v1.BackupCollection; import com.google.cloud.redis.cluster.v1.CertificateAuthority; import com.google.cloud.redis.cluster.v1.Cluster; +import com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest; import com.google.cloud.redis.cluster.v1.CreateClusterRequest; +import com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest; +import com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest; import com.google.cloud.redis.cluster.v1.DeleteBackupRequest; import com.google.cloud.redis.cluster.v1.DeleteClusterRequest; +import com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest; import com.google.cloud.redis.cluster.v1.ExportBackupRequest; +import com.google.cloud.redis.cluster.v1.GetAclPolicyRequest; +import com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest; +import com.google.cloud.redis.cluster.v1.GetAuthTokenRequest; import com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest; import com.google.cloud.redis.cluster.v1.GetBackupRequest; import com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest; import com.google.cloud.redis.cluster.v1.GetClusterRequest; import com.google.cloud.redis.cluster.v1.GetSharedRegionalCertificateAuthorityRequest; +import com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest; +import com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest; +import com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse; +import com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest; +import com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse; +import com.google.cloud.redis.cluster.v1.ListAuthTokensRequest; +import com.google.cloud.redis.cluster.v1.ListAuthTokensResponse; import com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest; import com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse; import com.google.cloud.redis.cluster.v1.ListBackupsRequest; import com.google.cloud.redis.cluster.v1.ListBackupsResponse; import com.google.cloud.redis.cluster.v1.ListClustersRequest; import com.google.cloud.redis.cluster.v1.ListClustersResponse; +import com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest; +import com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse; +import com.google.cloud.redis.cluster.v1.OperationMetadata; import com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest; import com.google.cloud.redis.cluster.v1.SharedRegionalCertificateAuthority; +import com.google.cloud.redis.cluster.v1.TokenAuthUser; +import com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest; import com.google.cloud.redis.cluster.v1.UpdateClusterRequest; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; @@ -91,7 +119,10 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub { TypeRegistry.newBuilder() .add(Empty.getDescriptor()) .add(Cluster.getDescriptor()) + .add(AclPolicy.getDescriptor()) .add(Any.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .add(TokenAuthUser.getDescriptor()) .add(Backup.getDescriptor()) .build(); @@ -131,6 +162,42 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub { .build()) .build(); + private static final ApiMethodDescriptor + listAclPoliciesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/ListAclPolicies") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/aclPolicies", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAclPoliciesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor getClusterMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/GetCluster") @@ -164,6 +231,40 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub { .build()) .build(); + private static final ApiMethodDescriptor + getAclPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/GetAclPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/aclPolicies/*}", + 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 -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AclPolicy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor updateClusterMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -207,6 +308,49 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + updateAclPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/UpdateAclPolicy") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{aclPolicy.name=projects/*/locations/*/aclPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "aclPolicy.name", request.getAclPolicy().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("aclPolicy", request.getAclPolicy(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateAclPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor deleteClusterMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -245,6 +389,119 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + deleteAclPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/DeleteAclPolicy") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/aclPolicies/*}", + 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, "etag", request.getEtag()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteAclPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getAclPolicyRevisionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.redis.cluster.v1.CloudRedisCluster/GetAclPolicyRevision") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/aclPolicies/*/revisions/*}", + 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 -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AclPolicyRevision.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse> + listAclPolicyRevisionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.redis.cluster.v1.CloudRedisCluster/ListAclPolicyRevisions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/aclPolicies/*}/revisions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAclPolicyRevisionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor createClusterMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -287,6 +544,46 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + createAclPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/CreateAclPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/aclPolicies", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "aclPolicyId", request.getAclPolicyId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("aclPolicy", request.getAclPolicy(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AclPolicy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor< GetClusterCertificateAuthorityRequest, CertificateAuthority> getClusterCertificateAuthorityMethodDescriptor = @@ -637,7 +934,314 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub { "/v1/{name=projects/*/locations/*/clusters/*}:backup", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + 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( + (BackupClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listTokenAuthUsersMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.redis.cluster.v1.CloudRedisCluster/ListTokenAuthUsers") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/clusters/*}/tokenAuthUsers", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListTokenAuthUsersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getTokenAuthUserMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/GetTokenAuthUser") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*/tokenAuthUsers/*}", + 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 -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TokenAuthUser.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listAuthTokensMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/ListAuthTokens") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/clusters/*/tokenAuthUsers/*}/authTokens", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAuthTokensResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAuthTokenMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/GetAuthToken") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*/tokenAuthUsers/*/authTokens/*}", + 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 -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AuthToken.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + addTokenAuthUserMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/AddTokenAuthUser") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{cluster=projects/*/locations/*/clusters/*}:addTokenAuthUser", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "cluster", request.getCluster()); + 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().clearCluster().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (AddTokenAuthUserRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteTokenAuthUserMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.redis.cluster.v1.CloudRedisCluster/DeleteTokenAuthUser") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*/tokenAuthUsers/*}", + 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, "force", request.getForce()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteTokenAuthUserRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + addAuthTokenMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/AddAuthToken") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{tokenAuthUser=projects/*/locations/*/clusters/*/tokenAuthUsers/*}:addAuthToken", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "tokenAuthUser", request.getTokenAuthUser()); + 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().clearTokenAuthUser().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (AddAuthTokenRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteAuthTokenMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/DeleteAuthToken") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*/tokenAuthUsers/*/authTokens/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; @@ -645,15 +1249,12 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub { .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -661,7 +1262,7 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub { .setDefaultTypeRegistry(typeRegistry) .build()) .setOperationSnapshotFactory( - (BackupClusterRequest request, Operation response) -> + (DeleteAuthTokenRequest request, Operation response) -> HttpJsonOperationSnapshot.create(response)) .build(); @@ -736,15 +1337,33 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub { private final UnaryCallable listClustersCallable; private final UnaryCallable listClustersPagedCallable; + private final UnaryCallable + listAclPoliciesCallable; + private final UnaryCallable + listAclPoliciesPagedCallable; private final UnaryCallable getClusterCallable; + private final UnaryCallable getAclPolicyCallable; private final UnaryCallable updateClusterCallable; private final OperationCallable updateClusterOperationCallable; + private final UnaryCallable updateAclPolicyCallable; + private final OperationCallable + updateAclPolicyOperationCallable; private final UnaryCallable deleteClusterCallable; private final OperationCallable deleteClusterOperationCallable; + private final UnaryCallable deleteAclPolicyCallable; + private final OperationCallable + deleteAclPolicyOperationCallable; + private final UnaryCallable + getAclPolicyRevisionCallable; + private final UnaryCallable + listAclPolicyRevisionsCallable; + private final UnaryCallable + listAclPolicyRevisionsPagedCallable; private final UnaryCallable createClusterCallable; private final OperationCallable createClusterOperationCallable; + private final UnaryCallable createAclPolicyCallable; private final UnaryCallable getClusterCertificateAuthorityCallable; private final UnaryCallable< @@ -771,6 +1390,27 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub { private final UnaryCallable backupClusterCallable; private final OperationCallable backupClusterOperationCallable; + private final UnaryCallable + listTokenAuthUsersCallable; + private final UnaryCallable + listTokenAuthUsersPagedCallable; + private final UnaryCallable getTokenAuthUserCallable; + private final UnaryCallable listAuthTokensCallable; + private final UnaryCallable + listAuthTokensPagedCallable; + private final UnaryCallable getAuthTokenCallable; + private final UnaryCallable addTokenAuthUserCallable; + private final OperationCallable + addTokenAuthUserOperationCallable; + private final UnaryCallable deleteTokenAuthUserCallable; + private final OperationCallable + deleteTokenAuthUserOperationCallable; + private final UnaryCallable addAuthTokenCallable; + private final OperationCallable + addAuthTokenOperationCallable; + private final UnaryCallable deleteAuthTokenCallable; + private final OperationCallable + deleteAuthTokenOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -858,6 +1498,19 @@ protected HttpJsonCloudRedisClusterStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + HttpJsonCallSettings + listAclPoliciesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAclPoliciesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); HttpJsonCallSettings getClusterTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getClusterMethodDescriptor) @@ -870,6 +1523,18 @@ protected HttpJsonCloudRedisClusterStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + HttpJsonCallSettings getAclPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAclPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); HttpJsonCallSettings updateClusterTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(updateClusterMethodDescriptor) @@ -881,6 +1546,17 @@ protected HttpJsonCloudRedisClusterStub( return builder.build(); }) .build(); + HttpJsonCallSettings updateAclPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAclPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("acl_policy.name", String.valueOf(request.getAclPolicy().getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings deleteClusterTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteClusterMethodDescriptor) @@ -893,6 +1569,45 @@ protected HttpJsonCloudRedisClusterStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + HttpJsonCallSettings deleteAclPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAclPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + getAclPolicyRevisionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAclPolicyRevisionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listAclPolicyRevisionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listAclPolicyRevisionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); HttpJsonCallSettings createClusterTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(createClusterMethodDescriptor) @@ -905,6 +1620,18 @@ protected HttpJsonCloudRedisClusterStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + HttpJsonCallSettings createAclPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAclPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); HttpJsonCallSettings getClusterCertificateAuthorityTransportSettings = HttpJsonCallSettings @@ -1035,6 +1762,105 @@ protected HttpJsonCloudRedisClusterStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + HttpJsonCallSettings + listTokenAuthUsersTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listTokenAuthUsersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getTokenAuthUserTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getTokenAuthUserMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listAuthTokensTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAuthTokensMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getAuthTokenTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAuthTokenMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings addTokenAuthUserTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(addTokenAuthUserMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster", String.valueOf(request.getCluster())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getCluster()) + .build(); + HttpJsonCallSettings + deleteTokenAuthUserTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteTokenAuthUserMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings addAuthTokenTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(addAuthTokenMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("token_auth_user", String.valueOf(request.getTokenAuthUser())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getTokenAuthUser()) + .build(); + HttpJsonCallSettings deleteAuthTokenTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAuthTokenMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1065,9 +1891,18 @@ protected HttpJsonCloudRedisClusterStub( this.listClustersPagedCallable = callableFactory.createPagedCallable( listClustersTransportSettings, settings.listClustersSettings(), clientContext); + this.listAclPoliciesCallable = + callableFactory.createUnaryCallable( + listAclPoliciesTransportSettings, settings.listAclPoliciesSettings(), clientContext); + this.listAclPoliciesPagedCallable = + callableFactory.createPagedCallable( + listAclPoliciesTransportSettings, settings.listAclPoliciesSettings(), clientContext); this.getClusterCallable = callableFactory.createUnaryCallable( getClusterTransportSettings, settings.getClusterSettings(), clientContext); + this.getAclPolicyCallable = + callableFactory.createUnaryCallable( + getAclPolicyTransportSettings, settings.getAclPolicySettings(), clientContext); this.updateClusterCallable = callableFactory.createUnaryCallable( updateClusterTransportSettings, settings.updateClusterSettings(), clientContext); @@ -1077,6 +1912,15 @@ protected HttpJsonCloudRedisClusterStub( settings.updateClusterOperationSettings(), clientContext, httpJsonOperationsStub); + this.updateAclPolicyCallable = + callableFactory.createUnaryCallable( + updateAclPolicyTransportSettings, settings.updateAclPolicySettings(), clientContext); + this.updateAclPolicyOperationCallable = + callableFactory.createOperationCallable( + updateAclPolicyTransportSettings, + settings.updateAclPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); this.deleteClusterCallable = callableFactory.createUnaryCallable( deleteClusterTransportSettings, settings.deleteClusterSettings(), clientContext); @@ -1086,6 +1930,30 @@ protected HttpJsonCloudRedisClusterStub( settings.deleteClusterOperationSettings(), clientContext, httpJsonOperationsStub); + this.deleteAclPolicyCallable = + callableFactory.createUnaryCallable( + deleteAclPolicyTransportSettings, settings.deleteAclPolicySettings(), clientContext); + this.deleteAclPolicyOperationCallable = + callableFactory.createOperationCallable( + deleteAclPolicyTransportSettings, + settings.deleteAclPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getAclPolicyRevisionCallable = + callableFactory.createUnaryCallable( + getAclPolicyRevisionTransportSettings, + settings.getAclPolicyRevisionSettings(), + clientContext); + this.listAclPolicyRevisionsCallable = + callableFactory.createUnaryCallable( + listAclPolicyRevisionsTransportSettings, + settings.listAclPolicyRevisionsSettings(), + clientContext); + this.listAclPolicyRevisionsPagedCallable = + callableFactory.createPagedCallable( + listAclPolicyRevisionsTransportSettings, + settings.listAclPolicyRevisionsSettings(), + clientContext); this.createClusterCallable = callableFactory.createUnaryCallable( createClusterTransportSettings, settings.createClusterSettings(), clientContext); @@ -1095,6 +1963,9 @@ protected HttpJsonCloudRedisClusterStub( settings.createClusterOperationSettings(), clientContext, httpJsonOperationsStub); + this.createAclPolicyCallable = + callableFactory.createUnaryCallable( + createAclPolicyTransportSettings, settings.createAclPolicySettings(), clientContext); this.getClusterCertificateAuthorityCallable = callableFactory.createUnaryCallable( getClusterCertificateAuthorityTransportSettings, @@ -1167,6 +2038,66 @@ protected HttpJsonCloudRedisClusterStub( settings.backupClusterOperationSettings(), clientContext, httpJsonOperationsStub); + this.listTokenAuthUsersCallable = + callableFactory.createUnaryCallable( + listTokenAuthUsersTransportSettings, + settings.listTokenAuthUsersSettings(), + clientContext); + this.listTokenAuthUsersPagedCallable = + callableFactory.createPagedCallable( + listTokenAuthUsersTransportSettings, + settings.listTokenAuthUsersSettings(), + clientContext); + this.getTokenAuthUserCallable = + callableFactory.createUnaryCallable( + getTokenAuthUserTransportSettings, settings.getTokenAuthUserSettings(), clientContext); + this.listAuthTokensCallable = + callableFactory.createUnaryCallable( + listAuthTokensTransportSettings, settings.listAuthTokensSettings(), clientContext); + this.listAuthTokensPagedCallable = + callableFactory.createPagedCallable( + listAuthTokensTransportSettings, settings.listAuthTokensSettings(), clientContext); + this.getAuthTokenCallable = + callableFactory.createUnaryCallable( + getAuthTokenTransportSettings, settings.getAuthTokenSettings(), clientContext); + this.addTokenAuthUserCallable = + callableFactory.createUnaryCallable( + addTokenAuthUserTransportSettings, settings.addTokenAuthUserSettings(), clientContext); + this.addTokenAuthUserOperationCallable = + callableFactory.createOperationCallable( + addTokenAuthUserTransportSettings, + settings.addTokenAuthUserOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteTokenAuthUserCallable = + callableFactory.createUnaryCallable( + deleteTokenAuthUserTransportSettings, + settings.deleteTokenAuthUserSettings(), + clientContext); + this.deleteTokenAuthUserOperationCallable = + callableFactory.createOperationCallable( + deleteTokenAuthUserTransportSettings, + settings.deleteTokenAuthUserOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.addAuthTokenCallable = + callableFactory.createUnaryCallable( + addAuthTokenTransportSettings, settings.addAuthTokenSettings(), clientContext); + this.addAuthTokenOperationCallable = + callableFactory.createOperationCallable( + addAuthTokenTransportSettings, + settings.addAuthTokenOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteAuthTokenCallable = + callableFactory.createUnaryCallable( + deleteAuthTokenTransportSettings, settings.deleteAuthTokenSettings(), clientContext); + this.deleteAuthTokenOperationCallable = + callableFactory.createOperationCallable( + deleteAuthTokenTransportSettings, + settings.deleteAuthTokenOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -1185,10 +2116,17 @@ protected HttpJsonCloudRedisClusterStub( public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(listClustersMethodDescriptor); + methodDescriptors.add(listAclPoliciesMethodDescriptor); methodDescriptors.add(getClusterMethodDescriptor); + methodDescriptors.add(getAclPolicyMethodDescriptor); methodDescriptors.add(updateClusterMethodDescriptor); + methodDescriptors.add(updateAclPolicyMethodDescriptor); methodDescriptors.add(deleteClusterMethodDescriptor); + methodDescriptors.add(deleteAclPolicyMethodDescriptor); + methodDescriptors.add(getAclPolicyRevisionMethodDescriptor); + methodDescriptors.add(listAclPolicyRevisionsMethodDescriptor); methodDescriptors.add(createClusterMethodDescriptor); + methodDescriptors.add(createAclPolicyMethodDescriptor); methodDescriptors.add(getClusterCertificateAuthorityMethodDescriptor); methodDescriptors.add(getSharedRegionalCertificateAuthorityMethodDescriptor); methodDescriptors.add(rescheduleClusterMaintenanceMethodDescriptor); @@ -1199,6 +2137,14 @@ public static List getMethodDescriptors() { methodDescriptors.add(deleteBackupMethodDescriptor); methodDescriptors.add(exportBackupMethodDescriptor); methodDescriptors.add(backupClusterMethodDescriptor); + methodDescriptors.add(listTokenAuthUsersMethodDescriptor); + methodDescriptors.add(getTokenAuthUserMethodDescriptor); + methodDescriptors.add(listAuthTokensMethodDescriptor); + methodDescriptors.add(getAuthTokenMethodDescriptor); + methodDescriptors.add(addTokenAuthUserMethodDescriptor); + methodDescriptors.add(deleteTokenAuthUserMethodDescriptor); + methodDescriptors.add(addAuthTokenMethodDescriptor); + methodDescriptors.add(deleteAuthTokenMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; @@ -1218,11 +2164,27 @@ public UnaryCallable listCluster return listClustersPagedCallable; } + @Override + public UnaryCallable listAclPoliciesCallable() { + return listAclPoliciesCallable; + } + + @Override + public UnaryCallable + listAclPoliciesPagedCallable() { + return listAclPoliciesPagedCallable; + } + @Override public UnaryCallable getClusterCallable() { return getClusterCallable; } + @Override + public UnaryCallable getAclPolicyCallable() { + return getAclPolicyCallable; + } + @Override public UnaryCallable updateClusterCallable() { return updateClusterCallable; @@ -1233,6 +2195,17 @@ public OperationCallable updateClusterOperat return updateClusterOperationCallable; } + @Override + public UnaryCallable updateAclPolicyCallable() { + return updateAclPolicyCallable; + } + + @Override + public OperationCallable + updateAclPolicyOperationCallable() { + return updateAclPolicyOperationCallable; + } + @Override public UnaryCallable deleteClusterCallable() { return deleteClusterCallable; @@ -1243,6 +2216,35 @@ public OperationCallable deleteClusterOperatio return deleteClusterOperationCallable; } + @Override + public UnaryCallable deleteAclPolicyCallable() { + return deleteAclPolicyCallable; + } + + @Override + public OperationCallable + deleteAclPolicyOperationCallable() { + return deleteAclPolicyOperationCallable; + } + + @Override + public UnaryCallable + getAclPolicyRevisionCallable() { + return getAclPolicyRevisionCallable; + } + + @Override + public UnaryCallable + listAclPolicyRevisionsCallable() { + return listAclPolicyRevisionsCallable; + } + + @Override + public UnaryCallable + listAclPolicyRevisionsPagedCallable() { + return listAclPolicyRevisionsPagedCallable; + } + @Override public UnaryCallable createClusterCallable() { return createClusterCallable; @@ -1253,6 +2255,11 @@ public OperationCallable createClusterOperat return createClusterOperationCallable; } + @Override + public UnaryCallable createAclPolicyCallable() { + return createAclPolicyCallable; + } + @Override public UnaryCallable getClusterCertificateAuthorityCallable() { @@ -1340,6 +2347,83 @@ public OperationCallable backupClusterOperat return backupClusterOperationCallable; } + @Override + public UnaryCallable + listTokenAuthUsersCallable() { + return listTokenAuthUsersCallable; + } + + @Override + public UnaryCallable + listTokenAuthUsersPagedCallable() { + return listTokenAuthUsersPagedCallable; + } + + @Override + public UnaryCallable getTokenAuthUserCallable() { + return getTokenAuthUserCallable; + } + + @Override + public UnaryCallable listAuthTokensCallable() { + return listAuthTokensCallable; + } + + @Override + public UnaryCallable + listAuthTokensPagedCallable() { + return listAuthTokensPagedCallable; + } + + @Override + public UnaryCallable getAuthTokenCallable() { + return getAuthTokenCallable; + } + + @Override + public UnaryCallable addTokenAuthUserCallable() { + return addTokenAuthUserCallable; + } + + @Override + public OperationCallable + addTokenAuthUserOperationCallable() { + return addTokenAuthUserOperationCallable; + } + + @Override + public UnaryCallable deleteTokenAuthUserCallable() { + return deleteTokenAuthUserCallable; + } + + @Override + public OperationCallable + deleteTokenAuthUserOperationCallable() { + return deleteTokenAuthUserOperationCallable; + } + + @Override + public UnaryCallable addAuthTokenCallable() { + return addAuthTokenCallable; + } + + @Override + public OperationCallable + addAuthTokenOperationCallable() { + return addAuthTokenOperationCallable; + } + + @Override + public UnaryCallable deleteAuthTokenCallable() { + return deleteAuthTokenCallable; + } + + @Override + public OperationCallable + deleteAuthTokenOperationCallable() { + return deleteAuthTokenOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClient.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClient.java index 6e1f7c231c38..6fcc89a43911 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClient.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClient.java @@ -122,6 +122,31 @@ * * * + *

          ListAclPolicies + *

          Lists all ACL policies owned by a project in either the specified location (region) or all locations. + *

          The location should have the following format: + *

            + *
          • `projects/{project_id}/locations/{location_id}` + *
          + *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • listAclPolicies(ListAclPoliciesRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • listAclPolicies(LocationName parent) + *

          • listAclPolicies(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.

          + *
            + *
          • listAclPoliciesPagedCallable() + *

          • listAclPoliciesCallable() + *

          + * + * + * *

          GetCluster *

          Gets the details of a specific Redis cluster. * @@ -141,6 +166,25 @@ * * * + *

          GetAclPolicy + *

          Gets the details of a specific Redis Cluster ACL policy. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • getAclPolicy(GetAclPolicyRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • getAclPolicy(AclPolicyName name) + *

          • getAclPolicy(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.

          + *
            + *
          • getAclPolicyCallable() + *

          + * + * + * *

          UpdateCluster *

          Updates the metadata and configuration of a specific Redis cluster. *

          Completed longrunning.Operation will contain the new cluster object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. @@ -161,6 +205,27 @@ * * * + *

          UpdateAclPolicy + *

          Updates the ACL policy. + *

          The operation applies the updated ACL policy to all of the linked clusters. If Memorystore can apply the policy to all clusters, then the operation returns a SUCCESS status. If Memorystore can't apply the policy to all clusters, then to ensure eventual consistency, Memorystore uses reconciliation to apply the policy to the failed clusters. + *

          Completed longrunning.Operation will contain the new ACL policy object in the response field. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • updateAclPolicyAsync(UpdateAclPolicyRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • updateAclPolicyAsync(AclPolicy aclPolicy, 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.

          + *
            + *
          • updateAclPolicyOperationCallable() + *

          • updateAclPolicyCallable() + *

          + * + * + * *

          DeleteCluster *

          Deletes a specific Redis cluster. Cluster stops serving and data is deleted. * @@ -181,6 +246,65 @@ * * * + *

          DeleteAclPolicy + *

          Deletes a specific ACL policy. This action will delete the ACL policy and all the rules associated with it. An ACL policy cannot be deleted if it is attached to a cluster. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • deleteAclPolicyAsync(DeleteAclPolicyRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • deleteAclPolicyAsync(AclPolicyName name) + *

          • deleteAclPolicyAsync(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.

          + *
            + *
          • deleteAclPolicyOperationCallable() + *

          • deleteAclPolicyCallable() + *

          + * + * + * + *

          GetAclPolicyRevision + *

          Gets details of a specific ACL policy revision. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • getAclPolicyRevision(GetAclPolicyRevisionRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • getAclPolicyRevision(AclPolicyRevisionName name) + *

          • getAclPolicyRevision(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.

          + *
            + *
          • getAclPolicyRevisionCallable() + *

          + * + * + * + *

          ListAclPolicyRevisions + *

          Lists all ACL policy revisions in a given ACL policy. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • listAclPolicyRevisions(ListAclPolicyRevisionsRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • listAclPolicyRevisions(AclPolicyName parent) + *

          • listAclPolicyRevisions(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.

          + *
            + *
          • listAclPolicyRevisionsPagedCallable() + *

          • listAclPolicyRevisionsCallable() + *

          + * + * + * *

          CreateCluster *

          Creates a Redis cluster based on the specified properties. The creation is executed asynchronously and callers may check the returned operation to track its progress. Once the operation is completed the Redis cluster will be fully functional. The completed longrunning.Operation will contain the new cluster object in the response field. *

          The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. @@ -202,6 +326,25 @@ * * * + *

          CreateAclPolicy + *

          Creates an ACL policy. The creation is executed synchronously and the policy is available for use immediately after the RPC returns. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • createAclPolicy(CreateAclPolicyRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • createAclPolicy(LocationName parent, AclPolicy aclPolicy, String aclPolicyId) + *

          • createAclPolicy(String parent, AclPolicy aclPolicy, String aclPolicyId) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • createAclPolicyCallable() + *

          + * + * + * *

          GetClusterCertificateAuthority *

          Gets the details of certificate authority information for Redis cluster. * @@ -774,7 +917,17 @@ public final UnaryCallable listCluste // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a specific Redis cluster. + * Lists all ACL policies owned by a project in either the specified location (region) or all + * locations. + * + *

          The location should have the following format: + * + *

            + *
          • `projects/{project_id}/locations/{location_id}` + *
          + * + *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. * *

          Sample code: * @@ -785,25 +938,39 @@ public final UnaryCallable listCluste * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - * Cluster response = cloudRedisClusterClient.getCluster(name); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (AclPolicy element : cloudRedisClusterClient.listAclPolicies(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. Redis cluster resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` - * refers to a GCP region. + * @param parent Required. The resource name of the ACL policy location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google + * Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Cluster getCluster(@Nullable ClusterName name) { - GetClusterRequest request = - GetClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getCluster(request); + public final ListAclPoliciesPagedResponse listAclPolicies(@Nullable LocationName parent) { + ListAclPoliciesRequest request = + ListAclPoliciesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAclPolicies(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a specific Redis cluster. + * Lists all ACL policies owned by a project in either the specified location (region) or all + * locations. + * + *

          The location should have the following format: + * + *

            + *
          • `projects/{project_id}/locations/{location_id}` + *
          + * + *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. * *

          Sample code: * @@ -814,24 +981,36 @@ public final Cluster getCluster(@Nullable ClusterName name) { * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); - * Cluster response = cloudRedisClusterClient.getCluster(name); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (AclPolicy element : cloudRedisClusterClient.listAclPolicies(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. Redis cluster resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` - * refers to a GCP region. + * @param parent Required. The resource name of the ACL policy location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google + * Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Cluster getCluster(String name) { - GetClusterRequest request = GetClusterRequest.newBuilder().setName(name).build(); - return getCluster(request); + public final ListAclPoliciesPagedResponse listAclPolicies(String parent) { + ListAclPoliciesRequest request = ListAclPoliciesRequest.newBuilder().setParent(parent).build(); + return listAclPolicies(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a specific Redis cluster. + * Lists all ACL policies owned by a project in either the specified location (region) or all + * locations. + * + *

          The location should have the following format: + * + *

            + *
          • `projects/{project_id}/locations/{location_id}` + *
          + * + *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. * *

          Sample code: * @@ -842,24 +1021,38 @@ public final Cluster getCluster(String name) { * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * GetClusterRequest request = - * GetClusterRequest.newBuilder() - * .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + * ListAclPoliciesRequest request = + * ListAclPoliciesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * Cluster response = cloudRedisClusterClient.getCluster(request); + * for (AclPolicy element : cloudRedisClusterClient.listAclPolicies(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 Cluster getCluster(GetClusterRequest request) { - return getClusterCallable().call(request); + public final ListAclPoliciesPagedResponse listAclPolicies(ListAclPoliciesRequest request) { + return listAclPoliciesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a specific Redis cluster. + * Lists all ACL policies owned by a project in either the specified location (region) or all + * locations. + * + *

          The location should have the following format: + * + *

            + *
          • `projects/{project_id}/locations/{location_id}` + *
          + * + *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. * *

          Sample code: * @@ -870,27 +1063,39 @@ public final Cluster getCluster(GetClusterRequest 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * GetClusterRequest request = - * GetClusterRequest.newBuilder() - * .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + * ListAclPoliciesRequest request = + * ListAclPoliciesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = cloudRedisClusterClient.getClusterCallable().futureCall(request); + * ApiFuture future = + * cloudRedisClusterClient.listAclPoliciesPagedCallable().futureCall(request); * // Do something. - * Cluster response = future.get(); + * for (AclPolicy element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final UnaryCallable getClusterCallable() { - return stub.getClusterCallable(); + public final UnaryCallable + listAclPoliciesPagedCallable() { + return stub.listAclPoliciesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the metadata and configuration of a specific Redis cluster. + * Lists all ACL policies owned by a project in either the specified location (region) or all + * locations. * - *

          Completed longrunning.Operation will contain the new cluster object in the response field. - * The returned operation is automatically deleted after a few hours, so there is no need to call - * DeleteOperation. + *

          The location should have the following format: + * + *

            + *
          • `projects/{project_id}/locations/{location_id}` + *
          + * + *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. * *

          Sample code: * @@ -901,33 +1106,36 @@ public final UnaryCallable getClusterCallable() { * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * Cluster cluster = Cluster.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * Cluster response = cloudRedisClusterClient.updateClusterAsync(cluster, updateMask).get(); + * ListAclPoliciesRequest request = + * ListAclPoliciesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListAclPoliciesResponse response = + * cloudRedisClusterClient.listAclPoliciesCallable().call(request); + * for (AclPolicy element : response.getAclPoliciesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @param cluster Required. Update description. Only fields specified in update_mask are updated. - * @param updateMask Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field may only include these fields from - * [Cluster][google.cloud.redis.cluster.v1beta1.Cluster]: - *

          * `size_gb` * `replica_count` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updateClusterAsync( - Cluster cluster, FieldMask updateMask) { - UpdateClusterRequest request = - UpdateClusterRequest.newBuilder().setCluster(cluster).setUpdateMask(updateMask).build(); - return updateClusterAsync(request); + public final UnaryCallable + listAclPoliciesCallable() { + return stub.listAclPoliciesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the metadata and configuration of a specific Redis cluster. - * - *

          Completed longrunning.Operation will contain the new cluster object in the response field. - * The returned operation is automatically deleted after a few hours, so there is no need to call - * DeleteOperation. + * Gets the details of a specific Redis cluster. * *

          Sample code: * @@ -938,26 +1146,292 @@ public final OperationFuture updateClusterAsync( * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * UpdateClusterRequest request = - * UpdateClusterRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setCluster(Cluster.newBuilder().build()) - * .setRequestId("requestId693933066") - * .build(); - * Cluster response = cloudRedisClusterClient.updateClusterAsync(request).get(); + * ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + * Cluster response = cloudRedisClusterClient.getCluster(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updateClusterAsync(UpdateClusterRequest request) { - return updateClusterOperationCallable().futureCall(request); + public final Cluster getCluster(@Nullable ClusterName name) { + GetClusterRequest request = + GetClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getCluster(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the metadata and configuration of a specific Redis cluster. + * Gets the details of a specific Redis cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
          +   *   Cluster response = cloudRedisClusterClient.getCluster(name);
          +   * }
          +   * }
          + * + * @param name Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Cluster getCluster(String name) { + GetClusterRequest request = GetClusterRequest.newBuilder().setName(name).build(); + return getCluster(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific Redis cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   GetClusterRequest request =
          +   *       GetClusterRequest.newBuilder()
          +   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
          +   *           .build();
          +   *   Cluster response = cloudRedisClusterClient.getCluster(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 Cluster getCluster(GetClusterRequest request) { + return getClusterCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific Redis cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   GetClusterRequest request =
          +   *       GetClusterRequest.newBuilder()
          +   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
          +   *           .build();
          +   *   ApiFuture future = cloudRedisClusterClient.getClusterCallable().futureCall(request);
          +   *   // Do something.
          +   *   Cluster response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable getClusterCallable() { + return stub.getClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific Redis Cluster ACL policy. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
          +   *   AclPolicy response = cloudRedisClusterClient.getAclPolicy(name);
          +   * }
          +   * }
          + * + * @param name Required. Redis ACL policy resource name using the form: + * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` where + * `location_id` refers to a Google Cloud region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclPolicy getAclPolicy(@Nullable AclPolicyName name) { + GetAclPolicyRequest request = + GetAclPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAclPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific Redis Cluster ACL policy. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   String name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString();
          +   *   AclPolicy response = cloudRedisClusterClient.getAclPolicy(name);
          +   * }
          +   * }
          + * + * @param name Required. Redis ACL policy resource name using the form: + * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` where + * `location_id` refers to a Google Cloud region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclPolicy getAclPolicy(String name) { + GetAclPolicyRequest request = GetAclPolicyRequest.newBuilder().setName(name).build(); + return getAclPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific Redis Cluster ACL policy. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   GetAclPolicyRequest request =
          +   *       GetAclPolicyRequest.newBuilder()
          +   *           .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +   *           .build();
          +   *   AclPolicy response = cloudRedisClusterClient.getAclPolicy(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 AclPolicy getAclPolicy(GetAclPolicyRequest request) { + return getAclPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific Redis Cluster ACL policy. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   GetAclPolicyRequest request =
          +   *       GetAclPolicyRequest.newBuilder()
          +   *           .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +   *           .build();
          +   *   ApiFuture future =
          +   *       cloudRedisClusterClient.getAclPolicyCallable().futureCall(request);
          +   *   // Do something.
          +   *   AclPolicy response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable getAclPolicyCallable() { + return stub.getAclPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the metadata and configuration of a specific Redis cluster. + * + *

          Completed longrunning.Operation will contain the new cluster object in the response field. + * The returned operation is automatically deleted after a few hours, so there is no need to call + * DeleteOperation. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   Cluster cluster = Cluster.newBuilder().build();
          +   *   FieldMask updateMask = FieldMask.newBuilder().build();
          +   *   Cluster response = cloudRedisClusterClient.updateClusterAsync(cluster, updateMask).get();
          +   * }
          +   * }
          + * + * @param cluster Required. Update description. Only fields specified in update_mask are updated. + * @param updateMask Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field may only include these fields from + * [Cluster][google.cloud.redis.cluster.v1beta1.Cluster]: + *

          * `size_gb` * `replica_count` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateClusterAsync( + Cluster cluster, FieldMask updateMask) { + UpdateClusterRequest request = + UpdateClusterRequest.newBuilder().setCluster(cluster).setUpdateMask(updateMask).build(); + return updateClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the metadata and configuration of a specific Redis cluster. + * + *

          Completed longrunning.Operation will contain the new cluster object in the response field. + * The returned operation is automatically deleted after a few hours, so there is no need to call + * DeleteOperation. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   UpdateClusterRequest request =
          +   *       UpdateClusterRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setCluster(Cluster.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   Cluster response = cloudRedisClusterClient.updateClusterAsync(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 updateClusterAsync(UpdateClusterRequest request) { + return updateClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the metadata and configuration of a specific Redis cluster. * *

          Completed longrunning.Operation will contain the new cluster object in the response field. * The returned operation is automatically deleted after a few hours, so there is no need to call @@ -1026,7 +1500,15 @@ public final UnaryCallable updateClusterCallabl // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a specific Redis cluster. Cluster stops serving and data is deleted. + * Updates the ACL policy. + * + *

          The operation applies the updated ACL policy to all of the linked clusters. If Memorystore + * can apply the policy to all clusters, then the operation returns a SUCCESS status. If + * Memorystore can't apply the policy to all clusters, then to ensure eventual consistency, + * Memorystore uses reconciliation to apply the policy to the failed clusters. + * + *

          Completed longrunning.Operation will contain the new ACL policy object in the response + * field. * *

          Sample code: * @@ -1037,25 +1519,607 @@ public final UnaryCallable updateClusterCallabl * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - * cloudRedisClusterClient.deleteClusterAsync(name).get(); + * AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * AclPolicy response = + * cloudRedisClusterClient.updateAclPolicyAsync(aclPolicy, updateMask).get(); + * } + * } + * + * @param aclPolicy Required. The ACL policy to be updated. + * @param updateMask Optional. Mask of fields to be updated. At least one path must be supplied in + * this field. The elements of the repeated paths field may only include these fields from + * `AclPolicy`: + *

          * `rules` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateAclPolicyAsync( + AclPolicy aclPolicy, FieldMask updateMask) { + UpdateAclPolicyRequest request = + UpdateAclPolicyRequest.newBuilder() + .setAclPolicy(aclPolicy) + .setUpdateMask(updateMask) + .build(); + return updateAclPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the ACL policy. + * + *

          The operation applies the updated ACL policy to all of the linked clusters. If Memorystore + * can apply the policy to all clusters, then the operation returns a SUCCESS status. If + * Memorystore can't apply the policy to all clusters, then to ensure eventual consistency, + * Memorystore uses reconciliation to apply the policy to the failed clusters. + * + *

          Completed longrunning.Operation will contain the new ACL policy object in the response + * field. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   UpdateAclPolicyRequest request =
          +   *       UpdateAclPolicyRequest.newBuilder()
          +   *           .setAclPolicy(AclPolicy.newBuilder().build())
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   AclPolicy response = cloudRedisClusterClient.updateAclPolicyAsync(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 updateAclPolicyAsync( + UpdateAclPolicyRequest request) { + return updateAclPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the ACL policy. + * + *

          The operation applies the updated ACL policy to all of the linked clusters. If Memorystore + * can apply the policy to all clusters, then the operation returns a SUCCESS status. If + * Memorystore can't apply the policy to all clusters, then to ensure eventual consistency, + * Memorystore uses reconciliation to apply the policy to the failed clusters. + * + *

          Completed longrunning.Operation will contain the new ACL policy object in the response + * field. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   UpdateAclPolicyRequest request =
          +   *       UpdateAclPolicyRequest.newBuilder()
          +   *           .setAclPolicy(AclPolicy.newBuilder().build())
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       cloudRedisClusterClient.updateAclPolicyOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   AclPolicy response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + updateAclPolicyOperationCallable() { + return stub.updateAclPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the ACL policy. + * + *

          The operation applies the updated ACL policy to all of the linked clusters. If Memorystore + * can apply the policy to all clusters, then the operation returns a SUCCESS status. If + * Memorystore can't apply the policy to all clusters, then to ensure eventual consistency, + * Memorystore uses reconciliation to apply the policy to the failed clusters. + * + *

          Completed longrunning.Operation will contain the new ACL policy object in the response + * field. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   UpdateAclPolicyRequest request =
          +   *       UpdateAclPolicyRequest.newBuilder()
          +   *           .setAclPolicy(AclPolicy.newBuilder().build())
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       cloudRedisClusterClient.updateAclPolicyCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable updateAclPolicyCallable() { + return stub.updateAclPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific Redis cluster. Cluster stops serving and data is deleted. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
          +   *   cloudRedisClusterClient.deleteClusterAsync(name).get();
          +   * }
          +   * }
          + * + * @param name Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteClusterAsync(@Nullable ClusterName name) { + DeleteClusterRequest request = + DeleteClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific Redis cluster. Cluster stops serving and data is deleted. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
          +   *   cloudRedisClusterClient.deleteClusterAsync(name).get();
          +   * }
          +   * }
          + * + * @param name Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteClusterAsync(String name) { + DeleteClusterRequest request = DeleteClusterRequest.newBuilder().setName(name).build(); + return deleteClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific Redis cluster. Cluster stops serving and data is deleted. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   DeleteClusterRequest request =
          +   *       DeleteClusterRequest.newBuilder()
          +   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   cloudRedisClusterClient.deleteClusterAsync(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 deleteClusterAsync(DeleteClusterRequest request) { + return deleteClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific Redis cluster. Cluster stops serving and data is deleted. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   DeleteClusterRequest request =
          +   *       DeleteClusterRequest.newBuilder()
          +   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       cloudRedisClusterClient.deleteClusterOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + deleteClusterOperationCallable() { + return stub.deleteClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific Redis cluster. Cluster stops serving and data is deleted. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   DeleteClusterRequest request =
          +   *       DeleteClusterRequest.newBuilder()
          +   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       cloudRedisClusterClient.deleteClusterCallable().futureCall(request);
          +   *   // Do something.
          +   *   future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable deleteClusterCallable() { + return stub.deleteClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific ACL policy. This action will delete the ACL policy and all the rules + * associated with it. An ACL policy cannot be deleted if it is attached to a cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
          +   *   cloudRedisClusterClient.deleteAclPolicyAsync(name).get();
          +   * }
          +   * }
          + * + * @param name Required. Redis ACL policy resource name using the form: + * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` where + * `location_id` refers to a Google Cloud region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAclPolicyAsync( + @Nullable AclPolicyName name) { + DeleteAclPolicyRequest request = + DeleteAclPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteAclPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific ACL policy. This action will delete the ACL policy and all the rules + * associated with it. An ACL policy cannot be deleted if it is attached to a cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   String name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString();
          +   *   cloudRedisClusterClient.deleteAclPolicyAsync(name).get();
          +   * }
          +   * }
          + * + * @param name Required. Redis ACL policy resource name using the form: + * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` where + * `location_id` refers to a Google Cloud region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAclPolicyAsync(String name) { + DeleteAclPolicyRequest request = DeleteAclPolicyRequest.newBuilder().setName(name).build(); + return deleteAclPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific ACL policy. This action will delete the ACL policy and all the rules + * associated with it. An ACL policy cannot be deleted if it is attached to a cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   DeleteAclPolicyRequest request =
          +   *       DeleteAclPolicyRequest.newBuilder()
          +   *           .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .setEtag("etag3123477")
          +   *           .build();
          +   *   cloudRedisClusterClient.deleteAclPolicyAsync(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 deleteAclPolicyAsync( + DeleteAclPolicyRequest request) { + return deleteAclPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific ACL policy. This action will delete the ACL policy and all the rules + * associated with it. An ACL policy cannot be deleted if it is attached to a cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   DeleteAclPolicyRequest request =
          +   *       DeleteAclPolicyRequest.newBuilder()
          +   *           .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .setEtag("etag3123477")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       cloudRedisClusterClient.deleteAclPolicyOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + deleteAclPolicyOperationCallable() { + return stub.deleteAclPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific ACL policy. This action will delete the ACL policy and all the rules + * associated with it. An ACL policy cannot be deleted if it is attached to a cluster. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   DeleteAclPolicyRequest request =
          +   *       DeleteAclPolicyRequest.newBuilder()
          +   *           .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .setEtag("etag3123477")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       cloudRedisClusterClient.deleteAclPolicyCallable().futureCall(request);
          +   *   // Do something.
          +   *   future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable deleteAclPolicyCallable() { + return stub.deleteAclPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a specific ACL policy revision. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   AclPolicyRevisionName name =
          +   *       AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]");
          +   *   AclPolicyRevision response = cloudRedisClusterClient.getAclPolicyRevision(name);
          +   * }
          +   * }
          + * + * @param name Required. Redis ACL policy revision resource name using the form: + * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}` + * where `location_id` refers to a Google Cloud region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclPolicyRevision getAclPolicyRevision(@Nullable AclPolicyRevisionName name) { + GetAclPolicyRevisionRequest request = + GetAclPolicyRevisionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getAclPolicyRevision(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a specific ACL policy revision. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   String name =
          +   *       AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]")
          +   *           .toString();
          +   *   AclPolicyRevision response = cloudRedisClusterClient.getAclPolicyRevision(name);
          +   * }
          +   * }
          + * + * @param name Required. Redis ACL policy revision resource name using the form: + * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}` + * where `location_id` refers to a Google Cloud region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclPolicyRevision getAclPolicyRevision(String name) { + GetAclPolicyRevisionRequest request = + GetAclPolicyRevisionRequest.newBuilder().setName(name).build(); + return getAclPolicyRevision(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a specific ACL policy revision. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   GetAclPolicyRevisionRequest request =
          +   *       GetAclPolicyRevisionRequest.newBuilder()
          +   *           .setName(
          +   *               AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]")
          +   *                   .toString())
          +   *           .build();
          +   *   AclPolicyRevision response = cloudRedisClusterClient.getAclPolicyRevision(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 AclPolicyRevision getAclPolicyRevision(GetAclPolicyRevisionRequest request) { + return getAclPolicyRevisionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a specific ACL policy revision. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   GetAclPolicyRevisionRequest request =
          +   *       GetAclPolicyRevisionRequest.newBuilder()
          +   *           .setName(
          +   *               AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]")
          +   *                   .toString())
          +   *           .build();
          +   *   ApiFuture future =
          +   *       cloudRedisClusterClient.getAclPolicyRevisionCallable().futureCall(request);
          +   *   // Do something.
          +   *   AclPolicyRevision response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable + getAclPolicyRevisionCallable() { + return stub.getAclPolicyRevisionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ACL policy revisions in a given ACL policy. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   AclPolicyName parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
          +   *   for (AclPolicyRevision element :
          +   *       cloudRedisClusterClient.listAclPolicyRevisions(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
              * }
              * }
          * - * @param name Required. Redis cluster resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` - * refers to a GCP region. + * @param parent Required. The name of the ACL policy to list revisions for. Format: + * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteClusterAsync(@Nullable ClusterName name) { - DeleteClusterRequest request = - DeleteClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return deleteClusterAsync(request); + public final ListAclPolicyRevisionsPagedResponse listAclPolicyRevisions( + @Nullable AclPolicyName parent) { + ListAclPolicyRevisionsRequest request = + ListAclPolicyRevisionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAclPolicyRevisions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a specific Redis cluster. Cluster stops serving and data is deleted. + * Lists all ACL policy revisions in a given ACL policy. * *

          Sample code: * @@ -1066,24 +2130,27 @@ public final OperationFuture deleteClusterAsync(@Nullable ClusterNam * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); - * cloudRedisClusterClient.deleteClusterAsync(name).get(); + * String parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString(); + * for (AclPolicyRevision element : + * cloudRedisClusterClient.listAclPolicyRevisions(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. Redis cluster resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` - * refers to a GCP region. + * @param parent Required. The name of the ACL policy to list revisions for. Format: + * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteClusterAsync(String name) { - DeleteClusterRequest request = DeleteClusterRequest.newBuilder().setName(name).build(); - return deleteClusterAsync(request); + public final ListAclPolicyRevisionsPagedResponse listAclPolicyRevisions(String parent) { + ListAclPolicyRevisionsRequest request = + ListAclPolicyRevisionsRequest.newBuilder().setParent(parent).build(); + return listAclPolicyRevisions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a specific Redis cluster. Cluster stops serving and data is deleted. + * Lists all ACL policy revisions in a given ACL policy. * *

          Sample code: * @@ -1094,25 +2161,30 @@ public final OperationFuture deleteClusterAsync(String name) { * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * DeleteClusterRequest request = - * DeleteClusterRequest.newBuilder() - * .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - * .setRequestId("requestId693933066") + * ListAclPolicyRevisionsRequest request = + * ListAclPolicyRevisionsRequest.newBuilder() + * .setParent(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * cloudRedisClusterClient.deleteClusterAsync(request).get(); + * for (AclPolicyRevision element : + * cloudRedisClusterClient.listAclPolicyRevisions(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 OperationFuture deleteClusterAsync(DeleteClusterRequest request) { - return deleteClusterOperationCallable().futureCall(request); + public final ListAclPolicyRevisionsPagedResponse listAclPolicyRevisions( + ListAclPolicyRevisionsRequest request) { + return listAclPolicyRevisionsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a specific Redis cluster. Cluster stops serving and data is deleted. + * Lists all ACL policy revisions in a given ACL policy. * *

          Sample code: * @@ -1123,26 +2195,29 @@ public final OperationFuture deleteClusterAsync(DeleteClusterRequest * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * DeleteClusterRequest request = - * DeleteClusterRequest.newBuilder() - * .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - * .setRequestId("requestId693933066") + * ListAclPolicyRevisionsRequest request = + * ListAclPolicyRevisionsRequest.newBuilder() + * .setParent(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * OperationFuture future = - * cloudRedisClusterClient.deleteClusterOperationCallable().futureCall(request); + * ApiFuture future = + * cloudRedisClusterClient.listAclPolicyRevisionsPagedCallable().futureCall(request); * // Do something. - * future.get(); + * for (AclPolicyRevision element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final OperationCallable - deleteClusterOperationCallable() { - return stub.deleteClusterOperationCallable(); + public final UnaryCallable + listAclPolicyRevisionsPagedCallable() { + return stub.listAclPolicyRevisionsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a specific Redis cluster. Cluster stops serving and data is deleted. + * Lists all ACL policy revisions in a given ACL policy. * *

          Sample code: * @@ -1153,20 +2228,31 @@ public final OperationFuture deleteClusterAsync(DeleteClusterRequest * // - 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * DeleteClusterRequest request = - * DeleteClusterRequest.newBuilder() - * .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - * .setRequestId("requestId693933066") + * ListAclPolicyRevisionsRequest request = + * ListAclPolicyRevisionsRequest.newBuilder() + * .setParent(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * cloudRedisClusterClient.deleteClusterCallable().futureCall(request); - * // Do something. - * future.get(); + * while (true) { + * ListAclPolicyRevisionsResponse response = + * cloudRedisClusterClient.listAclPolicyRevisionsCallable().call(request); + * for (AclPolicyRevision element : response.getAclPolicyRevisionsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } */ - public final UnaryCallable deleteClusterCallable() { - return stub.deleteClusterCallable(); + public final UnaryCallable + listAclPolicyRevisionsCallable() { + return stub.listAclPolicyRevisionsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. @@ -1387,6 +2473,165 @@ public final UnaryCallable createClusterCallabl return stub.createClusterCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an ACL policy. The creation is executed synchronously and the policy is available for + * use immediately after the RPC returns. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
          +   *   AclPolicy aclPolicy = AclPolicy.newBuilder().build();
          +   *   String aclPolicyId = "aclPolicyId-1805591401";
          +   *   AclPolicy response = cloudRedisClusterClient.createAclPolicy(parent, aclPolicy, aclPolicyId);
          +   * }
          +   * }
          + * + * @param parent Required. The resource name of the cluster location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google + * Cloud region. + * @param aclPolicy Required. The ACL policy that is to be created. + * @param aclPolicyId Required. The logical name of the ACL policy in the customer project with + * the following restrictions: + *
            + *
          • Must contain only lowercase letters, numbers, and hyphens. + *
          • Must start with a letter. + *
          • Must be between 1-63 characters. + *
          • Must end with a number or a letter. + *
          • Must be unique within the customer project / location + *
          + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclPolicy createAclPolicy( + @Nullable LocationName parent, AclPolicy aclPolicy, String aclPolicyId) { + CreateAclPolicyRequest request = + CreateAclPolicyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAclPolicy(aclPolicy) + .setAclPolicyId(aclPolicyId) + .build(); + return createAclPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an ACL policy. The creation is executed synchronously and the policy is available for + * use immediately after the RPC returns. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
          +   *   AclPolicy aclPolicy = AclPolicy.newBuilder().build();
          +   *   String aclPolicyId = "aclPolicyId-1805591401";
          +   *   AclPolicy response = cloudRedisClusterClient.createAclPolicy(parent, aclPolicy, aclPolicyId);
          +   * }
          +   * }
          + * + * @param parent Required. The resource name of the cluster location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google + * Cloud region. + * @param aclPolicy Required. The ACL policy that is to be created. + * @param aclPolicyId Required. The logical name of the ACL policy in the customer project with + * the following restrictions: + *
            + *
          • Must contain only lowercase letters, numbers, and hyphens. + *
          • Must start with a letter. + *
          • Must be between 1-63 characters. + *
          • Must end with a number or a letter. + *
          • Must be unique within the customer project / location + *
          + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclPolicy createAclPolicy(String parent, AclPolicy aclPolicy, String aclPolicyId) { + CreateAclPolicyRequest request = + CreateAclPolicyRequest.newBuilder() + .setParent(parent) + .setAclPolicy(aclPolicy) + .setAclPolicyId(aclPolicyId) + .build(); + return createAclPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an ACL policy. The creation is executed synchronously and the policy is available for + * use immediately after the RPC returns. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   CreateAclPolicyRequest request =
          +   *       CreateAclPolicyRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setAclPolicyId("aclPolicyId-1805591401")
          +   *           .setAclPolicy(AclPolicy.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   AclPolicy response = cloudRedisClusterClient.createAclPolicy(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 AclPolicy createAclPolicy(CreateAclPolicyRequest request) { + return createAclPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an ACL policy. The creation is executed synchronously and the policy is available for + * use immediately after the RPC returns. + * + *

          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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
          +   *   CreateAclPolicyRequest request =
          +   *       CreateAclPolicyRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setAclPolicyId("aclPolicyId-1805591401")
          +   *           .setAclPolicy(AclPolicy.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       cloudRedisClusterClient.createAclPolicyCallable().futureCall(request);
          +   *   // Do something.
          +   *   AclPolicy response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable createAclPolicyCallable() { + return stub.createAclPolicyCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the details of certificate authority information for Redis cluster. @@ -3115,6 +4360,174 @@ protected ListClustersFixedSizeCollection createCollection( } } + public static class ListAclPoliciesPagedResponse + extends AbstractPagedListResponse< + ListAclPoliciesRequest, + ListAclPoliciesResponse, + AclPolicy, + ListAclPoliciesPage, + ListAclPoliciesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAclPoliciesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAclPoliciesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAclPoliciesPagedResponse(ListAclPoliciesPage page) { + super(page, ListAclPoliciesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAclPoliciesPage + extends AbstractPage< + ListAclPoliciesRequest, ListAclPoliciesResponse, AclPolicy, ListAclPoliciesPage> { + + private ListAclPoliciesPage( + @Nullable PageContext context, + @Nullable ListAclPoliciesResponse response) { + super(context, response); + } + + private static ListAclPoliciesPage createEmptyPage() { + return new ListAclPoliciesPage(null, null); + } + + @Override + protected ListAclPoliciesPage createPage( + @Nullable PageContext context, + @Nullable ListAclPoliciesResponse response) { + return new ListAclPoliciesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAclPoliciesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAclPoliciesRequest, + ListAclPoliciesResponse, + AclPolicy, + ListAclPoliciesPage, + ListAclPoliciesFixedSizeCollection> { + + private ListAclPoliciesFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAclPoliciesFixedSizeCollection createEmptyCollection() { + return new ListAclPoliciesFixedSizeCollection(null, 0); + } + + @Override + protected ListAclPoliciesFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAclPoliciesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListAclPolicyRevisionsPagedResponse + extends AbstractPagedListResponse< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + AclPolicyRevision, + ListAclPolicyRevisionsPage, + ListAclPolicyRevisionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse, AclPolicyRevision> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAclPolicyRevisionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAclPolicyRevisionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAclPolicyRevisionsPagedResponse(ListAclPolicyRevisionsPage page) { + super(page, ListAclPolicyRevisionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAclPolicyRevisionsPage + extends AbstractPage< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + AclPolicyRevision, + ListAclPolicyRevisionsPage> { + + private ListAclPolicyRevisionsPage( + @Nullable + PageContext< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse, AclPolicyRevision> + context, + @Nullable ListAclPolicyRevisionsResponse response) { + super(context, response); + } + + private static ListAclPolicyRevisionsPage createEmptyPage() { + return new ListAclPolicyRevisionsPage(null, null); + } + + @Override + protected ListAclPolicyRevisionsPage createPage( + @Nullable + PageContext< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse, AclPolicyRevision> + context, + @Nullable ListAclPolicyRevisionsResponse response) { + return new ListAclPolicyRevisionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse, AclPolicyRevision> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAclPolicyRevisionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + AclPolicyRevision, + ListAclPolicyRevisionsPage, + ListAclPolicyRevisionsFixedSizeCollection> { + + private ListAclPolicyRevisionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAclPolicyRevisionsFixedSizeCollection createEmptyCollection() { + return new ListAclPolicyRevisionsFixedSizeCollection(null, 0); + } + + @Override + protected ListAclPolicyRevisionsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAclPolicyRevisionsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListBackupCollectionsPagedResponse extends AbstractPagedListResponse< ListBackupCollectionsRequest, diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterSettings.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterSettings.java index 5d7c2a2738c9..884e6f3aa8b3 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterSettings.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterSettings.java @@ -16,6 +16,8 @@ package com.google.cloud.redis.cluster.v1beta1; +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListAclPoliciesPagedResponse; +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListAclPolicyRevisionsPagedResponse; import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse; import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupsPagedResponse; import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListClustersPagedResponse; @@ -135,11 +137,23 @@ public class CloudRedisClusterSettings extends ClientSettings + listAclPoliciesSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).listAclPoliciesSettings(); + } + /** Returns the object with the settings used for calls to getCluster. */ public UnaryCallSettings getClusterSettings() { return ((CloudRedisClusterStubSettings) getStubSettings()).getClusterSettings(); } + /** Returns the object with the settings used for calls to getAclPolicy. */ + public UnaryCallSettings getAclPolicySettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).getAclPolicySettings(); + } + /** Returns the object with the settings used for calls to updateCluster. */ public UnaryCallSettings updateClusterSettings() { return ((CloudRedisClusterStubSettings) getStubSettings()).updateClusterSettings(); @@ -151,6 +165,17 @@ public UnaryCallSettings updateClusterSettings( return ((CloudRedisClusterStubSettings) getStubSettings()).updateClusterOperationSettings(); } + /** Returns the object with the settings used for calls to updateAclPolicy. */ + public UnaryCallSettings updateAclPolicySettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).updateAclPolicySettings(); + } + + /** Returns the object with the settings used for calls to updateAclPolicy. */ + public OperationCallSettings + updateAclPolicyOperationSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).updateAclPolicyOperationSettings(); + } + /** Returns the object with the settings used for calls to deleteCluster. */ public UnaryCallSettings deleteClusterSettings() { return ((CloudRedisClusterStubSettings) getStubSettings()).deleteClusterSettings(); @@ -161,6 +186,32 @@ public OperationCallSettings deleteClusterOper return ((CloudRedisClusterStubSettings) getStubSettings()).deleteClusterOperationSettings(); } + /** Returns the object with the settings used for calls to deleteAclPolicy. */ + public UnaryCallSettings deleteAclPolicySettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).deleteAclPolicySettings(); + } + + /** Returns the object with the settings used for calls to deleteAclPolicy. */ + public OperationCallSettings + deleteAclPolicyOperationSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).deleteAclPolicyOperationSettings(); + } + + /** Returns the object with the settings used for calls to getAclPolicyRevision. */ + public UnaryCallSettings + getAclPolicyRevisionSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).getAclPolicyRevisionSettings(); + } + + /** Returns the object with the settings used for calls to listAclPolicyRevisions. */ + public PagedCallSettings< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + ListAclPolicyRevisionsPagedResponse> + listAclPolicyRevisionsSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).listAclPolicyRevisionsSettings(); + } + /** Returns the object with the settings used for calls to createCluster. */ public UnaryCallSettings createClusterSettings() { return ((CloudRedisClusterStubSettings) getStubSettings()).createClusterSettings(); @@ -172,6 +223,11 @@ public UnaryCallSettings createClusterSettings( return ((CloudRedisClusterStubSettings) getStubSettings()).createClusterOperationSettings(); } + /** Returns the object with the settings used for calls to createAclPolicy. */ + public UnaryCallSettings createAclPolicySettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).createAclPolicySettings(); + } + /** Returns the object with the settings used for calls to getClusterCertificateAuthority. */ public UnaryCallSettings getClusterCertificateAuthoritySettings() { @@ -390,11 +446,23 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().listClustersSettings(); } + /** Returns the builder for the settings used for calls to listAclPolicies. */ + public PagedCallSettings.Builder< + ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse> + listAclPoliciesSettings() { + return getStubSettingsBuilder().listAclPoliciesSettings(); + } + /** Returns the builder for the settings used for calls to getCluster. */ public UnaryCallSettings.Builder getClusterSettings() { return getStubSettingsBuilder().getClusterSettings(); } + /** Returns the builder for the settings used for calls to getAclPolicy. */ + public UnaryCallSettings.Builder getAclPolicySettings() { + return getStubSettingsBuilder().getAclPolicySettings(); + } + /** Returns the builder for the settings used for calls to updateCluster. */ public UnaryCallSettings.Builder updateClusterSettings() { return getStubSettingsBuilder().updateClusterSettings(); @@ -406,6 +474,17 @@ public UnaryCallSettings.Builder updateClusterS return getStubSettingsBuilder().updateClusterOperationSettings(); } + /** Returns the builder for the settings used for calls to updateAclPolicy. */ + public UnaryCallSettings.Builder updateAclPolicySettings() { + return getStubSettingsBuilder().updateAclPolicySettings(); + } + + /** Returns the builder for the settings used for calls to updateAclPolicy. */ + public OperationCallSettings.Builder + updateAclPolicyOperationSettings() { + return getStubSettingsBuilder().updateAclPolicyOperationSettings(); + } + /** Returns the builder for the settings used for calls to deleteCluster. */ public UnaryCallSettings.Builder deleteClusterSettings() { return getStubSettingsBuilder().deleteClusterSettings(); @@ -417,6 +496,32 @@ public UnaryCallSettings.Builder deleteClusterS return getStubSettingsBuilder().deleteClusterOperationSettings(); } + /** Returns the builder for the settings used for calls to deleteAclPolicy. */ + public UnaryCallSettings.Builder deleteAclPolicySettings() { + return getStubSettingsBuilder().deleteAclPolicySettings(); + } + + /** Returns the builder for the settings used for calls to deleteAclPolicy. */ + public OperationCallSettings.Builder + deleteAclPolicyOperationSettings() { + return getStubSettingsBuilder().deleteAclPolicyOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getAclPolicyRevision. */ + public UnaryCallSettings.Builder + getAclPolicyRevisionSettings() { + return getStubSettingsBuilder().getAclPolicyRevisionSettings(); + } + + /** Returns the builder for the settings used for calls to listAclPolicyRevisions. */ + public PagedCallSettings.Builder< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + ListAclPolicyRevisionsPagedResponse> + listAclPolicyRevisionsSettings() { + return getStubSettingsBuilder().listAclPolicyRevisionsSettings(); + } + /** Returns the builder for the settings used for calls to createCluster. */ public UnaryCallSettings.Builder createClusterSettings() { return getStubSettingsBuilder().createClusterSettings(); @@ -428,6 +533,11 @@ public UnaryCallSettings.Builder createClusterS return getStubSettingsBuilder().createClusterOperationSettings(); } + /** Returns the builder for the settings used for calls to createAclPolicy. */ + public UnaryCallSettings.Builder createAclPolicySettings() { + return getStubSettingsBuilder().createAclPolicySettings(); + } + /** Returns the builder for the settings used for calls to getClusterCertificateAuthority. */ public UnaryCallSettings.Builder getClusterCertificateAuthoritySettings() { diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/gapic_metadata.json b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/gapic_metadata.json index e7be9c008f3a..bf259b6e22f2 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/gapic_metadata.json +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/gapic_metadata.json @@ -13,9 +13,15 @@ "BackupCluster": { "methods": ["backupClusterAsync", "backupClusterAsync", "backupClusterAsync", "backupClusterOperationCallable", "backupClusterCallable"] }, + "CreateAclPolicy": { + "methods": ["createAclPolicy", "createAclPolicy", "createAclPolicy", "createAclPolicyCallable"] + }, "CreateCluster": { "methods": ["createClusterAsync", "createClusterAsync", "createClusterAsync", "createClusterOperationCallable", "createClusterCallable"] }, + "DeleteAclPolicy": { + "methods": ["deleteAclPolicyAsync", "deleteAclPolicyAsync", "deleteAclPolicyAsync", "deleteAclPolicyOperationCallable", "deleteAclPolicyCallable"] + }, "DeleteBackup": { "methods": ["deleteBackupAsync", "deleteBackupAsync", "deleteBackupAsync", "deleteBackupOperationCallable", "deleteBackupCallable"] }, @@ -25,6 +31,12 @@ "ExportBackup": { "methods": ["exportBackupAsync", "exportBackupOperationCallable", "exportBackupCallable"] }, + "GetAclPolicy": { + "methods": ["getAclPolicy", "getAclPolicy", "getAclPolicy", "getAclPolicyCallable"] + }, + "GetAclPolicyRevision": { + "methods": ["getAclPolicyRevision", "getAclPolicyRevision", "getAclPolicyRevision", "getAclPolicyRevisionCallable"] + }, "GetBackup": { "methods": ["getBackup", "getBackup", "getBackup", "getBackupCallable"] }, @@ -43,6 +55,12 @@ "GetSharedRegionalCertificateAuthority": { "methods": ["getSharedRegionalCertificateAuthority", "getSharedRegionalCertificateAuthority", "getSharedRegionalCertificateAuthority", "getSharedRegionalCertificateAuthorityCallable"] }, + "ListAclPolicies": { + "methods": ["listAclPolicies", "listAclPolicies", "listAclPolicies", "listAclPoliciesPagedCallable", "listAclPoliciesCallable"] + }, + "ListAclPolicyRevisions": { + "methods": ["listAclPolicyRevisions", "listAclPolicyRevisions", "listAclPolicyRevisions", "listAclPolicyRevisionsPagedCallable", "listAclPolicyRevisionsCallable"] + }, "ListBackupCollections": { "methods": ["listBackupCollections", "listBackupCollections", "listBackupCollections", "listBackupCollectionsPagedCallable", "listBackupCollectionsCallable"] }, @@ -58,6 +76,9 @@ "RescheduleClusterMaintenance": { "methods": ["rescheduleClusterMaintenanceAsync", "rescheduleClusterMaintenanceAsync", "rescheduleClusterMaintenanceAsync", "rescheduleClusterMaintenanceOperationCallable", "rescheduleClusterMaintenanceCallable"] }, + "UpdateAclPolicy": { + "methods": ["updateAclPolicyAsync", "updateAclPolicyAsync", "updateAclPolicyOperationCallable", "updateAclPolicyCallable"] + }, "UpdateCluster": { "methods": ["updateClusterAsync", "updateClusterAsync", "updateClusterOperationCallable", "updateClusterCallable"] } diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStub.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStub.java index 5daeffa6e270..893dfb8c3d5f 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStub.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStub.java @@ -16,6 +16,8 @@ package com.google.cloud.redis.cluster.v1beta1.stub; +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListAclPoliciesPagedResponse; +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListAclPolicyRevisionsPagedResponse; import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse; import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupsPagedResponse; import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListClustersPagedResponse; @@ -29,28 +31,40 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.redis.cluster.v1beta1.AclPolicy; +import com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision; import com.google.cloud.redis.cluster.v1beta1.Backup; import com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest; import com.google.cloud.redis.cluster.v1beta1.BackupCollection; import com.google.cloud.redis.cluster.v1beta1.CertificateAuthority; import com.google.cloud.redis.cluster.v1beta1.Cluster; +import com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest; import com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest; +import com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest; import com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest; import com.google.cloud.redis.cluster.v1beta1.DeleteClusterRequest; import com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest; +import com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest; +import com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest; import com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest; import com.google.cloud.redis.cluster.v1beta1.GetBackupRequest; import com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest; import com.google.cloud.redis.cluster.v1beta1.GetClusterRequest; import com.google.cloud.redis.cluster.v1beta1.GetSharedRegionalCertificateAuthorityRequest; +import com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest; +import com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse; +import com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest; +import com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse; import com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest; import com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse; import com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest; import com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse; import com.google.cloud.redis.cluster.v1beta1.ListClustersRequest; import com.google.cloud.redis.cluster.v1beta1.ListClustersResponse; +import com.google.cloud.redis.cluster.v1beta1.OperationMetadata; import com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest; import com.google.cloud.redis.cluster.v1beta1.SharedRegionalCertificateAuthority; +import com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest; import com.google.cloud.redis.cluster.v1beta1.UpdateClusterRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; @@ -88,10 +102,23 @@ public UnaryCallable listClustersCall throw new UnsupportedOperationException("Not implemented: listClustersCallable()"); } + public UnaryCallable + listAclPoliciesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAclPoliciesPagedCallable()"); + } + + public UnaryCallable listAclPoliciesCallable() { + throw new UnsupportedOperationException("Not implemented: listAclPoliciesCallable()"); + } + public UnaryCallable getClusterCallable() { throw new UnsupportedOperationException("Not implemented: getClusterCallable()"); } + public UnaryCallable getAclPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getAclPolicyCallable()"); + } + public OperationCallable updateClusterOperationCallable() { throw new UnsupportedOperationException("Not implemented: updateClusterOperationCallable()"); } @@ -100,6 +127,15 @@ public UnaryCallable updateClusterCallable() { throw new UnsupportedOperationException("Not implemented: updateClusterCallable()"); } + public OperationCallable + updateAclPolicyOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateAclPolicyOperationCallable()"); + } + + public UnaryCallable updateAclPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: updateAclPolicyCallable()"); + } + public OperationCallable deleteClusterOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteClusterOperationCallable()"); } @@ -108,6 +144,31 @@ public UnaryCallable deleteClusterCallable() { throw new UnsupportedOperationException("Not implemented: deleteClusterCallable()"); } + public OperationCallable + deleteAclPolicyOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAclPolicyOperationCallable()"); + } + + public UnaryCallable deleteAclPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAclPolicyCallable()"); + } + + public UnaryCallable + getAclPolicyRevisionCallable() { + throw new UnsupportedOperationException("Not implemented: getAclPolicyRevisionCallable()"); + } + + public UnaryCallable + listAclPolicyRevisionsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAclPolicyRevisionsPagedCallable()"); + } + + public UnaryCallable + listAclPolicyRevisionsCallable() { + throw new UnsupportedOperationException("Not implemented: listAclPolicyRevisionsCallable()"); + } + public OperationCallable createClusterOperationCallable() { throw new UnsupportedOperationException("Not implemented: createClusterOperationCallable()"); } @@ -116,6 +177,10 @@ public UnaryCallable createClusterCallable() { throw new UnsupportedOperationException("Not implemented: createClusterCallable()"); } + public UnaryCallable createAclPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: createAclPolicyCallable()"); + } + public UnaryCallable getClusterCertificateAuthorityCallable() { throw new UnsupportedOperationException( diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStubSettings.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStubSettings.java index 8b0e5f7f515a..8b113153edb8 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStubSettings.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStubSettings.java @@ -16,6 +16,8 @@ package com.google.cloud.redis.cluster.v1beta1.stub; +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListAclPoliciesPagedResponse; +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListAclPolicyRevisionsPagedResponse; import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse; import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupsPagedResponse; import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListClustersPagedResponse; @@ -56,28 +58,40 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.redis.cluster.v1beta1.AclPolicy; +import com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision; import com.google.cloud.redis.cluster.v1beta1.Backup; import com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest; import com.google.cloud.redis.cluster.v1beta1.BackupCollection; import com.google.cloud.redis.cluster.v1beta1.CertificateAuthority; import com.google.cloud.redis.cluster.v1beta1.Cluster; +import com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest; import com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest; +import com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest; import com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest; import com.google.cloud.redis.cluster.v1beta1.DeleteClusterRequest; import com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest; +import com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest; +import com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest; import com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest; import com.google.cloud.redis.cluster.v1beta1.GetBackupRequest; import com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest; import com.google.cloud.redis.cluster.v1beta1.GetClusterRequest; import com.google.cloud.redis.cluster.v1beta1.GetSharedRegionalCertificateAuthorityRequest; +import com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest; +import com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse; +import com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest; +import com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse; import com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest; import com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse; import com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest; import com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse; import com.google.cloud.redis.cluster.v1beta1.ListClustersRequest; import com.google.cloud.redis.cluster.v1beta1.ListClustersResponse; +import com.google.cloud.redis.cluster.v1beta1.OperationMetadata; import com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest; import com.google.cloud.redis.cluster.v1beta1.SharedRegionalCertificateAuthority; +import com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest; import com.google.cloud.redis.cluster.v1beta1.UpdateClusterRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; @@ -182,16 +196,34 @@ public class CloudRedisClusterStubSettings extends StubSettings listClustersSettings; + private final PagedCallSettings< + ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse> + listAclPoliciesSettings; private final UnaryCallSettings getClusterSettings; + private final UnaryCallSettings getAclPolicySettings; private final UnaryCallSettings updateClusterSettings; private final OperationCallSettings updateClusterOperationSettings; + private final UnaryCallSettings updateAclPolicySettings; + private final OperationCallSettings + updateAclPolicyOperationSettings; private final UnaryCallSettings deleteClusterSettings; private final OperationCallSettings deleteClusterOperationSettings; + private final UnaryCallSettings deleteAclPolicySettings; + private final OperationCallSettings + deleteAclPolicyOperationSettings; + private final UnaryCallSettings + getAclPolicyRevisionSettings; + private final PagedCallSettings< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + ListAclPolicyRevisionsPagedResponse> + listAclPolicyRevisionsSettings; private final UnaryCallSettings createClusterSettings; private final OperationCallSettings createClusterOperationSettings; + private final UnaryCallSettings createAclPolicySettings; private final UnaryCallSettings getClusterCertificateAuthoritySettings; private final UnaryCallSettings< @@ -259,6 +291,84 @@ public Iterable extractResources(ListClustersResponse payload) { } }; + private static final PagedListDescriptor< + ListAclPoliciesRequest, ListAclPoliciesResponse, AclPolicy> + LIST_ACL_POLICIES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAclPoliciesRequest injectToken( + ListAclPoliciesRequest payload, String token) { + return ListAclPoliciesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAclPoliciesRequest injectPageSize( + ListAclPoliciesRequest payload, int pageSize) { + return ListAclPoliciesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAclPoliciesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAclPoliciesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAclPoliciesResponse payload) { + return payload.getAclPoliciesList(); + } + }; + + private static final PagedListDescriptor< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse, AclPolicyRevision> + LIST_ACL_POLICY_REVISIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse, AclPolicyRevision>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAclPolicyRevisionsRequest injectToken( + ListAclPolicyRevisionsRequest payload, String token) { + return ListAclPolicyRevisionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAclPolicyRevisionsRequest injectPageSize( + ListAclPolicyRevisionsRequest payload, int pageSize) { + return ListAclPolicyRevisionsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListAclPolicyRevisionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAclPolicyRevisionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListAclPolicyRevisionsResponse payload) { + return payload.getAclPolicyRevisionsList(); + } + }; + private static final PagedListDescriptor< ListBackupCollectionsRequest, ListBackupCollectionsResponse, BackupCollection> LIST_BACKUP_COLLECTIONS_PAGE_STR_DESC = @@ -383,6 +493,50 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse> + LIST_ACL_POLICIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAclPoliciesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_ACL_POLICIES_PAGE_STR_DESC, request, context); + return ListAclPoliciesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + ListAclPolicyRevisionsPagedResponse> + LIST_ACL_POLICY_REVISIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + ListAclPolicyRevisionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListAclPolicyRevisionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + AclPolicyRevision> + pageContext = + PageContext.create( + callable, LIST_ACL_POLICY_REVISIONS_PAGE_STR_DESC, request, context); + return ListAclPolicyRevisionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListBackupCollectionsRequest, ListBackupCollectionsResponse, @@ -447,11 +601,23 @@ public ApiFuture getFuturePagedResponse( return listClustersSettings; } + /** Returns the object with the settings used for calls to listAclPolicies. */ + public PagedCallSettings< + ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse> + listAclPoliciesSettings() { + return listAclPoliciesSettings; + } + /** Returns the object with the settings used for calls to getCluster. */ public UnaryCallSettings getClusterSettings() { return getClusterSettings; } + /** Returns the object with the settings used for calls to getAclPolicy. */ + public UnaryCallSettings getAclPolicySettings() { + return getAclPolicySettings; + } + /** Returns the object with the settings used for calls to updateCluster. */ public UnaryCallSettings updateClusterSettings() { return updateClusterSettings; @@ -463,6 +629,17 @@ public UnaryCallSettings updateClusterSettings( return updateClusterOperationSettings; } + /** Returns the object with the settings used for calls to updateAclPolicy. */ + public UnaryCallSettings updateAclPolicySettings() { + return updateAclPolicySettings; + } + + /** Returns the object with the settings used for calls to updateAclPolicy. */ + public OperationCallSettings + updateAclPolicyOperationSettings() { + return updateAclPolicyOperationSettings; + } + /** Returns the object with the settings used for calls to deleteCluster. */ public UnaryCallSettings deleteClusterSettings() { return deleteClusterSettings; @@ -473,6 +650,32 @@ public OperationCallSettings deleteClusterOper return deleteClusterOperationSettings; } + /** Returns the object with the settings used for calls to deleteAclPolicy. */ + public UnaryCallSettings deleteAclPolicySettings() { + return deleteAclPolicySettings; + } + + /** Returns the object with the settings used for calls to deleteAclPolicy. */ + public OperationCallSettings + deleteAclPolicyOperationSettings() { + return deleteAclPolicyOperationSettings; + } + + /** Returns the object with the settings used for calls to getAclPolicyRevision. */ + public UnaryCallSettings + getAclPolicyRevisionSettings() { + return getAclPolicyRevisionSettings; + } + + /** Returns the object with the settings used for calls to listAclPolicyRevisions. */ + public PagedCallSettings< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + ListAclPolicyRevisionsPagedResponse> + listAclPolicyRevisionsSettings() { + return listAclPolicyRevisionsSettings; + } + /** Returns the object with the settings used for calls to createCluster. */ public UnaryCallSettings createClusterSettings() { return createClusterSettings; @@ -484,6 +687,11 @@ public UnaryCallSettings createClusterSettings( return createClusterOperationSettings; } + /** Returns the object with the settings used for calls to createAclPolicy. */ + public UnaryCallSettings createAclPolicySettings() { + return createAclPolicySettings; + } + /** Returns the object with the settings used for calls to getClusterCertificateAuthority. */ public UnaryCallSettings getClusterCertificateAuthoritySettings() { @@ -691,13 +899,22 @@ protected CloudRedisClusterStubSettings(Builder settingsBuilder) throws IOExcept super(settingsBuilder); listClustersSettings = settingsBuilder.listClustersSettings().build(); + listAclPoliciesSettings = settingsBuilder.listAclPoliciesSettings().build(); getClusterSettings = settingsBuilder.getClusterSettings().build(); + getAclPolicySettings = settingsBuilder.getAclPolicySettings().build(); updateClusterSettings = settingsBuilder.updateClusterSettings().build(); updateClusterOperationSettings = settingsBuilder.updateClusterOperationSettings().build(); + updateAclPolicySettings = settingsBuilder.updateAclPolicySettings().build(); + updateAclPolicyOperationSettings = settingsBuilder.updateAclPolicyOperationSettings().build(); deleteClusterSettings = settingsBuilder.deleteClusterSettings().build(); deleteClusterOperationSettings = settingsBuilder.deleteClusterOperationSettings().build(); + deleteAclPolicySettings = settingsBuilder.deleteAclPolicySettings().build(); + deleteAclPolicyOperationSettings = settingsBuilder.deleteAclPolicyOperationSettings().build(); + getAclPolicyRevisionSettings = settingsBuilder.getAclPolicyRevisionSettings().build(); + listAclPolicyRevisionsSettings = settingsBuilder.listAclPolicyRevisionsSettings().build(); createClusterSettings = settingsBuilder.createClusterSettings().build(); createClusterOperationSettings = settingsBuilder.createClusterOperationSettings().build(); + createAclPolicySettings = settingsBuilder.createAclPolicySettings().build(); getClusterCertificateAuthoritySettings = settingsBuilder.getClusterCertificateAuthoritySettings().build(); getSharedRegionalCertificateAuthoritySettings = @@ -735,16 +952,38 @@ public static class Builder extends StubSettings.Builder listClustersSettings; + private final PagedCallSettings.Builder< + ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse> + listAclPoliciesSettings; private final UnaryCallSettings.Builder getClusterSettings; + private final UnaryCallSettings.Builder getAclPolicySettings; private final UnaryCallSettings.Builder updateClusterSettings; private final OperationCallSettings.Builder updateClusterOperationSettings; + private final UnaryCallSettings.Builder + updateAclPolicySettings; + private final OperationCallSettings.Builder< + UpdateAclPolicyRequest, AclPolicy, OperationMetadata> + updateAclPolicyOperationSettings; private final UnaryCallSettings.Builder deleteClusterSettings; private final OperationCallSettings.Builder deleteClusterOperationSettings; + private final UnaryCallSettings.Builder + deleteAclPolicySettings; + private final OperationCallSettings.Builder + deleteAclPolicyOperationSettings; + private final UnaryCallSettings.Builder + getAclPolicyRevisionSettings; + private final PagedCallSettings.Builder< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + ListAclPolicyRevisionsPagedResponse> + listAclPolicyRevisionsSettings; private final UnaryCallSettings.Builder createClusterSettings; private final OperationCallSettings.Builder createClusterOperationSettings; + private final UnaryCallSettings.Builder + createAclPolicySettings; private final UnaryCallSettings.Builder< GetClusterCertificateAuthorityRequest, CertificateAuthority> getClusterCertificateAuthoritySettings; @@ -817,13 +1056,23 @@ protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listClustersSettings = PagedCallSettings.newBuilder(LIST_CLUSTERS_PAGE_STR_FACT); + listAclPoliciesSettings = PagedCallSettings.newBuilder(LIST_ACL_POLICIES_PAGE_STR_FACT); getClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getAclPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateClusterOperationSettings = OperationCallSettings.newBuilder(); + updateAclPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAclPolicyOperationSettings = OperationCallSettings.newBuilder(); deleteClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteClusterOperationSettings = OperationCallSettings.newBuilder(); + deleteAclPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAclPolicyOperationSettings = OperationCallSettings.newBuilder(); + getAclPolicyRevisionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listAclPolicyRevisionsSettings = + PagedCallSettings.newBuilder(LIST_ACL_POLICY_REVISIONS_PAGE_STR_FACT); createClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createClusterOperationSettings = OperationCallSettings.newBuilder(); + createAclPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getClusterCertificateAuthoritySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getSharedRegionalCertificateAuthoritySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -846,10 +1095,17 @@ protected Builder(@Nullable ClientContext clientContext) { unaryMethodSettingsBuilders = ImmutableList.>of( listClustersSettings, + listAclPoliciesSettings, getClusterSettings, + getAclPolicySettings, updateClusterSettings, + updateAclPolicySettings, deleteClusterSettings, + deleteAclPolicySettings, + getAclPolicyRevisionSettings, + listAclPolicyRevisionsSettings, createClusterSettings, + createAclPolicySettings, getClusterCertificateAuthoritySettings, getSharedRegionalCertificateAuthoritySettings, rescheduleClusterMaintenanceSettings, @@ -869,13 +1125,22 @@ protected Builder(CloudRedisClusterStubSettings settings) { super(settings); listClustersSettings = settings.listClustersSettings.toBuilder(); + listAclPoliciesSettings = settings.listAclPoliciesSettings.toBuilder(); getClusterSettings = settings.getClusterSettings.toBuilder(); + getAclPolicySettings = settings.getAclPolicySettings.toBuilder(); updateClusterSettings = settings.updateClusterSettings.toBuilder(); updateClusterOperationSettings = settings.updateClusterOperationSettings.toBuilder(); + updateAclPolicySettings = settings.updateAclPolicySettings.toBuilder(); + updateAclPolicyOperationSettings = settings.updateAclPolicyOperationSettings.toBuilder(); deleteClusterSettings = settings.deleteClusterSettings.toBuilder(); deleteClusterOperationSettings = settings.deleteClusterOperationSettings.toBuilder(); + deleteAclPolicySettings = settings.deleteAclPolicySettings.toBuilder(); + deleteAclPolicyOperationSettings = settings.deleteAclPolicyOperationSettings.toBuilder(); + getAclPolicyRevisionSettings = settings.getAclPolicyRevisionSettings.toBuilder(); + listAclPolicyRevisionsSettings = settings.listAclPolicyRevisionsSettings.toBuilder(); createClusterSettings = settings.createClusterSettings.toBuilder(); createClusterOperationSettings = settings.createClusterOperationSettings.toBuilder(); + createAclPolicySettings = settings.createAclPolicySettings.toBuilder(); getClusterCertificateAuthoritySettings = settings.getClusterCertificateAuthoritySettings.toBuilder(); getSharedRegionalCertificateAuthoritySettings = @@ -900,10 +1165,17 @@ protected Builder(CloudRedisClusterStubSettings settings) { unaryMethodSettingsBuilders = ImmutableList.>of( listClustersSettings, + listAclPoliciesSettings, getClusterSettings, + getAclPolicySettings, updateClusterSettings, + updateAclPolicySettings, deleteClusterSettings, + deleteAclPolicySettings, + getAclPolicyRevisionSettings, + listAclPolicyRevisionsSettings, createClusterSettings, + createAclPolicySettings, getClusterCertificateAuthoritySettings, getSharedRegionalCertificateAuthoritySettings, rescheduleClusterMaintenanceSettings, @@ -948,26 +1220,61 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .listAclPoliciesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .getClusterSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .getAclPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .updateClusterSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .updateAclPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .deleteClusterSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .deleteAclPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .getAclPolicyRevisionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listAclPolicyRevisionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .createClusterSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .createAclPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .getClusterCertificateAuthoritySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) @@ -1051,6 +1358,30 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(7200000L)) .build())); + builder + .updateAclPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AclPolicy.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 .deleteClusterOperationSettings() .setInitialCallSettings( @@ -1074,6 +1405,30 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(1200000L)) .build())); + builder + .deleteAclPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_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 .createClusterOperationSettings() .setInitialCallSettings( @@ -1215,11 +1570,23 @@ public Builder applyToAllUnaryMethods( return listClustersSettings; } + /** Returns the builder for the settings used for calls to listAclPolicies. */ + public PagedCallSettings.Builder< + ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse> + listAclPoliciesSettings() { + return listAclPoliciesSettings; + } + /** Returns the builder for the settings used for calls to getCluster. */ public UnaryCallSettings.Builder getClusterSettings() { return getClusterSettings; } + /** Returns the builder for the settings used for calls to getAclPolicy. */ + public UnaryCallSettings.Builder getAclPolicySettings() { + return getAclPolicySettings; + } + /** Returns the builder for the settings used for calls to updateCluster. */ public UnaryCallSettings.Builder updateClusterSettings() { return updateClusterSettings; @@ -1231,6 +1598,17 @@ public UnaryCallSettings.Builder updateClusterS return updateClusterOperationSettings; } + /** Returns the builder for the settings used for calls to updateAclPolicy. */ + public UnaryCallSettings.Builder updateAclPolicySettings() { + return updateAclPolicySettings; + } + + /** Returns the builder for the settings used for calls to updateAclPolicy. */ + public OperationCallSettings.Builder + updateAclPolicyOperationSettings() { + return updateAclPolicyOperationSettings; + } + /** Returns the builder for the settings used for calls to deleteCluster. */ public UnaryCallSettings.Builder deleteClusterSettings() { return deleteClusterSettings; @@ -1242,6 +1620,32 @@ public UnaryCallSettings.Builder deleteClusterS return deleteClusterOperationSettings; } + /** Returns the builder for the settings used for calls to deleteAclPolicy. */ + public UnaryCallSettings.Builder deleteAclPolicySettings() { + return deleteAclPolicySettings; + } + + /** Returns the builder for the settings used for calls to deleteAclPolicy. */ + public OperationCallSettings.Builder + deleteAclPolicyOperationSettings() { + return deleteAclPolicyOperationSettings; + } + + /** Returns the builder for the settings used for calls to getAclPolicyRevision. */ + public UnaryCallSettings.Builder + getAclPolicyRevisionSettings() { + return getAclPolicyRevisionSettings; + } + + /** Returns the builder for the settings used for calls to listAclPolicyRevisions. */ + public PagedCallSettings.Builder< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + ListAclPolicyRevisionsPagedResponse> + listAclPolicyRevisionsSettings() { + return listAclPolicyRevisionsSettings; + } + /** Returns the builder for the settings used for calls to createCluster. */ public UnaryCallSettings.Builder createClusterSettings() { return createClusterSettings; @@ -1253,6 +1657,11 @@ public UnaryCallSettings.Builder createClusterS return createClusterOperationSettings; } + /** Returns the builder for the settings used for calls to createAclPolicy. */ + public UnaryCallSettings.Builder createAclPolicySettings() { + return createAclPolicySettings; + } + /** Returns the builder for the settings used for calls to getClusterCertificateAuthority. */ public UnaryCallSettings.Builder getClusterCertificateAuthoritySettings() { diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/GrpcCloudRedisClusterStub.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/GrpcCloudRedisClusterStub.java index ea63735a78e4..8749fdacf9c7 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/GrpcCloudRedisClusterStub.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/GrpcCloudRedisClusterStub.java @@ -16,6 +16,8 @@ package com.google.cloud.redis.cluster.v1beta1.stub; +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListAclPoliciesPagedResponse; +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListAclPolicyRevisionsPagedResponse; import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse; import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupsPagedResponse; import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListClustersPagedResponse; @@ -34,28 +36,40 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.redis.cluster.v1beta1.AclPolicy; +import com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision; import com.google.cloud.redis.cluster.v1beta1.Backup; import com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest; import com.google.cloud.redis.cluster.v1beta1.BackupCollection; import com.google.cloud.redis.cluster.v1beta1.CertificateAuthority; import com.google.cloud.redis.cluster.v1beta1.Cluster; +import com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest; import com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest; +import com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest; import com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest; import com.google.cloud.redis.cluster.v1beta1.DeleteClusterRequest; import com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest; +import com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest; +import com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest; import com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest; import com.google.cloud.redis.cluster.v1beta1.GetBackupRequest; import com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest; import com.google.cloud.redis.cluster.v1beta1.GetClusterRequest; import com.google.cloud.redis.cluster.v1beta1.GetSharedRegionalCertificateAuthorityRequest; +import com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest; +import com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse; +import com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest; +import com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse; import com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest; import com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse; import com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest; import com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse; import com.google.cloud.redis.cluster.v1beta1.ListClustersRequest; import com.google.cloud.redis.cluster.v1beta1.ListClustersResponse; +import com.google.cloud.redis.cluster.v1beta1.OperationMetadata; import com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest; import com.google.cloud.redis.cluster.v1beta1.SharedRegionalCertificateAuthority; +import com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest; import com.google.cloud.redis.cluster.v1beta1.UpdateClusterRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; @@ -90,6 +104,19 @@ public class GrpcCloudRedisClusterStub extends CloudRedisClusterStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + listAclPoliciesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/ListAclPolicies") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAclPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAclPoliciesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor getClusterMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -99,6 +126,17 @@ public class GrpcCloudRedisClusterStub extends CloudRedisClusterStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + getAclPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/GetAclPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetAclPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AclPolicy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor updateClusterMethodDescriptor = MethodDescriptor.newBuilder() @@ -111,6 +149,18 @@ public class GrpcCloudRedisClusterStub extends CloudRedisClusterStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + updateAclPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/UpdateAclPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAclPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor deleteClusterMethodDescriptor = MethodDescriptor.newBuilder() @@ -123,6 +173,45 @@ public class GrpcCloudRedisClusterStub extends CloudRedisClusterStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + deleteAclPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/DeleteAclPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAclPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAclPolicyRevisionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/GetAclPolicyRevision") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAclPolicyRevisionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AclPolicyRevision.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse> + listAclPolicyRevisionsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/ListAclPolicyRevisions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAclPolicyRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAclPolicyRevisionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor createClusterMethodDescriptor = MethodDescriptor.newBuilder() @@ -135,6 +224,18 @@ public class GrpcCloudRedisClusterStub extends CloudRedisClusterStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + createAclPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/CreateAclPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAclPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AclPolicy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor getClusterCertificateAuthorityMethodDescriptor = MethodDescriptor.newBuilder() @@ -280,15 +381,33 @@ public class GrpcCloudRedisClusterStub extends CloudRedisClusterStub { private final UnaryCallable listClustersCallable; private final UnaryCallable listClustersPagedCallable; + private final UnaryCallable + listAclPoliciesCallable; + private final UnaryCallable + listAclPoliciesPagedCallable; private final UnaryCallable getClusterCallable; + private final UnaryCallable getAclPolicyCallable; private final UnaryCallable updateClusterCallable; private final OperationCallable updateClusterOperationCallable; + private final UnaryCallable updateAclPolicyCallable; + private final OperationCallable + updateAclPolicyOperationCallable; private final UnaryCallable deleteClusterCallable; private final OperationCallable deleteClusterOperationCallable; + private final UnaryCallable deleteAclPolicyCallable; + private final OperationCallable + deleteAclPolicyOperationCallable; + private final UnaryCallable + getAclPolicyRevisionCallable; + private final UnaryCallable + listAclPolicyRevisionsCallable; + private final UnaryCallable + listAclPolicyRevisionsPagedCallable; private final UnaryCallable createClusterCallable; private final OperationCallable createClusterOperationCallable; + private final UnaryCallable createAclPolicyCallable; private final UnaryCallable getClusterCertificateAuthorityCallable; private final UnaryCallable< @@ -375,6 +494,18 @@ protected GrpcCloudRedisClusterStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + GrpcCallSettings + listAclPoliciesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAclPoliciesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); GrpcCallSettings getClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getClusterMethodDescriptor) @@ -386,6 +517,17 @@ protected GrpcCloudRedisClusterStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + GrpcCallSettings getAclPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAclPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); GrpcCallSettings updateClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateClusterMethodDescriptor) @@ -396,6 +538,16 @@ protected GrpcCloudRedisClusterStub( return builder.build(); }) .build(); + GrpcCallSettings updateAclPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAclPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("acl_policy.name", String.valueOf(request.getAclPolicy().getName())); + return builder.build(); + }) + .build(); GrpcCallSettings deleteClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteClusterMethodDescriptor) @@ -407,6 +559,42 @@ protected GrpcCloudRedisClusterStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + GrpcCallSettings deleteAclPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAclPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + getAclPolicyRevisionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAclPolicyRevisionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listAclPolicyRevisionsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listAclPolicyRevisionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); GrpcCallSettings createClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createClusterMethodDescriptor) @@ -418,6 +606,17 @@ protected GrpcCloudRedisClusterStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + GrpcCallSettings createAclPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAclPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); GrpcCallSettings getClusterCertificateAuthorityTransportSettings = GrpcCallSettings @@ -565,9 +764,18 @@ protected GrpcCloudRedisClusterStub( this.listClustersPagedCallable = callableFactory.createPagedCallable( listClustersTransportSettings, settings.listClustersSettings(), clientContext); + this.listAclPoliciesCallable = + callableFactory.createUnaryCallable( + listAclPoliciesTransportSettings, settings.listAclPoliciesSettings(), clientContext); + this.listAclPoliciesPagedCallable = + callableFactory.createPagedCallable( + listAclPoliciesTransportSettings, settings.listAclPoliciesSettings(), clientContext); this.getClusterCallable = callableFactory.createUnaryCallable( getClusterTransportSettings, settings.getClusterSettings(), clientContext); + this.getAclPolicyCallable = + callableFactory.createUnaryCallable( + getAclPolicyTransportSettings, settings.getAclPolicySettings(), clientContext); this.updateClusterCallable = callableFactory.createUnaryCallable( updateClusterTransportSettings, settings.updateClusterSettings(), clientContext); @@ -577,6 +785,15 @@ protected GrpcCloudRedisClusterStub( settings.updateClusterOperationSettings(), clientContext, operationsStub); + this.updateAclPolicyCallable = + callableFactory.createUnaryCallable( + updateAclPolicyTransportSettings, settings.updateAclPolicySettings(), clientContext); + this.updateAclPolicyOperationCallable = + callableFactory.createOperationCallable( + updateAclPolicyTransportSettings, + settings.updateAclPolicyOperationSettings(), + clientContext, + operationsStub); this.deleteClusterCallable = callableFactory.createUnaryCallable( deleteClusterTransportSettings, settings.deleteClusterSettings(), clientContext); @@ -586,6 +803,30 @@ protected GrpcCloudRedisClusterStub( settings.deleteClusterOperationSettings(), clientContext, operationsStub); + this.deleteAclPolicyCallable = + callableFactory.createUnaryCallable( + deleteAclPolicyTransportSettings, settings.deleteAclPolicySettings(), clientContext); + this.deleteAclPolicyOperationCallable = + callableFactory.createOperationCallable( + deleteAclPolicyTransportSettings, + settings.deleteAclPolicyOperationSettings(), + clientContext, + operationsStub); + this.getAclPolicyRevisionCallable = + callableFactory.createUnaryCallable( + getAclPolicyRevisionTransportSettings, + settings.getAclPolicyRevisionSettings(), + clientContext); + this.listAclPolicyRevisionsCallable = + callableFactory.createUnaryCallable( + listAclPolicyRevisionsTransportSettings, + settings.listAclPolicyRevisionsSettings(), + clientContext); + this.listAclPolicyRevisionsPagedCallable = + callableFactory.createPagedCallable( + listAclPolicyRevisionsTransportSettings, + settings.listAclPolicyRevisionsSettings(), + clientContext); this.createClusterCallable = callableFactory.createUnaryCallable( createClusterTransportSettings, settings.createClusterSettings(), clientContext); @@ -595,6 +836,9 @@ protected GrpcCloudRedisClusterStub( settings.createClusterOperationSettings(), clientContext, operationsStub); + this.createAclPolicyCallable = + callableFactory.createUnaryCallable( + createAclPolicyTransportSettings, settings.createAclPolicySettings(), clientContext); this.getClusterCertificateAuthorityCallable = callableFactory.createUnaryCallable( getClusterCertificateAuthorityTransportSettings, @@ -695,11 +939,27 @@ public UnaryCallable listCluster return listClustersPagedCallable; } + @Override + public UnaryCallable listAclPoliciesCallable() { + return listAclPoliciesCallable; + } + + @Override + public UnaryCallable + listAclPoliciesPagedCallable() { + return listAclPoliciesPagedCallable; + } + @Override public UnaryCallable getClusterCallable() { return getClusterCallable; } + @Override + public UnaryCallable getAclPolicyCallable() { + return getAclPolicyCallable; + } + @Override public UnaryCallable updateClusterCallable() { return updateClusterCallable; @@ -710,6 +970,17 @@ public OperationCallable updateClusterOperat return updateClusterOperationCallable; } + @Override + public UnaryCallable updateAclPolicyCallable() { + return updateAclPolicyCallable; + } + + @Override + public OperationCallable + updateAclPolicyOperationCallable() { + return updateAclPolicyOperationCallable; + } + @Override public UnaryCallable deleteClusterCallable() { return deleteClusterCallable; @@ -720,6 +991,35 @@ public OperationCallable deleteClusterOperatio return deleteClusterOperationCallable; } + @Override + public UnaryCallable deleteAclPolicyCallable() { + return deleteAclPolicyCallable; + } + + @Override + public OperationCallable + deleteAclPolicyOperationCallable() { + return deleteAclPolicyOperationCallable; + } + + @Override + public UnaryCallable + getAclPolicyRevisionCallable() { + return getAclPolicyRevisionCallable; + } + + @Override + public UnaryCallable + listAclPolicyRevisionsCallable() { + return listAclPolicyRevisionsCallable; + } + + @Override + public UnaryCallable + listAclPolicyRevisionsPagedCallable() { + return listAclPolicyRevisionsPagedCallable; + } + @Override public UnaryCallable createClusterCallable() { return createClusterCallable; @@ -730,6 +1030,11 @@ public OperationCallable createClusterOperat return createClusterOperationCallable; } + @Override + public UnaryCallable createAclPolicyCallable() { + return createAclPolicyCallable; + } + @Override public UnaryCallable getClusterCertificateAuthorityCallable() { diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/HttpJsonCloudRedisClusterStub.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/HttpJsonCloudRedisClusterStub.java index 7b480be1d9bb..556129bb9895 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/HttpJsonCloudRedisClusterStub.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/HttpJsonCloudRedisClusterStub.java @@ -16,6 +16,8 @@ package com.google.cloud.redis.cluster.v1beta1.stub; +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListAclPoliciesPagedResponse; +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListAclPolicyRevisionsPagedResponse; import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse; import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupsPagedResponse; import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListClustersPagedResponse; @@ -42,28 +44,40 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.redis.cluster.v1beta1.AclPolicy; +import com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision; import com.google.cloud.redis.cluster.v1beta1.Backup; import com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest; import com.google.cloud.redis.cluster.v1beta1.BackupCollection; import com.google.cloud.redis.cluster.v1beta1.CertificateAuthority; import com.google.cloud.redis.cluster.v1beta1.Cluster; +import com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest; import com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest; +import com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest; import com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest; import com.google.cloud.redis.cluster.v1beta1.DeleteClusterRequest; import com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest; +import com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest; +import com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest; import com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest; import com.google.cloud.redis.cluster.v1beta1.GetBackupRequest; import com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest; import com.google.cloud.redis.cluster.v1beta1.GetClusterRequest; import com.google.cloud.redis.cluster.v1beta1.GetSharedRegionalCertificateAuthorityRequest; +import com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest; +import com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse; +import com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest; +import com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse; import com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest; import com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse; import com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest; import com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse; import com.google.cloud.redis.cluster.v1beta1.ListClustersRequest; import com.google.cloud.redis.cluster.v1beta1.ListClustersResponse; +import com.google.cloud.redis.cluster.v1beta1.OperationMetadata; import com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest; import com.google.cloud.redis.cluster.v1beta1.SharedRegionalCertificateAuthority; +import com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest; import com.google.cloud.redis.cluster.v1beta1.UpdateClusterRequest; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; @@ -93,8 +107,10 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub { TypeRegistry.newBuilder() .add(Empty.getDescriptor()) .add(Cluster.getDescriptor()) + .add(OperationMetadata.getDescriptor()) .add(Any.getDescriptor()) .add(Backup.getDescriptor()) + .add(AclPolicy.getDescriptor()) .build(); private static final ApiMethodDescriptor @@ -134,6 +150,43 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub { .build()) .build(); + private static final ApiMethodDescriptor + listAclPoliciesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/ListAclPolicies") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/aclPolicies", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAclPoliciesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor getClusterMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.redis.cluster.v1beta1.CloudRedisCluster/GetCluster") @@ -167,6 +220,41 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub { .build()) .build(); + private static final ApiMethodDescriptor + getAclPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/GetAclPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/aclPolicies/*}", + 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 -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AclPolicy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor updateClusterMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -211,6 +299,50 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + updateAclPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/UpdateAclPolicy") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{aclPolicy.name=projects/*/locations/*/aclPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "aclPolicy.name", request.getAclPolicy().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("aclPolicy", request.getAclPolicy(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateAclPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor deleteClusterMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -250,6 +382,120 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + deleteAclPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/DeleteAclPolicy") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/aclPolicies/*}", + 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, "etag", request.getEtag()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteAclPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getAclPolicyRevisionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/GetAclPolicyRevision") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/aclPolicies/*/revisions/*}", + 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 -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AclPolicyRevision.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse> + listAclPolicyRevisionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/ListAclPolicyRevisions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/aclPolicies/*}/revisions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAclPolicyRevisionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor createClusterMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -293,6 +539,47 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + createAclPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/CreateAclPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/aclPolicies", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "aclPolicyId", request.getAclPolicyId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("aclPolicy", request.getAclPolicy(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AclPolicy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor< GetClusterCertificateAuthorityRequest, CertificateAuthority> getClusterCertificateAuthorityMethodDescriptor = @@ -745,15 +1032,33 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub { private final UnaryCallable listClustersCallable; private final UnaryCallable listClustersPagedCallable; + private final UnaryCallable + listAclPoliciesCallable; + private final UnaryCallable + listAclPoliciesPagedCallable; private final UnaryCallable getClusterCallable; + private final UnaryCallable getAclPolicyCallable; private final UnaryCallable updateClusterCallable; private final OperationCallable updateClusterOperationCallable; + private final UnaryCallable updateAclPolicyCallable; + private final OperationCallable + updateAclPolicyOperationCallable; private final UnaryCallable deleteClusterCallable; private final OperationCallable deleteClusterOperationCallable; + private final UnaryCallable deleteAclPolicyCallable; + private final OperationCallable + deleteAclPolicyOperationCallable; + private final UnaryCallable + getAclPolicyRevisionCallable; + private final UnaryCallable + listAclPolicyRevisionsCallable; + private final UnaryCallable + listAclPolicyRevisionsPagedCallable; private final UnaryCallable createClusterCallable; private final OperationCallable createClusterOperationCallable; + private final UnaryCallable createAclPolicyCallable; private final UnaryCallable getClusterCertificateAuthorityCallable; private final UnaryCallable< @@ -867,6 +1172,19 @@ protected HttpJsonCloudRedisClusterStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + HttpJsonCallSettings + listAclPoliciesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAclPoliciesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); HttpJsonCallSettings getClusterTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getClusterMethodDescriptor) @@ -879,6 +1197,18 @@ protected HttpJsonCloudRedisClusterStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + HttpJsonCallSettings getAclPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAclPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); HttpJsonCallSettings updateClusterTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(updateClusterMethodDescriptor) @@ -890,6 +1220,17 @@ protected HttpJsonCloudRedisClusterStub( return builder.build(); }) .build(); + HttpJsonCallSettings updateAclPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAclPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("acl_policy.name", String.valueOf(request.getAclPolicy().getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings deleteClusterTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteClusterMethodDescriptor) @@ -902,6 +1243,45 @@ protected HttpJsonCloudRedisClusterStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + HttpJsonCallSettings deleteAclPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAclPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + getAclPolicyRevisionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAclPolicyRevisionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listAclPolicyRevisionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listAclPolicyRevisionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); HttpJsonCallSettings createClusterTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(createClusterMethodDescriptor) @@ -914,6 +1294,18 @@ protected HttpJsonCloudRedisClusterStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + HttpJsonCallSettings createAclPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAclPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); HttpJsonCallSettings getClusterCertificateAuthorityTransportSettings = HttpJsonCallSettings @@ -1074,9 +1466,18 @@ protected HttpJsonCloudRedisClusterStub( this.listClustersPagedCallable = callableFactory.createPagedCallable( listClustersTransportSettings, settings.listClustersSettings(), clientContext); + this.listAclPoliciesCallable = + callableFactory.createUnaryCallable( + listAclPoliciesTransportSettings, settings.listAclPoliciesSettings(), clientContext); + this.listAclPoliciesPagedCallable = + callableFactory.createPagedCallable( + listAclPoliciesTransportSettings, settings.listAclPoliciesSettings(), clientContext); this.getClusterCallable = callableFactory.createUnaryCallable( getClusterTransportSettings, settings.getClusterSettings(), clientContext); + this.getAclPolicyCallable = + callableFactory.createUnaryCallable( + getAclPolicyTransportSettings, settings.getAclPolicySettings(), clientContext); this.updateClusterCallable = callableFactory.createUnaryCallable( updateClusterTransportSettings, settings.updateClusterSettings(), clientContext); @@ -1086,6 +1487,15 @@ protected HttpJsonCloudRedisClusterStub( settings.updateClusterOperationSettings(), clientContext, httpJsonOperationsStub); + this.updateAclPolicyCallable = + callableFactory.createUnaryCallable( + updateAclPolicyTransportSettings, settings.updateAclPolicySettings(), clientContext); + this.updateAclPolicyOperationCallable = + callableFactory.createOperationCallable( + updateAclPolicyTransportSettings, + settings.updateAclPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); this.deleteClusterCallable = callableFactory.createUnaryCallable( deleteClusterTransportSettings, settings.deleteClusterSettings(), clientContext); @@ -1095,6 +1505,30 @@ protected HttpJsonCloudRedisClusterStub( settings.deleteClusterOperationSettings(), clientContext, httpJsonOperationsStub); + this.deleteAclPolicyCallable = + callableFactory.createUnaryCallable( + deleteAclPolicyTransportSettings, settings.deleteAclPolicySettings(), clientContext); + this.deleteAclPolicyOperationCallable = + callableFactory.createOperationCallable( + deleteAclPolicyTransportSettings, + settings.deleteAclPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getAclPolicyRevisionCallable = + callableFactory.createUnaryCallable( + getAclPolicyRevisionTransportSettings, + settings.getAclPolicyRevisionSettings(), + clientContext); + this.listAclPolicyRevisionsCallable = + callableFactory.createUnaryCallable( + listAclPolicyRevisionsTransportSettings, + settings.listAclPolicyRevisionsSettings(), + clientContext); + this.listAclPolicyRevisionsPagedCallable = + callableFactory.createPagedCallable( + listAclPolicyRevisionsTransportSettings, + settings.listAclPolicyRevisionsSettings(), + clientContext); this.createClusterCallable = callableFactory.createUnaryCallable( createClusterTransportSettings, settings.createClusterSettings(), clientContext); @@ -1104,6 +1538,9 @@ protected HttpJsonCloudRedisClusterStub( settings.createClusterOperationSettings(), clientContext, httpJsonOperationsStub); + this.createAclPolicyCallable = + callableFactory.createUnaryCallable( + createAclPolicyTransportSettings, settings.createAclPolicySettings(), clientContext); this.getClusterCertificateAuthorityCallable = callableFactory.createUnaryCallable( getClusterCertificateAuthorityTransportSettings, @@ -1194,10 +1631,17 @@ protected HttpJsonCloudRedisClusterStub( public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(listClustersMethodDescriptor); + methodDescriptors.add(listAclPoliciesMethodDescriptor); methodDescriptors.add(getClusterMethodDescriptor); + methodDescriptors.add(getAclPolicyMethodDescriptor); methodDescriptors.add(updateClusterMethodDescriptor); + methodDescriptors.add(updateAclPolicyMethodDescriptor); methodDescriptors.add(deleteClusterMethodDescriptor); + methodDescriptors.add(deleteAclPolicyMethodDescriptor); + methodDescriptors.add(getAclPolicyRevisionMethodDescriptor); + methodDescriptors.add(listAclPolicyRevisionsMethodDescriptor); methodDescriptors.add(createClusterMethodDescriptor); + methodDescriptors.add(createAclPolicyMethodDescriptor); methodDescriptors.add(getClusterCertificateAuthorityMethodDescriptor); methodDescriptors.add(getSharedRegionalCertificateAuthorityMethodDescriptor); methodDescriptors.add(rescheduleClusterMaintenanceMethodDescriptor); @@ -1227,11 +1671,27 @@ public UnaryCallable listCluster return listClustersPagedCallable; } + @Override + public UnaryCallable listAclPoliciesCallable() { + return listAclPoliciesCallable; + } + + @Override + public UnaryCallable + listAclPoliciesPagedCallable() { + return listAclPoliciesPagedCallable; + } + @Override public UnaryCallable getClusterCallable() { return getClusterCallable; } + @Override + public UnaryCallable getAclPolicyCallable() { + return getAclPolicyCallable; + } + @Override public UnaryCallable updateClusterCallable() { return updateClusterCallable; @@ -1242,6 +1702,17 @@ public OperationCallable updateClusterOperat return updateClusterOperationCallable; } + @Override + public UnaryCallable updateAclPolicyCallable() { + return updateAclPolicyCallable; + } + + @Override + public OperationCallable + updateAclPolicyOperationCallable() { + return updateAclPolicyOperationCallable; + } + @Override public UnaryCallable deleteClusterCallable() { return deleteClusterCallable; @@ -1252,6 +1723,35 @@ public OperationCallable deleteClusterOperatio return deleteClusterOperationCallable; } + @Override + public UnaryCallable deleteAclPolicyCallable() { + return deleteAclPolicyCallable; + } + + @Override + public OperationCallable + deleteAclPolicyOperationCallable() { + return deleteAclPolicyOperationCallable; + } + + @Override + public UnaryCallable + getAclPolicyRevisionCallable() { + return getAclPolicyRevisionCallable; + } + + @Override + public UnaryCallable + listAclPolicyRevisionsCallable() { + return listAclPolicyRevisionsCallable; + } + + @Override + public UnaryCallable + listAclPolicyRevisionsPagedCallable() { + return listAclPolicyRevisionsPagedCallable; + } + @Override public UnaryCallable createClusterCallable() { return createClusterCallable; @@ -1262,6 +1762,11 @@ public OperationCallable createClusterOperat return createClusterOperationCallable; } + @Override + public UnaryCallable createAclPolicyCallable() { + return createAclPolicyCallable; + } + @Override public UnaryCallable getClusterCertificateAuthorityCallable() { diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1/reflect-config.json b/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1/reflect-config.json index 3bd5b8e94e95..806ccbfaf46e 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1/reflect-config.json +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1/reflect-config.json @@ -593,6 +593,177 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1.AclPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.AclPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.AclPolicy$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.AclPolicyInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.AclPolicyInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.AclPolicyRevision", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.AclPolicyRevision$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.AclRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.AclRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.AddAuthTokenRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.AddAuthTokenRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.AuthToken", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.AuthToken$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.AuthToken$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1.AuthorizationMode", "queryAllDeclaredConstructors": true, @@ -890,6 +1061,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1.ClusterEndpoint", "queryAllDeclaredConstructors": true, @@ -1070,6 +1259,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1.CreateClusterRequest", "queryAllDeclaredConstructors": true, @@ -1151,6 +1358,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1.DeleteBackupRequest", "queryAllDeclaredConstructors": true, @@ -1187,6 +1430,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1.DiscoveryEndpoint", "queryAllDeclaredConstructors": true, @@ -1259,6 +1520,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1.GetAclPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.GetAclPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.GetAuthTokenRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.GetAuthTokenRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest", "queryAllDeclaredConstructors": true, @@ -1349,6 +1664,132 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ListAuthTokensRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ListAuthTokensRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ListAuthTokensResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ListAuthTokensResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest", "queryAllDeclaredConstructors": true, @@ -1457,6 +1898,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1.NodeType", "queryAllDeclaredConstructors": true, @@ -1655,6 +2132,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1.TokenAuthUser", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.TokenAuthUser$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.TokenAuthUser$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1.TransitEncryptionMode", "queryAllDeclaredConstructors": true, @@ -1664,6 +2168,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1.UpdateClusterRequest", "queryAllDeclaredConstructors": true, diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1beta1/reflect-config.json b/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1beta1/reflect-config.json index 1cd270018b15..f8566a2380fe 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1beta1/reflect-config.json +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1beta1/reflect-config.json @@ -593,6 +593,114 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.AclPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.AclPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.AclPolicy$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.AclRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.AclRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1beta1.AuthorizationMode", "queryAllDeclaredConstructors": true, @@ -890,6 +998,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint", "queryAllDeclaredConstructors": true, @@ -1070,6 +1196,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest", "queryAllDeclaredConstructors": true, @@ -1151,6 +1295,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest", "queryAllDeclaredConstructors": true, @@ -1259,6 +1421,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest", "queryAllDeclaredConstructors": true, @@ -1349,6 +1547,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest", "queryAllDeclaredConstructors": true, @@ -1664,6 +1934,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1beta1.UpdateClusterRequest", "queryAllDeclaredConstructors": true, diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClientHttpJsonTest.java b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClientHttpJsonTest.java index caebf5d12396..0faa5fe36610 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClientHttpJsonTest.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClientHttpJsonTest.java @@ -16,10 +16,14 @@ package com.google.cloud.redis.cluster.v1; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListAclPoliciesPagedResponse; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListAclPolicyRevisionsPagedResponse; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListAuthTokensPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupsPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListClustersPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListLocationsPagedResponse; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListTokenAuthUsersPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.httpjson.GaxHttpJsonProperties; @@ -190,6 +194,106 @@ public void listClustersExceptionTest2() throws Exception { } } + @Test + public void listAclPoliciesTest() throws Exception { + AclPolicy responsesElement = AclPolicy.newBuilder().build(); + ListAclPoliciesResponse expectedResponse = + ListAclPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAclPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAclPoliciesPagedResponse pagedListResponse = client.listAclPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAclPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAclPoliciesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAclPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAclPoliciesTest2() throws Exception { + AclPolicy responsesElement = AclPolicy.newBuilder().build(); + ListAclPoliciesResponse expectedResponse = + ListAclPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAclPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListAclPoliciesPagedResponse pagedListResponse = client.listAclPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAclPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAclPoliciesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listAclPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getClusterTest() throws Exception { Cluster expectedResponse = @@ -227,6 +331,8 @@ public void getClusterTest() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -303,6 +409,8 @@ public void getClusterTest2() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -342,6 +450,104 @@ public void getClusterExceptionTest2() throws Exception { } } + @Test + public void getAclPolicyTest() throws Exception { + AclPolicy expectedResponse = + AclPolicy.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .addAllRules(new ArrayList()) + .setEtag("etag3123477") + .addAllClusterAclPolicyAttachments(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + + AclPolicy actualResponse = client.getAclPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAclPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + client.getAclPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAclPolicyTest2() throws Exception { + AclPolicy expectedResponse = + AclPolicy.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .addAllRules(new ArrayList()) + .setEtag("etag3123477") + .addAllClusterAclPolicyAttachments(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7152/locations/location-7152/aclPolicies/aclPolicie-7152"; + + AclPolicy actualResponse = client.getAclPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAclPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7152/locations/location-7152/aclPolicies/aclPolicie-7152"; + client.getAclPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void updateClusterTest() throws Exception { Cluster expectedResponse = @@ -379,6 +585,8 @@ public void updateClusterTest() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -423,6 +631,8 @@ public void updateClusterTest() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -487,6 +697,8 @@ public void updateClusterExceptionTest() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateClusterAsync(cluster, updateMask).get(); @@ -495,6 +707,78 @@ public void updateClusterExceptionTest() throws Exception { } } + @Test + public void updateAclPolicyTest() throws Exception { + AclPolicy expectedResponse = + AclPolicy.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .addAllRules(new ArrayList()) + .setEtag("etag3123477") + .addAllClusterAclPolicyAttachments(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateAclPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AclPolicy aclPolicy = + AclPolicy.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .addAllRules(new ArrayList()) + .setEtag("etag3123477") + .addAllClusterAclPolicyAttachments(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AclPolicy actualResponse = client.updateAclPolicyAsync(aclPolicy, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateAclPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AclPolicy aclPolicy = + AclPolicy.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .addAllRules(new ArrayList()) + .setEtag("etag3123477") + .addAllClusterAclPolicyAttachments(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAclPolicyAsync(aclPolicy, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void deleteClusterTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); @@ -586,57 +870,19 @@ public void deleteClusterExceptionTest2() throws Exception { } @Test - public void createClusterTest() throws Exception { - Cluster expectedResponse = - Cluster.newBuilder() - .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUid("uid115792") - .setReplicaCount(564075208) - .setAuthorizationMode(AuthorizationMode.forNumber(0)) - .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0)) - .setSizeGb(2105542105) - .setShardCount(-495377042) - .addAllPscConfigs(new ArrayList()) - .addAllDiscoveryEndpoints(new ArrayList()) - .addAllPscConnections(new ArrayList()) - .setStateInfo(Cluster.StateInfo.newBuilder().build()) - .setNodeType(NodeType.forNumber(0)) - .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) - .putAllRedisConfigs(new HashMap()) - .setPreciseSizeGb(1342268405) - .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) - .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build()) - .setDeletionProtectionEnabled(true) - .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build()) - .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build()) - .addAllPscServiceAttachments(new ArrayList()) - .addAllClusterEndpoints(new ArrayList()) - .setBackupCollection( - BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") - .toString()) - .setKmsKey("kmsKey-1127483058") - .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build()) - .setEncryptionInfo(EncryptionInfo.newBuilder().build()) - .setAsyncClusterEndpointsDeletionEnabled(true) - .setServerCaMode(ServerCaMode.forNumber(0)) - .setServerCaPool("serverCaPool1433802429") - .setRotateServerCertificate(true) - .build(); + public void deleteAclPolicyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("createClusterTest") + .setName("deleteAclPolicyTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockService.addResponse(resultOperation); - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Cluster cluster = Cluster.newBuilder().build(); - String clusterId = "clusterId561939637"; + AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); - Cluster actualResponse = client.createClusterAsync(parent, cluster, clusterId).get(); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteAclPolicyAsync(name).get(); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -654,74 +900,34 @@ public void createClusterTest() throws Exception { } @Test - public void createClusterExceptionTest() throws Exception { + public void deleteAclPolicyExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Cluster cluster = Cluster.newBuilder().build(); - String clusterId = "clusterId561939637"; - client.createClusterAsync(parent, cluster, clusterId).get(); + AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + client.deleteAclPolicyAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { } } @Test - public void createClusterTest2() throws Exception { - Cluster expectedResponse = - Cluster.newBuilder() - .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUid("uid115792") - .setReplicaCount(564075208) - .setAuthorizationMode(AuthorizationMode.forNumber(0)) - .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0)) - .setSizeGb(2105542105) - .setShardCount(-495377042) - .addAllPscConfigs(new ArrayList()) - .addAllDiscoveryEndpoints(new ArrayList()) - .addAllPscConnections(new ArrayList()) - .setStateInfo(Cluster.StateInfo.newBuilder().build()) - .setNodeType(NodeType.forNumber(0)) - .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) - .putAllRedisConfigs(new HashMap()) - .setPreciseSizeGb(1342268405) - .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) - .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build()) - .setDeletionProtectionEnabled(true) - .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build()) - .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build()) - .addAllPscServiceAttachments(new ArrayList()) - .addAllClusterEndpoints(new ArrayList()) - .setBackupCollection( - BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") - .toString()) - .setKmsKey("kmsKey-1127483058") - .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build()) - .setEncryptionInfo(EncryptionInfo.newBuilder().build()) - .setAsyncClusterEndpointsDeletionEnabled(true) - .setServerCaMode(ServerCaMode.forNumber(0)) - .setServerCaPool("serverCaPool1433802429") - .setRotateServerCertificate(true) - .build(); + public void deleteAclPolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("createClusterTest") + .setName("deleteAclPolicyTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockService.addResponse(resultOperation); - String parent = "projects/project-5833/locations/location-5833"; - Cluster cluster = Cluster.newBuilder().build(); - String clusterId = "clusterId561939637"; + String name = "projects/project-7152/locations/location-7152/aclPolicies/aclPolicie-7152"; - Cluster actualResponse = client.createClusterAsync(parent, cluster, clusterId).get(); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteAclPolicyAsync(name).get(); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -739,34 +945,38 @@ public void createClusterTest2() throws Exception { } @Test - public void createClusterExceptionTest2() throws Exception { + public void deleteAclPolicyExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "projects/project-5833/locations/location-5833"; - Cluster cluster = Cluster.newBuilder().build(); - String clusterId = "clusterId561939637"; - client.createClusterAsync(parent, cluster, clusterId).get(); + String name = "projects/project-7152/locations/location-7152/aclPolicies/aclPolicie-7152"; + client.deleteAclPolicyAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { } } @Test - public void getClusterCertificateAuthorityTest() throws Exception { - CertificateAuthority expectedResponse = - CertificateAuthority.newBuilder() - .setName(CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + public void getAclPolicyRevisionTest() throws Exception { + AclPolicyRevision expectedResponse = + AclPolicyRevision.newBuilder() + .setName( + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + .toString()) + .setRevisionNumber(-1651923923) + .setSnapshot(AclPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllAttachedClusters(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - CertificateAuthorityName name = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + AclPolicyRevisionName name = + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]"); - CertificateAuthority actualResponse = client.getClusterCertificateAuthority(name); + AclPolicyRevision actualResponse = client.getAclPolicyRevision(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -785,16 +995,16 @@ public void getClusterCertificateAuthorityTest() throws Exception { } @Test - public void getClusterCertificateAuthorityExceptionTest() throws Exception { + public void getAclPolicyRevisionExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - CertificateAuthorityName name = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - client.getClusterCertificateAuthority(name); + AclPolicyRevisionName name = + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]"); + client.getAclPolicyRevision(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -802,17 +1012,23 @@ public void getClusterCertificateAuthorityExceptionTest() throws Exception { } @Test - public void getClusterCertificateAuthorityTest2() throws Exception { - CertificateAuthority expectedResponse = - CertificateAuthority.newBuilder() - .setName(CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + public void getAclPolicyRevisionTest2() throws Exception { + AclPolicyRevision expectedResponse = + AclPolicyRevision.newBuilder() + .setName( + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + .toString()) + .setRevisionNumber(-1651923923) + .setSnapshot(AclPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllAttachedClusters(new ArrayList()) .build(); mockService.addResponse(expectedResponse); String name = - "projects/project-4382/locations/location-4382/clusters/cluster-4382/certificateAuthority"; + "projects/project-644/locations/location-644/aclPolicies/aclPolicie-644/revisions/revision-644"; - CertificateAuthority actualResponse = client.getClusterCertificateAuthority(name); + AclPolicyRevision actualResponse = client.getAclPolicyRevision(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -831,7 +1047,7 @@ public void getClusterCertificateAuthorityTest2() throws Exception { } @Test - public void getClusterCertificateAuthorityExceptionTest2() throws Exception { + public void getAclPolicyRevisionExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -839,8 +1055,8 @@ public void getClusterCertificateAuthorityExceptionTest2() throws Exception { try { String name = - "projects/project-4382/locations/location-4382/clusters/cluster-4382/certificateAuthority"; - client.getClusterCertificateAuthority(name); + "projects/project-644/locations/location-644/aclPolicies/aclPolicie-644/revisions/revision-644"; + client.getAclPolicyRevision(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -848,20 +1064,23 @@ public void getClusterCertificateAuthorityExceptionTest2() throws Exception { } @Test - public void getSharedRegionalCertificateAuthorityTest() throws Exception { - SharedRegionalCertificateAuthority expectedResponse = - SharedRegionalCertificateAuthority.newBuilder() - .setName( - SharedRegionalCertificateAuthorityName.of("[PROJECT]", "[LOCATION]").toString()) + public void listAclPolicyRevisionsTest() throws Exception { + AclPolicyRevision responsesElement = AclPolicyRevision.newBuilder().build(); + ListAclPolicyRevisionsResponse expectedResponse = + ListAclPolicyRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllAclPolicyRevisions(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - SharedRegionalCertificateAuthorityName name = - SharedRegionalCertificateAuthorityName.of("[PROJECT]", "[LOCATION]"); + AclPolicyName parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); - SharedRegionalCertificateAuthority actualResponse = - client.getSharedRegionalCertificateAuthority(name); - Assert.assertEquals(expectedResponse, actualResponse); + ListAclPolicyRevisionsPagedResponse pagedListResponse = client.listAclPolicyRevisions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAclPolicyRevisionsList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -879,16 +1098,15 @@ public void getSharedRegionalCertificateAuthorityTest() throws Exception { } @Test - public void getSharedRegionalCertificateAuthorityExceptionTest() throws Exception { + public void listAclPolicyRevisionsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - SharedRegionalCertificateAuthorityName name = - SharedRegionalCertificateAuthorityName.of("[PROJECT]", "[LOCATION]"); - client.getSharedRegionalCertificateAuthority(name); + AclPolicyName parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + client.listAclPolicyRevisions(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -896,19 +1114,23 @@ public void getSharedRegionalCertificateAuthorityExceptionTest() throws Exceptio } @Test - public void getSharedRegionalCertificateAuthorityTest2() throws Exception { - SharedRegionalCertificateAuthority expectedResponse = - SharedRegionalCertificateAuthority.newBuilder() - .setName( - SharedRegionalCertificateAuthorityName.of("[PROJECT]", "[LOCATION]").toString()) + public void listAclPolicyRevisionsTest2() throws Exception { + AclPolicyRevision responsesElement = AclPolicyRevision.newBuilder().build(); + ListAclPolicyRevisionsResponse expectedResponse = + ListAclPolicyRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllAclPolicyRevisions(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - String name = "projects/project-693/locations/location-693/sharedRegionalCertificateAuthority"; + String parent = "projects/project-9295/locations/location-9295/aclPolicies/aclPolicie-9295"; - SharedRegionalCertificateAuthority actualResponse = - client.getSharedRegionalCertificateAuthority(name); - Assert.assertEquals(expectedResponse, actualResponse); + ListAclPolicyRevisionsPagedResponse pagedListResponse = client.listAclPolicyRevisions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAclPolicyRevisionsList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -926,16 +1148,15 @@ public void getSharedRegionalCertificateAuthorityTest2() throws Exception { } @Test - public void getSharedRegionalCertificateAuthorityExceptionTest2() throws Exception { + public void listAclPolicyRevisionsExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = - "projects/project-693/locations/location-693/sharedRegionalCertificateAuthority"; - client.getSharedRegionalCertificateAuthority(name); + String parent = "projects/project-9295/locations/location-9295/aclPolicies/aclPolicie-9295"; + client.listAclPolicyRevisions(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -943,7 +1164,7 @@ public void getSharedRegionalCertificateAuthorityExceptionTest2() throws Excepti } @Test - public void rescheduleClusterMaintenanceTest() throws Exception { + public void createClusterTest() throws Exception { Cluster expectedResponse = Cluster.newBuilder() .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) @@ -979,22 +1200,22 @@ public void rescheduleClusterMaintenanceTest() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() - .setName("rescheduleClusterMaintenanceTest") + .setName("createClusterTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockService.addResponse(resultOperation); - ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType = - RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0); - Timestamp scheduleTime = Timestamp.newBuilder().build(); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Cluster cluster = Cluster.newBuilder().build(); + String clusterId = "clusterId561939637"; - Cluster actualResponse = - client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).get(); + Cluster actualResponse = client.createClusterAsync(parent, cluster, clusterId).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1013,25 +1234,24 @@ public void rescheduleClusterMaintenanceTest() throws Exception { } @Test - public void rescheduleClusterMaintenanceExceptionTest() throws Exception { + public void createClusterExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType = - RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0); - Timestamp scheduleTime = Timestamp.newBuilder().build(); - client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).get(); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Cluster cluster = Cluster.newBuilder().build(); + String clusterId = "clusterId561939637"; + client.createClusterAsync(parent, cluster, clusterId).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { } } @Test - public void rescheduleClusterMaintenanceTest2() throws Exception { + public void createClusterTest2() throws Exception { Cluster expectedResponse = Cluster.newBuilder() .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) @@ -1067,22 +1287,22 @@ public void rescheduleClusterMaintenanceTest2() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() - .setName("rescheduleClusterMaintenanceTest") + .setName("createClusterTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockService.addResponse(resultOperation); - String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; - RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType = - RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0); - Timestamp scheduleTime = Timestamp.newBuilder().build(); + String parent = "projects/project-5833/locations/location-5833"; + Cluster cluster = Cluster.newBuilder().build(); + String clusterId = "clusterId561939637"; - Cluster actualResponse = - client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).get(); + Cluster actualResponse = client.createClusterAsync(parent, cluster, clusterId).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1101,41 +1321,41 @@ public void rescheduleClusterMaintenanceTest2() throws Exception { } @Test - public void rescheduleClusterMaintenanceExceptionTest2() throws Exception { + public void createClusterExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; - RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType = - RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0); - Timestamp scheduleTime = Timestamp.newBuilder().build(); - client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).get(); + String parent = "projects/project-5833/locations/location-5833"; + Cluster cluster = Cluster.newBuilder().build(); + String clusterId = "clusterId561939637"; + client.createClusterAsync(parent, cluster, clusterId).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { } } @Test - public void listBackupCollectionsTest() throws Exception { - BackupCollection responsesElement = BackupCollection.newBuilder().build(); - ListBackupCollectionsResponse expectedResponse = - ListBackupCollectionsResponse.newBuilder() - .setNextPageToken("") - .addAllBackupCollections(Arrays.asList(responsesElement)) + public void createAclPolicyTest() throws Exception { + AclPolicy expectedResponse = + AclPolicy.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .addAllRules(new ArrayList()) + .setEtag("etag3123477") + .addAllClusterAclPolicyAttachments(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + String aclPolicyId = "aclPolicyId-1805591401"; - ListBackupCollectionsPagedResponse pagedListResponse = client.listBackupCollections(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBackupCollectionsList().get(0), resources.get(0)); + AclPolicy actualResponse = client.createAclPolicy(parent, aclPolicy, aclPolicyId); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1153,7 +1373,7 @@ public void listBackupCollectionsTest() throws Exception { } @Test - public void listBackupCollectionsExceptionTest() throws Exception { + public void createAclPolicyExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -1161,7 +1381,9 @@ public void listBackupCollectionsExceptionTest() throws Exception { try { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listBackupCollections(parent); + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + String aclPolicyId = "aclPolicyId-1805591401"; + client.createAclPolicy(parent, aclPolicy, aclPolicyId); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1169,23 +1391,24 @@ public void listBackupCollectionsExceptionTest() throws Exception { } @Test - public void listBackupCollectionsTest2() throws Exception { - BackupCollection responsesElement = BackupCollection.newBuilder().build(); - ListBackupCollectionsResponse expectedResponse = - ListBackupCollectionsResponse.newBuilder() - .setNextPageToken("") - .addAllBackupCollections(Arrays.asList(responsesElement)) + public void createAclPolicyTest2() throws Exception { + AclPolicy expectedResponse = + AclPolicy.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .addAllRules(new ArrayList()) + .setEtag("etag3123477") + .addAllClusterAclPolicyAttachments(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); String parent = "projects/project-5833/locations/location-5833"; + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + String aclPolicyId = "aclPolicyId-1805591401"; - ListBackupCollectionsPagedResponse pagedListResponse = client.listBackupCollections(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBackupCollectionsList().get(0), resources.get(0)); + AclPolicy actualResponse = client.createAclPolicy(parent, aclPolicy, aclPolicyId); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1203,7 +1426,7 @@ public void listBackupCollectionsTest2() throws Exception { } @Test - public void listBackupCollectionsExceptionTest2() throws Exception { + public void createAclPolicyExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -1211,7 +1434,9 @@ public void listBackupCollectionsExceptionTest2() throws Exception { try { String parent = "projects/project-5833/locations/location-5833"; - client.listBackupCollections(parent); + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + String aclPolicyId = "aclPolicyId-1805591401"; + client.createAclPolicy(parent, aclPolicy, aclPolicyId); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1219,23 +1444,17 @@ public void listBackupCollectionsExceptionTest2() throws Exception { } @Test - public void getBackupCollectionTest() throws Exception { - BackupCollection expectedResponse = - BackupCollection.newBuilder() - .setName( - BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") - .toString()) - .setClusterUid("clusterUid240271350") - .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - .setKmsKey("kmsKey-1127483058") - .setUid("uid115792") + public void getClusterCertificateAuthorityTest() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName(CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) .build(); mockService.addResponse(expectedResponse); - BackupCollectionName name = - BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]"); + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - BackupCollection actualResponse = client.getBackupCollection(name); + CertificateAuthority actualResponse = client.getClusterCertificateAuthority(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1254,16 +1473,16 @@ public void getBackupCollectionTest() throws Exception { } @Test - public void getBackupCollectionExceptionTest() throws Exception { + public void getClusterCertificateAuthorityExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - BackupCollectionName name = - BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]"); - client.getBackupCollection(name); + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + client.getClusterCertificateAuthority(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1271,23 +1490,17 @@ public void getBackupCollectionExceptionTest() throws Exception { } @Test - public void getBackupCollectionTest2() throws Exception { - BackupCollection expectedResponse = - BackupCollection.newBuilder() - .setName( - BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") - .toString()) - .setClusterUid("clusterUid240271350") - .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - .setKmsKey("kmsKey-1127483058") - .setUid("uid115792") + public void getClusterCertificateAuthorityTest2() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName(CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) .build(); mockService.addResponse(expectedResponse); String name = - "projects/project-9529/locations/location-9529/backupCollections/backupCollection-9529"; + "projects/project-4382/locations/location-4382/clusters/cluster-4382/certificateAuthority"; - BackupCollection actualResponse = client.getBackupCollection(name); + CertificateAuthority actualResponse = client.getClusterCertificateAuthority(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1306,7 +1519,7 @@ public void getBackupCollectionTest2() throws Exception { } @Test - public void getBackupCollectionExceptionTest2() throws Exception { + public void getClusterCertificateAuthorityExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -1314,8 +1527,8 @@ public void getBackupCollectionExceptionTest2() throws Exception { try { String name = - "projects/project-9529/locations/location-9529/backupCollections/backupCollection-9529"; - client.getBackupCollection(name); + "projects/project-4382/locations/location-4382/clusters/cluster-4382/certificateAuthority"; + client.getClusterCertificateAuthority(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1323,24 +1536,67 @@ public void getBackupCollectionExceptionTest2() throws Exception { } @Test - public void listBackupsTest() throws Exception { - Backup responsesElement = Backup.newBuilder().build(); - ListBackupsResponse expectedResponse = - ListBackupsResponse.newBuilder() - .setNextPageToken("") - .addAllBackups(Arrays.asList(responsesElement)) + public void getSharedRegionalCertificateAuthorityTest() throws Exception { + SharedRegionalCertificateAuthority expectedResponse = + SharedRegionalCertificateAuthority.newBuilder() + .setName( + SharedRegionalCertificateAuthorityName.of("[PROJECT]", "[LOCATION]").toString()) .build(); mockService.addResponse(expectedResponse); - BackupCollectionName parent = - BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]"); - - ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + SharedRegionalCertificateAuthorityName name = + SharedRegionalCertificateAuthorityName.of("[PROJECT]", "[LOCATION]"); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + SharedRegionalCertificateAuthority actualResponse = + client.getSharedRegionalCertificateAuthority(name); + Assert.assertEquals(expectedResponse, actualResponse); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSharedRegionalCertificateAuthorityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SharedRegionalCertificateAuthorityName name = + SharedRegionalCertificateAuthorityName.of("[PROJECT]", "[LOCATION]"); + client.getSharedRegionalCertificateAuthority(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSharedRegionalCertificateAuthorityTest2() throws Exception { + SharedRegionalCertificateAuthority expectedResponse = + SharedRegionalCertificateAuthority.newBuilder() + .setName( + SharedRegionalCertificateAuthorityName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-693/locations/location-693/sharedRegionalCertificateAuthority"; + + SharedRegionalCertificateAuthority actualResponse = + client.getSharedRegionalCertificateAuthority(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1358,16 +1614,16 @@ public void listBackupsTest() throws Exception { } @Test - public void listBackupsExceptionTest() throws Exception { + public void getSharedRegionalCertificateAuthorityExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - BackupCollectionName parent = - BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]"); - client.listBackups(parent); + String name = + "projects/project-693/locations/location-693/sharedRegionalCertificateAuthority"; + client.getSharedRegionalCertificateAuthority(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1375,24 +1631,1572 @@ public void listBackupsExceptionTest() throws Exception { } @Test - public void listBackupsTest2() throws Exception { - Backup responsesElement = Backup.newBuilder().build(); - ListBackupsResponse expectedResponse = - ListBackupsResponse.newBuilder() + public void rescheduleClusterMaintenanceTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setReplicaCount(564075208) + .setAuthorizationMode(AuthorizationMode.forNumber(0)) + .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0)) + .setSizeGb(2105542105) + .setShardCount(-495377042) + .addAllPscConfigs(new ArrayList()) + .addAllDiscoveryEndpoints(new ArrayList()) + .addAllPscConnections(new ArrayList()) + .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) + .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build()) + .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build()) + .addAllPscServiceAttachments(new ArrayList()) + .addAllClusterEndpoints(new ArrayList()) + .setBackupCollection( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setKmsKey("kmsKey-1127483058") + .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setAsyncClusterEndpointsDeletionEnabled(true) + .setServerCaMode(ServerCaMode.forNumber(0)) + .setServerCaPool("serverCaPool1433802429") + .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("rescheduleClusterMaintenanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType = + RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + + Cluster actualResponse = + client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void rescheduleClusterMaintenanceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType = + RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void rescheduleClusterMaintenanceTest2() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setReplicaCount(564075208) + .setAuthorizationMode(AuthorizationMode.forNumber(0)) + .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0)) + .setSizeGb(2105542105) + .setShardCount(-495377042) + .addAllPscConfigs(new ArrayList()) + .addAllDiscoveryEndpoints(new ArrayList()) + .addAllPscConnections(new ArrayList()) + .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) + .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build()) + .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build()) + .addAllPscServiceAttachments(new ArrayList()) + .addAllClusterEndpoints(new ArrayList()) + .setBackupCollection( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setKmsKey("kmsKey-1127483058") + .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setAsyncClusterEndpointsDeletionEnabled(true) + .setServerCaMode(ServerCaMode.forNumber(0)) + .setServerCaPool("serverCaPool1433802429") + .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("rescheduleClusterMaintenanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType = + RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + + Cluster actualResponse = + client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void rescheduleClusterMaintenanceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType = + RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listBackupCollectionsTest() throws Exception { + BackupCollection responsesElement = BackupCollection.newBuilder().build(); + ListBackupCollectionsResponse expectedResponse = + ListBackupCollectionsResponse.newBuilder() .setNextPageToken("") - .addAllBackups(Arrays.asList(responsesElement)) + .addAllBackupCollections(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - String parent = - "projects/project-2584/locations/location-2584/backupCollections/backupCollection-2584"; + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + ListBackupCollectionsPagedResponse pagedListResponse = client.listBackupCollections(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupCollectionsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBackupCollectionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listBackupCollections(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBackupCollectionsTest2() throws Exception { + BackupCollection responsesElement = BackupCollection.newBuilder().build(); + ListBackupCollectionsResponse expectedResponse = + ListBackupCollectionsResponse.newBuilder() + .setNextPageToken("") + .addAllBackupCollections(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListBackupCollectionsPagedResponse pagedListResponse = client.listBackupCollections(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupCollectionsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBackupCollectionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listBackupCollections(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBackupCollectionTest() throws Exception { + BackupCollection expectedResponse = + BackupCollection.newBuilder() + .setName( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setClusterUid("clusterUid240271350") + .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setKmsKey("kmsKey-1127483058") + .setUid("uid115792") + .build(); + mockService.addResponse(expectedResponse); + + BackupCollectionName name = + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]"); + + BackupCollection actualResponse = client.getBackupCollection(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBackupCollectionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BackupCollectionName name = + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]"); + client.getBackupCollection(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBackupCollectionTest2() throws Exception { + BackupCollection expectedResponse = + BackupCollection.newBuilder() + .setName( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setClusterUid("clusterUid240271350") + .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setKmsKey("kmsKey-1127483058") + .setUid("uid115792") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9529/locations/location-9529/backupCollections/backupCollection-9529"; + + BackupCollection actualResponse = client.getBackupCollection(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBackupCollectionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9529/locations/location-9529/backupCollections/backupCollection-9529"; + client.getBackupCollection(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBackupsTest() throws Exception { + Backup responsesElement = Backup.newBuilder().build(); + ListBackupsResponse expectedResponse = + ListBackupsResponse.newBuilder() + .setNextPageToken("") + .addAllBackups(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + BackupCollectionName parent = + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]"); + + ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBackupsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BackupCollectionName parent = + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]"); + client.listBackups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBackupsTest2() throws Exception { + Backup responsesElement = Backup.newBuilder().build(); + ListBackupsResponse expectedResponse = + ListBackupsResponse.newBuilder() + .setNextPageToken("") + .addAllBackups(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-2584/locations/location-2584/backupCollections/backupCollection-2584"; + + ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBackupsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-2584/locations/location-2584/backupCollections/backupCollection-2584"; + client.listBackups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setClusterUid("clusterUid240271350") + .setTotalSizeBytes(-115423608) + .setExpireTime(Timestamp.newBuilder().build()) + .setEngineVersion("engineVersion-1416229834") + .addAllBackupFiles(new ArrayList()) + .setNodeType(NodeType.forNumber(0)) + .setReplicaCount(564075208) + .setShardCount(-495377042) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setUid("uid115792") + .build(); + mockService.addResponse(expectedResponse); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]"); + + Backup actualResponse = client.getBackup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBackupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]"); + client.getBackup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBackupTest2() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setClusterUid("clusterUid240271350") + .setTotalSizeBytes(-115423608) + .setExpireTime(Timestamp.newBuilder().build()) + .setEngineVersion("engineVersion-1416229834") + .addAllBackupFiles(new ArrayList()) + .setNodeType(NodeType.forNumber(0)) + .setReplicaCount(564075208) + .setShardCount(-495377042) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setUid("uid115792") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3318/locations/location-3318/backupCollections/backupCollection-3318/backups/backup-3318"; + + Backup actualResponse = client.getBackup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBackupExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3318/locations/location-3318/backupCollections/backupCollection-3318/backups/backup-3318"; + client.getBackup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBackupTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]"); + + client.deleteBackupAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteBackupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]"); + client.deleteBackupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteBackupTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-3318/locations/location-3318/backupCollections/backupCollection-3318/backups/backup-3318"; + + client.deleteBackupAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteBackupExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3318/locations/location-3318/backupCollections/backupCollection-3318/backups/backup-3318"; + client.deleteBackupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void exportBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setClusterUid("clusterUid240271350") + .setTotalSizeBytes(-115423608) + .setExpireTime(Timestamp.newBuilder().build()) + .setEngineVersion("engineVersion-1416229834") + .addAllBackupFiles(new ArrayList()) + .setNodeType(NodeType.forNumber(0)) + .setReplicaCount(564075208) + .setShardCount(-495377042) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ExportBackupRequest request = + ExportBackupRequest.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .build(); + + Backup actualResponse = client.exportBackupAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void exportBackupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExportBackupRequest request = + ExportBackupRequest.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .build(); + client.exportBackupAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void backupClusterTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setReplicaCount(564075208) + .setAuthorizationMode(AuthorizationMode.forNumber(0)) + .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0)) + .setSizeGb(2105542105) + .setShardCount(-495377042) + .addAllPscConfigs(new ArrayList()) + .addAllDiscoveryEndpoints(new ArrayList()) + .addAllPscConnections(new ArrayList()) + .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) + .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build()) + .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build()) + .addAllPscServiceAttachments(new ArrayList()) + .addAllClusterEndpoints(new ArrayList()) + .setBackupCollection( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setKmsKey("kmsKey-1127483058") + .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setAsyncClusterEndpointsDeletionEnabled(true) + .setServerCaMode(ServerCaMode.forNumber(0)) + .setServerCaPool("serverCaPool1433802429") + .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("backupClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + + Cluster actualResponse = client.backupClusterAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void backupClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + client.backupClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void backupClusterTest2() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setReplicaCount(564075208) + .setAuthorizationMode(AuthorizationMode.forNumber(0)) + .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0)) + .setSizeGb(2105542105) + .setShardCount(-495377042) + .addAllPscConfigs(new ArrayList()) + .addAllDiscoveryEndpoints(new ArrayList()) + .addAllPscConnections(new ArrayList()) + .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) + .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build()) + .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build()) + .addAllPscServiceAttachments(new ArrayList()) + .addAllClusterEndpoints(new ArrayList()) + .setBackupCollection( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setKmsKey("kmsKey-1127483058") + .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setAsyncClusterEndpointsDeletionEnabled(true) + .setServerCaMode(ServerCaMode.forNumber(0)) + .setServerCaPool("serverCaPool1433802429") + .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("backupClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + + Cluster actualResponse = client.backupClusterAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void backupClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + client.backupClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listTokenAuthUsersTest() throws Exception { + TokenAuthUser responsesElement = TokenAuthUser.newBuilder().build(); + ListTokenAuthUsersResponse expectedResponse = + ListTokenAuthUsersResponse.newBuilder() + .setNextPageToken("") + .addAllTokenAuthUsers(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ClusterName parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + + ListTokenAuthUsersPagedResponse pagedListResponse = client.listTokenAuthUsers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTokenAuthUsersList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTokenAuthUsersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ClusterName parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + client.listTokenAuthUsers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTokenAuthUsersTest2() throws Exception { + TokenAuthUser responsesElement = TokenAuthUser.newBuilder().build(); + ListTokenAuthUsersResponse expectedResponse = + ListTokenAuthUsersResponse.newBuilder() + .setNextPageToken("") + .addAllTokenAuthUsers(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-9466/locations/location-9466/clusters/cluster-9466"; + + ListTokenAuthUsersPagedResponse pagedListResponse = client.listTokenAuthUsers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTokenAuthUsersList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTokenAuthUsersExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9466/locations/location-9466/clusters/cluster-9466"; + client.listTokenAuthUsers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTokenAuthUserTest() throws Exception { + TokenAuthUser expectedResponse = + TokenAuthUser.newBuilder() + .setName( + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString()) + .build(); + mockService.addResponse(expectedResponse); + + TokenAuthUserName name = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + + TokenAuthUser actualResponse = client.getTokenAuthUser(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTokenAuthUserExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TokenAuthUserName name = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + client.getTokenAuthUser(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTokenAuthUserTest2() throws Exception { + TokenAuthUser expectedResponse = + TokenAuthUser.newBuilder() + .setName( + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-2728/locations/location-2728/clusters/cluster-2728/tokenAuthUsers/tokenAuthUser-2728"; + + TokenAuthUser actualResponse = client.getTokenAuthUser(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTokenAuthUserExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-2728/locations/location-2728/clusters/cluster-2728/tokenAuthUsers/tokenAuthUser-2728"; + client.getTokenAuthUser(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAuthTokensTest() throws Exception { + AuthToken responsesElement = AuthToken.newBuilder().build(); + ListAuthTokensResponse expectedResponse = + ListAuthTokensResponse.newBuilder() + .setNextPageToken("") + .addAllAuthTokens(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + TokenAuthUserName parent = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + + ListAuthTokensPagedResponse pagedListResponse = client.listAuthTokens(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthTokensList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAuthTokensExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TokenAuthUserName parent = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + client.listAuthTokens(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAuthTokensTest2() throws Exception { + AuthToken responsesElement = AuthToken.newBuilder().build(); + ListAuthTokensResponse expectedResponse = + ListAuthTokensResponse.newBuilder() + .setNextPageToken("") + .addAllAuthTokens(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-9289/locations/location-9289/clusters/cluster-9289/tokenAuthUsers/tokenAuthUser-9289"; + + ListAuthTokensPagedResponse pagedListResponse = client.listAuthTokens(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthTokensList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAuthTokensExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-9289/locations/location-9289/clusters/cluster-9289/tokenAuthUsers/tokenAuthUser-9289"; + client.listAuthTokens(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAuthTokenTest() throws Exception { + AuthToken expectedResponse = + AuthToken.newBuilder() + .setName( + AuthTokenName.of( + "[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]", "[AUTH_TOKEN]") + .toString()) + .setToken("token110541305") + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AuthTokenName name = + AuthTokenName.of( + "[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]", "[AUTH_TOKEN]"); + + AuthToken actualResponse = client.getAuthToken(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAuthTokenExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthTokenName name = + AuthTokenName.of( + "[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]", "[AUTH_TOKEN]"); + client.getAuthToken(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAuthTokenTest2() throws Exception { + AuthToken expectedResponse = + AuthToken.newBuilder() + .setName( + AuthTokenName.of( + "[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]", "[AUTH_TOKEN]") + .toString()) + .setToken("token110541305") + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-316/locations/location-316/clusters/cluster-316/tokenAuthUsers/tokenAuthUser-316/authTokens/authToken-316"; + + AuthToken actualResponse = client.getAuthToken(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAuthTokenExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-316/locations/location-316/clusters/cluster-316/tokenAuthUsers/tokenAuthUser-316/authTokens/authToken-316"; + client.getAuthToken(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void addTokenAuthUserTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setReplicaCount(564075208) + .setAuthorizationMode(AuthorizationMode.forNumber(0)) + .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0)) + .setSizeGb(2105542105) + .setShardCount(-495377042) + .addAllPscConfigs(new ArrayList()) + .addAllDiscoveryEndpoints(new ArrayList()) + .addAllPscConnections(new ArrayList()) + .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) + .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build()) + .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build()) + .addAllPscServiceAttachments(new ArrayList()) + .addAllClusterEndpoints(new ArrayList()) + .setBackupCollection( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setKmsKey("kmsKey-1127483058") + .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setAsyncClusterEndpointsDeletionEnabled(true) + .setServerCaMode(ServerCaMode.forNumber(0)) + .setServerCaPool("serverCaPool1433802429") + .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("addTokenAuthUserTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ClusterName cluster = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + TokenAuthUserName tokenAuthUser = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + + Cluster actualResponse = client.addTokenAuthUserAsync(cluster, tokenAuthUser).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void addTokenAuthUserExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ClusterName cluster = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + TokenAuthUserName tokenAuthUser = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + client.addTokenAuthUserAsync(cluster, tokenAuthUser).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void addTokenAuthUserTest2() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setReplicaCount(564075208) + .setAuthorizationMode(AuthorizationMode.forNumber(0)) + .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0)) + .setSizeGb(2105542105) + .setShardCount(-495377042) + .addAllPscConfigs(new ArrayList()) + .addAllDiscoveryEndpoints(new ArrayList()) + .addAllPscConnections(new ArrayList()) + .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) + .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build()) + .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build()) + .addAllPscServiceAttachments(new ArrayList()) + .addAllClusterEndpoints(new ArrayList()) + .setBackupCollection( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setKmsKey("kmsKey-1127483058") + .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setAsyncClusterEndpointsDeletionEnabled(true) + .setServerCaMode(ServerCaMode.forNumber(0)) + .setServerCaPool("serverCaPool1433802429") + .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("addTokenAuthUserTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ClusterName cluster = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + String tokenAuthUser = "tokenAuthUser345456300"; + + Cluster actualResponse = client.addTokenAuthUserAsync(cluster, tokenAuthUser).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void addTokenAuthUserExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ClusterName cluster = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + String tokenAuthUser = "tokenAuthUser345456300"; + client.addTokenAuthUserAsync(cluster, tokenAuthUser).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void addTokenAuthUserTest3() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setReplicaCount(564075208) + .setAuthorizationMode(AuthorizationMode.forNumber(0)) + .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0)) + .setSizeGb(2105542105) + .setShardCount(-495377042) + .addAllPscConfigs(new ArrayList()) + .addAllDiscoveryEndpoints(new ArrayList()) + .addAllPscConnections(new ArrayList()) + .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) + .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build()) + .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build()) + .addAllPscServiceAttachments(new ArrayList()) + .addAllClusterEndpoints(new ArrayList()) + .setBackupCollection( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setKmsKey("kmsKey-1127483058") + .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setAsyncClusterEndpointsDeletionEnabled(true) + .setServerCaMode(ServerCaMode.forNumber(0)) + .setServerCaPool("serverCaPool1433802429") + .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("addTokenAuthUserTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + String cluster = "projects/project-7126/locations/location-7126/clusters/cluster-7126"; + TokenAuthUserName tokenAuthUser = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + Cluster actualResponse = client.addTokenAuthUserAsync(cluster, tokenAuthUser).get(); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1410,47 +3214,74 @@ public void listBackupsTest2() throws Exception { } @Test - public void listBackupsExceptionTest2() throws Exception { + public void addTokenAuthUserExceptionTest3() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = - "projects/project-2584/locations/location-2584/backupCollections/backupCollection-2584"; - client.listBackups(parent); + String cluster = "projects/project-7126/locations/location-7126/clusters/cluster-7126"; + TokenAuthUserName tokenAuthUser = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + client.addTokenAuthUserAsync(cluster, tokenAuthUser).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { } } @Test - public void getBackupTest() throws Exception { - Backup expectedResponse = - Backup.newBuilder() - .setName( - BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") - .toString()) + public void addTokenAuthUserTest4() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) .setCreateTime(Timestamp.newBuilder().build()) - .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - .setClusterUid("clusterUid240271350") - .setTotalSizeBytes(-115423608) - .setExpireTime(Timestamp.newBuilder().build()) - .setEngineVersion("engineVersion-1416229834") - .addAllBackupFiles(new ArrayList()) - .setNodeType(NodeType.forNumber(0)) + .setUid("uid115792") .setReplicaCount(564075208) + .setAuthorizationMode(AuthorizationMode.forNumber(0)) + .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0)) + .setSizeGb(2105542105) .setShardCount(-495377042) + .addAllPscConfigs(new ArrayList()) + .addAllDiscoveryEndpoints(new ArrayList()) + .addAllPscConnections(new ArrayList()) + .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) + .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build()) + .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build()) + .addAllPscServiceAttachments(new ArrayList()) + .addAllClusterEndpoints(new ArrayList()) + .setBackupCollection( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setKmsKey("kmsKey-1127483058") + .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build()) .setEncryptionInfo(EncryptionInfo.newBuilder().build()) - .setUid("uid115792") + .setAsyncClusterEndpointsDeletionEnabled(true) + .setServerCaMode(ServerCaMode.forNumber(0)) + .setServerCaPool("serverCaPool1433802429") + .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); - mockService.addResponse(expectedResponse); + Operation resultOperation = + Operation.newBuilder() + .setName("addTokenAuthUserTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); - BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]"); + String cluster = "projects/project-7126/locations/location-7126/clusters/cluster-7126"; + String tokenAuthUser = "tokenAuthUser345456300"; - Backup actualResponse = client.getBackup(name); + Cluster actualResponse = client.addTokenAuthUserAsync(cluster, tokenAuthUser).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1469,48 +3300,36 @@ public void getBackupTest() throws Exception { } @Test - public void getBackupExceptionTest() throws Exception { + public void addTokenAuthUserExceptionTest4() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]"); - client.getBackup(name); + String cluster = "projects/project-7126/locations/location-7126/clusters/cluster-7126"; + String tokenAuthUser = "tokenAuthUser345456300"; + client.addTokenAuthUserAsync(cluster, tokenAuthUser).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { } } @Test - public void getBackupTest2() throws Exception { - Backup expectedResponse = - Backup.newBuilder() - .setName( - BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") - .toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - .setClusterUid("clusterUid240271350") - .setTotalSizeBytes(-115423608) - .setExpireTime(Timestamp.newBuilder().build()) - .setEngineVersion("engineVersion-1416229834") - .addAllBackupFiles(new ArrayList()) - .setNodeType(NodeType.forNumber(0)) - .setReplicaCount(564075208) - .setShardCount(-495377042) - .setEncryptionInfo(EncryptionInfo.newBuilder().build()) - .setUid("uid115792") + public void deleteTokenAuthUserTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteTokenAuthUserTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockService.addResponse(resultOperation); - String name = - "projects/project-3318/locations/location-3318/backupCollections/backupCollection-3318/backups/backup-3318"; + TokenAuthUserName name = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); - Backup actualResponse = client.getBackup(name); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteTokenAuthUserAsync(name).get(); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1528,36 +3347,36 @@ public void getBackupTest2() throws Exception { } @Test - public void getBackupExceptionTest2() throws Exception { + public void deleteTokenAuthUserExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = - "projects/project-3318/locations/location-3318/backupCollections/backupCollection-3318/backups/backup-3318"; - client.getBackup(name); + TokenAuthUserName name = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + client.deleteTokenAuthUserAsync(name).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { } } @Test - public void deleteBackupTest() throws Exception { + public void deleteTokenAuthUserTest2() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("deleteBackupTest") + .setName("deleteTokenAuthUserTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockService.addResponse(resultOperation); - BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]"); + String name = + "projects/project-2728/locations/location-2728/clusters/cluster-2728/tokenAuthUsers/tokenAuthUser-2728"; - client.deleteBackupAsync(name).get(); + client.deleteTokenAuthUserAsync(name).get(); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1575,35 +3394,43 @@ public void deleteBackupTest() throws Exception { } @Test - public void deleteBackupExceptionTest() throws Exception { + public void deleteTokenAuthUserExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]"); - client.deleteBackupAsync(name).get(); + String name = + "projects/project-2728/locations/location-2728/clusters/cluster-2728/tokenAuthUsers/tokenAuthUser-2728"; + client.deleteTokenAuthUserAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { } } @Test - public void deleteBackupTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void addAuthTokenTest() throws Exception { + TokenAuthUser expectedResponse = + TokenAuthUser.newBuilder() + .setName( + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString()) + .build(); Operation resultOperation = Operation.newBuilder() - .setName("deleteBackupTest") + .setName("addAuthTokenTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockService.addResponse(resultOperation); - String name = - "projects/project-3318/locations/location-3318/backupCollections/backupCollection-3318/backups/backup-3318"; + TokenAuthUserName tokenAuthUser = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + AuthToken authToken = AuthToken.newBuilder().build(); - client.deleteBackupAsync(name).get(); + TokenAuthUser actualResponse = client.addAuthTokenAsync(tokenAuthUser, authToken).get(); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1621,57 +3448,43 @@ public void deleteBackupTest2() throws Exception { } @Test - public void deleteBackupExceptionTest2() throws Exception { + public void addAuthTokenExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = - "projects/project-3318/locations/location-3318/backupCollections/backupCollection-3318/backups/backup-3318"; - client.deleteBackupAsync(name).get(); + TokenAuthUserName tokenAuthUser = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + AuthToken authToken = AuthToken.newBuilder().build(); + client.addAuthTokenAsync(tokenAuthUser, authToken).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { } } @Test - public void exportBackupTest() throws Exception { - Backup expectedResponse = - Backup.newBuilder() + public void addAuthTokenTest2() throws Exception { + TokenAuthUser expectedResponse = + TokenAuthUser.newBuilder() .setName( - BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") .toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - .setClusterUid("clusterUid240271350") - .setTotalSizeBytes(-115423608) - .setExpireTime(Timestamp.newBuilder().build()) - .setEngineVersion("engineVersion-1416229834") - .addAllBackupFiles(new ArrayList()) - .setNodeType(NodeType.forNumber(0)) - .setReplicaCount(564075208) - .setShardCount(-495377042) - .setEncryptionInfo(EncryptionInfo.newBuilder().build()) - .setUid("uid115792") .build(); Operation resultOperation = Operation.newBuilder() - .setName("exportBackupTest") + .setName("addAuthTokenTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockService.addResponse(resultOperation); - ExportBackupRequest request = - ExportBackupRequest.newBuilder() - .setName( - BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") - .toString()) - .build(); + String tokenAuthUser = + "projects/project-8649/locations/location-8649/clusters/cluster-8649/tokenAuthUsers/tokenAuthUser-8649"; + AuthToken authToken = AuthToken.newBuilder().build(); - Backup actualResponse = client.exportBackupAsync(request).get(); + TokenAuthUser actualResponse = client.addAuthTokenAsync(tokenAuthUser, authToken).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1690,75 +3503,38 @@ public void exportBackupTest() throws Exception { } @Test - public void exportBackupExceptionTest() throws Exception { + public void addAuthTokenExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - ExportBackupRequest request = - ExportBackupRequest.newBuilder() - .setName( - BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") - .toString()) - .build(); - client.exportBackupAsync(request).get(); + String tokenAuthUser = + "projects/project-8649/locations/location-8649/clusters/cluster-8649/tokenAuthUsers/tokenAuthUser-8649"; + AuthToken authToken = AuthToken.newBuilder().build(); + client.addAuthTokenAsync(tokenAuthUser, authToken).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { } } @Test - public void backupClusterTest() throws Exception { - Cluster expectedResponse = - Cluster.newBuilder() - .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUid("uid115792") - .setReplicaCount(564075208) - .setAuthorizationMode(AuthorizationMode.forNumber(0)) - .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0)) - .setSizeGb(2105542105) - .setShardCount(-495377042) - .addAllPscConfigs(new ArrayList()) - .addAllDiscoveryEndpoints(new ArrayList()) - .addAllPscConnections(new ArrayList()) - .setStateInfo(Cluster.StateInfo.newBuilder().build()) - .setNodeType(NodeType.forNumber(0)) - .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) - .putAllRedisConfigs(new HashMap()) - .setPreciseSizeGb(1342268405) - .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) - .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build()) - .setDeletionProtectionEnabled(true) - .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build()) - .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build()) - .addAllPscServiceAttachments(new ArrayList()) - .addAllClusterEndpoints(new ArrayList()) - .setBackupCollection( - BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") - .toString()) - .setKmsKey("kmsKey-1127483058") - .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build()) - .setEncryptionInfo(EncryptionInfo.newBuilder().build()) - .setAsyncClusterEndpointsDeletionEnabled(true) - .setServerCaMode(ServerCaMode.forNumber(0)) - .setServerCaPool("serverCaPool1433802429") - .setRotateServerCertificate(true) - .build(); + public void deleteAuthTokenTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("backupClusterTest") + .setName("deleteAuthTokenTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockService.addResponse(resultOperation); - ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + AuthTokenName name = + AuthTokenName.of( + "[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]", "[AUTH_TOKEN]"); - Cluster actualResponse = client.backupClusterAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteAuthTokenAsync(name).get(); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1776,70 +3552,37 @@ public void backupClusterTest() throws Exception { } @Test - public void backupClusterExceptionTest() throws Exception { + public void deleteAuthTokenExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - client.backupClusterAsync(name).get(); + AuthTokenName name = + AuthTokenName.of( + "[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]", "[AUTH_TOKEN]"); + client.deleteAuthTokenAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { } } @Test - public void backupClusterTest2() throws Exception { - Cluster expectedResponse = - Cluster.newBuilder() - .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUid("uid115792") - .setReplicaCount(564075208) - .setAuthorizationMode(AuthorizationMode.forNumber(0)) - .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0)) - .setSizeGb(2105542105) - .setShardCount(-495377042) - .addAllPscConfigs(new ArrayList()) - .addAllDiscoveryEndpoints(new ArrayList()) - .addAllPscConnections(new ArrayList()) - .setStateInfo(Cluster.StateInfo.newBuilder().build()) - .setNodeType(NodeType.forNumber(0)) - .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) - .putAllRedisConfigs(new HashMap()) - .setPreciseSizeGb(1342268405) - .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) - .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build()) - .setDeletionProtectionEnabled(true) - .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build()) - .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build()) - .addAllPscServiceAttachments(new ArrayList()) - .addAllClusterEndpoints(new ArrayList()) - .setBackupCollection( - BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") - .toString()) - .setKmsKey("kmsKey-1127483058") - .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build()) - .setEncryptionInfo(EncryptionInfo.newBuilder().build()) - .setAsyncClusterEndpointsDeletionEnabled(true) - .setServerCaMode(ServerCaMode.forNumber(0)) - .setServerCaPool("serverCaPool1433802429") - .setRotateServerCertificate(true) - .build(); + public void deleteAuthTokenTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("backupClusterTest") + .setName("deleteAuthTokenTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockService.addResponse(resultOperation); - String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + String name = + "projects/project-316/locations/location-316/clusters/cluster-316/tokenAuthUsers/tokenAuthUser-316/authTokens/authToken-316"; - Cluster actualResponse = client.backupClusterAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteAuthTokenAsync(name).get(); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1857,15 +3600,16 @@ public void backupClusterTest2() throws Exception { } @Test - public void backupClusterExceptionTest2() throws Exception { + public void deleteAuthTokenExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; - client.backupClusterAsync(name).get(); + String name = + "projects/project-316/locations/location-316/clusters/cluster-316/tokenAuthUsers/tokenAuthUser-316/authTokens/authToken-316"; + client.deleteAuthTokenAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { } diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClientTest.java b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClientTest.java index e281296574e6..1fbc7ec4517f 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClientTest.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClientTest.java @@ -16,10 +16,14 @@ package com.google.cloud.redis.cluster.v1; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListAclPoliciesPagedResponse; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListAclPolicyRevisionsPagedResponse; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListAuthTokensPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupsPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListClustersPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListLocationsPagedResponse; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListTokenAuthUsersPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -185,6 +189,94 @@ public void listClustersExceptionTest2() throws Exception { } } + @Test + public void listAclPoliciesTest() throws Exception { + AclPolicy responsesElement = AclPolicy.newBuilder().build(); + ListAclPoliciesResponse expectedResponse = + ListAclPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAclPolicies(Arrays.asList(responsesElement)) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAclPoliciesPagedResponse pagedListResponse = client.listAclPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAclPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAclPoliciesRequest actualRequest = ((ListAclPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAclPoliciesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAclPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAclPoliciesTest2() throws Exception { + AclPolicy responsesElement = AclPolicy.newBuilder().build(); + ListAclPoliciesResponse expectedResponse = + ListAclPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAclPolicies(Arrays.asList(responsesElement)) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAclPoliciesPagedResponse pagedListResponse = client.listAclPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAclPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAclPoliciesRequest actualRequest = ((ListAclPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAclPoliciesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAclPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getClusterTest() throws Exception { Cluster expectedResponse = @@ -222,6 +314,8 @@ public void getClusterTest() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); mockCloudRedisCluster.addResponse(expectedResponse); @@ -292,6 +386,8 @@ public void getClusterTest2() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); mockCloudRedisCluster.addResponse(expectedResponse); @@ -325,6 +421,92 @@ public void getClusterExceptionTest2() throws Exception { } } + @Test + public void getAclPolicyTest() throws Exception { + AclPolicy expectedResponse = + AclPolicy.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .addAllRules(new ArrayList()) + .setEtag("etag3123477") + .addAllClusterAclPolicyAttachments(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + + AclPolicy actualResponse = client.getAclPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAclPolicyRequest actualRequest = ((GetAclPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAclPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + client.getAclPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAclPolicyTest2() throws Exception { + AclPolicy expectedResponse = + AclPolicy.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .addAllRules(new ArrayList()) + .setEtag("etag3123477") + .addAllClusterAclPolicyAttachments(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + String name = "name3373707"; + + AclPolicy actualResponse = client.getAclPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAclPolicyRequest actualRequest = ((GetAclPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAclPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + String name = "name3373707"; + client.getAclPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void updateClusterTest() throws Exception { Cluster expectedResponse = @@ -362,6 +544,8 @@ public void updateClusterTest() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -406,6 +590,60 @@ public void updateClusterExceptionTest() throws Exception { } } + @Test + public void updateAclPolicyTest() throws Exception { + AclPolicy expectedResponse = + AclPolicy.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .addAllRules(new ArrayList()) + .setEtag("etag3123477") + .addAllClusterAclPolicyAttachments(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateAclPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudRedisCluster.addResponse(resultOperation); + + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AclPolicy actualResponse = client.updateAclPolicyAsync(aclPolicy, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAclPolicyRequest actualRequest = ((UpdateAclPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(aclPolicy, actualRequest.getAclPolicy()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAclPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAclPolicyAsync(aclPolicy, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void deleteClusterTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); @@ -491,65 +729,25 @@ public void deleteClusterExceptionTest2() throws Exception { } @Test - public void createClusterTest() throws Exception { - Cluster expectedResponse = - Cluster.newBuilder() - .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUid("uid115792") - .setReplicaCount(564075208) - .setAuthorizationMode(AuthorizationMode.forNumber(0)) - .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0)) - .setSizeGb(2105542105) - .setShardCount(-495377042) - .addAllPscConfigs(new ArrayList()) - .addAllDiscoveryEndpoints(new ArrayList()) - .addAllPscConnections(new ArrayList()) - .setStateInfo(Cluster.StateInfo.newBuilder().build()) - .setNodeType(NodeType.forNumber(0)) - .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) - .putAllRedisConfigs(new HashMap()) - .setPreciseSizeGb(1342268405) - .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) - .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build()) - .setDeletionProtectionEnabled(true) - .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build()) - .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build()) - .addAllPscServiceAttachments(new ArrayList()) - .addAllClusterEndpoints(new ArrayList()) - .setBackupCollection( - BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") - .toString()) - .setKmsKey("kmsKey-1127483058") - .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build()) - .setEncryptionInfo(EncryptionInfo.newBuilder().build()) - .setAsyncClusterEndpointsDeletionEnabled(true) - .setServerCaMode(ServerCaMode.forNumber(0)) - .setServerCaPool("serverCaPool1433802429") - .setRotateServerCertificate(true) - .build(); + public void deleteAclPolicyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("createClusterTest") + .setName("deleteAclPolicyTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockCloudRedisCluster.addResponse(resultOperation); - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Cluster cluster = Cluster.newBuilder().build(); - String clusterId = "clusterId561939637"; + AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); - Cluster actualResponse = client.createClusterAsync(parent, cluster, clusterId).get(); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteAclPolicyAsync(name).get(); List actualRequests = mockCloudRedisCluster.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateClusterRequest actualRequest = ((CreateClusterRequest) actualRequests.get(0)); + DeleteAclPolicyRequest actualRequest = ((DeleteAclPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(cluster, actualRequest.getCluster()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -557,15 +755,13 @@ public void createClusterTest() throws Exception { } @Test - public void createClusterExceptionTest() throws Exception { + public void deleteAclPolicyExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudRedisCluster.addException(exception); try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Cluster cluster = Cluster.newBuilder().build(); - String clusterId = "clusterId561939637"; - client.createClusterAsync(parent, cluster, clusterId).get(); + AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + client.deleteAclPolicyAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -575,65 +771,25 @@ public void createClusterExceptionTest() throws Exception { } @Test - public void createClusterTest2() throws Exception { - Cluster expectedResponse = - Cluster.newBuilder() - .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUid("uid115792") - .setReplicaCount(564075208) - .setAuthorizationMode(AuthorizationMode.forNumber(0)) - .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0)) - .setSizeGb(2105542105) - .setShardCount(-495377042) - .addAllPscConfigs(new ArrayList()) - .addAllDiscoveryEndpoints(new ArrayList()) - .addAllPscConnections(new ArrayList()) - .setStateInfo(Cluster.StateInfo.newBuilder().build()) - .setNodeType(NodeType.forNumber(0)) - .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) - .putAllRedisConfigs(new HashMap()) - .setPreciseSizeGb(1342268405) - .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) - .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build()) - .setDeletionProtectionEnabled(true) - .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build()) - .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build()) - .addAllPscServiceAttachments(new ArrayList()) - .addAllClusterEndpoints(new ArrayList()) - .setBackupCollection( - BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") - .toString()) - .setKmsKey("kmsKey-1127483058") - .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build()) - .setEncryptionInfo(EncryptionInfo.newBuilder().build()) - .setAsyncClusterEndpointsDeletionEnabled(true) - .setServerCaMode(ServerCaMode.forNumber(0)) - .setServerCaPool("serverCaPool1433802429") - .setRotateServerCertificate(true) - .build(); + public void deleteAclPolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("createClusterTest") + .setName("deleteAclPolicyTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockCloudRedisCluster.addResponse(resultOperation); - String parent = "parent-995424086"; - Cluster cluster = Cluster.newBuilder().build(); - String clusterId = "clusterId561939637"; + String name = "name3373707"; - Cluster actualResponse = client.createClusterAsync(parent, cluster, clusterId).get(); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteAclPolicyAsync(name).get(); List actualRequests = mockCloudRedisCluster.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateClusterRequest actualRequest = ((CreateClusterRequest) actualRequests.get(0)); + DeleteAclPolicyRequest actualRequest = ((DeleteAclPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(cluster, actualRequest.getCluster()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -641,15 +797,13 @@ public void createClusterTest2() throws Exception { } @Test - public void createClusterExceptionTest2() throws Exception { + public void deleteAclPolicyExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudRedisCluster.addException(exception); try { - String parent = "parent-995424086"; - Cluster cluster = Cluster.newBuilder().build(); - String clusterId = "clusterId561939637"; - client.createClusterAsync(parent, cluster, clusterId).get(); + String name = "name3373707"; + client.deleteAclPolicyAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -659,23 +813,29 @@ public void createClusterExceptionTest2() throws Exception { } @Test - public void getClusterCertificateAuthorityTest() throws Exception { - CertificateAuthority expectedResponse = - CertificateAuthority.newBuilder() - .setName(CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + public void getAclPolicyRevisionTest() throws Exception { + AclPolicyRevision expectedResponse = + AclPolicyRevision.newBuilder() + .setName( + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + .toString()) + .setRevisionNumber(-1651923923) + .setSnapshot(AclPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllAttachedClusters(new ArrayList()) .build(); mockCloudRedisCluster.addResponse(expectedResponse); - CertificateAuthorityName name = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + AclPolicyRevisionName name = + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]"); - CertificateAuthority actualResponse = client.getClusterCertificateAuthority(name); + AclPolicyRevision actualResponse = client.getAclPolicyRevision(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCloudRedisCluster.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetClusterCertificateAuthorityRequest actualRequest = - ((GetClusterCertificateAuthorityRequest) actualRequests.get(0)); + GetAclPolicyRevisionRequest actualRequest = + ((GetAclPolicyRevisionRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -685,14 +845,14 @@ public void getClusterCertificateAuthorityTest() throws Exception { } @Test - public void getClusterCertificateAuthorityExceptionTest() throws Exception { + public void getAclPolicyRevisionExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudRedisCluster.addException(exception); try { - CertificateAuthorityName name = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - client.getClusterCertificateAuthority(name); + AclPolicyRevisionName name = + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]"); + client.getAclPolicyRevision(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -700,22 +860,28 @@ public void getClusterCertificateAuthorityExceptionTest() throws Exception { } @Test - public void getClusterCertificateAuthorityTest2() throws Exception { - CertificateAuthority expectedResponse = - CertificateAuthority.newBuilder() - .setName(CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + public void getAclPolicyRevisionTest2() throws Exception { + AclPolicyRevision expectedResponse = + AclPolicyRevision.newBuilder() + .setName( + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + .toString()) + .setRevisionNumber(-1651923923) + .setSnapshot(AclPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllAttachedClusters(new ArrayList()) .build(); mockCloudRedisCluster.addResponse(expectedResponse); String name = "name3373707"; - CertificateAuthority actualResponse = client.getClusterCertificateAuthority(name); + AclPolicyRevision actualResponse = client.getAclPolicyRevision(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCloudRedisCluster.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetClusterCertificateAuthorityRequest actualRequest = - ((GetClusterCertificateAuthorityRequest) actualRequests.get(0)); + GetAclPolicyRevisionRequest actualRequest = + ((GetAclPolicyRevisionRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -725,13 +891,13 @@ public void getClusterCertificateAuthorityTest2() throws Exception { } @Test - public void getClusterCertificateAuthorityExceptionTest2() throws Exception { + public void getAclPolicyRevisionExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudRedisCluster.addException(exception); try { String name = "name3373707"; - client.getClusterCertificateAuthority(name); + client.getAclPolicyRevision(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -739,27 +905,30 @@ public void getClusterCertificateAuthorityExceptionTest2() throws Exception { } @Test - public void getSharedRegionalCertificateAuthorityTest() throws Exception { - SharedRegionalCertificateAuthority expectedResponse = - SharedRegionalCertificateAuthority.newBuilder() - .setName( - SharedRegionalCertificateAuthorityName.of("[PROJECT]", "[LOCATION]").toString()) + public void listAclPolicyRevisionsTest() throws Exception { + AclPolicyRevision responsesElement = AclPolicyRevision.newBuilder().build(); + ListAclPolicyRevisionsResponse expectedResponse = + ListAclPolicyRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllAclPolicyRevisions(Arrays.asList(responsesElement)) .build(); mockCloudRedisCluster.addResponse(expectedResponse); - SharedRegionalCertificateAuthorityName name = - SharedRegionalCertificateAuthorityName.of("[PROJECT]", "[LOCATION]"); + AclPolicyName parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); - SharedRegionalCertificateAuthority actualResponse = - client.getSharedRegionalCertificateAuthority(name); - Assert.assertEquals(expectedResponse, actualResponse); + ListAclPolicyRevisionsPagedResponse pagedListResponse = client.listAclPolicyRevisions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAclPolicyRevisionsList().get(0), resources.get(0)); List actualRequests = mockCloudRedisCluster.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetSharedRegionalCertificateAuthorityRequest actualRequest = - ((GetSharedRegionalCertificateAuthorityRequest) actualRequests.get(0)); + ListAclPolicyRevisionsRequest actualRequest = + ((ListAclPolicyRevisionsRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -767,14 +936,13 @@ public void getSharedRegionalCertificateAuthorityTest() throws Exception { } @Test - public void getSharedRegionalCertificateAuthorityExceptionTest() throws Exception { + public void listAclPolicyRevisionsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudRedisCluster.addException(exception); try { - SharedRegionalCertificateAuthorityName name = - SharedRegionalCertificateAuthorityName.of("[PROJECT]", "[LOCATION]"); - client.getSharedRegionalCertificateAuthority(name); + AclPolicyName parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + client.listAclPolicyRevisions(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -782,26 +950,30 @@ public void getSharedRegionalCertificateAuthorityExceptionTest() throws Exceptio } @Test - public void getSharedRegionalCertificateAuthorityTest2() throws Exception { - SharedRegionalCertificateAuthority expectedResponse = - SharedRegionalCertificateAuthority.newBuilder() - .setName( - SharedRegionalCertificateAuthorityName.of("[PROJECT]", "[LOCATION]").toString()) + public void listAclPolicyRevisionsTest2() throws Exception { + AclPolicyRevision responsesElement = AclPolicyRevision.newBuilder().build(); + ListAclPolicyRevisionsResponse expectedResponse = + ListAclPolicyRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllAclPolicyRevisions(Arrays.asList(responsesElement)) .build(); mockCloudRedisCluster.addResponse(expectedResponse); - String name = "name3373707"; + String parent = "parent-995424086"; - SharedRegionalCertificateAuthority actualResponse = - client.getSharedRegionalCertificateAuthority(name); - Assert.assertEquals(expectedResponse, actualResponse); + ListAclPolicyRevisionsPagedResponse pagedListResponse = client.listAclPolicyRevisions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAclPolicyRevisionsList().get(0), resources.get(0)); List actualRequests = mockCloudRedisCluster.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetSharedRegionalCertificateAuthorityRequest actualRequest = - ((GetSharedRegionalCertificateAuthorityRequest) actualRequests.get(0)); + ListAclPolicyRevisionsRequest actualRequest = + ((ListAclPolicyRevisionsRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -809,13 +981,13 @@ public void getSharedRegionalCertificateAuthorityTest2() throws Exception { } @Test - public void getSharedRegionalCertificateAuthorityExceptionTest2() throws Exception { + public void listAclPolicyRevisionsExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudRedisCluster.addException(exception); try { - String name = "name3373707"; - client.getSharedRegionalCertificateAuthority(name); + String parent = "parent-995424086"; + client.listAclPolicyRevisions(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -823,7 +995,7 @@ public void getSharedRegionalCertificateAuthorityExceptionTest2() throws Excepti } @Test - public void rescheduleClusterMaintenanceTest() throws Exception { + public void createClusterTest() throws Exception { Cluster expectedResponse = Cluster.newBuilder() .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) @@ -859,32 +1031,31 @@ public void rescheduleClusterMaintenanceTest() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() - .setName("rescheduleClusterMaintenanceTest") + .setName("createClusterTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockCloudRedisCluster.addResponse(resultOperation); - ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType = - RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0); - Timestamp scheduleTime = Timestamp.newBuilder().build(); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Cluster cluster = Cluster.newBuilder().build(); + String clusterId = "clusterId561939637"; - Cluster actualResponse = - client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).get(); + Cluster actualResponse = client.createClusterAsync(parent, cluster, clusterId).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCloudRedisCluster.getRequests(); Assert.assertEquals(1, actualRequests.size()); - RescheduleClusterMaintenanceRequest actualRequest = - ((RescheduleClusterMaintenanceRequest) actualRequests.get(0)); + CreateClusterRequest actualRequest = ((CreateClusterRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(rescheduleType, actualRequest.getRescheduleType()); - Assert.assertEquals(scheduleTime, actualRequest.getScheduleTime()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(cluster, actualRequest.getCluster()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -892,16 +1063,15 @@ public void rescheduleClusterMaintenanceTest() throws Exception { } @Test - public void rescheduleClusterMaintenanceExceptionTest() throws Exception { + public void createClusterExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudRedisCluster.addException(exception); try { - ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType = - RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0); - Timestamp scheduleTime = Timestamp.newBuilder().build(); - client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).get(); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Cluster cluster = Cluster.newBuilder().build(); + String clusterId = "clusterId561939637"; + client.createClusterAsync(parent, cluster, clusterId).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -911,7 +1081,7 @@ public void rescheduleClusterMaintenanceExceptionTest() throws Exception { } @Test - public void rescheduleClusterMaintenanceTest2() throws Exception { + public void createClusterTest2() throws Exception { Cluster expectedResponse = Cluster.newBuilder() .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) @@ -947,32 +1117,31 @@ public void rescheduleClusterMaintenanceTest2() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() - .setName("rescheduleClusterMaintenanceTest") + .setName("createClusterTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockCloudRedisCluster.addResponse(resultOperation); - String name = "name3373707"; - RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType = - RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0); - Timestamp scheduleTime = Timestamp.newBuilder().build(); + String parent = "parent-995424086"; + Cluster cluster = Cluster.newBuilder().build(); + String clusterId = "clusterId561939637"; - Cluster actualResponse = - client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).get(); + Cluster actualResponse = client.createClusterAsync(parent, cluster, clusterId).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCloudRedisCluster.getRequests(); Assert.assertEquals(1, actualRequests.size()); - RescheduleClusterMaintenanceRequest actualRequest = - ((RescheduleClusterMaintenanceRequest) actualRequests.get(0)); + CreateClusterRequest actualRequest = ((CreateClusterRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(rescheduleType, actualRequest.getRescheduleType()); - Assert.assertEquals(scheduleTime, actualRequest.getScheduleTime()); + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(cluster, actualRequest.getCluster()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -980,16 +1149,15 @@ public void rescheduleClusterMaintenanceTest2() throws Exception { } @Test - public void rescheduleClusterMaintenanceExceptionTest2() throws Exception { + public void createClusterExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudRedisCluster.addException(exception); try { - String name = "name3373707"; - RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType = - RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0); - Timestamp scheduleTime = Timestamp.newBuilder().build(); - client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).get(); + String parent = "parent-995424086"; + Cluster cluster = Cluster.newBuilder().build(); + String clusterId = "clusterId561939637"; + client.createClusterAsync(parent, cluster, clusterId).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -999,30 +1167,32 @@ public void rescheduleClusterMaintenanceExceptionTest2() throws Exception { } @Test - public void listBackupCollectionsTest() throws Exception { - BackupCollection responsesElement = BackupCollection.newBuilder().build(); - ListBackupCollectionsResponse expectedResponse = - ListBackupCollectionsResponse.newBuilder() - .setNextPageToken("") - .addAllBackupCollections(Arrays.asList(responsesElement)) + public void createAclPolicyTest() throws Exception { + AclPolicy expectedResponse = + AclPolicy.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .addAllRules(new ArrayList()) + .setEtag("etag3123477") + .addAllClusterAclPolicyAttachments(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockCloudRedisCluster.addResponse(expectedResponse); LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + String aclPolicyId = "aclPolicyId-1805591401"; - ListBackupCollectionsPagedResponse pagedListResponse = client.listBackupCollections(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBackupCollectionsList().get(0), resources.get(0)); + AclPolicy actualResponse = client.createAclPolicy(parent, aclPolicy, aclPolicyId); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCloudRedisCluster.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListBackupCollectionsRequest actualRequest = - ((ListBackupCollectionsRequest) actualRequests.get(0)); + CreateAclPolicyRequest actualRequest = ((CreateAclPolicyRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(aclPolicy, actualRequest.getAclPolicy()); + Assert.assertEquals(aclPolicyId, actualRequest.getAclPolicyId()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1030,13 +1200,15 @@ public void listBackupCollectionsTest() throws Exception { } @Test - public void listBackupCollectionsExceptionTest() throws Exception { + public void createAclPolicyExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudRedisCluster.addException(exception); try { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listBackupCollections(parent); + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + String aclPolicyId = "aclPolicyId-1805591401"; + client.createAclPolicy(parent, aclPolicy, aclPolicyId); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1044,30 +1216,32 @@ public void listBackupCollectionsExceptionTest() throws Exception { } @Test - public void listBackupCollectionsTest2() throws Exception { - BackupCollection responsesElement = BackupCollection.newBuilder().build(); - ListBackupCollectionsResponse expectedResponse = - ListBackupCollectionsResponse.newBuilder() - .setNextPageToken("") - .addAllBackupCollections(Arrays.asList(responsesElement)) + public void createAclPolicyTest2() throws Exception { + AclPolicy expectedResponse = + AclPolicy.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .addAllRules(new ArrayList()) + .setEtag("etag3123477") + .addAllClusterAclPolicyAttachments(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockCloudRedisCluster.addResponse(expectedResponse); String parent = "parent-995424086"; + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + String aclPolicyId = "aclPolicyId-1805591401"; - ListBackupCollectionsPagedResponse pagedListResponse = client.listBackupCollections(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBackupCollectionsList().get(0), resources.get(0)); + AclPolicy actualResponse = client.createAclPolicy(parent, aclPolicy, aclPolicyId); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCloudRedisCluster.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListBackupCollectionsRequest actualRequest = - ((ListBackupCollectionsRequest) actualRequests.get(0)); + CreateAclPolicyRequest actualRequest = ((CreateAclPolicyRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(aclPolicy, actualRequest.getAclPolicy()); + Assert.assertEquals(aclPolicyId, actualRequest.getAclPolicyId()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1075,13 +1249,15 @@ public void listBackupCollectionsTest2() throws Exception { } @Test - public void listBackupCollectionsExceptionTest2() throws Exception { + public void createAclPolicyExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudRedisCluster.addException(exception); try { String parent = "parent-995424086"; - client.listBackupCollections(parent); + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + String aclPolicyId = "aclPolicyId-1805591401"; + client.createAclPolicy(parent, aclPolicy, aclPolicyId); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1089,28 +1265,23 @@ public void listBackupCollectionsExceptionTest2() throws Exception { } @Test - public void getBackupCollectionTest() throws Exception { - BackupCollection expectedResponse = - BackupCollection.newBuilder() - .setName( - BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") - .toString()) - .setClusterUid("clusterUid240271350") - .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - .setKmsKey("kmsKey-1127483058") - .setUid("uid115792") + public void getClusterCertificateAuthorityTest() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName(CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) .build(); mockCloudRedisCluster.addResponse(expectedResponse); - BackupCollectionName name = - BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]"); + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - BackupCollection actualResponse = client.getBackupCollection(name); + CertificateAuthority actualResponse = client.getClusterCertificateAuthority(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCloudRedisCluster.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetBackupCollectionRequest actualRequest = ((GetBackupCollectionRequest) actualRequests.get(0)); + GetClusterCertificateAuthorityRequest actualRequest = + ((GetClusterCertificateAuthorityRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -1120,14 +1291,14 @@ public void getBackupCollectionTest() throws Exception { } @Test - public void getBackupCollectionExceptionTest() throws Exception { + public void getClusterCertificateAuthorityExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudRedisCluster.addException(exception); try { - BackupCollectionName name = - BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]"); - client.getBackupCollection(name); + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + client.getClusterCertificateAuthority(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1135,27 +1306,22 @@ public void getBackupCollectionExceptionTest() throws Exception { } @Test - public void getBackupCollectionTest2() throws Exception { - BackupCollection expectedResponse = - BackupCollection.newBuilder() - .setName( - BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") - .toString()) - .setClusterUid("clusterUid240271350") - .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - .setKmsKey("kmsKey-1127483058") - .setUid("uid115792") + public void getClusterCertificateAuthorityTest2() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName(CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) .build(); mockCloudRedisCluster.addResponse(expectedResponse); String name = "name3373707"; - BackupCollection actualResponse = client.getBackupCollection(name); + CertificateAuthority actualResponse = client.getClusterCertificateAuthority(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCloudRedisCluster.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetBackupCollectionRequest actualRequest = ((GetBackupCollectionRequest) actualRequests.get(0)); + GetClusterCertificateAuthorityRequest actualRequest = + ((GetClusterCertificateAuthorityRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -1165,13 +1331,13 @@ public void getBackupCollectionTest2() throws Exception { } @Test - public void getBackupCollectionExceptionTest2() throws Exception { + public void getClusterCertificateAuthorityExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudRedisCluster.addException(exception); try { String name = "name3373707"; - client.getBackupCollection(name); + client.getClusterCertificateAuthority(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1179,28 +1345,1151 @@ public void getBackupCollectionExceptionTest2() throws Exception { } @Test - public void listBackupsTest() throws Exception { - Backup responsesElement = Backup.newBuilder().build(); - ListBackupsResponse expectedResponse = - ListBackupsResponse.newBuilder() - .setNextPageToken("") - .addAllBackups(Arrays.asList(responsesElement)) - .build(); - mockCloudRedisCluster.addResponse(expectedResponse); + public void getSharedRegionalCertificateAuthorityTest() throws Exception { + SharedRegionalCertificateAuthority expectedResponse = + SharedRegionalCertificateAuthority.newBuilder() + .setName( + SharedRegionalCertificateAuthorityName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + SharedRegionalCertificateAuthorityName name = + SharedRegionalCertificateAuthorityName.of("[PROJECT]", "[LOCATION]"); + + SharedRegionalCertificateAuthority actualResponse = + client.getSharedRegionalCertificateAuthority(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSharedRegionalCertificateAuthorityRequest actualRequest = + ((GetSharedRegionalCertificateAuthorityRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSharedRegionalCertificateAuthorityExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + SharedRegionalCertificateAuthorityName name = + SharedRegionalCertificateAuthorityName.of("[PROJECT]", "[LOCATION]"); + client.getSharedRegionalCertificateAuthority(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSharedRegionalCertificateAuthorityTest2() throws Exception { + SharedRegionalCertificateAuthority expectedResponse = + SharedRegionalCertificateAuthority.newBuilder() + .setName( + SharedRegionalCertificateAuthorityName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + String name = "name3373707"; + + SharedRegionalCertificateAuthority actualResponse = + client.getSharedRegionalCertificateAuthority(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSharedRegionalCertificateAuthorityRequest actualRequest = + ((GetSharedRegionalCertificateAuthorityRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSharedRegionalCertificateAuthorityExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + String name = "name3373707"; + client.getSharedRegionalCertificateAuthority(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rescheduleClusterMaintenanceTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setReplicaCount(564075208) + .setAuthorizationMode(AuthorizationMode.forNumber(0)) + .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0)) + .setSizeGb(2105542105) + .setShardCount(-495377042) + .addAllPscConfigs(new ArrayList()) + .addAllDiscoveryEndpoints(new ArrayList()) + .addAllPscConnections(new ArrayList()) + .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) + .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build()) + .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build()) + .addAllPscServiceAttachments(new ArrayList()) + .addAllClusterEndpoints(new ArrayList()) + .setBackupCollection( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setKmsKey("kmsKey-1127483058") + .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setAsyncClusterEndpointsDeletionEnabled(true) + .setServerCaMode(ServerCaMode.forNumber(0)) + .setServerCaPool("serverCaPool1433802429") + .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("rescheduleClusterMaintenanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudRedisCluster.addResponse(resultOperation); + + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType = + RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + + Cluster actualResponse = + client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RescheduleClusterMaintenanceRequest actualRequest = + ((RescheduleClusterMaintenanceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(rescheduleType, actualRequest.getRescheduleType()); + Assert.assertEquals(scheduleTime, actualRequest.getScheduleTime()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void rescheduleClusterMaintenanceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType = + RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void rescheduleClusterMaintenanceTest2() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setReplicaCount(564075208) + .setAuthorizationMode(AuthorizationMode.forNumber(0)) + .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0)) + .setSizeGb(2105542105) + .setShardCount(-495377042) + .addAllPscConfigs(new ArrayList()) + .addAllDiscoveryEndpoints(new ArrayList()) + .addAllPscConnections(new ArrayList()) + .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) + .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build()) + .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build()) + .addAllPscServiceAttachments(new ArrayList()) + .addAllClusterEndpoints(new ArrayList()) + .setBackupCollection( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setKmsKey("kmsKey-1127483058") + .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setAsyncClusterEndpointsDeletionEnabled(true) + .setServerCaMode(ServerCaMode.forNumber(0)) + .setServerCaPool("serverCaPool1433802429") + .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("rescheduleClusterMaintenanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudRedisCluster.addResponse(resultOperation); + + String name = "name3373707"; + RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType = + RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + + Cluster actualResponse = + client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RescheduleClusterMaintenanceRequest actualRequest = + ((RescheduleClusterMaintenanceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(rescheduleType, actualRequest.getRescheduleType()); + Assert.assertEquals(scheduleTime, actualRequest.getScheduleTime()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void rescheduleClusterMaintenanceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + String name = "name3373707"; + RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType = + RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listBackupCollectionsTest() throws Exception { + BackupCollection responsesElement = BackupCollection.newBuilder().build(); + ListBackupCollectionsResponse expectedResponse = + ListBackupCollectionsResponse.newBuilder() + .setNextPageToken("") + .addAllBackupCollections(Arrays.asList(responsesElement)) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListBackupCollectionsPagedResponse pagedListResponse = client.listBackupCollections(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupCollectionsList().get(0), resources.get(0)); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBackupCollectionsRequest actualRequest = + ((ListBackupCollectionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBackupCollectionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listBackupCollections(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBackupCollectionsTest2() throws Exception { + BackupCollection responsesElement = BackupCollection.newBuilder().build(); + ListBackupCollectionsResponse expectedResponse = + ListBackupCollectionsResponse.newBuilder() + .setNextPageToken("") + .addAllBackupCollections(Arrays.asList(responsesElement)) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListBackupCollectionsPagedResponse pagedListResponse = client.listBackupCollections(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupCollectionsList().get(0), resources.get(0)); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBackupCollectionsRequest actualRequest = + ((ListBackupCollectionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBackupCollectionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + String parent = "parent-995424086"; + client.listBackupCollections(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBackupCollectionTest() throws Exception { + BackupCollection expectedResponse = + BackupCollection.newBuilder() + .setName( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setClusterUid("clusterUid240271350") + .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setKmsKey("kmsKey-1127483058") + .setUid("uid115792") + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + BackupCollectionName name = + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]"); + + BackupCollection actualResponse = client.getBackupCollection(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBackupCollectionRequest actualRequest = ((GetBackupCollectionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBackupCollectionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + BackupCollectionName name = + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]"); + client.getBackupCollection(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBackupCollectionTest2() throws Exception { + BackupCollection expectedResponse = + BackupCollection.newBuilder() + .setName( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setClusterUid("clusterUid240271350") + .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setKmsKey("kmsKey-1127483058") + .setUid("uid115792") + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + String name = "name3373707"; + + BackupCollection actualResponse = client.getBackupCollection(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBackupCollectionRequest actualRequest = ((GetBackupCollectionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBackupCollectionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + String name = "name3373707"; + client.getBackupCollection(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBackupsTest() throws Exception { + Backup responsesElement = Backup.newBuilder().build(); + ListBackupsResponse expectedResponse = + ListBackupsResponse.newBuilder() + .setNextPageToken("") + .addAllBackups(Arrays.asList(responsesElement)) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + BackupCollectionName parent = + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]"); + + ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBackupsRequest actualRequest = ((ListBackupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBackupsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + BackupCollectionName parent = + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]"); + client.listBackups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBackupsTest2() throws Exception { + Backup responsesElement = Backup.newBuilder().build(); + ListBackupsResponse expectedResponse = + ListBackupsResponse.newBuilder() + .setNextPageToken("") + .addAllBackups(Arrays.asList(responsesElement)) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBackupsRequest actualRequest = ((ListBackupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBackupsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + String parent = "parent-995424086"; + client.listBackups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setClusterUid("clusterUid240271350") + .setTotalSizeBytes(-115423608) + .setExpireTime(Timestamp.newBuilder().build()) + .setEngineVersion("engineVersion-1416229834") + .addAllBackupFiles(new ArrayList()) + .setNodeType(NodeType.forNumber(0)) + .setReplicaCount(564075208) + .setShardCount(-495377042) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setUid("uid115792") + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]"); + + Backup actualResponse = client.getBackup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBackupRequest actualRequest = ((GetBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBackupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]"); + client.getBackup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBackupTest2() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setClusterUid("clusterUid240271350") + .setTotalSizeBytes(-115423608) + .setExpireTime(Timestamp.newBuilder().build()) + .setEngineVersion("engineVersion-1416229834") + .addAllBackupFiles(new ArrayList()) + .setNodeType(NodeType.forNumber(0)) + .setReplicaCount(564075208) + .setShardCount(-495377042) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setUid("uid115792") + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + String name = "name3373707"; + + Backup actualResponse = client.getBackup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBackupRequest actualRequest = ((GetBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBackupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + String name = "name3373707"; + client.getBackup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBackupTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudRedisCluster.addResponse(resultOperation); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]"); + + client.deleteBackupAsync(name).get(); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBackupRequest actualRequest = ((DeleteBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBackupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]"); + client.deleteBackupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteBackupTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudRedisCluster.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteBackupAsync(name).get(); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBackupRequest actualRequest = ((DeleteBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBackupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + String name = "name3373707"; + client.deleteBackupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void exportBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setClusterUid("clusterUid240271350") + .setTotalSizeBytes(-115423608) + .setExpireTime(Timestamp.newBuilder().build()) + .setEngineVersion("engineVersion-1416229834") + .addAllBackupFiles(new ArrayList()) + .setNodeType(NodeType.forNumber(0)) + .setReplicaCount(564075208) + .setShardCount(-495377042) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudRedisCluster.addResponse(resultOperation); + + ExportBackupRequest request = + ExportBackupRequest.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .build(); + + Backup actualResponse = client.exportBackupAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportBackupRequest actualRequest = ((ExportBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getGcsBucket(), actualRequest.getGcsBucket()); + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportBackupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + ExportBackupRequest request = + ExportBackupRequest.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .build(); + client.exportBackupAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void backupClusterTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setReplicaCount(564075208) + .setAuthorizationMode(AuthorizationMode.forNumber(0)) + .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0)) + .setSizeGb(2105542105) + .setShardCount(-495377042) + .addAllPscConfigs(new ArrayList()) + .addAllDiscoveryEndpoints(new ArrayList()) + .addAllPscConnections(new ArrayList()) + .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) + .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build()) + .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build()) + .addAllPscServiceAttachments(new ArrayList()) + .addAllClusterEndpoints(new ArrayList()) + .setBackupCollection( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setKmsKey("kmsKey-1127483058") + .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setAsyncClusterEndpointsDeletionEnabled(true) + .setServerCaMode(ServerCaMode.forNumber(0)) + .setServerCaPool("serverCaPool1433802429") + .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("backupClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudRedisCluster.addResponse(resultOperation); - BackupCollectionName parent = - BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]"); + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + Cluster actualResponse = client.backupClusterAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BackupClusterRequest actualRequest = ((BackupClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void backupClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + client.backupClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void backupClusterTest2() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setReplicaCount(564075208) + .setAuthorizationMode(AuthorizationMode.forNumber(0)) + .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0)) + .setSizeGb(2105542105) + .setShardCount(-495377042) + .addAllPscConfigs(new ArrayList()) + .addAllDiscoveryEndpoints(new ArrayList()) + .addAllPscConnections(new ArrayList()) + .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) + .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build()) + .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build()) + .addAllPscServiceAttachments(new ArrayList()) + .addAllClusterEndpoints(new ArrayList()) + .setBackupCollection( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setKmsKey("kmsKey-1127483058") + .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setAsyncClusterEndpointsDeletionEnabled(true) + .setServerCaMode(ServerCaMode.forNumber(0)) + .setServerCaPool("serverCaPool1433802429") + .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("backupClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudRedisCluster.addResponse(resultOperation); + + String name = "name3373707"; + + Cluster actualResponse = client.backupClusterAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BackupClusterRequest actualRequest = ((BackupClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void backupClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + String name = "name3373707"; + client.backupClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listTokenAuthUsersTest() throws Exception { + TokenAuthUser responsesElement = TokenAuthUser.newBuilder().build(); + ListTokenAuthUsersResponse expectedResponse = + ListTokenAuthUsersResponse.newBuilder() + .setNextPageToken("") + .addAllTokenAuthUsers(Arrays.asList(responsesElement)) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + ClusterName parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + + ListTokenAuthUsersPagedResponse pagedListResponse = client.listTokenAuthUsers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTokenAuthUsersList().get(0), resources.get(0)); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTokenAuthUsersRequest actualRequest = ((ListTokenAuthUsersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTokenAuthUsersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + ClusterName parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + client.listTokenAuthUsers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTokenAuthUsersTest2() throws Exception { + TokenAuthUser responsesElement = TokenAuthUser.newBuilder().build(); + ListTokenAuthUsersResponse expectedResponse = + ListTokenAuthUsersResponse.newBuilder() + .setNextPageToken("") + .addAllTokenAuthUsers(Arrays.asList(responsesElement)) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListTokenAuthUsersPagedResponse pagedListResponse = client.listTokenAuthUsers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTokenAuthUsersList().get(0), resources.get(0)); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTokenAuthUsersRequest actualRequest = ((ListTokenAuthUsersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTokenAuthUsersExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + String parent = "parent-995424086"; + client.listTokenAuthUsers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTokenAuthUserTest() throws Exception { + TokenAuthUser expectedResponse = + TokenAuthUser.newBuilder() + .setName( + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString()) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + TokenAuthUserName name = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + + TokenAuthUser actualResponse = client.getTokenAuthUser(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTokenAuthUserRequest actualRequest = ((GetTokenAuthUserRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTokenAuthUserExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + TokenAuthUserName name = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + client.getTokenAuthUser(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTokenAuthUserTest2() throws Exception { + TokenAuthUser expectedResponse = + TokenAuthUser.newBuilder() + .setName( + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString()) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + String name = "name3373707"; + + TokenAuthUser actualResponse = client.getTokenAuthUser(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTokenAuthUserRequest actualRequest = ((GetTokenAuthUserRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTokenAuthUserExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + String name = "name3373707"; + client.getTokenAuthUser(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAuthTokensTest() throws Exception { + AuthToken responsesElement = AuthToken.newBuilder().build(); + ListAuthTokensResponse expectedResponse = + ListAuthTokensResponse.newBuilder() + .setNextPageToken("") + .addAllAuthTokens(Arrays.asList(responsesElement)) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + TokenAuthUserName parent = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + + ListAuthTokensPagedResponse pagedListResponse = client.listAuthTokens(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getAuthTokensList().get(0), resources.get(0)); List actualRequests = mockCloudRedisCluster.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListBackupsRequest actualRequest = ((ListBackupsRequest) actualRequests.get(0)); + ListAuthTokensRequest actualRequest = ((ListAuthTokensRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( @@ -1210,14 +2499,14 @@ public void listBackupsTest() throws Exception { } @Test - public void listBackupsExceptionTest() throws Exception { + public void listAuthTokensExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudRedisCluster.addException(exception); try { - BackupCollectionName parent = - BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]"); - client.listBackups(parent); + TokenAuthUserName parent = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + client.listAuthTokens(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1225,27 +2514,27 @@ public void listBackupsExceptionTest() throws Exception { } @Test - public void listBackupsTest2() throws Exception { - Backup responsesElement = Backup.newBuilder().build(); - ListBackupsResponse expectedResponse = - ListBackupsResponse.newBuilder() + public void listAuthTokensTest2() throws Exception { + AuthToken responsesElement = AuthToken.newBuilder().build(); + ListAuthTokensResponse expectedResponse = + ListAuthTokensResponse.newBuilder() .setNextPageToken("") - .addAllBackups(Arrays.asList(responsesElement)) + .addAllAuthTokens(Arrays.asList(responsesElement)) .build(); mockCloudRedisCluster.addResponse(expectedResponse); String parent = "parent-995424086"; - ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + ListAuthTokensPagedResponse pagedListResponse = client.listAuthTokens(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getAuthTokensList().get(0), resources.get(0)); List actualRequests = mockCloudRedisCluster.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListBackupsRequest actualRequest = ((ListBackupsRequest) actualRequests.get(0)); + ListAuthTokensRequest actualRequest = ((ListAuthTokensRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( @@ -1255,13 +2544,13 @@ public void listBackupsTest2() throws Exception { } @Test - public void listBackupsExceptionTest2() throws Exception { + public void listAuthTokensExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudRedisCluster.addException(exception); try { String parent = "parent-995424086"; - client.listBackups(parent); + client.listAuthTokens(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1269,37 +2558,324 @@ public void listBackupsExceptionTest2() throws Exception { } @Test - public void getBackupTest() throws Exception { - Backup expectedResponse = - Backup.newBuilder() + public void getAuthTokenTest() throws Exception { + AuthToken expectedResponse = + AuthToken.newBuilder() .setName( - BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + AuthTokenName.of( + "[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]", "[AUTH_TOKEN]") .toString()) + .setToken("token110541305") .setCreateTime(Timestamp.newBuilder().build()) - .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - .setClusterUid("clusterUid240271350") - .setTotalSizeBytes(-115423608) - .setExpireTime(Timestamp.newBuilder().build()) - .setEngineVersion("engineVersion-1416229834") - .addAllBackupFiles(new ArrayList()) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + AuthTokenName name = + AuthTokenName.of( + "[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]", "[AUTH_TOKEN]"); + + AuthToken actualResponse = client.getAuthToken(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAuthTokenRequest actualRequest = ((GetAuthTokenRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAuthTokenExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + AuthTokenName name = + AuthTokenName.of( + "[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]", "[AUTH_TOKEN]"); + client.getAuthToken(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAuthTokenTest2() throws Exception { + AuthToken expectedResponse = + AuthToken.newBuilder() + .setName( + AuthTokenName.of( + "[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]", "[AUTH_TOKEN]") + .toString()) + .setToken("token110541305") + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + String name = "name3373707"; + + AuthToken actualResponse = client.getAuthToken(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAuthTokenRequest actualRequest = ((GetAuthTokenRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAuthTokenExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + String name = "name3373707"; + client.getAuthToken(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void addTokenAuthUserTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setReplicaCount(564075208) + .setAuthorizationMode(AuthorizationMode.forNumber(0)) + .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0)) + .setSizeGb(2105542105) + .setShardCount(-495377042) + .addAllPscConfigs(new ArrayList()) + .addAllDiscoveryEndpoints(new ArrayList()) + .addAllPscConnections(new ArrayList()) + .setStateInfo(Cluster.StateInfo.newBuilder().build()) .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) + .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build()) + .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build()) + .addAllPscServiceAttachments(new ArrayList()) + .addAllClusterEndpoints(new ArrayList()) + .setBackupCollection( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setKmsKey("kmsKey-1127483058") + .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setAsyncClusterEndpointsDeletionEnabled(true) + .setServerCaMode(ServerCaMode.forNumber(0)) + .setServerCaPool("serverCaPool1433802429") + .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("addTokenAuthUserTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudRedisCluster.addResponse(resultOperation); + + ClusterName cluster = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + TokenAuthUserName tokenAuthUser = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + + Cluster actualResponse = client.addTokenAuthUserAsync(cluster, tokenAuthUser).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AddTokenAuthUserRequest actualRequest = ((AddTokenAuthUserRequest) actualRequests.get(0)); + + Assert.assertEquals(cluster.toString(), actualRequest.getCluster()); + Assert.assertEquals(tokenAuthUser.toString(), actualRequest.getTokenAuthUser()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void addTokenAuthUserExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + ClusterName cluster = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + TokenAuthUserName tokenAuthUser = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + client.addTokenAuthUserAsync(cluster, tokenAuthUser).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void addTokenAuthUserTest2() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUid("uid115792") .setReplicaCount(564075208) + .setAuthorizationMode(AuthorizationMode.forNumber(0)) + .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0)) + .setSizeGb(2105542105) .setShardCount(-495377042) + .addAllPscConfigs(new ArrayList()) + .addAllDiscoveryEndpoints(new ArrayList()) + .addAllPscConnections(new ArrayList()) + .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) + .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build()) + .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build()) + .addAllPscServiceAttachments(new ArrayList()) + .addAllClusterEndpoints(new ArrayList()) + .setBackupCollection( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setKmsKey("kmsKey-1127483058") + .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build()) .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setAsyncClusterEndpointsDeletionEnabled(true) + .setServerCaMode(ServerCaMode.forNumber(0)) + .setServerCaPool("serverCaPool1433802429") + .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("addTokenAuthUserTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudRedisCluster.addResponse(resultOperation); + + ClusterName cluster = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + String tokenAuthUser = "tokenAuthUser345456300"; + + Cluster actualResponse = client.addTokenAuthUserAsync(cluster, tokenAuthUser).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AddTokenAuthUserRequest actualRequest = ((AddTokenAuthUserRequest) actualRequests.get(0)); + + Assert.assertEquals(cluster.toString(), actualRequest.getCluster()); + Assert.assertEquals(tokenAuthUser, actualRequest.getTokenAuthUser()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void addTokenAuthUserExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + ClusterName cluster = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + String tokenAuthUser = "tokenAuthUser345456300"; + client.addTokenAuthUserAsync(cluster, tokenAuthUser).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void addTokenAuthUserTest3() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) .setUid("uid115792") + .setReplicaCount(564075208) + .setAuthorizationMode(AuthorizationMode.forNumber(0)) + .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0)) + .setSizeGb(2105542105) + .setShardCount(-495377042) + .addAllPscConfigs(new ArrayList()) + .addAllDiscoveryEndpoints(new ArrayList()) + .addAllPscConnections(new ArrayList()) + .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) + .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build()) + .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build()) + .addAllPscServiceAttachments(new ArrayList()) + .addAllClusterEndpoints(new ArrayList()) + .setBackupCollection( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setKmsKey("kmsKey-1127483058") + .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setAsyncClusterEndpointsDeletionEnabled(true) + .setServerCaMode(ServerCaMode.forNumber(0)) + .setServerCaPool("serverCaPool1433802429") + .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); - mockCloudRedisCluster.addResponse(expectedResponse); + Operation resultOperation = + Operation.newBuilder() + .setName("addTokenAuthUserTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudRedisCluster.addResponse(resultOperation); - BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]"); + String cluster = "cluster872092154"; + TokenAuthUserName tokenAuthUser = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); - Backup actualResponse = client.getBackup(name); + Cluster actualResponse = client.addTokenAuthUserAsync(cluster, tokenAuthUser).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCloudRedisCluster.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetBackupRequest actualRequest = ((GetBackupRequest) actualRequests.get(0)); + AddTokenAuthUserRequest actualRequest = ((AddTokenAuthUserRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(cluster, actualRequest.getCluster()); + Assert.assertEquals(tokenAuthUser.toString(), actualRequest.getTokenAuthUser()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1307,51 +2883,83 @@ public void getBackupTest() throws Exception { } @Test - public void getBackupExceptionTest() throws Exception { + public void addTokenAuthUserExceptionTest3() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudRedisCluster.addException(exception); try { - BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]"); - client.getBackup(name); + String cluster = "cluster872092154"; + TokenAuthUserName tokenAuthUser = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + client.addTokenAuthUserAsync(cluster, tokenAuthUser).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - public void getBackupTest2() throws Exception { - Backup expectedResponse = - Backup.newBuilder() - .setName( - BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") - .toString()) + public void addTokenAuthUserTest4() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) .setCreateTime(Timestamp.newBuilder().build()) - .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - .setClusterUid("clusterUid240271350") - .setTotalSizeBytes(-115423608) - .setExpireTime(Timestamp.newBuilder().build()) - .setEngineVersion("engineVersion-1416229834") - .addAllBackupFiles(new ArrayList()) - .setNodeType(NodeType.forNumber(0)) + .setUid("uid115792") .setReplicaCount(564075208) + .setAuthorizationMode(AuthorizationMode.forNumber(0)) + .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0)) + .setSizeGb(2105542105) .setShardCount(-495377042) + .addAllPscConfigs(new ArrayList()) + .addAllDiscoveryEndpoints(new ArrayList()) + .addAllPscConnections(new ArrayList()) + .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) + .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build()) + .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build()) + .addAllPscServiceAttachments(new ArrayList()) + .addAllClusterEndpoints(new ArrayList()) + .setBackupCollection( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setKmsKey("kmsKey-1127483058") + .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build()) .setEncryptionInfo(EncryptionInfo.newBuilder().build()) - .setUid("uid115792") + .setAsyncClusterEndpointsDeletionEnabled(true) + .setServerCaMode(ServerCaMode.forNumber(0)) + .setServerCaPool("serverCaPool1433802429") + .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); - mockCloudRedisCluster.addResponse(expectedResponse); + Operation resultOperation = + Operation.newBuilder() + .setName("addTokenAuthUserTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudRedisCluster.addResponse(resultOperation); - String name = "name3373707"; + String cluster = "cluster872092154"; + String tokenAuthUser = "tokenAuthUser345456300"; - Backup actualResponse = client.getBackup(name); + Cluster actualResponse = client.addTokenAuthUserAsync(cluster, tokenAuthUser).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCloudRedisCluster.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetBackupRequest actualRequest = ((GetBackupRequest) actualRequests.get(0)); + AddTokenAuthUserRequest actualRequest = ((AddTokenAuthUserRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(cluster, actualRequest.getCluster()); + Assert.assertEquals(tokenAuthUser, actualRequest.getTokenAuthUser()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1359,37 +2967,41 @@ public void getBackupTest2() throws Exception { } @Test - public void getBackupExceptionTest2() throws Exception { + public void addTokenAuthUserExceptionTest4() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudRedisCluster.addException(exception); try { - String name = "name3373707"; - client.getBackup(name); + String cluster = "cluster872092154"; + String tokenAuthUser = "tokenAuthUser345456300"; + client.addTokenAuthUserAsync(cluster, tokenAuthUser).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - public void deleteBackupTest() throws Exception { + public void deleteTokenAuthUserTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("deleteBackupTest") + .setName("deleteTokenAuthUserTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockCloudRedisCluster.addResponse(resultOperation); - BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]"); + TokenAuthUserName name = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); - client.deleteBackupAsync(name).get(); + client.deleteTokenAuthUserAsync(name).get(); List actualRequests = mockCloudRedisCluster.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteBackupRequest actualRequest = ((DeleteBackupRequest) actualRequests.get(0)); + DeleteTokenAuthUserRequest actualRequest = ((DeleteTokenAuthUserRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -1399,13 +3011,14 @@ public void deleteBackupTest() throws Exception { } @Test - public void deleteBackupExceptionTest() throws Exception { + public void deleteTokenAuthUserExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudRedisCluster.addException(exception); try { - BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]"); - client.deleteBackupAsync(name).get(); + TokenAuthUserName name = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + client.deleteTokenAuthUserAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -1415,11 +3028,11 @@ public void deleteBackupExceptionTest() throws Exception { } @Test - public void deleteBackupTest2() throws Exception { + public void deleteTokenAuthUserTest2() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("deleteBackupTest") + .setName("deleteTokenAuthUserTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); @@ -1427,11 +3040,11 @@ public void deleteBackupTest2() throws Exception { String name = "name3373707"; - client.deleteBackupAsync(name).get(); + client.deleteTokenAuthUserAsync(name).get(); List actualRequests = mockCloudRedisCluster.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteBackupRequest actualRequest = ((DeleteBackupRequest) actualRequests.get(0)); + DeleteTokenAuthUserRequest actualRequest = ((DeleteTokenAuthUserRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -1441,13 +3054,13 @@ public void deleteBackupTest2() throws Exception { } @Test - public void deleteBackupExceptionTest2() throws Exception { + public void deleteTokenAuthUserExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudRedisCluster.addException(exception); try { String name = "name3373707"; - client.deleteBackupAsync(name).get(); + client.deleteTokenAuthUserAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -1457,49 +3070,34 @@ public void deleteBackupExceptionTest2() throws Exception { } @Test - public void exportBackupTest() throws Exception { - Backup expectedResponse = - Backup.newBuilder() + public void addAuthTokenTest() throws Exception { + TokenAuthUser expectedResponse = + TokenAuthUser.newBuilder() .setName( - BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") .toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - .setClusterUid("clusterUid240271350") - .setTotalSizeBytes(-115423608) - .setExpireTime(Timestamp.newBuilder().build()) - .setEngineVersion("engineVersion-1416229834") - .addAllBackupFiles(new ArrayList()) - .setNodeType(NodeType.forNumber(0)) - .setReplicaCount(564075208) - .setShardCount(-495377042) - .setEncryptionInfo(EncryptionInfo.newBuilder().build()) - .setUid("uid115792") .build(); Operation resultOperation = Operation.newBuilder() - .setName("exportBackupTest") + .setName("addAuthTokenTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockCloudRedisCluster.addResponse(resultOperation); - ExportBackupRequest request = - ExportBackupRequest.newBuilder() - .setName( - BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") - .toString()) - .build(); + TokenAuthUserName tokenAuthUser = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + AuthToken authToken = AuthToken.newBuilder().build(); - Backup actualResponse = client.exportBackupAsync(request).get(); + TokenAuthUser actualResponse = client.addAuthTokenAsync(tokenAuthUser, authToken).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCloudRedisCluster.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ExportBackupRequest actualRequest = ((ExportBackupRequest) actualRequests.get(0)); + AddAuthTokenRequest actualRequest = ((AddAuthTokenRequest) actualRequests.get(0)); - Assert.assertEquals(request.getGcsBucket(), actualRequest.getGcsBucket()); - Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(tokenAuthUser.toString(), actualRequest.getTokenAuthUser()); + Assert.assertEquals(authToken, actualRequest.getAuthToken()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1507,18 +3105,15 @@ public void exportBackupTest() throws Exception { } @Test - public void exportBackupExceptionTest() throws Exception { + public void addAuthTokenExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudRedisCluster.addException(exception); try { - ExportBackupRequest request = - ExportBackupRequest.newBuilder() - .setName( - BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") - .toString()) - .build(); - client.exportBackupAsync(request).get(); + TokenAuthUserName tokenAuthUser = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + AuthToken authToken = AuthToken.newBuilder().build(); + client.addAuthTokenAsync(tokenAuthUser, authToken).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -1528,61 +3123,33 @@ public void exportBackupExceptionTest() throws Exception { } @Test - public void backupClusterTest() throws Exception { - Cluster expectedResponse = - Cluster.newBuilder() - .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUid("uid115792") - .setReplicaCount(564075208) - .setAuthorizationMode(AuthorizationMode.forNumber(0)) - .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0)) - .setSizeGb(2105542105) - .setShardCount(-495377042) - .addAllPscConfigs(new ArrayList()) - .addAllDiscoveryEndpoints(new ArrayList()) - .addAllPscConnections(new ArrayList()) - .setStateInfo(Cluster.StateInfo.newBuilder().build()) - .setNodeType(NodeType.forNumber(0)) - .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) - .putAllRedisConfigs(new HashMap()) - .setPreciseSizeGb(1342268405) - .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) - .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build()) - .setDeletionProtectionEnabled(true) - .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build()) - .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build()) - .addAllPscServiceAttachments(new ArrayList()) - .addAllClusterEndpoints(new ArrayList()) - .setBackupCollection( - BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + public void addAuthTokenTest2() throws Exception { + TokenAuthUser expectedResponse = + TokenAuthUser.newBuilder() + .setName( + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") .toString()) - .setKmsKey("kmsKey-1127483058") - .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build()) - .setEncryptionInfo(EncryptionInfo.newBuilder().build()) - .setAsyncClusterEndpointsDeletionEnabled(true) - .setServerCaMode(ServerCaMode.forNumber(0)) - .setServerCaPool("serverCaPool1433802429") - .setRotateServerCertificate(true) .build(); Operation resultOperation = Operation.newBuilder() - .setName("backupClusterTest") + .setName("addAuthTokenTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockCloudRedisCluster.addResponse(resultOperation); - ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + String tokenAuthUser = "tokenAuthUser345456300"; + AuthToken authToken = AuthToken.newBuilder().build(); - Cluster actualResponse = client.backupClusterAsync(name).get(); + TokenAuthUser actualResponse = client.addAuthTokenAsync(tokenAuthUser, authToken).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCloudRedisCluster.getRequests(); Assert.assertEquals(1, actualRequests.size()); - BackupClusterRequest actualRequest = ((BackupClusterRequest) actualRequests.get(0)); + AddAuthTokenRequest actualRequest = ((AddAuthTokenRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(tokenAuthUser, actualRequest.getTokenAuthUser()); + Assert.assertEquals(authToken, actualRequest.getAuthToken()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1590,13 +3157,14 @@ public void backupClusterTest() throws Exception { } @Test - public void backupClusterExceptionTest() throws Exception { + public void addAuthTokenExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudRedisCluster.addException(exception); try { - ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - client.backupClusterAsync(name).get(); + String tokenAuthUser = "tokenAuthUser345456300"; + AuthToken authToken = AuthToken.newBuilder().build(); + client.addAuthTokenAsync(tokenAuthUser, authToken).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -1606,46 +3174,57 @@ public void backupClusterExceptionTest() throws Exception { } @Test - public void backupClusterTest2() throws Exception { - Cluster expectedResponse = - Cluster.newBuilder() - .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUid("uid115792") - .setReplicaCount(564075208) - .setAuthorizationMode(AuthorizationMode.forNumber(0)) - .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0)) - .setSizeGb(2105542105) - .setShardCount(-495377042) - .addAllPscConfigs(new ArrayList()) - .addAllDiscoveryEndpoints(new ArrayList()) - .addAllPscConnections(new ArrayList()) - .setStateInfo(Cluster.StateInfo.newBuilder().build()) - .setNodeType(NodeType.forNumber(0)) - .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) - .putAllRedisConfigs(new HashMap()) - .setPreciseSizeGb(1342268405) - .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) - .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build()) - .setDeletionProtectionEnabled(true) - .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build()) - .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build()) - .addAllPscServiceAttachments(new ArrayList()) - .addAllClusterEndpoints(new ArrayList()) - .setBackupCollection( - BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") - .toString()) - .setKmsKey("kmsKey-1127483058") - .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build()) - .setEncryptionInfo(EncryptionInfo.newBuilder().build()) - .setAsyncClusterEndpointsDeletionEnabled(true) - .setServerCaMode(ServerCaMode.forNumber(0)) - .setServerCaPool("serverCaPool1433802429") - .setRotateServerCertificate(true) + public void deleteAuthTokenTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAuthTokenTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); + mockCloudRedisCluster.addResponse(resultOperation); + + AuthTokenName name = + AuthTokenName.of( + "[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]", "[AUTH_TOKEN]"); + + client.deleteAuthTokenAsync(name).get(); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAuthTokenRequest actualRequest = ((DeleteAuthTokenRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAuthTokenExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + AuthTokenName name = + AuthTokenName.of( + "[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]", "[AUTH_TOKEN]"); + client.deleteAuthTokenAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteAuthTokenTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("backupClusterTest") + .setName("deleteAuthTokenTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); @@ -1653,12 +3232,11 @@ public void backupClusterTest2() throws Exception { String name = "name3373707"; - Cluster actualResponse = client.backupClusterAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteAuthTokenAsync(name).get(); List actualRequests = mockCloudRedisCluster.getRequests(); Assert.assertEquals(1, actualRequests.size()); - BackupClusterRequest actualRequest = ((BackupClusterRequest) actualRequests.get(0)); + DeleteAuthTokenRequest actualRequest = ((DeleteAuthTokenRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -1668,13 +3246,13 @@ public void backupClusterTest2() throws Exception { } @Test - public void backupClusterExceptionTest2() throws Exception { + public void deleteAuthTokenExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudRedisCluster.addException(exception); try { String name = "name3373707"; - client.backupClusterAsync(name).get(); + client.deleteAuthTokenAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/MockCloudRedisClusterImpl.java b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/MockCloudRedisClusterImpl.java index 3b10c6a4ab39..f0036ae1ddaa 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/MockCloudRedisClusterImpl.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/MockCloudRedisClusterImpl.java @@ -80,6 +80,27 @@ public void listClusters( } } + @Override + public void listAclPolicies( + ListAclPoliciesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAclPoliciesResponse) { + requests.add(request); + responseObserver.onNext(((ListAclPoliciesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListAclPolicies, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAclPoliciesResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void getCluster(GetClusterRequest request, StreamObserver responseObserver) { Object response = responses.poll(); @@ -100,6 +121,27 @@ public void getCluster(GetClusterRequest request, StreamObserver respon } } + @Override + public void getAclPolicy( + GetAclPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AclPolicy) { + requests.add(request); + responseObserver.onNext(((AclPolicy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetAclPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AclPolicy.class.getName(), + Exception.class.getName()))); + } + } + @Override public void updateCluster( UpdateClusterRequest request, StreamObserver responseObserver) { @@ -121,6 +163,27 @@ public void updateCluster( } } + @Override + public void updateAclPolicy( + UpdateAclPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateAclPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void deleteCluster( DeleteClusterRequest request, StreamObserver responseObserver) { @@ -142,6 +205,72 @@ public void deleteCluster( } } + @Override + public void deleteAclPolicy( + DeleteAclPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteAclPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAclPolicyRevision( + GetAclPolicyRevisionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AclPolicyRevision) { + requests.add(request); + responseObserver.onNext(((AclPolicyRevision) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetAclPolicyRevision, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + AclPolicyRevision.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAclPolicyRevisions( + ListAclPolicyRevisionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAclPolicyRevisionsResponse) { + requests.add(request); + responseObserver.onNext(((ListAclPolicyRevisionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListAclPolicyRevisions, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListAclPolicyRevisionsResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void createCluster( CreateClusterRequest request, StreamObserver responseObserver) { @@ -163,6 +292,27 @@ public void createCluster( } } + @Override + public void createAclPolicy( + CreateAclPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AclPolicy) { + requests.add(request); + responseObserver.onNext(((AclPolicy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateAclPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AclPolicy.class.getName(), + Exception.class.getName()))); + } + } + @Override public void getClusterCertificateAuthority( GetClusterCertificateAuthorityRequest request, @@ -378,4 +528,173 @@ public void backupCluster( Exception.class.getName()))); } } + + @Override + public void listTokenAuthUsers( + ListTokenAuthUsersRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListTokenAuthUsersResponse) { + requests.add(request); + responseObserver.onNext(((ListTokenAuthUsersResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListTokenAuthUsers, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListTokenAuthUsersResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getTokenAuthUser( + GetTokenAuthUserRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TokenAuthUser) { + requests.add(request); + responseObserver.onNext(((TokenAuthUser) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetTokenAuthUser, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TokenAuthUser.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAuthTokens( + ListAuthTokensRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAuthTokensResponse) { + requests.add(request); + responseObserver.onNext(((ListAuthTokensResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListAuthTokens, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAuthTokensResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAuthToken( + GetAuthTokenRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AuthToken) { + requests.add(request); + responseObserver.onNext(((AuthToken) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetAuthToken, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AuthToken.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void addTokenAuthUser( + AddTokenAuthUserRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method AddTokenAuthUser, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteTokenAuthUser( + DeleteTokenAuthUserRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteTokenAuthUser, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void addAuthToken( + AddAuthTokenRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method AddAuthToken, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteAuthToken( + DeleteAuthTokenRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteAuthToken, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClientHttpJsonTest.java b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClientHttpJsonTest.java index 8f48f2c2bcb0..1ec46e180e85 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClientHttpJsonTest.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClientHttpJsonTest.java @@ -16,6 +16,8 @@ package com.google.cloud.redis.cluster.v1beta1; +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListAclPoliciesPagedResponse; +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListAclPolicyRevisionsPagedResponse; import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse; import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupsPagedResponse; import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListClustersPagedResponse; @@ -190,6 +192,106 @@ public void listClustersExceptionTest2() throws Exception { } } + @Test + public void listAclPoliciesTest() throws Exception { + AclPolicy responsesElement = AclPolicy.newBuilder().build(); + ListAclPoliciesResponse expectedResponse = + ListAclPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAclPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAclPoliciesPagedResponse pagedListResponse = client.listAclPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAclPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAclPoliciesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAclPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAclPoliciesTest2() throws Exception { + AclPolicy responsesElement = AclPolicy.newBuilder().build(); + ListAclPoliciesResponse expectedResponse = + ListAclPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAclPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListAclPoliciesPagedResponse pagedListResponse = client.listAclPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAclPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAclPoliciesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listAclPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getClusterTest() throws Exception { Cluster expectedResponse = @@ -227,6 +329,8 @@ public void getClusterTest() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -303,6 +407,8 @@ public void getClusterTest2() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -342,6 +448,104 @@ public void getClusterExceptionTest2() throws Exception { } } + @Test + public void getAclPolicyTest() throws Exception { + AclPolicy expectedResponse = + AclPolicy.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .addAllRules(new ArrayList()) + .setEtag("etag3123477") + .addAllClusterAclPolicyAttachments(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + + AclPolicy actualResponse = client.getAclPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAclPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + client.getAclPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAclPolicyTest2() throws Exception { + AclPolicy expectedResponse = + AclPolicy.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .addAllRules(new ArrayList()) + .setEtag("etag3123477") + .addAllClusterAclPolicyAttachments(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7152/locations/location-7152/aclPolicies/aclPolicie-7152"; + + AclPolicy actualResponse = client.getAclPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAclPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7152/locations/location-7152/aclPolicies/aclPolicie-7152"; + client.getAclPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void updateClusterTest() throws Exception { Cluster expectedResponse = @@ -379,6 +583,8 @@ public void updateClusterTest() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -423,6 +629,8 @@ public void updateClusterTest() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -487,6 +695,8 @@ public void updateClusterExceptionTest() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateClusterAsync(cluster, updateMask).get(); @@ -495,6 +705,78 @@ public void updateClusterExceptionTest() throws Exception { } } + @Test + public void updateAclPolicyTest() throws Exception { + AclPolicy expectedResponse = + AclPolicy.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .addAllRules(new ArrayList()) + .setEtag("etag3123477") + .addAllClusterAclPolicyAttachments(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateAclPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AclPolicy aclPolicy = + AclPolicy.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .addAllRules(new ArrayList()) + .setEtag("etag3123477") + .addAllClusterAclPolicyAttachments(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AclPolicy actualResponse = client.updateAclPolicyAsync(aclPolicy, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateAclPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AclPolicy aclPolicy = + AclPolicy.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .addAllRules(new ArrayList()) + .setEtag("etag3123477") + .addAllClusterAclPolicyAttachments(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAclPolicyAsync(aclPolicy, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void deleteClusterTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); @@ -585,6 +867,300 @@ public void deleteClusterExceptionTest2() throws Exception { } } + @Test + public void deleteAclPolicyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAclPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + + client.deleteAclPolicyAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAclPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + client.deleteAclPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteAclPolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAclPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-7152/locations/location-7152/aclPolicies/aclPolicie-7152"; + + client.deleteAclPolicyAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAclPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7152/locations/location-7152/aclPolicies/aclPolicie-7152"; + client.deleteAclPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getAclPolicyRevisionTest() throws Exception { + AclPolicyRevision expectedResponse = + AclPolicyRevision.newBuilder() + .setName( + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + .toString()) + .setRevisionNumber(-1651923923) + .setSnapshot(AclPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllAttachedClusters(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AclPolicyRevisionName name = + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]"); + + AclPolicyRevision actualResponse = client.getAclPolicyRevision(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAclPolicyRevisionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AclPolicyRevisionName name = + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]"); + client.getAclPolicyRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAclPolicyRevisionTest2() throws Exception { + AclPolicyRevision expectedResponse = + AclPolicyRevision.newBuilder() + .setName( + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + .toString()) + .setRevisionNumber(-1651923923) + .setSnapshot(AclPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllAttachedClusters(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-644/locations/location-644/aclPolicies/aclPolicie-644/revisions/revision-644"; + + AclPolicyRevision actualResponse = client.getAclPolicyRevision(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAclPolicyRevisionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-644/locations/location-644/aclPolicies/aclPolicie-644/revisions/revision-644"; + client.getAclPolicyRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAclPolicyRevisionsTest() throws Exception { + AclPolicyRevision responsesElement = AclPolicyRevision.newBuilder().build(); + ListAclPolicyRevisionsResponse expectedResponse = + ListAclPolicyRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllAclPolicyRevisions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + AclPolicyName parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + + ListAclPolicyRevisionsPagedResponse pagedListResponse = client.listAclPolicyRevisions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAclPolicyRevisionsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAclPolicyRevisionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AclPolicyName parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + client.listAclPolicyRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAclPolicyRevisionsTest2() throws Exception { + AclPolicyRevision responsesElement = AclPolicyRevision.newBuilder().build(); + ListAclPolicyRevisionsResponse expectedResponse = + ListAclPolicyRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllAclPolicyRevisions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-9295/locations/location-9295/aclPolicies/aclPolicie-9295"; + + ListAclPolicyRevisionsPagedResponse pagedListResponse = client.listAclPolicyRevisions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAclPolicyRevisionsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAclPolicyRevisionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9295/locations/location-9295/aclPolicies/aclPolicie-9295"; + client.listAclPolicyRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void createClusterTest() throws Exception { Cluster expectedResponse = @@ -622,6 +1198,8 @@ public void createClusterTest() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -707,6 +1285,8 @@ public void createClusterTest2() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -755,6 +1335,112 @@ public void createClusterExceptionTest2() throws Exception { } } + @Test + public void createAclPolicyTest() throws Exception { + AclPolicy expectedResponse = + AclPolicy.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .addAllRules(new ArrayList()) + .setEtag("etag3123477") + .addAllClusterAclPolicyAttachments(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + String aclPolicyId = "aclPolicyId-1805591401"; + + AclPolicy actualResponse = client.createAclPolicy(parent, aclPolicy, aclPolicyId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAclPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + String aclPolicyId = "aclPolicyId-1805591401"; + client.createAclPolicy(parent, aclPolicy, aclPolicyId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAclPolicyTest2() throws Exception { + AclPolicy expectedResponse = + AclPolicy.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .addAllRules(new ArrayList()) + .setEtag("etag3123477") + .addAllClusterAclPolicyAttachments(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + String aclPolicyId = "aclPolicyId-1805591401"; + + AclPolicy actualResponse = client.createAclPolicy(parent, aclPolicy, aclPolicyId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAclPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + String aclPolicyId = "aclPolicyId-1805591401"; + client.createAclPolicy(parent, aclPolicy, aclPolicyId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getClusterCertificateAuthorityTest() throws Exception { CertificateAuthority expectedResponse = @@ -979,6 +1665,8 @@ public void rescheduleClusterMaintenanceTest() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1067,6 +1755,8 @@ public void rescheduleClusterMaintenanceTest2() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1746,6 +2436,8 @@ public void backupClusterTest() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1827,6 +2519,8 @@ public void backupClusterTest2() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClientTest.java b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClientTest.java index d017b90388ae..ad074dafbf30 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClientTest.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClientTest.java @@ -16,6 +16,8 @@ package com.google.cloud.redis.cluster.v1beta1; +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListAclPoliciesPagedResponse; +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListAclPolicyRevisionsPagedResponse; import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse; import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupsPagedResponse; import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListClustersPagedResponse; @@ -185,6 +187,94 @@ public void listClustersExceptionTest2() throws Exception { } } + @Test + public void listAclPoliciesTest() throws Exception { + AclPolicy responsesElement = AclPolicy.newBuilder().build(); + ListAclPoliciesResponse expectedResponse = + ListAclPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAclPolicies(Arrays.asList(responsesElement)) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAclPoliciesPagedResponse pagedListResponse = client.listAclPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAclPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAclPoliciesRequest actualRequest = ((ListAclPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAclPoliciesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAclPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAclPoliciesTest2() throws Exception { + AclPolicy responsesElement = AclPolicy.newBuilder().build(); + ListAclPoliciesResponse expectedResponse = + ListAclPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAclPolicies(Arrays.asList(responsesElement)) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAclPoliciesPagedResponse pagedListResponse = client.listAclPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAclPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAclPoliciesRequest actualRequest = ((ListAclPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAclPoliciesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAclPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getClusterTest() throws Exception { Cluster expectedResponse = @@ -222,6 +312,8 @@ public void getClusterTest() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); mockCloudRedisCluster.addResponse(expectedResponse); @@ -292,6 +384,8 @@ public void getClusterTest2() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); mockCloudRedisCluster.addResponse(expectedResponse); @@ -325,6 +419,92 @@ public void getClusterExceptionTest2() throws Exception { } } + @Test + public void getAclPolicyTest() throws Exception { + AclPolicy expectedResponse = + AclPolicy.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .addAllRules(new ArrayList()) + .setEtag("etag3123477") + .addAllClusterAclPolicyAttachments(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + + AclPolicy actualResponse = client.getAclPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAclPolicyRequest actualRequest = ((GetAclPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAclPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + client.getAclPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAclPolicyTest2() throws Exception { + AclPolicy expectedResponse = + AclPolicy.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .addAllRules(new ArrayList()) + .setEtag("etag3123477") + .addAllClusterAclPolicyAttachments(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + String name = "name3373707"; + + AclPolicy actualResponse = client.getAclPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAclPolicyRequest actualRequest = ((GetAclPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAclPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + String name = "name3373707"; + client.getAclPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void updateClusterTest() throws Exception { Cluster expectedResponse = @@ -362,6 +542,8 @@ public void updateClusterTest() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -406,6 +588,60 @@ public void updateClusterExceptionTest() throws Exception { } } + @Test + public void updateAclPolicyTest() throws Exception { + AclPolicy expectedResponse = + AclPolicy.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .addAllRules(new ArrayList()) + .setEtag("etag3123477") + .addAllClusterAclPolicyAttachments(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateAclPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudRedisCluster.addResponse(resultOperation); + + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AclPolicy actualResponse = client.updateAclPolicyAsync(aclPolicy, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAclPolicyRequest actualRequest = ((UpdateAclPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(aclPolicy, actualRequest.getAclPolicy()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAclPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAclPolicyAsync(aclPolicy, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void deleteClusterTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); @@ -490,6 +726,272 @@ public void deleteClusterExceptionTest2() throws Exception { } } + @Test + public void deleteAclPolicyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAclPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudRedisCluster.addResponse(resultOperation); + + AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + + client.deleteAclPolicyAsync(name).get(); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAclPolicyRequest actualRequest = ((DeleteAclPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAclPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + client.deleteAclPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteAclPolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAclPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudRedisCluster.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteAclPolicyAsync(name).get(); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAclPolicyRequest actualRequest = ((DeleteAclPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAclPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + String name = "name3373707"; + client.deleteAclPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getAclPolicyRevisionTest() throws Exception { + AclPolicyRevision expectedResponse = + AclPolicyRevision.newBuilder() + .setName( + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + .toString()) + .setRevisionNumber(-1651923923) + .setSnapshot(AclPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllAttachedClusters(new ArrayList()) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + AclPolicyRevisionName name = + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]"); + + AclPolicyRevision actualResponse = client.getAclPolicyRevision(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAclPolicyRevisionRequest actualRequest = + ((GetAclPolicyRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAclPolicyRevisionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + AclPolicyRevisionName name = + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]"); + client.getAclPolicyRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAclPolicyRevisionTest2() throws Exception { + AclPolicyRevision expectedResponse = + AclPolicyRevision.newBuilder() + .setName( + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + .toString()) + .setRevisionNumber(-1651923923) + .setSnapshot(AclPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllAttachedClusters(new ArrayList()) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + String name = "name3373707"; + + AclPolicyRevision actualResponse = client.getAclPolicyRevision(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAclPolicyRevisionRequest actualRequest = + ((GetAclPolicyRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAclPolicyRevisionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + String name = "name3373707"; + client.getAclPolicyRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAclPolicyRevisionsTest() throws Exception { + AclPolicyRevision responsesElement = AclPolicyRevision.newBuilder().build(); + ListAclPolicyRevisionsResponse expectedResponse = + ListAclPolicyRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllAclPolicyRevisions(Arrays.asList(responsesElement)) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + AclPolicyName parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + + ListAclPolicyRevisionsPagedResponse pagedListResponse = client.listAclPolicyRevisions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAclPolicyRevisionsList().get(0), resources.get(0)); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAclPolicyRevisionsRequest actualRequest = + ((ListAclPolicyRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAclPolicyRevisionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + AclPolicyName parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + client.listAclPolicyRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAclPolicyRevisionsTest2() throws Exception { + AclPolicyRevision responsesElement = AclPolicyRevision.newBuilder().build(); + ListAclPolicyRevisionsResponse expectedResponse = + ListAclPolicyRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllAclPolicyRevisions(Arrays.asList(responsesElement)) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAclPolicyRevisionsPagedResponse pagedListResponse = client.listAclPolicyRevisions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAclPolicyRevisionsList().get(0), resources.get(0)); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAclPolicyRevisionsRequest actualRequest = + ((ListAclPolicyRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAclPolicyRevisionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAclPolicyRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void createClusterTest() throws Exception { Cluster expectedResponse = @@ -527,6 +1029,8 @@ public void createClusterTest() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -611,6 +1115,8 @@ public void createClusterTest2() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -658,6 +1164,104 @@ public void createClusterExceptionTest2() throws Exception { } } + @Test + public void createAclPolicyTest() throws Exception { + AclPolicy expectedResponse = + AclPolicy.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .addAllRules(new ArrayList()) + .setEtag("etag3123477") + .addAllClusterAclPolicyAttachments(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + String aclPolicyId = "aclPolicyId-1805591401"; + + AclPolicy actualResponse = client.createAclPolicy(parent, aclPolicy, aclPolicyId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAclPolicyRequest actualRequest = ((CreateAclPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(aclPolicy, actualRequest.getAclPolicy()); + Assert.assertEquals(aclPolicyId, actualRequest.getAclPolicyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAclPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + String aclPolicyId = "aclPolicyId-1805591401"; + client.createAclPolicy(parent, aclPolicy, aclPolicyId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAclPolicyTest2() throws Exception { + AclPolicy expectedResponse = + AclPolicy.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .addAllRules(new ArrayList()) + .setEtag("etag3123477") + .addAllClusterAclPolicyAttachments(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + String parent = "parent-995424086"; + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + String aclPolicyId = "aclPolicyId-1805591401"; + + AclPolicy actualResponse = client.createAclPolicy(parent, aclPolicy, aclPolicyId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAclPolicyRequest actualRequest = ((CreateAclPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(aclPolicy, actualRequest.getAclPolicy()); + Assert.assertEquals(aclPolicyId, actualRequest.getAclPolicyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAclPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + String parent = "parent-995424086"; + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + String aclPolicyId = "aclPolicyId-1805591401"; + client.createAclPolicy(parent, aclPolicy, aclPolicyId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getClusterCertificateAuthorityTest() throws Exception { CertificateAuthority expectedResponse = @@ -859,6 +1463,8 @@ public void rescheduleClusterMaintenanceTest() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -947,6 +1553,8 @@ public void rescheduleClusterMaintenanceTest2() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1564,6 +2172,8 @@ public void backupClusterTest() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1642,6 +2252,8 @@ public void backupClusterTest2() throws Exception { .setServerCaMode(ServerCaMode.forNumber(0)) .setServerCaPool("serverCaPool1433802429") .setRotateServerCertificate(true) + .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setAclPolicyInfo(AclPolicyInfo.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/MockCloudRedisClusterImpl.java b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/MockCloudRedisClusterImpl.java index de1bbdf7515d..41921b338f4c 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/MockCloudRedisClusterImpl.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/MockCloudRedisClusterImpl.java @@ -80,6 +80,27 @@ public void listClusters( } } + @Override + public void listAclPolicies( + ListAclPoliciesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAclPoliciesResponse) { + requests.add(request); + responseObserver.onNext(((ListAclPoliciesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListAclPolicies, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAclPoliciesResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void getCluster(GetClusterRequest request, StreamObserver responseObserver) { Object response = responses.poll(); @@ -100,6 +121,27 @@ public void getCluster(GetClusterRequest request, StreamObserver respon } } + @Override + public void getAclPolicy( + GetAclPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AclPolicy) { + requests.add(request); + responseObserver.onNext(((AclPolicy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetAclPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AclPolicy.class.getName(), + Exception.class.getName()))); + } + } + @Override public void updateCluster( UpdateClusterRequest request, StreamObserver responseObserver) { @@ -121,6 +163,27 @@ public void updateCluster( } } + @Override + public void updateAclPolicy( + UpdateAclPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateAclPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void deleteCluster( DeleteClusterRequest request, StreamObserver responseObserver) { @@ -142,6 +205,72 @@ public void deleteCluster( } } + @Override + public void deleteAclPolicy( + DeleteAclPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteAclPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAclPolicyRevision( + GetAclPolicyRevisionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AclPolicyRevision) { + requests.add(request); + responseObserver.onNext(((AclPolicyRevision) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetAclPolicyRevision, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + AclPolicyRevision.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAclPolicyRevisions( + ListAclPolicyRevisionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAclPolicyRevisionsResponse) { + requests.add(request); + responseObserver.onNext(((ListAclPolicyRevisionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListAclPolicyRevisions, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListAclPolicyRevisionsResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void createCluster( CreateClusterRequest request, StreamObserver responseObserver) { @@ -163,6 +292,27 @@ public void createCluster( } } + @Override + public void createAclPolicy( + CreateAclPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AclPolicy) { + requests.add(request); + responseObserver.onNext(((AclPolicy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateAclPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AclPolicy.class.getName(), + Exception.class.getName()))); + } + } + @Override public void getClusterCertificateAuthority( GetClusterCertificateAuthorityRequest request, diff --git a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterGrpc.java b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterGrpc.java index 8d5098a6539b..d8e9bdea9f50 100644 --- a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterGrpc.java +++ b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterGrpc.java @@ -91,6 +91,53 @@ private CloudRedisClusterGrpc() {} return getListClustersMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest, + com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse> + getListAclPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAclPolicies", + requestType = com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest.class, + responseType = com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest, + com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse> + getListAclPoliciesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest, + com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse> + getListAclPoliciesMethod; + if ((getListAclPoliciesMethod = CloudRedisClusterGrpc.getListAclPoliciesMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getListAclPoliciesMethod = CloudRedisClusterGrpc.getListAclPoliciesMethod) == null) { + CloudRedisClusterGrpc.getListAclPoliciesMethod = + getListAclPoliciesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAclPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("ListAclPolicies")) + .build(); + } + } + } + return getListAclPoliciesMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.redis.cluster.v1.GetClusterRequest, com.google.cloud.redis.cluster.v1.Cluster> @@ -137,6 +184,52 @@ private CloudRedisClusterGrpc() {} return getGetClusterMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.GetAclPolicyRequest, + com.google.cloud.redis.cluster.v1.AclPolicy> + getGetAclPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAclPolicy", + requestType = com.google.cloud.redis.cluster.v1.GetAclPolicyRequest.class, + responseType = com.google.cloud.redis.cluster.v1.AclPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.GetAclPolicyRequest, + com.google.cloud.redis.cluster.v1.AclPolicy> + getGetAclPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.GetAclPolicyRequest, + com.google.cloud.redis.cluster.v1.AclPolicy> + getGetAclPolicyMethod; + if ((getGetAclPolicyMethod = CloudRedisClusterGrpc.getGetAclPolicyMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getGetAclPolicyMethod = CloudRedisClusterGrpc.getGetAclPolicyMethod) == null) { + CloudRedisClusterGrpc.getGetAclPolicyMethod = + getGetAclPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAclPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.GetAclPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.AclPolicy.getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("GetAclPolicy")) + .build(); + } + } + } + return getGetAclPolicyMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.redis.cluster.v1.UpdateClusterRequest, com.google.longrunning.Operation> getUpdateClusterMethod; @@ -181,6 +274,52 @@ private CloudRedisClusterGrpc() {} return getUpdateClusterMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest, + com.google.longrunning.Operation> + getUpdateAclPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAclPolicy", + requestType = com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest, + com.google.longrunning.Operation> + getUpdateAclPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest, + com.google.longrunning.Operation> + getUpdateAclPolicyMethod; + if ((getUpdateAclPolicyMethod = CloudRedisClusterGrpc.getUpdateAclPolicyMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getUpdateAclPolicyMethod = CloudRedisClusterGrpc.getUpdateAclPolicyMethod) == null) { + CloudRedisClusterGrpc.getUpdateAclPolicyMethod = + getUpdateAclPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAclPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("UpdateAclPolicy")) + .build(); + } + } + } + return getUpdateAclPolicyMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.redis.cluster.v1.DeleteClusterRequest, com.google.longrunning.Operation> getDeleteClusterMethod; @@ -225,6 +364,153 @@ private CloudRedisClusterGrpc() {} return getDeleteClusterMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest, + com.google.longrunning.Operation> + getDeleteAclPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAclPolicy", + requestType = com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest, + com.google.longrunning.Operation> + getDeleteAclPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest, + com.google.longrunning.Operation> + getDeleteAclPolicyMethod; + if ((getDeleteAclPolicyMethod = CloudRedisClusterGrpc.getDeleteAclPolicyMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getDeleteAclPolicyMethod = CloudRedisClusterGrpc.getDeleteAclPolicyMethod) == null) { + CloudRedisClusterGrpc.getDeleteAclPolicyMethod = + getDeleteAclPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAclPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("DeleteAclPolicy")) + .build(); + } + } + } + return getDeleteAclPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest, + com.google.cloud.redis.cluster.v1.AclPolicyRevision> + getGetAclPolicyRevisionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAclPolicyRevision", + requestType = com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest.class, + responseType = com.google.cloud.redis.cluster.v1.AclPolicyRevision.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest, + com.google.cloud.redis.cluster.v1.AclPolicyRevision> + getGetAclPolicyRevisionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest, + com.google.cloud.redis.cluster.v1.AclPolicyRevision> + getGetAclPolicyRevisionMethod; + if ((getGetAclPolicyRevisionMethod = CloudRedisClusterGrpc.getGetAclPolicyRevisionMethod) + == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getGetAclPolicyRevisionMethod = CloudRedisClusterGrpc.getGetAclPolicyRevisionMethod) + == null) { + CloudRedisClusterGrpc.getGetAclPolicyRevisionMethod = + getGetAclPolicyRevisionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetAclPolicyRevision")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.AclPolicyRevision + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("GetAclPolicyRevision")) + .build(); + } + } + } + return getGetAclPolicyRevisionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest, + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse> + getListAclPolicyRevisionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAclPolicyRevisions", + requestType = com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest.class, + responseType = com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest, + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse> + getListAclPolicyRevisionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest, + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse> + getListAclPolicyRevisionsMethod; + if ((getListAclPolicyRevisionsMethod = CloudRedisClusterGrpc.getListAclPolicyRevisionsMethod) + == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getListAclPolicyRevisionsMethod = + CloudRedisClusterGrpc.getListAclPolicyRevisionsMethod) + == null) { + CloudRedisClusterGrpc.getListAclPolicyRevisionsMethod = + getListAclPolicyRevisionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListAclPolicyRevisions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("ListAclPolicyRevisions")) + .build(); + } + } + } + return getListAclPolicyRevisionsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.redis.cluster.v1.CreateClusterRequest, com.google.longrunning.Operation> getCreateClusterMethod; @@ -269,6 +555,52 @@ private CloudRedisClusterGrpc() {} return getCreateClusterMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest, + com.google.cloud.redis.cluster.v1.AclPolicy> + getCreateAclPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAclPolicy", + requestType = com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest.class, + responseType = com.google.cloud.redis.cluster.v1.AclPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest, + com.google.cloud.redis.cluster.v1.AclPolicy> + getCreateAclPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest, + com.google.cloud.redis.cluster.v1.AclPolicy> + getCreateAclPolicyMethod; + if ((getCreateAclPolicyMethod = CloudRedisClusterGrpc.getCreateAclPolicyMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getCreateAclPolicyMethod = CloudRedisClusterGrpc.getCreateAclPolicyMethod) == null) { + CloudRedisClusterGrpc.getCreateAclPolicyMethod = + getCreateAclPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAclPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.AclPolicy.getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("CreateAclPolicy")) + .build(); + } + } + } + return getCreateAclPolicyMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest, com.google.cloud.redis.cluster.v1.CertificateAuthority> @@ -754,61 +1086,432 @@ private CloudRedisClusterGrpc() {} return getBackupClusterMethod; } - /** Creates a new async stub that supports all call types for the service */ - public static CloudRedisClusterStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudRedisClusterStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudRedisClusterStub(channel, callOptions); - } - }; - return CloudRedisClusterStub.newStub(factory, channel); - } - - /** Creates a new blocking-style stub that supports all types of calls on the service */ - public static CloudRedisClusterBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudRedisClusterBlockingV2Stub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudRedisClusterBlockingV2Stub(channel, callOptions); - } - }; - return CloudRedisClusterBlockingV2Stub.newStub(factory, channel); - } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest, + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse> + getListTokenAuthUsersMethod; - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static CloudRedisClusterBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudRedisClusterBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudRedisClusterBlockingStub(channel, callOptions); - } - }; - return CloudRedisClusterBlockingStub.newStub(factory, channel); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTokenAuthUsers", + requestType = com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest.class, + responseType = com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest, + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse> + getListTokenAuthUsersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest, + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse> + getListTokenAuthUsersMethod; + if ((getListTokenAuthUsersMethod = CloudRedisClusterGrpc.getListTokenAuthUsersMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getListTokenAuthUsersMethod = CloudRedisClusterGrpc.getListTokenAuthUsersMethod) + == null) { + CloudRedisClusterGrpc.getListTokenAuthUsersMethod = + getListTokenAuthUsersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTokenAuthUsers")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("ListTokenAuthUsers")) + .build(); + } + } + } + return getListTokenAuthUsersMethod; } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static CloudRedisClusterFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudRedisClusterFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudRedisClusterFutureStub(channel, callOptions); - } - }; - return CloudRedisClusterFutureStub.newStub(factory, channel); - } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest, + com.google.cloud.redis.cluster.v1.TokenAuthUser> + getGetTokenAuthUserMethod; - /** + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTokenAuthUser", + requestType = com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest.class, + responseType = com.google.cloud.redis.cluster.v1.TokenAuthUser.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest, + com.google.cloud.redis.cluster.v1.TokenAuthUser> + getGetTokenAuthUserMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest, + com.google.cloud.redis.cluster.v1.TokenAuthUser> + getGetTokenAuthUserMethod; + if ((getGetTokenAuthUserMethod = CloudRedisClusterGrpc.getGetTokenAuthUserMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getGetTokenAuthUserMethod = CloudRedisClusterGrpc.getGetTokenAuthUserMethod) == null) { + CloudRedisClusterGrpc.getGetTokenAuthUserMethod = + getGetTokenAuthUserMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTokenAuthUser")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.TokenAuthUser.getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("GetTokenAuthUser")) + .build(); + } + } + } + return getGetTokenAuthUserMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.ListAuthTokensRequest, + com.google.cloud.redis.cluster.v1.ListAuthTokensResponse> + getListAuthTokensMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAuthTokens", + requestType = com.google.cloud.redis.cluster.v1.ListAuthTokensRequest.class, + responseType = com.google.cloud.redis.cluster.v1.ListAuthTokensResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.ListAuthTokensRequest, + com.google.cloud.redis.cluster.v1.ListAuthTokensResponse> + getListAuthTokensMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.ListAuthTokensRequest, + com.google.cloud.redis.cluster.v1.ListAuthTokensResponse> + getListAuthTokensMethod; + if ((getListAuthTokensMethod = CloudRedisClusterGrpc.getListAuthTokensMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getListAuthTokensMethod = CloudRedisClusterGrpc.getListAuthTokensMethod) == null) { + CloudRedisClusterGrpc.getListAuthTokensMethod = + getListAuthTokensMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAuthTokens")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.ListAuthTokensRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.ListAuthTokensResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("ListAuthTokens")) + .build(); + } + } + } + return getListAuthTokensMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.GetAuthTokenRequest, + com.google.cloud.redis.cluster.v1.AuthToken> + getGetAuthTokenMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAuthToken", + requestType = com.google.cloud.redis.cluster.v1.GetAuthTokenRequest.class, + responseType = com.google.cloud.redis.cluster.v1.AuthToken.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.GetAuthTokenRequest, + com.google.cloud.redis.cluster.v1.AuthToken> + getGetAuthTokenMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.GetAuthTokenRequest, + com.google.cloud.redis.cluster.v1.AuthToken> + getGetAuthTokenMethod; + if ((getGetAuthTokenMethod = CloudRedisClusterGrpc.getGetAuthTokenMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getGetAuthTokenMethod = CloudRedisClusterGrpc.getGetAuthTokenMethod) == null) { + CloudRedisClusterGrpc.getGetAuthTokenMethod = + getGetAuthTokenMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAuthToken")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.GetAuthTokenRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.AuthToken.getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("GetAuthToken")) + .build(); + } + } + } + return getGetAuthTokenMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest, + com.google.longrunning.Operation> + getAddTokenAuthUserMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AddTokenAuthUser", + requestType = com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest, + com.google.longrunning.Operation> + getAddTokenAuthUserMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest, + com.google.longrunning.Operation> + getAddTokenAuthUserMethod; + if ((getAddTokenAuthUserMethod = CloudRedisClusterGrpc.getAddTokenAuthUserMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getAddTokenAuthUserMethod = CloudRedisClusterGrpc.getAddTokenAuthUserMethod) == null) { + CloudRedisClusterGrpc.getAddTokenAuthUserMethod = + getAddTokenAuthUserMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AddTokenAuthUser")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("AddTokenAuthUser")) + .build(); + } + } + } + return getAddTokenAuthUserMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest, + com.google.longrunning.Operation> + getDeleteTokenAuthUserMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTokenAuthUser", + requestType = com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest, + com.google.longrunning.Operation> + getDeleteTokenAuthUserMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest, + com.google.longrunning.Operation> + getDeleteTokenAuthUserMethod; + if ((getDeleteTokenAuthUserMethod = CloudRedisClusterGrpc.getDeleteTokenAuthUserMethod) + == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getDeleteTokenAuthUserMethod = CloudRedisClusterGrpc.getDeleteTokenAuthUserMethod) + == null) { + CloudRedisClusterGrpc.getDeleteTokenAuthUserMethod = + getDeleteTokenAuthUserMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteTokenAuthUser")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("DeleteTokenAuthUser")) + .build(); + } + } + } + return getDeleteTokenAuthUserMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.AddAuthTokenRequest, com.google.longrunning.Operation> + getAddAuthTokenMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AddAuthToken", + requestType = com.google.cloud.redis.cluster.v1.AddAuthTokenRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.AddAuthTokenRequest, com.google.longrunning.Operation> + getAddAuthTokenMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.AddAuthTokenRequest, com.google.longrunning.Operation> + getAddAuthTokenMethod; + if ((getAddAuthTokenMethod = CloudRedisClusterGrpc.getAddAuthTokenMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getAddAuthTokenMethod = CloudRedisClusterGrpc.getAddAuthTokenMethod) == null) { + CloudRedisClusterGrpc.getAddAuthTokenMethod = + getAddAuthTokenMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AddAuthToken")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.AddAuthTokenRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("AddAuthToken")) + .build(); + } + } + } + return getAddAuthTokenMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest, + com.google.longrunning.Operation> + getDeleteAuthTokenMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAuthToken", + requestType = com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest, + com.google.longrunning.Operation> + getDeleteAuthTokenMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest, + com.google.longrunning.Operation> + getDeleteAuthTokenMethod; + if ((getDeleteAuthTokenMethod = CloudRedisClusterGrpc.getDeleteAuthTokenMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getDeleteAuthTokenMethod = CloudRedisClusterGrpc.getDeleteAuthTokenMethod) == null) { + CloudRedisClusterGrpc.getDeleteAuthTokenMethod = + getDeleteAuthTokenMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAuthToken")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("DeleteAuthToken")) + .build(); + } + } + } + return getDeleteAuthTokenMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static CloudRedisClusterStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudRedisClusterStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudRedisClusterStub(channel, callOptions); + } + }; + return CloudRedisClusterStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static CloudRedisClusterBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudRedisClusterBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudRedisClusterBlockingV2Stub(channel, callOptions); + } + }; + return CloudRedisClusterBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CloudRedisClusterBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudRedisClusterBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudRedisClusterBlockingStub(channel, callOptions); + } + }; + return CloudRedisClusterBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static CloudRedisClusterFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudRedisClusterFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudRedisClusterFutureStub(channel, callOptions); + } + }; + return CloudRedisClusterFutureStub.newStub(factory, channel); + } + + /** * * *
          @@ -848,6 +1551,26 @@ default void listClusters(
                     getListClustersMethod(), responseObserver);
               }
           
          +    /**
          +     *
          +     *
          +     * 
          +     * Lists all ACL policies owned by a project in either the specified
          +     * location (region) or all locations.
          +     * The location should have the following format:
          +     * * `projects/{project_id}/locations/{location_id}`
          +     * If `location_id` is specified as `-` (wildcard), then all regions
          +     * available to the project are queried, and the results are aggregated.
          +     * 
          + */ + default void listAclPolicies( + com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAclPoliciesMethod(), responseObserver); + } + /** * * @@ -861,6 +1584,20 @@ default void getCluster( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClusterMethod(), responseObserver); } + /** + * + * + *
          +     * Gets the details of a specific Redis Cluster ACL policy.
          +     * 
          + */ + default void getAclPolicy( + com.google.cloud.redis.cluster.v1.GetAclPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAclPolicyMethod(), responseObserver); + } + /** * * @@ -878,6 +1615,27 @@ default void updateCluster( getUpdateClusterMethod(), responseObserver); } + /** + * + * + *
          +     * Updates the ACL policy.
          +     * The operation applies the updated ACL policy to all of the linked clusters.
          +     * If Memorystore can apply the policy to all clusters, then the operation
          +     * returns a SUCCESS status. If Memorystore can't apply the policy to all
          +     * clusters, then to ensure eventual consistency, Memorystore uses
          +     * reconciliation to apply the policy to the failed clusters.
          +     * Completed longrunning.Operation will contain the new ACL policy object in
          +     * the response field.
          +     * 
          + */ + default void updateAclPolicy( + com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAclPolicyMethod(), responseObserver); + } + /** * * @@ -893,6 +1651,53 @@ default void deleteCluster( getDeleteClusterMethod(), responseObserver); } + /** + * + * + *
          +     * Deletes a specific ACL policy. This action will delete the ACL policy and
          +     * all the rules associated with it. An ACL policy cannot be deleted if it is
          +     * attached to a cluster.
          +     * 
          + */ + default void deleteAclPolicy( + com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAclPolicyMethod(), responseObserver); + } + + /** + * + * + *
          +     * Gets details of a specific ACL policy revision.
          +     * 
          + */ + default void getAclPolicyRevision( + com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAclPolicyRevisionMethod(), responseObserver); + } + + /** + * + * + *
          +     * Lists all ACL policy revisions in a given ACL policy.
          +     * 
          + */ + default void listAclPolicyRevisions( + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAclPolicyRevisionsMethod(), responseObserver); + } + /** * * @@ -913,6 +1718,22 @@ default void createCluster( getCreateClusterMethod(), responseObserver); } + /** + * + * + *
          +     * Creates an ACL policy.
          +     * The creation is executed synchronously and the policy is available for use
          +     * immediately after the RPC returns.
          +     * 
          + */ + default void createAclPolicy( + com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAclPolicyMethod(), responseObserver); + } + /** * * @@ -1066,11 +1887,126 @@ default void exportBackup( * needed for backup. *
          */ - default void backupCluster( - com.google.cloud.redis.cluster.v1.BackupClusterRequest request, + default void backupCluster( + com.google.cloud.redis.cluster.v1.BackupClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBackupClusterMethod(), responseObserver); + } + + /** + * + * + *
          +     * Lists all the token auth users for a token based auth enabled cluster.
          +     * 
          + */ + default void listTokenAuthUsers( + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTokenAuthUsersMethod(), responseObserver); + } + + /** + * + * + *
          +     * Gets a specific token auth user for a basic auth enabled cluster.
          +     * 
          + */ + default void getTokenAuthUser( + com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetTokenAuthUserMethod(), responseObserver); + } + + /** + * + * + *
          +     * Lists all the auth tokens for a specific token auth user.
          +     * 
          + */ + default void listAuthTokens( + com.google.cloud.redis.cluster.v1.ListAuthTokensRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAuthTokensMethod(), responseObserver); + } + + /** + * + * + *
          +     * Gets a specific auth token for a specific token auth user.
          +     * 
          + */ + default void getAuthToken( + com.google.cloud.redis.cluster.v1.GetAuthTokenRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAuthTokenMethod(), responseObserver); + } + + /** + * + * + *
          +     * Adds a token auth user for a token based auth enabled cluster.
          +     * 
          + */ + default void addTokenAuthUser( + com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAddTokenAuthUserMethod(), responseObserver); + } + + /** + * + * + *
          +     * Deletes a token auth user for a token based auth enabled cluster.
          +     * 
          + */ + default void deleteTokenAuthUser( + com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteTokenAuthUserMethod(), responseObserver); + } + + /** + * + * + *
          +     * Adds a auth token for a user of a token based auth enabled cluster.
          +     * 
          + */ + default void addAuthToken( + com.google.cloud.redis.cluster.v1.AddAuthTokenRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAddAuthTokenMethod(), responseObserver); + } + + /** + * + * + *
          +     * Removes a auth token for a user of a token based auth enabled instance.
          +     * 
          + */ + default void deleteAuthToken( + com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBackupClusterMethod(), responseObserver); + getDeleteAuthTokenMethod(), responseObserver); } } @@ -1153,6 +2089,28 @@ public void listClusters( responseObserver); } + /** + * + * + *
          +     * Lists all ACL policies owned by a project in either the specified
          +     * location (region) or all locations.
          +     * The location should have the following format:
          +     * * `projects/{project_id}/locations/{location_id}`
          +     * If `location_id` is specified as `-` (wildcard), then all regions
          +     * available to the project are queried, and the results are aggregated.
          +     * 
          + */ + public void listAclPolicies( + com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAclPoliciesMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1167,6 +2125,22 @@ public void getCluster( getChannel().newCall(getGetClusterMethod(), getCallOptions()), request, responseObserver); } + /** + * + * + *
          +     * Gets the details of a specific Redis Cluster ACL policy.
          +     * 
          + */ + public void getAclPolicy( + com.google.cloud.redis.cluster.v1.GetAclPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAclPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1186,6 +2160,29 @@ public void updateCluster( responseObserver); } + /** + * + * + *
          +     * Updates the ACL policy.
          +     * The operation applies the updated ACL policy to all of the linked clusters.
          +     * If Memorystore can apply the policy to all clusters, then the operation
          +     * returns a SUCCESS status. If Memorystore can't apply the policy to all
          +     * clusters, then to ensure eventual consistency, Memorystore uses
          +     * reconciliation to apply the policy to the failed clusters.
          +     * Completed longrunning.Operation will contain the new ACL policy object in
          +     * the response field.
          +     * 
          + */ + public void updateAclPolicy( + com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAclPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1203,6 +2200,59 @@ public void deleteCluster( responseObserver); } + /** + * + * + *
          +     * Deletes a specific ACL policy. This action will delete the ACL policy and
          +     * all the rules associated with it. An ACL policy cannot be deleted if it is
          +     * attached to a cluster.
          +     * 
          + */ + public void deleteAclPolicy( + com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAclPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Gets details of a specific ACL policy revision.
          +     * 
          + */ + public void getAclPolicyRevision( + com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAclPolicyRevisionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Lists all ACL policy revisions in a given ACL policy.
          +     * 
          + */ + public void listAclPolicyRevisions( + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAclPolicyRevisionsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1225,6 +2275,24 @@ public void createCluster( responseObserver); } + /** + * + * + *
          +     * Creates an ACL policy.
          +     * The creation is executed synchronously and the policy is available for use
          +     * immediately after the RPC returns.
          +     * 
          + */ + public void createAclPolicy( + com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAclPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1403,6 +2471,137 @@ public void backupCluster( request, responseObserver); } + + /** + * + * + *
          +     * Lists all the token auth users for a token based auth enabled cluster.
          +     * 
          + */ + public void listTokenAuthUsers( + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTokenAuthUsersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Gets a specific token auth user for a basic auth enabled cluster.
          +     * 
          + */ + public void getTokenAuthUser( + com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTokenAuthUserMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Lists all the auth tokens for a specific token auth user.
          +     * 
          + */ + public void listAuthTokens( + com.google.cloud.redis.cluster.v1.ListAuthTokensRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAuthTokensMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Gets a specific auth token for a specific token auth user.
          +     * 
          + */ + public void getAuthToken( + com.google.cloud.redis.cluster.v1.GetAuthTokenRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAuthTokenMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Adds a token auth user for a token based auth enabled cluster.
          +     * 
          + */ + public void addTokenAuthUser( + com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAddTokenAuthUserMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Deletes a token auth user for a token based auth enabled cluster.
          +     * 
          + */ + public void deleteTokenAuthUser( + com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTokenAuthUserMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Adds a auth token for a user of a token based auth enabled cluster.
          +     * 
          + */ + public void addAuthToken( + com.google.cloud.redis.cluster.v1.AddAuthTokenRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAddAuthTokenMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Removes a auth token for a user of a token based auth enabled instance.
          +     * 
          + */ + public void deleteAuthToken( + com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAuthTokenMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -1455,6 +2654,25 @@ public com.google.cloud.redis.cluster.v1.ListClustersResponse listClusters( getChannel(), getListClustersMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Lists all ACL policies owned by a project in either the specified
          +     * location (region) or all locations.
          +     * The location should have the following format:
          +     * * `projects/{project_id}/locations/{location_id}`
          +     * If `location_id` is specified as `-` (wildcard), then all regions
          +     * available to the project are queried, and the results are aggregated.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse listAclPolicies( + com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAclPoliciesMethod(), getCallOptions(), request); + } + /** * * @@ -1469,6 +2687,20 @@ public com.google.cloud.redis.cluster.v1.Cluster getCluster( getChannel(), getGetClusterMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Gets the details of a specific Redis Cluster ACL policy.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1.AclPolicy getAclPolicy( + com.google.cloud.redis.cluster.v1.GetAclPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAclPolicyMethod(), getCallOptions(), request); + } + /** * * @@ -1486,6 +2718,27 @@ public com.google.longrunning.Operation updateCluster( getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Updates the ACL policy.
          +     * The operation applies the updated ACL policy to all of the linked clusters.
          +     * If Memorystore can apply the policy to all clusters, then the operation
          +     * returns a SUCCESS status. If Memorystore can't apply the policy to all
          +     * clusters, then to ensure eventual consistency, Memorystore uses
          +     * reconciliation to apply the policy to the failed clusters.
          +     * Completed longrunning.Operation will contain the new ACL policy object in
          +     * the response field.
          +     * 
          + */ + public com.google.longrunning.Operation updateAclPolicy( + com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateAclPolicyMethod(), getCallOptions(), request); + } + /** * * @@ -1494,11 +2747,55 @@ public com.google.longrunning.Operation updateCluster( * deleted. * */ - public com.google.longrunning.Operation deleteCluster( - com.google.cloud.redis.cluster.v1.DeleteClusterRequest request) + public com.google.longrunning.Operation deleteCluster( + com.google.cloud.redis.cluster.v1.DeleteClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Deletes a specific ACL policy. This action will delete the ACL policy and
          +     * all the rules associated with it. An ACL policy cannot be deleted if it is
          +     * attached to a cluster.
          +     * 
          + */ + public com.google.longrunning.Operation deleteAclPolicy( + com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteAclPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Gets details of a specific ACL policy revision.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1.AclPolicyRevision getAclPolicyRevision( + com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAclPolicyRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Lists all ACL policy revisions in a given ACL policy.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse listAclPolicyRevisions( + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest request) throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeleteClusterMethod(), getCallOptions(), request); + getChannel(), getListAclPolicyRevisionsMethod(), getCallOptions(), request); } /** @@ -1521,6 +2818,22 @@ public com.google.longrunning.Operation createCluster( getChannel(), getCreateClusterMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Creates an ACL policy.
          +     * The creation is executed synchronously and the policy is available for use
          +     * immediately after the RPC returns.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1.AclPolicy createAclPolicy( + com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateAclPolicyMethod(), getCallOptions(), request); + } + /** * * @@ -1678,6 +2991,118 @@ public com.google.longrunning.Operation backupCluster( return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBackupClusterMethod(), getCallOptions(), request); } + + /** + * + * + *
          +     * Lists all the token auth users for a token based auth enabled cluster.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse listTokenAuthUsers( + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListTokenAuthUsersMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Gets a specific token auth user for a basic auth enabled cluster.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1.TokenAuthUser getTokenAuthUser( + com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetTokenAuthUserMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Lists all the auth tokens for a specific token auth user.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1.ListAuthTokensResponse listAuthTokens( + com.google.cloud.redis.cluster.v1.ListAuthTokensRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAuthTokensMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Gets a specific auth token for a specific token auth user.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1.AuthToken getAuthToken( + com.google.cloud.redis.cluster.v1.GetAuthTokenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAuthTokenMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Adds a token auth user for a token based auth enabled cluster.
          +     * 
          + */ + public com.google.longrunning.Operation addTokenAuthUser( + com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getAddTokenAuthUserMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Deletes a token auth user for a token based auth enabled cluster.
          +     * 
          + */ + public com.google.longrunning.Operation deleteTokenAuthUser( + com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteTokenAuthUserMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Adds a auth token for a user of a token based auth enabled cluster.
          +     * 
          + */ + public com.google.longrunning.Operation addAuthToken( + com.google.cloud.redis.cluster.v1.AddAuthTokenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getAddAuthTokenMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Removes a auth token for a user of a token based auth enabled instance.
          +     * 
          + */ + public com.google.longrunning.Operation deleteAuthToken( + com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteAuthTokenMethod(), getCallOptions(), request); + } } /** @@ -1729,6 +3154,24 @@ public com.google.cloud.redis.cluster.v1.ListClustersResponse listClusters( getChannel(), getListClustersMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Lists all ACL policies owned by a project in either the specified
          +     * location (region) or all locations.
          +     * The location should have the following format:
          +     * * `projects/{project_id}/locations/{location_id}`
          +     * If `location_id` is specified as `-` (wildcard), then all regions
          +     * available to the project are queried, and the results are aggregated.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse listAclPolicies( + com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAclPoliciesMethod(), getCallOptions(), request); + } + /** * * @@ -1742,6 +3185,19 @@ public com.google.cloud.redis.cluster.v1.Cluster getCluster( getChannel(), getGetClusterMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Gets the details of a specific Redis Cluster ACL policy.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1.AclPolicy getAclPolicy( + com.google.cloud.redis.cluster.v1.GetAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAclPolicyMethod(), getCallOptions(), request); + } + /** * * @@ -1758,6 +3214,26 @@ public com.google.longrunning.Operation updateCluster( getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Updates the ACL policy.
          +     * The operation applies the updated ACL policy to all of the linked clusters.
          +     * If Memorystore can apply the policy to all clusters, then the operation
          +     * returns a SUCCESS status. If Memorystore can't apply the policy to all
          +     * clusters, then to ensure eventual consistency, Memorystore uses
          +     * reconciliation to apply the policy to the failed clusters.
          +     * Completed longrunning.Operation will contain the new ACL policy object in
          +     * the response field.
          +     * 
          + */ + public com.google.longrunning.Operation updateAclPolicy( + com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAclPolicyMethod(), getCallOptions(), request); + } + /** * * @@ -1772,6 +3248,47 @@ public com.google.longrunning.Operation deleteCluster( getChannel(), getDeleteClusterMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Deletes a specific ACL policy. This action will delete the ACL policy and
          +     * all the rules associated with it. An ACL policy cannot be deleted if it is
          +     * attached to a cluster.
          +     * 
          + */ + public com.google.longrunning.Operation deleteAclPolicy( + com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAclPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Gets details of a specific ACL policy revision.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1.AclPolicyRevision getAclPolicyRevision( + com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAclPolicyRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Lists all ACL policy revisions in a given ACL policy.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse listAclPolicyRevisions( + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAclPolicyRevisionsMethod(), getCallOptions(), request); + } + /** * * @@ -1791,6 +3308,21 @@ public com.google.longrunning.Operation createCluster( getChannel(), getCreateClusterMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Creates an ACL policy.
          +     * The creation is executed synchronously and the policy is available for use
          +     * immediately after the RPC returns.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1.AclPolicy createAclPolicy( + com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAclPolicyMethod(), getCallOptions(), request); + } + /** * * @@ -1898,47 +3430,151 @@ public com.google.cloud.redis.cluster.v1.Backup getBackup( * Deletes a specific backup. * */ - public com.google.longrunning.Operation deleteBackup( - com.google.cloud.redis.cluster.v1.DeleteBackupRequest request) { + public com.google.longrunning.Operation deleteBackup( + com.google.cloud.redis.cluster.v1.DeleteBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Exports a specific backup to a customer target Cloud Storage URI.
          +     * 
          + */ + public com.google.longrunning.Operation exportBackup( + com.google.cloud.redis.cluster.v1.ExportBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Backup Redis Cluster.
          +     * If this is the first time a backup is being created, a backup collection
          +     * will be created at the backend, and this backup belongs to this collection.
          +     * Both collection and backup will have a resource name. Backup will be
          +     * executed for each shard. A replica (primary if nonHA) will be selected to
          +     * perform the execution. Backup call will be rejected if there is an ongoing
          +     * backup or update operation. Be aware that during preview, if the cluster's
          +     * internal software version is too old, critical update will be performed
          +     * before actual backup. Once the internal software version is updated to the
          +     * minimum version required by the backup feature, subsequent backups will not
          +     * require critical update. After preview, there will be no critical update
          +     * needed for backup.
          +     * 
          + */ + public com.google.longrunning.Operation backupCluster( + com.google.cloud.redis.cluster.v1.BackupClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBackupClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Lists all the token auth users for a token based auth enabled cluster.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse listTokenAuthUsers( + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTokenAuthUsersMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Gets a specific token auth user for a basic auth enabled cluster.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1.TokenAuthUser getTokenAuthUser( + com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTokenAuthUserMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Lists all the auth tokens for a specific token auth user.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1.ListAuthTokensResponse listAuthTokens( + com.google.cloud.redis.cluster.v1.ListAuthTokensRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAuthTokensMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Gets a specific auth token for a specific token auth user.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1.AuthToken getAuthToken( + com.google.cloud.redis.cluster.v1.GetAuthTokenRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAuthTokenMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Adds a token auth user for a token based auth enabled cluster.
          +     * 
          + */ + public com.google.longrunning.Operation addTokenAuthUser( + com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAddTokenAuthUserMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Deletes a token auth user for a token based auth enabled cluster.
          +     * 
          + */ + public com.google.longrunning.Operation deleteTokenAuthUser( + com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteBackupMethod(), getCallOptions(), request); + getChannel(), getDeleteTokenAuthUserMethod(), getCallOptions(), request); } /** * * *
          -     * Exports a specific backup to a customer target Cloud Storage URI.
          +     * Adds a auth token for a user of a token based auth enabled cluster.
                * 
          */ - public com.google.longrunning.Operation exportBackup( - com.google.cloud.redis.cluster.v1.ExportBackupRequest request) { + public com.google.longrunning.Operation addAuthToken( + com.google.cloud.redis.cluster.v1.AddAuthTokenRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExportBackupMethod(), getCallOptions(), request); + getChannel(), getAddAuthTokenMethod(), getCallOptions(), request); } /** * * *
          -     * Backup Redis Cluster.
          -     * If this is the first time a backup is being created, a backup collection
          -     * will be created at the backend, and this backup belongs to this collection.
          -     * Both collection and backup will have a resource name. Backup will be
          -     * executed for each shard. A replica (primary if nonHA) will be selected to
          -     * perform the execution. Backup call will be rejected if there is an ongoing
          -     * backup or update operation. Be aware that during preview, if the cluster's
          -     * internal software version is too old, critical update will be performed
          -     * before actual backup. Once the internal software version is updated to the
          -     * minimum version required by the backup feature, subsequent backups will not
          -     * require critical update. After preview, there will be no critical update
          -     * needed for backup.
          +     * Removes a auth token for a user of a token based auth enabled instance.
                * 
          */ - public com.google.longrunning.Operation backupCluster( - com.google.cloud.redis.cluster.v1.BackupClusterRequest request) { + public com.google.longrunning.Operation deleteAuthToken( + com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBackupClusterMethod(), getCallOptions(), request); + getChannel(), getDeleteAuthTokenMethod(), getCallOptions(), request); } } @@ -1991,6 +3627,25 @@ protected CloudRedisClusterFutureStub build( getChannel().newCall(getListClustersMethod(), getCallOptions()), request); } + /** + * + * + *
          +     * Lists all ACL policies owned by a project in either the specified
          +     * location (region) or all locations.
          +     * The location should have the following format:
          +     * * `projects/{project_id}/locations/{location_id}`
          +     * If `location_id` is specified as `-` (wildcard), then all regions
          +     * available to the project are queried, and the results are aggregated.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse> + listAclPolicies(com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAclPoliciesMethod(), getCallOptions()), request); + } + /** * * @@ -2005,6 +3660,20 @@ protected CloudRedisClusterFutureStub build( getChannel().newCall(getGetClusterMethod(), getCallOptions()), request); } + /** + * + * + *
          +     * Gets the details of a specific Redis Cluster ACL policy.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.cluster.v1.AclPolicy> + getAclPolicy(com.google.cloud.redis.cluster.v1.GetAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAclPolicyMethod(), getCallOptions()), request); + } + /** * * @@ -2021,6 +3690,26 @@ protected CloudRedisClusterFutureStub build( getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request); } + /** + * + * + *
          +     * Updates the ACL policy.
          +     * The operation applies the updated ACL policy to all of the linked clusters.
          +     * If Memorystore can apply the policy to all clusters, then the operation
          +     * returns a SUCCESS status. If Memorystore can't apply the policy to all
          +     * clusters, then to ensure eventual consistency, Memorystore uses
          +     * reconciliation to apply the policy to the failed clusters.
          +     * Completed longrunning.Operation will contain the new ACL policy object in
          +     * the response field.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + updateAclPolicy(com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAclPolicyMethod(), getCallOptions()), request); + } + /** * * @@ -2035,6 +3724,51 @@ protected CloudRedisClusterFutureStub build( getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), request); } + /** + * + * + *
          +     * Deletes a specific ACL policy. This action will delete the ACL policy and
          +     * all the rules associated with it. An ACL policy cannot be deleted if it is
          +     * attached to a cluster.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + deleteAclPolicy(com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAclPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Gets details of a specific ACL policy revision.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.cluster.v1.AclPolicyRevision> + getAclPolicyRevision( + com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAclPolicyRevisionMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Lists all ACL policy revisions in a given ACL policy.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse> + listAclPolicyRevisions( + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAclPolicyRevisionsMethod(), getCallOptions()), request); + } + /** * * @@ -2054,6 +3788,22 @@ protected CloudRedisClusterFutureStub build( getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request); } + /** + * + * + *
          +     * Creates an ACL policy.
          +     * The creation is executed synchronously and the policy is available for use
          +     * immediately after the RPC returns.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.cluster.v1.AclPolicy> + createAclPolicy(com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAclPolicyMethod(), getCallOptions()), request); + } + /** * * @@ -2211,23 +3961,146 @@ protected CloudRedisClusterFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBackupClusterMethod(), getCallOptions()), request); } + + /** + * + * + *
          +     * Lists all the token auth users for a token based auth enabled cluster.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse> + listTokenAuthUsers(com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTokenAuthUsersMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Gets a specific token auth user for a basic auth enabled cluster.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.cluster.v1.TokenAuthUser> + getTokenAuthUser(com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTokenAuthUserMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Lists all the auth tokens for a specific token auth user.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.cluster.v1.ListAuthTokensResponse> + listAuthTokens(com.google.cloud.redis.cluster.v1.ListAuthTokensRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAuthTokensMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Gets a specific auth token for a specific token auth user.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.cluster.v1.AuthToken> + getAuthToken(com.google.cloud.redis.cluster.v1.GetAuthTokenRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAuthTokenMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Adds a token auth user for a token based auth enabled cluster.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + addTokenAuthUser(com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAddTokenAuthUserMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Deletes a token auth user for a token based auth enabled cluster.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + deleteTokenAuthUser(com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteTokenAuthUserMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Adds a auth token for a user of a token based auth enabled cluster.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + addAuthToken(com.google.cloud.redis.cluster.v1.AddAuthTokenRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAddAuthTokenMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Removes a auth token for a user of a token based auth enabled instance.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + deleteAuthToken(com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAuthTokenMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_CLUSTERS = 0; - private static final int METHODID_GET_CLUSTER = 1; - private static final int METHODID_UPDATE_CLUSTER = 2; - private static final int METHODID_DELETE_CLUSTER = 3; - private static final int METHODID_CREATE_CLUSTER = 4; - private static final int METHODID_GET_CLUSTER_CERTIFICATE_AUTHORITY = 5; - private static final int METHODID_GET_SHARED_REGIONAL_CERTIFICATE_AUTHORITY = 6; - private static final int METHODID_RESCHEDULE_CLUSTER_MAINTENANCE = 7; - private static final int METHODID_LIST_BACKUP_COLLECTIONS = 8; - private static final int METHODID_GET_BACKUP_COLLECTION = 9; - private static final int METHODID_LIST_BACKUPS = 10; - private static final int METHODID_GET_BACKUP = 11; - private static final int METHODID_DELETE_BACKUP = 12; - private static final int METHODID_EXPORT_BACKUP = 13; - private static final int METHODID_BACKUP_CLUSTER = 14; + private static final int METHODID_LIST_ACL_POLICIES = 1; + private static final int METHODID_GET_CLUSTER = 2; + private static final int METHODID_GET_ACL_POLICY = 3; + private static final int METHODID_UPDATE_CLUSTER = 4; + private static final int METHODID_UPDATE_ACL_POLICY = 5; + private static final int METHODID_DELETE_CLUSTER = 6; + private static final int METHODID_DELETE_ACL_POLICY = 7; + private static final int METHODID_GET_ACL_POLICY_REVISION = 8; + private static final int METHODID_LIST_ACL_POLICY_REVISIONS = 9; + private static final int METHODID_CREATE_CLUSTER = 10; + private static final int METHODID_CREATE_ACL_POLICY = 11; + private static final int METHODID_GET_CLUSTER_CERTIFICATE_AUTHORITY = 12; + private static final int METHODID_GET_SHARED_REGIONAL_CERTIFICATE_AUTHORITY = 13; + private static final int METHODID_RESCHEDULE_CLUSTER_MAINTENANCE = 14; + private static final int METHODID_LIST_BACKUP_COLLECTIONS = 15; + private static final int METHODID_GET_BACKUP_COLLECTION = 16; + private static final int METHODID_LIST_BACKUPS = 17; + private static final int METHODID_GET_BACKUP = 18; + private static final int METHODID_DELETE_BACKUP = 19; + private static final int METHODID_EXPORT_BACKUP = 20; + private static final int METHODID_BACKUP_CLUSTER = 21; + private static final int METHODID_LIST_TOKEN_AUTH_USERS = 22; + private static final int METHODID_GET_TOKEN_AUTH_USER = 23; + private static final int METHODID_LIST_AUTH_TOKENS = 24; + private static final int METHODID_GET_AUTH_TOKEN = 25; + private static final int METHODID_ADD_TOKEN_AUTH_USER = 26; + private static final int METHODID_DELETE_TOKEN_AUTH_USER = 27; + private static final int METHODID_ADD_AUTH_TOKEN = 28; + private static final int METHODID_DELETE_AUTH_TOKEN = 29; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2252,27 +4125,69 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_ACL_POLICIES: + serviceImpl.listAclPolicies( + (com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse>) + responseObserver); + break; case METHODID_GET_CLUSTER: serviceImpl.getCluster( (com.google.cloud.redis.cluster.v1.GetClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_ACL_POLICY: + serviceImpl.getAclPolicy( + (com.google.cloud.redis.cluster.v1.GetAclPolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_UPDATE_CLUSTER: serviceImpl.updateCluster( (com.google.cloud.redis.cluster.v1.UpdateClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_ACL_POLICY: + serviceImpl.updateAclPolicy( + (com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_DELETE_CLUSTER: serviceImpl.deleteCluster( (com.google.cloud.redis.cluster.v1.DeleteClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_DELETE_ACL_POLICY: + serviceImpl.deleteAclPolicy( + (com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ACL_POLICY_REVISION: + serviceImpl.getAclPolicyRevision( + (com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_ACL_POLICY_REVISIONS: + serviceImpl.listAclPolicyRevisions( + (com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse>) + responseObserver); + break; case METHODID_CREATE_CLUSTER: serviceImpl.createCluster( (com.google.cloud.redis.cluster.v1.CreateClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_ACL_POLICY: + serviceImpl.createAclPolicy( + (com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_GET_CLUSTER_CERTIFICATE_AUTHORITY: serviceImpl.getClusterCertificateAuthority( (com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest) request, @@ -2332,6 +4247,52 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.redis.cluster.v1.BackupClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_TOKEN_AUTH_USERS: + serviceImpl.listTokenAuthUsers( + (com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse>) + responseObserver); + break; + case METHODID_GET_TOKEN_AUTH_USER: + serviceImpl.getTokenAuthUser( + (com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_AUTH_TOKENS: + serviceImpl.listAuthTokens( + (com.google.cloud.redis.cluster.v1.ListAuthTokensRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.redis.cluster.v1.ListAuthTokensResponse>) + responseObserver); + break; + case METHODID_GET_AUTH_TOKEN: + serviceImpl.getAuthToken( + (com.google.cloud.redis.cluster.v1.GetAuthTokenRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_ADD_TOKEN_AUTH_USER: + serviceImpl.addTokenAuthUser( + (com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_TOKEN_AUTH_USER: + serviceImpl.deleteTokenAuthUser( + (com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ADD_AUTH_TOKEN: + serviceImpl.addAuthToken( + (com.google.cloud.redis.cluster.v1.AddAuthTokenRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_AUTH_TOKEN: + serviceImpl.deleteAuthToken( + (com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -2357,30 +4318,76 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.redis.cluster.v1.ListClustersRequest, com.google.cloud.redis.cluster.v1.ListClustersResponse>( service, METHODID_LIST_CLUSTERS))) + .addMethod( + getListAclPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest, + com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse>( + service, METHODID_LIST_ACL_POLICIES))) .addMethod( getGetClusterMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.redis.cluster.v1.GetClusterRequest, com.google.cloud.redis.cluster.v1.Cluster>(service, METHODID_GET_CLUSTER))) + .addMethod( + getGetAclPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1.GetAclPolicyRequest, + com.google.cloud.redis.cluster.v1.AclPolicy>(service, METHODID_GET_ACL_POLICY))) .addMethod( getUpdateClusterMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.redis.cluster.v1.UpdateClusterRequest, com.google.longrunning.Operation>(service, METHODID_UPDATE_CLUSTER))) + .addMethod( + getUpdateAclPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_ACL_POLICY))) .addMethod( getDeleteClusterMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.redis.cluster.v1.DeleteClusterRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_CLUSTER))) + .addMethod( + getDeleteAclPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_ACL_POLICY))) + .addMethod( + getGetAclPolicyRevisionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest, + com.google.cloud.redis.cluster.v1.AclPolicyRevision>( + service, METHODID_GET_ACL_POLICY_REVISION))) + .addMethod( + getListAclPolicyRevisionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest, + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse>( + service, METHODID_LIST_ACL_POLICY_REVISIONS))) .addMethod( getCreateClusterMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.redis.cluster.v1.CreateClusterRequest, com.google.longrunning.Operation>(service, METHODID_CREATE_CLUSTER))) + .addMethod( + getCreateAclPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest, + com.google.cloud.redis.cluster.v1.AclPolicy>( + service, METHODID_CREATE_ACL_POLICY))) .addMethod( getGetClusterCertificateAuthorityMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2447,6 +4454,57 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.redis.cluster.v1.BackupClusterRequest, com.google.longrunning.Operation>(service, METHODID_BACKUP_CLUSTER))) + .addMethod( + getListTokenAuthUsersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest, + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse>( + service, METHODID_LIST_TOKEN_AUTH_USERS))) + .addMethod( + getGetTokenAuthUserMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest, + com.google.cloud.redis.cluster.v1.TokenAuthUser>( + service, METHODID_GET_TOKEN_AUTH_USER))) + .addMethod( + getListAuthTokensMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1.ListAuthTokensRequest, + com.google.cloud.redis.cluster.v1.ListAuthTokensResponse>( + service, METHODID_LIST_AUTH_TOKENS))) + .addMethod( + getGetAuthTokenMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1.GetAuthTokenRequest, + com.google.cloud.redis.cluster.v1.AuthToken>(service, METHODID_GET_AUTH_TOKEN))) + .addMethod( + getAddTokenAuthUserMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest, + com.google.longrunning.Operation>(service, METHODID_ADD_TOKEN_AUTH_USER))) + .addMethod( + getDeleteTokenAuthUserMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_TOKEN_AUTH_USER))) + .addMethod( + getAddAuthTokenMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1.AddAuthTokenRequest, + com.google.longrunning.Operation>(service, METHODID_ADD_AUTH_TOKEN))) + .addMethod( + getDeleteAuthTokenMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_AUTH_TOKEN))) .build(); } @@ -2499,10 +4557,17 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new CloudRedisClusterFileDescriptorSupplier()) .addMethod(getListClustersMethod()) + .addMethod(getListAclPoliciesMethod()) .addMethod(getGetClusterMethod()) + .addMethod(getGetAclPolicyMethod()) .addMethod(getUpdateClusterMethod()) + .addMethod(getUpdateAclPolicyMethod()) .addMethod(getDeleteClusterMethod()) + .addMethod(getDeleteAclPolicyMethod()) + .addMethod(getGetAclPolicyRevisionMethod()) + .addMethod(getListAclPolicyRevisionsMethod()) .addMethod(getCreateClusterMethod()) + .addMethod(getCreateAclPolicyMethod()) .addMethod(getGetClusterCertificateAuthorityMethod()) .addMethod(getGetSharedRegionalCertificateAuthorityMethod()) .addMethod(getRescheduleClusterMaintenanceMethod()) @@ -2513,6 +4578,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeleteBackupMethod()) .addMethod(getExportBackupMethod()) .addMethod(getBackupClusterMethod()) + .addMethod(getListTokenAuthUsersMethod()) + .addMethod(getGetTokenAuthUserMethod()) + .addMethod(getListAuthTokensMethod()) + .addMethod(getGetAuthTokenMethod()) + .addMethod(getAddTokenAuthUserMethod()) + .addMethod(getDeleteTokenAuthUserMethod()) + .addMethod(getAddAuthTokenMethod()) + .addMethod(getDeleteAuthTokenMethod()) .build(); } } diff --git a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterGrpc.java b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterGrpc.java index 688a0ebb7e32..3fc340c5c7ae 100644 --- a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterGrpc.java +++ b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterGrpc.java @@ -91,6 +91,53 @@ private CloudRedisClusterGrpc() {} return getListClustersMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest, + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse> + getListAclPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAclPolicies", + requestType = com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest.class, + responseType = com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest, + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse> + getListAclPoliciesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest, + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse> + getListAclPoliciesMethod; + if ((getListAclPoliciesMethod = CloudRedisClusterGrpc.getListAclPoliciesMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getListAclPoliciesMethod = CloudRedisClusterGrpc.getListAclPoliciesMethod) == null) { + CloudRedisClusterGrpc.getListAclPoliciesMethod = + getListAclPoliciesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAclPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("ListAclPolicies")) + .build(); + } + } + } + return getListAclPoliciesMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.redis.cluster.v1beta1.GetClusterRequest, com.google.cloud.redis.cluster.v1beta1.Cluster> @@ -137,6 +184,53 @@ private CloudRedisClusterGrpc() {} return getGetClusterMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest, + com.google.cloud.redis.cluster.v1beta1.AclPolicy> + getGetAclPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAclPolicy", + requestType = com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest.class, + responseType = com.google.cloud.redis.cluster.v1beta1.AclPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest, + com.google.cloud.redis.cluster.v1beta1.AclPolicy> + getGetAclPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest, + com.google.cloud.redis.cluster.v1beta1.AclPolicy> + getGetAclPolicyMethod; + if ((getGetAclPolicyMethod = CloudRedisClusterGrpc.getGetAclPolicyMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getGetAclPolicyMethod = CloudRedisClusterGrpc.getGetAclPolicyMethod) == null) { + CloudRedisClusterGrpc.getGetAclPolicyMethod = + getGetAclPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAclPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1.AclPolicy + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("GetAclPolicy")) + .build(); + } + } + } + return getGetAclPolicyMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.redis.cluster.v1beta1.UpdateClusterRequest, com.google.longrunning.Operation> @@ -183,6 +277,52 @@ private CloudRedisClusterGrpc() {} return getUpdateClusterMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest, + com.google.longrunning.Operation> + getUpdateAclPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAclPolicy", + requestType = com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest, + com.google.longrunning.Operation> + getUpdateAclPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest, + com.google.longrunning.Operation> + getUpdateAclPolicyMethod; + if ((getUpdateAclPolicyMethod = CloudRedisClusterGrpc.getUpdateAclPolicyMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getUpdateAclPolicyMethod = CloudRedisClusterGrpc.getUpdateAclPolicyMethod) == null) { + CloudRedisClusterGrpc.getUpdateAclPolicyMethod = + getUpdateAclPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAclPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("UpdateAclPolicy")) + .build(); + } + } + } + return getUpdateAclPolicyMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.redis.cluster.v1beta1.DeleteClusterRequest, com.google.longrunning.Operation> @@ -229,6 +369,153 @@ private CloudRedisClusterGrpc() {} return getDeleteClusterMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest, + com.google.longrunning.Operation> + getDeleteAclPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAclPolicy", + requestType = com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest, + com.google.longrunning.Operation> + getDeleteAclPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest, + com.google.longrunning.Operation> + getDeleteAclPolicyMethod; + if ((getDeleteAclPolicyMethod = CloudRedisClusterGrpc.getDeleteAclPolicyMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getDeleteAclPolicyMethod = CloudRedisClusterGrpc.getDeleteAclPolicyMethod) == null) { + CloudRedisClusterGrpc.getDeleteAclPolicyMethod = + getDeleteAclPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAclPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("DeleteAclPolicy")) + .build(); + } + } + } + return getDeleteAclPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision> + getGetAclPolicyRevisionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAclPolicyRevision", + requestType = com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest.class, + responseType = com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision> + getGetAclPolicyRevisionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision> + getGetAclPolicyRevisionMethod; + if ((getGetAclPolicyRevisionMethod = CloudRedisClusterGrpc.getGetAclPolicyRevisionMethod) + == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getGetAclPolicyRevisionMethod = CloudRedisClusterGrpc.getGetAclPolicyRevisionMethod) + == null) { + CloudRedisClusterGrpc.getGetAclPolicyRevisionMethod = + getGetAclPolicyRevisionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetAclPolicyRevision")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("GetAclPolicyRevision")) + .build(); + } + } + } + return getGetAclPolicyRevisionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest, + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse> + getListAclPolicyRevisionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAclPolicyRevisions", + requestType = com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest.class, + responseType = com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest, + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse> + getListAclPolicyRevisionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest, + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse> + getListAclPolicyRevisionsMethod; + if ((getListAclPolicyRevisionsMethod = CloudRedisClusterGrpc.getListAclPolicyRevisionsMethod) + == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getListAclPolicyRevisionsMethod = + CloudRedisClusterGrpc.getListAclPolicyRevisionsMethod) + == null) { + CloudRedisClusterGrpc.getListAclPolicyRevisionsMethod = + getListAclPolicyRevisionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListAclPolicyRevisions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("ListAclPolicyRevisions")) + .build(); + } + } + } + return getListAclPolicyRevisionsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest, com.google.longrunning.Operation> @@ -275,6 +562,53 @@ private CloudRedisClusterGrpc() {} return getCreateClusterMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest, + com.google.cloud.redis.cluster.v1beta1.AclPolicy> + getCreateAclPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAclPolicy", + requestType = com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest.class, + responseType = com.google.cloud.redis.cluster.v1beta1.AclPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest, + com.google.cloud.redis.cluster.v1beta1.AclPolicy> + getCreateAclPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest, + com.google.cloud.redis.cluster.v1beta1.AclPolicy> + getCreateAclPolicyMethod; + if ((getCreateAclPolicyMethod = CloudRedisClusterGrpc.getCreateAclPolicyMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getCreateAclPolicyMethod = CloudRedisClusterGrpc.getCreateAclPolicyMethod) == null) { + CloudRedisClusterGrpc.getCreateAclPolicyMethod = + getCreateAclPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAclPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1.AclPolicy + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("CreateAclPolicy")) + .build(); + } + } + } + return getCreateAclPolicyMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest, com.google.cloud.redis.cluster.v1beta1.CertificateAuthority> @@ -866,6 +1200,26 @@ default void listClusters( getListClustersMethod(), responseObserver); } + /** + * + * + *
          +     * Lists all ACL policies owned by a project in either the specified
          +     * location (region) or all locations.
          +     * The location should have the following format:
          +     * * `projects/{project_id}/locations/{location_id}`
          +     * If `location_id` is specified as `-` (wildcard), then all regions
          +     * available to the project are queried, and the results are aggregated.
          +     * 
          + */ + default void listAclPolicies( + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAclPoliciesMethod(), responseObserver); + } + /** * * @@ -880,6 +1234,21 @@ default void getCluster( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClusterMethod(), responseObserver); } + /** + * + * + *
          +     * Gets the details of a specific Redis Cluster ACL policy.
          +     * 
          + */ + default void getAclPolicy( + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAclPolicyMethod(), responseObserver); + } + /** * * @@ -897,6 +1266,27 @@ default void updateCluster( getUpdateClusterMethod(), responseObserver); } + /** + * + * + *
          +     * Updates the ACL policy.
          +     * The operation applies the updated ACL policy to all of the linked clusters.
          +     * If Memorystore can apply the policy to all clusters, then the operation
          +     * returns a SUCCESS status. If Memorystore can't apply the policy to all
          +     * clusters, then to ensure eventual consistency, Memorystore uses
          +     * reconciliation to apply the policy to the failed clusters.
          +     * Completed longrunning.Operation will contain the new ACL policy object in
          +     * the response field.
          +     * 
          + */ + default void updateAclPolicy( + com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAclPolicyMethod(), responseObserver); + } + /** * * @@ -912,6 +1302,53 @@ default void deleteCluster( getDeleteClusterMethod(), responseObserver); } + /** + * + * + *
          +     * Deletes a specific ACL policy. This action will delete the ACL policy and
          +     * all the rules associated with it. An ACL policy cannot be deleted if it is
          +     * attached to a cluster.
          +     * 
          + */ + default void deleteAclPolicy( + com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAclPolicyMethod(), responseObserver); + } + + /** + * + * + *
          +     * Gets details of a specific ACL policy revision.
          +     * 
          + */ + default void getAclPolicyRevision( + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAclPolicyRevisionMethod(), responseObserver); + } + + /** + * + * + *
          +     * Lists all ACL policy revisions in a given ACL policy.
          +     * 
          + */ + default void listAclPolicyRevisions( + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAclPolicyRevisionsMethod(), responseObserver); + } + /** * * @@ -932,6 +1369,23 @@ default void createCluster( getCreateClusterMethod(), responseObserver); } + /** + * + * + *
          +     * Creates an ACL policy.
          +     * The creation is executed synchronously and the policy is available for use
          +     * immediately after the RPC returns.
          +     * 
          + */ + default void createAclPolicy( + com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAclPolicyMethod(), responseObserver); + } + /** * * @@ -1174,6 +1628,28 @@ public void listClusters( responseObserver); } + /** + * + * + *
          +     * Lists all ACL policies owned by a project in either the specified
          +     * location (region) or all locations.
          +     * The location should have the following format:
          +     * * `projects/{project_id}/locations/{location_id}`
          +     * If `location_id` is specified as `-` (wildcard), then all regions
          +     * available to the project are queried, and the results are aggregated.
          +     * 
          + */ + public void listAclPolicies( + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAclPoliciesMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1189,6 +1665,23 @@ public void getCluster( getChannel().newCall(getGetClusterMethod(), getCallOptions()), request, responseObserver); } + /** + * + * + *
          +     * Gets the details of a specific Redis Cluster ACL policy.
          +     * 
          + */ + public void getAclPolicy( + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAclPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1208,6 +1701,29 @@ public void updateCluster( responseObserver); } + /** + * + * + *
          +     * Updates the ACL policy.
          +     * The operation applies the updated ACL policy to all of the linked clusters.
          +     * If Memorystore can apply the policy to all clusters, then the operation
          +     * returns a SUCCESS status. If Memorystore can't apply the policy to all
          +     * clusters, then to ensure eventual consistency, Memorystore uses
          +     * reconciliation to apply the policy to the failed clusters.
          +     * Completed longrunning.Operation will contain the new ACL policy object in
          +     * the response field.
          +     * 
          + */ + public void updateAclPolicy( + com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAclPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1225,6 +1741,59 @@ public void deleteCluster( responseObserver); } + /** + * + * + *
          +     * Deletes a specific ACL policy. This action will delete the ACL policy and
          +     * all the rules associated with it. An ACL policy cannot be deleted if it is
          +     * attached to a cluster.
          +     * 
          + */ + public void deleteAclPolicy( + com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAclPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Gets details of a specific ACL policy revision.
          +     * 
          + */ + public void getAclPolicyRevision( + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAclPolicyRevisionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Lists all ACL policy revisions in a given ACL policy.
          +     * 
          + */ + public void listAclPolicyRevisions( + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAclPolicyRevisionsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1247,6 +1816,25 @@ public void createCluster( responseObserver); } + /** + * + * + *
          +     * Creates an ACL policy.
          +     * The creation is executed synchronously and the policy is available for use
          +     * immediately after the RPC returns.
          +     * 
          + */ + public void createAclPolicy( + com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAclPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1479,6 +2067,25 @@ public com.google.cloud.redis.cluster.v1beta1.ListClustersResponse listClusters( getChannel(), getListClustersMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Lists all ACL policies owned by a project in either the specified
          +     * location (region) or all locations.
          +     * The location should have the following format:
          +     * * `projects/{project_id}/locations/{location_id}`
          +     * If `location_id` is specified as `-` (wildcard), then all regions
          +     * available to the project are queried, and the results are aggregated.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse listAclPolicies( + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAclPoliciesMethod(), getCallOptions(), request); + } + /** * * @@ -1493,6 +2100,20 @@ public com.google.cloud.redis.cluster.v1beta1.Cluster getCluster( getChannel(), getGetClusterMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Gets the details of a specific Redis Cluster ACL policy.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicy getAclPolicy( + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAclPolicyMethod(), getCallOptions(), request); + } + /** * * @@ -1510,6 +2131,27 @@ public com.google.longrunning.Operation updateCluster( getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Updates the ACL policy.
          +     * The operation applies the updated ACL policy to all of the linked clusters.
          +     * If Memorystore can apply the policy to all clusters, then the operation
          +     * returns a SUCCESS status. If Memorystore can't apply the policy to all
          +     * clusters, then to ensure eventual consistency, Memorystore uses
          +     * reconciliation to apply the policy to the failed clusters.
          +     * Completed longrunning.Operation will contain the new ACL policy object in
          +     * the response field.
          +     * 
          + */ + public com.google.longrunning.Operation updateAclPolicy( + com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateAclPolicyMethod(), getCallOptions(), request); + } + /** * * @@ -1525,6 +2167,51 @@ public com.google.longrunning.Operation deleteCluster( getChannel(), getDeleteClusterMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Deletes a specific ACL policy. This action will delete the ACL policy and
          +     * all the rules associated with it. An ACL policy cannot be deleted if it is
          +     * attached to a cluster.
          +     * 
          + */ + public com.google.longrunning.Operation deleteAclPolicy( + com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteAclPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Gets details of a specific ACL policy revision.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision getAclPolicyRevision( + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAclPolicyRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Lists all ACL policy revisions in a given ACL policy.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse + listAclPolicyRevisions( + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAclPolicyRevisionsMethod(), getCallOptions(), request); + } + /** * * @@ -1545,6 +2232,22 @@ public com.google.longrunning.Operation createCluster( getChannel(), getCreateClusterMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Creates an ACL policy.
          +     * The creation is executed synchronously and the policy is available for use
          +     * immediately after the RPC returns.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicy createAclPolicy( + com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateAclPolicyMethod(), getCallOptions(), request); + } + /** * * @@ -1757,6 +2460,24 @@ public com.google.cloud.redis.cluster.v1beta1.ListClustersResponse listClusters( getChannel(), getListClustersMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Lists all ACL policies owned by a project in either the specified
          +     * location (region) or all locations.
          +     * The location should have the following format:
          +     * * `projects/{project_id}/locations/{location_id}`
          +     * If `location_id` is specified as `-` (wildcard), then all regions
          +     * available to the project are queried, and the results are aggregated.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse listAclPolicies( + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAclPoliciesMethod(), getCallOptions(), request); + } + /** * * @@ -1770,6 +2491,19 @@ public com.google.cloud.redis.cluster.v1beta1.Cluster getCluster( getChannel(), getGetClusterMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Gets the details of a specific Redis Cluster ACL policy.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicy getAclPolicy( + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAclPolicyMethod(), getCallOptions(), request); + } + /** * * @@ -1786,6 +2520,26 @@ public com.google.longrunning.Operation updateCluster( getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Updates the ACL policy.
          +     * The operation applies the updated ACL policy to all of the linked clusters.
          +     * If Memorystore can apply the policy to all clusters, then the operation
          +     * returns a SUCCESS status. If Memorystore can't apply the policy to all
          +     * clusters, then to ensure eventual consistency, Memorystore uses
          +     * reconciliation to apply the policy to the failed clusters.
          +     * Completed longrunning.Operation will contain the new ACL policy object in
          +     * the response field.
          +     * 
          + */ + public com.google.longrunning.Operation updateAclPolicy( + com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAclPolicyMethod(), getCallOptions(), request); + } + /** * * @@ -1800,6 +2554,48 @@ public com.google.longrunning.Operation deleteCluster( getChannel(), getDeleteClusterMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Deletes a specific ACL policy. This action will delete the ACL policy and
          +     * all the rules associated with it. An ACL policy cannot be deleted if it is
          +     * attached to a cluster.
          +     * 
          + */ + public com.google.longrunning.Operation deleteAclPolicy( + com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAclPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Gets details of a specific ACL policy revision.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision getAclPolicyRevision( + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAclPolicyRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Lists all ACL policy revisions in a given ACL policy.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse + listAclPolicyRevisions( + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAclPolicyRevisionsMethod(), getCallOptions(), request); + } + /** * * @@ -1819,6 +2615,21 @@ public com.google.longrunning.Operation createCluster( getChannel(), getCreateClusterMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Creates an ACL policy.
          +     * The creation is executed synchronously and the policy is available for use
          +     * immediately after the RPC returns.
          +     * 
          + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicy createAclPolicy( + com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAclPolicyMethod(), getCallOptions(), request); + } + /** * * @@ -2021,6 +2832,25 @@ protected CloudRedisClusterFutureStub build( getChannel().newCall(getListClustersMethod(), getCallOptions()), request); } + /** + * + * + *
          +     * Lists all ACL policies owned by a project in either the specified
          +     * location (region) or all locations.
          +     * The location should have the following format:
          +     * * `projects/{project_id}/locations/{location_id}`
          +     * If `location_id` is specified as `-` (wildcard), then all regions
          +     * available to the project are queried, and the results are aggregated.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse> + listAclPolicies(com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAclPoliciesMethod(), getCallOptions()), request); + } + /** * * @@ -2035,6 +2865,20 @@ protected CloudRedisClusterFutureStub build( getChannel().newCall(getGetClusterMethod(), getCallOptions()), request); } + /** + * + * + *
          +     * Gets the details of a specific Redis Cluster ACL policy.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.cluster.v1beta1.AclPolicy> + getAclPolicy(com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAclPolicyMethod(), getCallOptions()), request); + } + /** * * @@ -2051,6 +2895,26 @@ protected CloudRedisClusterFutureStub build( getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request); } + /** + * + * + *
          +     * Updates the ACL policy.
          +     * The operation applies the updated ACL policy to all of the linked clusters.
          +     * If Memorystore can apply the policy to all clusters, then the operation
          +     * returns a SUCCESS status. If Memorystore can't apply the policy to all
          +     * clusters, then to ensure eventual consistency, Memorystore uses
          +     * reconciliation to apply the policy to the failed clusters.
          +     * Completed longrunning.Operation will contain the new ACL policy object in
          +     * the response field.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + updateAclPolicy(com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAclPolicyMethod(), getCallOptions()), request); + } + /** * * @@ -2065,6 +2929,51 @@ protected CloudRedisClusterFutureStub build( getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), request); } + /** + * + * + *
          +     * Deletes a specific ACL policy. This action will delete the ACL policy and
          +     * all the rules associated with it. An ACL policy cannot be deleted if it is
          +     * attached to a cluster.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + deleteAclPolicy(com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAclPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Gets details of a specific ACL policy revision.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision> + getAclPolicyRevision( + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAclPolicyRevisionMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Lists all ACL policy revisions in a given ACL policy.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse> + listAclPolicyRevisions( + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAclPolicyRevisionsMethod(), getCallOptions()), request); + } + /** * * @@ -2084,6 +2993,22 @@ protected CloudRedisClusterFutureStub build( getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request); } + /** + * + * + *
          +     * Creates an ACL policy.
          +     * The creation is executed synchronously and the policy is available for use
          +     * immediately after the RPC returns.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.cluster.v1beta1.AclPolicy> + createAclPolicy(com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAclPolicyMethod(), getCallOptions()), request); + } + /** * * @@ -2245,20 +3170,27 @@ protected CloudRedisClusterFutureStub build( } private static final int METHODID_LIST_CLUSTERS = 0; - private static final int METHODID_GET_CLUSTER = 1; - private static final int METHODID_UPDATE_CLUSTER = 2; - private static final int METHODID_DELETE_CLUSTER = 3; - private static final int METHODID_CREATE_CLUSTER = 4; - private static final int METHODID_GET_CLUSTER_CERTIFICATE_AUTHORITY = 5; - private static final int METHODID_GET_SHARED_REGIONAL_CERTIFICATE_AUTHORITY = 6; - private static final int METHODID_RESCHEDULE_CLUSTER_MAINTENANCE = 7; - private static final int METHODID_LIST_BACKUP_COLLECTIONS = 8; - private static final int METHODID_GET_BACKUP_COLLECTION = 9; - private static final int METHODID_LIST_BACKUPS = 10; - private static final int METHODID_GET_BACKUP = 11; - private static final int METHODID_DELETE_BACKUP = 12; - private static final int METHODID_EXPORT_BACKUP = 13; - private static final int METHODID_BACKUP_CLUSTER = 14; + private static final int METHODID_LIST_ACL_POLICIES = 1; + private static final int METHODID_GET_CLUSTER = 2; + private static final int METHODID_GET_ACL_POLICY = 3; + private static final int METHODID_UPDATE_CLUSTER = 4; + private static final int METHODID_UPDATE_ACL_POLICY = 5; + private static final int METHODID_DELETE_CLUSTER = 6; + private static final int METHODID_DELETE_ACL_POLICY = 7; + private static final int METHODID_GET_ACL_POLICY_REVISION = 8; + private static final int METHODID_LIST_ACL_POLICY_REVISIONS = 9; + private static final int METHODID_CREATE_CLUSTER = 10; + private static final int METHODID_CREATE_ACL_POLICY = 11; + private static final int METHODID_GET_CLUSTER_CERTIFICATE_AUTHORITY = 12; + private static final int METHODID_GET_SHARED_REGIONAL_CERTIFICATE_AUTHORITY = 13; + private static final int METHODID_RESCHEDULE_CLUSTER_MAINTENANCE = 14; + private static final int METHODID_LIST_BACKUP_COLLECTIONS = 15; + private static final int METHODID_GET_BACKUP_COLLECTION = 16; + private static final int METHODID_LIST_BACKUPS = 17; + private static final int METHODID_GET_BACKUP = 18; + private static final int METHODID_DELETE_BACKUP = 19; + private static final int METHODID_EXPORT_BACKUP = 20; + private static final int METHODID_BACKUP_CLUSTER = 21; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2284,27 +3216,70 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.redis.cluster.v1beta1.ListClustersResponse>) responseObserver); break; + case METHODID_LIST_ACL_POLICIES: + serviceImpl.listAclPolicies( + (com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse>) + responseObserver); + break; case METHODID_GET_CLUSTER: serviceImpl.getCluster( (com.google.cloud.redis.cluster.v1beta1.GetClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_ACL_POLICY: + serviceImpl.getAclPolicy( + (com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_UPDATE_CLUSTER: serviceImpl.updateCluster( (com.google.cloud.redis.cluster.v1beta1.UpdateClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_ACL_POLICY: + serviceImpl.updateAclPolicy( + (com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_DELETE_CLUSTER: serviceImpl.deleteCluster( (com.google.cloud.redis.cluster.v1beta1.DeleteClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_DELETE_ACL_POLICY: + serviceImpl.deleteAclPolicy( + (com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ACL_POLICY_REVISION: + serviceImpl.getAclPolicyRevision( + (com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision>) + responseObserver); + break; + case METHODID_LIST_ACL_POLICY_REVISIONS: + serviceImpl.listAclPolicyRevisions( + (com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse>) + responseObserver); + break; case METHODID_CREATE_CLUSTER: serviceImpl.createCluster( (com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_ACL_POLICY: + serviceImpl.createAclPolicy( + (com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_GET_CLUSTER_CERTIFICATE_AUTHORITY: serviceImpl.getClusterCertificateAuthority( (com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest) @@ -2392,30 +3367,77 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.redis.cluster.v1beta1.ListClustersRequest, com.google.cloud.redis.cluster.v1beta1.ListClustersResponse>( service, METHODID_LIST_CLUSTERS))) + .addMethod( + getListAclPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest, + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse>( + service, METHODID_LIST_ACL_POLICIES))) .addMethod( getGetClusterMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.redis.cluster.v1beta1.GetClusterRequest, com.google.cloud.redis.cluster.v1beta1.Cluster>(service, METHODID_GET_CLUSTER))) + .addMethod( + getGetAclPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest, + com.google.cloud.redis.cluster.v1beta1.AclPolicy>( + service, METHODID_GET_ACL_POLICY))) .addMethod( getUpdateClusterMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.redis.cluster.v1beta1.UpdateClusterRequest, com.google.longrunning.Operation>(service, METHODID_UPDATE_CLUSTER))) + .addMethod( + getUpdateAclPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_ACL_POLICY))) .addMethod( getDeleteClusterMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.redis.cluster.v1beta1.DeleteClusterRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_CLUSTER))) + .addMethod( + getDeleteAclPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_ACL_POLICY))) + .addMethod( + getGetAclPolicyRevisionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision>( + service, METHODID_GET_ACL_POLICY_REVISION))) + .addMethod( + getListAclPolicyRevisionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest, + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse>( + service, METHODID_LIST_ACL_POLICY_REVISIONS))) .addMethod( getCreateClusterMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest, com.google.longrunning.Operation>(service, METHODID_CREATE_CLUSTER))) + .addMethod( + getCreateAclPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest, + com.google.cloud.redis.cluster.v1beta1.AclPolicy>( + service, METHODID_CREATE_ACL_POLICY))) .addMethod( getGetClusterCertificateAuthorityMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2535,10 +3557,17 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new CloudRedisClusterFileDescriptorSupplier()) .addMethod(getListClustersMethod()) + .addMethod(getListAclPoliciesMethod()) .addMethod(getGetClusterMethod()) + .addMethod(getGetAclPolicyMethod()) .addMethod(getUpdateClusterMethod()) + .addMethod(getUpdateAclPolicyMethod()) .addMethod(getDeleteClusterMethod()) + .addMethod(getDeleteAclPolicyMethod()) + .addMethod(getGetAclPolicyRevisionMethod()) + .addMethod(getListAclPolicyRevisionsMethod()) .addMethod(getCreateClusterMethod()) + .addMethod(getCreateAclPolicyMethod()) .addMethod(getGetClusterCertificateAuthorityMethod()) .addMethod(getGetSharedRegionalCertificateAuthorityMethod()) .addMethod(getRescheduleClusterMaintenanceMethod()) diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicy.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicy.java new file mode 100644 index 000000000000..aebc84d5de00 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicy.java @@ -0,0 +1,2943 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * The ACL policy resource.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.AclPolicy} + */ +@com.google.protobuf.Generated +public final class AclPolicy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.AclPolicy) + AclPolicyOrBuilder { + 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= */ "", + "AclPolicy"); + } + + // Use AclPolicy.newBuilder() to construct. + private AclPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AclPolicy() { + name_ = ""; + rules_ = java.util.Collections.emptyList(); + state_ = 0; + etag_ = ""; + clusterAclPolicyAttachments_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.AclPolicy.class, + com.google.cloud.redis.cluster.v1.AclPolicy.Builder.class); + } + + /** + * + * + *
          +   * Represents the different states of an ACL policy.
          +   * 
          + * + * Protobuf enum {@code google.cloud.redis.cluster.v1.AclPolicy.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Not set.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
          +     * ACL policy has been created and is fully usable. Since ACL policy
          +     * creation is synchronous and not an LRO, there is no CREATING state.
          +     * 
          + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
          +     * ACL policy is being updated.
          +     * 
          + * + * UPDATING = 2; + */ + UPDATING(2), + /** + * + * + *
          +     * ACL policy is being deleted.
          +     * 
          + * + * DELETING = 3; + */ + DELETING(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
          +     * Not set.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
          +     * ACL policy has been created and is fully usable. Since ACL policy
          +     * creation is synchronous and not an LRO, there is no CREATING state.
          +     * 
          + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
          +     * ACL policy is being updated.
          +     * 
          + * + * UPDATING = 2; + */ + public static final int UPDATING_VALUE = 2; + + /** + * + * + *
          +     * ACL policy is being deleted.
          +     * 
          + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return UPDATING; + case 3: + return DELETING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.AclPolicy.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1.AclPolicy.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Identifier. Full resource path of the ACL policy.
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Identifier. Full resource path of the ACL policy.
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RULES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List rules_; + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getRulesList() { + return rules_; + } + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRulesOrBuilderList() { + return rules_; + } + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRulesCount() { + return rules_.size(); + } + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclRule getRules(int index) { + return rules_.get(index); + } + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclRuleOrBuilder getRulesOrBuilder(int index) { + return rules_.get(index); + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + + /** + * + * + *
          +   * Output only. The state of the ACL policy.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
          +   * Output only. The state of the ACL policy.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicy.State getState() { + com.google.cloud.redis.cluster.v1.AclPolicy.State result = + com.google.cloud.redis.cluster.v1.AclPolicy.State.forNumber(state_); + return result == null ? com.google.cloud.redis.cluster.v1.AclPolicy.State.UNRECOGNIZED : result; + } + + public static final int ETAG_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
          +   * Output only. Etag for the ACL policy.
          +   * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the etag field is set. + */ + @java.lang.Override + public boolean hasEtag() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Output only. Etag for the ACL policy.
          +   * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. Etag for the ACL policy.
          +   * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ACL_POLICY_ATTACHMENTS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List + clusterAclPolicyAttachments_; + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getClusterAclPolicyAttachmentsList() { + return clusterAclPolicyAttachments_; + } + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachmentOrBuilder> + getClusterAclPolicyAttachmentsOrBuilderList() { + return clusterAclPolicyAttachments_; + } + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getClusterAclPolicyAttachmentsCount() { + return clusterAclPolicyAttachments_.size(); + } + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment + getClusterAclPolicyAttachments(int index) { + return clusterAclPolicyAttachments_.get(index); + } + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachmentOrBuilder + getClusterAclPolicyAttachmentsOrBuilder(int index) { + return clusterAclPolicyAttachments_.get(index); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + for (int i = 0; i < rules_.size(); i++) { + output.writeMessage(2, rules_.get(i)); + } + if (state_ != com.google.cloud.redis.cluster.v1.AclPolicy.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, etag_); + } + for (int i = 0; i < clusterAclPolicyAttachments_.size(); i++) { + output.writeMessage(6, clusterAclPolicyAttachments_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + for (int i = 0; i < rules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, rules_.get(i)); + } + if (state_ != com.google.cloud.redis.cluster.v1.AclPolicy.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, etag_); + } + for (int i = 0; i < clusterAclPolicyAttachments_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, clusterAclPolicyAttachments_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + } + 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.redis.cluster.v1.AclPolicy)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.AclPolicy other = + (com.google.cloud.redis.cluster.v1.AclPolicy) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRulesList().equals(other.getRulesList())) return false; + if (state_ != other.state_) return false; + if (hasEtag() != other.hasEtag()) return false; + if (hasEtag()) { + if (!getEtag().equals(other.getEtag())) return false; + } + if (!getClusterAclPolicyAttachmentsList().equals(other.getClusterAclPolicyAttachmentsList())) + return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getRulesCount() > 0) { + hash = (37 * hash) + RULES_FIELD_NUMBER; + hash = (53 * hash) + getRulesList().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasEtag()) { + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + } + if (getClusterAclPolicyAttachmentsCount() > 0) { + hash = (37 * hash) + CLUSTER_ACL_POLICY_ATTACHMENTS_FIELD_NUMBER; + hash = (53 * hash) + getClusterAclPolicyAttachmentsList().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.AclPolicy parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicy 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.redis.cluster.v1.AclPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicy 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.redis.cluster.v1.AclPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicy 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.redis.cluster.v1.AclPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicy 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.redis.cluster.v1.AclPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicy 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.redis.cluster.v1.AclPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * The ACL policy resource.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.AclPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.AclPolicy) + com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.AclPolicy.class, + com.google.cloud.redis.cluster.v1.AclPolicy.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.AclPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRulesFieldBuilder(); + internalGetClusterAclPolicyAttachmentsFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + } else { + rules_ = null; + rulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + etag_ = ""; + if (clusterAclPolicyAttachmentsBuilder_ == null) { + clusterAclPolicyAttachments_ = java.util.Collections.emptyList(); + } else { + clusterAclPolicyAttachments_ = null; + clusterAclPolicyAttachmentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicy getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.AclPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicy build() { + com.google.cloud.redis.cluster.v1.AclPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicy buildPartial() { + com.google.cloud.redis.cluster.v1.AclPolicy result = + new com.google.cloud.redis.cluster.v1.AclPolicy(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.redis.cluster.v1.AclPolicy result) { + if (rulesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.rules_ = rules_; + } else { + result.rules_ = rulesBuilder_.build(); + } + if (clusterAclPolicyAttachmentsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + clusterAclPolicyAttachments_ = + java.util.Collections.unmodifiableList(clusterAclPolicyAttachments_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.clusterAclPolicyAttachments_ = clusterAclPolicyAttachments_; + } else { + result.clusterAclPolicyAttachments_ = clusterAclPolicyAttachmentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.AclPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.etag_ = etag_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.AclPolicy) { + return mergeFrom((com.google.cloud.redis.cluster.v1.AclPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.AclPolicy other) { + if (other == com.google.cloud.redis.cluster.v1.AclPolicy.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (rulesBuilder_ == null) { + if (!other.rules_.isEmpty()) { + if (rules_.isEmpty()) { + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRulesIsMutable(); + rules_.addAll(other.rules_); + } + onChanged(); + } + } else { + if (!other.rules_.isEmpty()) { + if (rulesBuilder_.isEmpty()) { + rulesBuilder_.dispose(); + rulesBuilder_ = null; + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000002); + rulesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRulesFieldBuilder() + : null; + } else { + rulesBuilder_.addAllMessages(other.rules_); + } + } + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasEtag()) { + etag_ = other.etag_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (clusterAclPolicyAttachmentsBuilder_ == null) { + if (!other.clusterAclPolicyAttachments_.isEmpty()) { + if (clusterAclPolicyAttachments_.isEmpty()) { + clusterAclPolicyAttachments_ = other.clusterAclPolicyAttachments_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureClusterAclPolicyAttachmentsIsMutable(); + clusterAclPolicyAttachments_.addAll(other.clusterAclPolicyAttachments_); + } + onChanged(); + } + } else { + if (!other.clusterAclPolicyAttachments_.isEmpty()) { + if (clusterAclPolicyAttachmentsBuilder_.isEmpty()) { + clusterAclPolicyAttachmentsBuilder_.dispose(); + clusterAclPolicyAttachmentsBuilder_ = null; + clusterAclPolicyAttachments_ = other.clusterAclPolicyAttachments_; + bitField0_ = (bitField0_ & ~0x00000010); + clusterAclPolicyAttachmentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetClusterAclPolicyAttachmentsFieldBuilder() + : null; + } else { + clusterAclPolicyAttachmentsBuilder_.addAllMessages(other.clusterAclPolicyAttachments_); + } + } + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.redis.cluster.v1.AclRule m = + input.readMessage( + com.google.cloud.redis.cluster.v1.AclRule.parser(), extensionRegistry); + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(m); + } else { + rulesBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 42: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment m = + input.readMessage( + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment.parser(), + extensionRegistry); + if (clusterAclPolicyAttachmentsBuilder_ == null) { + ensureClusterAclPolicyAttachmentsIsMutable(); + clusterAclPolicyAttachments_.add(m); + } else { + clusterAclPolicyAttachmentsBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Identifier. Full resource path of the ACL policy.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Identifier. Full resource path of the ACL policy.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Identifier. Full resource path of the ACL policy.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Identifier. Full resource path of the ACL policy.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Identifier. Full resource path of the ACL policy.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List rules_ = + java.util.Collections.emptyList(); + + private void ensureRulesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + rules_ = new java.util.ArrayList(rules_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1.AclRule, + com.google.cloud.redis.cluster.v1.AclRule.Builder, + com.google.cloud.redis.cluster.v1.AclRuleOrBuilder> + rulesBuilder_; + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRulesList() { + if (rulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rules_); + } else { + return rulesBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRulesCount() { + if (rulesBuilder_ == null) { + return rules_.size(); + } else { + return rulesBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.redis.cluster.v1.AclRule getRules(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRules(int index, com.google.cloud.redis.cluster.v1.AclRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.set(index, value); + onChanged(); + } else { + rulesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRules( + int index, com.google.cloud.redis.cluster.v1.AclRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.set(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules(com.google.cloud.redis.cluster.v1.AclRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(value); + onChanged(); + } else { + rulesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules(int index, com.google.cloud.redis.cluster.v1.AclRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(index, value); + onChanged(); + } else { + rulesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules(com.google.cloud.redis.cluster.v1.AclRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules( + int index, com.google.cloud.redis.cluster.v1.AclRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRules( + java.lang.Iterable values) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_); + onChanged(); + } else { + rulesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRules() { + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + rulesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRules(int index) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.remove(index); + onChanged(); + } else { + rulesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.redis.cluster.v1.AclRule.Builder getRulesBuilder(int index) { + return internalGetRulesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.redis.cluster.v1.AclRuleOrBuilder getRulesOrBuilder(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRulesOrBuilderList() { + if (rulesBuilder_ != null) { + return rulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rules_); + } + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.redis.cluster.v1.AclRule.Builder addRulesBuilder() { + return internalGetRulesFieldBuilder() + .addBuilder(com.google.cloud.redis.cluster.v1.AclRule.getDefaultInstance()); + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.redis.cluster.v1.AclRule.Builder addRulesBuilder(int index) { + return internalGetRulesFieldBuilder() + .addBuilder(index, com.google.cloud.redis.cluster.v1.AclRule.getDefaultInstance()); + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRulesBuilderList() { + return internalGetRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1.AclRule, + com.google.cloud.redis.cluster.v1.AclRule.Builder, + com.google.cloud.redis.cluster.v1.AclRuleOrBuilder> + internalGetRulesFieldBuilder() { + if (rulesBuilder_ == null) { + rulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1.AclRule, + com.google.cloud.redis.cluster.v1.AclRule.Builder, + com.google.cloud.redis.cluster.v1.AclRuleOrBuilder>( + rules_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + rules_ = null; + } + return rulesBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
          +     * Output only. The state of the ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
          +     * Output only. The state of the ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The state of the ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicy.State getState() { + com.google.cloud.redis.cluster.v1.AclPolicy.State result = + com.google.cloud.redis.cluster.v1.AclPolicy.State.forNumber(state_); + return result == null + ? com.google.cloud.redis.cluster.v1.AclPolicy.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
          +     * Output only. The state of the ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.redis.cluster.v1.AclPolicy.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The state of the ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
          +     * Output only. Etag for the ACL policy.
          +     * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the etag field is set. + */ + public boolean hasEtag() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
          +     * Output only. Etag for the ACL policy.
          +     * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. Etag for the ACL policy.
          +     * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. Etag for the ACL policy.
          +     * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Etag for the ACL policy.
          +     * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Etag for the ACL policy.
          +     * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.util.List + clusterAclPolicyAttachments_ = java.util.Collections.emptyList(); + + private void ensureClusterAclPolicyAttachmentsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + clusterAclPolicyAttachments_ = + new java.util.ArrayList( + clusterAclPolicyAttachments_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment, + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment.Builder, + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachmentOrBuilder> + clusterAclPolicyAttachmentsBuilder_; + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getClusterAclPolicyAttachmentsList() { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(clusterAclPolicyAttachments_); + } else { + return clusterAclPolicyAttachmentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getClusterAclPolicyAttachmentsCount() { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + return clusterAclPolicyAttachments_.size(); + } else { + return clusterAclPolicyAttachmentsBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment + getClusterAclPolicyAttachments(int index) { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + return clusterAclPolicyAttachments_.get(index); + } else { + return clusterAclPolicyAttachmentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setClusterAclPolicyAttachments( + int index, com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment value) { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterAclPolicyAttachmentsIsMutable(); + clusterAclPolicyAttachments_.set(index, value); + onChanged(); + } else { + clusterAclPolicyAttachmentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setClusterAclPolicyAttachments( + int index, + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment.Builder builderForValue) { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + ensureClusterAclPolicyAttachmentsIsMutable(); + clusterAclPolicyAttachments_.set(index, builderForValue.build()); + onChanged(); + } else { + clusterAclPolicyAttachmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addClusterAclPolicyAttachments( + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment value) { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterAclPolicyAttachmentsIsMutable(); + clusterAclPolicyAttachments_.add(value); + onChanged(); + } else { + clusterAclPolicyAttachmentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addClusterAclPolicyAttachments( + int index, com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment value) { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterAclPolicyAttachmentsIsMutable(); + clusterAclPolicyAttachments_.add(index, value); + onChanged(); + } else { + clusterAclPolicyAttachmentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addClusterAclPolicyAttachments( + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment.Builder builderForValue) { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + ensureClusterAclPolicyAttachmentsIsMutable(); + clusterAclPolicyAttachments_.add(builderForValue.build()); + onChanged(); + } else { + clusterAclPolicyAttachmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addClusterAclPolicyAttachments( + int index, + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment.Builder builderForValue) { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + ensureClusterAclPolicyAttachmentsIsMutable(); + clusterAclPolicyAttachments_.add(index, builderForValue.build()); + onChanged(); + } else { + clusterAclPolicyAttachmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllClusterAclPolicyAttachments( + java.lang.Iterable + values) { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + ensureClusterAclPolicyAttachmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, clusterAclPolicyAttachments_); + onChanged(); + } else { + clusterAclPolicyAttachmentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearClusterAclPolicyAttachments() { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + clusterAclPolicyAttachments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + clusterAclPolicyAttachmentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeClusterAclPolicyAttachments(int index) { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + ensureClusterAclPolicyAttachmentsIsMutable(); + clusterAclPolicyAttachments_.remove(index); + onChanged(); + } else { + clusterAclPolicyAttachmentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment.Builder + getClusterAclPolicyAttachmentsBuilder(int index) { + return internalGetClusterAclPolicyAttachmentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachmentOrBuilder + getClusterAclPolicyAttachmentsOrBuilder(int index) { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + return clusterAclPolicyAttachments_.get(index); + } else { + return clusterAclPolicyAttachmentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachmentOrBuilder> + getClusterAclPolicyAttachmentsOrBuilderList() { + if (clusterAclPolicyAttachmentsBuilder_ != null) { + return clusterAclPolicyAttachmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(clusterAclPolicyAttachments_); + } + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment.Builder + addClusterAclPolicyAttachmentsBuilder() { + return internalGetClusterAclPolicyAttachmentsFieldBuilder() + .addBuilder( + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment.getDefaultInstance()); + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment.Builder + addClusterAclPolicyAttachmentsBuilder(int index) { + return internalGetClusterAclPolicyAttachmentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment.getDefaultInstance()); + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getClusterAclPolicyAttachmentsBuilderList() { + return internalGetClusterAclPolicyAttachmentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment, + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment.Builder, + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachmentOrBuilder> + internalGetClusterAclPolicyAttachmentsFieldBuilder() { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + clusterAclPolicyAttachmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment, + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment.Builder, + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachmentOrBuilder>( + clusterAclPolicyAttachments_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + clusterAclPolicyAttachments_ = null; + } + return clusterAclPolicyAttachmentsBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.AclPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.AclPolicy) + private static final com.google.cloud.redis.cluster.v1.AclPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.AclPolicy(); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AclPolicy 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.redis.cluster.v1.AclPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyInfo.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyInfo.java new file mode 100644 index 000000000000..62b7fd3741d9 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyInfo.java @@ -0,0 +1,1558 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * Details of the applied ACL policy.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.AclPolicyInfo} + */ +@com.google.protobuf.Generated +public final class AclPolicyInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.AclPolicyInfo) + AclPolicyInfoOrBuilder { + 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= */ "", + "AclPolicyInfo"); + } + + // Use AclPolicyInfo.newBuilder() to construct. + private AclPolicyInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AclPolicyInfo() { + appliedAclPolicy_ = ""; + appliedAclPolicyRevision_ = ""; + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclPolicyInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclPolicyInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.AclPolicyInfo.class, + com.google.cloud.redis.cluster.v1.AclPolicyInfo.Builder.class); + } + + public static final int APPLIED_ACL_POLICY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object appliedAclPolicy_ = ""; + + /** + * + * + *
          +   * Output only. The resource name of the applied ACL policy.
          +   * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +   * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appliedAclPolicy. + */ + @java.lang.Override + public java.lang.String getAppliedAclPolicy() { + java.lang.Object ref = appliedAclPolicy_; + 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(); + appliedAclPolicy_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. The resource name of the applied ACL policy.
          +   * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +   * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appliedAclPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppliedAclPolicyBytes() { + java.lang.Object ref = appliedAclPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appliedAclPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPLIED_ACL_POLICY_REVISION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object appliedAclPolicyRevision_ = ""; + + /** + * + * + *
          +   * Output only. The resource name of the applied ACL policy revision.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appliedAclPolicyRevision. + */ + @java.lang.Override + public java.lang.String getAppliedAclPolicyRevision() { + java.lang.Object ref = appliedAclPolicyRevision_; + 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(); + appliedAclPolicyRevision_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. The resource name of the applied ACL policy revision.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appliedAclPolicyRevision. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppliedAclPolicyRevisionBytes() { + java.lang.Object ref = appliedAclPolicyRevision_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appliedAclPolicyRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPLIED_ACL_POLICY_REVISION_NUMBER_FIELD_NUMBER = 3; + private long appliedAclPolicyRevisionNumber_ = 0L; + + /** + * + * + *
          +   * Output only. The revision number of the applied ACL policy revision.
          +   * 
          + * + * + * int64 applied_acl_policy_revision_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The appliedAclPolicyRevisionNumber. + */ + @java.lang.Override + public long getAppliedAclPolicyRevisionNumber() { + return appliedAclPolicyRevisionNumber_; + } + + public static final int ACL_POLICY_REVISION_STATUSES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List + aclPolicyRevisionStatuses_; + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getAclPolicyRevisionStatusesList() { + return aclPolicyRevisionStatuses_; + } + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatusOrBuilder> + getAclPolicyRevisionStatusesOrBuilderList() { + return aclPolicyRevisionStatuses_; + } + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getAclPolicyRevisionStatusesCount() { + return aclPolicyRevisionStatuses_.size(); + } + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus getAclPolicyRevisionStatuses( + int index) { + return aclPolicyRevisionStatuses_.get(index); + } + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatusOrBuilder + getAclPolicyRevisionStatusesOrBuilder(int index) { + return aclPolicyRevisionStatuses_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appliedAclPolicy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, appliedAclPolicy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appliedAclPolicyRevision_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, appliedAclPolicyRevision_); + } + if (appliedAclPolicyRevisionNumber_ != 0L) { + output.writeInt64(3, appliedAclPolicyRevisionNumber_); + } + for (int i = 0; i < aclPolicyRevisionStatuses_.size(); i++) { + output.writeMessage(4, aclPolicyRevisionStatuses_.get(i)); + } + 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(appliedAclPolicy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, appliedAclPolicy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appliedAclPolicyRevision_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, appliedAclPolicyRevision_); + } + if (appliedAclPolicyRevisionNumber_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size( + 3, appliedAclPolicyRevisionNumber_); + } + for (int i = 0; i < aclPolicyRevisionStatuses_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, aclPolicyRevisionStatuses_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.AclPolicyInfo)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.AclPolicyInfo other = + (com.google.cloud.redis.cluster.v1.AclPolicyInfo) obj; + + if (!getAppliedAclPolicy().equals(other.getAppliedAclPolicy())) return false; + if (!getAppliedAclPolicyRevision().equals(other.getAppliedAclPolicyRevision())) return false; + if (getAppliedAclPolicyRevisionNumber() != other.getAppliedAclPolicyRevisionNumber()) + return false; + if (!getAclPolicyRevisionStatusesList().equals(other.getAclPolicyRevisionStatusesList())) + 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) + APPLIED_ACL_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAppliedAclPolicy().hashCode(); + hash = (37 * hash) + APPLIED_ACL_POLICY_REVISION_FIELD_NUMBER; + hash = (53 * hash) + getAppliedAclPolicyRevision().hashCode(); + hash = (37 * hash) + APPLIED_ACL_POLICY_REVISION_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAppliedAclPolicyRevisionNumber()); + if (getAclPolicyRevisionStatusesCount() > 0) { + hash = (37 * hash) + ACL_POLICY_REVISION_STATUSES_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicyRevisionStatusesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyInfo 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.redis.cluster.v1.AclPolicyInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyInfo 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.redis.cluster.v1.AclPolicyInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyInfo 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.redis.cluster.v1.AclPolicyInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyInfo 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.redis.cluster.v1.AclPolicyInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyInfo 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.redis.cluster.v1.AclPolicyInfo 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; + } + + /** + * + * + *
          +   * Details of the applied ACL policy.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.AclPolicyInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.AclPolicyInfo) + com.google.cloud.redis.cluster.v1.AclPolicyInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclPolicyInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclPolicyInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.AclPolicyInfo.class, + com.google.cloud.redis.cluster.v1.AclPolicyInfo.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.AclPolicyInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + appliedAclPolicy_ = ""; + appliedAclPolicyRevision_ = ""; + appliedAclPolicyRevisionNumber_ = 0L; + if (aclPolicyRevisionStatusesBuilder_ == null) { + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + } else { + aclPolicyRevisionStatuses_ = null; + aclPolicyRevisionStatusesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclPolicyInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicyInfo getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.AclPolicyInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicyInfo build() { + com.google.cloud.redis.cluster.v1.AclPolicyInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicyInfo buildPartial() { + com.google.cloud.redis.cluster.v1.AclPolicyInfo result = + new com.google.cloud.redis.cluster.v1.AclPolicyInfo(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1.AclPolicyInfo result) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + aclPolicyRevisionStatuses_ = + java.util.Collections.unmodifiableList(aclPolicyRevisionStatuses_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.aclPolicyRevisionStatuses_ = aclPolicyRevisionStatuses_; + } else { + result.aclPolicyRevisionStatuses_ = aclPolicyRevisionStatusesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.AclPolicyInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.appliedAclPolicy_ = appliedAclPolicy_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.appliedAclPolicyRevision_ = appliedAclPolicyRevision_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.appliedAclPolicyRevisionNumber_ = appliedAclPolicyRevisionNumber_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.AclPolicyInfo) { + return mergeFrom((com.google.cloud.redis.cluster.v1.AclPolicyInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.AclPolicyInfo other) { + if (other == com.google.cloud.redis.cluster.v1.AclPolicyInfo.getDefaultInstance()) + return this; + if (!other.getAppliedAclPolicy().isEmpty()) { + appliedAclPolicy_ = other.appliedAclPolicy_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAppliedAclPolicyRevision().isEmpty()) { + appliedAclPolicyRevision_ = other.appliedAclPolicyRevision_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getAppliedAclPolicyRevisionNumber() != 0L) { + setAppliedAclPolicyRevisionNumber(other.getAppliedAclPolicyRevisionNumber()); + } + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (!other.aclPolicyRevisionStatuses_.isEmpty()) { + if (aclPolicyRevisionStatuses_.isEmpty()) { + aclPolicyRevisionStatuses_ = other.aclPolicyRevisionStatuses_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.addAll(other.aclPolicyRevisionStatuses_); + } + onChanged(); + } + } else { + if (!other.aclPolicyRevisionStatuses_.isEmpty()) { + if (aclPolicyRevisionStatusesBuilder_.isEmpty()) { + aclPolicyRevisionStatusesBuilder_.dispose(); + aclPolicyRevisionStatusesBuilder_ = null; + aclPolicyRevisionStatuses_ = other.aclPolicyRevisionStatuses_; + bitField0_ = (bitField0_ & ~0x00000008); + aclPolicyRevisionStatusesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAclPolicyRevisionStatusesFieldBuilder() + : null; + } else { + aclPolicyRevisionStatusesBuilder_.addAllMessages(other.aclPolicyRevisionStatuses_); + } + } + } + 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: + { + appliedAclPolicy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + appliedAclPolicyRevision_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + appliedAclPolicyRevisionNumber_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus m = + input.readMessage( + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.parser(), + extensionRegistry); + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(m); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(m); + } + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object appliedAclPolicy_ = ""; + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy.
          +     * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +     * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appliedAclPolicy. + */ + public java.lang.String getAppliedAclPolicy() { + java.lang.Object ref = appliedAclPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appliedAclPolicy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy.
          +     * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +     * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appliedAclPolicy. + */ + public com.google.protobuf.ByteString getAppliedAclPolicyBytes() { + java.lang.Object ref = appliedAclPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appliedAclPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy.
          +     * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +     * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The appliedAclPolicy to set. + * @return This builder for chaining. + */ + public Builder setAppliedAclPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appliedAclPolicy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy.
          +     * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +     * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAppliedAclPolicy() { + appliedAclPolicy_ = getDefaultInstance().getAppliedAclPolicy(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy.
          +     * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +     * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for appliedAclPolicy to set. + * @return This builder for chaining. + */ + public Builder setAppliedAclPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appliedAclPolicy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object appliedAclPolicyRevision_ = ""; + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appliedAclPolicyRevision. + */ + public java.lang.String getAppliedAclPolicyRevision() { + java.lang.Object ref = appliedAclPolicyRevision_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appliedAclPolicyRevision_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appliedAclPolicyRevision. + */ + public com.google.protobuf.ByteString getAppliedAclPolicyRevisionBytes() { + java.lang.Object ref = appliedAclPolicyRevision_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appliedAclPolicyRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The appliedAclPolicyRevision to set. + * @return This builder for chaining. + */ + public Builder setAppliedAclPolicyRevision(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appliedAclPolicyRevision_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAppliedAclPolicyRevision() { + appliedAclPolicyRevision_ = getDefaultInstance().getAppliedAclPolicyRevision(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for appliedAclPolicyRevision to set. + * @return This builder for chaining. + */ + public Builder setAppliedAclPolicyRevisionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appliedAclPolicyRevision_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long appliedAclPolicyRevisionNumber_; + + /** + * + * + *
          +     * Output only. The revision number of the applied ACL policy revision.
          +     * 
          + * + * + * int64 applied_acl_policy_revision_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The appliedAclPolicyRevisionNumber. + */ + @java.lang.Override + public long getAppliedAclPolicyRevisionNumber() { + return appliedAclPolicyRevisionNumber_; + } + + /** + * + * + *
          +     * Output only. The revision number of the applied ACL policy revision.
          +     * 
          + * + * + * int64 applied_acl_policy_revision_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The appliedAclPolicyRevisionNumber to set. + * @return This builder for chaining. + */ + public Builder setAppliedAclPolicyRevisionNumber(long value) { + + appliedAclPolicyRevisionNumber_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The revision number of the applied ACL policy revision.
          +     * 
          + * + * + * int64 applied_acl_policy_revision_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAppliedAclPolicyRevisionNumber() { + bitField0_ = (bitField0_ & ~0x00000004); + appliedAclPolicyRevisionNumber_ = 0L; + onChanged(); + return this; + } + + private java.util.List + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + + private void ensureAclPolicyRevisionStatusesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + aclPolicyRevisionStatuses_ = + new java.util.ArrayList( + aclPolicyRevisionStatuses_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus, + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.Builder, + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatusOrBuilder> + aclPolicyRevisionStatusesBuilder_; + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getAclPolicyRevisionStatusesList() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return java.util.Collections.unmodifiableList(aclPolicyRevisionStatuses_); + } else { + return aclPolicyRevisionStatusesBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getAclPolicyRevisionStatusesCount() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return aclPolicyRevisionStatuses_.size(); + } else { + return aclPolicyRevisionStatusesBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus getAclPolicyRevisionStatuses( + int index) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return aclPolicyRevisionStatuses_.get(index); + } else { + return aclPolicyRevisionStatusesBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAclPolicyRevisionStatuses( + int index, com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus value) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.set(index, value); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAclPolicyRevisionStatuses( + int index, + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.Builder builderForValue) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.set(index, builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus value) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(value); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + int index, com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus value) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(index, value); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.Builder builderForValue) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + int index, + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.Builder builderForValue) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(index, builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllAclPolicyRevisionStatuses( + java.lang.Iterable + values) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aclPolicyRevisionStatuses_); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAclPolicyRevisionStatuses() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeAclPolicyRevisionStatuses(int index) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.remove(index); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.Builder + getAclPolicyRevisionStatusesBuilder(int index) { + return internalGetAclPolicyRevisionStatusesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatusOrBuilder + getAclPolicyRevisionStatusesOrBuilder(int index) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return aclPolicyRevisionStatuses_.get(index); + } else { + return aclPolicyRevisionStatusesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatusOrBuilder> + getAclPolicyRevisionStatusesOrBuilderList() { + if (aclPolicyRevisionStatusesBuilder_ != null) { + return aclPolicyRevisionStatusesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(aclPolicyRevisionStatuses_); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.Builder + addAclPolicyRevisionStatusesBuilder() { + return internalGetAclPolicyRevisionStatusesFieldBuilder() + .addBuilder( + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.getDefaultInstance()); + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.Builder + addAclPolicyRevisionStatusesBuilder(int index) { + return internalGetAclPolicyRevisionStatusesFieldBuilder() + .addBuilder( + index, + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.getDefaultInstance()); + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getAclPolicyRevisionStatusesBuilderList() { + return internalGetAclPolicyRevisionStatusesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus, + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.Builder, + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatusOrBuilder> + internalGetAclPolicyRevisionStatusesFieldBuilder() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + aclPolicyRevisionStatusesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus, + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.Builder, + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatusOrBuilder>( + aclPolicyRevisionStatuses_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + aclPolicyRevisionStatuses_ = null; + } + return aclPolicyRevisionStatusesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.AclPolicyInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.AclPolicyInfo) + private static final com.google.cloud.redis.cluster.v1.AclPolicyInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.AclPolicyInfo(); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AclPolicyInfo 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.redis.cluster.v1.AclPolicyInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyInfoOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyInfoOrBuilder.java new file mode 100644 index 000000000000..748a455aeeba --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyInfoOrBuilder.java @@ -0,0 +1,182 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface AclPolicyInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.AclPolicyInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Output only. The resource name of the applied ACL policy.
          +   * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +   * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appliedAclPolicy. + */ + java.lang.String getAppliedAclPolicy(); + + /** + * + * + *
          +   * Output only. The resource name of the applied ACL policy.
          +   * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +   * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appliedAclPolicy. + */ + com.google.protobuf.ByteString getAppliedAclPolicyBytes(); + + /** + * + * + *
          +   * Output only. The resource name of the applied ACL policy revision.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appliedAclPolicyRevision. + */ + java.lang.String getAppliedAclPolicyRevision(); + + /** + * + * + *
          +   * Output only. The resource name of the applied ACL policy revision.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appliedAclPolicyRevision. + */ + com.google.protobuf.ByteString getAppliedAclPolicyRevisionBytes(); + + /** + * + * + *
          +   * Output only. The revision number of the applied ACL policy revision.
          +   * 
          + * + * + * int64 applied_acl_policy_revision_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The appliedAclPolicyRevisionNumber. + */ + long getAppliedAclPolicyRevisionNumber(); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAclPolicyRevisionStatusesList(); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus getAclPolicyRevisionStatuses(int index); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAclPolicyRevisionStatusesCount(); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAclPolicyRevisionStatusesOrBuilderList(); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatusOrBuilder + getAclPolicyRevisionStatusesOrBuilder(int index); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyName.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyName.java new file mode 100644 index 000000000000..bb15f6f5f7ea --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyName.java @@ -0,0 +1,226 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class AclPolicyName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ACL_POLICY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String aclPolicy; + + @Deprecated + protected AclPolicyName() { + project = null; + location = null; + aclPolicy = null; + } + + private AclPolicyName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + aclPolicy = Preconditions.checkNotNull(builder.getAclPolicy()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAclPolicy() { + return aclPolicy; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AclPolicyName of(String project, String location, String aclPolicy) { + return newBuilder().setProject(project).setLocation(location).setAclPolicy(aclPolicy).build(); + } + + public static String format(String project, String location, String aclPolicy) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAclPolicy(aclPolicy) + .build() + .toString(); + } + + public static @Nullable AclPolicyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ACL_POLICY.validatedMatch( + formattedString, "AclPolicyName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("acl_policy")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List<@Nullable AclPolicyName> values) { + List list = new ArrayList<>(values.size()); + for (AclPolicyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ACL_POLICY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (aclPolicy != null) { + fieldMapBuilder.put("acl_policy", aclPolicy); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ACL_POLICY.instantiate( + "project", project, "location", location, "acl_policy", aclPolicy); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AclPolicyName that = ((AclPolicyName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.aclPolicy, that.aclPolicy); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(aclPolicy); + return h; + } + + /** Builder for projects/{project}/locations/{location}/aclPolicies/{acl_policy}. */ + public static class Builder { + private String project; + private String location; + private String aclPolicy; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAclPolicy() { + return aclPolicy; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAclPolicy(String aclPolicy) { + this.aclPolicy = aclPolicy; + return this; + } + + private Builder(AclPolicyName aclPolicyName) { + this.project = aclPolicyName.project; + this.location = aclPolicyName.location; + this.aclPolicy = aclPolicyName.aclPolicy; + } + + public AclPolicyName build() { + return new AclPolicyName(this); + } + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyOrBuilder.java new file mode 100644 index 000000000000..2cb7e01f0f77 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyOrBuilder.java @@ -0,0 +1,338 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface AclPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.AclPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Identifier. Full resource path of the ACL policy.
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Identifier. Full resource path of the ACL policy.
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRulesList(); + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.redis.cluster.v1.AclRule getRules(int index); + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRulesCount(); + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRulesOrBuilderList(); + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.redis.cluster.v1.AclRuleOrBuilder getRulesOrBuilder(int index); + + /** + * + * + *
          +   * Output only. The state of the ACL policy.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
          +   * Output only. The state of the ACL policy.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.redis.cluster.v1.AclPolicy.State getState(); + + /** + * + * + *
          +   * Output only. Etag for the ACL policy.
          +   * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the etag field is set. + */ + boolean hasEtag(); + + /** + * + * + *
          +   * Output only. Etag for the ACL policy.
          +   * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
          +   * Output only. Etag for the ACL policy.
          +   * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getClusterAclPolicyAttachmentsList(); + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment getClusterAclPolicyAttachments( + int index); + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getClusterAclPolicyAttachmentsCount(); + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getClusterAclPolicyAttachmentsOrBuilderList(); + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachmentOrBuilder + getClusterAclPolicyAttachmentsOrBuilder(int index); + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyRevision.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyRevision.java new file mode 100644 index 000000000000..6d95c79d113b --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyRevision.java @@ -0,0 +1,1663 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * The ACL policy revision resource.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.AclPolicyRevision} + */ +@com.google.protobuf.Generated +public final class AclPolicyRevision extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.AclPolicyRevision) + AclPolicyRevisionOrBuilder { + 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= */ "", + "AclPolicyRevision"); + } + + // Use AclPolicyRevision.newBuilder() to construct. + private AclPolicyRevision(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AclPolicyRevision() { + name_ = ""; + attachedClusters_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclPolicyRevision_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclPolicyRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.AclPolicyRevision.class, + com.google.cloud.redis.cluster.v1.AclPolicyRevision.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Identifier. The name of the ACL policy revision.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Identifier. The name of the ACL policy revision.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REVISION_NUMBER_FIELD_NUMBER = 2; + private long revisionNumber_ = 0L; + + /** + * + * + *
          +   * Output only. The revision number of the ACL policy revision.
          +   * 
          + * + * int64 revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revisionNumber. + */ + @java.lang.Override + public long getRevisionNumber() { + return revisionNumber_; + } + + public static final int SNAPSHOT_FIELD_NUMBER = 3; + private com.google.cloud.redis.cluster.v1.AclPolicy snapshot_; + + /** + * + * + *
          +   * Output only. The snapshot of the ACL policy at the time of revision
          +   * creation.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + @java.lang.Override + public boolean hasSnapshot() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Output only. The snapshot of the ACL policy at the time of revision
          +   * creation.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicy getSnapshot() { + return snapshot_ == null + ? com.google.cloud.redis.cluster.v1.AclPolicy.getDefaultInstance() + : snapshot_; + } + + /** + * + * + *
          +   * Output only. The snapshot of the ACL policy at the time of revision
          +   * creation.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder getSnapshotOrBuilder() { + return snapshot_ == null + ? com.google.cloud.redis.cluster.v1.AclPolicy.getDefaultInstance() + : snapshot_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
          +   * Output only. The timestamp that the revision was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +   * Output only. The timestamp that the revision was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
          +   * Output only. The timestamp that the revision was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int ATTACHED_CLUSTERS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList attachedClusters_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
          +   * Output only. A list of clusters that are attached to this ACL policy
          +   * revision.
          +   * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the attachedClusters. + */ + public com.google.protobuf.ProtocolStringList getAttachedClustersList() { + return attachedClusters_; + } + + /** + * + * + *
          +   * Output only. A list of clusters that are attached to this ACL policy
          +   * revision.
          +   * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of attachedClusters. + */ + public int getAttachedClustersCount() { + return attachedClusters_.size(); + } + + /** + * + * + *
          +   * Output only. A list of clusters that are attached to this ACL policy
          +   * revision.
          +   * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The attachedClusters at the given index. + */ + public java.lang.String getAttachedClusters(int index) { + return attachedClusters_.get(index); + } + + /** + * + * + *
          +   * Output only. A list of clusters that are attached to this ACL policy
          +   * revision.
          +   * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the attachedClusters at the given index. + */ + public com.google.protobuf.ByteString getAttachedClustersBytes(int index) { + return attachedClusters_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (revisionNumber_ != 0L) { + output.writeInt64(2, revisionNumber_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getSnapshot()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getCreateTime()); + } + for (int i = 0; i < attachedClusters_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, attachedClusters_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (revisionNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, revisionNumber_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSnapshot()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + { + int dataSize = 0; + for (int i = 0; i < attachedClusters_.size(); i++) { + dataSize += computeStringSizeNoTag(attachedClusters_.getRaw(i)); + } + size += dataSize; + size += 1 * getAttachedClustersList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.AclPolicyRevision)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.AclPolicyRevision other = + (com.google.cloud.redis.cluster.v1.AclPolicyRevision) obj; + + if (!getName().equals(other.getName())) return false; + if (getRevisionNumber() != other.getRevisionNumber()) return false; + if (hasSnapshot() != other.hasSnapshot()) return false; + if (hasSnapshot()) { + if (!getSnapshot().equals(other.getSnapshot())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getAttachedClustersList().equals(other.getAttachedClustersList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REVISION_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRevisionNumber()); + if (hasSnapshot()) { + hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSnapshot().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (getAttachedClustersCount() > 0) { + hash = (37 * hash) + ATTACHED_CLUSTERS_FIELD_NUMBER; + hash = (53 * hash) + getAttachedClustersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyRevision parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyRevision 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.redis.cluster.v1.AclPolicyRevision parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyRevision 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.redis.cluster.v1.AclPolicyRevision parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyRevision parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyRevision parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyRevision 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.redis.cluster.v1.AclPolicyRevision parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyRevision 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.redis.cluster.v1.AclPolicyRevision parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyRevision 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.redis.cluster.v1.AclPolicyRevision prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * The ACL policy revision resource.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.AclPolicyRevision} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.AclPolicyRevision) + com.google.cloud.redis.cluster.v1.AclPolicyRevisionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclPolicyRevision_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclPolicyRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.AclPolicyRevision.class, + com.google.cloud.redis.cluster.v1.AclPolicyRevision.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.AclPolicyRevision.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSnapshotFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + revisionNumber_ = 0L; + snapshot_ = null; + if (snapshotBuilder_ != null) { + snapshotBuilder_.dispose(); + snapshotBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + attachedClusters_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclPolicyRevision_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicyRevision getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.AclPolicyRevision.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicyRevision build() { + com.google.cloud.redis.cluster.v1.AclPolicyRevision result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicyRevision buildPartial() { + com.google.cloud.redis.cluster.v1.AclPolicyRevision result = + new com.google.cloud.redis.cluster.v1.AclPolicyRevision(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.AclPolicyRevision result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.revisionNumber_ = revisionNumber_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.snapshot_ = snapshotBuilder_ == null ? snapshot_ : snapshotBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + attachedClusters_.makeImmutable(); + result.attachedClusters_ = attachedClusters_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.AclPolicyRevision) { + return mergeFrom((com.google.cloud.redis.cluster.v1.AclPolicyRevision) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.AclPolicyRevision other) { + if (other == com.google.cloud.redis.cluster.v1.AclPolicyRevision.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getRevisionNumber() != 0L) { + setRevisionNumber(other.getRevisionNumber()); + } + if (other.hasSnapshot()) { + mergeSnapshot(other.getSnapshot()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (!other.attachedClusters_.isEmpty()) { + if (attachedClusters_.isEmpty()) { + attachedClusters_ = other.attachedClusters_; + bitField0_ |= 0x00000010; + } else { + ensureAttachedClustersIsMutable(); + attachedClusters_.addAll(other.attachedClusters_); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + revisionNumber_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + internalGetSnapshotFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAttachedClustersIsMutable(); + attachedClusters_.add(s); + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Identifier. The name of the ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Identifier. The name of the ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Identifier. The name of the ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Identifier. The name of the ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Identifier. The name of the ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long revisionNumber_; + + /** + * + * + *
          +     * Output only. The revision number of the ACL policy revision.
          +     * 
          + * + * int64 revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revisionNumber. + */ + @java.lang.Override + public long getRevisionNumber() { + return revisionNumber_; + } + + /** + * + * + *
          +     * Output only. The revision number of the ACL policy revision.
          +     * 
          + * + * int64 revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The revisionNumber to set. + * @return This builder for chaining. + */ + public Builder setRevisionNumber(long value) { + + revisionNumber_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The revision number of the ACL policy revision.
          +     * 
          + * + * int64 revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRevisionNumber() { + bitField0_ = (bitField0_ & ~0x00000002); + revisionNumber_ = 0L; + onChanged(); + return this; + } + + private com.google.cloud.redis.cluster.v1.AclPolicy snapshot_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1.AclPolicy, + com.google.cloud.redis.cluster.v1.AclPolicy.Builder, + com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder> + snapshotBuilder_; + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + public boolean hasSnapshot() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + public com.google.cloud.redis.cluster.v1.AclPolicy getSnapshot() { + if (snapshotBuilder_ == null) { + return snapshot_ == null + ? com.google.cloud.redis.cluster.v1.AclPolicy.getDefaultInstance() + : snapshot_; + } else { + return snapshotBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSnapshot(com.google.cloud.redis.cluster.v1.AclPolicy value) { + if (snapshotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snapshot_ = value; + } else { + snapshotBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSnapshot( + com.google.cloud.redis.cluster.v1.AclPolicy.Builder builderForValue) { + if (snapshotBuilder_ == null) { + snapshot_ = builderForValue.build(); + } else { + snapshotBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSnapshot(com.google.cloud.redis.cluster.v1.AclPolicy value) { + if (snapshotBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && snapshot_ != null + && snapshot_ != com.google.cloud.redis.cluster.v1.AclPolicy.getDefaultInstance()) { + getSnapshotBuilder().mergeFrom(value); + } else { + snapshot_ = value; + } + } else { + snapshotBuilder_.mergeFrom(value); + } + if (snapshot_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSnapshot() { + bitField0_ = (bitField0_ & ~0x00000004); + snapshot_ = null; + if (snapshotBuilder_ != null) { + snapshotBuilder_.dispose(); + snapshotBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.AclPolicy.Builder getSnapshotBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetSnapshotFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder getSnapshotOrBuilder() { + if (snapshotBuilder_ != null) { + return snapshotBuilder_.getMessageOrBuilder(); + } else { + return snapshot_ == null + ? com.google.cloud.redis.cluster.v1.AclPolicy.getDefaultInstance() + : snapshot_; + } + } + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1.AclPolicy, + com.google.cloud.redis.cluster.v1.AclPolicy.Builder, + com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder> + internalGetSnapshotFieldBuilder() { + if (snapshotBuilder_ == null) { + snapshotBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1.AclPolicy, + com.google.cloud.redis.cluster.v1.AclPolicy.Builder, + com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder>( + getSnapshot(), getParentForChildren(), isClean()); + snapshot_ = null; + } + return snapshotBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.LazyStringArrayList attachedClusters_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAttachedClustersIsMutable() { + if (!attachedClusters_.isModifiable()) { + attachedClusters_ = new com.google.protobuf.LazyStringArrayList(attachedClusters_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
          +     * Output only. A list of clusters that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the attachedClusters. + */ + public com.google.protobuf.ProtocolStringList getAttachedClustersList() { + attachedClusters_.makeImmutable(); + return attachedClusters_; + } + + /** + * + * + *
          +     * Output only. A list of clusters that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of attachedClusters. + */ + public int getAttachedClustersCount() { + return attachedClusters_.size(); + } + + /** + * + * + *
          +     * Output only. A list of clusters that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The attachedClusters at the given index. + */ + public java.lang.String getAttachedClusters(int index) { + return attachedClusters_.get(index); + } + + /** + * + * + *
          +     * Output only. A list of clusters that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the attachedClusters at the given index. + */ + public com.google.protobuf.ByteString getAttachedClustersBytes(int index) { + return attachedClusters_.getByteString(index); + } + + /** + * + * + *
          +     * Output only. A list of clusters that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The attachedClusters to set. + * @return This builder for chaining. + */ + public Builder setAttachedClusters(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachedClustersIsMutable(); + attachedClusters_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. A list of clusters that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The attachedClusters to add. + * @return This builder for chaining. + */ + public Builder addAttachedClusters(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachedClustersIsMutable(); + attachedClusters_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. A list of clusters that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param values The attachedClusters to add. + * @return This builder for chaining. + */ + public Builder addAllAttachedClusters(java.lang.Iterable values) { + ensureAttachedClustersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attachedClusters_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. A list of clusters that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAttachedClusters() { + attachedClusters_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. A list of clusters that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the attachedClusters to add. + * @return This builder for chaining. + */ + public Builder addAttachedClustersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAttachedClustersIsMutable(); + attachedClusters_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.AclPolicyRevision) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.AclPolicyRevision) + private static final com.google.cloud.redis.cluster.v1.AclPolicyRevision DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.AclPolicyRevision(); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyRevision getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AclPolicyRevision 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.redis.cluster.v1.AclPolicyRevision getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyRevisionName.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyRevisionName.java new file mode 100644 index 000000000000..404ea2a7edb9 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyRevisionName.java @@ -0,0 +1,264 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class AclPolicyRevisionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ACL_POLICY_REVISION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String aclPolicy; + private final String revision; + + @Deprecated + protected AclPolicyRevisionName() { + project = null; + location = null; + aclPolicy = null; + revision = null; + } + + private AclPolicyRevisionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + aclPolicy = Preconditions.checkNotNull(builder.getAclPolicy()); + revision = Preconditions.checkNotNull(builder.getRevision()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAclPolicy() { + return aclPolicy; + } + + public String getRevision() { + return revision; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AclPolicyRevisionName of( + String project, String location, String aclPolicy, String revision) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAclPolicy(aclPolicy) + .setRevision(revision) + .build(); + } + + public static String format(String project, String location, String aclPolicy, String revision) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAclPolicy(aclPolicy) + .setRevision(revision) + .build() + .toString(); + } + + public static @Nullable AclPolicyRevisionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ACL_POLICY_REVISION.validatedMatch( + formattedString, "AclPolicyRevisionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("acl_policy"), + matchMap.get("revision")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List<@Nullable AclPolicyRevisionName> values) { + List list = new ArrayList<>(values.size()); + for (AclPolicyRevisionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ACL_POLICY_REVISION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (aclPolicy != null) { + fieldMapBuilder.put("acl_policy", aclPolicy); + } + if (revision != null) { + fieldMapBuilder.put("revision", revision); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ACL_POLICY_REVISION.instantiate( + "project", project, "location", location, "acl_policy", aclPolicy, "revision", revision); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AclPolicyRevisionName that = ((AclPolicyRevisionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.aclPolicy, that.aclPolicy) + && Objects.equals(this.revision, that.revision); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(aclPolicy); + h *= 1000003; + h ^= Objects.hashCode(revision); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}. + */ + public static class Builder { + private String project; + private String location; + private String aclPolicy; + private String revision; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAclPolicy() { + return aclPolicy; + } + + public String getRevision() { + return revision; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAclPolicy(String aclPolicy) { + this.aclPolicy = aclPolicy; + return this; + } + + public Builder setRevision(String revision) { + this.revision = revision; + return this; + } + + private Builder(AclPolicyRevisionName aclPolicyRevisionName) { + this.project = aclPolicyRevisionName.project; + this.location = aclPolicyRevisionName.location; + this.aclPolicy = aclPolicyRevisionName.aclPolicy; + this.revision = aclPolicyRevisionName.revision; + } + + public AclPolicyRevisionName build() { + return new AclPolicyRevisionName(this); + } + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyRevisionOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyRevisionOrBuilder.java new file mode 100644 index 000000000000..bf83855fb21a --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyRevisionOrBuilder.java @@ -0,0 +1,223 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface AclPolicyRevisionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.AclPolicyRevision) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Identifier. The name of the ACL policy revision.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Identifier. The name of the ACL policy revision.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Output only. The revision number of the ACL policy revision.
          +   * 
          + * + * int64 revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revisionNumber. + */ + long getRevisionNumber(); + + /** + * + * + *
          +   * Output only. The snapshot of the ACL policy at the time of revision
          +   * creation.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + boolean hasSnapshot(); + + /** + * + * + *
          +   * Output only. The snapshot of the ACL policy at the time of revision
          +   * creation.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + com.google.cloud.redis.cluster.v1.AclPolicy getSnapshot(); + + /** + * + * + *
          +   * Output only. The snapshot of the ACL policy at the time of revision
          +   * creation.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder getSnapshotOrBuilder(); + + /** + * + * + *
          +   * Output only. The timestamp that the revision was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
          +   * Output only. The timestamp that the revision was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
          +   * Output only. The timestamp that the revision was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. A list of clusters that are attached to this ACL policy
          +   * revision.
          +   * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the attachedClusters. + */ + java.util.List getAttachedClustersList(); + + /** + * + * + *
          +   * Output only. A list of clusters that are attached to this ACL policy
          +   * revision.
          +   * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of attachedClusters. + */ + int getAttachedClustersCount(); + + /** + * + * + *
          +   * Output only. A list of clusters that are attached to this ACL policy
          +   * revision.
          +   * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The attachedClusters at the given index. + */ + java.lang.String getAttachedClusters(int index); + + /** + * + * + *
          +   * Output only. A list of clusters that are attached to this ACL policy
          +   * revision.
          +   * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the attachedClusters at the given index. + */ + com.google.protobuf.ByteString getAttachedClustersBytes(int index); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyRevisionStatus.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyRevisionStatus.java new file mode 100644 index 000000000000..01f86479c617 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyRevisionStatus.java @@ -0,0 +1,1298 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * AclPolicyRevisionStatus stores the per-revision status for an attached
          + * cluster.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.AclPolicyRevisionStatus} + */ +@com.google.protobuf.Generated +public final class AclPolicyRevisionStatus extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.AclPolicyRevisionStatus) + AclPolicyRevisionStatusOrBuilder { + 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= */ "", + "AclPolicyRevisionStatus"); + } + + // Use AclPolicyRevisionStatus.newBuilder() to construct. + private AclPolicyRevisionStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AclPolicyRevisionStatus() { + aclPolicyRevision_ = ""; + state_ = 0; + errorMessage_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclPolicyRevisionStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclPolicyRevisionStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.class, + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.Builder.class); + } + + /** + * + * + *
          +   * Enum indicating the status of this ACL policy revision on the cluster.
          +   * 
          + * + * Protobuf enum {@code google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Not set.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
          +     * The cluster is attempting to apply this revision.
          +     * 
          + * + * APPLYING = 1; + */ + APPLYING(1), + /** + * + * + *
          +     * The cluster has successfully applied this revision.
          +     * 
          + * + * APPLIED = 2; + */ + APPLIED(2), + /** + * + * + *
          +     * The cluster failed to apply this revision.
          +     * 
          + * + * FAILED = 3; + */ + FAILED(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
          +     * Not set.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
          +     * The cluster is attempting to apply this revision.
          +     * 
          + * + * APPLYING = 1; + */ + public static final int APPLYING_VALUE = 1; + + /** + * + * + *
          +     * The cluster has successfully applied this revision.
          +     * 
          + * + * APPLIED = 2; + */ + public static final int APPLIED_VALUE = 2; + + /** + * + * + *
          +     * The cluster failed to apply this revision.
          +     * 
          + * + * FAILED = 3; + */ + public static final int FAILED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return APPLYING; + case 2: + return APPLIED; + case 3: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.State) + } + + public static final int ACL_POLICY_REVISION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object aclPolicyRevision_ = ""; + + /** + * + * + *
          +   * Output only. The resource name of the ACL policy revision this status
          +   * refers to. Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The aclPolicyRevision. + */ + @java.lang.Override + public java.lang.String getAclPolicyRevision() { + java.lang.Object ref = aclPolicyRevision_; + 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(); + aclPolicyRevision_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. The resource name of the ACL policy revision this status
          +   * refers to. Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for aclPolicyRevision. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAclPolicyRevisionBytes() { + java.lang.Object ref = aclPolicyRevision_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aclPolicyRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACL_POLICY_REVISION_NUMBER_FIELD_NUMBER = 2; + private long aclPolicyRevisionNumber_ = 0L; + + /** + * + * + *
          +   * Output only. The revision number of the ACL policy revision this status
          +   * refers to.
          +   * 
          + * + * int64 acl_policy_revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The aclPolicyRevisionNumber. + */ + @java.lang.Override + public long getAclPolicyRevisionNumber() { + return aclPolicyRevisionNumber_; + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + + /** + * + * + *
          +   * Output only. AclPolicyRevision state.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
          +   * Output only. AclPolicyRevision state.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.State getState() { + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.State result = + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.State.forNumber(state_); + return result == null + ? com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.State.UNRECOGNIZED + : result; + } + + public static final int ERROR_MESSAGE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object errorMessage_ = ""; + + /** + * + * + *
          +   * Output only. Human-readable error message providing more details for FAILED
          +   * states.
          +   * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorMessage. + */ + @java.lang.Override + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + 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(); + errorMessage_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. Human-readable error message providing more details for FAILED
          +   * states.
          +   * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for errorMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(aclPolicyRevision_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, aclPolicyRevision_); + } + if (aclPolicyRevisionNumber_ != 0L) { + output.writeInt64(2, aclPolicyRevisionNumber_); + } + if (state_ + != com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, errorMessage_); + } + 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(aclPolicyRevision_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, aclPolicyRevision_); + } + if (aclPolicyRevisionNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, aclPolicyRevisionNumber_); + } + if (state_ + != com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, errorMessage_); + } + 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.redis.cluster.v1.AclPolicyRevisionStatus)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus other = + (com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus) obj; + + if (!getAclPolicyRevision().equals(other.getAclPolicyRevision())) return false; + if (getAclPolicyRevisionNumber() != other.getAclPolicyRevisionNumber()) return false; + if (state_ != other.state_) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) 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) + ACL_POLICY_REVISION_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicyRevision().hashCode(); + hash = (37 * hash) + ACL_POLICY_REVISION_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAclPolicyRevisionNumber()); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus 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.redis.cluster.v1.AclPolicyRevisionStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus 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.redis.cluster.v1.AclPolicyRevisionStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus 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.redis.cluster.v1.AclPolicyRevisionStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus 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.redis.cluster.v1.AclPolicyRevisionStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus 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.redis.cluster.v1.AclPolicyRevisionStatus 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; + } + + /** + * + * + *
          +   * AclPolicyRevisionStatus stores the per-revision status for an attached
          +   * cluster.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.AclPolicyRevisionStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.AclPolicyRevisionStatus) + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclPolicyRevisionStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclPolicyRevisionStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.class, + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + aclPolicyRevision_ = ""; + aclPolicyRevisionNumber_ = 0L; + state_ = 0; + errorMessage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclPolicyRevisionStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus build() { + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus buildPartial() { + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus result = + new com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.aclPolicyRevision_ = aclPolicyRevision_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.aclPolicyRevisionNumber_ = aclPolicyRevisionNumber_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.errorMessage_ = errorMessage_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus) { + return mergeFrom((com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus other) { + if (other == com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.getDefaultInstance()) + return this; + if (!other.getAclPolicyRevision().isEmpty()) { + aclPolicyRevision_ = other.aclPolicyRevision_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getAclPolicyRevisionNumber() != 0L) { + setAclPolicyRevisionNumber(other.getAclPolicyRevisionNumber()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + bitField0_ |= 0x00000008; + 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: + { + aclPolicyRevision_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + aclPolicyRevisionNumber_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object aclPolicyRevision_ = ""; + + /** + * + * + *
          +     * Output only. The resource name of the ACL policy revision this status
          +     * refers to. Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The aclPolicyRevision. + */ + public java.lang.String getAclPolicyRevision() { + java.lang.Object ref = aclPolicyRevision_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + aclPolicyRevision_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the ACL policy revision this status
          +     * refers to. Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for aclPolicyRevision. + */ + public com.google.protobuf.ByteString getAclPolicyRevisionBytes() { + java.lang.Object ref = aclPolicyRevision_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aclPolicyRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the ACL policy revision this status
          +     * refers to. Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The aclPolicyRevision to set. + * @return This builder for chaining. + */ + public Builder setAclPolicyRevision(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + aclPolicyRevision_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the ACL policy revision this status
          +     * refers to. Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAclPolicyRevision() { + aclPolicyRevision_ = getDefaultInstance().getAclPolicyRevision(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the ACL policy revision this status
          +     * refers to. Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for aclPolicyRevision to set. + * @return This builder for chaining. + */ + public Builder setAclPolicyRevisionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + aclPolicyRevision_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long aclPolicyRevisionNumber_; + + /** + * + * + *
          +     * Output only. The revision number of the ACL policy revision this status
          +     * refers to.
          +     * 
          + * + * int64 acl_policy_revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The aclPolicyRevisionNumber. + */ + @java.lang.Override + public long getAclPolicyRevisionNumber() { + return aclPolicyRevisionNumber_; + } + + /** + * + * + *
          +     * Output only. The revision number of the ACL policy revision this status
          +     * refers to.
          +     * 
          + * + * int64 acl_policy_revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The aclPolicyRevisionNumber to set. + * @return This builder for chaining. + */ + public Builder setAclPolicyRevisionNumber(long value) { + + aclPolicyRevisionNumber_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The revision number of the ACL policy revision this status
          +     * refers to.
          +     * 
          + * + * int64 acl_policy_revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAclPolicyRevisionNumber() { + bitField0_ = (bitField0_ & ~0x00000002); + aclPolicyRevisionNumber_ = 0L; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
          +     * Output only. AclPolicyRevision state.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
          +     * Output only. AclPolicyRevision state.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. AclPolicyRevision state.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.State getState() { + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.State result = + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.State.forNumber(state_); + return result == null + ? com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
          +     * Output only. AclPolicyRevision state.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. AclPolicyRevision state.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object errorMessage_ = ""; + + /** + * + * + *
          +     * Output only. Human-readable error message providing more details for FAILED
          +     * states.
          +     * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorMessage. + */ + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. Human-readable error message providing more details for FAILED
          +     * states.
          +     * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for errorMessage. + */ + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. Human-readable error message providing more details for FAILED
          +     * states.
          +     * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + errorMessage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Human-readable error message providing more details for FAILED
          +     * states.
          +     * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearErrorMessage() { + errorMessage_ = getDefaultInstance().getErrorMessage(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Human-readable error message providing more details for FAILED
          +     * states.
          +     * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.AclPolicyRevisionStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.AclPolicyRevisionStatus) + private static final com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus(); + } + + public static com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AclPolicyRevisionStatus 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.redis.cluster.v1.AclPolicyRevisionStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyRevisionStatusOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyRevisionStatusOrBuilder.java new file mode 100644 index 000000000000..fa9058354db1 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclPolicyRevisionStatusOrBuilder.java @@ -0,0 +1,134 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface AclPolicyRevisionStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.AclPolicyRevisionStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Output only. The resource name of the ACL policy revision this status
          +   * refers to. Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The aclPolicyRevision. + */ + java.lang.String getAclPolicyRevision(); + + /** + * + * + *
          +   * Output only. The resource name of the ACL policy revision this status
          +   * refers to. Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for aclPolicyRevision. + */ + com.google.protobuf.ByteString getAclPolicyRevisionBytes(); + + /** + * + * + *
          +   * Output only. The revision number of the ACL policy revision this status
          +   * refers to.
          +   * 
          + * + * int64 acl_policy_revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The aclPolicyRevisionNumber. + */ + long getAclPolicyRevisionNumber(); + + /** + * + * + *
          +   * Output only. AclPolicyRevision state.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
          +   * Output only. AclPolicyRevision state.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.State getState(); + + /** + * + * + *
          +   * Output only. Human-readable error message providing more details for FAILED
          +   * states.
          +   * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorMessage. + */ + java.lang.String getErrorMessage(); + + /** + * + * + *
          +   * Output only. Human-readable error message providing more details for FAILED
          +   * states.
          +   * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for errorMessage. + */ + com.google.protobuf.ByteString getErrorMessageBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclRule.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclRule.java new file mode 100644 index 000000000000..ed80905c1ae4 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclRule.java @@ -0,0 +1,805 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * A single ACL rule which defines the policy for a user.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.AclRule} + */ +@com.google.protobuf.Generated +public final class AclRule extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.AclRule) + AclRuleOrBuilder { + 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= */ "", + "AclRule"); + } + + // Use AclRule.newBuilder() to construct. + private AclRule(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AclRule() { + username_ = ""; + rule_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.AclRule.class, + com.google.cloud.redis.cluster.v1.AclRule.Builder.class); + } + + public static final int USERNAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object username_ = ""; + + /** + * + * + *
          +   * Required. Specifies the IAM user or service account to be added to the ACL
          +   * policy. This username will be directly set on the Redis OSS.
          +   * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + @java.lang.Override + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. Specifies the IAM user or service account to be added to the ACL
          +   * policy. This username will be directly set on the Redis OSS.
          +   * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RULE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object rule_ = ""; + + /** + * + * + *
          +   * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +   * +@all" The format of the rule is defined by Redis OSS:
          +   * https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
          +   * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rule. + */ + @java.lang.Override + public java.lang.String getRule() { + java.lang.Object ref = rule_; + 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(); + rule_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +   * +@all" The format of the rule is defined by Redis OSS:
          +   * https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
          +   * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRuleBytes() { + java.lang.Object ref = rule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, username_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rule_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, rule_); + } + 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(username_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, username_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rule_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, rule_); + } + 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.redis.cluster.v1.AclRule)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.AclRule other = + (com.google.cloud.redis.cluster.v1.AclRule) obj; + + if (!getUsername().equals(other.getUsername())) return false; + if (!getRule().equals(other.getRule())) 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) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + RULE_FIELD_NUMBER; + hash = (53 * hash) + getRule().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.AclRule parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AclRule 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.redis.cluster.v1.AclRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AclRule 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.redis.cluster.v1.AclRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AclRule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.AclRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AclRule 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.redis.cluster.v1.AclRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AclRule 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.redis.cluster.v1.AclRule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AclRule 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.redis.cluster.v1.AclRule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * A single ACL rule which defines the policy for a user.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.AclRule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.AclRule) + com.google.cloud.redis.cluster.v1.AclRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.AclRule.class, + com.google.cloud.redis.cluster.v1.AclRule.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.AclRule.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + username_ = ""; + rule_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AclRule_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclRule getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.AclRule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclRule build() { + com.google.cloud.redis.cluster.v1.AclRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclRule buildPartial() { + com.google.cloud.redis.cluster.v1.AclRule result = + new com.google.cloud.redis.cluster.v1.AclRule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.AclRule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.username_ = username_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rule_ = rule_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.AclRule) { + return mergeFrom((com.google.cloud.redis.cluster.v1.AclRule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.AclRule other) { + if (other == com.google.cloud.redis.cluster.v1.AclRule.getDefaultInstance()) return this; + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRule().isEmpty()) { + rule_ = other.rule_; + bitField0_ |= 0x00000002; + 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: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + rule_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object username_ = ""; + + /** + * + * + *
          +     * Required. Specifies the IAM user or service account to be added to the ACL
          +     * policy. This username will be directly set on the Redis OSS.
          +     * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. Specifies the IAM user or service account to be added to the ACL
          +     * policy. This username will be directly set on the Redis OSS.
          +     * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. Specifies the IAM user or service account to be added to the ACL
          +     * policy. This username will be directly set on the Redis OSS.
          +     * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The username to set. + * @return This builder for chaining. + */ + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + username_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Specifies the IAM user or service account to be added to the ACL
          +     * policy. This username will be directly set on the Redis OSS.
          +     * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUsername() { + username_ = getDefaultInstance().getUsername(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Specifies the IAM user or service account to be added to the ACL
          +     * policy. This username will be directly set on the Redis OSS.
          +     * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for username to set. + * @return This builder for chaining. + */ + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object rule_ = ""; + + /** + * + * + *
          +     * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +     * +@all" The format of the rule is defined by Redis OSS:
          +     * https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
          +     * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rule. + */ + public java.lang.String getRule() { + java.lang.Object ref = rule_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rule_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +     * +@all" The format of the rule is defined by Redis OSS:
          +     * https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
          +     * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rule. + */ + public com.google.protobuf.ByteString getRuleBytes() { + java.lang.Object ref = rule_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +     * +@all" The format of the rule is defined by Redis OSS:
          +     * https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
          +     * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The rule to set. + * @return This builder for chaining. + */ + public Builder setRule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rule_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +     * +@all" The format of the rule is defined by Redis OSS:
          +     * https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
          +     * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRule() { + rule_ = getDefaultInstance().getRule(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +     * +@all" The format of the rule is defined by Redis OSS:
          +     * https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
          +     * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for rule to set. + * @return This builder for chaining. + */ + public Builder setRuleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rule_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.AclRule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.AclRule) + private static final com.google.cloud.redis.cluster.v1.AclRule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.AclRule(); + } + + public static com.google.cloud.redis.cluster.v1.AclRule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AclRule 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.redis.cluster.v1.AclRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclRuleOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclRuleOrBuilder.java new file mode 100644 index 000000000000..aad401d25c77 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AclRuleOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface AclRuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.AclRule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Specifies the IAM user or service account to be added to the ACL
          +   * policy. This username will be directly set on the Redis OSS.
          +   * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + java.lang.String getUsername(); + + /** + * + * + *
          +   * Required. Specifies the IAM user or service account to be added to the ACL
          +   * policy. This username will be directly set on the Redis OSS.
          +   * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + com.google.protobuf.ByteString getUsernameBytes(); + + /** + * + * + *
          +   * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +   * +@all" The format of the rule is defined by Redis OSS:
          +   * https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
          +   * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rule. + */ + java.lang.String getRule(); + + /** + * + * + *
          +   * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +   * +@all" The format of the rule is defined by Redis OSS:
          +   * https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
          +   * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rule. + */ + com.google.protobuf.ByteString getRuleBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AddAuthTokenRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AddAuthTokenRequest.java new file mode 100644 index 000000000000..c58f2f3e5819 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AddAuthTokenRequest.java @@ -0,0 +1,942 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * Request message for [AddAuthToken][].
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.AddAuthTokenRequest} + */ +@com.google.protobuf.Generated +public final class AddAuthTokenRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.AddAuthTokenRequest) + AddAuthTokenRequestOrBuilder { + 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= */ "", + "AddAuthTokenRequest"); + } + + // Use AddAuthTokenRequest.newBuilder() to construct. + private AddAuthTokenRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AddAuthTokenRequest() { + tokenAuthUser_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AddAuthTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AddAuthTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.AddAuthTokenRequest.class, + com.google.cloud.redis.cluster.v1.AddAuthTokenRequest.Builder.class); + } + + private int bitField0_; + public static final int TOKEN_AUTH_USER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object tokenAuthUser_ = ""; + + /** + * + * + *
          +   * Required. The name of the token auth user resource that this auth token
          +   * will be added for. Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +   * 
          + * + * + * string token_auth_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The tokenAuthUser. + */ + @java.lang.Override + public java.lang.String getTokenAuthUser() { + java.lang.Object ref = tokenAuthUser_; + 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(); + tokenAuthUser_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The name of the token auth user resource that this auth token
          +   * will be added for. Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +   * 
          + * + * + * string token_auth_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tokenAuthUser. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTokenAuthUserBytes() { + java.lang.Object ref = tokenAuthUser_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tokenAuthUser_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTH_TOKEN_FIELD_NUMBER = 2; + private com.google.cloud.redis.cluster.v1.AuthToken authToken_; + + /** + * + * + *
          +   * Required. The auth token to add.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AuthToken auth_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authToken field is set. + */ + @java.lang.Override + public boolean hasAuthToken() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Required. The auth token to add.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AuthToken auth_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authToken. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AuthToken getAuthToken() { + return authToken_ == null + ? com.google.cloud.redis.cluster.v1.AuthToken.getDefaultInstance() + : authToken_; + } + + /** + * + * + *
          +   * Required. The auth token to add.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AuthToken auth_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AuthTokenOrBuilder getAuthTokenOrBuilder() { + return authToken_ == null + ? com.google.cloud.redis.cluster.v1.AuthToken.getDefaultInstance() + : authToken_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenAuthUser_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, tokenAuthUser_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getAuthToken()); + } + 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(tokenAuthUser_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, tokenAuthUser_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAuthToken()); + } + 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.redis.cluster.v1.AddAuthTokenRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.AddAuthTokenRequest other = + (com.google.cloud.redis.cluster.v1.AddAuthTokenRequest) obj; + + if (!getTokenAuthUser().equals(other.getTokenAuthUser())) return false; + if (hasAuthToken() != other.hasAuthToken()) return false; + if (hasAuthToken()) { + if (!getAuthToken().equals(other.getAuthToken())) 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) + TOKEN_AUTH_USER_FIELD_NUMBER; + hash = (53 * hash) + getTokenAuthUser().hashCode(); + if (hasAuthToken()) { + hash = (37 * hash) + AUTH_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getAuthToken().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.AddAuthTokenRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AddAuthTokenRequest 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.redis.cluster.v1.AddAuthTokenRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AddAuthTokenRequest 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.redis.cluster.v1.AddAuthTokenRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AddAuthTokenRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.AddAuthTokenRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AddAuthTokenRequest 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.redis.cluster.v1.AddAuthTokenRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AddAuthTokenRequest 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.redis.cluster.v1.AddAuthTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AddAuthTokenRequest 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.redis.cluster.v1.AddAuthTokenRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request message for [AddAuthToken][].
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.AddAuthTokenRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.AddAuthTokenRequest) + com.google.cloud.redis.cluster.v1.AddAuthTokenRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AddAuthTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AddAuthTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.AddAuthTokenRequest.class, + com.google.cloud.redis.cluster.v1.AddAuthTokenRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.AddAuthTokenRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAuthTokenFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tokenAuthUser_ = ""; + authToken_ = null; + if (authTokenBuilder_ != null) { + authTokenBuilder_.dispose(); + authTokenBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AddAuthTokenRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AddAuthTokenRequest getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.AddAuthTokenRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AddAuthTokenRequest build() { + com.google.cloud.redis.cluster.v1.AddAuthTokenRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AddAuthTokenRequest buildPartial() { + com.google.cloud.redis.cluster.v1.AddAuthTokenRequest result = + new com.google.cloud.redis.cluster.v1.AddAuthTokenRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.AddAuthTokenRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tokenAuthUser_ = tokenAuthUser_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.authToken_ = authTokenBuilder_ == null ? authToken_ : authTokenBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.AddAuthTokenRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1.AddAuthTokenRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.AddAuthTokenRequest other) { + if (other == com.google.cloud.redis.cluster.v1.AddAuthTokenRequest.getDefaultInstance()) + return this; + if (!other.getTokenAuthUser().isEmpty()) { + tokenAuthUser_ = other.tokenAuthUser_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasAuthToken()) { + mergeAuthToken(other.getAuthToken()); + } + 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: + { + tokenAuthUser_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetAuthTokenFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object tokenAuthUser_ = ""; + + /** + * + * + *
          +     * Required. The name of the token auth user resource that this auth token
          +     * will be added for. Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * + * string token_auth_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The tokenAuthUser. + */ + public java.lang.String getTokenAuthUser() { + java.lang.Object ref = tokenAuthUser_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenAuthUser_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The name of the token auth user resource that this auth token
          +     * will be added for. Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * + * string token_auth_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tokenAuthUser. + */ + public com.google.protobuf.ByteString getTokenAuthUserBytes() { + java.lang.Object ref = tokenAuthUser_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tokenAuthUser_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The name of the token auth user resource that this auth token
          +     * will be added for. Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * + * string token_auth_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The tokenAuthUser to set. + * @return This builder for chaining. + */ + public Builder setTokenAuthUser(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tokenAuthUser_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The name of the token auth user resource that this auth token
          +     * will be added for. Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * + * string token_auth_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTokenAuthUser() { + tokenAuthUser_ = getDefaultInstance().getTokenAuthUser(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The name of the token auth user resource that this auth token
          +     * will be added for. Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * + * string token_auth_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for tokenAuthUser to set. + * @return This builder for chaining. + */ + public Builder setTokenAuthUserBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tokenAuthUser_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.redis.cluster.v1.AuthToken authToken_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1.AuthToken, + com.google.cloud.redis.cluster.v1.AuthToken.Builder, + com.google.cloud.redis.cluster.v1.AuthTokenOrBuilder> + authTokenBuilder_; + + /** + * + * + *
          +     * Required. The auth token to add.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AuthToken auth_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authToken field is set. + */ + public boolean hasAuthToken() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +     * Required. The auth token to add.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AuthToken auth_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authToken. + */ + public com.google.cloud.redis.cluster.v1.AuthToken getAuthToken() { + if (authTokenBuilder_ == null) { + return authToken_ == null + ? com.google.cloud.redis.cluster.v1.AuthToken.getDefaultInstance() + : authToken_; + } else { + return authTokenBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Required. The auth token to add.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AuthToken auth_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthToken(com.google.cloud.redis.cluster.v1.AuthToken value) { + if (authTokenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authToken_ = value; + } else { + authTokenBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The auth token to add.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AuthToken auth_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthToken( + com.google.cloud.redis.cluster.v1.AuthToken.Builder builderForValue) { + if (authTokenBuilder_ == null) { + authToken_ = builderForValue.build(); + } else { + authTokenBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The auth token to add.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AuthToken auth_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAuthToken(com.google.cloud.redis.cluster.v1.AuthToken value) { + if (authTokenBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && authToken_ != null + && authToken_ != com.google.cloud.redis.cluster.v1.AuthToken.getDefaultInstance()) { + getAuthTokenBuilder().mergeFrom(value); + } else { + authToken_ = value; + } + } else { + authTokenBuilder_.mergeFrom(value); + } + if (authToken_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Required. The auth token to add.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AuthToken auth_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAuthToken() { + bitField0_ = (bitField0_ & ~0x00000002); + authToken_ = null; + if (authTokenBuilder_ != null) { + authTokenBuilder_.dispose(); + authTokenBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The auth token to add.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AuthToken auth_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.redis.cluster.v1.AuthToken.Builder getAuthTokenBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetAuthTokenFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Required. The auth token to add.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AuthToken auth_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.redis.cluster.v1.AuthTokenOrBuilder getAuthTokenOrBuilder() { + if (authTokenBuilder_ != null) { + return authTokenBuilder_.getMessageOrBuilder(); + } else { + return authToken_ == null + ? com.google.cloud.redis.cluster.v1.AuthToken.getDefaultInstance() + : authToken_; + } + } + + /** + * + * + *
          +     * Required. The auth token to add.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AuthToken auth_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1.AuthToken, + com.google.cloud.redis.cluster.v1.AuthToken.Builder, + com.google.cloud.redis.cluster.v1.AuthTokenOrBuilder> + internalGetAuthTokenFieldBuilder() { + if (authTokenBuilder_ == null) { + authTokenBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1.AuthToken, + com.google.cloud.redis.cluster.v1.AuthToken.Builder, + com.google.cloud.redis.cluster.v1.AuthTokenOrBuilder>( + getAuthToken(), getParentForChildren(), isClean()); + authToken_ = null; + } + return authTokenBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.AddAuthTokenRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.AddAuthTokenRequest) + private static final com.google.cloud.redis.cluster.v1.AddAuthTokenRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.AddAuthTokenRequest(); + } + + public static com.google.cloud.redis.cluster.v1.AddAuthTokenRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddAuthTokenRequest 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.redis.cluster.v1.AddAuthTokenRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AddAuthTokenRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AddAuthTokenRequestOrBuilder.java new file mode 100644 index 000000000000..85f2eed6cf86 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AddAuthTokenRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface AddAuthTokenRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.AddAuthTokenRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The name of the token auth user resource that this auth token
          +   * will be added for. Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +   * 
          + * + * + * string token_auth_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The tokenAuthUser. + */ + java.lang.String getTokenAuthUser(); + + /** + * + * + *
          +   * Required. The name of the token auth user resource that this auth token
          +   * will be added for. Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +   * 
          + * + * + * string token_auth_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tokenAuthUser. + */ + com.google.protobuf.ByteString getTokenAuthUserBytes(); + + /** + * + * + *
          +   * Required. The auth token to add.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AuthToken auth_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authToken field is set. + */ + boolean hasAuthToken(); + + /** + * + * + *
          +   * Required. The auth token to add.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AuthToken auth_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authToken. + */ + com.google.cloud.redis.cluster.v1.AuthToken getAuthToken(); + + /** + * + * + *
          +   * Required. The auth token to add.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AuthToken auth_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.redis.cluster.v1.AuthTokenOrBuilder getAuthTokenOrBuilder(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AddTokenAuthUserRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AddTokenAuthUserRequest.java new file mode 100644 index 000000000000..173d05d2f41a --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AddTokenAuthUserRequest.java @@ -0,0 +1,821 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * Request message for [AddTokenAuthUser][].
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.AddTokenAuthUserRequest} + */ +@com.google.protobuf.Generated +public final class AddTokenAuthUserRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.AddTokenAuthUserRequest) + AddTokenAuthUserRequestOrBuilder { + 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= */ "", + "AddTokenAuthUserRequest"); + } + + // Use AddTokenAuthUserRequest.newBuilder() to construct. + private AddTokenAuthUserRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AddTokenAuthUserRequest() { + cluster_ = ""; + tokenAuthUser_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AddTokenAuthUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AddTokenAuthUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest.class, + com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest.Builder.class); + } + + public static final int CLUSTER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object cluster_ = ""; + + /** + * + * + *
          +   * Required. The cluster resource that this token auth user will be added for.
          +   * Format: projects/{project}/locations/{location}/clusters/{cluster}
          +   * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The cluster. + */ + @java.lang.Override + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + 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(); + cluster_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The cluster resource that this token auth user will be added for.
          +   * Format: projects/{project}/locations/{location}/clusters/{cluster}
          +   * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cluster. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOKEN_AUTH_USER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object tokenAuthUser_ = ""; + + /** + * + * + *
          +   * Required. The id of the token auth user to add.
          +   * 
          + * + * + * string token_auth_user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The tokenAuthUser. + */ + @java.lang.Override + public java.lang.String getTokenAuthUser() { + java.lang.Object ref = tokenAuthUser_; + 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(); + tokenAuthUser_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The id of the token auth user to add.
          +   * 
          + * + * + * string token_auth_user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tokenAuthUser. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTokenAuthUserBytes() { + java.lang.Object ref = tokenAuthUser_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tokenAuthUser_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cluster_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, cluster_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenAuthUser_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, tokenAuthUser_); + } + 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(cluster_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, cluster_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenAuthUser_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, tokenAuthUser_); + } + 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.redis.cluster.v1.AddTokenAuthUserRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest other = + (com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest) obj; + + if (!getCluster().equals(other.getCluster())) return false; + if (!getTokenAuthUser().equals(other.getTokenAuthUser())) 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) + CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getCluster().hashCode(); + hash = (37 * hash) + TOKEN_AUTH_USER_FIELD_NUMBER; + hash = (53 * hash) + getTokenAuthUser().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest 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.redis.cluster.v1.AddTokenAuthUserRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest 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.redis.cluster.v1.AddTokenAuthUserRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest 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.redis.cluster.v1.AddTokenAuthUserRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest 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.redis.cluster.v1.AddTokenAuthUserRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest 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.redis.cluster.v1.AddTokenAuthUserRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request message for [AddTokenAuthUser][].
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.AddTokenAuthUserRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.AddTokenAuthUserRequest) + com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AddTokenAuthUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AddTokenAuthUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest.class, + com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cluster_ = ""; + tokenAuthUser_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AddTokenAuthUserRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest build() { + com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest buildPartial() { + com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest result = + new com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cluster_ = cluster_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tokenAuthUser_ = tokenAuthUser_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest other) { + if (other == com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest.getDefaultInstance()) + return this; + if (!other.getCluster().isEmpty()) { + cluster_ = other.cluster_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTokenAuthUser().isEmpty()) { + tokenAuthUser_ = other.tokenAuthUser_; + bitField0_ |= 0x00000002; + 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: + { + cluster_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + tokenAuthUser_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object cluster_ = ""; + + /** + * + * + *
          +     * Required. The cluster resource that this token auth user will be added for.
          +     * Format: projects/{project}/locations/{location}/clusters/{cluster}
          +     * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The cluster. + */ + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The cluster resource that this token auth user will be added for.
          +     * Format: projects/{project}/locations/{location}/clusters/{cluster}
          +     * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cluster. + */ + public com.google.protobuf.ByteString getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The cluster resource that this token auth user will be added for.
          +     * Format: projects/{project}/locations/{location}/clusters/{cluster}
          +     * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The cluster to set. + * @return This builder for chaining. + */ + public Builder setCluster(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cluster_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The cluster resource that this token auth user will be added for.
          +     * Format: projects/{project}/locations/{location}/clusters/{cluster}
          +     * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCluster() { + cluster_ = getDefaultInstance().getCluster(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The cluster resource that this token auth user will be added for.
          +     * Format: projects/{project}/locations/{location}/clusters/{cluster}
          +     * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cluster to set. + * @return This builder for chaining. + */ + public Builder setClusterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cluster_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object tokenAuthUser_ = ""; + + /** + * + * + *
          +     * Required. The id of the token auth user to add.
          +     * 
          + * + * + * string token_auth_user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The tokenAuthUser. + */ + public java.lang.String getTokenAuthUser() { + java.lang.Object ref = tokenAuthUser_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenAuthUser_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The id of the token auth user to add.
          +     * 
          + * + * + * string token_auth_user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tokenAuthUser. + */ + public com.google.protobuf.ByteString getTokenAuthUserBytes() { + java.lang.Object ref = tokenAuthUser_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tokenAuthUser_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The id of the token auth user to add.
          +     * 
          + * + * + * string token_auth_user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The tokenAuthUser to set. + * @return This builder for chaining. + */ + public Builder setTokenAuthUser(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tokenAuthUser_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The id of the token auth user to add.
          +     * 
          + * + * + * string token_auth_user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTokenAuthUser() { + tokenAuthUser_ = getDefaultInstance().getTokenAuthUser(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The id of the token auth user to add.
          +     * 
          + * + * + * string token_auth_user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for tokenAuthUser to set. + * @return This builder for chaining. + */ + public Builder setTokenAuthUserBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tokenAuthUser_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.AddTokenAuthUserRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.AddTokenAuthUserRequest) + private static final com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest(); + } + + public static com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddTokenAuthUserRequest 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.redis.cluster.v1.AddTokenAuthUserRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AddTokenAuthUserRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AddTokenAuthUserRequestOrBuilder.java new file mode 100644 index 000000000000..4df1e51292e8 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AddTokenAuthUserRequestOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface AddTokenAuthUserRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.AddTokenAuthUserRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The cluster resource that this token auth user will be added for.
          +   * Format: projects/{project}/locations/{location}/clusters/{cluster}
          +   * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The cluster. + */ + java.lang.String getCluster(); + + /** + * + * + *
          +   * Required. The cluster resource that this token auth user will be added for.
          +   * Format: projects/{project}/locations/{location}/clusters/{cluster}
          +   * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cluster. + */ + com.google.protobuf.ByteString getClusterBytes(); + + /** + * + * + *
          +   * Required. The id of the token auth user to add.
          +   * 
          + * + * + * string token_auth_user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The tokenAuthUser. + */ + java.lang.String getTokenAuthUser(); + + /** + * + * + *
          +   * Required. The id of the token auth user to add.
          +   * 
          + * + * + * string token_auth_user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tokenAuthUser. + */ + com.google.protobuf.ByteString getTokenAuthUserBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AuthToken.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AuthToken.java new file mode 100644 index 000000000000..3df9385ab48d --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AuthToken.java @@ -0,0 +1,1478 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * Auth token for the cluster.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.AuthToken} + */ +@com.google.protobuf.Generated +public final class AuthToken extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.AuthToken) + AuthTokenOrBuilder { + 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= */ "", + "AuthToken"); + } + + // Use AuthToken.newBuilder() to construct. + private AuthToken(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AuthToken() { + name_ = ""; + token_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AuthToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AuthToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.AuthToken.class, + com.google.cloud.redis.cluster.v1.AuthToken.Builder.class); + } + + /** + * + * + *
          +   * Represents the different states of an auth token.
          +   * New values may be added in the future.
          +   * 
          + * + * Protobuf enum {@code google.cloud.redis.cluster.v1.AuthToken.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Not set.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
          +     * The auth token is active.
          +     * 
          + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
          +     * The auth token is being created.
          +     * 
          + * + * CREATING = 2; + */ + CREATING(2), + /** + * + * + *
          +     * The auth token is being deleted.
          +     * 
          + * + * DELETING = 3; + */ + DELETING(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
          +     * Not set.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
          +     * The auth token is active.
          +     * 
          + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
          +     * The auth token is being created.
          +     * 
          + * + * CREATING = 2; + */ + public static final int CREATING_VALUE = 2; + + /** + * + * + *
          +     * The auth token is being deleted.
          +     * 
          + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return CREATING; + case 3: + return DELETING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.AuthToken.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1.AuthToken.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Identifier. Name of the auth token.
          +   * Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Identifier. Name of the auth token.
          +   * Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object token_ = ""; + + /** + * + * + *
          +   * Output only. The service generated authentication token used to connect to
          +   * the Redis cluster.
          +   * 
          + * + * string token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The token. + */ + @java.lang.Override + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. The service generated authentication token used to connect to
          +   * the Redis cluster.
          +   * 
          + * + * string token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for token. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
          +   * Output only. Create time of the auth token.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Output only. Create time of the auth token.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
          +   * Output only. Create time of the auth token.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_ = 0; + + /** + * + * + *
          +   * Output only. State of the auth token.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AuthToken.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
          +   * Output only. State of the auth token.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AuthToken.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AuthToken.State getState() { + com.google.cloud.redis.cluster.v1.AuthToken.State result = + com.google.cloud.redis.cluster.v1.AuthToken.State.forNumber(state_); + return result == null ? com.google.cloud.redis.cluster.v1.AuthToken.State.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(token_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, token_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (state_ != com.google.cloud.redis.cluster.v1.AuthToken.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(token_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, token_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (state_ != com.google.cloud.redis.cluster.v1.AuthToken.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + 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.redis.cluster.v1.AuthToken)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.AuthToken other = + (com.google.cloud.redis.cluster.v1.AuthToken) obj; + + if (!getName().equals(other.getName())) return false; + if (!getToken().equals(other.getToken())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (state_ != other.state_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.AuthToken parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AuthToken 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.redis.cluster.v1.AuthToken parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AuthToken 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.redis.cluster.v1.AuthToken parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AuthToken parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.AuthToken parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AuthToken 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.redis.cluster.v1.AuthToken parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AuthToken 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.redis.cluster.v1.AuthToken parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AuthToken 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.redis.cluster.v1.AuthToken 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; + } + + /** + * + * + *
          +   * Auth token for the cluster.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.AuthToken} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.AuthToken) + com.google.cloud.redis.cluster.v1.AuthTokenOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AuthToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AuthToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.AuthToken.class, + com.google.cloud.redis.cluster.v1.AuthToken.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.AuthToken.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + token_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AuthToken_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AuthToken getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.AuthToken.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AuthToken build() { + com.google.cloud.redis.cluster.v1.AuthToken result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AuthToken buildPartial() { + com.google.cloud.redis.cluster.v1.AuthToken result = + new com.google.cloud.redis.cluster.v1.AuthToken(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.AuthToken result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.token_ = token_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.AuthToken) { + return mergeFrom((com.google.cloud.redis.cluster.v1.AuthToken) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.AuthToken other) { + if (other == com.google.cloud.redis.cluster.v1.AuthToken.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + token_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Identifier. Name of the auth token.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Identifier. Name of the auth token.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Identifier. Name of the auth token.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Identifier. Name of the auth token.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Identifier. Name of the auth token.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + + /** + * + * + *
          +     * Output only. The service generated authentication token used to connect to
          +     * the Redis cluster.
          +     * 
          + * + * string token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The token. + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. The service generated authentication token used to connect to
          +     * the Redis cluster.
          +     * 
          + * + * string token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for token. + */ + public com.google.protobuf.ByteString getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. The service generated authentication token used to connect to
          +     * the Redis cluster.
          +     * 
          + * + * string token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The token to set. + * @return This builder for chaining. + */ + public Builder setToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + token_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The service generated authentication token used to connect to
          +     * the Redis cluster.
          +     * 
          + * + * string token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearToken() { + token_ = getDefaultInstance().getToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The service generated authentication token used to connect to
          +     * the Redis cluster.
          +     * 
          + * + * string token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for token to set. + * @return This builder for chaining. + */ + public Builder setTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + token_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
          +     * Output only. Create time of the auth token.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
          +     * Output only. Create time of the auth token.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. Create time of the auth token.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Create time of the auth token.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Create time of the auth token.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. Create time of the auth token.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Create time of the auth token.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. Create time of the auth token.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
          +     * Output only. Create time of the auth token.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
          +     * Output only. State of the auth token.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AuthToken.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
          +     * Output only. State of the auth token.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AuthToken.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. State of the auth token.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AuthToken.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AuthToken.State getState() { + com.google.cloud.redis.cluster.v1.AuthToken.State result = + com.google.cloud.redis.cluster.v1.AuthToken.State.forNumber(state_); + return result == null + ? com.google.cloud.redis.cluster.v1.AuthToken.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
          +     * Output only. State of the auth token.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AuthToken.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.redis.cluster.v1.AuthToken.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. State of the auth token.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AuthToken.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.AuthToken) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.AuthToken) + private static final com.google.cloud.redis.cluster.v1.AuthToken DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.AuthToken(); + } + + public static com.google.cloud.redis.cluster.v1.AuthToken getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthToken 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.redis.cluster.v1.AuthToken getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AuthTokenName.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AuthTokenName.java new file mode 100644 index 000000000000..1b7d6231188e --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AuthTokenName.java @@ -0,0 +1,301 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class AuthTokenName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_CLUSTER_TOKEN_AUTH_USER_AUTH_TOKEN = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String cluster; + private final String tokenAuthUser; + private final String authToken; + + @Deprecated + protected AuthTokenName() { + project = null; + location = null; + cluster = null; + tokenAuthUser = null; + authToken = null; + } + + private AuthTokenName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + cluster = Preconditions.checkNotNull(builder.getCluster()); + tokenAuthUser = Preconditions.checkNotNull(builder.getTokenAuthUser()); + authToken = Preconditions.checkNotNull(builder.getAuthToken()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public String getTokenAuthUser() { + return tokenAuthUser; + } + + public String getAuthToken() { + return authToken; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AuthTokenName of( + String project, String location, String cluster, String tokenAuthUser, String authToken) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCluster(cluster) + .setTokenAuthUser(tokenAuthUser) + .setAuthToken(authToken) + .build(); + } + + public static String format( + String project, String location, String cluster, String tokenAuthUser, String authToken) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCluster(cluster) + .setTokenAuthUser(tokenAuthUser) + .setAuthToken(authToken) + .build() + .toString(); + } + + public static @Nullable AuthTokenName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_CLUSTER_TOKEN_AUTH_USER_AUTH_TOKEN.validatedMatch( + formattedString, "AuthTokenName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("cluster"), + matchMap.get("token_auth_user"), + matchMap.get("auth_token")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List<@Nullable AuthTokenName> values) { + List list = new ArrayList<>(values.size()); + for (AuthTokenName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_CLUSTER_TOKEN_AUTH_USER_AUTH_TOKEN.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (cluster != null) { + fieldMapBuilder.put("cluster", cluster); + } + if (tokenAuthUser != null) { + fieldMapBuilder.put("token_auth_user", tokenAuthUser); + } + if (authToken != null) { + fieldMapBuilder.put("auth_token", authToken); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_CLUSTER_TOKEN_AUTH_USER_AUTH_TOKEN.instantiate( + "project", + project, + "location", + location, + "cluster", + cluster, + "token_auth_user", + tokenAuthUser, + "auth_token", + authToken); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AuthTokenName that = ((AuthTokenName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.cluster, that.cluster) + && Objects.equals(this.tokenAuthUser, that.tokenAuthUser) + && Objects.equals(this.authToken, that.authToken); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(cluster); + h *= 1000003; + h ^= Objects.hashCode(tokenAuthUser); + h *= 1000003; + h ^= Objects.hashCode(authToken); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}. + */ + public static class Builder { + private String project; + private String location; + private String cluster; + private String tokenAuthUser; + private String authToken; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public String getTokenAuthUser() { + return tokenAuthUser; + } + + public String getAuthToken() { + return authToken; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setCluster(String cluster) { + this.cluster = cluster; + return this; + } + + public Builder setTokenAuthUser(String tokenAuthUser) { + this.tokenAuthUser = tokenAuthUser; + return this; + } + + public Builder setAuthToken(String authToken) { + this.authToken = authToken; + return this; + } + + private Builder(AuthTokenName authTokenName) { + this.project = authTokenName.project; + this.location = authTokenName.location; + this.cluster = authTokenName.cluster; + this.tokenAuthUser = authTokenName.tokenAuthUser; + this.authToken = authTokenName.authToken; + } + + public AuthTokenName build() { + return new AuthTokenName(this); + } + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AuthTokenOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AuthTokenOrBuilder.java new file mode 100644 index 000000000000..465daf975239 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AuthTokenOrBuilder.java @@ -0,0 +1,156 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface AuthTokenOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.AuthToken) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Identifier. Name of the auth token.
          +   * Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Identifier. Name of the auth token.
          +   * Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Output only. The service generated authentication token used to connect to
          +   * the Redis cluster.
          +   * 
          + * + * string token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The token. + */ + java.lang.String getToken(); + + /** + * + * + *
          +   * Output only. The service generated authentication token used to connect to
          +   * the Redis cluster.
          +   * 
          + * + * string token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for token. + */ + com.google.protobuf.ByteString getTokenBytes(); + + /** + * + * + *
          +   * Output only. Create time of the auth token.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
          +   * Output only. Create time of the auth token.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
          +   * Output only. Create time of the auth token.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. State of the auth token.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AuthToken.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
          +   * Output only. State of the auth token.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AuthToken.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.redis.cluster.v1.AuthToken.State getState(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AuthorizationMode.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AuthorizationMode.java index 5b1c5898db6b..9b689063af62 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AuthorizationMode.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AuthorizationMode.java @@ -61,6 +61,16 @@ public enum AuthorizationMode implements com.google.protobuf.ProtocolMessageEnum * AUTH_MODE_DISABLED = 2; */ AUTH_MODE_DISABLED(2), + /** + * + * + *
          +   * Token based authorization mode
          +   * 
          + * + * AUTH_MODE_TOKEN_AUTH = 3; + */ + AUTH_MODE_TOKEN_AUTH(3), UNRECOGNIZED(-1), ; @@ -107,6 +117,17 @@ public enum AuthorizationMode implements com.google.protobuf.ProtocolMessageEnum */ public static final int AUTH_MODE_DISABLED_VALUE = 2; + /** + * + * + *
          +   * Token based authorization mode
          +   * 
          + * + * AUTH_MODE_TOKEN_AUTH = 3; + */ + public static final int AUTH_MODE_TOKEN_AUTH_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -137,6 +158,8 @@ public static AuthorizationMode forNumber(int value) { return AUTH_MODE_IAM_AUTH; case 2: return AUTH_MODE_DISABLED; + case 3: + return AUTH_MODE_TOKEN_AUTH; default: return null; } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterProto.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterProto.java index 70647b8378d2..9ce8075b8c44 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterProto.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_redis_cluster_v1_CreateClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1_CreateClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_CreateAclPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_CreateAclPolicyRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1_ListClustersRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -52,18 +56,50 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_redis_cluster_v1_ListClustersResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1_ListClustersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_ListAclPoliciesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_ListAclPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_ListAclPoliciesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_ListAclPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_ListAclPolicyRevisionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_ListAclPolicyRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_ListAclPolicyRevisionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_ListAclPolicyRevisionsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1_UpdateClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1_UpdateClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_UpdateAclPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_UpdateAclPolicyRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1_GetClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1_GetClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_GetAclPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_GetAclPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_GetAclPolicyRevisionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_GetAclPolicyRevisionRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1_DeleteClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1_DeleteClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_DeleteAclPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_DeleteAclPolicyRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1_GetClusterCertificateAuthorityRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -104,6 +140,46 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_redis_cluster_v1_BackupClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1_BackupClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_ListTokenAuthUsersRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_ListTokenAuthUsersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_ListTokenAuthUsersResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_ListTokenAuthUsersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_GetTokenAuthUserRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_GetTokenAuthUserRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_ListAuthTokensRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_ListAuthTokensRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_ListAuthTokensResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_ListAuthTokensResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_GetAuthTokenRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_GetAuthTokenRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_AddTokenAuthUserRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_AddTokenAuthUserRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_DeleteTokenAuthUserRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_DeleteTokenAuthUserRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_AddAuthTokenRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_AddAuthTokenRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_DeleteAuthTokenRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_DeleteAuthTokenRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1_Cluster_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -128,6 +204,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_redis_cluster_v1_Cluster_RedisConfigsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1_Cluster_RedisConfigsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_AclPolicyInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_AclPolicyInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_AclPolicy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_AclPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_AclPolicyRevisionStatus_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_AclPolicyRevisionStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_ClusterAclPolicyAttachment_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_ClusterAclPolicyAttachment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_AclPolicyRevision_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_AclPolicyRevision_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_AclRule_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_AclRule_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -220,6 +320,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_redis_cluster_v1_OperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_TokenAuthUser_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_TokenAuthUser_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_AuthToken_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_AuthToken_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -282,7 +390,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "cluster_id\030\002 \001(\tB\003\340A\002\022<\n" + "\007cluster\030\003" + " \001(\0132&.google.cloud.redis.cluster.v1.ClusterB\003\340A\002\022\022\n\n" - + "request_id\030\004 \001(\t\"w\n" + + "request_id\030\004 \001(\t\"\320\001\n" + + "\026CreateAclPolicyRequest\0226\n" + + "\006parent\030\001 \001(\tB&\340A\002\372A" + + " \022\036redis.googleapis.com/AclPolicy\022\032\n\r" + + "acl_policy_id\030\002 \001(\tB\003\340A\002\022A\n\n" + + "acl_policy\030\003" + + " \001(\0132(.google.cloud.redis.cluster.v1.AclPolicyB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"w\n" + "\023ListClustersRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022\021\n" @@ -291,19 +406,55 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024ListClustersResponse\0228\n" + "\010clusters\030\001 \003(\0132&.google.cloud.redis.cluster.v1.Cluster\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" - + "\013unreachable\030\003 \003(\t\"\236\001\n" + + "\013unreachable\030\003 \003(\t\"\201\001\n" + + "\026ListAclPoliciesRequest\0226\n" + + "\006parent\030\001 \001(\tB&\340A\002\372A" + + " \022\036redis.googleapis.com/AclPolicy\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\214\001\n" + + "\027ListAclPoliciesResponse\022>\n" + + "\014acl_policies\030\001 \003(\0132(.google.cloud.redis.cluster.v1.AclPolicy\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\030\n" + + "\013unreachable\030\003 \003(\tB\003\340A\006\"\220\001\n" + + "\035ListAclPolicyRevisionsRequest\022>\n" + + "\006parent\030\001 \001(" + + "\tB.\340A\002\372A(\022&redis.googleapis.com/AclPolicyRevision\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\243\001\n" + + "\036ListAclPolicyRevisionsResponse\022N\n" + + "\024acl_policy_revisions\030\001" + + " \003(\01320.google.cloud.redis.cluster.v1.AclPolicyRevision\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\030\n" + + "\013unreachable\030\003 \003(\tB\003\340A\006\"\236\001\n" + "\024UpdateClusterRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022<\n" + "\007cluster\030\002" + " \001(\0132&.google.cloud.redis.cluster.v1.ClusterB\003\340A\002\022\022\n\n" - + "request_id\030\003 \001(\t\"G\n" + + "request_id\030\003 \001(\t\"\262\001\n" + + "\026UpdateAclPolicyRequest\022A\n\n" + + "acl_policy\030\001" + + " \001(\0132(.google.cloud.redis.cluster.v1.AclPolicyB\003\340A\002\0224\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"G\n" + "\021GetClusterRequest\0222\n" + "\004name\030\001 \001(\tB$\340A\002\372A\036\n" - + "\034redis.googleapis.com/Cluster\"^\n" + + "\034redis.googleapis.com/Cluster\"K\n" + + "\023GetAclPolicyRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036redis.googleapis.com/AclPolicy\"[\n" + + "\033GetAclPolicyRevisionRequest\022<\n" + + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + + "&redis.googleapis.com/AclPolicyRevision\"^\n" + "\024DeleteClusterRequest\0222\n" + "\004name\030\001 \001(\tB$\340A\002\372A\036\n" + "\034redis.googleapis.com/Cluster\022\022\n\n" - + "request_id\030\002 \001(\t\"h\n" + + "request_id\030\002 \001(\t\"\202\001\n" + + "\026DeleteAclPolicyRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036redis.googleapis.com/AclPolicy\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\021\n" + + "\004etag\030\003 \001(\tB\003\340A\001\"h\n" + "%GetClusterCertificateAuthorityRequest\022?\n" + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + ")redis.googleapis.com/CertificateAuthority\"\216\001\n" @@ -346,73 +497,124 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034redis.googleapis.com/Cluster\022+\n" + "\003ttl\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\033\n" + "\tbackup_id\030\003 \001(\tB\003\340A\001H\000\210\001\001B\014\n\n" - + "_backup_id\"\302\031\n" + + "_backup_id\"\264\001\n" + + "\031ListTokenAuthUsersRequest\022:\n" + + "\006parent\030\001 \001(" + + "\tB*\340A\002\372A$\022\"redis.googleapis.com/TokenAuthUser\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\227\001\n" + + "\032ListTokenAuthUsersResponse\022F\n" + + "\020token_auth_users\030\001" + + " \003(\0132,.google.cloud.redis.cluster.v1.TokenAuthUser\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\030\n" + + "\013unreachable\030\003 \003(\tB\003\340A\006\"S\n" + + "\027GetTokenAuthUserRequest\0228\n" + + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + + "\"redis.googleapis.com/TokenAuthUser\"\254\001\n" + + "\025ListAuthTokensRequest\0226\n" + + "\006parent\030\001 \001(\tB&\340A\002\372A" + + " \022\036redis.googleapis.com/AuthToken\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\212\001\n" + + "\026ListAuthTokensResponse\022=\n" + + "\013auth_tokens\030\001 \003(\0132(.google.cloud.redis.cluster.v1.AuthToken\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\030\n" + + "\013unreachable\030\003 \003(\tB\003\340A\006\"K\n" + + "\023GetAuthTokenRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036redis.googleapis.com/AuthToken\"\225\001\n" + + "\027AddTokenAuthUserRequest\0225\n" + + "\007cluster\030\001 \001(\tB$\340A\002\372A\036\n" + + "\034redis.googleapis.com/Cluster\022C\n" + + "\017token_auth_user\030\002 \001(\tB*\340A\002\372A$\n" + + "\"redis.googleapis.com/TokenAuthUser\"\213\001\n" + + "\032DeleteTokenAuthUserRequest\0228\n" + + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + + "\"redis.googleapis.com/TokenAuthUser\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\022\n" + + "\005force\030\003 \001(\010B\003\340A\001\"\235\001\n" + + "\023AddAuthTokenRequest\022C\n" + + "\017token_auth_user\030\001 \001(\tB*\340A\002\372A$\n" + + "\"redis.googleapis.com/TokenAuthUser\022A\n\n" + + "auth_token\030\002 \001(\0132" + + "(.google.cloud.redis.cluster.v1.AuthTokenB\003\340A\002\"N\n" + + "\026DeleteAuthTokenRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036redis.googleapis.com/AuthToken\"\312\032\n" + "\007Cluster\022Q\n\n" - + "gcs_source\030\"" - + " \001(\01326.google.cloud.redis.cluster.v1.Cluster.GcsBackupSourceB\003\340A\001H\000\022`\n" - + "\025managed_backup_source\030# \001(\0132:.google.cloud.redi" - + "s.cluster.v1.Cluster.ManagedBackupSourceB\003\340A\001H\000\022\024\n" + + "gcs_source\030\" \001(\01326" + + ".google.cloud.redis.cluster.v1.Cluster.GcsBackupSourceB\003\340A\001H\000\022`\n" + + "\025managed_backup_source\030# \001(\0132:.google.cloud.redis.cluste" + + "r.v1.Cluster.ManagedBackupSourceB\003\340A\001H\000\022\024\n" + "\004name\030\001 \001(\tB\006\340A\002\340A\010\0224\n" + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022@\n" + "\005state\030\004" + " \001(\0162,.google.cloud.redis.cluster.v1.Cluster.StateB\003\340A\003\022\020\n" + "\003uid\030\005 \001(\tB\003\340A\003\022\037\n\r" + "replica_count\030\010 \001(\005B\003\340A\001H\001\210\001\001\022Q\n" - + "\022authorization_mode\030\013 \001(\01620.google.cl" - + "oud.redis.cluster.v1.AuthorizationModeB\003\340A\001\022Z\n" - + "\027transit_encryption_mode\030\014 \001(\01624.g" - + "oogle.cloud.redis.cluster.v1.TransitEncryptionModeB\003\340A\001\022\031\n" + + "\022authorization_mode\030\013" + + " \001(\01620.google.cloud.redis.cluster.v1.AuthorizationModeB\003\340A\001\022Z\n" + + "\027transit_encryption_mode\030\014 \001(\01624.google.cl" + + "oud.redis.cluster.v1.TransitEncryptionModeB\003\340A\001\022\031\n" + "\007size_gb\030\r" + " \001(\005B\003\340A\003H\002\210\001\001\022\035\n" + "\013shard_count\030\016 \001(\005B\003\340A\001H\003\210\001\001\022B\n" + "\013psc_configs\030\017" + " \003(\0132(.google.cloud.redis.cluster.v1.PscConfigB\003\340A\001\022R\n" - + "\023discovery_endpoints\030\020" - + " \003(\01320.google.cloud.redis.cluster.v1.DiscoveryEndpointB\003\340A\003\022J\n" - + "\017psc_connections\030\021" - + " \003(\0132,.google.cloud.redis.cluster.v1.PscConnectionB\003\340A\003\022I\n\n" - + "state_info\030\022 \001(" - + "\01320.google.cloud.redis.cluster.v1.Cluster.StateInfoB\003\340A\003\022?\n" - + "\tnode_type\030\023 \001(\0162\'.go" - + "ogle.cloud.redis.cluster.v1.NodeTypeB\003\340A\001\022X\n" - + "\022persistence_config\030\024 \001(\01327.google.c" - + "loud.redis.cluster.v1.ClusterPersistenceConfigB\003\340A\001\022T\n\r" - + "redis_configs\030\025 \003(\01328.goo" - + "gle.cloud.redis.cluster.v1.Cluster.RedisConfigsEntryB\003\340A\001\022!\n" + + "\023discovery_endpoints\030\020 \003" + + "(\01320.google.cloud.redis.cluster.v1.DiscoveryEndpointB\003\340A\003\022J\n" + + "\017psc_connections\030\021 \003" + + "(\0132,.google.cloud.redis.cluster.v1.PscConnectionB\003\340A\003\022I\n\n" + + "state_info\030\022 \001(\01320.goog" + + "le.cloud.redis.cluster.v1.Cluster.StateInfoB\003\340A\003\022?\n" + + "\tnode_type\030\023" + + " \001(\0162\'.google.cloud.redis.cluster.v1.NodeTypeB\003\340A\001\022X\n" + + "\022persistence_config\030\024 \001(\01327.google.cloud.red" + + "is.cluster.v1.ClusterPersistenceConfigB\003\340A\001\022T\n\r" + + "redis_configs\030\025 \003(\01328.google.clou" + + "d.redis.cluster.v1.Cluster.RedisConfigsEntryB\003\340A\001\022!\n" + "\017precise_size_gb\030\026 \001(\001B\003\340A\003H\004\210\001\001\022\\\n" - + "\030zone_distribution_config\030\027" - + " \001(\01325.google.cloud.redis.cluster.v1.ZoneDistributionConfigB\003\340A\001\022k\n" - + " cross_cluster_replication_config\030\030 \001(\0132<.google.cl" - + "oud.redis.cluster.v1.CrossClusterReplicationConfigB\003\340A\001\022-\n" + + "\030zone_distribution_config\030\027 \001(\01325" + + ".google.cloud.redis.cluster.v1.ZoneDistributionConfigB\003\340A\001\022k\n" + + " cross_cluster_replication_config\030\030 \001(\0132<.google.cloud.redi" + + "s.cluster.v1.CrossClusterReplicationConfigB\003\340A\001\022-\n" + "\033deletion_protection_enabled\030\031" + " \001(\010B\003\340A\001H\005\210\001\001\022]\n" - + "\022maintenance_policy\030\032" - + " \001(\01327.google.cloud.redis.cluster.v1.ClusterMaintenancePolicyB\003\340A\001H\006\210\001\001\022a\n" - + "\024maintenance_schedule\030\033 \001(\01329.google.clo" - + "ud.redis.cluster.v1.ClusterMaintenanceScheduleB\003\340A\003H\007\210\001\001\022Y\n" - + "\027psc_service_attachments\030\036" - + " \003(\01323.google.cloud.redis.cluster.v1.PscServiceAttachmentB\003\340A\003\022N\n" + + "\022maintenance_policy\030\032 \001" + + "(\01327.google.cloud.redis.cluster.v1.ClusterMaintenancePolicyB\003\340A\001H\006\210\001\001\022a\n" + + "\024maintenance_schedule\030\033 \001(\01329.google.cloud.redis" + + ".cluster.v1.ClusterMaintenanceScheduleB\003\340A\003H\007\210\001\001\022Y\n" + + "\027psc_service_attachments\030\036 \003(" + + "\01323.google.cloud.redis.cluster.v1.PscServiceAttachmentB\003\340A\003\022N\n" + "\021cluster_endpoints\030$" + " \003(\0132..google.cloud.redis.cluster.v1.ClusterEndpointB\003\340A\001\022P\n" + "\021backup_collection\030\' \001(\tB0\340A\001\340A\003\372A\'\n" + "%redis.googleapis.com/BackupCollectionH\010\210\001\001\022?\n" + "\007kms_key\030( \001(\tB)\340A\001\372A#\n" + "!cloudkms.googleapis.com/CryptoKeyH\t\210\001\001\022Z\n" - + "\027automated_backup_config\030*" - + " \001(\01324.google.cloud.redis.cluster.v1.AutomatedBackupConfigB\003\340A\001\022K\n" - + "\017encryption_info\030+" - + " \001(\0132-.google.cloud.redis.cluster.v1.EncryptionInfoB\003\340A\003\022:\n" + + "\027automated_backup_config\030* \001(\0132" + + "4.google.cloud.redis.cluster.v1.AutomatedBackupConfigB\003\340A\001\022K\n" + + "\017encryption_info\030+ " + + "\001(\0132-.google.cloud.redis.cluster.v1.EncryptionInfoB\003\340A\003\022:\n" + "(async_cluster_endpoints_deletion_enabled\030, \001(\010B\003\340A\001H\n" + "\210\001\001\022M\n" - + "\016server_ca_mode\0305 \001(\0162+.google.clo" - + "ud.redis.cluster.v1.ServerCaModeB\003\340A\001H\013\210\001\001\022D\n" + + "\016server_ca_mode\0305" + + " \001(\0162+.google.cloud.redis.cluster.v1.ServerCaModeB\003\340A\001H\013\210\001\001\022D\n" + "\016server_ca_pool\0306 \001(\tB\'\340A\001\372A!\n" + "\037privateca.googleapis.com/CaPoolH\014\210\001\001\022.\n" + "\031rotate_server_certificate\0307 \001(\010B\006\340A\001\340A\004H\r" - + "\210\001\001\032\352\001\n" + + "\210\001\001\022:\n\n" + + "acl_policy\0308 \001(\tB&\340A\001\372A \n" + + "\036redis.googleapis.com/AclPolicy\022J\n" + + "\017acl_policy_info\030: \001(\0132,." + + "google.cloud.redis.cluster.v1.AclPolicyInfoB\003\340A\003\032\352\001\n" + "\tStateInfo\022R\n" - + "\013update_info\030\001 \001(\0132;.go" - + "ogle.cloud.redis.cluster.v1.Cluster.StateInfo.UpdateInfoH\000\032\200\001\n\n" + + "\013update_info\030\001 " + + "\001(\0132;.google.cloud.redis.cluster.v1.Cluster.StateInfo.UpdateInfoH\000\032\200\001\n\n" + "UpdateInfo\022\037\n" + "\022target_shard_count\030\001 \001(\005H\000\210\001\001\022!\n" + "\024target_replica_count\030\002 \001(\005H\001\210\001\001B\025\n" @@ -432,8 +634,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006ACTIVE\020\002\022\014\n" + "\010UPDATING\020\003\022\014\n" + "\010DELETING\020\004:p\352Am\n" - + "\034redis.googleapis.com/Cluster\022:projects/{project}/locati" - + "ons/{location}/clusters/{cluster}*\010clusters2\007clusterB\020\n" + + "\034redis.googleapis.com/Cluster\022:projects/{project" + + "}/locations/{location}/clusters/{cluster}*\010clusters2\007clusterB\020\n" + "\016import_sourcesB\020\n" + "\016_replica_countB\n\n" + "\010_size_gbB\016\n" @@ -442,23 +644,82 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034_deletion_protection_enabledB\025\n" + "\023_maintenance_policyB\027\n" + "\025_maintenance_scheduleB\024\n" - + "\022_backup_collectionB\n" - + "\n" + + "\022_backup_collectionB\n\n" + "\010_kms_keyB+\n" + ")_async_cluster_endpoints_deletion_enabledB\021\n" + "\017_server_ca_modeB\021\n" + "\017_server_ca_poolB\034\n" - + "\032_rotate_server_certificate\"\205\004\n" + + "\032_rotate_server_certificate\"\274\002\n\r" + + "AclPolicyInfo\022B\n" + + "\022applied_acl_policy\030\001 \001(\tB&\340A\003\372A \n" + + "\036redis.googleapis.com/AclPolicy\022S\n" + + "\033applied_acl_policy_revision\030\002 \001(\tB.\340A\003\372A(\n" + + "&redis.googleapis.com/AclPolicyRevision\022/\n" + + "\"applied_acl_policy_revision_number\030\003 \001(\003B\003\340A\003\022a\n" + + "\034acl_policy_revision_statuses\030\004 \003(\01326.google.c" + + "loud.redis.cluster.v1.AclPolicyRevisionStatusB\003\340A\003\"\332\004\n" + + "\tAclPolicy\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022:\n" + + "\005rules\030\002" + + " \003(\0132&.google.cloud.redis.cluster.v1.AclRuleB\003\340A\002\022B\n" + + "\005state\030\003 \001(\0162." + + ".google.cloud.redis.cluster.v1.AclPolicy.StateB\003\340A\003\022\026\n" + + "\004etag\030\005 \001(\tB\003\340A\003H\000\210\001\001\022f\n" + + "\036cluster_acl_policy_attachments\030\006 \003(\01329.go" + + "ogle.cloud.redis.cluster.v1.ClusterAclPolicyAttachmentB\003\340A\003\0224\n" + + "\013create_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"F\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\014\n" + + "\010UPDATING\020\002\022\014\n" + + "\010DELETING\020\003:}\352Az\n" + + "\036redis.googleapis.com/AclPolicy\022@pr" + + "ojects/{project}/locations/{location}/aclPolicies/{acl_policy}*\013aclPolicies2" + + "\taclPolicyB\007\n" + + "\005_etag\"\304\002\n" + + "\027AclPolicyRevisionStatus\022K\n" + + "\023acl_policy_revision\030\001 \001(\tB.\340A\003\372A(\n" + + "&redis.googleapis.com/AclPolicyRevision\022\'\n" + + "\032acl_policy_revision_number\030\002 \001(\003B\003\340A\003\022P\n" + + "\005state\030\003 \001(\0162<.google.cloud.redis.cl" + + "uster.v1.AclPolicyRevisionStatus.StateB\003\340A\003\022\032\n\r" + + "error_message\030\004 \001(\tB\003\340A\003\"E\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\014\n" + + "\010APPLYING\020\001\022\013\n" + + "\007APPLIED\020\002\022\n\n" + + "\006FAILED\020\003\"\266\001\n" + + "\032ClusterAclPolicyAttachment\0225\n" + + "\007cluster\030\001 \001(\tB$\340A\003\372A\036\n" + + "\034redis.googleapis.com/Cluster\022a\n" + + "\034acl_policy_revision_statuses\030\002 \003(\01326.google.clou" + + "d.redis.cluster.v1.AclPolicyRevisionStatusB\003\340A\003\"\251\003\n" + + "\021AclPolicyRevision\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\034\n" + + "\017revision_number\030\002 \001(\003B\003\340A\003\022?\n" + + "\010snapshot\030\003" + + " \001(\0132(.google.cloud.redis.cluster.v1.AclPolicyB\003\340A\003\0224\n" + + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022?\n" + + "\021attached_clusters\030\005 \003(\tB$\340A\003\372A\036\n" + + "\034redis.googleapis.com/Cluster:\252\001\352A\246\001\n" + + "&redis.googleapis.com/AclPolicyRevision\022Uprojects/" + + "{project}/locations/{location}/aclPolici" + + "es/{acl_policy}/revisions/{revision}*\022aclPolicyRevisions2\021aclPolicyRevision\"3\n" + + "\007AclRule\022\025\n" + + "\010username\030\001 \001(\tB\003\340A\002\022\021\n" + + "\004rule\030\002 \001(\tB\003\340A\002\"\205\004\n" + "\025AutomatedBackupConfig\022t\n" - + "\030fixed_frequency_schedule\030\002 \001(\0132K.google.cloud.r" - + "edis.cluster.v1.AutomatedBackupConfig.FixedFrequencyScheduleB\003\340A\001H\000\022l\n" - + "\025automated_backup_mode\030\001 \001(\0162H.google.cloud.redis." - + "cluster.v1.AutomatedBackupConfig.AutomatedBackupModeB\003\340A\001\0226\n" - + "\tretention\030\003" - + " \001(\0132\031.google.protobuf.DurationB\003\340A\001H\001\210\001\001\032]\n" + + "\030fixed_frequency_schedule\030\002 \001(\0132K.google.cl" + + "oud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencyScheduleB\003\340A\001H\000\022l\n" + + "\025automated_backup_mode\030\001 \001(\0162H.google.cloud.r" + + "edis.cluster.v1.AutomatedBackupConfig.AutomatedBackupModeB\003\340A\001\0226\n" + + "\tretention\030\003 \001(" + + "\0132\031.google.protobuf.DurationB\003\340A\001H\001\210\001\001\032]\n" + "\026FixedFrequencySchedule\0224\n\n" + "start_time\030\002" - + " \001(\0132\026.google.type.TimeOfDayB\003\340A\002H\000\210\001\001B\r\n" + + " \001(\0132\026.google.type.TimeOfDayB\003\340A\002H\000\210\001\001B\r" + + "\n" + "\013_start_time\"W\n" + "\023AutomatedBackupMode\022%\n" + "!AUTOMATED_BACKUP_MODE_UNSPECIFIED\020\000\022\014\n" @@ -475,9 +736,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!cloudkms.googleapis.com/CryptoKey\022\030\n" + "\003uid\030\006 \001(" + "\tB\013\340A\003\342\214\317\327\010\002\010\001:\237\001\352A\233\001\n" - + "%redis.googleapis.com/BackupCollection\022Mprojects/{proj" - + "ect}/locations/{location}/backupCollecti" - + "ons/{backup_collection}*\021backupCollections2\020backupCollection\"\202\010\n" + + "%redis.googleapis.com/BackupCollection\022Mprojects/" + + "{project}/locations/{location}/backupCol" + + "lections/{backup_collection}*\021backupCollections2\020backupCollection\"\202\010\n" + "\006Backup\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0225\n" @@ -491,22 +752,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016engine_version\030\007 \001(\tB\003\340A\003\022D\n" + "\014backup_files\030\010" + " \003(\0132).google.cloud.redis.cluster.v1.BackupFileB\003\340A\003\022?\n" - + "\tnode_type\030\t \001(\0162\'.g" - + "oogle.cloud.redis.cluster.v1.NodeTypeB\003\340A\003\022\032\n\r" + + "\tnode_type\030\t \001(" + + "\0162\'.google.cloud.redis.cluster.v1.NodeTypeB\003\340A\003\022\032\n\r" + "replica_count\030\n" + " \001(\005B\003\340A\003\022\030\n" + "\013shard_count\030\013 \001(\005B\003\340A\003\022J\n" - + "\013backup_type\030\014 \001(\01620." - + "google.cloud.redis.cluster.v1.Backup.BackupTypeB\003\340A\003\022?\n" + + "\013backup_type\030\014 \001" + + "(\01620.google.cloud.redis.cluster.v1.Backup.BackupTypeB\003\340A\003\022?\n" + "\005state\030\r" + " \001(\0162+.google.cloud.redis.cluster.v1.Backup.StateB\003\340A\003\022K\n" - + "\017encryption_info\030\016" - + " \001(\0132-.google.cloud.redis.cluster.v1.EncryptionInfoB\003\340A\003\022\030\n" + + "\017encryption_info\030\016 \001(\0132-.google.clo" + + "ud.redis.cluster.v1.EncryptionInfoB\003\340A\003\022\030\n" + "\003uid\030\017 \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\"G\n\n" + "BackupType\022\033\n" + "\027BACKUP_TYPE_UNSPECIFIED\020\000\022\r\n" - + "\tON_DEMAND\020\001\022\r" - + "\n" + + "\tON_DEMAND\020\001\022\r\n" + "\tAUTOMATED\020\002\"U\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\014\n" @@ -514,9 +774,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006ACTIVE\020\002\022\014\n" + "\010DELETING\020\003\022\r\n" + "\tSUSPENDED\020\004:\222\001\352A\216\001\n" - + "\033redis.googleapis.com/Backup\022^projects/{project}/loc" - + "ations/{location}/backupCollections/{bac" - + "kup_collection}/backups/{backup}*\007backups2\006backup\"s\n\n" + + "\033redis.googleapis.com/Backup\022^projects/{project" + + "}/locations/{location}/backupCollections" + + "/{backup_collection}/backups/{backup}*\007backups2\006backup\"s\n\n" + "BackupFile\022\026\n" + "\tfile_name\030\001 \001(\tB\003\340A\003\022\027\n\n" + "size_bytes\030\002 \001(\003B\003\340A\003\0224\n" @@ -527,25 +787,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017connection_type\030\003" + " \001(\0162-.google.cloud.redis.cluster.v1.ConnectionTypeB\003\340A\003\"\364\006\n" + "\035CrossClusterReplicationConfig\022^\n" - + "\014cluster_role\030\001 \001(\0162H." - + "google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole\022c\n" - + "\017primary_cluster\030\002 \001(\0132J.google.cloud.redis.cl" - + "uster.v1.CrossClusterReplicationConfig.RemoteCluster\022f\n" - + "\022secondary_clusters\030\003 \003(\013" - + "2J.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster\0224\n" + + "\014cluster_role\030\001 \001" + + "(\0162H.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole\022c\n" + + "\017primary_cluster\030\002 \001(\0132J.google.cloud.red" + + "is.cluster.v1.CrossClusterReplicationConfig.RemoteCluster\022f\n" + + "\022secondary_clusters\030\003 \003(\0132J.google.cloud.redis.cluster.v1.Cr" + + "ossClusterReplicationConfig.RemoteCluster\0224\n" + "\013update_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022`\n\n" - + "membership\030\005 \001(\0132G.google." - + "cloud.redis.cluster.v1.CrossClusterReplicationConfig.MembershipB\003\340A\003\032U\n\r" + + "membership\030\005 \001(\0132G.go" + + "ogle.cloud.redis.cluster.v1.CrossClusterReplicationConfig.MembershipB\003\340A\003\032U\n\r" + "RemoteCluster\0222\n" + "\007cluster\030\001 \001(\tB!\372A\036\n" + "\034redis.googleapis.com/Cluster\022\020\n" + "\003uid\030\002 \001(\tB\003\340A\003\032\343\001\n\n" + "Membership\022h\n" - + "\017primary_cluster\030\001 \001(\0132J.go" - + "ogle.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteClusterB\003\340A\003\022k\n" - + "\022secondary_clusters\030\002 \003(\0132J.google.cloud." - + "redis.cluster.v1.CrossClusterReplicationConfig.RemoteClusterB\003\340A\003\"Q\n" + + "\017primary_cluster\030\001 \001(\0132J.google.cloud.redis.cluster.v1.CrossCl" + + "usterReplicationConfig.RemoteClusterB\003\340A\003\022k\n" + + "\022secondary_clusters\030\002 \003(\0132J.google.c" + + "loud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteClusterB\003\340A\003\"Q\n" + "\013ClusterRole\022\034\n" + "\030CLUSTER_ROLE_UNSPECIFIED\020\000\022\010\n" + "\004NONE\020\001\022\013\n" @@ -554,8 +814,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030ClusterMaintenancePolicy\0224\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022`\n" - + "\031weekly_maintenance_window\030\003 \003(\013" - + "2=.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow\"q\n" + + "\031weekly_maintenance_window\030\003" + + " \003(\0132=.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow\"q\n" + "\036ClusterWeeklyMaintenanceWindow\022#\n" + "\003day\030\001 \001(\0162\026.google.type.DayOfWeek\022*\n\n" + "start_time\030\002 \001(\0132\026.google.type.TimeOfDay\"\204\001\n" @@ -567,8 +827,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021DiscoveryEndpoint\022\024\n" + "\007address\030\001 \001(\tB\003\340A\003\022\021\n" + "\004port\030\002 \001(\005B\003\340A\003\022A\n\n" - + "psc_config\030\003 \001(\0132(.google." - + "cloud.redis.cluster.v1.PscConfigB\003\340A\003\"\332\003\n\r" + + "psc_config\030\003 \001(\0132(.go" + + "ogle.cloud.redis.cluster.v1.PscConfigB\003\340A\003\"\332\003\n\r" + "PscConnection\022\036\n" + "\021psc_connection_id\030\001 \001(\tB\003\340A\002\022\034\n" + "\007address\030\002 \001(\tB\013\340A\002\342\214\317\327\010\002\010\002\022F\n" @@ -579,13 +839,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036compute.googleapis.com/Network\022L\n" + "\022service_attachment\030\006 \001(\tB0\340A\002\372A*\n" + "(compute.googleapis.com/ServiceAttachment\022V\n" - + "\025psc_connection_status\030\010" - + " \001(\01622.google.cloud.redis.cluster.v1.PscConnectionStatusB\003\340A\003\022K\n" + + "\025psc_connection_status\030\010 \001(\01622.google.cloud" + + ".redis.cluster.v1.PscConnectionStatusB\003\340A\003\022K\n" + "\017connection_type\030\n" + " \001(\0162-.google.cloud.redis.cluster.v1.ConnectionTypeB\003\340A\003\"W\n" + "\017ClusterEndpoint\022D\n" - + "\013connections\030\001 \003(\0132/.goo" - + "gle.cloud.redis.cluster.v1.ConnectionDetail\"\271\001\n" + + "\013connections\030\001 \003(\0132" + + "/.google.cloud.redis.cluster.v1.ConnectionDetail\"\271\001\n" + "\020ConnectionDetail\022O\n" + "\023psc_auto_connection\030\001" + " \001(\01320.google.cloud.redis.cluster.v1.PscAutoConnectionH\000\022F\n" @@ -602,25 +862,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036compute.googleapis.com/Network\022L\n" + "\022service_attachment\030\006 \001(\tB0\340A\003\372A*\n" + "(compute.googleapis.com/ServiceAttachment\022V\n" - + "\025psc_connection_status\030\010" - + " \001(\01622.google.cloud.redis.cluster.v1.PscConnectionStatusB\003\340A\003\022K\n" - + "\017connection_type\030\t" - + " \001(\0162-.google.cloud.redis.cluster.v1.ConnectionTypeB\003\340A\003\"\376\004\n" + + "\025psc_connection_status\030\010 \001(\01622.google.cloud.r" + + "edis.cluster.v1.PscConnectionStatusB\003\340A\003\022K\n" + + "\017connection_type\030\t \001(\0162-.google.cloud" + + ".redis.cluster.v1.ConnectionTypeB\003\340A\003\"\376\004\n" + "\"SharedRegionalCertificateAuthority\022\202\001\n" - + "\021managed_server_ca\030\002 \001(\0132e.google.cloud.redis" - + ".cluster.v1.SharedRegionalCertificateAut" - + "hority.RegionalManagedCertificateAuthorityH\000\022\021\n" + + "\021managed_server_ca\030\002 \001(\0132e.google.cloud." + + "redis.cluster.v1.SharedRegionalCertifica" + + "teAuthority.RegionalManagedCertificateAuthorityH\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\032\334\001\n" + "#RegionalManagedCertificateAuthority\022\211\001\n" - + "\010ca_certs\030\001 \003(\0132w.google.cloud.redis.cluster.v1.Share" - + "dRegionalCertificateAuthority.RegionalMa" - + "nagedCertificateAuthority.RegionalCertChain\032)\n" + + "\010ca_certs\030\001 \003(\0132w.google.cloud.redis.cluster.v1." + + "SharedRegionalCertificateAuthority.Regio" + + "nalManagedCertificateAuthority.RegionalCertChain\032)\n" + "\021RegionalCertChain\022\024\n" + "\014certificates\030\001 \003(\t:\323\001\352A\317\001\n" - + "7redis.googleapis.com/SharedRegionalCertificateAuthority\022Jprojects" - + "/{project}/locations/{location}/sharedRegionalCertificateAuthority*$sharedRegion" - + "alCertificateAuthorities2\"sharedRegionalCertificateAuthorityB\013\n" - + "\tserver_ca\"}\n" + + "7redis.googleapis.com/SharedRegionalCertificateAuthority\022Jpro" + + "jects/{project}/locations/{location}/sharedRegionalCertificateAuthority*$sharedR" + + "egionalCertificateAuthorities2\"sharedRegionalCertificateAuthorityB\013\n" + + "\tserver_ca\"}", + "\n" + ",GetSharedRegionalCertificateAuthorityRequest\022M\n" + "\004name\030\001 \001(\tB?\340A\002\372A9\n" + "7redis.googleapis.com/SharedRegionalCertificateAuthority\"\200\002\n" @@ -631,30 +892,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004verb\030\004 \001(\tB\003\340A\003\022\033\n" + "\016status_message\030\005 \001(\tB\003\340A\003\022#\n" + "\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n" - + "\013api_version\030\007 \001(\tB\003\340A\003\"\205\004\n" + + "\013api_version\030\007 \001(\tB\003\340A\003\"\347\002\n\r" + + "TokenAuthUser\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022F\n" + + "\005state\030\002 \001(\01622.g" + + "oogle.cloud.redis.cluster.v1.TokenAuthUser.StateB\003\340A\003\"T\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\014\n" + + "\010CREATING\020\002\022\014\n" + + "\010UPDATING\020\003\022\014\n" + + "\010DELETING\020\004:\244\001\352A\240\001\n" + + "\"redis.googleapis.com/TokenAuthUser\022[projects/{projec" + + "t}/locations/{location}/clusters/{cluste" + + "r}/tokenAuthUsers/{token_auth_user}*\016tokenAuthUsers2\r" + + "tokenAuthUser\"\247\003\n" + + "\tAuthToken\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\022\n" + + "\005token\030\002 \001(\tB\003\340A\003\0224\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022B\n" + + "\005state\030\004 \001(\0162..google.cl" + + "oud.redis.cluster.v1.AuthToken.StateB\003\340A\003\"F\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\014\n" + + "\010CREATING\020\002\022\014\n" + + "\010DELETING\020\003:\260\001\352A\254\001\n" + + "\036redis.googleapis.com/AuthToken\022sprojects/{project}/locations/{location}/cluste" + + "rs/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}*\n" + + "authTokens2\tauthToken\"\205\004\n" + "\024CertificateAuthority\022l\n" - + "\021managed_server_ca\030\001 \001(\0132O.google" - + ".cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthorityH\000\022\021\n" + + "\021managed_server_ca\030\001 \001(\0132O.google.cloud." + + "redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthorityH\000\022\021\n" + "\004name\030\002 \001(\tB\003\340A\010\032\255\001\n" + "\033ManagedCertificateAuthority\022k\n" - + "\010ca_certs\030\001 \003(\0132Y.google.cloud.r" - + "edis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain\032!\n" + + "\010ca_certs\030\001 \003(\0132Y.google.cloud.redis.cl" + + "uster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain\032!\n" + "\tCertChain\022\024\n" + "\014certificates\030\001 \003(\t:\256\001\352A\252\001\n" - + ")redis.googleapis.com/CertificateAuthority\022Oprojects/{project}/locations/{location}" - + "/clusters/{cluster}/certificateAuthority" - + "*\026certificateAuthorities2\024certificateAuthorityB\013\n" + + ")redis.googleapis.com/CertificateAuthority\022Oprojec" + + "ts/{project}/locations/{location}/clusters/{cluster}/certificateAuthority*\026certi" + + "ficateAuthorities2\024certificateAuthorityB\013\n" + "\tserver_ca\"\207\007\n" + "\030ClusterPersistenceConfig\022Z\n" - + "\004mode\030\001 \001(\0162G.google.cloud.re" - + "dis.cluster.v1.ClusterPersistenceConfig.PersistenceModeB\003\340A\001\022Z\n\n" - + "rdb_config\030\002 \001(\013" - + "2A.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfigB\003\340A\001\022Z\n\n" - + "aof_config\030\003 \001(\0132A.google.cloud.redis.cluste" - + "r.v1.ClusterPersistenceConfig.AOFConfigB\003\340A\001\032\272\002\n" + + "\004mode\030\001 \001(\0162G.google.cloud.redis.clu" + + "ster.v1.ClusterPersistenceConfig.PersistenceModeB\003\340A\001\022Z\n\n" + + "rdb_config\030\002 \001(\0132A.goog" + + "le.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfigB\003\340A\001\022Z\n\n" + + "aof_config\030\003 \001(\0132A.google.cloud.redis.cluster.v1.Cl" + + "usterPersistenceConfig.AOFConfigB\003\340A\001\032\272\002\n" + "\tRDBConfig\022r\n" - + "\023rdb_snapshot_period\030\001 \001(\0162P.google.cloud.redis.cluster.v1." - + "ClusterPersistenceConfig.RDBConfig.SnapshotPeriodB\003\340A\001\022@\n" + + "\023rdb_snapshot_period\030\001 \001(\0162P.google.cloud.redis.cluster.v1.Cluster" + + "PersistenceConfig.RDBConfig.SnapshotPeriodB\003\340A\001\022@\n" + "\027rdb_snapshot_start_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"w\n" + "\016SnapshotPeriod\022\037\n" @@ -664,8 +953,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014TWELVE_HOURS\020\003\022\025\n" + "\021TWENTY_FOUR_HOURS\020\004\032\304\001\n" + "\tAOFConfig\022h\n" - + "\014append_fsync\030\001 \001(\0162M.google.cloud.redis.cluster.v1.ClusterPer" - + "sistenceConfig.AOFConfig.AppendFsyncB\003\340A\001\"M\n" + + "\014append_fsync\030\001 \001(\0162M.google." + + "cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsyncB\003\340A\001\"M\n" + "\013AppendFsync\022\034\n" + "\030APPEND_FSYNC_UNSPECIFIED\020\000\022\006\n" + "\002NO\020\001\022\014\n" @@ -677,8 +966,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003RDB\020\002\022\007\n" + "\003AOF\020\003\"\353\001\n" + "\026ZoneDistributionConfig\022]\n" - + "\004mode\030\001 \001(\0162J.google.cloud.redis.cluster.v1.Z" - + "oneDistributionConfig.ZoneDistributionModeB\003\340A\001\022\021\n" + + "\004mode\030\001 \001(\0162J.google.cloud.redis.cluster.v1.ZoneDist" + + "ributionConfig.ZoneDistributionModeB\003\340A\001\022\021\n" + "\004zone\030\002 \001(\tB\003\340A\001\"_\n" + "\024ZoneDistributionMode\022&\n" + "\"ZONE_DISTRIBUTION_MODE_UNSPECIFIED\020\000\022\016\n\n" @@ -687,20 +976,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#RescheduleClusterMaintenanceRequest\0222\n" + "\004name\030\001 \001(\tB$\340A\002\372A\036\n" + "\034redis.googleapis.com/Cluster\022o\n" - + "\017reschedule_type\030\002 \001(\0162Q.google.cloud.redis.cluster.v1.Resched" - + "uleClusterMaintenanceRequest.RescheduleTypeB\003\340A\002\0226\n\r" + + "\017reschedule_type\030\002 \001(\0162Q.google.cloud.redis.cluster.v1.RescheduleClus" + + "terMaintenanceRequest.RescheduleTypeB\003\340A\002\0226\n\r" + "schedule_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"S\n" + "\016RescheduleType\022\037\n" + "\033RESCHEDULE_TYPE_UNSPECIFIED\020\000\022\r\n" + "\tIMMEDIATE\020\001\022\021\n\r" + "SPECIFIC_TIME\020\003\"\372\004\n" + "\016EncryptionInfo\022P\n" - + "\017encryption_type\030\001 \001(\01622.goog" - + "le.cloud.redis.cluster.v1.EncryptionInfo.TypeB\003\340A\003\022J\n" + + "\017encryption_type\030\001 \001(\01622.google.clou" + + "d.redis.cluster.v1.EncryptionInfo.TypeB\003\340A\003\022J\n" + "\020kms_key_versions\030\002 \003(\tB0\340A\003\372A*\n" + "(cloudkms.googleapis.com/CryptoKeyVersion\022]\n" - + "\025kms_key_primary_state\030\003 \001(\01629." - + "google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyStateB\003\340A\003\0229\n" + + "\025kms_key_primary_state\030\003 \001(\01629.google." + + "cloud.redis.cluster.v1.EncryptionInfo.KmsKeyStateB\003\340A\003\0229\n" + "\020last_update_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\\\n" + "\004Type\022\024\n" @@ -720,11 +1009,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023PscConnectionStatus\022%\n" + "!PSC_CONNECTION_STATUS_UNSPECIFIED\020\000\022 \n" + "\034PSC_CONNECTION_STATUS_ACTIVE\020\001\022#\n" - + "\037PSC_CONNECTION_STATUS_NOT_FOUND\020\002*^\n" + + "\037PSC_CONNECTION_STATUS_NOT_FOUND\020\002*x\n" + "\021AuthorizationMode\022\031\n" + "\025AUTH_MODE_UNSPECIFIED\020\000\022\026\n" + "\022AUTH_MODE_IAM_AUTH\020\001\022\026\n" - + "\022AUTH_MODE_DISABLED\020\002*\336\001\n" + + "\022AUTH_MODE_DISABLED\020\002\022\030\n" + + "\024AUTH_MODE_TOKEN_AUTH\020\003*\336\001\n" + "\010NodeType\022\031\n" + "\025NODE_TYPE_UNSPECIFIED\020\000\022\032\n" + "\026REDIS_SHARED_CORE_NANO\020\001\022\030\n" @@ -747,112 +1037,155 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033CONNECTION_TYPE_UNSPECIFIED\020\000\022\035\n" + "\031CONNECTION_TYPE_DISCOVERY\020\001\022\033\n" + "\027CONNECTION_TYPE_PRIMARY\020\002\022\032\n" - + "\026CONNECTION_TYPE_READER\020\0032\242\032\n" + + "\026CONNECTION_TYPE_READER\020\0032\2374\n" + "\021CloudRedisCluster\022\266\001\n" - + "\014ListClusters\0222.google.cloud.redis.cluster.v1.Li" - + "stClustersRequest\0323.google.cloud.redis.c" - + "luster.v1.ListClustersResponse\"=\332A\006paren" - + "t\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/clusters\022\243\001\n\n" - + "GetCluster\0220.google.cloud.redis.cluster.v1.GetClusterRequest\032&" - + ".google.cloud.redis.cluster.v1.Cluster\";" - + "\332A\004name\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*/clusters/*}\022\341\001\n\r" - + "UpdateCluster\0223.google.cloud.redis.cluster.v1.UpdateClus" - + "terRequest\032\035.google.longrunning.Operation\"|\312A\036\n" - + "\007Cluster\022\023google.protobuf.Any\332A\023c" - + "luster,update_mask\202\323\344\223\002?24/v1/{cluster.n" - + "ame=projects/*/locations/*/clusters/*}:\007cluster\022\317\001\n\r" - + "DeleteCluster\0223.google.cloud" - + ".redis.cluster.v1.DeleteClusterRequest\032\035.google.longrunning.Operation\"j\312A,\n" - + "\025goog", - "le.protobuf.Empty\022\023google.protobuf.Any\332A" - + "\004name\202\323\344\223\002.*,/v1/{name=projects/*/locati" - + "ons/*/clusters/*}\022\337\001\n\rCreateCluster\0223.go" - + "ogle.cloud.redis.cluster.v1.CreateCluste" - + "rRequest\032\035.google.longrunning.Operation\"" - + "z\312A\036\n\007Cluster\022\023google.protobuf.Any\332A\031par" - + "ent,cluster,cluster_id\202\323\344\223\0027\",/v1/{paren" - + "t=projects/*/locations/*}/clusters:\007clus" - + "ter\022\355\001\n\036GetClusterCertificateAuthority\022D" - + ".google.cloud.redis.cluster.v1.GetCluste" - + "rCertificateAuthorityRequest\0323.google.cl" - + "oud.redis.cluster.v1.CertificateAuthorit" - + "y\"P\332A\004name\202\323\344\223\002C\022A/v1/{name=projects/*/l" - + "ocations/*/clusters/*/certificateAuthori" - + "ty}\022\214\002\n%GetSharedRegionalCertificateAuth" - + "ority\022K.google.cloud.redis.cluster.v1.Ge" - + "tSharedRegionalCertificateAuthorityReque" - + "st\032A.google.cloud.redis.cluster.v1.Share" - + "dRegionalCertificateAuthority\"S\332A\004name\202\323" - + "\344\223\002F\022D/v1/{name=projects/*/locations/*/s" - + "haredRegionalCertificateAuthority}\022\236\002\n\034R" - + "escheduleClusterMaintenance\022B.google.clo" - + "ud.redis.cluster.v1.RescheduleClusterMai" - + "ntenanceRequest\032\035.google.longrunning.Ope" - + "ration\"\232\001\312A\036\n\007Cluster\022\023google.protobuf.A" - + "ny\332A\"name,reschedule_type,schedule_time\202" - + "\323\344\223\002N\"I/v1/{name=projects/*/locations/*/" - + "clusters/*}:rescheduleClusterMaintenance" - + ":\001*\022\332\001\n\025ListBackupCollections\022;.google.c" - + "loud.redis.cluster.v1.ListBackupCollecti" - + "onsRequest\032<.google.cloud.redis.cluster." - + "v1.ListBackupCollectionsResponse\"F\332A\006par" - + "ent\202\323\344\223\0027\0225/v1/{parent=projects/*/locati" - + "ons/*}/backupCollections\022\307\001\n\023GetBackupCo" - + "llection\0229.google.cloud.redis.cluster.v1" - + ".GetBackupCollectionRequest\032/.google.clo" - + "ud.redis.cluster.v1.BackupCollection\"D\332A" - + "\004name\202\323\344\223\0027\0225/v1/{name=projects/*/locati" - + "ons/*/backupCollections/*}\022\306\001\n\013ListBacku" - + "ps\0221.google.cloud.redis.cluster.v1.ListB" - + "ackupsRequest\0322.google.cloud.redis.clust" - + "er.v1.ListBackupsResponse\"P\332A\006parent\202\323\344\223" - + "\002A\022?/v1/{parent=projects/*/locations/*/b" - + "ackupCollections/*}/backups\022\263\001\n\tGetBacku" - + "p\022/.google.cloud.redis.cluster.v1.GetBac" - + "kupRequest\032%.google.cloud.redis.cluster." - + "v1.Backup\"N\332A\004name\202\323\344\223\002A\022?/v1/{name=proj" - + "ects/*/locations/*/backupCollections/*/b" - + "ackups/*}\022\340\001\n\014DeleteBackup\0222.google.clou" - + "d.redis.cluster.v1.DeleteBackupRequest\032\035" - + ".google.longrunning.Operation\"}\312A,\n\025goog" - + "le.protobuf.Empty\022\023google.protobuf.Any\332A" - + "\004name\202\323\344\223\002A*?/v1/{name=projects/*/locati" - + "ons/*/backupCollections/*/backups/*}\022\324\001\n" - + "\014ExportBackup\0222.google.cloud.redis.clust" - + "er.v1.ExportBackupRequest\032\035.google.longr" - + "unning.Operation\"q\312A\035\n\006Backup\022\023google.pr" - + "otobuf.Any\202\323\344\223\002K\"F/v1/{name=projects/*/l" - + "ocations/*/backupCollections/*/backups/*" - + "}:export:\001*\022\313\001\n\rBackupCluster\0223.google.c" - + "loud.redis.cluster.v1.BackupClusterReque" - + "st\032\035.google.longrunning.Operation\"f\312A\036\n\007" - + "Cluster\022\023google.protobuf.Any\332A\004name\202\323\344\223\002" - + "8\"3/v1/{name=projects/*/locations/*/clus" - + "ters/*}:backup:\001*\032H\312A\024redis.googleapis.c" - + "om\322A.https://www.googleapis.com/auth/clo" - + "ud-platformB\336\006\n!com.google.cloud.redis.c" - + "luster.v1B\026CloudRedisClusterProtoP\001Z;clo" - + "ud.google.com/go/redis/cluster/apiv1/clu" - + "sterpb;clusterpb\352\002!Google::Cloud::Redis:" - + ":Cluster::V1\352An\n%compute.googleapis.com/" - + "ForwardingRule\022Eprojects/{project}/regio" - + "ns/{region}/forwardingRules/{forwarding_" - + "rule}\352AN\n\036compute.googleapis.com/Network" - + "\022,projects/{project}/global/networks/{ne" - + "twork}\352Aw\n(compute.googleapis.com/Servic" - + "eAttachment\022Kprojects/{project}/regions/" - + "{region}/serviceAttachments/{service_att" - + "achment}\352Ax\n!cloudkms.googleapis.com/Cry" - + "ptoKey\022Sprojects/{project}/locations/{lo" - + "cation}/keyRings/{key_ring}/cryptoKeys/{" - + "crypto_key}\352A\246\001\n(cloudkms.googleapis.com" - + "/CryptoKeyVersion\022zprojects/{project}/lo" - + "cations/{location}/keyRings/{key_ring}/c" - + "ryptoKeys/{crypto_key}/cryptoKeyVersions" - + "/{crypto_key_version}\352A\\\n\037privateca.goog" - + "leapis.com/CaPool\0229projects/{project}/lo" - + "cations/{location}/caPools/{ca_pool}b\006pr" - + "oto3" + + "\014ListClusters\0222.google.cloud.redis.cluster.v1.ListClustersRequest\0323.g" + + "oogle.cloud.redis.cluster.v1.ListCluster" + + "sResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/clusters\022\302\001\n" + + "\017ListAclPolicies\0225.google.cloud.redis.cluste" + + "r.v1.ListAclPoliciesRequest\0326.google.cloud.redis.cluster.v1.ListAclPoliciesRespo" + + "nse\"@\332A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*/locations/*}/aclPolicies\022\243\001\n\n" + + "GetCluster\0220.google.cloud.redis.cluster.v1.Get" + + "ClusterRequest\032&.google.cloud.redis.clus" + + "ter.v1.Cluster\";\332A\004name\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*/clusters/*}\022\254\001\n" + + "\014GetAclPolicy\0222.google.cloud.redis.cluste" + + "r.v1.GetAclPolicyRequest\032(.google.cloud." + + "redis.cluster.v1.AclPolicy\">\332A\004name\202\323\344\223\002" + + "1\022//v1/{name=projects/*/locations/*/aclPolicies/*}\022\341\001\n\r" + + "UpdateCluster\0223.google.cl" + + "oud.redis.cluster.v1.UpdateClusterRequest\032\035.google.longrunning.Operation\"|\312A\036\n" + + "\007Cluster\022\023google.protobuf.Any\332A\023cluster,up" + + "date_mask\202\323\344\223\002?24/v1/{cluster.name=proje" + + "cts/*/locations/*/clusters/*}:\007cluster\022\362\001\n" + + "\017UpdateAclPolicy\0225.google.cloud.redis." + + "cluster.v1.UpdateAclPolicyRequest\032\035.google.longrunning.Operation\"\210\001\312A\036\n" + + "\tAclPolicy\022\021OperationMetadata\332A\026acl_policy,update" + + "_mask\202\323\344\223\002H2:/v1/{acl_policy.name=projects/*/locations/*/aclPolicies/*}:\n" + + "acl_policy\022\317\001\n\r" + + "DeleteCluster\0223.google.cloud.red" + + "is.cluster.v1.DeleteClusterRequest\032\035.google.longrunning.Operation\"j\312A,\n" + + "\025google.protobuf.Empty\022\023google.protobuf.Any\332A\004nam" + + "e\202\323\344\223\002.*,/v1/{name=projects/*/locations/*/clusters/*}\022\324\001\n" + + "\017DeleteAclPolicy\0225.google.cloud.redis.cluster.v1.DeleteAclPolic" + + "yRequest\032\035.google.longrunning.Operation\"k\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMe" + + "tadata\332A\004name\202\323\344\223\0021*//v1/{name=projects/*/locations/*/aclPolicies/*}\022\320\001\n" + + "\024GetAclPolicyRevision\022:.google.cloud.redis.clust" + + "er.v1.GetAclPolicyRevisionRequest\0320.google.cloud.redis.cluster.v1.AclPolicyRevis" + + "ion\"J\332A\004name\202\323\344\223\002=\022;/v1/{name=projects/*" + + "/locations/*/aclPolicies/*/revisions/*}\022\343\001\n" + + "\026ListAclPolicyRevisions\022<.google.cloud.redis.cluster.v1.ListAclPolicyRevision" + + "sRequest\032=.google.cloud.redis.cluster.v1" + + ".ListAclPolicyRevisionsResponse\"L\332A\006pare" + + "nt\202\323\344\223\002=\022;/v1/{parent=projects/*/locations/*/aclPolicies/*}/revisions\022\337\001\n\r" + + "CreateCluster\0223.google.cloud.redis.cluster.v1." + + "CreateClusterRequest\032\035.google.longrunning.Operation\"z\312A\036\n" + + "\007Cluster\022\023google.protob" + + "uf.Any\332A\031parent,cluster,cluster_id\202\323\344\223\0027" + + "\",/v1/{parent=projects/*/locations/*}/clusters:\007cluster\022\331\001\n" + + "\017CreateAclPolicy\0225.google.cloud.redis.cluster.v1.CreateAclPol" + + "icyRequest\032(.google.cloud.redis.cluster." + + "v1.AclPolicy\"e\332A\037parent,acl_policy,acl_p" + + "olicy_id\202\323\344\223\002=\"//v1/{parent=projects/*/locations/*}/aclPolicies:\n" + + "acl_policy\022\355\001\n" + + "\036GetClusterCertificateAuthority\022D.google." + + "cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest\0323.google.cloud.redi" + + "s.cluster.v1.CertificateAuthority\"P\332A\004na" + + "me\202\323\344\223\002C\022A/v1/{name=projects/*/locations/*/clusters/*/certificateAuthority}\022\214\002\n" + + "%GetSharedRegionalCertificateAuthority\022K.google.cloud.redis.cluster.v1.GetSharedR" + + "egionalCertificateAuthorityRequest\032A.google.cloud.redis.cluster.v1.SharedRegiona" + + "lCertificateAuthority\"S\332A\004name\202\323\344\223\002F\022D/v" + + "1/{name=projects/*/locations/*/sharedRegionalCertificateAuthority}\022\236\002\n" + + "\034RescheduleClusterMaintenance\022B.google.cloud.redis" + + ".cluster.v1.RescheduleClusterMaintenance" + + "Request\032\035.google.longrunning.Operation\"\232\001\312A\036\n" + + "\007Cluster\022\023google.protobuf.Any\332A\"nam" + + "e,reschedule_type,schedule_time\202\323\344\223\002N\"I/" + + "v1/{name=projects/*/locations/*/clusters/*}:rescheduleClusterMaintenance:\001*\022\332\001\n" + + "\025ListBackupCollections\022;.google.cloud.red" + + "is.cluster.v1.ListBackupCollectionsRequest\032<.google.cloud.redis.cluster.v1.ListB" + + "ackupCollectionsResponse\"F\332A\006parent\202\323\344\223\002" + + "7\0225/v1/{parent=projects/*/locations/*}/backupCollections\022\307\001\n" + + "\023GetBackupCollection\0229.google.cloud.redis.cluster.v1.GetBack" + + "upCollectionRequest\032/.google.cloud.redis" + + ".cluster.v1.BackupCollection\"D\332A\004name\202\323\344" + + "\223\0027\0225/v1/{name=projects/*/locations/*/backupCollections/*}\022\306\001\n" + + "\013ListBackups\0221.google.cloud.redis.cluster.v1.ListBackupsRe" + + "quest\0322.google.cloud.redis.cluster.v1.Li" + + "stBackupsResponse\"P\332A\006parent\202\323\344\223\002A\022?/v1/" + + "{parent=projects/*/locations/*/backupCollections/*}/backups\022\263\001\n" + + "\tGetBackup\022/.google.cloud.redis.cluster.v1.GetBackupReque" + + "st\032%.google.cloud.redis.cluster.v1.Backu" + + "p\"N\332A\004name\202\323\344\223\002A\022?/v1/{name=projects/*/l" + + "ocations/*/backupCollections/*/backups/*}\022\340\001\n" + + "\014DeleteBackup\0222.google.cloud.redis." + + "cluster.v1.DeleteBackupRequest\032\035.google.longrunning.Operation\"}\312A,\n" + + "\025google.protobuf.Empty\022\023google.protobuf.Any\332A\004name\202\323\344" + + "\223\002A*?/v1/{name=projects/*/locations/*/backupCollections/*/backups/*}\022\324\001\n" + + "\014ExportBackup\0222.google.cloud.redis.cluster.v1.Ex" + + "portBackupRequest\032\035.google.longrunning.Operation\"q\312A\035\n" + + "\006Backup\022\023google.protobuf.A" + + "ny\202\323\344\223\002K\"F/v1/{name=projects/*/locations" + + "/*/backupCollections/*/backups/*}:export:\001*\022\313\001\n\r" + + "BackupCluster\0223.google.cloud.red" + + "is.cluster.v1.BackupClusterRequest\032\035.google.longrunning.Operation\"f\312A\036\n" + + "\007Cluster\022\023google.protobuf.Any\332A\004name\202\323\344\223\0028\"3/v1/{" + + "name=projects/*/locations/*/clusters/*}:backup:\001*\022\331\001\n" + + "\022ListTokenAuthUsers\0228.google.cloud.redis.cluster.v1.ListTokenAuthUs" + + "ersRequest\0329.google.cloud.redis.cluster." + + "v1.ListTokenAuthUsersResponse\"N\332A\006parent" + + "\202\323\344\223\002?\022=/v1/{parent=projects/*/locations/*/clusters/*}/tokenAuthUsers\022\306\001\n" + + "\020GetTokenAuthUser\0226.google.cloud.redis.cluster." + + "v1.GetTokenAuthUserRequest\032,.google.clou" + + "d.redis.cluster.v1.TokenAuthUser\"L\332A\004nam" + + "e\202\323\344\223\002?\022=/v1/{name=projects/*/locations/*/clusters/*/tokenAuthUsers/*}\022\332\001\n" + + "\016ListAuthTokens\0224.google.cloud.redis.cluster.v" + + "1.ListAuthTokensRequest\0325.google.cloud.redis.cluster.v1.ListAuthTokensResponse\"[" + + "\332A\006parent\202\323\344\223\002L\022J/v1/{parent=projects/*/" + + "locations/*/clusters/*/tokenAuthUsers/*}/authTokens\022\307\001\n" + + "\014GetAuthToken\0222.google.cloud.redis.cluster.v1.GetAuthTokenRequest" + + "\032(.google.cloud.redis.cluster.v1.AuthTok" + + "en\"Y\332A\004name\202\323\344\223\002L\022J/v1/{name=projects/*/" + + "locations/*/clusters/*/tokenAuthUsers/*/authTokens/*}\022\360\001\n" + + "\020AddTokenAuthUser\0226.google.cloud.redis.cluster.v1.AddTokenAuthU" + + "serRequest\032\035.google.longrunning.Operation\"\204\001\312A\034\n" + + "\007Cluster\022\021OperationMetadata\332A\027cl" + + "uster,token_auth_user\202\323\344\223\002E\"@/v1/{cluste" + + "r=projects/*/locations/*/clusters/*}:addTokenAuthUser:\001*\022\352\001\n" + + "\023DeleteTokenAuthUser\0229.google.cloud.redis.cluster.v1.DeleteT" + + "okenAuthUserRequest\032\035.google.longrunning.Operation\"y\312A*\n" + + "\025google.protobuf.Empty\022\021" + + "OperationMetadata\332A\004name\202\323\344\223\002?*=/v1/{nam" + + "e=projects/*/locations/*/clusters/*/tokenAuthUsers/*}\022\206\002\n" + + "\014AddAuthToken\0222.google." + + "cloud.redis.cluster.v1.AddAuthTokenRequest\032\035.google.longrunning.Operation\"\242\001\312A\"\n" + + "\r" + + "TokenAuthUser\022\021OperationMetadata\332A\032toke" + + "n_auth_user,auth_token\202\323\344\223\002Z\"U/v1/{token" + + "_auth_user=projects/*/locations/*/cluste" + + "rs/*/tokenAuthUsers/*}:addAuthToken:\001*\022\360\001\n" + + "\017DeleteAuthToken\0225.google.cloud.redis." + + "cluster.v1.DeleteAuthTokenRequest\032\035.google.longrunning.Operation\"\206\001\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202" + + "\323\344\223\002L*J/v1/{name=projects/*/locations/*/" + + "clusters/*/tokenAuthUsers/*/authTokens/*" + + "}\032H\312A\024redis.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\336\006\n" + + "!com.google.cloud.redis.cluster.v1B\026Cloud" + + "RedisClusterProtoP\001Z;cloud.google.com/go" + + "/redis/cluster/apiv1/clusterpb;clusterpb\352\002!Google::Cloud::Redis::Cluster::V1\352An\n" + + "%compute.googleapis.com/ForwardingRule\022E" + + "projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}\352AN\n" + + "\036comput" + + "e.googleapis.com/Network\022,projects/{project}/global/networks/{network}\352Aw\n" + + "(compute.googleapis.com/ServiceAttachment\022Kpro" + + "jects/{project}/regions/{region}/serviceAttachments/{service_attachment}\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sprojects" + + "/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352A\246\001\n" + + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects/{project}/locations/{locatio" + + "n}/keyRings/{key_ring}/cryptoKeys/{crypt" + + "o_key}/cryptoKeyVersions/{crypto_key_version}\352A\\\n" + + "\037privateca.googleapis.com/CaPool\0229projects/{project}/locations/{locatio" + + "n}/caPools/{ca_pool}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -880,8 +1213,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Parent", "ClusterId", "Cluster", "RequestId", }); - internal_static_google_cloud_redis_cluster_v1_ListClustersRequest_descriptor = + internal_static_google_cloud_redis_cluster_v1_CreateAclPolicyRequest_descriptor = getDescriptor().getMessageType(1); + internal_static_google_cloud_redis_cluster_v1_CreateAclPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_CreateAclPolicyRequest_descriptor, + new java.lang.String[] { + "Parent", "AclPolicyId", "AclPolicy", "RequestId", + }); + internal_static_google_cloud_redis_cluster_v1_ListClustersRequest_descriptor = + getDescriptor().getMessageType(2); internal_static_google_cloud_redis_cluster_v1_ListClustersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_ListClustersRequest_descriptor, @@ -889,39 +1230,103 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_redis_cluster_v1_ListClustersResponse_descriptor = - getDescriptor().getMessageType(2); + getDescriptor().getMessageType(3); internal_static_google_cloud_redis_cluster_v1_ListClustersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_ListClustersResponse_descriptor, new java.lang.String[] { "Clusters", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_redis_cluster_v1_ListAclPoliciesRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_redis_cluster_v1_ListAclPoliciesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_ListAclPoliciesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_redis_cluster_v1_ListAclPoliciesResponse_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_redis_cluster_v1_ListAclPoliciesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_ListAclPoliciesResponse_descriptor, + new java.lang.String[] { + "AclPolicies", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_redis_cluster_v1_ListAclPolicyRevisionsRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_redis_cluster_v1_ListAclPolicyRevisionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_ListAclPolicyRevisionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_redis_cluster_v1_ListAclPolicyRevisionsResponse_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_redis_cluster_v1_ListAclPolicyRevisionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_ListAclPolicyRevisionsResponse_descriptor, + new java.lang.String[] { + "AclPolicyRevisions", "NextPageToken", "Unreachable", + }); internal_static_google_cloud_redis_cluster_v1_UpdateClusterRequest_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(8); internal_static_google_cloud_redis_cluster_v1_UpdateClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_UpdateClusterRequest_descriptor, new java.lang.String[] { "UpdateMask", "Cluster", "RequestId", }); + internal_static_google_cloud_redis_cluster_v1_UpdateAclPolicyRequest_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_redis_cluster_v1_UpdateAclPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_UpdateAclPolicyRequest_descriptor, + new java.lang.String[] { + "AclPolicy", "UpdateMask", "RequestId", + }); internal_static_google_cloud_redis_cluster_v1_GetClusterRequest_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(10); internal_static_google_cloud_redis_cluster_v1_GetClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_GetClusterRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_cloud_redis_cluster_v1_GetAclPolicyRequest_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_redis_cluster_v1_GetAclPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_GetAclPolicyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_redis_cluster_v1_GetAclPolicyRevisionRequest_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_redis_cluster_v1_GetAclPolicyRevisionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_GetAclPolicyRevisionRequest_descriptor, + new java.lang.String[] { + "Name", + }); internal_static_google_cloud_redis_cluster_v1_DeleteClusterRequest_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(13); internal_static_google_cloud_redis_cluster_v1_DeleteClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_DeleteClusterRequest_descriptor, new java.lang.String[] { "Name", "RequestId", }); + internal_static_google_cloud_redis_cluster_v1_DeleteAclPolicyRequest_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_cloud_redis_cluster_v1_DeleteAclPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_DeleteAclPolicyRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", "Etag", + }); internal_static_google_cloud_redis_cluster_v1_GetClusterCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(15); internal_static_google_cloud_redis_cluster_v1_GetClusterCertificateAuthorityRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_GetClusterCertificateAuthorityRequest_descriptor, @@ -929,7 +1334,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsRequest_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(16); internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsRequest_descriptor, @@ -937,7 +1342,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsResponse_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(17); internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsResponse_descriptor, @@ -945,7 +1350,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackupCollections", "NextPageToken", "Unreachable", }); internal_static_google_cloud_redis_cluster_v1_GetBackupCollectionRequest_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(18); internal_static_google_cloud_redis_cluster_v1_GetBackupCollectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_GetBackupCollectionRequest_descriptor, @@ -953,7 +1358,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_redis_cluster_v1_ListBackupsRequest_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(19); internal_static_google_cloud_redis_cluster_v1_ListBackupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_ListBackupsRequest_descriptor, @@ -961,7 +1366,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_redis_cluster_v1_ListBackupsResponse_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(20); internal_static_google_cloud_redis_cluster_v1_ListBackupsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_ListBackupsResponse_descriptor, @@ -969,7 +1374,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Backups", "NextPageToken", "Unreachable", }); internal_static_google_cloud_redis_cluster_v1_GetBackupRequest_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(21); internal_static_google_cloud_redis_cluster_v1_GetBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_GetBackupRequest_descriptor, @@ -977,7 +1382,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_redis_cluster_v1_DeleteBackupRequest_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(22); internal_static_google_cloud_redis_cluster_v1_DeleteBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_DeleteBackupRequest_descriptor, @@ -985,7 +1390,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_redis_cluster_v1_ExportBackupRequest_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(23); internal_static_google_cloud_redis_cluster_v1_ExportBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_ExportBackupRequest_descriptor, @@ -993,15 +1398,95 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsBucket", "Name", "Destination", }); internal_static_google_cloud_redis_cluster_v1_BackupClusterRequest_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(24); internal_static_google_cloud_redis_cluster_v1_BackupClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_BackupClusterRequest_descriptor, new java.lang.String[] { "Name", "Ttl", "BackupId", }); + internal_static_google_cloud_redis_cluster_v1_ListTokenAuthUsersRequest_descriptor = + getDescriptor().getMessageType(25); + internal_static_google_cloud_redis_cluster_v1_ListTokenAuthUsersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_ListTokenAuthUsersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_redis_cluster_v1_ListTokenAuthUsersResponse_descriptor = + getDescriptor().getMessageType(26); + internal_static_google_cloud_redis_cluster_v1_ListTokenAuthUsersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_ListTokenAuthUsersResponse_descriptor, + new java.lang.String[] { + "TokenAuthUsers", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_redis_cluster_v1_GetTokenAuthUserRequest_descriptor = + getDescriptor().getMessageType(27); + internal_static_google_cloud_redis_cluster_v1_GetTokenAuthUserRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_GetTokenAuthUserRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_redis_cluster_v1_ListAuthTokensRequest_descriptor = + getDescriptor().getMessageType(28); + internal_static_google_cloud_redis_cluster_v1_ListAuthTokensRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_ListAuthTokensRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_redis_cluster_v1_ListAuthTokensResponse_descriptor = + getDescriptor().getMessageType(29); + internal_static_google_cloud_redis_cluster_v1_ListAuthTokensResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_ListAuthTokensResponse_descriptor, + new java.lang.String[] { + "AuthTokens", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_redis_cluster_v1_GetAuthTokenRequest_descriptor = + getDescriptor().getMessageType(30); + internal_static_google_cloud_redis_cluster_v1_GetAuthTokenRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_GetAuthTokenRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_redis_cluster_v1_AddTokenAuthUserRequest_descriptor = + getDescriptor().getMessageType(31); + internal_static_google_cloud_redis_cluster_v1_AddTokenAuthUserRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_AddTokenAuthUserRequest_descriptor, + new java.lang.String[] { + "Cluster", "TokenAuthUser", + }); + internal_static_google_cloud_redis_cluster_v1_DeleteTokenAuthUserRequest_descriptor = + getDescriptor().getMessageType(32); + internal_static_google_cloud_redis_cluster_v1_DeleteTokenAuthUserRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_DeleteTokenAuthUserRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", "Force", + }); + internal_static_google_cloud_redis_cluster_v1_AddAuthTokenRequest_descriptor = + getDescriptor().getMessageType(33); + internal_static_google_cloud_redis_cluster_v1_AddAuthTokenRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_AddAuthTokenRequest_descriptor, + new java.lang.String[] { + "TokenAuthUser", "AuthToken", + }); + internal_static_google_cloud_redis_cluster_v1_DeleteAuthTokenRequest_descriptor = + getDescriptor().getMessageType(34); + internal_static_google_cloud_redis_cluster_v1_DeleteAuthTokenRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_DeleteAuthTokenRequest_descriptor, + new java.lang.String[] { + "Name", + }); internal_static_google_cloud_redis_cluster_v1_Cluster_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(35); internal_static_google_cloud_redis_cluster_v1_Cluster_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_Cluster_descriptor, @@ -1040,6 +1525,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServerCaMode", "ServerCaPool", "RotateServerCertificate", + "AclPolicy", + "AclPolicyInfo", "ImportSources", }); internal_static_google_cloud_redis_cluster_v1_Cluster_StateInfo_descriptor = @@ -1082,8 +1569,65 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_redis_cluster_v1_AclPolicyInfo_descriptor = + getDescriptor().getMessageType(36); + internal_static_google_cloud_redis_cluster_v1_AclPolicyInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_AclPolicyInfo_descriptor, + new java.lang.String[] { + "AppliedAclPolicy", + "AppliedAclPolicyRevision", + "AppliedAclPolicyRevisionNumber", + "AclPolicyRevisionStatuses", + }); + internal_static_google_cloud_redis_cluster_v1_AclPolicy_descriptor = + getDescriptor().getMessageType(37); + internal_static_google_cloud_redis_cluster_v1_AclPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_AclPolicy_descriptor, + new java.lang.String[] { + "Name", + "Rules", + "State", + "Etag", + "ClusterAclPolicyAttachments", + "CreateTime", + "UpdateTime", + }); + internal_static_google_cloud_redis_cluster_v1_AclPolicyRevisionStatus_descriptor = + getDescriptor().getMessageType(38); + internal_static_google_cloud_redis_cluster_v1_AclPolicyRevisionStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_AclPolicyRevisionStatus_descriptor, + new java.lang.String[] { + "AclPolicyRevision", "AclPolicyRevisionNumber", "State", "ErrorMessage", + }); + internal_static_google_cloud_redis_cluster_v1_ClusterAclPolicyAttachment_descriptor = + getDescriptor().getMessageType(39); + internal_static_google_cloud_redis_cluster_v1_ClusterAclPolicyAttachment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_ClusterAclPolicyAttachment_descriptor, + new java.lang.String[] { + "Cluster", "AclPolicyRevisionStatuses", + }); + internal_static_google_cloud_redis_cluster_v1_AclPolicyRevision_descriptor = + getDescriptor().getMessageType(40); + internal_static_google_cloud_redis_cluster_v1_AclPolicyRevision_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_AclPolicyRevision_descriptor, + new java.lang.String[] { + "Name", "RevisionNumber", "Snapshot", "CreateTime", "AttachedClusters", + }); + internal_static_google_cloud_redis_cluster_v1_AclRule_descriptor = + getDescriptor().getMessageType(41); + internal_static_google_cloud_redis_cluster_v1_AclRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_AclRule_descriptor, + new java.lang.String[] { + "Username", "Rule", + }); internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(42); internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_descriptor, @@ -1100,7 +1644,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StartTime", }); internal_static_google_cloud_redis_cluster_v1_BackupCollection_descriptor = - getDescriptor().getMessageType(18); + getDescriptor().getMessageType(43); internal_static_google_cloud_redis_cluster_v1_BackupCollection_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_BackupCollection_descriptor, @@ -1108,7 +1652,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ClusterUid", "Cluster", "KmsKey", "Uid", }); internal_static_google_cloud_redis_cluster_v1_Backup_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(44); internal_static_google_cloud_redis_cluster_v1_Backup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_Backup_descriptor, @@ -1130,7 +1674,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Uid", }); internal_static_google_cloud_redis_cluster_v1_BackupFile_descriptor = - getDescriptor().getMessageType(20); + getDescriptor().getMessageType(45); internal_static_google_cloud_redis_cluster_v1_BackupFile_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_BackupFile_descriptor, @@ -1138,7 +1682,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FileName", "SizeBytes", "CreateTime", }); internal_static_google_cloud_redis_cluster_v1_PscServiceAttachment_descriptor = - getDescriptor().getMessageType(21); + getDescriptor().getMessageType(46); internal_static_google_cloud_redis_cluster_v1_PscServiceAttachment_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_PscServiceAttachment_descriptor, @@ -1146,7 +1690,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceAttachment", "ConnectionType", }); internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_descriptor = - getDescriptor().getMessageType(22); + getDescriptor().getMessageType(47); internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_descriptor, @@ -1172,7 +1716,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrimaryCluster", "SecondaryClusters", }); internal_static_google_cloud_redis_cluster_v1_ClusterMaintenancePolicy_descriptor = - getDescriptor().getMessageType(23); + getDescriptor().getMessageType(48); internal_static_google_cloud_redis_cluster_v1_ClusterMaintenancePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_ClusterMaintenancePolicy_descriptor, @@ -1180,7 +1724,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "UpdateTime", "WeeklyMaintenanceWindow", }); internal_static_google_cloud_redis_cluster_v1_ClusterWeeklyMaintenanceWindow_descriptor = - getDescriptor().getMessageType(24); + getDescriptor().getMessageType(49); internal_static_google_cloud_redis_cluster_v1_ClusterWeeklyMaintenanceWindow_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_ClusterWeeklyMaintenanceWindow_descriptor, @@ -1188,7 +1732,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Day", "StartTime", }); internal_static_google_cloud_redis_cluster_v1_ClusterMaintenanceSchedule_descriptor = - getDescriptor().getMessageType(25); + getDescriptor().getMessageType(50); internal_static_google_cloud_redis_cluster_v1_ClusterMaintenanceSchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_ClusterMaintenanceSchedule_descriptor, @@ -1196,7 +1740,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StartTime", "EndTime", }); internal_static_google_cloud_redis_cluster_v1_PscConfig_descriptor = - getDescriptor().getMessageType(26); + getDescriptor().getMessageType(51); internal_static_google_cloud_redis_cluster_v1_PscConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_PscConfig_descriptor, @@ -1204,7 +1748,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Network", }); internal_static_google_cloud_redis_cluster_v1_DiscoveryEndpoint_descriptor = - getDescriptor().getMessageType(27); + getDescriptor().getMessageType(52); internal_static_google_cloud_redis_cluster_v1_DiscoveryEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_DiscoveryEndpoint_descriptor, @@ -1212,7 +1756,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Address", "Port", "PscConfig", }); internal_static_google_cloud_redis_cluster_v1_PscConnection_descriptor = - getDescriptor().getMessageType(28); + getDescriptor().getMessageType(53); internal_static_google_cloud_redis_cluster_v1_PscConnection_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_PscConnection_descriptor, @@ -1227,7 +1771,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConnectionType", }); internal_static_google_cloud_redis_cluster_v1_ClusterEndpoint_descriptor = - getDescriptor().getMessageType(29); + getDescriptor().getMessageType(54); internal_static_google_cloud_redis_cluster_v1_ClusterEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_ClusterEndpoint_descriptor, @@ -1235,7 +1779,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Connections", }); internal_static_google_cloud_redis_cluster_v1_ConnectionDetail_descriptor = - getDescriptor().getMessageType(30); + getDescriptor().getMessageType(55); internal_static_google_cloud_redis_cluster_v1_ConnectionDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_ConnectionDetail_descriptor, @@ -1243,7 +1787,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PscAutoConnection", "PscConnection", "Connection", }); internal_static_google_cloud_redis_cluster_v1_PscAutoConnection_descriptor = - getDescriptor().getMessageType(31); + getDescriptor().getMessageType(56); internal_static_google_cloud_redis_cluster_v1_PscAutoConnection_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_PscAutoConnection_descriptor, @@ -1258,7 +1802,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConnectionType", }); internal_static_google_cloud_redis_cluster_v1_SharedRegionalCertificateAuthority_descriptor = - getDescriptor().getMessageType(32); + getDescriptor().getMessageType(57); internal_static_google_cloud_redis_cluster_v1_SharedRegionalCertificateAuthority_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_SharedRegionalCertificateAuthority_descriptor, @@ -1284,7 +1828,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Certificates", }); internal_static_google_cloud_redis_cluster_v1_GetSharedRegionalCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageType(33); + getDescriptor().getMessageType(58); internal_static_google_cloud_redis_cluster_v1_GetSharedRegionalCertificateAuthorityRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_GetSharedRegionalCertificateAuthorityRequest_descriptor, @@ -1292,7 +1836,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_redis_cluster_v1_OperationMetadata_descriptor = - getDescriptor().getMessageType(34); + getDescriptor().getMessageType(59); internal_static_google_cloud_redis_cluster_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_OperationMetadata_descriptor, @@ -1305,8 +1849,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestedCancellation", "ApiVersion", }); + internal_static_google_cloud_redis_cluster_v1_TokenAuthUser_descriptor = + getDescriptor().getMessageType(60); + internal_static_google_cloud_redis_cluster_v1_TokenAuthUser_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_TokenAuthUser_descriptor, + new java.lang.String[] { + "Name", "State", + }); + internal_static_google_cloud_redis_cluster_v1_AuthToken_descriptor = + getDescriptor().getMessageType(61); + internal_static_google_cloud_redis_cluster_v1_AuthToken_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_AuthToken_descriptor, + new java.lang.String[] { + "Name", "Token", "CreateTime", "State", + }); internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_descriptor = - getDescriptor().getMessageType(35); + getDescriptor().getMessageType(62); internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_descriptor, @@ -1332,7 +1892,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Certificates", }); internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_descriptor = - getDescriptor().getMessageType(36); + getDescriptor().getMessageType(63); internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_descriptor, @@ -1358,7 +1918,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AppendFsync", }); internal_static_google_cloud_redis_cluster_v1_ZoneDistributionConfig_descriptor = - getDescriptor().getMessageType(37); + getDescriptor().getMessageType(64); internal_static_google_cloud_redis_cluster_v1_ZoneDistributionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_ZoneDistributionConfig_descriptor, @@ -1366,7 +1926,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Mode", "Zone", }); internal_static_google_cloud_redis_cluster_v1_RescheduleClusterMaintenanceRequest_descriptor = - getDescriptor().getMessageType(38); + getDescriptor().getMessageType(65); internal_static_google_cloud_redis_cluster_v1_RescheduleClusterMaintenanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_RescheduleClusterMaintenanceRequest_descriptor, @@ -1374,7 +1934,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RescheduleType", "ScheduleTime", }); internal_static_google_cloud_redis_cluster_v1_EncryptionInfo_descriptor = - getDescriptor().getMessageType(39); + getDescriptor().getMessageType(66); internal_static_google_cloud_redis_cluster_v1_EncryptionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_EncryptionInfo_descriptor, diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/Cluster.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/Cluster.java index 026b8f7cd480..cbf6cc3eb432 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/Cluster.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/Cluster.java @@ -67,6 +67,7 @@ private Cluster() { kmsKey_ = ""; serverCaMode_ = 0; serverCaPool_ = ""; + aclPolicy_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -5434,6 +5435,122 @@ public boolean getRotateServerCertificate() { return rotateServerCertificate_; } + public static final int ACL_POLICY_FIELD_NUMBER = 56; + + @SuppressWarnings("serial") + private volatile java.lang.Object aclPolicy_ = ""; + + /** + * + * + *
          +   * Optional. The ACL policy to be applied to the cluster.
          +   * 
          + * + * + * string acl_policy = 56 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The aclPolicy. + */ + @java.lang.Override + public java.lang.String getAclPolicy() { + java.lang.Object ref = aclPolicy_; + 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(); + aclPolicy_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. The ACL policy to be applied to the cluster.
          +   * 
          + * + * + * string acl_policy = 56 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for aclPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAclPolicyBytes() { + java.lang.Object ref = aclPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aclPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACL_POLICY_INFO_FIELD_NUMBER = 58; + private com.google.cloud.redis.cluster.v1.AclPolicyInfo aclPolicyInfo_; + + /** + * + * + *
          +   * Output only. Details of the applied ACL policy.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the aclPolicyInfo field is set. + */ + @java.lang.Override + public boolean hasAclPolicyInfo() { + return ((bitField0_ & 0x00100000) != 0); + } + + /** + * + * + *
          +   * Output only. Details of the applied ACL policy.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The aclPolicyInfo. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicyInfo getAclPolicyInfo() { + return aclPolicyInfo_ == null + ? com.google.cloud.redis.cluster.v1.AclPolicyInfo.getDefaultInstance() + : aclPolicyInfo_; + } + + /** + * + * + *
          +   * Output only. Details of the applied ACL policy.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicyInfoOrBuilder getAclPolicyInfoOrBuilder() { + return aclPolicyInfo_ == null + ? com.google.cloud.redis.cluster.v1.AclPolicyInfo.getDefaultInstance() + : aclPolicyInfo_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -5555,6 +5672,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00080000) != 0)) { output.writeBool(55, rotateServerCertificate_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(aclPolicy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 56, aclPolicy_); + } + if (((bitField0_ & 0x00100000) != 0)) { + output.writeMessage(58, getAclPolicyInfo()); + } getUnknownFields().writeTo(output); } @@ -5692,6 +5815,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(55, rotateServerCertificate_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(aclPolicy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(56, aclPolicy_); + } + if (((bitField0_ & 0x00100000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(58, getAclPolicyInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5805,6 +5934,11 @@ public boolean equals(final java.lang.Object obj) { if (hasRotateServerCertificate()) { if (getRotateServerCertificate() != other.getRotateServerCertificate()) return false; } + if (!getAclPolicy().equals(other.getAclPolicy())) return false; + if (hasAclPolicyInfo() != other.hasAclPolicyInfo()) return false; + if (hasAclPolicyInfo()) { + if (!getAclPolicyInfo().equals(other.getAclPolicyInfo())) return false; + } if (!getImportSourcesCase().equals(other.getImportSourcesCase())) return false; switch (importSourcesCase_) { case 34: @@ -5948,6 +6082,12 @@ public int hashCode() { hash = (37 * hash) + ROTATE_SERVER_CERTIFICATE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRotateServerCertificate()); } + hash = (37 * hash) + ACL_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicy().hashCode(); + if (hasAclPolicyInfo()) { + hash = (37 * hash) + ACL_POLICY_INFO_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicyInfo().hashCode(); + } switch (importSourcesCase_) { case 34: hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; @@ -6137,6 +6277,7 @@ private void maybeForceBuilderInitialization() { internalGetClusterEndpointsFieldBuilder(); internalGetAutomatedBackupConfigFieldBuilder(); internalGetEncryptionInfoFieldBuilder(); + internalGetAclPolicyInfoFieldBuilder(); } } @@ -6249,6 +6390,12 @@ public Builder clear() { serverCaMode_ = 0; serverCaPool_ = ""; rotateServerCertificate_ = false; + aclPolicy_ = ""; + aclPolicyInfo_ = null; + if (aclPolicyInfoBuilder_ != null) { + aclPolicyInfoBuilder_.dispose(); + aclPolicyInfoBuilder_ = null; + } importSourcesCase_ = 0; importSources_ = null; return this; @@ -6468,6 +6615,14 @@ private void buildPartial1(com.google.cloud.redis.cluster.v1.Cluster result) { result.rotateServerCertificate_ = rotateServerCertificate_; to_bitField0_ |= 0x00080000; } + if (((from_bitField1_ & 0x00000004) != 0)) { + result.aclPolicy_ = aclPolicy_; + } + if (((from_bitField1_ & 0x00000008) != 0)) { + result.aclPolicyInfo_ = + aclPolicyInfoBuilder_ == null ? aclPolicyInfo_ : aclPolicyInfoBuilder_.build(); + to_bitField0_ |= 0x00100000; + } result.bitField0_ |= to_bitField0_; } @@ -6719,6 +6874,14 @@ public Builder mergeFrom(com.google.cloud.redis.cluster.v1.Cluster other) { if (other.hasRotateServerCertificate()) { setRotateServerCertificate(other.getRotateServerCertificate()); } + if (!other.getAclPolicy().isEmpty()) { + aclPolicy_ = other.aclPolicy_; + bitField1_ |= 0x00000004; + onChanged(); + } + if (other.hasAclPolicyInfo()) { + mergeAclPolicyInfo(other.getAclPolicyInfo()); + } switch (other.getImportSourcesCase()) { case GCS_SOURCE: { @@ -7023,6 +7186,19 @@ public Builder mergeFrom( bitField1_ |= 0x00000002; break; } // case 440 + case 450: + { + aclPolicy_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00000004; + break; + } // case 450 + case 466: + { + input.readMessage( + internalGetAclPolicyInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00000008; + break; + } // case 466 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -13664,6 +13840,341 @@ public Builder clearRotateServerCertificate() { return this; } + private java.lang.Object aclPolicy_ = ""; + + /** + * + * + *
          +     * Optional. The ACL policy to be applied to the cluster.
          +     * 
          + * + * + * string acl_policy = 56 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The aclPolicy. + */ + public java.lang.String getAclPolicy() { + java.lang.Object ref = aclPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + aclPolicy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. The ACL policy to be applied to the cluster.
          +     * 
          + * + * + * string acl_policy = 56 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for aclPolicy. + */ + public com.google.protobuf.ByteString getAclPolicyBytes() { + java.lang.Object ref = aclPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aclPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. The ACL policy to be applied to the cluster.
          +     * 
          + * + * + * string acl_policy = 56 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The aclPolicy to set. + * @return This builder for chaining. + */ + public Builder setAclPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + aclPolicy_ = value; + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The ACL policy to be applied to the cluster.
          +     * 
          + * + * + * string acl_policy = 56 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAclPolicy() { + aclPolicy_ = getDefaultInstance().getAclPolicy(); + bitField1_ = (bitField1_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The ACL policy to be applied to the cluster.
          +     * 
          + * + * + * string acl_policy = 56 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for aclPolicy to set. + * @return This builder for chaining. + */ + public Builder setAclPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + aclPolicy_ = value; + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.redis.cluster.v1.AclPolicyInfo aclPolicyInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1.AclPolicyInfo, + com.google.cloud.redis.cluster.v1.AclPolicyInfo.Builder, + com.google.cloud.redis.cluster.v1.AclPolicyInfoOrBuilder> + aclPolicyInfoBuilder_; + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the aclPolicyInfo field is set. + */ + public boolean hasAclPolicyInfo() { + return ((bitField1_ & 0x00000008) != 0); + } + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The aclPolicyInfo. + */ + public com.google.cloud.redis.cluster.v1.AclPolicyInfo getAclPolicyInfo() { + if (aclPolicyInfoBuilder_ == null) { + return aclPolicyInfo_ == null + ? com.google.cloud.redis.cluster.v1.AclPolicyInfo.getDefaultInstance() + : aclPolicyInfo_; + } else { + return aclPolicyInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAclPolicyInfo(com.google.cloud.redis.cluster.v1.AclPolicyInfo value) { + if (aclPolicyInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aclPolicyInfo_ = value; + } else { + aclPolicyInfoBuilder_.setMessage(value); + } + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAclPolicyInfo( + com.google.cloud.redis.cluster.v1.AclPolicyInfo.Builder builderForValue) { + if (aclPolicyInfoBuilder_ == null) { + aclPolicyInfo_ = builderForValue.build(); + } else { + aclPolicyInfoBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAclPolicyInfo(com.google.cloud.redis.cluster.v1.AclPolicyInfo value) { + if (aclPolicyInfoBuilder_ == null) { + if (((bitField1_ & 0x00000008) != 0) + && aclPolicyInfo_ != null + && aclPolicyInfo_ + != com.google.cloud.redis.cluster.v1.AclPolicyInfo.getDefaultInstance()) { + getAclPolicyInfoBuilder().mergeFrom(value); + } else { + aclPolicyInfo_ = value; + } + } else { + aclPolicyInfoBuilder_.mergeFrom(value); + } + if (aclPolicyInfo_ != null) { + bitField1_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAclPolicyInfo() { + bitField1_ = (bitField1_ & ~0x00000008); + aclPolicyInfo_ = null; + if (aclPolicyInfoBuilder_ != null) { + aclPolicyInfoBuilder_.dispose(); + aclPolicyInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.AclPolicyInfo.Builder getAclPolicyInfoBuilder() { + bitField1_ |= 0x00000008; + onChanged(); + return internalGetAclPolicyInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.AclPolicyInfoOrBuilder getAclPolicyInfoOrBuilder() { + if (aclPolicyInfoBuilder_ != null) { + return aclPolicyInfoBuilder_.getMessageOrBuilder(); + } else { + return aclPolicyInfo_ == null + ? com.google.cloud.redis.cluster.v1.AclPolicyInfo.getDefaultInstance() + : aclPolicyInfo_; + } + } + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1.AclPolicyInfo, + com.google.cloud.redis.cluster.v1.AclPolicyInfo.Builder, + com.google.cloud.redis.cluster.v1.AclPolicyInfoOrBuilder> + internalGetAclPolicyInfoFieldBuilder() { + if (aclPolicyInfoBuilder_ == null) { + aclPolicyInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1.AclPolicyInfo, + com.google.cloud.redis.cluster.v1.AclPolicyInfo.Builder, + com.google.cloud.redis.cluster.v1.AclPolicyInfoOrBuilder>( + getAclPolicyInfo(), getParentForChildren(), isClean()); + aclPolicyInfo_ = null; + } + return aclPolicyInfoBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.Cluster) } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterAclPolicyAttachment.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterAclPolicyAttachment.java new file mode 100644 index 000000000000..64fa1bb85e71 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterAclPolicyAttachment.java @@ -0,0 +1,1247 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * ClusterAclPolicyAttachment stores the ACL policy status for an attached
          + * cluster for the revisions successfully applied, under application or failed.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment} + */ +@com.google.protobuf.Generated +public final class ClusterAclPolicyAttachment extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment) + ClusterAclPolicyAttachmentOrBuilder { + 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= */ "", + "ClusterAclPolicyAttachment"); + } + + // Use ClusterAclPolicyAttachment.newBuilder() to construct. + private ClusterAclPolicyAttachment(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ClusterAclPolicyAttachment() { + cluster_ = ""; + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterAclPolicyAttachment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterAclPolicyAttachment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment.class, + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment.Builder.class); + } + + public static final int CLUSTER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object cluster_ = ""; + + /** + * + * + *
          +   * Output only. The resource name of the attached Cluster.
          +   * Format:
          +   * "projects/{project}/locations/{location}/clusters/{cluster}"
          +   * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The cluster. + */ + @java.lang.Override + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + 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(); + cluster_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. The resource name of the attached Cluster.
          +   * Format:
          +   * "projects/{project}/locations/{location}/clusters/{cluster}"
          +   * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cluster. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACL_POLICY_REVISION_STATUSES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + aclPolicyRevisionStatuses_; + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getAclPolicyRevisionStatusesList() { + return aclPolicyRevisionStatuses_; + } + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatusOrBuilder> + getAclPolicyRevisionStatusesOrBuilderList() { + return aclPolicyRevisionStatuses_; + } + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getAclPolicyRevisionStatusesCount() { + return aclPolicyRevisionStatuses_.size(); + } + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus getAclPolicyRevisionStatuses( + int index) { + return aclPolicyRevisionStatuses_.get(index); + } + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatusOrBuilder + getAclPolicyRevisionStatusesOrBuilder(int index) { + return aclPolicyRevisionStatuses_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cluster_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, cluster_); + } + for (int i = 0; i < aclPolicyRevisionStatuses_.size(); i++) { + output.writeMessage(2, aclPolicyRevisionStatuses_.get(i)); + } + 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(cluster_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, cluster_); + } + for (int i = 0; i < aclPolicyRevisionStatuses_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, aclPolicyRevisionStatuses_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment other = + (com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment) obj; + + if (!getCluster().equals(other.getCluster())) return false; + if (!getAclPolicyRevisionStatusesList().equals(other.getAclPolicyRevisionStatusesList())) + 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) + CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getCluster().hashCode(); + if (getAclPolicyRevisionStatusesCount() > 0) { + hash = (37 * hash) + ACL_POLICY_REVISION_STATUSES_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicyRevisionStatusesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment 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.redis.cluster.v1.ClusterAclPolicyAttachment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment 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.redis.cluster.v1.ClusterAclPolicyAttachment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment 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.redis.cluster.v1.ClusterAclPolicyAttachment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment 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.redis.cluster.v1.ClusterAclPolicyAttachment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment 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.redis.cluster.v1.ClusterAclPolicyAttachment 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; + } + + /** + * + * + *
          +   * ClusterAclPolicyAttachment stores the ACL policy status for an attached
          +   * cluster for the revisions successfully applied, under application or failed.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment) + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterAclPolicyAttachment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterAclPolicyAttachment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment.class, + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cluster_ = ""; + if (aclPolicyRevisionStatusesBuilder_ == null) { + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + } else { + aclPolicyRevisionStatuses_ = null; + aclPolicyRevisionStatusesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterAclPolicyAttachment_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment build() { + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment buildPartial() { + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment result = + new com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment result) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + aclPolicyRevisionStatuses_ = + java.util.Collections.unmodifiableList(aclPolicyRevisionStatuses_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.aclPolicyRevisionStatuses_ = aclPolicyRevisionStatuses_; + } else { + result.aclPolicyRevisionStatuses_ = aclPolicyRevisionStatusesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cluster_ = cluster_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment) { + return mergeFrom((com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment other) { + if (other + == com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment.getDefaultInstance()) + return this; + if (!other.getCluster().isEmpty()) { + cluster_ = other.cluster_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (!other.aclPolicyRevisionStatuses_.isEmpty()) { + if (aclPolicyRevisionStatuses_.isEmpty()) { + aclPolicyRevisionStatuses_ = other.aclPolicyRevisionStatuses_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.addAll(other.aclPolicyRevisionStatuses_); + } + onChanged(); + } + } else { + if (!other.aclPolicyRevisionStatuses_.isEmpty()) { + if (aclPolicyRevisionStatusesBuilder_.isEmpty()) { + aclPolicyRevisionStatusesBuilder_.dispose(); + aclPolicyRevisionStatusesBuilder_ = null; + aclPolicyRevisionStatuses_ = other.aclPolicyRevisionStatuses_; + bitField0_ = (bitField0_ & ~0x00000002); + aclPolicyRevisionStatusesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAclPolicyRevisionStatusesFieldBuilder() + : null; + } else { + aclPolicyRevisionStatusesBuilder_.addAllMessages(other.aclPolicyRevisionStatuses_); + } + } + } + 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: + { + cluster_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus m = + input.readMessage( + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.parser(), + extensionRegistry); + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(m); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object cluster_ = ""; + + /** + * + * + *
          +     * Output only. The resource name of the attached Cluster.
          +     * Format:
          +     * "projects/{project}/locations/{location}/clusters/{cluster}"
          +     * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The cluster. + */ + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the attached Cluster.
          +     * Format:
          +     * "projects/{project}/locations/{location}/clusters/{cluster}"
          +     * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cluster. + */ + public com.google.protobuf.ByteString getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the attached Cluster.
          +     * Format:
          +     * "projects/{project}/locations/{location}/clusters/{cluster}"
          +     * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The cluster to set. + * @return This builder for chaining. + */ + public Builder setCluster(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cluster_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the attached Cluster.
          +     * Format:
          +     * "projects/{project}/locations/{location}/clusters/{cluster}"
          +     * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCluster() { + cluster_ = getDefaultInstance().getCluster(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the attached Cluster.
          +     * Format:
          +     * "projects/{project}/locations/{location}/clusters/{cluster}"
          +     * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cluster to set. + * @return This builder for chaining. + */ + public Builder setClusterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cluster_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + + private void ensureAclPolicyRevisionStatusesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + aclPolicyRevisionStatuses_ = + new java.util.ArrayList( + aclPolicyRevisionStatuses_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus, + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.Builder, + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatusOrBuilder> + aclPolicyRevisionStatusesBuilder_; + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getAclPolicyRevisionStatusesList() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return java.util.Collections.unmodifiableList(aclPolicyRevisionStatuses_); + } else { + return aclPolicyRevisionStatusesBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getAclPolicyRevisionStatusesCount() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return aclPolicyRevisionStatuses_.size(); + } else { + return aclPolicyRevisionStatusesBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus getAclPolicyRevisionStatuses( + int index) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return aclPolicyRevisionStatuses_.get(index); + } else { + return aclPolicyRevisionStatusesBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAclPolicyRevisionStatuses( + int index, com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus value) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.set(index, value); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAclPolicyRevisionStatuses( + int index, + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.Builder builderForValue) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.set(index, builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus value) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(value); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + int index, com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus value) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(index, value); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.Builder builderForValue) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + int index, + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.Builder builderForValue) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(index, builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllAclPolicyRevisionStatuses( + java.lang.Iterable + values) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aclPolicyRevisionStatuses_); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAclPolicyRevisionStatuses() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeAclPolicyRevisionStatuses(int index) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.remove(index); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.Builder + getAclPolicyRevisionStatusesBuilder(int index) { + return internalGetAclPolicyRevisionStatusesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatusOrBuilder + getAclPolicyRevisionStatusesOrBuilder(int index) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return aclPolicyRevisionStatuses_.get(index); + } else { + return aclPolicyRevisionStatusesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatusOrBuilder> + getAclPolicyRevisionStatusesOrBuilderList() { + if (aclPolicyRevisionStatusesBuilder_ != null) { + return aclPolicyRevisionStatusesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(aclPolicyRevisionStatuses_); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.Builder + addAclPolicyRevisionStatusesBuilder() { + return internalGetAclPolicyRevisionStatusesFieldBuilder() + .addBuilder( + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.getDefaultInstance()); + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.Builder + addAclPolicyRevisionStatusesBuilder(int index) { + return internalGetAclPolicyRevisionStatusesFieldBuilder() + .addBuilder( + index, + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.getDefaultInstance()); + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getAclPolicyRevisionStatusesBuilderList() { + return internalGetAclPolicyRevisionStatusesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus, + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.Builder, + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatusOrBuilder> + internalGetAclPolicyRevisionStatusesFieldBuilder() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + aclPolicyRevisionStatusesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus, + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus.Builder, + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatusOrBuilder>( + aclPolicyRevisionStatuses_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + aclPolicyRevisionStatuses_ = null; + } + return aclPolicyRevisionStatusesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment) + private static final com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment(); + } + + public static com.google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterAclPolicyAttachment 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.redis.cluster.v1.ClusterAclPolicyAttachment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterAclPolicyAttachmentOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterAclPolicyAttachmentOrBuilder.java new file mode 100644 index 000000000000..3a7c3b03f3b4 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterAclPolicyAttachmentOrBuilder.java @@ -0,0 +1,135 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface ClusterAclPolicyAttachmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.ClusterAclPolicyAttachment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Output only. The resource name of the attached Cluster.
          +   * Format:
          +   * "projects/{project}/locations/{location}/clusters/{cluster}"
          +   * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The cluster. + */ + java.lang.String getCluster(); + + /** + * + * + *
          +   * Output only. The resource name of the attached Cluster.
          +   * Format:
          +   * "projects/{project}/locations/{location}/clusters/{cluster}"
          +   * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cluster. + */ + com.google.protobuf.ByteString getClusterBytes(); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAclPolicyRevisionStatusesList(); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatus getAclPolicyRevisionStatuses(int index); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAclPolicyRevisionStatusesCount(); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAclPolicyRevisionStatusesOrBuilderList(); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1.AclPolicyRevisionStatusOrBuilder + getAclPolicyRevisionStatusesOrBuilder(int index); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterOrBuilder.java index c617923613e9..9778244ba77e 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterOrBuilder.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterOrBuilder.java @@ -1523,5 +1523,78 @@ com.google.cloud.redis.cluster.v1.ClusterEndpointOrBuilder getClusterEndpointsOr */ boolean getRotateServerCertificate(); + /** + * + * + *
          +   * Optional. The ACL policy to be applied to the cluster.
          +   * 
          + * + * + * string acl_policy = 56 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The aclPolicy. + */ + java.lang.String getAclPolicy(); + + /** + * + * + *
          +   * Optional. The ACL policy to be applied to the cluster.
          +   * 
          + * + * + * string acl_policy = 56 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for aclPolicy. + */ + com.google.protobuf.ByteString getAclPolicyBytes(); + + /** + * + * + *
          +   * Output only. Details of the applied ACL policy.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the aclPolicyInfo field is set. + */ + boolean hasAclPolicyInfo(); + + /** + * + * + *
          +   * Output only. Details of the applied ACL policy.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The aclPolicyInfo. + */ + com.google.cloud.redis.cluster.v1.AclPolicyInfo getAclPolicyInfo(); + + /** + * + * + *
          +   * Output only. Details of the applied ACL policy.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1.AclPolicyInfoOrBuilder getAclPolicyInfoOrBuilder(); + com.google.cloud.redis.cluster.v1.Cluster.ImportSourcesCase getImportSourcesCase(); } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CreateAclPolicyRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CreateAclPolicyRequest.java new file mode 100644 index 000000000000..0d0aad93524b --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CreateAclPolicyRequest.java @@ -0,0 +1,1390 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * Request for `CreateAclPolicy`.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.CreateAclPolicyRequest} + */ +@com.google.protobuf.Generated +public final class CreateAclPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.CreateAclPolicyRequest) + CreateAclPolicyRequestOrBuilder { + 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= */ "", + "CreateAclPolicyRequest"); + } + + // Use CreateAclPolicyRequest.newBuilder() to construct. + private CreateAclPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateAclPolicyRequest() { + parent_ = ""; + aclPolicyId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CreateAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CreateAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest.class, + com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
          +   * Required. The resource name of the cluster location using the form:
          +   * `projects/{project_id}/locations/{location_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The resource name of the cluster location using the form:
          +   * `projects/{project_id}/locations/{location_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACL_POLICY_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object aclPolicyId_ = ""; + + /** + * + * + *
          +   * Required. The logical name of the ACL policy in the customer project
          +   * with the following restrictions:
          +   *
          +   * * Must contain only lowercase letters, numbers, and hyphens.
          +   * * Must start with a letter.
          +   * * Must be between 1-63 characters.
          +   * * Must end with a number or a letter.
          +   * * Must be unique within the customer project / location
          +   * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The aclPolicyId. + */ + @java.lang.Override + public java.lang.String getAclPolicyId() { + java.lang.Object ref = aclPolicyId_; + 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(); + aclPolicyId_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The logical name of the ACL policy in the customer project
          +   * with the following restrictions:
          +   *
          +   * * Must contain only lowercase letters, numbers, and hyphens.
          +   * * Must start with a letter.
          +   * * Must be between 1-63 characters.
          +   * * Must end with a number or a letter.
          +   * * Must be unique within the customer project / location
          +   * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for aclPolicyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAclPolicyIdBytes() { + java.lang.Object ref = aclPolicyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aclPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACL_POLICY_FIELD_NUMBER = 3; + private com.google.cloud.redis.cluster.v1.AclPolicy aclPolicy_; + + /** + * + * + *
          +   * Required. The ACL policy that is to be created.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclPolicy field is set. + */ + @java.lang.Override + public boolean hasAclPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Required. The ACL policy that is to be created.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclPolicy. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicy getAclPolicy() { + return aclPolicy_ == null + ? com.google.cloud.redis.cluster.v1.AclPolicy.getDefaultInstance() + : aclPolicy_; + } + + /** + * + * + *
          +   * Required. The ACL policy that is to be created.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder getAclPolicyOrBuilder() { + return aclPolicy_ == null + ? com.google.cloud.redis.cluster.v1.AclPolicy.getDefaultInstance() + : aclPolicy_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * .
          +   * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * .
          +   * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(aclPolicyId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, aclPolicyId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAclPolicy()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(aclPolicyId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, aclPolicyId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAclPolicy()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + 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.redis.cluster.v1.CreateAclPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest other = + (com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getAclPolicyId().equals(other.getAclPolicyId())) return false; + if (hasAclPolicy() != other.hasAclPolicy()) return false; + if (hasAclPolicy()) { + if (!getAclPolicy().equals(other.getAclPolicy())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + ACL_POLICY_ID_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicyId().hashCode(); + if (hasAclPolicy()) { + hash = (37 * hash) + ACL_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicy().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest 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.redis.cluster.v1.CreateAclPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest 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.redis.cluster.v1.CreateAclPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest 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.redis.cluster.v1.CreateAclPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest 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.redis.cluster.v1.CreateAclPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest 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.redis.cluster.v1.CreateAclPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request for `CreateAclPolicy`.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.CreateAclPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.CreateAclPolicyRequest) + com.google.cloud.redis.cluster.v1.CreateAclPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CreateAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CreateAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest.class, + com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAclPolicyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + aclPolicyId_ = ""; + aclPolicy_ = null; + if (aclPolicyBuilder_ != null) { + aclPolicyBuilder_.dispose(); + aclPolicyBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CreateAclPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest build() { + com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest buildPartial() { + com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest result = + new com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.aclPolicyId_ = aclPolicyId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.aclPolicy_ = aclPolicyBuilder_ == null ? aclPolicy_ : aclPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest other) { + if (other == com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAclPolicyId().isEmpty()) { + aclPolicyId_ = other.aclPolicyId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAclPolicy()) { + mergeAclPolicy(other.getAclPolicy()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + aclPolicyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetAclPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
          +     * Required. The resource name of the cluster location using the form:
          +     * `projects/{project_id}/locations/{location_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The resource name of the cluster location using the form:
          +     * `projects/{project_id}/locations/{location_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The resource name of the cluster location using the form:
          +     * `projects/{project_id}/locations/{location_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The resource name of the cluster location using the form:
          +     * `projects/{project_id}/locations/{location_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The resource name of the cluster location using the form:
          +     * `projects/{project_id}/locations/{location_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object aclPolicyId_ = ""; + + /** + * + * + *
          +     * Required. The logical name of the ACL policy in the customer project
          +     * with the following restrictions:
          +     *
          +     * * Must contain only lowercase letters, numbers, and hyphens.
          +     * * Must start with a letter.
          +     * * Must be between 1-63 characters.
          +     * * Must end with a number or a letter.
          +     * * Must be unique within the customer project / location
          +     * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The aclPolicyId. + */ + public java.lang.String getAclPolicyId() { + java.lang.Object ref = aclPolicyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + aclPolicyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The logical name of the ACL policy in the customer project
          +     * with the following restrictions:
          +     *
          +     * * Must contain only lowercase letters, numbers, and hyphens.
          +     * * Must start with a letter.
          +     * * Must be between 1-63 characters.
          +     * * Must end with a number or a letter.
          +     * * Must be unique within the customer project / location
          +     * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for aclPolicyId. + */ + public com.google.protobuf.ByteString getAclPolicyIdBytes() { + java.lang.Object ref = aclPolicyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aclPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The logical name of the ACL policy in the customer project
          +     * with the following restrictions:
          +     *
          +     * * Must contain only lowercase letters, numbers, and hyphens.
          +     * * Must start with a letter.
          +     * * Must be between 1-63 characters.
          +     * * Must end with a number or a letter.
          +     * * Must be unique within the customer project / location
          +     * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The aclPolicyId to set. + * @return This builder for chaining. + */ + public Builder setAclPolicyId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + aclPolicyId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The logical name of the ACL policy in the customer project
          +     * with the following restrictions:
          +     *
          +     * * Must contain only lowercase letters, numbers, and hyphens.
          +     * * Must start with a letter.
          +     * * Must be between 1-63 characters.
          +     * * Must end with a number or a letter.
          +     * * Must be unique within the customer project / location
          +     * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAclPolicyId() { + aclPolicyId_ = getDefaultInstance().getAclPolicyId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The logical name of the ACL policy in the customer project
          +     * with the following restrictions:
          +     *
          +     * * Must contain only lowercase letters, numbers, and hyphens.
          +     * * Must start with a letter.
          +     * * Must be between 1-63 characters.
          +     * * Must end with a number or a letter.
          +     * * Must be unique within the customer project / location
          +     * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for aclPolicyId to set. + * @return This builder for chaining. + */ + public Builder setAclPolicyIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + aclPolicyId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.redis.cluster.v1.AclPolicy aclPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1.AclPolicy, + com.google.cloud.redis.cluster.v1.AclPolicy.Builder, + com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder> + aclPolicyBuilder_; + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclPolicy field is set. + */ + public boolean hasAclPolicy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclPolicy. + */ + public com.google.cloud.redis.cluster.v1.AclPolicy getAclPolicy() { + if (aclPolicyBuilder_ == null) { + return aclPolicy_ == null + ? com.google.cloud.redis.cluster.v1.AclPolicy.getDefaultInstance() + : aclPolicy_; + } else { + return aclPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAclPolicy(com.google.cloud.redis.cluster.v1.AclPolicy value) { + if (aclPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aclPolicy_ = value; + } else { + aclPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAclPolicy( + com.google.cloud.redis.cluster.v1.AclPolicy.Builder builderForValue) { + if (aclPolicyBuilder_ == null) { + aclPolicy_ = builderForValue.build(); + } else { + aclPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAclPolicy(com.google.cloud.redis.cluster.v1.AclPolicy value) { + if (aclPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && aclPolicy_ != null + && aclPolicy_ != com.google.cloud.redis.cluster.v1.AclPolicy.getDefaultInstance()) { + getAclPolicyBuilder().mergeFrom(value); + } else { + aclPolicy_ = value; + } + } else { + aclPolicyBuilder_.mergeFrom(value); + } + if (aclPolicy_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAclPolicy() { + bitField0_ = (bitField0_ & ~0x00000004); + aclPolicy_ = null; + if (aclPolicyBuilder_ != null) { + aclPolicyBuilder_.dispose(); + aclPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.redis.cluster.v1.AclPolicy.Builder getAclPolicyBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetAclPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder getAclPolicyOrBuilder() { + if (aclPolicyBuilder_ != null) { + return aclPolicyBuilder_.getMessageOrBuilder(); + } else { + return aclPolicy_ == null + ? com.google.cloud.redis.cluster.v1.AclPolicy.getDefaultInstance() + : aclPolicy_; + } + } + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1.AclPolicy, + com.google.cloud.redis.cluster.v1.AclPolicy.Builder, + com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder> + internalGetAclPolicyFieldBuilder() { + if (aclPolicyBuilder_ == null) { + aclPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1.AclPolicy, + com.google.cloud.redis.cluster.v1.AclPolicy.Builder, + com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder>( + getAclPolicy(), getParentForChildren(), isClean()); + aclPolicy_ = null; + } + return aclPolicyBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * .
          +     * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * .
          +     * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * .
          +     * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * .
          +     * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * .
          +     * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.CreateAclPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.CreateAclPolicyRequest) + private static final com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest(); + } + + public static com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAclPolicyRequest 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.redis.cluster.v1.CreateAclPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CreateAclPolicyRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CreateAclPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..62dda76e8dcd --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CreateAclPolicyRequestOrBuilder.java @@ -0,0 +1,177 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface CreateAclPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.CreateAclPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The resource name of the cluster location using the form:
          +   * `projects/{project_id}/locations/{location_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
          +   * Required. The resource name of the cluster location using the form:
          +   * `projects/{project_id}/locations/{location_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Required. The logical name of the ACL policy in the customer project
          +   * with the following restrictions:
          +   *
          +   * * Must contain only lowercase letters, numbers, and hyphens.
          +   * * Must start with a letter.
          +   * * Must be between 1-63 characters.
          +   * * Must end with a number or a letter.
          +   * * Must be unique within the customer project / location
          +   * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The aclPolicyId. + */ + java.lang.String getAclPolicyId(); + + /** + * + * + *
          +   * Required. The logical name of the ACL policy in the customer project
          +   * with the following restrictions:
          +   *
          +   * * Must contain only lowercase letters, numbers, and hyphens.
          +   * * Must start with a letter.
          +   * * Must be between 1-63 characters.
          +   * * Must end with a number or a letter.
          +   * * Must be unique within the customer project / location
          +   * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for aclPolicyId. + */ + com.google.protobuf.ByteString getAclPolicyIdBytes(); + + /** + * + * + *
          +   * Required. The ACL policy that is to be created.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclPolicy field is set. + */ + boolean hasAclPolicy(); + + /** + * + * + *
          +   * Required. The ACL policy that is to be created.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclPolicy. + */ + com.google.cloud.redis.cluster.v1.AclPolicy getAclPolicy(); + + /** + * + * + *
          +   * Required. The ACL policy that is to be created.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder getAclPolicyOrBuilder(); + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * .
          +   * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * .
          +   * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/DeleteAclPolicyRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/DeleteAclPolicyRequest.java new file mode 100644 index 000000000000..5d9e9d03a610 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/DeleteAclPolicyRequest.java @@ -0,0 +1,1024 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * Request for `DeleteAclPolicy`.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.DeleteAclPolicyRequest} + */ +@com.google.protobuf.Generated +public final class DeleteAclPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.DeleteAclPolicyRequest) + DeleteAclPolicyRequestOrBuilder { + 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= */ "", + "DeleteAclPolicyRequest"); + } + + // Use DeleteAclPolicyRequest.newBuilder() to construct. + private DeleteAclPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteAclPolicyRequest() { + name_ = ""; + requestId_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_DeleteAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_DeleteAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest.class, + com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Required. Redis ACL policy resource name using the form:
          +   * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. Redis ACL policy resource name using the form:
          +   * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
          +   * Optional. Etag of the ACL policy. If this is different from the server's
          +   * etag, the request will fail with an ABORTED error.
          +   * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Etag of the ACL policy. If this is different from the server's
          +   * etag, the request will fail with an ABORTED error.
          +   * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, etag_); + } + 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.redis.cluster.v1.DeleteAclPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest other = + (com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest 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.redis.cluster.v1.DeleteAclPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest 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.redis.cluster.v1.DeleteAclPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest 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.redis.cluster.v1.DeleteAclPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest 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.redis.cluster.v1.DeleteAclPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest 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.redis.cluster.v1.DeleteAclPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request for `DeleteAclPolicy`.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.DeleteAclPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.DeleteAclPolicyRequest) + com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_DeleteAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_DeleteAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest.class, + com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_DeleteAclPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest build() { + com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest buildPartial() { + com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest result = + new com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.etag_ = etag_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest other) { + if (other == com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + etag_ = 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 name_ = ""; + + /** + * + * + *
          +     * Required. Redis ACL policy resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. Redis ACL policy resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. Redis ACL policy resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Redis ACL policy resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Redis ACL policy resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
          +     * Optional. Etag of the ACL policy. If this is different from the server's
          +     * etag, the request will fail with an ABORTED error.
          +     * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Etag of the ACL policy. If this is different from the server's
          +     * etag, the request will fail with an ABORTED error.
          +     * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Etag of the ACL policy. If this is different from the server's
          +     * etag, the request will fail with an ABORTED error.
          +     * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Etag of the ACL policy. If this is different from the server's
          +     * etag, the request will fail with an ABORTED error.
          +     * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Etag of the ACL policy. If this is different from the server's
          +     * etag, the request will fail with an ABORTED error.
          +     * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.DeleteAclPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.DeleteAclPolicyRequest) + private static final com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest(); + } + + public static com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAclPolicyRequest 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.redis.cluster.v1.DeleteAclPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/DeleteAclPolicyRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/DeleteAclPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..48271ea99773 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/DeleteAclPolicyRequestOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface DeleteAclPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.DeleteAclPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Redis ACL policy resource name using the form:
          +   * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Required. Redis ACL policy resource name using the form:
          +   * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
          +   * Optional. Etag of the ACL policy. If this is different from the server's
          +   * etag, the request will fail with an ABORTED error.
          +   * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
          +   * Optional. Etag of the ACL policy. If this is different from the server's
          +   * etag, the request will fail with an ABORTED error.
          +   * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/DeleteAuthTokenRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/DeleteAuthTokenRequest.java new file mode 100644 index 000000000000..c115ddca6016 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/DeleteAuthTokenRequest.java @@ -0,0 +1,625 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * Request message for [DeleteAuthToken][].
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.DeleteAuthTokenRequest} + */ +@com.google.protobuf.Generated +public final class DeleteAuthTokenRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.DeleteAuthTokenRequest) + DeleteAuthTokenRequestOrBuilder { + 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= */ "", + "DeleteAuthTokenRequest"); + } + + // Use DeleteAuthTokenRequest.newBuilder() to construct. + private DeleteAuthTokenRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteAuthTokenRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_DeleteAuthTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_DeleteAuthTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest.class, + com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Required. The name of the token auth user resource that this auth token
          +   * will be deleted from. Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The name of the token auth user resource that this auth token
          +   * will be deleted from. Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.redis.cluster.v1.DeleteAuthTokenRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest other = + (com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest 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.redis.cluster.v1.DeleteAuthTokenRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest 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.redis.cluster.v1.DeleteAuthTokenRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest 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.redis.cluster.v1.DeleteAuthTokenRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest 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.redis.cluster.v1.DeleteAuthTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest 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.redis.cluster.v1.DeleteAuthTokenRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request message for [DeleteAuthToken][].
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.DeleteAuthTokenRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.DeleteAuthTokenRequest) + com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_DeleteAuthTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_DeleteAuthTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest.class, + com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_DeleteAuthTokenRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest build() { + com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest buildPartial() { + com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest result = + new com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest other) { + if (other == com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Required. The name of the token auth user resource that this auth token
          +     * will be deleted from. Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The name of the token auth user resource that this auth token
          +     * will be deleted from. Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The name of the token auth user resource that this auth token
          +     * will be deleted from. Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The name of the token auth user resource that this auth token
          +     * will be deleted from. Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The name of the token auth user resource that this auth token
          +     * will be deleted from. Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.DeleteAuthTokenRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.DeleteAuthTokenRequest) + private static final com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest(); + } + + public static com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAuthTokenRequest 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.redis.cluster.v1.DeleteAuthTokenRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/DeleteAuthTokenRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/DeleteAuthTokenRequestOrBuilder.java new file mode 100644 index 000000000000..7191be26a3bb --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/DeleteAuthTokenRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface DeleteAuthTokenRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.DeleteAuthTokenRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The name of the token auth user resource that this auth token
          +   * will be deleted from. Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Required. The name of the token auth user resource that this auth token
          +   * will be deleted from. Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/DeleteTokenAuthUserRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/DeleteTokenAuthUserRequest.java new file mode 100644 index 000000000000..e2d46106be11 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/DeleteTokenAuthUserRequest.java @@ -0,0 +1,1021 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * Request message for [DeleteTokenAuthUser][].
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest} + */ +@com.google.protobuf.Generated +public final class DeleteTokenAuthUserRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest) + DeleteTokenAuthUserRequestOrBuilder { + 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= */ "", + "DeleteTokenAuthUserRequest"); + } + + // Use DeleteTokenAuthUserRequest.newBuilder() to construct. + private DeleteTokenAuthUserRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteTokenAuthUserRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_DeleteTokenAuthUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_DeleteTokenAuthUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest.class, + com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Required. The name of the token auth user to delete.
          +   * Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The name of the token auth user to delete.
          +   * Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
          +   * Optional. An optional request ID to identify requests. Specify a unique
          +   * request ID so that if you must retry your request, the server will know to
          +   * ignore the request if it has already been completed. The server will
          +   * guarantee that for at least 60 minutes after the first request.
          +   *
          +   * For example, consider a situation where you make an initial request and the
          +   * request times out. If you make the request again with the same request
          +   * ID, the server can check if original operation with the same request ID
          +   * was received, and if so, will ignore the second request. This prevents
          +   * clients from accidentally creating duplicate commitments.
          +   *
          +   * The request ID must be a valid UUID with the exception that zero UUID is
          +   * not supported (00000000-0000-0000-0000-000000000000).
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. An optional request ID to identify requests. Specify a unique
          +   * request ID so that if you must retry your request, the server will know to
          +   * ignore the request if it has already been completed. The server will
          +   * guarantee that for at least 60 minutes after the first request.
          +   *
          +   * For example, consider a situation where you make an initial request and the
          +   * request times out. If you make the request again with the same request
          +   * ID, the server can check if original operation with the same request ID
          +   * was received, and if so, will ignore the second request. This prevents
          +   * clients from accidentally creating duplicate commitments.
          +   *
          +   * The request ID must be a valid UUID with the exception that zero UUID is
          +   * not supported (00000000-0000-0000-0000-000000000000).
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCE_FIELD_NUMBER = 3; + private boolean force_ = false; + + /** + * + * + *
          +   * Optional. If set to true, any child auth tokens of this user will also be
          +   * deleted. Otherwise, the request will only work if the user has no auth
          +   * tokens.
          +   * 
          + * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + if (force_ != false) { + output.writeBool(3, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + } + 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.redis.cluster.v1.DeleteTokenAuthUserRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest other = + (com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (getForce() != other.getForce()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest 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.redis.cluster.v1.DeleteTokenAuthUserRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest 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.redis.cluster.v1.DeleteTokenAuthUserRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest 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.redis.cluster.v1.DeleteTokenAuthUserRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest 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.redis.cluster.v1.DeleteTokenAuthUserRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest 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.redis.cluster.v1.DeleteTokenAuthUserRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request message for [DeleteTokenAuthUser][].
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest) + com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_DeleteTokenAuthUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_DeleteTokenAuthUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest.class, + com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_DeleteTokenAuthUserRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest build() { + com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest buildPartial() { + com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest result = + new com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest other) { + if (other + == com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + force_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Required. The name of the token auth user to delete.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The name of the token auth user to delete.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The name of the token auth user to delete.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The name of the token auth user to delete.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The name of the token auth user to delete.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
          +     * Optional. An optional request ID to identify requests. Specify a unique
          +     * request ID so that if you must retry your request, the server will know to
          +     * ignore the request if it has already been completed. The server will
          +     * guarantee that for at least 60 minutes after the first request.
          +     *
          +     * For example, consider a situation where you make an initial request and the
          +     * request times out. If you make the request again with the same request
          +     * ID, the server can check if original operation with the same request ID
          +     * was received, and if so, will ignore the second request. This prevents
          +     * clients from accidentally creating duplicate commitments.
          +     *
          +     * The request ID must be a valid UUID with the exception that zero UUID is
          +     * not supported (00000000-0000-0000-0000-000000000000).
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. An optional request ID to identify requests. Specify a unique
          +     * request ID so that if you must retry your request, the server will know to
          +     * ignore the request if it has already been completed. The server will
          +     * guarantee that for at least 60 minutes after the first request.
          +     *
          +     * For example, consider a situation where you make an initial request and the
          +     * request times out. If you make the request again with the same request
          +     * ID, the server can check if original operation with the same request ID
          +     * was received, and if so, will ignore the second request. This prevents
          +     * clients from accidentally creating duplicate commitments.
          +     *
          +     * The request ID must be a valid UUID with the exception that zero UUID is
          +     * not supported (00000000-0000-0000-0000-000000000000).
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. An optional request ID to identify requests. Specify a unique
          +     * request ID so that if you must retry your request, the server will know to
          +     * ignore the request if it has already been completed. The server will
          +     * guarantee that for at least 60 minutes after the first request.
          +     *
          +     * For example, consider a situation where you make an initial request and the
          +     * request times out. If you make the request again with the same request
          +     * ID, the server can check if original operation with the same request ID
          +     * was received, and if so, will ignore the second request. This prevents
          +     * clients from accidentally creating duplicate commitments.
          +     *
          +     * The request ID must be a valid UUID with the exception that zero UUID is
          +     * not supported (00000000-0000-0000-0000-000000000000).
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. An optional request ID to identify requests. Specify a unique
          +     * request ID so that if you must retry your request, the server will know to
          +     * ignore the request if it has already been completed. The server will
          +     * guarantee that for at least 60 minutes after the first request.
          +     *
          +     * For example, consider a situation where you make an initial request and the
          +     * request times out. If you make the request again with the same request
          +     * ID, the server can check if original operation with the same request ID
          +     * was received, and if so, will ignore the second request. This prevents
          +     * clients from accidentally creating duplicate commitments.
          +     *
          +     * The request ID must be a valid UUID with the exception that zero UUID is
          +     * not supported (00000000-0000-0000-0000-000000000000).
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. An optional request ID to identify requests. Specify a unique
          +     * request ID so that if you must retry your request, the server will know to
          +     * ignore the request if it has already been completed. The server will
          +     * guarantee that for at least 60 minutes after the first request.
          +     *
          +     * For example, consider a situation where you make an initial request and the
          +     * request times out. If you make the request again with the same request
          +     * ID, the server can check if original operation with the same request ID
          +     * was received, and if so, will ignore the second request. This prevents
          +     * clients from accidentally creating duplicate commitments.
          +     *
          +     * The request ID must be a valid UUID with the exception that zero UUID is
          +     * not supported (00000000-0000-0000-0000-000000000000).
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean force_; + + /** + * + * + *
          +     * Optional. If set to true, any child auth tokens of this user will also be
          +     * deleted. Otherwise, the request will only work if the user has no auth
          +     * tokens.
          +     * 
          + * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
          +     * Optional. If set to true, any child auth tokens of this user will also be
          +     * deleted. Otherwise, the request will only work if the user has no auth
          +     * tokens.
          +     * 
          + * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. If set to true, any child auth tokens of this user will also be
          +     * deleted. Otherwise, the request will only work if the user has no auth
          +     * tokens.
          +     * 
          + * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000004); + force_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest) + private static final com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest(); + } + + public static com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTokenAuthUserRequest 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.redis.cluster.v1.DeleteTokenAuthUserRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/DeleteTokenAuthUserRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/DeleteTokenAuthUserRequestOrBuilder.java new file mode 100644 index 000000000000..fda09c90d1ec --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/DeleteTokenAuthUserRequestOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface DeleteTokenAuthUserRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The name of the token auth user to delete.
          +   * Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Required. The name of the token auth user to delete.
          +   * Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Optional. An optional request ID to identify requests. Specify a unique
          +   * request ID so that if you must retry your request, the server will know to
          +   * ignore the request if it has already been completed. The server will
          +   * guarantee that for at least 60 minutes after the first request.
          +   *
          +   * For example, consider a situation where you make an initial request and the
          +   * request times out. If you make the request again with the same request
          +   * ID, the server can check if original operation with the same request ID
          +   * was received, and if so, will ignore the second request. This prevents
          +   * clients from accidentally creating duplicate commitments.
          +   *
          +   * The request ID must be a valid UUID with the exception that zero UUID is
          +   * not supported (00000000-0000-0000-0000-000000000000).
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
          +   * Optional. An optional request ID to identify requests. Specify a unique
          +   * request ID so that if you must retry your request, the server will know to
          +   * ignore the request if it has already been completed. The server will
          +   * guarantee that for at least 60 minutes after the first request.
          +   *
          +   * For example, consider a situation where you make an initial request and the
          +   * request times out. If you make the request again with the same request
          +   * ID, the server can check if original operation with the same request ID
          +   * was received, and if so, will ignore the second request. This prevents
          +   * clients from accidentally creating duplicate commitments.
          +   *
          +   * The request ID must be a valid UUID with the exception that zero UUID is
          +   * not supported (00000000-0000-0000-0000-000000000000).
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
          +   * Optional. If set to true, any child auth tokens of this user will also be
          +   * deleted. Otherwise, the request will only work if the user has no auth
          +   * tokens.
          +   * 
          + * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetAclPolicyRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetAclPolicyRequest.java new file mode 100644 index 000000000000..1a9e457d32d8 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetAclPolicyRequest.java @@ -0,0 +1,625 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * Request for `GetAclPolicy`.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.GetAclPolicyRequest} + */ +@com.google.protobuf.Generated +public final class GetAclPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.GetAclPolicyRequest) + GetAclPolicyRequestOrBuilder { + 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= */ "", + "GetAclPolicyRequest"); + } + + // Use GetAclPolicyRequest.newBuilder() to construct. + private GetAclPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAclPolicyRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.GetAclPolicyRequest.class, + com.google.cloud.redis.cluster.v1.GetAclPolicyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Required. Redis ACL policy resource name using the form:
          +   * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. Redis ACL policy resource name using the form:
          +   * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.redis.cluster.v1.GetAclPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.GetAclPolicyRequest other = + (com.google.cloud.redis.cluster.v1.GetAclPolicyRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.GetAclPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.GetAclPolicyRequest 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.redis.cluster.v1.GetAclPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.GetAclPolicyRequest 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.redis.cluster.v1.GetAclPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.GetAclPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.GetAclPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.GetAclPolicyRequest 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.redis.cluster.v1.GetAclPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.GetAclPolicyRequest 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.redis.cluster.v1.GetAclPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.GetAclPolicyRequest 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.redis.cluster.v1.GetAclPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request for `GetAclPolicy`.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.GetAclPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.GetAclPolicyRequest) + com.google.cloud.redis.cluster.v1.GetAclPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.GetAclPolicyRequest.class, + com.google.cloud.redis.cluster.v1.GetAclPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.GetAclPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetAclPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.GetAclPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.GetAclPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.GetAclPolicyRequest build() { + com.google.cloud.redis.cluster.v1.GetAclPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.GetAclPolicyRequest buildPartial() { + com.google.cloud.redis.cluster.v1.GetAclPolicyRequest result = + new com.google.cloud.redis.cluster.v1.GetAclPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.GetAclPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.GetAclPolicyRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1.GetAclPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.GetAclPolicyRequest other) { + if (other == com.google.cloud.redis.cluster.v1.GetAclPolicyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Required. Redis ACL policy resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. Redis ACL policy resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. Redis ACL policy resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Redis ACL policy resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Redis ACL policy resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.GetAclPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.GetAclPolicyRequest) + private static final com.google.cloud.redis.cluster.v1.GetAclPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.GetAclPolicyRequest(); + } + + public static com.google.cloud.redis.cluster.v1.GetAclPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAclPolicyRequest 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.redis.cluster.v1.GetAclPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetAclPolicyRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetAclPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..12dd121d6d81 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetAclPolicyRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface GetAclPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.GetAclPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Redis ACL policy resource name using the form:
          +   * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Required. Redis ACL policy resource name using the form:
          +   * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetAclPolicyRevisionRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetAclPolicyRevisionRequest.java new file mode 100644 index 000000000000..46e104983848 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetAclPolicyRevisionRequest.java @@ -0,0 +1,629 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * Request for `GetAclPolicyRevision`.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest} + */ +@com.google.protobuf.Generated +public final class GetAclPolicyRevisionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest) + GetAclPolicyRevisionRequestOrBuilder { + 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= */ "", + "GetAclPolicyRevisionRequest"); + } + + // Use GetAclPolicyRevisionRequest.newBuilder() to construct. + private GetAclPolicyRevisionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAclPolicyRevisionRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetAclPolicyRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetAclPolicyRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest.class, + com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Required. Redis ACL policy revision resource name using the form:
          +   * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. Redis ACL policy revision resource name using the form:
          +   * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.redis.cluster.v1.GetAclPolicyRevisionRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest other = + (com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest 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.redis.cluster.v1.GetAclPolicyRevisionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest 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.redis.cluster.v1.GetAclPolicyRevisionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest 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.redis.cluster.v1.GetAclPolicyRevisionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest 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.redis.cluster.v1.GetAclPolicyRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest 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.redis.cluster.v1.GetAclPolicyRevisionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request for `GetAclPolicyRevision`.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest) + com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetAclPolicyRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetAclPolicyRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest.class, + com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetAclPolicyRevisionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest build() { + com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest buildPartial() { + com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest result = + new com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest other) { + if (other + == com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Required. Redis ACL policy revision resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. Redis ACL policy revision resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. Redis ACL policy revision resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Redis ACL policy revision resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Redis ACL policy revision resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest) + private static final com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest(); + } + + public static com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAclPolicyRevisionRequest 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.redis.cluster.v1.GetAclPolicyRevisionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetAclPolicyRevisionRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetAclPolicyRevisionRequestOrBuilder.java new file mode 100644 index 000000000000..c776df1e6706 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetAclPolicyRevisionRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface GetAclPolicyRevisionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Redis ACL policy revision resource name using the form:
          +   * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Required. Redis ACL policy revision resource name using the form:
          +   * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetAuthTokenRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetAuthTokenRequest.java new file mode 100644 index 000000000000..8766cd79425f --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetAuthTokenRequest.java @@ -0,0 +1,625 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * Request message for [GetAuthToken][].
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.GetAuthTokenRequest} + */ +@com.google.protobuf.Generated +public final class GetAuthTokenRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.GetAuthTokenRequest) + GetAuthTokenRequestOrBuilder { + 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= */ "", + "GetAuthTokenRequest"); + } + + // Use GetAuthTokenRequest.newBuilder() to construct. + private GetAuthTokenRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAuthTokenRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetAuthTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetAuthTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.GetAuthTokenRequest.class, + com.google.cloud.redis.cluster.v1.GetAuthTokenRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Required. The name of auth token for a token based auth enabled cluster.
          +   * Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The name of auth token for a token based auth enabled cluster.
          +   * Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.redis.cluster.v1.GetAuthTokenRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.GetAuthTokenRequest other = + (com.google.cloud.redis.cluster.v1.GetAuthTokenRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.GetAuthTokenRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.GetAuthTokenRequest 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.redis.cluster.v1.GetAuthTokenRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.GetAuthTokenRequest 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.redis.cluster.v1.GetAuthTokenRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.GetAuthTokenRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.GetAuthTokenRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.GetAuthTokenRequest 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.redis.cluster.v1.GetAuthTokenRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.GetAuthTokenRequest 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.redis.cluster.v1.GetAuthTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.GetAuthTokenRequest 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.redis.cluster.v1.GetAuthTokenRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request message for [GetAuthToken][].
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.GetAuthTokenRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.GetAuthTokenRequest) + com.google.cloud.redis.cluster.v1.GetAuthTokenRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetAuthTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetAuthTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.GetAuthTokenRequest.class, + com.google.cloud.redis.cluster.v1.GetAuthTokenRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.GetAuthTokenRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetAuthTokenRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.GetAuthTokenRequest getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.GetAuthTokenRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.GetAuthTokenRequest build() { + com.google.cloud.redis.cluster.v1.GetAuthTokenRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.GetAuthTokenRequest buildPartial() { + com.google.cloud.redis.cluster.v1.GetAuthTokenRequest result = + new com.google.cloud.redis.cluster.v1.GetAuthTokenRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.GetAuthTokenRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.GetAuthTokenRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1.GetAuthTokenRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.GetAuthTokenRequest other) { + if (other == com.google.cloud.redis.cluster.v1.GetAuthTokenRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Required. The name of auth token for a token based auth enabled cluster.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The name of auth token for a token based auth enabled cluster.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The name of auth token for a token based auth enabled cluster.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The name of auth token for a token based auth enabled cluster.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The name of auth token for a token based auth enabled cluster.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.GetAuthTokenRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.GetAuthTokenRequest) + private static final com.google.cloud.redis.cluster.v1.GetAuthTokenRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.GetAuthTokenRequest(); + } + + public static com.google.cloud.redis.cluster.v1.GetAuthTokenRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAuthTokenRequest 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.redis.cluster.v1.GetAuthTokenRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetAuthTokenRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetAuthTokenRequestOrBuilder.java new file mode 100644 index 000000000000..8113a6462067 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetAuthTokenRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface GetAuthTokenRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.GetAuthTokenRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The name of auth token for a token based auth enabled cluster.
          +   * Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Required. The name of auth token for a token based auth enabled cluster.
          +   * Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetTokenAuthUserRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetTokenAuthUserRequest.java new file mode 100644 index 000000000000..5d12e1b425d2 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetTokenAuthUserRequest.java @@ -0,0 +1,625 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * Request message for [GetTokenAuthUser][].
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.GetTokenAuthUserRequest} + */ +@com.google.protobuf.Generated +public final class GetTokenAuthUserRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.GetTokenAuthUserRequest) + GetTokenAuthUserRequestOrBuilder { + 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= */ "", + "GetTokenAuthUserRequest"); + } + + // Use GetTokenAuthUserRequest.newBuilder() to construct. + private GetTokenAuthUserRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetTokenAuthUserRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetTokenAuthUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetTokenAuthUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest.class, + com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Required. The name of token auth user for a token based auth enabled
          +   * cluster. Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The name of token auth user for a token based auth enabled
          +   * cluster. Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.redis.cluster.v1.GetTokenAuthUserRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest other = + (com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest 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.redis.cluster.v1.GetTokenAuthUserRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest 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.redis.cluster.v1.GetTokenAuthUserRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest 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.redis.cluster.v1.GetTokenAuthUserRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest 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.redis.cluster.v1.GetTokenAuthUserRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest 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.redis.cluster.v1.GetTokenAuthUserRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request message for [GetTokenAuthUser][].
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.GetTokenAuthUserRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.GetTokenAuthUserRequest) + com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetTokenAuthUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetTokenAuthUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest.class, + com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetTokenAuthUserRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest build() { + com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest buildPartial() { + com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest result = + new com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest other) { + if (other == com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Required. The name of token auth user for a token based auth enabled
          +     * cluster. Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The name of token auth user for a token based auth enabled
          +     * cluster. Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The name of token auth user for a token based auth enabled
          +     * cluster. Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The name of token auth user for a token based auth enabled
          +     * cluster. Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The name of token auth user for a token based auth enabled
          +     * cluster. Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.GetTokenAuthUserRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.GetTokenAuthUserRequest) + private static final com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest(); + } + + public static com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTokenAuthUserRequest 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.redis.cluster.v1.GetTokenAuthUserRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetTokenAuthUserRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetTokenAuthUserRequestOrBuilder.java new file mode 100644 index 000000000000..f3d4c739c257 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetTokenAuthUserRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface GetTokenAuthUserRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.GetTokenAuthUserRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The name of token auth user for a token based auth enabled
          +   * cluster. Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Required. The name of token auth user for a token based auth enabled
          +   * cluster. Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAclPoliciesRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAclPoliciesRequest.java new file mode 100644 index 000000000000..8e595e4fc8df --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAclPoliciesRequest.java @@ -0,0 +1,950 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * Request for `ListAclPolicies`.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ListAclPoliciesRequest} + */ +@com.google.protobuf.Generated +public final class ListAclPoliciesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.ListAclPoliciesRequest) + ListAclPoliciesRequestOrBuilder { + 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= */ "", + "ListAclPoliciesRequest"); + } + + // Use ListAclPoliciesRequest.newBuilder() to construct. + private ListAclPoliciesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAclPoliciesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAclPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAclPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest.class, + com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
          +   * Required. The resource name of the ACL policy location using the form:
          +   * `projects/{project_id}/locations/{location_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The resource name of the ACL policy location using the form:
          +   * `projects/{project_id}/locations/{location_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
          +   * Optional. The maximum number of items to return.
          +   *
          +   * If not specified, a default value of 1000 will be used by the service.
          +   * Regardless of the page_size value, the response may include a partial list
          +   * and a caller should only rely on response's
          +   * [`next_page_token`][google.cloud.redis.cluster.v1.ListAclPoliciesResponse.next_page_token]
          +   * to determine if there are more ACL policies left to be queried.
          +   *
          +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * `ListAclPolicies` request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * `ListAclPolicies` request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + 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.redis.cluster.v1.ListAclPoliciesRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest other = + (com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest 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.redis.cluster.v1.ListAclPoliciesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest 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.redis.cluster.v1.ListAclPoliciesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest 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.redis.cluster.v1.ListAclPoliciesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest 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.redis.cluster.v1.ListAclPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest 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.redis.cluster.v1.ListAclPoliciesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request for `ListAclPolicies`.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ListAclPoliciesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.ListAclPoliciesRequest) + com.google.cloud.redis.cluster.v1.ListAclPoliciesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAclPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAclPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest.class, + com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAclPoliciesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest build() { + com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest buildPartial() { + com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest result = + new com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest other) { + if (other == com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = 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 parent_ = ""; + + /** + * + * + *
          +     * Required. The resource name of the ACL policy location using the form:
          +     * `projects/{project_id}/locations/{location_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The resource name of the ACL policy location using the form:
          +     * `projects/{project_id}/locations/{location_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The resource name of the ACL policy location using the form:
          +     * `projects/{project_id}/locations/{location_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The resource name of the ACL policy location using the form:
          +     * `projects/{project_id}/locations/{location_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The resource name of the ACL policy location using the form:
          +     * `projects/{project_id}/locations/{location_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
          +     * Optional. The maximum number of items to return.
          +     *
          +     * If not specified, a default value of 1000 will be used by the service.
          +     * Regardless of the page_size value, the response may include a partial list
          +     * and a caller should only rely on response's
          +     * [`next_page_token`][google.cloud.redis.cluster.v1.ListAclPoliciesResponse.next_page_token]
          +     * to determine if there are more ACL policies left to be queried.
          +     *
          +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
          +     * Optional. The maximum number of items to return.
          +     *
          +     * If not specified, a default value of 1000 will be used by the service.
          +     * Regardless of the page_size value, the response may include a partial list
          +     * and a caller should only rely on response's
          +     * [`next_page_token`][google.cloud.redis.cluster.v1.ListAclPoliciesResponse.next_page_token]
          +     * to determine if there are more ACL policies left to be queried.
          +     *
          +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The maximum number of items to return.
          +     *
          +     * If not specified, a default value of 1000 will be used by the service.
          +     * Regardless of the page_size value, the response may include a partial list
          +     * and a caller should only rely on response's
          +     * [`next_page_token`][google.cloud.redis.cluster.v1.ListAclPoliciesResponse.next_page_token]
          +     * to determine if there are more ACL policies left to be queried.
          +     *
          +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicies` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicies` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicies` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicies` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicies` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.ListAclPoliciesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.ListAclPoliciesRequest) + private static final com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest(); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAclPoliciesRequest 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.redis.cluster.v1.ListAclPoliciesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAclPoliciesRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAclPoliciesRequestOrBuilder.java new file mode 100644 index 000000000000..324311af371e --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAclPoliciesRequestOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface ListAclPoliciesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.ListAclPoliciesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The resource name of the ACL policy location using the form:
          +   * `projects/{project_id}/locations/{location_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
          +   * Required. The resource name of the ACL policy location using the form:
          +   * `projects/{project_id}/locations/{location_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Optional. The maximum number of items to return.
          +   *
          +   * If not specified, a default value of 1000 will be used by the service.
          +   * Regardless of the page_size value, the response may include a partial list
          +   * and a caller should only rely on response's
          +   * [`next_page_token`][google.cloud.redis.cluster.v1.ListAclPoliciesResponse.next_page_token]
          +   * to determine if there are more ACL policies left to be queried.
          +   *
          +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * `ListAclPolicies` request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * `ListAclPolicies` request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAclPoliciesResponse.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAclPoliciesResponse.java new file mode 100644 index 000000000000..356bcfd07f6b --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAclPoliciesResponse.java @@ -0,0 +1,1503 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * Response for `ListAclPolicies`.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ListAclPoliciesResponse} + */ +@com.google.protobuf.Generated +public final class ListAclPoliciesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.ListAclPoliciesResponse) + ListAclPoliciesResponseOrBuilder { + 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= */ "", + "ListAclPoliciesResponse"); + } + + // Use ListAclPoliciesResponse.newBuilder() to construct. + private ListAclPoliciesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAclPoliciesResponse() { + aclPolicies_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAclPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAclPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse.class, + com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse.Builder.class); + } + + public static final int ACL_POLICIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List aclPolicies_; + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location_id` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + @java.lang.Override + public java.util.List getAclPoliciesList() { + return aclPolicies_; + } + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location_id` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + @java.lang.Override + public java.util.List + getAclPoliciesOrBuilderList() { + return aclPolicies_; + } + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location_id` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + @java.lang.Override + public int getAclPoliciesCount() { + return aclPolicies_.size(); + } + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location_id` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicy getAclPolicies(int index) { + return aclPolicies_.get(index); + } + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location_id` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder getAclPoliciesOrBuilder(int index) { + return aclPolicies_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < aclPolicies_.size(); i++) { + output.writeMessage(1, aclPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < aclPolicies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, aclPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse other = + (com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse) obj; + + if (!getAclPoliciesList().equals(other.getAclPoliciesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAclPoliciesCount() > 0) { + hash = (37 * hash) + ACL_POLICIES_FIELD_NUMBER; + hash = (53 * hash) + getAclPoliciesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse 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.redis.cluster.v1.ListAclPoliciesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse 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.redis.cluster.v1.ListAclPoliciesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse 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.redis.cluster.v1.ListAclPoliciesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse 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.redis.cluster.v1.ListAclPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse 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.redis.cluster.v1.ListAclPoliciesResponse 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; + } + + /** + * + * + *
          +   * Response for `ListAclPolicies`.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ListAclPoliciesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.ListAclPoliciesResponse) + com.google.cloud.redis.cluster.v1.ListAclPoliciesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAclPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAclPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse.class, + com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (aclPoliciesBuilder_ == null) { + aclPolicies_ = java.util.Collections.emptyList(); + } else { + aclPolicies_ = null; + aclPoliciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAclPoliciesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse build() { + com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse buildPartial() { + com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse result = + new com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse result) { + if (aclPoliciesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + aclPolicies_ = java.util.Collections.unmodifiableList(aclPolicies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.aclPolicies_ = aclPolicies_; + } else { + result.aclPolicies_ = aclPoliciesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse) { + return mergeFrom((com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse other) { + if (other == com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse.getDefaultInstance()) + return this; + if (aclPoliciesBuilder_ == null) { + if (!other.aclPolicies_.isEmpty()) { + if (aclPolicies_.isEmpty()) { + aclPolicies_ = other.aclPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAclPoliciesIsMutable(); + aclPolicies_.addAll(other.aclPolicies_); + } + onChanged(); + } + } else { + if (!other.aclPolicies_.isEmpty()) { + if (aclPoliciesBuilder_.isEmpty()) { + aclPoliciesBuilder_.dispose(); + aclPoliciesBuilder_ = null; + aclPolicies_ = other.aclPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + aclPoliciesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAclPoliciesFieldBuilder() + : null; + } else { + aclPoliciesBuilder_.addAllMessages(other.aclPolicies_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + 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: + { + com.google.cloud.redis.cluster.v1.AclPolicy m = + input.readMessage( + com.google.cloud.redis.cluster.v1.AclPolicy.parser(), extensionRegistry); + if (aclPoliciesBuilder_ == null) { + ensureAclPoliciesIsMutable(); + aclPolicies_.add(m); + } else { + aclPoliciesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + 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.util.List aclPolicies_ = + java.util.Collections.emptyList(); + + private void ensureAclPoliciesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + aclPolicies_ = + new java.util.ArrayList(aclPolicies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1.AclPolicy, + com.google.cloud.redis.cluster.v1.AclPolicy.Builder, + com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder> + aclPoliciesBuilder_; + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + public java.util.List getAclPoliciesList() { + if (aclPoliciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(aclPolicies_); + } else { + return aclPoliciesBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + public int getAclPoliciesCount() { + if (aclPoliciesBuilder_ == null) { + return aclPolicies_.size(); + } else { + return aclPoliciesBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + public com.google.cloud.redis.cluster.v1.AclPolicy getAclPolicies(int index) { + if (aclPoliciesBuilder_ == null) { + return aclPolicies_.get(index); + } else { + return aclPoliciesBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + public Builder setAclPolicies(int index, com.google.cloud.redis.cluster.v1.AclPolicy value) { + if (aclPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPoliciesIsMutable(); + aclPolicies_.set(index, value); + onChanged(); + } else { + aclPoliciesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + public Builder setAclPolicies( + int index, com.google.cloud.redis.cluster.v1.AclPolicy.Builder builderForValue) { + if (aclPoliciesBuilder_ == null) { + ensureAclPoliciesIsMutable(); + aclPolicies_.set(index, builderForValue.build()); + onChanged(); + } else { + aclPoliciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + public Builder addAclPolicies(com.google.cloud.redis.cluster.v1.AclPolicy value) { + if (aclPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPoliciesIsMutable(); + aclPolicies_.add(value); + onChanged(); + } else { + aclPoliciesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + public Builder addAclPolicies(int index, com.google.cloud.redis.cluster.v1.AclPolicy value) { + if (aclPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPoliciesIsMutable(); + aclPolicies_.add(index, value); + onChanged(); + } else { + aclPoliciesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + public Builder addAclPolicies( + com.google.cloud.redis.cluster.v1.AclPolicy.Builder builderForValue) { + if (aclPoliciesBuilder_ == null) { + ensureAclPoliciesIsMutable(); + aclPolicies_.add(builderForValue.build()); + onChanged(); + } else { + aclPoliciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + public Builder addAclPolicies( + int index, com.google.cloud.redis.cluster.v1.AclPolicy.Builder builderForValue) { + if (aclPoliciesBuilder_ == null) { + ensureAclPoliciesIsMutable(); + aclPolicies_.add(index, builderForValue.build()); + onChanged(); + } else { + aclPoliciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + public Builder addAllAclPolicies( + java.lang.Iterable values) { + if (aclPoliciesBuilder_ == null) { + ensureAclPoliciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aclPolicies_); + onChanged(); + } else { + aclPoliciesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + public Builder clearAclPolicies() { + if (aclPoliciesBuilder_ == null) { + aclPolicies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + aclPoliciesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + public Builder removeAclPolicies(int index) { + if (aclPoliciesBuilder_ == null) { + ensureAclPoliciesIsMutable(); + aclPolicies_.remove(index); + onChanged(); + } else { + aclPoliciesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + public com.google.cloud.redis.cluster.v1.AclPolicy.Builder getAclPoliciesBuilder(int index) { + return internalGetAclPoliciesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + public com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder getAclPoliciesOrBuilder(int index) { + if (aclPoliciesBuilder_ == null) { + return aclPolicies_.get(index); + } else { + return aclPoliciesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + public java.util.List + getAclPoliciesOrBuilderList() { + if (aclPoliciesBuilder_ != null) { + return aclPoliciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(aclPolicies_); + } + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + public com.google.cloud.redis.cluster.v1.AclPolicy.Builder addAclPoliciesBuilder() { + return internalGetAclPoliciesFieldBuilder() + .addBuilder(com.google.cloud.redis.cluster.v1.AclPolicy.getDefaultInstance()); + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + public com.google.cloud.redis.cluster.v1.AclPolicy.Builder addAclPoliciesBuilder(int index) { + return internalGetAclPoliciesFieldBuilder() + .addBuilder(index, com.google.cloud.redis.cluster.v1.AclPolicy.getDefaultInstance()); + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + public java.util.List + getAclPoliciesBuilderList() { + return internalGetAclPoliciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1.AclPolicy, + com.google.cloud.redis.cluster.v1.AclPolicy.Builder, + com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder> + internalGetAclPoliciesFieldBuilder() { + if (aclPoliciesBuilder_ == null) { + aclPoliciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1.AclPolicy, + com.google.cloud.redis.cluster.v1.AclPolicy.Builder, + com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder>( + aclPolicies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + aclPolicies_ = null; + } + return aclPoliciesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.ListAclPoliciesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.ListAclPoliciesResponse) + private static final com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse(); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAclPoliciesResponse 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.redis.cluster.v1.ListAclPoliciesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAclPoliciesResponseOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAclPoliciesResponseOrBuilder.java new file mode 100644 index 000000000000..604f4d11f2dc --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAclPoliciesResponseOrBuilder.java @@ -0,0 +1,186 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface ListAclPoliciesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.ListAclPoliciesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location_id` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + java.util.List getAclPoliciesList(); + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location_id` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + com.google.cloud.redis.cluster.v1.AclPolicy getAclPolicies(int index); + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location_id` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + int getAclPoliciesCount(); + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location_id` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + java.util.List + getAclPoliciesOrBuilderList(); + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location_id` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicy acl_policies = 1; + */ + com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder getAclPoliciesOrBuilder(int index); + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAclPolicyRevisionsRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAclPolicyRevisionsRequest.java new file mode 100644 index 000000000000..749cccabdfc3 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAclPolicyRevisionsRequest.java @@ -0,0 +1,925 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * Request for `ListAclPolicyRevisions`.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest} + */ +@com.google.protobuf.Generated +public final class ListAclPolicyRevisionsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest) + ListAclPolicyRevisionsRequestOrBuilder { + 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= */ "", + "ListAclPolicyRevisionsRequest"); + } + + // Use ListAclPolicyRevisionsRequest.newBuilder() to construct. + private ListAclPolicyRevisionsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAclPolicyRevisionsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAclPolicyRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAclPolicyRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest.class, + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
          +   * Required. The name of the ACL policy to list revisions for.
          +   * Format:
          +   * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}"
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The name of the ACL policy to list revisions for.
          +   * Format:
          +   * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}"
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
          +   * Optional. The maximum number of items to return.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * `ListAclPolicyRevisions` request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * `ListAclPolicyRevisions` request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + 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.redis.cluster.v1.ListAclPolicyRevisionsRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest other = + (com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest 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.redis.cluster.v1.ListAclPolicyRevisionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest 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.redis.cluster.v1.ListAclPolicyRevisionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest 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.redis.cluster.v1.ListAclPolicyRevisionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest 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.redis.cluster.v1.ListAclPolicyRevisionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest 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.redis.cluster.v1.ListAclPolicyRevisionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request for `ListAclPolicyRevisions`.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest) + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAclPolicyRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAclPolicyRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest.class, + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAclPolicyRevisionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest build() { + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest buildPartial() { + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest result = + new com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest other) { + if (other + == com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = 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 parent_ = ""; + + /** + * + * + *
          +     * Required. The name of the ACL policy to list revisions for.
          +     * Format:
          +     * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}"
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The name of the ACL policy to list revisions for.
          +     * Format:
          +     * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}"
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The name of the ACL policy to list revisions for.
          +     * Format:
          +     * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}"
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The name of the ACL policy to list revisions for.
          +     * Format:
          +     * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}"
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The name of the ACL policy to list revisions for.
          +     * Format:
          +     * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}"
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
          +     * Optional. The maximum number of items to return.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
          +     * Optional. The maximum number of items to return.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The maximum number of items to return.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicyRevisions` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicyRevisions` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicyRevisions` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicyRevisions` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicyRevisions` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest) + private static final com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest(); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAclPolicyRevisionsRequest 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.redis.cluster.v1.ListAclPolicyRevisionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAclPolicyRevisionsRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAclPolicyRevisionsRequestOrBuilder.java new file mode 100644 index 000000000000..8d57128f2fec --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAclPolicyRevisionsRequestOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface ListAclPolicyRevisionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The name of the ACL policy to list revisions for.
          +   * Format:
          +   * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}"
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
          +   * Required. The name of the ACL policy to list revisions for.
          +   * Format:
          +   * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}"
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Optional. The maximum number of items to return.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * `ListAclPolicyRevisions` request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * `ListAclPolicyRevisions` request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAclPolicyRevisionsResponse.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAclPolicyRevisionsResponse.java new file mode 100644 index 000000000000..30f6f7ef7bf5 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAclPolicyRevisionsResponse.java @@ -0,0 +1,1458 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * Response for `ListAclPolicyRevisions`.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse} + */ +@com.google.protobuf.Generated +public final class ListAclPolicyRevisionsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse) + ListAclPolicyRevisionsResponseOrBuilder { + 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= */ "", + "ListAclPolicyRevisionsResponse"); + } + + // Use ListAclPolicyRevisionsResponse.newBuilder() to construct. + private ListAclPolicyRevisionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAclPolicyRevisionsResponse() { + aclPolicyRevisions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAclPolicyRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAclPolicyRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse.class, + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse.Builder.class); + } + + public static final int ACL_POLICY_REVISIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List aclPolicyRevisions_; + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + @java.lang.Override + public java.util.List + getAclPolicyRevisionsList() { + return aclPolicyRevisions_; + } + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + @java.lang.Override + public java.util.List + getAclPolicyRevisionsOrBuilderList() { + return aclPolicyRevisions_; + } + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + @java.lang.Override + public int getAclPolicyRevisionsCount() { + return aclPolicyRevisions_.size(); + } + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicyRevision getAclPolicyRevisions(int index) { + return aclPolicyRevisions_.get(index); + } + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicyRevisionOrBuilder + getAclPolicyRevisionsOrBuilder(int index) { + return aclPolicyRevisions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < aclPolicyRevisions_.size(); i++) { + output.writeMessage(1, aclPolicyRevisions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < aclPolicyRevisions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, aclPolicyRevisions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse other = + (com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse) obj; + + if (!getAclPolicyRevisionsList().equals(other.getAclPolicyRevisionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAclPolicyRevisionsCount() > 0) { + hash = (37 * hash) + ACL_POLICY_REVISIONS_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicyRevisionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse 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.redis.cluster.v1.ListAclPolicyRevisionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse 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.redis.cluster.v1.ListAclPolicyRevisionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse 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.redis.cluster.v1.ListAclPolicyRevisionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse 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.redis.cluster.v1.ListAclPolicyRevisionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse 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.redis.cluster.v1.ListAclPolicyRevisionsResponse 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; + } + + /** + * + * + *
          +   * Response for `ListAclPolicyRevisions`.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse) + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAclPolicyRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAclPolicyRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse.class, + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (aclPolicyRevisionsBuilder_ == null) { + aclPolicyRevisions_ = java.util.Collections.emptyList(); + } else { + aclPolicyRevisions_ = null; + aclPolicyRevisionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAclPolicyRevisionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse build() { + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse buildPartial() { + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse result = + new com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse result) { + if (aclPolicyRevisionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + aclPolicyRevisions_ = java.util.Collections.unmodifiableList(aclPolicyRevisions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.aclPolicyRevisions_ = aclPolicyRevisions_; + } else { + result.aclPolicyRevisions_ = aclPolicyRevisionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse) { + return mergeFrom((com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse other) { + if (other + == com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse.getDefaultInstance()) + return this; + if (aclPolicyRevisionsBuilder_ == null) { + if (!other.aclPolicyRevisions_.isEmpty()) { + if (aclPolicyRevisions_.isEmpty()) { + aclPolicyRevisions_ = other.aclPolicyRevisions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.addAll(other.aclPolicyRevisions_); + } + onChanged(); + } + } else { + if (!other.aclPolicyRevisions_.isEmpty()) { + if (aclPolicyRevisionsBuilder_.isEmpty()) { + aclPolicyRevisionsBuilder_.dispose(); + aclPolicyRevisionsBuilder_ = null; + aclPolicyRevisions_ = other.aclPolicyRevisions_; + bitField0_ = (bitField0_ & ~0x00000001); + aclPolicyRevisionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAclPolicyRevisionsFieldBuilder() + : null; + } else { + aclPolicyRevisionsBuilder_.addAllMessages(other.aclPolicyRevisions_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + 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: + { + com.google.cloud.redis.cluster.v1.AclPolicyRevision m = + input.readMessage( + com.google.cloud.redis.cluster.v1.AclPolicyRevision.parser(), + extensionRegistry); + if (aclPolicyRevisionsBuilder_ == null) { + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.add(m); + } else { + aclPolicyRevisionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + 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.util.List + aclPolicyRevisions_ = java.util.Collections.emptyList(); + + private void ensureAclPolicyRevisionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + aclPolicyRevisions_ = + new java.util.ArrayList( + aclPolicyRevisions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1.AclPolicyRevision, + com.google.cloud.redis.cluster.v1.AclPolicyRevision.Builder, + com.google.cloud.redis.cluster.v1.AclPolicyRevisionOrBuilder> + aclPolicyRevisionsBuilder_; + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public java.util.List + getAclPolicyRevisionsList() { + if (aclPolicyRevisionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(aclPolicyRevisions_); + } else { + return aclPolicyRevisionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public int getAclPolicyRevisionsCount() { + if (aclPolicyRevisionsBuilder_ == null) { + return aclPolicyRevisions_.size(); + } else { + return aclPolicyRevisionsBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public com.google.cloud.redis.cluster.v1.AclPolicyRevision getAclPolicyRevisions(int index) { + if (aclPolicyRevisionsBuilder_ == null) { + return aclPolicyRevisions_.get(index); + } else { + return aclPolicyRevisionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder setAclPolicyRevisions( + int index, com.google.cloud.redis.cluster.v1.AclPolicyRevision value) { + if (aclPolicyRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.set(index, value); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder setAclPolicyRevisions( + int index, com.google.cloud.redis.cluster.v1.AclPolicyRevision.Builder builderForValue) { + if (aclPolicyRevisionsBuilder_ == null) { + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.set(index, builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder addAclPolicyRevisions( + com.google.cloud.redis.cluster.v1.AclPolicyRevision value) { + if (aclPolicyRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.add(value); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder addAclPolicyRevisions( + int index, com.google.cloud.redis.cluster.v1.AclPolicyRevision value) { + if (aclPolicyRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.add(index, value); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder addAclPolicyRevisions( + com.google.cloud.redis.cluster.v1.AclPolicyRevision.Builder builderForValue) { + if (aclPolicyRevisionsBuilder_ == null) { + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.add(builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder addAclPolicyRevisions( + int index, com.google.cloud.redis.cluster.v1.AclPolicyRevision.Builder builderForValue) { + if (aclPolicyRevisionsBuilder_ == null) { + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.add(index, builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder addAllAclPolicyRevisions( + java.lang.Iterable values) { + if (aclPolicyRevisionsBuilder_ == null) { + ensureAclPolicyRevisionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aclPolicyRevisions_); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder clearAclPolicyRevisions() { + if (aclPolicyRevisionsBuilder_ == null) { + aclPolicyRevisions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder removeAclPolicyRevisions(int index) { + if (aclPolicyRevisionsBuilder_ == null) { + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.remove(index); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public com.google.cloud.redis.cluster.v1.AclPolicyRevision.Builder getAclPolicyRevisionsBuilder( + int index) { + return internalGetAclPolicyRevisionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public com.google.cloud.redis.cluster.v1.AclPolicyRevisionOrBuilder + getAclPolicyRevisionsOrBuilder(int index) { + if (aclPolicyRevisionsBuilder_ == null) { + return aclPolicyRevisions_.get(index); + } else { + return aclPolicyRevisionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public java.util.List + getAclPolicyRevisionsOrBuilderList() { + if (aclPolicyRevisionsBuilder_ != null) { + return aclPolicyRevisionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(aclPolicyRevisions_); + } + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public com.google.cloud.redis.cluster.v1.AclPolicyRevision.Builder + addAclPolicyRevisionsBuilder() { + return internalGetAclPolicyRevisionsFieldBuilder() + .addBuilder(com.google.cloud.redis.cluster.v1.AclPolicyRevision.getDefaultInstance()); + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public com.google.cloud.redis.cluster.v1.AclPolicyRevision.Builder addAclPolicyRevisionsBuilder( + int index) { + return internalGetAclPolicyRevisionsFieldBuilder() + .addBuilder( + index, com.google.cloud.redis.cluster.v1.AclPolicyRevision.getDefaultInstance()); + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public java.util.List + getAclPolicyRevisionsBuilderList() { + return internalGetAclPolicyRevisionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1.AclPolicyRevision, + com.google.cloud.redis.cluster.v1.AclPolicyRevision.Builder, + com.google.cloud.redis.cluster.v1.AclPolicyRevisionOrBuilder> + internalGetAclPolicyRevisionsFieldBuilder() { + if (aclPolicyRevisionsBuilder_ == null) { + aclPolicyRevisionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1.AclPolicyRevision, + com.google.cloud.redis.cluster.v1.AclPolicyRevision.Builder, + com.google.cloud.redis.cluster.v1.AclPolicyRevisionOrBuilder>( + aclPolicyRevisions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + aclPolicyRevisions_ = null; + } + return aclPolicyRevisionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse) + private static final com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse(); + } + + public static com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAclPolicyRevisionsResponse 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.redis.cluster.v1.ListAclPolicyRevisionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAclPolicyRevisionsResponseOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAclPolicyRevisionsResponseOrBuilder.java new file mode 100644 index 000000000000..c4640194d143 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAclPolicyRevisionsResponseOrBuilder.java @@ -0,0 +1,172 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface ListAclPolicyRevisionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + java.util.List getAclPolicyRevisionsList(); + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + com.google.cloud.redis.cluster.v1.AclPolicyRevision getAclPolicyRevisions(int index); + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + int getAclPolicyRevisionsCount(); + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + java.util.List + getAclPolicyRevisionsOrBuilderList(); + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + com.google.cloud.redis.cluster.v1.AclPolicyRevisionOrBuilder getAclPolicyRevisionsOrBuilder( + int index); + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAuthTokensRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAuthTokensRequest.java new file mode 100644 index 000000000000..a4de9bd12958 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAuthTokensRequest.java @@ -0,0 +1,1320 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * Request message for [ListAuthTokens][].
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ListAuthTokensRequest} + */ +@com.google.protobuf.Generated +public final class ListAuthTokensRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.ListAuthTokensRequest) + ListAuthTokensRequestOrBuilder { + 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= */ "", + "ListAuthTokensRequest"); + } + + // Use ListAuthTokensRequest.newBuilder() to construct. + private ListAuthTokensRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAuthTokensRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAuthTokensRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAuthTokensRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ListAuthTokensRequest.class, + com.google.cloud.redis.cluster.v1.ListAuthTokensRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
          +   * Required. The parent resource that this auth token will be listed for.
          +   * Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The parent resource that this auth token will be listed for.
          +   * Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
          +   * Optional. The maximum number of items to return. The maximum value is 1000;
          +   * values above 1000 will be coerced to 1000. If not specified, a default
          +   * value of 1000 will be used by the service. Regardless of the page_size
          +   * value, the response may include a partial list and a caller should only
          +   * rely on response's
          +   * [`next_page_token`][google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse.next_page_token]
          +   * to determine if there are more clusters left to be queried.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * [ListTokenAuthUsers] request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * [ListTokenAuthUsers] request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
          +   * Optional. Expression for filtering results.
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Expression for filtering results.
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
          +   * Optional. Sort results by a defined order.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Sort results by a defined order.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + 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.redis.cluster.v1.ListAuthTokensRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.ListAuthTokensRequest other = + (com.google.cloud.redis.cluster.v1.ListAuthTokensRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.ListAuthTokensRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListAuthTokensRequest 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.redis.cluster.v1.ListAuthTokensRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListAuthTokensRequest 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.redis.cluster.v1.ListAuthTokensRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListAuthTokensRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListAuthTokensRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListAuthTokensRequest 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.redis.cluster.v1.ListAuthTokensRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListAuthTokensRequest 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.redis.cluster.v1.ListAuthTokensRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListAuthTokensRequest 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.redis.cluster.v1.ListAuthTokensRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request message for [ListAuthTokens][].
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ListAuthTokensRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.ListAuthTokensRequest) + com.google.cloud.redis.cluster.v1.ListAuthTokensRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAuthTokensRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAuthTokensRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ListAuthTokensRequest.class, + com.google.cloud.redis.cluster.v1.ListAuthTokensRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.ListAuthTokensRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAuthTokensRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListAuthTokensRequest getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.ListAuthTokensRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListAuthTokensRequest build() { + com.google.cloud.redis.cluster.v1.ListAuthTokensRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListAuthTokensRequest buildPartial() { + com.google.cloud.redis.cluster.v1.ListAuthTokensRequest result = + new com.google.cloud.redis.cluster.v1.ListAuthTokensRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.ListAuthTokensRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.ListAuthTokensRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1.ListAuthTokensRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.ListAuthTokensRequest other) { + if (other == com.google.cloud.redis.cluster.v1.ListAuthTokensRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 parent_ = ""; + + /** + * + * + *
          +     * Required. The parent resource that this auth token will be listed for.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The parent resource that this auth token will be listed for.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The parent resource that this auth token will be listed for.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The parent resource that this auth token will be listed for.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The parent resource that this auth token will be listed for.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
          +     * Optional. The maximum number of items to return. The maximum value is 1000;
          +     * values above 1000 will be coerced to 1000. If not specified, a default
          +     * value of 1000 will be used by the service. Regardless of the page_size
          +     * value, the response may include a partial list and a caller should only
          +     * rely on response's
          +     * [`next_page_token`][google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse.next_page_token]
          +     * to determine if there are more clusters left to be queried.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
          +     * Optional. The maximum number of items to return. The maximum value is 1000;
          +     * values above 1000 will be coerced to 1000. If not specified, a default
          +     * value of 1000 will be used by the service. Regardless of the page_size
          +     * value, the response may include a partial list and a caller should only
          +     * rely on response's
          +     * [`next_page_token`][google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse.next_page_token]
          +     * to determine if there are more clusters left to be queried.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The maximum number of items to return. The maximum value is 1000;
          +     * values above 1000 will be coerced to 1000. If not specified, a default
          +     * value of 1000 will be used by the service. Regardless of the page_size
          +     * value, the response may include a partial list and a caller should only
          +     * rely on response's
          +     * [`next_page_token`][google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse.next_page_token]
          +     * to determine if there are more clusters left to be queried.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * [ListTokenAuthUsers] request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * [ListTokenAuthUsers] request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * [ListTokenAuthUsers] request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * [ListTokenAuthUsers] request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * [ListTokenAuthUsers] request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
          +     * Optional. Expression for filtering results.
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Expression for filtering results.
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Expression for filtering results.
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Expression for filtering results.
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Expression for filtering results.
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
          +     * Optional. Sort results by a defined order.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Sort results by a defined order.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Sort results by a defined order.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Sort results by a defined order.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Sort results by a defined order.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.ListAuthTokensRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.ListAuthTokensRequest) + private static final com.google.cloud.redis.cluster.v1.ListAuthTokensRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.ListAuthTokensRequest(); + } + + public static com.google.cloud.redis.cluster.v1.ListAuthTokensRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAuthTokensRequest 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.redis.cluster.v1.ListAuthTokensRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAuthTokensRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAuthTokensRequestOrBuilder.java new file mode 100644 index 000000000000..aad6bd69c8c1 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAuthTokensRequestOrBuilder.java @@ -0,0 +1,161 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface ListAuthTokensRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.ListAuthTokensRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The parent resource that this auth token will be listed for.
          +   * Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
          +   * Required. The parent resource that this auth token will be listed for.
          +   * Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Optional. The maximum number of items to return. The maximum value is 1000;
          +   * values above 1000 will be coerced to 1000. If not specified, a default
          +   * value of 1000 will be used by the service. Regardless of the page_size
          +   * value, the response may include a partial list and a caller should only
          +   * rely on response's
          +   * [`next_page_token`][google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse.next_page_token]
          +   * to determine if there are more clusters left to be queried.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * [ListTokenAuthUsers] request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * [ListTokenAuthUsers] request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
          +   * Optional. Expression for filtering results.
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
          +   * Optional. Expression for filtering results.
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
          +   * Optional. Sort results by a defined order.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
          +   * Optional. Sort results by a defined order.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAuthTokensResponse.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAuthTokensResponse.java new file mode 100644 index 000000000000..7c9a73ad3d68 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAuthTokensResponse.java @@ -0,0 +1,1411 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * Response message for [ListAuthTokens][].
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ListAuthTokensResponse} + */ +@com.google.protobuf.Generated +public final class ListAuthTokensResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.ListAuthTokensResponse) + ListAuthTokensResponseOrBuilder { + 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= */ "", + "ListAuthTokensResponse"); + } + + // Use ListAuthTokensResponse.newBuilder() to construct. + private ListAuthTokensResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAuthTokensResponse() { + authTokens_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAuthTokensResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAuthTokensResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ListAuthTokensResponse.class, + com.google.cloud.redis.cluster.v1.ListAuthTokensResponse.Builder.class); + } + + public static final int AUTH_TOKENS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List authTokens_; + + /** + * + * + *
          +   * A list of auth tokens in the project.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + @java.lang.Override + public java.util.List getAuthTokensList() { + return authTokens_; + } + + /** + * + * + *
          +   * A list of auth tokens in the project.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + @java.lang.Override + public java.util.List + getAuthTokensOrBuilderList() { + return authTokens_; + } + + /** + * + * + *
          +   * A list of auth tokens in the project.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + @java.lang.Override + public int getAuthTokensCount() { + return authTokens_.size(); + } + + /** + * + * + *
          +   * A list of auth tokens in the project.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AuthToken getAuthTokens(int index) { + return authTokens_.get(index); + } + + /** + * + * + *
          +   * A list of auth tokens in the project.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AuthTokenOrBuilder getAuthTokensOrBuilder(int index) { + return authTokens_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
          +   * Unordered list. Auth tokens that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
          +   * Unordered list. Auth tokens that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
          +   * Unordered list. Auth tokens that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
          +   * Unordered list. Auth tokens that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < authTokens_.size(); i++) { + output.writeMessage(1, authTokens_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < authTokens_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, authTokens_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.ListAuthTokensResponse)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.ListAuthTokensResponse other = + (com.google.cloud.redis.cluster.v1.ListAuthTokensResponse) obj; + + if (!getAuthTokensList().equals(other.getAuthTokensList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAuthTokensCount() > 0) { + hash = (37 * hash) + AUTH_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + getAuthTokensList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.ListAuthTokensResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListAuthTokensResponse 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.redis.cluster.v1.ListAuthTokensResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListAuthTokensResponse 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.redis.cluster.v1.ListAuthTokensResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListAuthTokensResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListAuthTokensResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListAuthTokensResponse 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.redis.cluster.v1.ListAuthTokensResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListAuthTokensResponse 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.redis.cluster.v1.ListAuthTokensResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListAuthTokensResponse 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.redis.cluster.v1.ListAuthTokensResponse 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; + } + + /** + * + * + *
          +   * Response message for [ListAuthTokens][].
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ListAuthTokensResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.ListAuthTokensResponse) + com.google.cloud.redis.cluster.v1.ListAuthTokensResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAuthTokensResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAuthTokensResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ListAuthTokensResponse.class, + com.google.cloud.redis.cluster.v1.ListAuthTokensResponse.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.ListAuthTokensResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (authTokensBuilder_ == null) { + authTokens_ = java.util.Collections.emptyList(); + } else { + authTokens_ = null; + authTokensBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListAuthTokensResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListAuthTokensResponse getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.ListAuthTokensResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListAuthTokensResponse build() { + com.google.cloud.redis.cluster.v1.ListAuthTokensResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListAuthTokensResponse buildPartial() { + com.google.cloud.redis.cluster.v1.ListAuthTokensResponse result = + new com.google.cloud.redis.cluster.v1.ListAuthTokensResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1.ListAuthTokensResponse result) { + if (authTokensBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + authTokens_ = java.util.Collections.unmodifiableList(authTokens_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.authTokens_ = authTokens_; + } else { + result.authTokens_ = authTokensBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.ListAuthTokensResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.ListAuthTokensResponse) { + return mergeFrom((com.google.cloud.redis.cluster.v1.ListAuthTokensResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.ListAuthTokensResponse other) { + if (other == com.google.cloud.redis.cluster.v1.ListAuthTokensResponse.getDefaultInstance()) + return this; + if (authTokensBuilder_ == null) { + if (!other.authTokens_.isEmpty()) { + if (authTokens_.isEmpty()) { + authTokens_ = other.authTokens_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAuthTokensIsMutable(); + authTokens_.addAll(other.authTokens_); + } + onChanged(); + } + } else { + if (!other.authTokens_.isEmpty()) { + if (authTokensBuilder_.isEmpty()) { + authTokensBuilder_.dispose(); + authTokensBuilder_ = null; + authTokens_ = other.authTokens_; + bitField0_ = (bitField0_ & ~0x00000001); + authTokensBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAuthTokensFieldBuilder() + : null; + } else { + authTokensBuilder_.addAllMessages(other.authTokens_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + 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: + { + com.google.cloud.redis.cluster.v1.AuthToken m = + input.readMessage( + com.google.cloud.redis.cluster.v1.AuthToken.parser(), extensionRegistry); + if (authTokensBuilder_ == null) { + ensureAuthTokensIsMutable(); + authTokens_.add(m); + } else { + authTokensBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + 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.util.List authTokens_ = + java.util.Collections.emptyList(); + + private void ensureAuthTokensIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + authTokens_ = + new java.util.ArrayList(authTokens_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1.AuthToken, + com.google.cloud.redis.cluster.v1.AuthToken.Builder, + com.google.cloud.redis.cluster.v1.AuthTokenOrBuilder> + authTokensBuilder_; + + /** + * + * + *
          +     * A list of auth tokens in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + public java.util.List getAuthTokensList() { + if (authTokensBuilder_ == null) { + return java.util.Collections.unmodifiableList(authTokens_); + } else { + return authTokensBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * A list of auth tokens in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + public int getAuthTokensCount() { + if (authTokensBuilder_ == null) { + return authTokens_.size(); + } else { + return authTokensBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * A list of auth tokens in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + public com.google.cloud.redis.cluster.v1.AuthToken getAuthTokens(int index) { + if (authTokensBuilder_ == null) { + return authTokens_.get(index); + } else { + return authTokensBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * A list of auth tokens in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + public Builder setAuthTokens(int index, com.google.cloud.redis.cluster.v1.AuthToken value) { + if (authTokensBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthTokensIsMutable(); + authTokens_.set(index, value); + onChanged(); + } else { + authTokensBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * A list of auth tokens in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + public Builder setAuthTokens( + int index, com.google.cloud.redis.cluster.v1.AuthToken.Builder builderForValue) { + if (authTokensBuilder_ == null) { + ensureAuthTokensIsMutable(); + authTokens_.set(index, builderForValue.build()); + onChanged(); + } else { + authTokensBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of auth tokens in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + public Builder addAuthTokens(com.google.cloud.redis.cluster.v1.AuthToken value) { + if (authTokensBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthTokensIsMutable(); + authTokens_.add(value); + onChanged(); + } else { + authTokensBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * A list of auth tokens in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + public Builder addAuthTokens(int index, com.google.cloud.redis.cluster.v1.AuthToken value) { + if (authTokensBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthTokensIsMutable(); + authTokens_.add(index, value); + onChanged(); + } else { + authTokensBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * A list of auth tokens in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + public Builder addAuthTokens( + com.google.cloud.redis.cluster.v1.AuthToken.Builder builderForValue) { + if (authTokensBuilder_ == null) { + ensureAuthTokensIsMutable(); + authTokens_.add(builderForValue.build()); + onChanged(); + } else { + authTokensBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of auth tokens in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + public Builder addAuthTokens( + int index, com.google.cloud.redis.cluster.v1.AuthToken.Builder builderForValue) { + if (authTokensBuilder_ == null) { + ensureAuthTokensIsMutable(); + authTokens_.add(index, builderForValue.build()); + onChanged(); + } else { + authTokensBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of auth tokens in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + public Builder addAllAuthTokens( + java.lang.Iterable values) { + if (authTokensBuilder_ == null) { + ensureAuthTokensIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, authTokens_); + onChanged(); + } else { + authTokensBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * A list of auth tokens in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + public Builder clearAuthTokens() { + if (authTokensBuilder_ == null) { + authTokens_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + authTokensBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * A list of auth tokens in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + public Builder removeAuthTokens(int index) { + if (authTokensBuilder_ == null) { + ensureAuthTokensIsMutable(); + authTokens_.remove(index); + onChanged(); + } else { + authTokensBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * A list of auth tokens in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + public com.google.cloud.redis.cluster.v1.AuthToken.Builder getAuthTokensBuilder(int index) { + return internalGetAuthTokensFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * A list of auth tokens in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + public com.google.cloud.redis.cluster.v1.AuthTokenOrBuilder getAuthTokensOrBuilder(int index) { + if (authTokensBuilder_ == null) { + return authTokens_.get(index); + } else { + return authTokensBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * A list of auth tokens in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + public java.util.List + getAuthTokensOrBuilderList() { + if (authTokensBuilder_ != null) { + return authTokensBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(authTokens_); + } + } + + /** + * + * + *
          +     * A list of auth tokens in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + public com.google.cloud.redis.cluster.v1.AuthToken.Builder addAuthTokensBuilder() { + return internalGetAuthTokensFieldBuilder() + .addBuilder(com.google.cloud.redis.cluster.v1.AuthToken.getDefaultInstance()); + } + + /** + * + * + *
          +     * A list of auth tokens in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + public com.google.cloud.redis.cluster.v1.AuthToken.Builder addAuthTokensBuilder(int index) { + return internalGetAuthTokensFieldBuilder() + .addBuilder(index, com.google.cloud.redis.cluster.v1.AuthToken.getDefaultInstance()); + } + + /** + * + * + *
          +     * A list of auth tokens in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + public java.util.List + getAuthTokensBuilderList() { + return internalGetAuthTokensFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1.AuthToken, + com.google.cloud.redis.cluster.v1.AuthToken.Builder, + com.google.cloud.redis.cluster.v1.AuthTokenOrBuilder> + internalGetAuthTokensFieldBuilder() { + if (authTokensBuilder_ == null) { + authTokensBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1.AuthToken, + com.google.cloud.redis.cluster.v1.AuthToken.Builder, + com.google.cloud.redis.cluster.v1.AuthTokenOrBuilder>( + authTokens_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + authTokens_ = null; + } + return authTokensBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
          +     * Unordered list. Auth tokens that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
          +     * Unordered list. Auth tokens that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
          +     * Unordered list. Auth tokens that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
          +     * Unordered list. Auth tokens that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
          +     * Unordered list. Auth tokens that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Auth tokens that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Auth tokens that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Auth tokens that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Auth tokens that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.ListAuthTokensResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.ListAuthTokensResponse) + private static final com.google.cloud.redis.cluster.v1.ListAuthTokensResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.ListAuthTokensResponse(); + } + + public static com.google.cloud.redis.cluster.v1.ListAuthTokensResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAuthTokensResponse 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.redis.cluster.v1.ListAuthTokensResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAuthTokensResponseOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAuthTokensResponseOrBuilder.java new file mode 100644 index 000000000000..b4faaef638d1 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListAuthTokensResponseOrBuilder.java @@ -0,0 +1,166 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface ListAuthTokensResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.ListAuthTokensResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * A list of auth tokens in the project.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + java.util.List getAuthTokensList(); + + /** + * + * + *
          +   * A list of auth tokens in the project.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + com.google.cloud.redis.cluster.v1.AuthToken getAuthTokens(int index); + + /** + * + * + *
          +   * A list of auth tokens in the project.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + int getAuthTokensCount(); + + /** + * + * + *
          +   * A list of auth tokens in the project.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + java.util.List + getAuthTokensOrBuilderList(); + + /** + * + * + *
          +   * A list of auth tokens in the project.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.AuthToken auth_tokens = 1; + */ + com.google.cloud.redis.cluster.v1.AuthTokenOrBuilder getAuthTokensOrBuilder(int index); + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
          +   * Unordered list. Auth tokens that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
          +   * Unordered list. Auth tokens that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
          +   * Unordered list. Auth tokens that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
          +   * Unordered list. Auth tokens that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListTokenAuthUsersRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListTokenAuthUsersRequest.java new file mode 100644 index 000000000000..241f4a62bc9d --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListTokenAuthUsersRequest.java @@ -0,0 +1,1324 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * Request message for [ListTokenAuthUsers][].
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest} + */ +@com.google.protobuf.Generated +public final class ListTokenAuthUsersRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest) + ListTokenAuthUsersRequestOrBuilder { + 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= */ "", + "ListTokenAuthUsersRequest"); + } + + // Use ListTokenAuthUsersRequest.newBuilder() to construct. + private ListTokenAuthUsersRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListTokenAuthUsersRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListTokenAuthUsersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListTokenAuthUsersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest.class, + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
          +   * Required. The parent resource that this token based auth user will be
          +   * listed for. Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The parent resource that this token based auth user will be
          +   * listed for. Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
          +   * Optional. The maximum number of items to return.
          +   *
          +   * If not specified, a default value of 1000 will be used by the service.
          +   * Regardless of the page_size value, the response may include a partial list
          +   * and a caller should only rely on response's
          +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +   * [`next_page_token`][google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse.next_page_token]
          +   * to determine if there are more clusters left to be queried.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * [ListTokenAuthUsers] request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * [ListTokenAuthUsers] request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
          +   * Optional. Expression for filtering results.
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Expression for filtering results.
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
          +   * Optional. Sort results by a defined order.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Sort results by a defined order.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + 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.redis.cluster.v1.ListTokenAuthUsersRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest other = + (com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest 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.redis.cluster.v1.ListTokenAuthUsersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest 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.redis.cluster.v1.ListTokenAuthUsersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest 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.redis.cluster.v1.ListTokenAuthUsersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest 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.redis.cluster.v1.ListTokenAuthUsersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest 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.redis.cluster.v1.ListTokenAuthUsersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request message for [ListTokenAuthUsers][].
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest) + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListTokenAuthUsersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListTokenAuthUsersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest.class, + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListTokenAuthUsersRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest build() { + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest buildPartial() { + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest result = + new com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest other) { + if (other == com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 parent_ = ""; + + /** + * + * + *
          +     * Required. The parent resource that this token based auth user will be
          +     * listed for. Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The parent resource that this token based auth user will be
          +     * listed for. Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The parent resource that this token based auth user will be
          +     * listed for. Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The parent resource that this token based auth user will be
          +     * listed for. Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The parent resource that this token based auth user will be
          +     * listed for. Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
          +     * Optional. The maximum number of items to return.
          +     *
          +     * If not specified, a default value of 1000 will be used by the service.
          +     * Regardless of the page_size value, the response may include a partial list
          +     * and a caller should only rely on response's
          +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +     * [`next_page_token`][google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse.next_page_token]
          +     * to determine if there are more clusters left to be queried.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
          +     * Optional. The maximum number of items to return.
          +     *
          +     * If not specified, a default value of 1000 will be used by the service.
          +     * Regardless of the page_size value, the response may include a partial list
          +     * and a caller should only rely on response's
          +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +     * [`next_page_token`][google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse.next_page_token]
          +     * to determine if there are more clusters left to be queried.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The maximum number of items to return.
          +     *
          +     * If not specified, a default value of 1000 will be used by the service.
          +     * Regardless of the page_size value, the response may include a partial list
          +     * and a caller should only rely on response's
          +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +     * [`next_page_token`][google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse.next_page_token]
          +     * to determine if there are more clusters left to be queried.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * [ListTokenAuthUsers] request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * [ListTokenAuthUsers] request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * [ListTokenAuthUsers] request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * [ListTokenAuthUsers] request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * [ListTokenAuthUsers] request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
          +     * Optional. Expression for filtering results.
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Expression for filtering results.
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Expression for filtering results.
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Expression for filtering results.
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Expression for filtering results.
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
          +     * Optional. Sort results by a defined order.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Sort results by a defined order.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Sort results by a defined order.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Sort results by a defined order.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Sort results by a defined order.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest) + private static final com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest(); + } + + public static com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTokenAuthUsersRequest 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.redis.cluster.v1.ListTokenAuthUsersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListTokenAuthUsersRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListTokenAuthUsersRequestOrBuilder.java new file mode 100644 index 000000000000..edb03c839bc2 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListTokenAuthUsersRequestOrBuilder.java @@ -0,0 +1,162 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface ListTokenAuthUsersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The parent resource that this token based auth user will be
          +   * listed for. Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
          +   * Required. The parent resource that this token based auth user will be
          +   * listed for. Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Optional. The maximum number of items to return.
          +   *
          +   * If not specified, a default value of 1000 will be used by the service.
          +   * Regardless of the page_size value, the response may include a partial list
          +   * and a caller should only rely on response's
          +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +   * [`next_page_token`][google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse.next_page_token]
          +   * to determine if there are more clusters left to be queried.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * [ListTokenAuthUsers] request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * [ListTokenAuthUsers] request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
          +   * Optional. Expression for filtering results.
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
          +   * Optional. Expression for filtering results.
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
          +   * Optional. Sort results by a defined order.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
          +   * Optional. Sort results by a defined order.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListTokenAuthUsersResponse.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListTokenAuthUsersResponse.java new file mode 100644 index 000000000000..5b81bc153cd6 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListTokenAuthUsersResponse.java @@ -0,0 +1,1426 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * Response message for [ListTokenAuthUsers][].
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse} + */ +@com.google.protobuf.Generated +public final class ListTokenAuthUsersResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse) + ListTokenAuthUsersResponseOrBuilder { + 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= */ "", + "ListTokenAuthUsersResponse"); + } + + // Use ListTokenAuthUsersResponse.newBuilder() to construct. + private ListTokenAuthUsersResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListTokenAuthUsersResponse() { + tokenAuthUsers_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListTokenAuthUsersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListTokenAuthUsersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse.class, + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse.Builder.class); + } + + public static final int TOKEN_AUTH_USERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List tokenAuthUsers_; + + /** + * + * + *
          +   * A list of token auth users in the project.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + @java.lang.Override + public java.util.List getTokenAuthUsersList() { + return tokenAuthUsers_; + } + + /** + * + * + *
          +   * A list of token auth users in the project.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + @java.lang.Override + public java.util.List + getTokenAuthUsersOrBuilderList() { + return tokenAuthUsers_; + } + + /** + * + * + *
          +   * A list of token auth users in the project.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + @java.lang.Override + public int getTokenAuthUsersCount() { + return tokenAuthUsers_.size(); + } + + /** + * + * + *
          +   * A list of token auth users in the project.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.TokenAuthUser getTokenAuthUsers(int index) { + return tokenAuthUsers_.get(index); + } + + /** + * + * + *
          +   * A list of token auth users in the project.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.TokenAuthUserOrBuilder getTokenAuthUsersOrBuilder( + int index) { + return tokenAuthUsers_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
          +   * Unordered list. Token auth users that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
          +   * Unordered list. Token auth users that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
          +   * Unordered list. Token auth users that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
          +   * Unordered list. Token auth users that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < tokenAuthUsers_.size(); i++) { + output.writeMessage(1, tokenAuthUsers_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tokenAuthUsers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tokenAuthUsers_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse other = + (com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse) obj; + + if (!getTokenAuthUsersList().equals(other.getTokenAuthUsersList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTokenAuthUsersCount() > 0) { + hash = (37 * hash) + TOKEN_AUTH_USERS_FIELD_NUMBER; + hash = (53 * hash) + getTokenAuthUsersList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse 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.redis.cluster.v1.ListTokenAuthUsersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse 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.redis.cluster.v1.ListTokenAuthUsersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse 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.redis.cluster.v1.ListTokenAuthUsersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse 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.redis.cluster.v1.ListTokenAuthUsersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse 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.redis.cluster.v1.ListTokenAuthUsersResponse 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; + } + + /** + * + * + *
          +   * Response message for [ListTokenAuthUsers][].
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse) + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListTokenAuthUsersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListTokenAuthUsersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse.class, + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (tokenAuthUsersBuilder_ == null) { + tokenAuthUsers_ = java.util.Collections.emptyList(); + } else { + tokenAuthUsers_ = null; + tokenAuthUsersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListTokenAuthUsersResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse build() { + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse buildPartial() { + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse result = + new com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse result) { + if (tokenAuthUsersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tokenAuthUsers_ = java.util.Collections.unmodifiableList(tokenAuthUsers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tokenAuthUsers_ = tokenAuthUsers_; + } else { + result.tokenAuthUsers_ = tokenAuthUsersBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse) { + return mergeFrom((com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse other) { + if (other + == com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse.getDefaultInstance()) + return this; + if (tokenAuthUsersBuilder_ == null) { + if (!other.tokenAuthUsers_.isEmpty()) { + if (tokenAuthUsers_.isEmpty()) { + tokenAuthUsers_ = other.tokenAuthUsers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTokenAuthUsersIsMutable(); + tokenAuthUsers_.addAll(other.tokenAuthUsers_); + } + onChanged(); + } + } else { + if (!other.tokenAuthUsers_.isEmpty()) { + if (tokenAuthUsersBuilder_.isEmpty()) { + tokenAuthUsersBuilder_.dispose(); + tokenAuthUsersBuilder_ = null; + tokenAuthUsers_ = other.tokenAuthUsers_; + bitField0_ = (bitField0_ & ~0x00000001); + tokenAuthUsersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetTokenAuthUsersFieldBuilder() + : null; + } else { + tokenAuthUsersBuilder_.addAllMessages(other.tokenAuthUsers_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + 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: + { + com.google.cloud.redis.cluster.v1.TokenAuthUser m = + input.readMessage( + com.google.cloud.redis.cluster.v1.TokenAuthUser.parser(), + extensionRegistry); + if (tokenAuthUsersBuilder_ == null) { + ensureTokenAuthUsersIsMutable(); + tokenAuthUsers_.add(m); + } else { + tokenAuthUsersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + 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.util.List tokenAuthUsers_ = + java.util.Collections.emptyList(); + + private void ensureTokenAuthUsersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tokenAuthUsers_ = + new java.util.ArrayList( + tokenAuthUsers_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1.TokenAuthUser, + com.google.cloud.redis.cluster.v1.TokenAuthUser.Builder, + com.google.cloud.redis.cluster.v1.TokenAuthUserOrBuilder> + tokenAuthUsersBuilder_; + + /** + * + * + *
          +     * A list of token auth users in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + public java.util.List getTokenAuthUsersList() { + if (tokenAuthUsersBuilder_ == null) { + return java.util.Collections.unmodifiableList(tokenAuthUsers_); + } else { + return tokenAuthUsersBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * A list of token auth users in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + public int getTokenAuthUsersCount() { + if (tokenAuthUsersBuilder_ == null) { + return tokenAuthUsers_.size(); + } else { + return tokenAuthUsersBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * A list of token auth users in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + public com.google.cloud.redis.cluster.v1.TokenAuthUser getTokenAuthUsers(int index) { + if (tokenAuthUsersBuilder_ == null) { + return tokenAuthUsers_.get(index); + } else { + return tokenAuthUsersBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * A list of token auth users in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + public Builder setTokenAuthUsers( + int index, com.google.cloud.redis.cluster.v1.TokenAuthUser value) { + if (tokenAuthUsersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTokenAuthUsersIsMutable(); + tokenAuthUsers_.set(index, value); + onChanged(); + } else { + tokenAuthUsersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * A list of token auth users in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + public Builder setTokenAuthUsers( + int index, com.google.cloud.redis.cluster.v1.TokenAuthUser.Builder builderForValue) { + if (tokenAuthUsersBuilder_ == null) { + ensureTokenAuthUsersIsMutable(); + tokenAuthUsers_.set(index, builderForValue.build()); + onChanged(); + } else { + tokenAuthUsersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of token auth users in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + public Builder addTokenAuthUsers(com.google.cloud.redis.cluster.v1.TokenAuthUser value) { + if (tokenAuthUsersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTokenAuthUsersIsMutable(); + tokenAuthUsers_.add(value); + onChanged(); + } else { + tokenAuthUsersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * A list of token auth users in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + public Builder addTokenAuthUsers( + int index, com.google.cloud.redis.cluster.v1.TokenAuthUser value) { + if (tokenAuthUsersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTokenAuthUsersIsMutable(); + tokenAuthUsers_.add(index, value); + onChanged(); + } else { + tokenAuthUsersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * A list of token auth users in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + public Builder addTokenAuthUsers( + com.google.cloud.redis.cluster.v1.TokenAuthUser.Builder builderForValue) { + if (tokenAuthUsersBuilder_ == null) { + ensureTokenAuthUsersIsMutable(); + tokenAuthUsers_.add(builderForValue.build()); + onChanged(); + } else { + tokenAuthUsersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of token auth users in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + public Builder addTokenAuthUsers( + int index, com.google.cloud.redis.cluster.v1.TokenAuthUser.Builder builderForValue) { + if (tokenAuthUsersBuilder_ == null) { + ensureTokenAuthUsersIsMutable(); + tokenAuthUsers_.add(index, builderForValue.build()); + onChanged(); + } else { + tokenAuthUsersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of token auth users in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + public Builder addAllTokenAuthUsers( + java.lang.Iterable values) { + if (tokenAuthUsersBuilder_ == null) { + ensureTokenAuthUsersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tokenAuthUsers_); + onChanged(); + } else { + tokenAuthUsersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * A list of token auth users in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + public Builder clearTokenAuthUsers() { + if (tokenAuthUsersBuilder_ == null) { + tokenAuthUsers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tokenAuthUsersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * A list of token auth users in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + public Builder removeTokenAuthUsers(int index) { + if (tokenAuthUsersBuilder_ == null) { + ensureTokenAuthUsersIsMutable(); + tokenAuthUsers_.remove(index); + onChanged(); + } else { + tokenAuthUsersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * A list of token auth users in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + public com.google.cloud.redis.cluster.v1.TokenAuthUser.Builder getTokenAuthUsersBuilder( + int index) { + return internalGetTokenAuthUsersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * A list of token auth users in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + public com.google.cloud.redis.cluster.v1.TokenAuthUserOrBuilder getTokenAuthUsersOrBuilder( + int index) { + if (tokenAuthUsersBuilder_ == null) { + return tokenAuthUsers_.get(index); + } else { + return tokenAuthUsersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * A list of token auth users in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + public java.util.List + getTokenAuthUsersOrBuilderList() { + if (tokenAuthUsersBuilder_ != null) { + return tokenAuthUsersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tokenAuthUsers_); + } + } + + /** + * + * + *
          +     * A list of token auth users in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + public com.google.cloud.redis.cluster.v1.TokenAuthUser.Builder addTokenAuthUsersBuilder() { + return internalGetTokenAuthUsersFieldBuilder() + .addBuilder(com.google.cloud.redis.cluster.v1.TokenAuthUser.getDefaultInstance()); + } + + /** + * + * + *
          +     * A list of token auth users in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + public com.google.cloud.redis.cluster.v1.TokenAuthUser.Builder addTokenAuthUsersBuilder( + int index) { + return internalGetTokenAuthUsersFieldBuilder() + .addBuilder(index, com.google.cloud.redis.cluster.v1.TokenAuthUser.getDefaultInstance()); + } + + /** + * + * + *
          +     * A list of token auth users in the project.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + public java.util.List + getTokenAuthUsersBuilderList() { + return internalGetTokenAuthUsersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1.TokenAuthUser, + com.google.cloud.redis.cluster.v1.TokenAuthUser.Builder, + com.google.cloud.redis.cluster.v1.TokenAuthUserOrBuilder> + internalGetTokenAuthUsersFieldBuilder() { + if (tokenAuthUsersBuilder_ == null) { + tokenAuthUsersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1.TokenAuthUser, + com.google.cloud.redis.cluster.v1.TokenAuthUser.Builder, + com.google.cloud.redis.cluster.v1.TokenAuthUserOrBuilder>( + tokenAuthUsers_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + tokenAuthUsers_ = null; + } + return tokenAuthUsersBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
          +     * Unordered list. Token auth users that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
          +     * Unordered list. Token auth users that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
          +     * Unordered list. Token auth users that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
          +     * Unordered list. Token auth users that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
          +     * Unordered list. Token auth users that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Token auth users that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Token auth users that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Token auth users that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Token auth users that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse) + private static final com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse(); + } + + public static com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTokenAuthUsersResponse 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.redis.cluster.v1.ListTokenAuthUsersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListTokenAuthUsersResponseOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListTokenAuthUsersResponseOrBuilder.java new file mode 100644 index 000000000000..2f487ddc2ae5 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListTokenAuthUsersResponseOrBuilder.java @@ -0,0 +1,166 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface ListTokenAuthUsersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * A list of token auth users in the project.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + java.util.List getTokenAuthUsersList(); + + /** + * + * + *
          +   * A list of token auth users in the project.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + com.google.cloud.redis.cluster.v1.TokenAuthUser getTokenAuthUsers(int index); + + /** + * + * + *
          +   * A list of token auth users in the project.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + int getTokenAuthUsersCount(); + + /** + * + * + *
          +   * A list of token auth users in the project.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + java.util.List + getTokenAuthUsersOrBuilderList(); + + /** + * + * + *
          +   * A list of token auth users in the project.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1.TokenAuthUser token_auth_users = 1; + */ + com.google.cloud.redis.cluster.v1.TokenAuthUserOrBuilder getTokenAuthUsersOrBuilder(int index); + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
          +   * Unordered list. Token auth users that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
          +   * Unordered list. Token auth users that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
          +   * Unordered list. Token auth users that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
          +   * Unordered list. Token auth users that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/TokenAuthUser.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/TokenAuthUser.java new file mode 100644 index 000000000000..46be398875e2 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/TokenAuthUser.java @@ -0,0 +1,1001 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * Represents a token based auth user for the cluster.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.TokenAuthUser} + */ +@com.google.protobuf.Generated +public final class TokenAuthUser extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.TokenAuthUser) + TokenAuthUserOrBuilder { + 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= */ "", + "TokenAuthUser"); + } + + // Use TokenAuthUser.newBuilder() to construct. + private TokenAuthUser(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TokenAuthUser() { + name_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_TokenAuthUser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_TokenAuthUser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.TokenAuthUser.class, + com.google.cloud.redis.cluster.v1.TokenAuthUser.Builder.class); + } + + /** + * + * + *
          +   * Represents the different states of a token based auth user.
          +   * New values may be added in the future.
          +   * 
          + * + * Protobuf enum {@code google.cloud.redis.cluster.v1.TokenAuthUser.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Not set.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
          +     * The auth user is active.
          +     * 
          + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
          +     * The auth user is being created.
          +     * 
          + * + * CREATING = 2; + */ + CREATING(2), + /** + * + * + *
          +     * The auth user is being updated.
          +     * 
          + * + * UPDATING = 3; + */ + UPDATING(3), + /** + * + * + *
          +     * The auth user is being deleted.
          +     * 
          + * + * DELETING = 4; + */ + DELETING(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
          +     * Not set.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
          +     * The auth user is active.
          +     * 
          + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
          +     * The auth user is being created.
          +     * 
          + * + * CREATING = 2; + */ + public static final int CREATING_VALUE = 2; + + /** + * + * + *
          +     * The auth user is being updated.
          +     * 
          + * + * UPDATING = 3; + */ + public static final int UPDATING_VALUE = 3; + + /** + * + * + *
          +     * The auth user is being deleted.
          +     * 
          + * + * DELETING = 4; + */ + public static final int DELETING_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return CREATING; + case 3: + return UPDATING; + case 4: + return DELETING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.TokenAuthUser.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1.TokenAuthUser.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Identifier. The resource name of the token based auth user.
          +   * Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Identifier. The resource name of the token based auth user.
          +   * Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_ = 0; + + /** + * + * + *
          +   * Output only. The state of the token based auth user.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.TokenAuthUser.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
          +   * Output only. The state of the token based auth user.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.TokenAuthUser.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.TokenAuthUser.State getState() { + com.google.cloud.redis.cluster.v1.TokenAuthUser.State result = + com.google.cloud.redis.cluster.v1.TokenAuthUser.State.forNumber(state_); + return result == null + ? com.google.cloud.redis.cluster.v1.TokenAuthUser.State.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (state_ + != com.google.cloud.redis.cluster.v1.TokenAuthUser.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (state_ + != com.google.cloud.redis.cluster.v1.TokenAuthUser.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + 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.redis.cluster.v1.TokenAuthUser)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.TokenAuthUser other = + (com.google.cloud.redis.cluster.v1.TokenAuthUser) obj; + + if (!getName().equals(other.getName())) return false; + if (state_ != other.state_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.TokenAuthUser parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.TokenAuthUser 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.redis.cluster.v1.TokenAuthUser parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.TokenAuthUser 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.redis.cluster.v1.TokenAuthUser parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.TokenAuthUser parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.TokenAuthUser parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.TokenAuthUser 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.redis.cluster.v1.TokenAuthUser parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.TokenAuthUser 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.redis.cluster.v1.TokenAuthUser parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.TokenAuthUser 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.redis.cluster.v1.TokenAuthUser prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Represents a token based auth user for the cluster.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.TokenAuthUser} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.TokenAuthUser) + com.google.cloud.redis.cluster.v1.TokenAuthUserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_TokenAuthUser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_TokenAuthUser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.TokenAuthUser.class, + com.google.cloud.redis.cluster.v1.TokenAuthUser.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.TokenAuthUser.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_TokenAuthUser_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.TokenAuthUser getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.TokenAuthUser.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.TokenAuthUser build() { + com.google.cloud.redis.cluster.v1.TokenAuthUser result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.TokenAuthUser buildPartial() { + com.google.cloud.redis.cluster.v1.TokenAuthUser result = + new com.google.cloud.redis.cluster.v1.TokenAuthUser(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.TokenAuthUser result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.TokenAuthUser) { + return mergeFrom((com.google.cloud.redis.cluster.v1.TokenAuthUser) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.TokenAuthUser other) { + if (other == com.google.cloud.redis.cluster.v1.TokenAuthUser.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Identifier. The resource name of the token based auth user.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Identifier. The resource name of the token based auth user.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Identifier. The resource name of the token based auth user.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Identifier. The resource name of the token based auth user.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Identifier. The resource name of the token based auth user.
          +     * Format:
          +     * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
          +     * Output only. The state of the token based auth user.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.TokenAuthUser.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
          +     * Output only. The state of the token based auth user.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.TokenAuthUser.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The state of the token based auth user.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.TokenAuthUser.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.TokenAuthUser.State getState() { + com.google.cloud.redis.cluster.v1.TokenAuthUser.State result = + com.google.cloud.redis.cluster.v1.TokenAuthUser.State.forNumber(state_); + return result == null + ? com.google.cloud.redis.cluster.v1.TokenAuthUser.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
          +     * Output only. The state of the token based auth user.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.TokenAuthUser.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.redis.cluster.v1.TokenAuthUser.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The state of the token based auth user.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.TokenAuthUser.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.TokenAuthUser) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.TokenAuthUser) + private static final com.google.cloud.redis.cluster.v1.TokenAuthUser DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.TokenAuthUser(); + } + + public static com.google.cloud.redis.cluster.v1.TokenAuthUser getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TokenAuthUser 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.redis.cluster.v1.TokenAuthUser getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/TokenAuthUserName.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/TokenAuthUserName.java new file mode 100644 index 000000000000..9fdb567d7e5d --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/TokenAuthUserName.java @@ -0,0 +1,272 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class TokenAuthUserName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_CLUSTER_TOKEN_AUTH_USER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String cluster; + private final String tokenAuthUser; + + @Deprecated + protected TokenAuthUserName() { + project = null; + location = null; + cluster = null; + tokenAuthUser = null; + } + + private TokenAuthUserName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + cluster = Preconditions.checkNotNull(builder.getCluster()); + tokenAuthUser = Preconditions.checkNotNull(builder.getTokenAuthUser()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public String getTokenAuthUser() { + return tokenAuthUser; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static TokenAuthUserName of( + String project, String location, String cluster, String tokenAuthUser) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCluster(cluster) + .setTokenAuthUser(tokenAuthUser) + .build(); + } + + public static String format( + String project, String location, String cluster, String tokenAuthUser) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCluster(cluster) + .setTokenAuthUser(tokenAuthUser) + .build() + .toString(); + } + + public static @Nullable TokenAuthUserName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_CLUSTER_TOKEN_AUTH_USER.validatedMatch( + formattedString, "TokenAuthUserName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("cluster"), + matchMap.get("token_auth_user")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List<@Nullable TokenAuthUserName> values) { + List list = new ArrayList<>(values.size()); + for (TokenAuthUserName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_CLUSTER_TOKEN_AUTH_USER.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (cluster != null) { + fieldMapBuilder.put("cluster", cluster); + } + if (tokenAuthUser != null) { + fieldMapBuilder.put("token_auth_user", tokenAuthUser); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_CLUSTER_TOKEN_AUTH_USER.instantiate( + "project", + project, + "location", + location, + "cluster", + cluster, + "token_auth_user", + tokenAuthUser); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + TokenAuthUserName that = ((TokenAuthUserName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.cluster, that.cluster) + && Objects.equals(this.tokenAuthUser, that.tokenAuthUser); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(cluster); + h *= 1000003; + h ^= Objects.hashCode(tokenAuthUser); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}. + */ + public static class Builder { + private String project; + private String location; + private String cluster; + private String tokenAuthUser; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public String getTokenAuthUser() { + return tokenAuthUser; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setCluster(String cluster) { + this.cluster = cluster; + return this; + } + + public Builder setTokenAuthUser(String tokenAuthUser) { + this.tokenAuthUser = tokenAuthUser; + return this; + } + + private Builder(TokenAuthUserName tokenAuthUserName) { + this.project = tokenAuthUserName.project; + this.location = tokenAuthUserName.location; + this.cluster = tokenAuthUserName.cluster; + this.tokenAuthUser = tokenAuthUserName.tokenAuthUser; + } + + public TokenAuthUserName build() { + return new TokenAuthUserName(this); + } + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/TokenAuthUserOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/TokenAuthUserOrBuilder.java new file mode 100644 index 000000000000..43a01a1a61af --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/TokenAuthUserOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface TokenAuthUserOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.TokenAuthUser) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Identifier. The resource name of the token based auth user.
          +   * Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Identifier. The resource name of the token based auth user.
          +   * Format:
          +   * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Output only. The state of the token based auth user.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.TokenAuthUser.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
          +   * Output only. The state of the token based auth user.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.TokenAuthUser.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.redis.cluster.v1.TokenAuthUser.State getState(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/UpdateAclPolicyRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/UpdateAclPolicyRequest.java new file mode 100644 index 000000000000..3891f2fd4f4c --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/UpdateAclPolicyRequest.java @@ -0,0 +1,1265 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
          + * Request for `UpdateAclPolicy`.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.UpdateAclPolicyRequest} + */ +@com.google.protobuf.Generated +public final class UpdateAclPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.UpdateAclPolicyRequest) + UpdateAclPolicyRequestOrBuilder { + 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= */ "", + "UpdateAclPolicyRequest"); + } + + // Use UpdateAclPolicyRequest.newBuilder() to construct. + private UpdateAclPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateAclPolicyRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_UpdateAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_UpdateAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest.class, + com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int ACL_POLICY_FIELD_NUMBER = 1; + private com.google.cloud.redis.cluster.v1.AclPolicy aclPolicy_; + + /** + * + * + *
          +   * Required. The ACL policy to be updated.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclPolicy field is set. + */ + @java.lang.Override + public boolean hasAclPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Required. The ACL policy to be updated.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclPolicy. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicy getAclPolicy() { + return aclPolicy_ == null + ? com.google.cloud.redis.cluster.v1.AclPolicy.getDefaultInstance() + : aclPolicy_; + } + + /** + * + * + *
          +   * Required. The ACL policy to be updated.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder getAclPolicyOrBuilder() { + return aclPolicy_ == null + ? com.google.cloud.redis.cluster.v1.AclPolicy.getDefaultInstance() + : aclPolicy_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
          +   * Optional. Mask of fields to be updated. At least one path must be supplied
          +   * in this field. The elements of the repeated paths field may only include
          +   * these fields from `AclPolicy`:
          +   *
          +   * *   `rules`
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +   * Optional. Mask of fields to be updated. At least one path must be supplied
          +   * in this field. The elements of the repeated paths field may only include
          +   * these fields from `AclPolicy`:
          +   *
          +   * *   `rules`
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
          +   * Optional. Mask of fields to be updated. At least one path must be supplied
          +   * in this field. The elements of the repeated paths field may only include
          +   * these fields from `AclPolicy`:
          +   *
          +   * *   `rules`
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAclPolicy()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAclPolicy()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + 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.redis.cluster.v1.UpdateAclPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest other = + (com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest) obj; + + if (hasAclPolicy() != other.hasAclPolicy()) return false; + if (hasAclPolicy()) { + if (!getAclPolicy().equals(other.getAclPolicy())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAclPolicy()) { + hash = (37 * hash) + ACL_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicy().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest 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.redis.cluster.v1.UpdateAclPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest 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.redis.cluster.v1.UpdateAclPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest 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.redis.cluster.v1.UpdateAclPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest 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.redis.cluster.v1.UpdateAclPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest 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.redis.cluster.v1.UpdateAclPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request for `UpdateAclPolicy`.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1.UpdateAclPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.UpdateAclPolicyRequest) + com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_UpdateAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_UpdateAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest.class, + com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAclPolicyFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + aclPolicy_ = null; + if (aclPolicyBuilder_ != null) { + aclPolicyBuilder_.dispose(); + aclPolicyBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_UpdateAclPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest build() { + com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest buildPartial() { + com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest result = + new com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.aclPolicy_ = aclPolicyBuilder_ == null ? aclPolicy_ : aclPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest other) { + if (other == com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest.getDefaultInstance()) + return this; + if (other.hasAclPolicy()) { + mergeAclPolicy(other.getAclPolicy()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + input.readMessage( + internalGetAclPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = 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 com.google.cloud.redis.cluster.v1.AclPolicy aclPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1.AclPolicy, + com.google.cloud.redis.cluster.v1.AclPolicy.Builder, + com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder> + aclPolicyBuilder_; + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclPolicy field is set. + */ + public boolean hasAclPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclPolicy. + */ + public com.google.cloud.redis.cluster.v1.AclPolicy getAclPolicy() { + if (aclPolicyBuilder_ == null) { + return aclPolicy_ == null + ? com.google.cloud.redis.cluster.v1.AclPolicy.getDefaultInstance() + : aclPolicy_; + } else { + return aclPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAclPolicy(com.google.cloud.redis.cluster.v1.AclPolicy value) { + if (aclPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aclPolicy_ = value; + } else { + aclPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAclPolicy( + com.google.cloud.redis.cluster.v1.AclPolicy.Builder builderForValue) { + if (aclPolicyBuilder_ == null) { + aclPolicy_ = builderForValue.build(); + } else { + aclPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAclPolicy(com.google.cloud.redis.cluster.v1.AclPolicy value) { + if (aclPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && aclPolicy_ != null + && aclPolicy_ != com.google.cloud.redis.cluster.v1.AclPolicy.getDefaultInstance()) { + getAclPolicyBuilder().mergeFrom(value); + } else { + aclPolicy_ = value; + } + } else { + aclPolicyBuilder_.mergeFrom(value); + } + if (aclPolicy_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAclPolicy() { + bitField0_ = (bitField0_ & ~0x00000001); + aclPolicy_ = null; + if (aclPolicyBuilder_ != null) { + aclPolicyBuilder_.dispose(); + aclPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.redis.cluster.v1.AclPolicy.Builder getAclPolicyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAclPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder getAclPolicyOrBuilder() { + if (aclPolicyBuilder_ != null) { + return aclPolicyBuilder_.getMessageOrBuilder(); + } else { + return aclPolicy_ == null + ? com.google.cloud.redis.cluster.v1.AclPolicy.getDefaultInstance() + : aclPolicy_; + } + } + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1.AclPolicy, + com.google.cloud.redis.cluster.v1.AclPolicy.Builder, + com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder> + internalGetAclPolicyFieldBuilder() { + if (aclPolicyBuilder_ == null) { + aclPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1.AclPolicy, + com.google.cloud.redis.cluster.v1.AclPolicy.Builder, + com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder>( + getAclPolicy(), getParentForChildren(), isClean()); + aclPolicy_ = null; + } + return aclPolicyBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.UpdateAclPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.UpdateAclPolicyRequest) + private static final com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest(); + } + + public static com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAclPolicyRequest 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.redis.cluster.v1.UpdateAclPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/UpdateAclPolicyRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/UpdateAclPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..61c5f0ed3163 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/UpdateAclPolicyRequestOrBuilder.java @@ -0,0 +1,153 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1; + +@com.google.protobuf.Generated +public interface UpdateAclPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.UpdateAclPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The ACL policy to be updated.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclPolicy field is set. + */ + boolean hasAclPolicy(); + + /** + * + * + *
          +   * Required. The ACL policy to be updated.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclPolicy. + */ + com.google.cloud.redis.cluster.v1.AclPolicy getAclPolicy(); + + /** + * + * + *
          +   * Required. The ACL policy to be updated.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.redis.cluster.v1.AclPolicyOrBuilder getAclPolicyOrBuilder(); + + /** + * + * + *
          +   * Optional. Mask of fields to be updated. At least one path must be supplied
          +   * in this field. The elements of the repeated paths field may only include
          +   * these fields from `AclPolicy`:
          +   *
          +   * *   `rules`
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
          +   * Optional. Mask of fields to be updated. At least one path must be supplied
          +   * in this field. The elements of the repeated paths field may only include
          +   * these fields from `AclPolicy`:
          +   *
          +   * *   `rules`
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
          +   * Optional. Mask of fields to be updated. At least one path must be supplied
          +   * in this field. The elements of the repeated paths field may only include
          +   * these fields from `AclPolicy`:
          +   *
          +   * *   `rules`
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/proto/google/cloud/redis/cluster/v1/cloud_redis_cluster.proto b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/proto/google/cloud/redis/cluster/v1/cloud_redis_cluster.proto index 29bc9ec3a1db..9f5242e89a02 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/proto/google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/proto/google/cloud/redis/cluster/v1/cloud_redis_cluster.proto @@ -96,6 +96,23 @@ service CloudRedisCluster { option (google.api.method_signature) = "parent"; } + // Lists all ACL policies owned by a project in either the specified + // location (region) or all locations. + // + // The location should have the following format: + // + // * `projects/{project_id}/locations/{location_id}` + // + // If `location_id` is specified as `-` (wildcard), then all regions + // available to the project are queried, and the results are aggregated. + rpc ListAclPolicies(ListAclPoliciesRequest) + returns (ListAclPoliciesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/aclPolicies" + }; + option (google.api.method_signature) = "parent"; + } + // Gets the details of a specific Redis cluster. rpc GetCluster(GetClusterRequest) returns (Cluster) { option (google.api.http) = { @@ -104,6 +121,14 @@ service CloudRedisCluster { option (google.api.method_signature) = "name"; } + // Gets the details of a specific Redis Cluster ACL policy. + rpc GetAclPolicy(GetAclPolicyRequest) returns (AclPolicy) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/aclPolicies/*}" + }; + option (google.api.method_signature) = "name"; + } + // Updates the metadata and configuration of a specific Redis cluster. // // Completed longrunning.Operation will contain the new cluster object @@ -122,6 +147,29 @@ service CloudRedisCluster { }; } + // Updates the ACL policy. + // + // The operation applies the updated ACL policy to all of the linked clusters. + // If Memorystore can apply the policy to all clusters, then the operation + // returns a SUCCESS status. If Memorystore can't apply the policy to all + // clusters, then to ensure eventual consistency, Memorystore uses + // reconciliation to apply the policy to the failed clusters. + // + // Completed longrunning.Operation will contain the new ACL policy object in + // the response field. + rpc UpdateAclPolicy(UpdateAclPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{acl_policy.name=projects/*/locations/*/aclPolicies/*}" + body: "acl_policy" + }; + option (google.api.method_signature) = "acl_policy,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "AclPolicy" + metadata_type: "OperationMetadata" + }; + } + // Deletes a specific Redis cluster. Cluster stops serving and data is // deleted. rpc DeleteCluster(DeleteClusterRequest) @@ -136,6 +184,39 @@ service CloudRedisCluster { }; } + // Deletes a specific ACL policy. This action will delete the ACL policy and + // all the rules associated with it. An ACL policy cannot be deleted if it is + // attached to a cluster. + rpc DeleteAclPolicy(DeleteAclPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/aclPolicies/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Gets details of a specific ACL policy revision. + rpc GetAclPolicyRevision(GetAclPolicyRevisionRequest) + returns (AclPolicyRevision) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/aclPolicies/*/revisions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all ACL policy revisions in a given ACL policy. + rpc ListAclPolicyRevisions(ListAclPolicyRevisionsRequest) + returns (ListAclPolicyRevisionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/aclPolicies/*}/revisions" + }; + option (google.api.method_signature) = "parent"; + } + // Creates a Redis cluster based on the specified properties. // The creation is executed asynchronously and callers may check the returned // operation to track its progress. Once the operation is completed the Redis @@ -157,6 +238,17 @@ service CloudRedisCluster { }; } + // Creates an ACL policy. + // The creation is executed synchronously and the policy is available for use + // immediately after the RPC returns. + rpc CreateAclPolicy(CreateAclPolicyRequest) returns (AclPolicy) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/aclPolicies" + body: "acl_policy" + }; + option (google.api.method_signature) = "parent,acl_policy,acl_policy_id"; + } + // Gets the details of certificate authority information for Redis cluster. rpc GetClusterCertificateAuthority(GetClusterCertificateAuthorityRequest) returns (CertificateAuthority) { @@ -277,6 +369,92 @@ service CloudRedisCluster { metadata_type: "google.protobuf.Any" }; } + + // Lists all the token auth users for a token based auth enabled cluster. + rpc ListTokenAuthUsers(ListTokenAuthUsersRequest) + returns (ListTokenAuthUsersResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/clusters/*}/tokenAuthUsers" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a specific token auth user for a basic auth enabled cluster. + rpc GetTokenAuthUser(GetTokenAuthUserRequest) returns (TokenAuthUser) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/clusters/*/tokenAuthUsers/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all the auth tokens for a specific token auth user. + rpc ListAuthTokens(ListAuthTokensRequest) returns (ListAuthTokensResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/clusters/*/tokenAuthUsers/*}/authTokens" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a specific auth token for a specific token auth user. + rpc GetAuthToken(GetAuthTokenRequest) returns (AuthToken) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/clusters/*/tokenAuthUsers/*/authTokens/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Adds a token auth user for a token based auth enabled cluster. + rpc AddTokenAuthUser(AddTokenAuthUserRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{cluster=projects/*/locations/*/clusters/*}:addTokenAuthUser" + body: "*" + }; + option (google.api.method_signature) = "cluster,token_auth_user"; + option (google.longrunning.operation_info) = { + response_type: "Cluster" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a token auth user for a token based auth enabled cluster. + rpc DeleteTokenAuthUser(DeleteTokenAuthUserRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/clusters/*/tokenAuthUsers/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Adds a auth token for a user of a token based auth enabled cluster. + rpc AddAuthToken(AddAuthTokenRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{token_auth_user=projects/*/locations/*/clusters/*/tokenAuthUsers/*}:addAuthToken" + body: "*" + }; + option (google.api.method_signature) = "token_auth_user,auth_token"; + option (google.longrunning.operation_info) = { + response_type: "TokenAuthUser" + metadata_type: "OperationMetadata" + }; + } + + // Removes a auth token for a user of a token based auth enabled instance. + rpc DeleteAuthToken(DeleteAuthTokenRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/clusters/*/tokenAuthUsers/*/authTokens/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } } // Status of the PSC connection. @@ -301,6 +479,9 @@ enum AuthorizationMode { // Authorization disabled mode AUTH_MODE_DISABLED = 2; + + // Token based authorization mode + AUTH_MODE_TOKEN_AUTH = 3; } // NodeType of a redis cluster node, @@ -401,6 +582,39 @@ message CreateClusterRequest { string request_id = 4; } +// Request for `CreateAclPolicy`. +message CreateAclPolicyRequest { + // Required. The resource name of the cluster location using the form: + // `projects/{project_id}/locations/{location_id}` + // where `location_id` refers to a Google Cloud region. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "redis.googleapis.com/AclPolicy" + } + ]; + + // Required. The logical name of the ACL policy in the customer project + // with the following restrictions: + // + // * Must contain only lowercase letters, numbers, and hyphens. + // * Must start with a letter. + // * Must be between 1-63 characters. + // * Must end with a number or a letter. + // * Must be unique within the customer project / location + string acl_policy_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ACL policy that is to be created. + AclPolicy acl_policy = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Idempotent request UUID. + // . + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + // Request for [ListClusters][CloudRedis.ListClusters]. message ListClustersRequest { // Required. The resource name of the cluster location using the form: @@ -450,6 +664,86 @@ message ListClustersResponse { repeated string unreachable = 3; } +// Request for `ListAclPolicies`. +message ListAclPoliciesRequest { + // Required. The resource name of the ACL policy location using the form: + // `projects/{project_id}/locations/{location_id}` + // where `location_id` refers to a Google Cloud region. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "redis.googleapis.com/AclPolicy" + } + ]; + + // Optional. The maximum number of items to return. + // + // If not specified, a default value of 1000 will be used by the service. + // Regardless of the page_size value, the response may include a partial list + // and a caller should only rely on response's + // [`next_page_token`][google.cloud.redis.cluster.v1.ListAclPoliciesResponse.next_page_token] + // to determine if there are more ACL policies left to be queried. + // + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The `next_page_token` value returned from a previous + // `ListAclPolicies` request, if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for `ListAclPolicies`. +message ListAclPoliciesResponse { + // A list of ACL policies in the project in the specified location, + // or across all locations. + // + // If the `location_id` in the parent field of the request is "-", all regions + // available to the project are queried, and the results aggregated. + repeated AclPolicy acl_policies = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; + + // Unordered list. Locations that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + +// Request for `ListAclPolicyRevisions`. +message ListAclPolicyRevisionsRequest { + // Required. The name of the ACL policy to list revisions for. + // Format: + // "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "redis.googleapis.com/AclPolicyRevision" + } + ]; + + // Optional. The maximum number of items to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The `next_page_token` value returned from a previous + // `ListAclPolicyRevisions` request, if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for `ListAclPolicyRevisions`. +message ListAclPolicyRevisionsResponse { + // A list of ACL policy revisions. + repeated AclPolicyRevision acl_policy_revisions = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; + + // Unordered list. Locations that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + // Request for [UpdateCluster][CloudRedis.UpdateCluster]. message UpdateClusterRequest { // Required. Mask of fields to update. At least one path must be supplied in @@ -469,6 +763,26 @@ message UpdateClusterRequest { string request_id = 3; } +// Request for `UpdateAclPolicy`. +message UpdateAclPolicyRequest { + // Required. The ACL policy to be updated. + AclPolicy acl_policy = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Mask of fields to be updated. At least one path must be supplied + // in this field. The elements of the repeated paths field may only include + // these fields from `AclPolicy`: + // + // * `rules` + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Idempotent request UUID. + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + // Request for [GetCluster][CloudRedis.GetCluster]. message GetClusterRequest { // Required. Redis cluster resource name using the form: @@ -480,6 +794,30 @@ message GetClusterRequest { ]; } +// Request for `GetAclPolicy`. +message GetAclPolicyRequest { + // Required. Redis ACL policy resource name using the form: + // `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` + // where `location_id` refers to a Google Cloud region. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "redis.googleapis.com/AclPolicy" } + ]; +} + +// Request for `GetAclPolicyRevision`. +message GetAclPolicyRevisionRequest { + // Required. Redis ACL policy revision resource name using the form: + // `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}` + // where `location_id` refers to a Google Cloud region. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "redis.googleapis.com/AclPolicyRevision" + } + ]; +} + // Request for [DeleteCluster][CloudRedis.DeleteCluster]. message DeleteClusterRequest { // Required. Redis cluster resource name using the form: @@ -494,6 +832,27 @@ message DeleteClusterRequest { string request_id = 2; } +// Request for `DeleteAclPolicy`. +message DeleteAclPolicyRequest { + // Required. Redis ACL policy resource name using the form: + // `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` + // where `location_id` refers to a Google Cloud region. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "redis.googleapis.com/AclPolicy" } + ]; + + // Optional. Idempotent request UUID. + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; + + // Optional. Etag of the ACL policy. If this is different from the server's + // etag, the request will fail with an ABORTED error. + string etag = 3 [(google.api.field_behavior) = OPTIONAL]; +} + // Request for // [GetClusterCertificateAuthorityRequest][CloudRedis.GetClusterCertificateAuthorityRequest]. message GetClusterCertificateAuthorityRequest { @@ -669,6 +1028,204 @@ message BackupClusterRequest { optional string backup_id = 3 [(google.api.field_behavior) = OPTIONAL]; } +// Request message for [ListTokenAuthUsers][]. +message ListTokenAuthUsersRequest { + // Required. The parent resource that this token based auth user will be + // listed for. Format: + // projects/{project}/locations/{location}/clusters/{cluster} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "redis.googleapis.com/TokenAuthUser" + } + ]; + + // Optional. The maximum number of items to return. + // + // If not specified, a default value of 1000 will be used by the service. + // Regardless of the page_size value, the response may include a partial list + // and a caller should only rely on response's + // The maximum value is 1000; values above 1000 will be coerced to 1000. + // [`next_page_token`][google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse.next_page_token] + // to determine if there are more clusters left to be queried. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The `next_page_token` value returned from a previous + // [ListTokenAuthUsers] request, if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression for filtering results. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sort results by a defined order. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for [ListTokenAuthUsers][]. +message ListTokenAuthUsersResponse { + // A list of token auth users in the project. + repeated TokenAuthUser token_auth_users = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; + + // Unordered list. Token auth users that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + +// Request message for [GetTokenAuthUser][]. +message GetTokenAuthUserRequest { + // Required. The name of token auth user for a token based auth enabled + // cluster. Format: + // projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "redis.googleapis.com/TokenAuthUser" + } + ]; +} + +// Request message for [ListAuthTokens][]. +message ListAuthTokensRequest { + // Required. The parent resource that this auth token will be listed for. + // Format: + // projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "redis.googleapis.com/AuthToken" + } + ]; + + // Optional. The maximum number of items to return. The maximum value is 1000; + // values above 1000 will be coerced to 1000. If not specified, a default + // value of 1000 will be used by the service. Regardless of the page_size + // value, the response may include a partial list and a caller should only + // rely on response's + // [`next_page_token`][google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse.next_page_token] + // to determine if there are more clusters left to be queried. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The `next_page_token` value returned from a previous + // [ListTokenAuthUsers] request, if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression for filtering results. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sort results by a defined order. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for [ListAuthTokens][]. +message ListAuthTokensResponse { + // A list of auth tokens in the project. + repeated AuthToken auth_tokens = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; + + // Unordered list. Auth tokens that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + +// Request message for [GetAuthToken][]. +message GetAuthTokenRequest { + // Required. The name of auth token for a token based auth enabled cluster. + // Format: + // projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "redis.googleapis.com/AuthToken" } + ]; +} + +// Request message for [AddTokenAuthUser][]. +message AddTokenAuthUserRequest { + // Required. The cluster resource that this token auth user will be added for. + // Format: projects/{project}/locations/{location}/clusters/{cluster} + string cluster = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "redis.googleapis.com/Cluster" } + ]; + + // Required. The id of the token auth user to add. + string token_auth_user = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "redis.googleapis.com/TokenAuthUser" + } + ]; +} + +// Request message for [DeleteTokenAuthUser][]. +message DeleteTokenAuthUserRequest { + // Required. The name of the token auth user to delete. + // Format: + // projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "redis.googleapis.com/TokenAuthUser" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; + + // Optional. If set to true, any child auth tokens of this user will also be + // deleted. Otherwise, the request will only work if the user has no auth + // tokens. + bool force = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [AddAuthToken][]. +message AddAuthTokenRequest { + // Required. The name of the token auth user resource that this auth token + // will be added for. Format: + // projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} + string token_auth_user = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "redis.googleapis.com/TokenAuthUser" + } + ]; + + // Required. The auth token to add. + AuthToken auth_token = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [DeleteAuthToken][]. +message DeleteAuthTokenRequest { + // Required. The name of the token auth user resource that this auth token + // will be deleted from. Format: + // projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "redis.googleapis.com/AuthToken" } + ]; +} + // A cluster instance. message Cluster { option (google.api.resource) = { @@ -902,6 +1459,198 @@ message Cluster { (google.api.field_behavior) = OPTIONAL, (google.api.field_behavior) = INPUT_ONLY ]; + + // Optional. The ACL policy to be applied to the cluster. + string acl_policy = 56 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "redis.googleapis.com/AclPolicy" } + ]; + + // Output only. Details of the applied ACL policy. + AclPolicyInfo acl_policy_info = 58 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Details of the applied ACL policy. +message AclPolicyInfo { + // Output only. The resource name of the applied ACL policy. + // Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}" + string applied_acl_policy = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "redis.googleapis.com/AclPolicy" } + ]; + + // Output only. The resource name of the applied ACL policy revision. + // Format: + // "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}" + string applied_acl_policy_revision = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "redis.googleapis.com/AclPolicyRevision" + } + ]; + + // Output only. The revision number of the applied ACL policy revision. + int64 applied_acl_policy_revision_number = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A list of status for various revisions of this ACL policy on + // the cluster. + repeated AclPolicyRevisionStatus acl_policy_revision_statuses = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The ACL policy resource. +message AclPolicy { + option (google.api.resource) = { + type: "redis.googleapis.com/AclPolicy" + pattern: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}" + plural: "aclPolicies" + singular: "aclPolicy" + }; + + // Represents the different states of an ACL policy. + enum State { + // Not set. + STATE_UNSPECIFIED = 0; + + // ACL policy has been created and is fully usable. Since ACL policy + // creation is synchronous and not an LRO, there is no CREATING state. + ACTIVE = 1; + + // ACL policy is being updated. + UPDATING = 2; + + // ACL policy is being deleted. + DELETING = 3; + } + + // Identifier. Full resource path of the ACL policy. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The ACL rules within the ACL policy. + repeated AclRule rules = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The state of the ACL policy. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Etag for the ACL policy. + optional string etag = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The ACL policy attachment status for each attached cluster. + repeated ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp that the ACL policy was created. + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp that the ACL policy was last updated. + google.protobuf.Timestamp update_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// AclPolicyRevisionStatus stores the per-revision status for an attached +// cluster. +message AclPolicyRevisionStatus { + // Enum indicating the status of this ACL policy revision on the cluster. + enum State { + // Not set. + STATE_UNSPECIFIED = 0; + + // The cluster is attempting to apply this revision. + APPLYING = 1; + + // The cluster has successfully applied this revision. + APPLIED = 2; + + // The cluster failed to apply this revision. + FAILED = 3; + } + + // Output only. The resource name of the ACL policy revision this status + // refers to. Format: + // "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}" + string acl_policy_revision = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "redis.googleapis.com/AclPolicyRevision" + } + ]; + + // Output only. The revision number of the ACL policy revision this status + // refers to. + int64 acl_policy_revision_number = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. AclPolicyRevision state. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable error message providing more details for FAILED + // states. + string error_message = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// ClusterAclPolicyAttachment stores the ACL policy status for an attached +// cluster for the revisions successfully applied, under application or failed. +message ClusterAclPolicyAttachment { + // Output only. The resource name of the attached Cluster. + // Format: + // "projects/{project}/locations/{location}/clusters/{cluster}" + string cluster = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "redis.googleapis.com/Cluster" } + ]; + + // Output only. A list of status for various revisions of this ACL policy on + // the cluster. + repeated AclPolicyRevisionStatus acl_policy_revision_statuses = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The ACL policy revision resource. +message AclPolicyRevision { + option (google.api.resource) = { + type: "redis.googleapis.com/AclPolicyRevision" + pattern: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}" + plural: "aclPolicyRevisions" + singular: "aclPolicyRevision" + }; + + // Identifier. The name of the ACL policy revision. + // Format: + // "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}" + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The revision number of the ACL policy revision. + int64 revision_number = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The snapshot of the ACL policy at the time of revision + // creation. + AclPolicy snapshot = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp that the revision was created. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A list of clusters that are attached to this ACL policy + // revision. + repeated string attached_clusters = 5 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "redis.googleapis.com/Cluster" } + ]; +} + +// A single ACL rule which defines the policy for a user. +message AclRule { + // Required. Specifies the IAM user or service account to be added to the ACL + // policy. This username will be directly set on the Redis OSS. + string username = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The rule to be applied to the username. Ex: "on >password123 ~* + // +@all" The format of the rule is defined by Redis OSS: + // https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/ + string rule = 2 [(google.api.field_behavior) = REQUIRED]; } // The automated backup config for a cluster. @@ -1471,6 +2220,85 @@ message OperationMetadata { string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Represents a token based auth user for the cluster. +message TokenAuthUser { + option (google.api.resource) = { + type: "redis.googleapis.com/TokenAuthUser" + pattern: "projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}" + plural: "tokenAuthUsers" + singular: "tokenAuthUser" + }; + + // Represents the different states of a token based auth user. + // New values may be added in the future. + enum State { + // Not set. + STATE_UNSPECIFIED = 0; + + // The auth user is active. + ACTIVE = 1; + + // The auth user is being created. + CREATING = 2; + + // The auth user is being updated. + UPDATING = 3; + + // The auth user is being deleted. + DELETING = 4; + } + + // Identifier. The resource name of the token based auth user. + // Format: + // projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The state of the token based auth user. + State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Auth token for the cluster. +message AuthToken { + option (google.api.resource) = { + type: "redis.googleapis.com/AuthToken" + pattern: "projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}" + plural: "authTokens" + singular: "authToken" + }; + + // Represents the different states of an auth token. + // New values may be added in the future. + enum State { + // Not set. + STATE_UNSPECIFIED = 0; + + // The auth token is active. + ACTIVE = 1; + + // The auth token is being created. + CREATING = 2; + + // The auth token is being deleted. + DELETING = 3; + } + + // Identifier. Name of the auth token. + // Format: + // projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The service generated authentication token used to connect to + // the Redis cluster. + string token = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Create time of the auth token. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the auth token. + State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Redis cluster certificate authority message CertificateAuthority { option (google.api.resource) = { diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicy.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicy.java new file mode 100644 index 000000000000..477c86d93c3f --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicy.java @@ -0,0 +1,2955 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
          + * The ACL policy resource.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.AclPolicy} + */ +@com.google.protobuf.Generated +public final class AclPolicy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.AclPolicy) + AclPolicyOrBuilder { + 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= */ "", + "AclPolicy"); + } + + // Use AclPolicy.newBuilder() to construct. + private AclPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AclPolicy() { + name_ = ""; + rules_ = java.util.Collections.emptyList(); + state_ = 0; + etag_ = ""; + clusterAclPolicyAttachments_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.AclPolicy.class, + com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder.class); + } + + /** + * + * + *
          +   * Represents the different states of an ACL policy.
          +   * 
          + * + * Protobuf enum {@code google.cloud.redis.cluster.v1beta1.AclPolicy.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Not set.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
          +     * ACL policy has been created and is fully usable. Since ACL policy
          +     * creation is synchronous and not an LRO, there is no CREATING state.
          +     * 
          + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
          +     * ACL policy is being updated.
          +     * 
          + * + * UPDATING = 2; + */ + UPDATING(2), + /** + * + * + *
          +     * ACL policy is being deleted.
          +     * 
          + * + * DELETING = 3; + */ + DELETING(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
          +     * Not set.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
          +     * ACL policy has been created and is fully usable. Since ACL policy
          +     * creation is synchronous and not an LRO, there is no CREATING state.
          +     * 
          + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
          +     * ACL policy is being updated.
          +     * 
          + * + * UPDATING = 2; + */ + public static final int UPDATING_VALUE = 2; + + /** + * + * + *
          +     * ACL policy is being deleted.
          +     * 
          + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return UPDATING; + case 3: + return DELETING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.AclPolicy.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1beta1.AclPolicy.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Identifier. Full resource path of the ACL policy.
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Identifier. Full resource path of the ACL policy.
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RULES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List rules_; + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getRulesList() { + return rules_; + } + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRulesOrBuilderList() { + return rules_; + } + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRulesCount() { + return rules_.size(); + } + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclRule getRules(int index) { + return rules_.get(index); + } + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclRuleOrBuilder getRulesOrBuilder(int index) { + return rules_.get(index); + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + + /** + * + * + *
          +   * Output only. The state of the ACL policy.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
          +   * Output only. The state of the ACL policy.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicy.State getState() { + com.google.cloud.redis.cluster.v1beta1.AclPolicy.State result = + com.google.cloud.redis.cluster.v1beta1.AclPolicy.State.forNumber(state_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.AclPolicy.State.UNRECOGNIZED + : result; + } + + public static final int ETAG_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
          +   * Output only. Etag for the ACL policy.
          +   * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the etag field is set. + */ + @java.lang.Override + public boolean hasEtag() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Output only. Etag for the ACL policy.
          +   * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. Etag for the ACL policy.
          +   * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ACL_POLICY_ATTACHMENTS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List + clusterAclPolicyAttachments_; + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getClusterAclPolicyAttachmentsList() { + return clusterAclPolicyAttachments_; + } + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachmentOrBuilder> + getClusterAclPolicyAttachmentsOrBuilderList() { + return clusterAclPolicyAttachments_; + } + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getClusterAclPolicyAttachmentsCount() { + return clusterAclPolicyAttachments_.size(); + } + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment + getClusterAclPolicyAttachments(int index) { + return clusterAclPolicyAttachments_.get(index); + } + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachmentOrBuilder + getClusterAclPolicyAttachmentsOrBuilder(int index) { + return clusterAclPolicyAttachments_.get(index); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + for (int i = 0; i < rules_.size(); i++) { + output.writeMessage(2, rules_.get(i)); + } + if (state_ + != com.google.cloud.redis.cluster.v1beta1.AclPolicy.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, etag_); + } + for (int i = 0; i < clusterAclPolicyAttachments_.size(); i++) { + output.writeMessage(6, clusterAclPolicyAttachments_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + for (int i = 0; i < rules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, rules_.get(i)); + } + if (state_ + != com.google.cloud.redis.cluster.v1beta1.AclPolicy.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, etag_); + } + for (int i = 0; i < clusterAclPolicyAttachments_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, clusterAclPolicyAttachments_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + } + 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.redis.cluster.v1beta1.AclPolicy)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.AclPolicy other = + (com.google.cloud.redis.cluster.v1beta1.AclPolicy) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRulesList().equals(other.getRulesList())) return false; + if (state_ != other.state_) return false; + if (hasEtag() != other.hasEtag()) return false; + if (hasEtag()) { + if (!getEtag().equals(other.getEtag())) return false; + } + if (!getClusterAclPolicyAttachmentsList().equals(other.getClusterAclPolicyAttachmentsList())) + return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getRulesCount() > 0) { + hash = (37 * hash) + RULES_FIELD_NUMBER; + hash = (53 * hash) + getRulesList().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasEtag()) { + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + } + if (getClusterAclPolicyAttachmentsCount() > 0) { + hash = (37 * hash) + CLUSTER_ACL_POLICY_ATTACHMENTS_FIELD_NUMBER; + hash = (53 * hash) + getClusterAclPolicyAttachmentsList().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicy parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicy 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.redis.cluster.v1beta1.AclPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicy 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.redis.cluster.v1beta1.AclPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicy 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.redis.cluster.v1beta1.AclPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicy 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.redis.cluster.v1beta1.AclPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicy 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.redis.cluster.v1beta1.AclPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * The ACL policy resource.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.AclPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.AclPolicy) + com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.AclPolicy.class, + com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.AclPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRulesFieldBuilder(); + internalGetClusterAclPolicyAttachmentsFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + } else { + rules_ = null; + rulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + etag_ = ""; + if (clusterAclPolicyAttachmentsBuilder_ == null) { + clusterAclPolicyAttachments_ = java.util.Collections.emptyList(); + } else { + clusterAclPolicyAttachments_ = null; + clusterAclPolicyAttachmentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicy getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.AclPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicy build() { + com.google.cloud.redis.cluster.v1beta1.AclPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicy buildPartial() { + com.google.cloud.redis.cluster.v1beta1.AclPolicy result = + new com.google.cloud.redis.cluster.v1beta1.AclPolicy(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1beta1.AclPolicy result) { + if (rulesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.rules_ = rules_; + } else { + result.rules_ = rulesBuilder_.build(); + } + if (clusterAclPolicyAttachmentsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + clusterAclPolicyAttachments_ = + java.util.Collections.unmodifiableList(clusterAclPolicyAttachments_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.clusterAclPolicyAttachments_ = clusterAclPolicyAttachments_; + } else { + result.clusterAclPolicyAttachments_ = clusterAclPolicyAttachmentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1beta1.AclPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.etag_ = etag_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.AclPolicy) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.AclPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.AclPolicy other) { + if (other == com.google.cloud.redis.cluster.v1beta1.AclPolicy.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (rulesBuilder_ == null) { + if (!other.rules_.isEmpty()) { + if (rules_.isEmpty()) { + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRulesIsMutable(); + rules_.addAll(other.rules_); + } + onChanged(); + } + } else { + if (!other.rules_.isEmpty()) { + if (rulesBuilder_.isEmpty()) { + rulesBuilder_.dispose(); + rulesBuilder_ = null; + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000002); + rulesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRulesFieldBuilder() + : null; + } else { + rulesBuilder_.addAllMessages(other.rules_); + } + } + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasEtag()) { + etag_ = other.etag_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (clusterAclPolicyAttachmentsBuilder_ == null) { + if (!other.clusterAclPolicyAttachments_.isEmpty()) { + if (clusterAclPolicyAttachments_.isEmpty()) { + clusterAclPolicyAttachments_ = other.clusterAclPolicyAttachments_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureClusterAclPolicyAttachmentsIsMutable(); + clusterAclPolicyAttachments_.addAll(other.clusterAclPolicyAttachments_); + } + onChanged(); + } + } else { + if (!other.clusterAclPolicyAttachments_.isEmpty()) { + if (clusterAclPolicyAttachmentsBuilder_.isEmpty()) { + clusterAclPolicyAttachmentsBuilder_.dispose(); + clusterAclPolicyAttachmentsBuilder_ = null; + clusterAclPolicyAttachments_ = other.clusterAclPolicyAttachments_; + bitField0_ = (bitField0_ & ~0x00000010); + clusterAclPolicyAttachmentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetClusterAclPolicyAttachmentsFieldBuilder() + : null; + } else { + clusterAclPolicyAttachmentsBuilder_.addAllMessages(other.clusterAclPolicyAttachments_); + } + } + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.redis.cluster.v1beta1.AclRule m = + input.readMessage( + com.google.cloud.redis.cluster.v1beta1.AclRule.parser(), extensionRegistry); + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(m); + } else { + rulesBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 42: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment m = + input.readMessage( + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment.parser(), + extensionRegistry); + if (clusterAclPolicyAttachmentsBuilder_ == null) { + ensureClusterAclPolicyAttachmentsIsMutable(); + clusterAclPolicyAttachments_.add(m); + } else { + clusterAclPolicyAttachmentsBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Identifier. Full resource path of the ACL policy.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Identifier. Full resource path of the ACL policy.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Identifier. Full resource path of the ACL policy.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Identifier. Full resource path of the ACL policy.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Identifier. Full resource path of the ACL policy.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List rules_ = + java.util.Collections.emptyList(); + + private void ensureRulesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + rules_ = new java.util.ArrayList(rules_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclRule, + com.google.cloud.redis.cluster.v1beta1.AclRule.Builder, + com.google.cloud.redis.cluster.v1beta1.AclRuleOrBuilder> + rulesBuilder_; + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRulesList() { + if (rulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rules_); + } else { + return rulesBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRulesCount() { + if (rulesBuilder_ == null) { + return rules_.size(); + } else { + return rulesBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclRule getRules(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRules(int index, com.google.cloud.redis.cluster.v1beta1.AclRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.set(index, value); + onChanged(); + } else { + rulesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRules( + int index, com.google.cloud.redis.cluster.v1beta1.AclRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.set(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules(com.google.cloud.redis.cluster.v1beta1.AclRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(value); + onChanged(); + } else { + rulesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules(int index, com.google.cloud.redis.cluster.v1beta1.AclRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(index, value); + onChanged(); + } else { + rulesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules( + com.google.cloud.redis.cluster.v1beta1.AclRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules( + int index, com.google.cloud.redis.cluster.v1beta1.AclRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRules( + java.lang.Iterable values) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_); + onChanged(); + } else { + rulesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRules() { + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + rulesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRules(int index) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.remove(index); + onChanged(); + } else { + rulesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclRule.Builder getRulesBuilder(int index) { + return internalGetRulesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclRuleOrBuilder getRulesOrBuilder(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRulesOrBuilderList() { + if (rulesBuilder_ != null) { + return rulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rules_); + } + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclRule.Builder addRulesBuilder() { + return internalGetRulesFieldBuilder() + .addBuilder(com.google.cloud.redis.cluster.v1beta1.AclRule.getDefaultInstance()); + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclRule.Builder addRulesBuilder(int index) { + return internalGetRulesFieldBuilder() + .addBuilder(index, com.google.cloud.redis.cluster.v1beta1.AclRule.getDefaultInstance()); + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRulesBuilderList() { + return internalGetRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclRule, + com.google.cloud.redis.cluster.v1beta1.AclRule.Builder, + com.google.cloud.redis.cluster.v1beta1.AclRuleOrBuilder> + internalGetRulesFieldBuilder() { + if (rulesBuilder_ == null) { + rulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclRule, + com.google.cloud.redis.cluster.v1beta1.AclRule.Builder, + com.google.cloud.redis.cluster.v1beta1.AclRuleOrBuilder>( + rules_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + rules_ = null; + } + return rulesBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
          +     * Output only. The state of the ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
          +     * Output only. The state of the ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The state of the ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicy.State getState() { + com.google.cloud.redis.cluster.v1beta1.AclPolicy.State result = + com.google.cloud.redis.cluster.v1beta1.AclPolicy.State.forNumber(state_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.AclPolicy.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
          +     * Output only. The state of the ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.redis.cluster.v1beta1.AclPolicy.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The state of the ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
          +     * Output only. Etag for the ACL policy.
          +     * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the etag field is set. + */ + public boolean hasEtag() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
          +     * Output only. Etag for the ACL policy.
          +     * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. Etag for the ACL policy.
          +     * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. Etag for the ACL policy.
          +     * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Etag for the ACL policy.
          +     * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Etag for the ACL policy.
          +     * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.util.List + clusterAclPolicyAttachments_ = java.util.Collections.emptyList(); + + private void ensureClusterAclPolicyAttachmentsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + clusterAclPolicyAttachments_ = + new java.util.ArrayList< + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment>( + clusterAclPolicyAttachments_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment, + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachmentOrBuilder> + clusterAclPolicyAttachmentsBuilder_; + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getClusterAclPolicyAttachmentsList() { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(clusterAclPolicyAttachments_); + } else { + return clusterAclPolicyAttachmentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getClusterAclPolicyAttachmentsCount() { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + return clusterAclPolicyAttachments_.size(); + } else { + return clusterAclPolicyAttachmentsBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment + getClusterAclPolicyAttachments(int index) { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + return clusterAclPolicyAttachments_.get(index); + } else { + return clusterAclPolicyAttachmentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setClusterAclPolicyAttachments( + int index, com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment value) { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterAclPolicyAttachmentsIsMutable(); + clusterAclPolicyAttachments_.set(index, value); + onChanged(); + } else { + clusterAclPolicyAttachmentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setClusterAclPolicyAttachments( + int index, + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment.Builder builderForValue) { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + ensureClusterAclPolicyAttachmentsIsMutable(); + clusterAclPolicyAttachments_.set(index, builderForValue.build()); + onChanged(); + } else { + clusterAclPolicyAttachmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addClusterAclPolicyAttachments( + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment value) { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterAclPolicyAttachmentsIsMutable(); + clusterAclPolicyAttachments_.add(value); + onChanged(); + } else { + clusterAclPolicyAttachmentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addClusterAclPolicyAttachments( + int index, com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment value) { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterAclPolicyAttachmentsIsMutable(); + clusterAclPolicyAttachments_.add(index, value); + onChanged(); + } else { + clusterAclPolicyAttachmentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addClusterAclPolicyAttachments( + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment.Builder builderForValue) { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + ensureClusterAclPolicyAttachmentsIsMutable(); + clusterAclPolicyAttachments_.add(builderForValue.build()); + onChanged(); + } else { + clusterAclPolicyAttachmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addClusterAclPolicyAttachments( + int index, + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment.Builder builderForValue) { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + ensureClusterAclPolicyAttachmentsIsMutable(); + clusterAclPolicyAttachments_.add(index, builderForValue.build()); + onChanged(); + } else { + clusterAclPolicyAttachmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllClusterAclPolicyAttachments( + java.lang.Iterable< + ? extends com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment> + values) { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + ensureClusterAclPolicyAttachmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, clusterAclPolicyAttachments_); + onChanged(); + } else { + clusterAclPolicyAttachmentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearClusterAclPolicyAttachments() { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + clusterAclPolicyAttachments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + clusterAclPolicyAttachmentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeClusterAclPolicyAttachments(int index) { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + ensureClusterAclPolicyAttachmentsIsMutable(); + clusterAclPolicyAttachments_.remove(index); + onChanged(); + } else { + clusterAclPolicyAttachmentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment.Builder + getClusterAclPolicyAttachmentsBuilder(int index) { + return internalGetClusterAclPolicyAttachmentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachmentOrBuilder + getClusterAclPolicyAttachmentsOrBuilder(int index) { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + return clusterAclPolicyAttachments_.get(index); + } else { + return clusterAclPolicyAttachmentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachmentOrBuilder> + getClusterAclPolicyAttachmentsOrBuilderList() { + if (clusterAclPolicyAttachmentsBuilder_ != null) { + return clusterAclPolicyAttachmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(clusterAclPolicyAttachments_); + } + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment.Builder + addClusterAclPolicyAttachmentsBuilder() { + return internalGetClusterAclPolicyAttachmentsFieldBuilder() + .addBuilder( + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment + .getDefaultInstance()); + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment.Builder + addClusterAclPolicyAttachmentsBuilder(int index) { + return internalGetClusterAclPolicyAttachmentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment + .getDefaultInstance()); + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getClusterAclPolicyAttachmentsBuilderList() { + return internalGetClusterAclPolicyAttachmentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment, + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachmentOrBuilder> + internalGetClusterAclPolicyAttachmentsFieldBuilder() { + if (clusterAclPolicyAttachmentsBuilder_ == null) { + clusterAclPolicyAttachmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment, + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachmentOrBuilder>( + clusterAclPolicyAttachments_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + clusterAclPolicyAttachments_ = null; + } + return clusterAclPolicyAttachmentsBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.AclPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.AclPolicy) + private static final com.google.cloud.redis.cluster.v1beta1.AclPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.AclPolicy(); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AclPolicy 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.redis.cluster.v1beta1.AclPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyInfo.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyInfo.java new file mode 100644 index 000000000000..960fa4be9723 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyInfo.java @@ -0,0 +1,1558 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
          + * Details of the applied ACL policy.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.AclPolicyInfo} + */ +@com.google.protobuf.Generated +public final class AclPolicyInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.AclPolicyInfo) + AclPolicyInfoOrBuilder { + 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= */ "", + "AclPolicyInfo"); + } + + // Use AclPolicyInfo.newBuilder() to construct. + private AclPolicyInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AclPolicyInfo() { + appliedAclPolicy_ = ""; + appliedAclPolicyRevision_ = ""; + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo.class, + com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo.Builder.class); + } + + public static final int APPLIED_ACL_POLICY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object appliedAclPolicy_ = ""; + + /** + * + * + *
          +   * Output only. The resource name of the applied ACL policy.
          +   * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +   * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appliedAclPolicy. + */ + @java.lang.Override + public java.lang.String getAppliedAclPolicy() { + java.lang.Object ref = appliedAclPolicy_; + 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(); + appliedAclPolicy_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. The resource name of the applied ACL policy.
          +   * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +   * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appliedAclPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppliedAclPolicyBytes() { + java.lang.Object ref = appliedAclPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appliedAclPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPLIED_ACL_POLICY_REVISION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object appliedAclPolicyRevision_ = ""; + + /** + * + * + *
          +   * Output only. The resource name of the applied ACL policy revision.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appliedAclPolicyRevision. + */ + @java.lang.Override + public java.lang.String getAppliedAclPolicyRevision() { + java.lang.Object ref = appliedAclPolicyRevision_; + 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(); + appliedAclPolicyRevision_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. The resource name of the applied ACL policy revision.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appliedAclPolicyRevision. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppliedAclPolicyRevisionBytes() { + java.lang.Object ref = appliedAclPolicyRevision_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appliedAclPolicyRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPLIED_ACL_POLICY_REVISION_NUMBER_FIELD_NUMBER = 3; + private long appliedAclPolicyRevisionNumber_ = 0L; + + /** + * + * + *
          +   * Output only. The revision number of the applied ACL policy revision.
          +   * 
          + * + * + * int64 applied_acl_policy_revision_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The appliedAclPolicyRevisionNumber. + */ + @java.lang.Override + public long getAppliedAclPolicyRevisionNumber() { + return appliedAclPolicyRevisionNumber_; + } + + public static final int ACL_POLICY_REVISION_STATUSES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List + aclPolicyRevisionStatuses_; + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getAclPolicyRevisionStatusesList() { + return aclPolicyRevisionStatuses_; + } + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatusOrBuilder> + getAclPolicyRevisionStatusesOrBuilderList() { + return aclPolicyRevisionStatuses_; + } + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getAclPolicyRevisionStatusesCount() { + return aclPolicyRevisionStatuses_.size(); + } + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus + getAclPolicyRevisionStatuses(int index) { + return aclPolicyRevisionStatuses_.get(index); + } + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatusOrBuilder + getAclPolicyRevisionStatusesOrBuilder(int index) { + return aclPolicyRevisionStatuses_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appliedAclPolicy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, appliedAclPolicy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appliedAclPolicyRevision_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, appliedAclPolicyRevision_); + } + if (appliedAclPolicyRevisionNumber_ != 0L) { + output.writeInt64(3, appliedAclPolicyRevisionNumber_); + } + for (int i = 0; i < aclPolicyRevisionStatuses_.size(); i++) { + output.writeMessage(4, aclPolicyRevisionStatuses_.get(i)); + } + 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(appliedAclPolicy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, appliedAclPolicy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appliedAclPolicyRevision_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, appliedAclPolicyRevision_); + } + if (appliedAclPolicyRevisionNumber_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size( + 3, appliedAclPolicyRevisionNumber_); + } + for (int i = 0; i < aclPolicyRevisionStatuses_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, aclPolicyRevisionStatuses_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo other = + (com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo) obj; + + if (!getAppliedAclPolicy().equals(other.getAppliedAclPolicy())) return false; + if (!getAppliedAclPolicyRevision().equals(other.getAppliedAclPolicyRevision())) return false; + if (getAppliedAclPolicyRevisionNumber() != other.getAppliedAclPolicyRevisionNumber()) + return false; + if (!getAclPolicyRevisionStatusesList().equals(other.getAclPolicyRevisionStatusesList())) + 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) + APPLIED_ACL_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAppliedAclPolicy().hashCode(); + hash = (37 * hash) + APPLIED_ACL_POLICY_REVISION_FIELD_NUMBER; + hash = (53 * hash) + getAppliedAclPolicyRevision().hashCode(); + hash = (37 * hash) + APPLIED_ACL_POLICY_REVISION_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAppliedAclPolicyRevisionNumber()); + if (getAclPolicyRevisionStatusesCount() > 0) { + hash = (37 * hash) + ACL_POLICY_REVISION_STATUSES_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicyRevisionStatusesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo 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.redis.cluster.v1beta1.AclPolicyInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo 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.redis.cluster.v1beta1.AclPolicyInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo 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.redis.cluster.v1beta1.AclPolicyInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo 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.redis.cluster.v1beta1.AclPolicyInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo 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.redis.cluster.v1beta1.AclPolicyInfo 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; + } + + /** + * + * + *
          +   * Details of the applied ACL policy.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.AclPolicyInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.AclPolicyInfo) + com.google.cloud.redis.cluster.v1beta1.AclPolicyInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo.class, + com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + appliedAclPolicy_ = ""; + appliedAclPolicyRevision_ = ""; + appliedAclPolicyRevisionNumber_ = 0L; + if (aclPolicyRevisionStatusesBuilder_ == null) { + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + } else { + aclPolicyRevisionStatuses_ = null; + aclPolicyRevisionStatusesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo build() { + com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo buildPartial() { + com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo result = + new com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo result) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + aclPolicyRevisionStatuses_ = + java.util.Collections.unmodifiableList(aclPolicyRevisionStatuses_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.aclPolicyRevisionStatuses_ = aclPolicyRevisionStatuses_; + } else { + result.aclPolicyRevisionStatuses_ = aclPolicyRevisionStatusesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.appliedAclPolicy_ = appliedAclPolicy_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.appliedAclPolicyRevision_ = appliedAclPolicyRevision_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.appliedAclPolicyRevisionNumber_ = appliedAclPolicyRevisionNumber_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo other) { + if (other == com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo.getDefaultInstance()) + return this; + if (!other.getAppliedAclPolicy().isEmpty()) { + appliedAclPolicy_ = other.appliedAclPolicy_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAppliedAclPolicyRevision().isEmpty()) { + appliedAclPolicyRevision_ = other.appliedAclPolicyRevision_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getAppliedAclPolicyRevisionNumber() != 0L) { + setAppliedAclPolicyRevisionNumber(other.getAppliedAclPolicyRevisionNumber()); + } + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (!other.aclPolicyRevisionStatuses_.isEmpty()) { + if (aclPolicyRevisionStatuses_.isEmpty()) { + aclPolicyRevisionStatuses_ = other.aclPolicyRevisionStatuses_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.addAll(other.aclPolicyRevisionStatuses_); + } + onChanged(); + } + } else { + if (!other.aclPolicyRevisionStatuses_.isEmpty()) { + if (aclPolicyRevisionStatusesBuilder_.isEmpty()) { + aclPolicyRevisionStatusesBuilder_.dispose(); + aclPolicyRevisionStatusesBuilder_ = null; + aclPolicyRevisionStatuses_ = other.aclPolicyRevisionStatuses_; + bitField0_ = (bitField0_ & ~0x00000008); + aclPolicyRevisionStatusesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAclPolicyRevisionStatusesFieldBuilder() + : null; + } else { + aclPolicyRevisionStatusesBuilder_.addAllMessages(other.aclPolicyRevisionStatuses_); + } + } + } + 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: + { + appliedAclPolicy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + appliedAclPolicyRevision_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + appliedAclPolicyRevisionNumber_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus m = + input.readMessage( + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.parser(), + extensionRegistry); + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(m); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(m); + } + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object appliedAclPolicy_ = ""; + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy.
          +     * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +     * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appliedAclPolicy. + */ + public java.lang.String getAppliedAclPolicy() { + java.lang.Object ref = appliedAclPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appliedAclPolicy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy.
          +     * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +     * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appliedAclPolicy. + */ + public com.google.protobuf.ByteString getAppliedAclPolicyBytes() { + java.lang.Object ref = appliedAclPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appliedAclPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy.
          +     * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +     * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The appliedAclPolicy to set. + * @return This builder for chaining. + */ + public Builder setAppliedAclPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appliedAclPolicy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy.
          +     * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +     * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAppliedAclPolicy() { + appliedAclPolicy_ = getDefaultInstance().getAppliedAclPolicy(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy.
          +     * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +     * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for appliedAclPolicy to set. + * @return This builder for chaining. + */ + public Builder setAppliedAclPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appliedAclPolicy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object appliedAclPolicyRevision_ = ""; + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appliedAclPolicyRevision. + */ + public java.lang.String getAppliedAclPolicyRevision() { + java.lang.Object ref = appliedAclPolicyRevision_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appliedAclPolicyRevision_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appliedAclPolicyRevision. + */ + public com.google.protobuf.ByteString getAppliedAclPolicyRevisionBytes() { + java.lang.Object ref = appliedAclPolicyRevision_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appliedAclPolicyRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The appliedAclPolicyRevision to set. + * @return This builder for chaining. + */ + public Builder setAppliedAclPolicyRevision(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appliedAclPolicyRevision_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAppliedAclPolicyRevision() { + appliedAclPolicyRevision_ = getDefaultInstance().getAppliedAclPolicyRevision(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for appliedAclPolicyRevision to set. + * @return This builder for chaining. + */ + public Builder setAppliedAclPolicyRevisionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appliedAclPolicyRevision_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long appliedAclPolicyRevisionNumber_; + + /** + * + * + *
          +     * Output only. The revision number of the applied ACL policy revision.
          +     * 
          + * + * + * int64 applied_acl_policy_revision_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The appliedAclPolicyRevisionNumber. + */ + @java.lang.Override + public long getAppliedAclPolicyRevisionNumber() { + return appliedAclPolicyRevisionNumber_; + } + + /** + * + * + *
          +     * Output only. The revision number of the applied ACL policy revision.
          +     * 
          + * + * + * int64 applied_acl_policy_revision_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The appliedAclPolicyRevisionNumber to set. + * @return This builder for chaining. + */ + public Builder setAppliedAclPolicyRevisionNumber(long value) { + + appliedAclPolicyRevisionNumber_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The revision number of the applied ACL policy revision.
          +     * 
          + * + * + * int64 applied_acl_policy_revision_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAppliedAclPolicyRevisionNumber() { + bitField0_ = (bitField0_ & ~0x00000004); + appliedAclPolicyRevisionNumber_ = 0L; + onChanged(); + return this; + } + + private java.util.List + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + + private void ensureAclPolicyRevisionStatusesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + aclPolicyRevisionStatuses_ = + new java.util.ArrayList( + aclPolicyRevisionStatuses_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.Builder, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatusOrBuilder> + aclPolicyRevisionStatusesBuilder_; + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getAclPolicyRevisionStatusesList() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return java.util.Collections.unmodifiableList(aclPolicyRevisionStatuses_); + } else { + return aclPolicyRevisionStatusesBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getAclPolicyRevisionStatusesCount() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return aclPolicyRevisionStatuses_.size(); + } else { + return aclPolicyRevisionStatusesBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus + getAclPolicyRevisionStatuses(int index) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return aclPolicyRevisionStatuses_.get(index); + } else { + return aclPolicyRevisionStatusesBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAclPolicyRevisionStatuses( + int index, com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus value) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.set(index, value); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAclPolicyRevisionStatuses( + int index, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.Builder builderForValue) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.set(index, builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus value) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(value); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + int index, com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus value) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(index, value); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.Builder builderForValue) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + int index, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.Builder builderForValue) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(index, builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllAclPolicyRevisionStatuses( + java.lang.Iterable + values) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aclPolicyRevisionStatuses_); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAclPolicyRevisionStatuses() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeAclPolicyRevisionStatuses(int index) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.remove(index); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.Builder + getAclPolicyRevisionStatusesBuilder(int index) { + return internalGetAclPolicyRevisionStatusesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatusOrBuilder + getAclPolicyRevisionStatusesOrBuilder(int index) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return aclPolicyRevisionStatuses_.get(index); + } else { + return aclPolicyRevisionStatusesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatusOrBuilder> + getAclPolicyRevisionStatusesOrBuilderList() { + if (aclPolicyRevisionStatusesBuilder_ != null) { + return aclPolicyRevisionStatusesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(aclPolicyRevisionStatuses_); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.Builder + addAclPolicyRevisionStatusesBuilder() { + return internalGetAclPolicyRevisionStatusesFieldBuilder() + .addBuilder( + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.getDefaultInstance()); + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.Builder + addAclPolicyRevisionStatusesBuilder(int index) { + return internalGetAclPolicyRevisionStatusesFieldBuilder() + .addBuilder( + index, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.getDefaultInstance()); + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getAclPolicyRevisionStatusesBuilderList() { + return internalGetAclPolicyRevisionStatusesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.Builder, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatusOrBuilder> + internalGetAclPolicyRevisionStatusesFieldBuilder() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + aclPolicyRevisionStatusesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.Builder, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatusOrBuilder>( + aclPolicyRevisionStatuses_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + aclPolicyRevisionStatuses_ = null; + } + return aclPolicyRevisionStatusesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.AclPolicyInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.AclPolicyInfo) + private static final com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo(); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AclPolicyInfo 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.redis.cluster.v1beta1.AclPolicyInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyInfoOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyInfoOrBuilder.java new file mode 100644 index 000000000000..097f26a74482 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyInfoOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +@com.google.protobuf.Generated +public interface AclPolicyInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.AclPolicyInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Output only. The resource name of the applied ACL policy.
          +   * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +   * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appliedAclPolicy. + */ + java.lang.String getAppliedAclPolicy(); + + /** + * + * + *
          +   * Output only. The resource name of the applied ACL policy.
          +   * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +   * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appliedAclPolicy. + */ + com.google.protobuf.ByteString getAppliedAclPolicyBytes(); + + /** + * + * + *
          +   * Output only. The resource name of the applied ACL policy revision.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appliedAclPolicyRevision. + */ + java.lang.String getAppliedAclPolicyRevision(); + + /** + * + * + *
          +   * Output only. The resource name of the applied ACL policy revision.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appliedAclPolicyRevision. + */ + com.google.protobuf.ByteString getAppliedAclPolicyRevisionBytes(); + + /** + * + * + *
          +   * Output only. The revision number of the applied ACL policy revision.
          +   * 
          + * + * + * int64 applied_acl_policy_revision_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The appliedAclPolicyRevisionNumber. + */ + long getAppliedAclPolicyRevisionNumber(); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAclPolicyRevisionStatusesList(); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus getAclPolicyRevisionStatuses( + int index); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAclPolicyRevisionStatusesCount(); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAclPolicyRevisionStatusesOrBuilderList(); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatusOrBuilder + getAclPolicyRevisionStatusesOrBuilder(int index); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyName.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyName.java new file mode 100644 index 000000000000..997f07f25c00 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyName.java @@ -0,0 +1,226 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class AclPolicyName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ACL_POLICY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String aclPolicy; + + @Deprecated + protected AclPolicyName() { + project = null; + location = null; + aclPolicy = null; + } + + private AclPolicyName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + aclPolicy = Preconditions.checkNotNull(builder.getAclPolicy()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAclPolicy() { + return aclPolicy; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AclPolicyName of(String project, String location, String aclPolicy) { + return newBuilder().setProject(project).setLocation(location).setAclPolicy(aclPolicy).build(); + } + + public static String format(String project, String location, String aclPolicy) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAclPolicy(aclPolicy) + .build() + .toString(); + } + + public static @Nullable AclPolicyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ACL_POLICY.validatedMatch( + formattedString, "AclPolicyName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("acl_policy")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List<@Nullable AclPolicyName> values) { + List list = new ArrayList<>(values.size()); + for (AclPolicyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ACL_POLICY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (aclPolicy != null) { + fieldMapBuilder.put("acl_policy", aclPolicy); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ACL_POLICY.instantiate( + "project", project, "location", location, "acl_policy", aclPolicy); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AclPolicyName that = ((AclPolicyName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.aclPolicy, that.aclPolicy); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(aclPolicy); + return h; + } + + /** Builder for projects/{project}/locations/{location}/aclPolicies/{acl_policy}. */ + public static class Builder { + private String project; + private String location; + private String aclPolicy; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAclPolicy() { + return aclPolicy; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAclPolicy(String aclPolicy) { + this.aclPolicy = aclPolicy; + return this; + } + + private Builder(AclPolicyName aclPolicyName) { + this.project = aclPolicyName.project; + this.location = aclPolicyName.location; + this.aclPolicy = aclPolicyName.aclPolicy; + } + + public AclPolicyName build() { + return new AclPolicyName(this); + } + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyOrBuilder.java new file mode 100644 index 000000000000..ef593f46332c --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyOrBuilder.java @@ -0,0 +1,339 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +@com.google.protobuf.Generated +public interface AclPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.AclPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Identifier. Full resource path of the ACL policy.
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Identifier. Full resource path of the ACL policy.
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRulesList(); + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.redis.cluster.v1beta1.AclRule getRules(int index); + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRulesCount(); + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRulesOrBuilderList(); + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.redis.cluster.v1beta1.AclRuleOrBuilder getRulesOrBuilder(int index); + + /** + * + * + *
          +   * Output only. The state of the ACL policy.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
          +   * Output only. The state of the ACL policy.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.redis.cluster.v1beta1.AclPolicy.State getState(); + + /** + * + * + *
          +   * Output only. Etag for the ACL policy.
          +   * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the etag field is set. + */ + boolean hasEtag(); + + /** + * + * + *
          +   * Output only. Etag for the ACL policy.
          +   * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
          +   * Output only. Etag for the ACL policy.
          +   * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getClusterAclPolicyAttachmentsList(); + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment getClusterAclPolicyAttachments( + int index); + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getClusterAclPolicyAttachmentsCount(); + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachmentOrBuilder> + getClusterAclPolicyAttachmentsOrBuilderList(); + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachmentOrBuilder + getClusterAclPolicyAttachmentsOrBuilder(int index); + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyRevision.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyRevision.java new file mode 100644 index 000000000000..54b1b3e8799e --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyRevision.java @@ -0,0 +1,1664 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
          + * The ACL policy revision resource.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.AclPolicyRevision} + */ +@com.google.protobuf.Generated +public final class AclPolicyRevision extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.AclPolicyRevision) + AclPolicyRevisionOrBuilder { + 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= */ "", + "AclPolicyRevision"); + } + + // Use AclPolicyRevision.newBuilder() to construct. + private AclPolicyRevision(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AclPolicyRevision() { + name_ = ""; + attachedClusters_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyRevision_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision.class, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Identifier. The name of the ACL policy revision.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Identifier. The name of the ACL policy revision.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REVISION_NUMBER_FIELD_NUMBER = 2; + private long revisionNumber_ = 0L; + + /** + * + * + *
          +   * Output only. The revision number of the ACL policy revision.
          +   * 
          + * + * int64 revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revisionNumber. + */ + @java.lang.Override + public long getRevisionNumber() { + return revisionNumber_; + } + + public static final int SNAPSHOT_FIELD_NUMBER = 3; + private com.google.cloud.redis.cluster.v1beta1.AclPolicy snapshot_; + + /** + * + * + *
          +   * Output only. The snapshot of the ACL policy at the time of revision
          +   * creation.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + @java.lang.Override + public boolean hasSnapshot() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Output only. The snapshot of the ACL policy at the time of revision
          +   * creation.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicy getSnapshot() { + return snapshot_ == null + ? com.google.cloud.redis.cluster.v1beta1.AclPolicy.getDefaultInstance() + : snapshot_; + } + + /** + * + * + *
          +   * Output only. The snapshot of the ACL policy at the time of revision
          +   * creation.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder getSnapshotOrBuilder() { + return snapshot_ == null + ? com.google.cloud.redis.cluster.v1beta1.AclPolicy.getDefaultInstance() + : snapshot_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
          +   * Output only. The timestamp that the revision was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +   * Output only. The timestamp that the revision was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
          +   * Output only. The timestamp that the revision was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int ATTACHED_CLUSTERS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList attachedClusters_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
          +   * Output only. A list of clusters that are attached to this ACL policy
          +   * revision.
          +   * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the attachedClusters. + */ + public com.google.protobuf.ProtocolStringList getAttachedClustersList() { + return attachedClusters_; + } + + /** + * + * + *
          +   * Output only. A list of clusters that are attached to this ACL policy
          +   * revision.
          +   * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of attachedClusters. + */ + public int getAttachedClustersCount() { + return attachedClusters_.size(); + } + + /** + * + * + *
          +   * Output only. A list of clusters that are attached to this ACL policy
          +   * revision.
          +   * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The attachedClusters at the given index. + */ + public java.lang.String getAttachedClusters(int index) { + return attachedClusters_.get(index); + } + + /** + * + * + *
          +   * Output only. A list of clusters that are attached to this ACL policy
          +   * revision.
          +   * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the attachedClusters at the given index. + */ + public com.google.protobuf.ByteString getAttachedClustersBytes(int index) { + return attachedClusters_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (revisionNumber_ != 0L) { + output.writeInt64(2, revisionNumber_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getSnapshot()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getCreateTime()); + } + for (int i = 0; i < attachedClusters_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, attachedClusters_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (revisionNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, revisionNumber_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSnapshot()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + { + int dataSize = 0; + for (int i = 0; i < attachedClusters_.size(); i++) { + dataSize += computeStringSizeNoTag(attachedClusters_.getRaw(i)); + } + size += dataSize; + size += 1 * getAttachedClustersList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision other = + (com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision) obj; + + if (!getName().equals(other.getName())) return false; + if (getRevisionNumber() != other.getRevisionNumber()) return false; + if (hasSnapshot() != other.hasSnapshot()) return false; + if (hasSnapshot()) { + if (!getSnapshot().equals(other.getSnapshot())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getAttachedClustersList().equals(other.getAttachedClustersList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REVISION_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRevisionNumber()); + if (hasSnapshot()) { + hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSnapshot().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (getAttachedClustersCount() > 0) { + hash = (37 * hash) + ATTACHED_CLUSTERS_FIELD_NUMBER; + hash = (53 * hash) + getAttachedClustersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision 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.redis.cluster.v1beta1.AclPolicyRevision parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision 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.redis.cluster.v1beta1.AclPolicyRevision parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision 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.redis.cluster.v1beta1.AclPolicyRevision parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision 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.redis.cluster.v1beta1.AclPolicyRevision parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision 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.redis.cluster.v1beta1.AclPolicyRevision prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * The ACL policy revision resource.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.AclPolicyRevision} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.AclPolicyRevision) + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyRevision_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision.class, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSnapshotFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + revisionNumber_ = 0L; + snapshot_ = null; + if (snapshotBuilder_ != null) { + snapshotBuilder_.dispose(); + snapshotBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + attachedClusters_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyRevision_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision build() { + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision buildPartial() { + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision result = + new com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.revisionNumber_ = revisionNumber_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.snapshot_ = snapshotBuilder_ == null ? snapshot_ : snapshotBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + attachedClusters_.makeImmutable(); + result.attachedClusters_ = attachedClusters_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision other) { + if (other == com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getRevisionNumber() != 0L) { + setRevisionNumber(other.getRevisionNumber()); + } + if (other.hasSnapshot()) { + mergeSnapshot(other.getSnapshot()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (!other.attachedClusters_.isEmpty()) { + if (attachedClusters_.isEmpty()) { + attachedClusters_ = other.attachedClusters_; + bitField0_ |= 0x00000010; + } else { + ensureAttachedClustersIsMutable(); + attachedClusters_.addAll(other.attachedClusters_); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + revisionNumber_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + internalGetSnapshotFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAttachedClustersIsMutable(); + attachedClusters_.add(s); + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Identifier. The name of the ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Identifier. The name of the ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Identifier. The name of the ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Identifier. The name of the ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Identifier. The name of the ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long revisionNumber_; + + /** + * + * + *
          +     * Output only. The revision number of the ACL policy revision.
          +     * 
          + * + * int64 revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revisionNumber. + */ + @java.lang.Override + public long getRevisionNumber() { + return revisionNumber_; + } + + /** + * + * + *
          +     * Output only. The revision number of the ACL policy revision.
          +     * 
          + * + * int64 revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The revisionNumber to set. + * @return This builder for chaining. + */ + public Builder setRevisionNumber(long value) { + + revisionNumber_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The revision number of the ACL policy revision.
          +     * 
          + * + * int64 revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRevisionNumber() { + bitField0_ = (bitField0_ & ~0x00000002); + revisionNumber_ = 0L; + onChanged(); + return this; + } + + private com.google.cloud.redis.cluster.v1beta1.AclPolicy snapshot_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclPolicy, + com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder, + com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder> + snapshotBuilder_; + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + public boolean hasSnapshot() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicy getSnapshot() { + if (snapshotBuilder_ == null) { + return snapshot_ == null + ? com.google.cloud.redis.cluster.v1beta1.AclPolicy.getDefaultInstance() + : snapshot_; + } else { + return snapshotBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSnapshot(com.google.cloud.redis.cluster.v1beta1.AclPolicy value) { + if (snapshotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snapshot_ = value; + } else { + snapshotBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSnapshot( + com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder builderForValue) { + if (snapshotBuilder_ == null) { + snapshot_ = builderForValue.build(); + } else { + snapshotBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSnapshot(com.google.cloud.redis.cluster.v1beta1.AclPolicy value) { + if (snapshotBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && snapshot_ != null + && snapshot_ != com.google.cloud.redis.cluster.v1beta1.AclPolicy.getDefaultInstance()) { + getSnapshotBuilder().mergeFrom(value); + } else { + snapshot_ = value; + } + } else { + snapshotBuilder_.mergeFrom(value); + } + if (snapshot_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSnapshot() { + bitField0_ = (bitField0_ & ~0x00000004); + snapshot_ = null; + if (snapshotBuilder_ != null) { + snapshotBuilder_.dispose(); + snapshotBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder getSnapshotBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetSnapshotFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder getSnapshotOrBuilder() { + if (snapshotBuilder_ != null) { + return snapshotBuilder_.getMessageOrBuilder(); + } else { + return snapshot_ == null + ? com.google.cloud.redis.cluster.v1beta1.AclPolicy.getDefaultInstance() + : snapshot_; + } + } + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclPolicy, + com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder, + com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder> + internalGetSnapshotFieldBuilder() { + if (snapshotBuilder_ == null) { + snapshotBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclPolicy, + com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder, + com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder>( + getSnapshot(), getParentForChildren(), isClean()); + snapshot_ = null; + } + return snapshotBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.LazyStringArrayList attachedClusters_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAttachedClustersIsMutable() { + if (!attachedClusters_.isModifiable()) { + attachedClusters_ = new com.google.protobuf.LazyStringArrayList(attachedClusters_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
          +     * Output only. A list of clusters that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the attachedClusters. + */ + public com.google.protobuf.ProtocolStringList getAttachedClustersList() { + attachedClusters_.makeImmutable(); + return attachedClusters_; + } + + /** + * + * + *
          +     * Output only. A list of clusters that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of attachedClusters. + */ + public int getAttachedClustersCount() { + return attachedClusters_.size(); + } + + /** + * + * + *
          +     * Output only. A list of clusters that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The attachedClusters at the given index. + */ + public java.lang.String getAttachedClusters(int index) { + return attachedClusters_.get(index); + } + + /** + * + * + *
          +     * Output only. A list of clusters that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the attachedClusters at the given index. + */ + public com.google.protobuf.ByteString getAttachedClustersBytes(int index) { + return attachedClusters_.getByteString(index); + } + + /** + * + * + *
          +     * Output only. A list of clusters that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The attachedClusters to set. + * @return This builder for chaining. + */ + public Builder setAttachedClusters(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachedClustersIsMutable(); + attachedClusters_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. A list of clusters that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The attachedClusters to add. + * @return This builder for chaining. + */ + public Builder addAttachedClusters(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachedClustersIsMutable(); + attachedClusters_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. A list of clusters that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param values The attachedClusters to add. + * @return This builder for chaining. + */ + public Builder addAllAttachedClusters(java.lang.Iterable values) { + ensureAttachedClustersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attachedClusters_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. A list of clusters that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAttachedClusters() { + attachedClusters_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. A list of clusters that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the attachedClusters to add. + * @return This builder for chaining. + */ + public Builder addAttachedClustersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAttachedClustersIsMutable(); + attachedClusters_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.AclPolicyRevision) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.AclPolicyRevision) + private static final com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision(); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AclPolicyRevision 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.redis.cluster.v1beta1.AclPolicyRevision getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyRevisionName.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyRevisionName.java new file mode 100644 index 000000000000..7b61782b3c97 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyRevisionName.java @@ -0,0 +1,264 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class AclPolicyRevisionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ACL_POLICY_REVISION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String aclPolicy; + private final String revision; + + @Deprecated + protected AclPolicyRevisionName() { + project = null; + location = null; + aclPolicy = null; + revision = null; + } + + private AclPolicyRevisionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + aclPolicy = Preconditions.checkNotNull(builder.getAclPolicy()); + revision = Preconditions.checkNotNull(builder.getRevision()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAclPolicy() { + return aclPolicy; + } + + public String getRevision() { + return revision; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AclPolicyRevisionName of( + String project, String location, String aclPolicy, String revision) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAclPolicy(aclPolicy) + .setRevision(revision) + .build(); + } + + public static String format(String project, String location, String aclPolicy, String revision) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAclPolicy(aclPolicy) + .setRevision(revision) + .build() + .toString(); + } + + public static @Nullable AclPolicyRevisionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ACL_POLICY_REVISION.validatedMatch( + formattedString, "AclPolicyRevisionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("acl_policy"), + matchMap.get("revision")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List<@Nullable AclPolicyRevisionName> values) { + List list = new ArrayList<>(values.size()); + for (AclPolicyRevisionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ACL_POLICY_REVISION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (aclPolicy != null) { + fieldMapBuilder.put("acl_policy", aclPolicy); + } + if (revision != null) { + fieldMapBuilder.put("revision", revision); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ACL_POLICY_REVISION.instantiate( + "project", project, "location", location, "acl_policy", aclPolicy, "revision", revision); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AclPolicyRevisionName that = ((AclPolicyRevisionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.aclPolicy, that.aclPolicy) + && Objects.equals(this.revision, that.revision); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(aclPolicy); + h *= 1000003; + h ^= Objects.hashCode(revision); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}. + */ + public static class Builder { + private String project; + private String location; + private String aclPolicy; + private String revision; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAclPolicy() { + return aclPolicy; + } + + public String getRevision() { + return revision; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAclPolicy(String aclPolicy) { + this.aclPolicy = aclPolicy; + return this; + } + + public Builder setRevision(String revision) { + this.revision = revision; + return this; + } + + private Builder(AclPolicyRevisionName aclPolicyRevisionName) { + this.project = aclPolicyRevisionName.project; + this.location = aclPolicyRevisionName.location; + this.aclPolicy = aclPolicyRevisionName.aclPolicy; + this.revision = aclPolicyRevisionName.revision; + } + + public AclPolicyRevisionName build() { + return new AclPolicyRevisionName(this); + } + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyRevisionOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyRevisionOrBuilder.java new file mode 100644 index 000000000000..535fd1785117 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyRevisionOrBuilder.java @@ -0,0 +1,223 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +@com.google.protobuf.Generated +public interface AclPolicyRevisionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.AclPolicyRevision) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Identifier. The name of the ACL policy revision.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Identifier. The name of the ACL policy revision.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Output only. The revision number of the ACL policy revision.
          +   * 
          + * + * int64 revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revisionNumber. + */ + long getRevisionNumber(); + + /** + * + * + *
          +   * Output only. The snapshot of the ACL policy at the time of revision
          +   * creation.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + boolean hasSnapshot(); + + /** + * + * + *
          +   * Output only. The snapshot of the ACL policy at the time of revision
          +   * creation.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + com.google.cloud.redis.cluster.v1beta1.AclPolicy getSnapshot(); + + /** + * + * + *
          +   * Output only. The snapshot of the ACL policy at the time of revision
          +   * creation.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder getSnapshotOrBuilder(); + + /** + * + * + *
          +   * Output only. The timestamp that the revision was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
          +   * Output only. The timestamp that the revision was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
          +   * Output only. The timestamp that the revision was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. A list of clusters that are attached to this ACL policy
          +   * revision.
          +   * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the attachedClusters. + */ + java.util.List getAttachedClustersList(); + + /** + * + * + *
          +   * Output only. A list of clusters that are attached to this ACL policy
          +   * revision.
          +   * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of attachedClusters. + */ + int getAttachedClustersCount(); + + /** + * + * + *
          +   * Output only. A list of clusters that are attached to this ACL policy
          +   * revision.
          +   * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The attachedClusters at the given index. + */ + java.lang.String getAttachedClusters(int index); + + /** + * + * + *
          +   * Output only. A list of clusters that are attached to this ACL policy
          +   * revision.
          +   * 
          + * + * + * repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the attachedClusters at the given index. + */ + com.google.protobuf.ByteString getAttachedClustersBytes(int index); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyRevisionStatus.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyRevisionStatus.java new file mode 100644 index 000000000000..13d0081061aa --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyRevisionStatus.java @@ -0,0 +1,1305 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
          + * AclPolicyRevisionStatus stores the per-revision status for an attached
          + * cluster.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus} + */ +@com.google.protobuf.Generated +public final class AclPolicyRevisionStatus extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus) + AclPolicyRevisionStatusOrBuilder { + 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= */ "", + "AclPolicyRevisionStatus"); + } + + // Use AclPolicyRevisionStatus.newBuilder() to construct. + private AclPolicyRevisionStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AclPolicyRevisionStatus() { + aclPolicyRevision_ = ""; + state_ = 0; + errorMessage_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyRevisionStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyRevisionStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.class, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.Builder.class); + } + + /** + * + * + *
          +   * Enum indicating the status of this ACL policy revision on the cluster.
          +   * 
          + * + * Protobuf enum {@code google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Not set.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
          +     * The cluster is attempting to apply this revision.
          +     * 
          + * + * APPLYING = 1; + */ + APPLYING(1), + /** + * + * + *
          +     * The cluster has successfully applied this revision.
          +     * 
          + * + * APPLIED = 2; + */ + APPLIED(2), + /** + * + * + *
          +     * The cluster failed to apply this revision.
          +     * 
          + * + * FAILED = 3; + */ + FAILED(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
          +     * Not set.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
          +     * The cluster is attempting to apply this revision.
          +     * 
          + * + * APPLYING = 1; + */ + public static final int APPLYING_VALUE = 1; + + /** + * + * + *
          +     * The cluster has successfully applied this revision.
          +     * 
          + * + * APPLIED = 2; + */ + public static final int APPLIED_VALUE = 2; + + /** + * + * + *
          +     * The cluster failed to apply this revision.
          +     * 
          + * + * FAILED = 3; + */ + public static final int FAILED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return APPLYING; + case 2: + return APPLIED; + case 3: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.State) + } + + public static final int ACL_POLICY_REVISION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object aclPolicyRevision_ = ""; + + /** + * + * + *
          +   * Output only. The resource name of the ACL policy revision this status
          +   * refers to. Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The aclPolicyRevision. + */ + @java.lang.Override + public java.lang.String getAclPolicyRevision() { + java.lang.Object ref = aclPolicyRevision_; + 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(); + aclPolicyRevision_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. The resource name of the ACL policy revision this status
          +   * refers to. Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for aclPolicyRevision. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAclPolicyRevisionBytes() { + java.lang.Object ref = aclPolicyRevision_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aclPolicyRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACL_POLICY_REVISION_NUMBER_FIELD_NUMBER = 2; + private long aclPolicyRevisionNumber_ = 0L; + + /** + * + * + *
          +   * Output only. The revision number of the ACL policy revision this status
          +   * refers to.
          +   * 
          + * + * int64 acl_policy_revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The aclPolicyRevisionNumber. + */ + @java.lang.Override + public long getAclPolicyRevisionNumber() { + return aclPolicyRevisionNumber_; + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + + /** + * + * + *
          +   * Output only. AclPolicyRevision state.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
          +   * Output only. AclPolicyRevision state.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.State getState() { + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.State result = + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.State.forNumber(state_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.State.UNRECOGNIZED + : result; + } + + public static final int ERROR_MESSAGE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object errorMessage_ = ""; + + /** + * + * + *
          +   * Output only. Human-readable error message providing more details for FAILED
          +   * states.
          +   * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorMessage. + */ + @java.lang.Override + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + 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(); + errorMessage_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. Human-readable error message providing more details for FAILED
          +   * states.
          +   * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for errorMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(aclPolicyRevision_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, aclPolicyRevision_); + } + if (aclPolicyRevisionNumber_ != 0L) { + output.writeInt64(2, aclPolicyRevisionNumber_); + } + if (state_ + != com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, errorMessage_); + } + 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(aclPolicyRevision_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, aclPolicyRevision_); + } + if (aclPolicyRevisionNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, aclPolicyRevisionNumber_); + } + if (state_ + != com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, errorMessage_); + } + 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.redis.cluster.v1beta1.AclPolicyRevisionStatus)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus other = + (com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus) obj; + + if (!getAclPolicyRevision().equals(other.getAclPolicyRevision())) return false; + if (getAclPolicyRevisionNumber() != other.getAclPolicyRevisionNumber()) return false; + if (state_ != other.state_) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) 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) + ACL_POLICY_REVISION_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicyRevision().hashCode(); + hash = (37 * hash) + ACL_POLICY_REVISION_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAclPolicyRevisionNumber()); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus 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.redis.cluster.v1beta1.AclPolicyRevisionStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus 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.redis.cluster.v1beta1.AclPolicyRevisionStatus parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus 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.redis.cluster.v1beta1.AclPolicyRevisionStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus 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.redis.cluster.v1beta1.AclPolicyRevisionStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus 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.redis.cluster.v1beta1.AclPolicyRevisionStatus 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; + } + + /** + * + * + *
          +   * AclPolicyRevisionStatus stores the per-revision status for an attached
          +   * cluster.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus) + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyRevisionStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyRevisionStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.class, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + aclPolicyRevision_ = ""; + aclPolicyRevisionNumber_ = 0L; + state_ = 0; + errorMessage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyRevisionStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus build() { + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus buildPartial() { + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus result = + new com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.aclPolicyRevision_ = aclPolicyRevision_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.aclPolicyRevisionNumber_ = aclPolicyRevisionNumber_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.errorMessage_ = errorMessage_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.getDefaultInstance()) + return this; + if (!other.getAclPolicyRevision().isEmpty()) { + aclPolicyRevision_ = other.aclPolicyRevision_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getAclPolicyRevisionNumber() != 0L) { + setAclPolicyRevisionNumber(other.getAclPolicyRevisionNumber()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + bitField0_ |= 0x00000008; + 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: + { + aclPolicyRevision_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + aclPolicyRevisionNumber_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object aclPolicyRevision_ = ""; + + /** + * + * + *
          +     * Output only. The resource name of the ACL policy revision this status
          +     * refers to. Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The aclPolicyRevision. + */ + public java.lang.String getAclPolicyRevision() { + java.lang.Object ref = aclPolicyRevision_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + aclPolicyRevision_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the ACL policy revision this status
          +     * refers to. Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for aclPolicyRevision. + */ + public com.google.protobuf.ByteString getAclPolicyRevisionBytes() { + java.lang.Object ref = aclPolicyRevision_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aclPolicyRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the ACL policy revision this status
          +     * refers to. Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The aclPolicyRevision to set. + * @return This builder for chaining. + */ + public Builder setAclPolicyRevision(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + aclPolicyRevision_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the ACL policy revision this status
          +     * refers to. Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAclPolicyRevision() { + aclPolicyRevision_ = getDefaultInstance().getAclPolicyRevision(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the ACL policy revision this status
          +     * refers to. Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for aclPolicyRevision to set. + * @return This builder for chaining. + */ + public Builder setAclPolicyRevisionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + aclPolicyRevision_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long aclPolicyRevisionNumber_; + + /** + * + * + *
          +     * Output only. The revision number of the ACL policy revision this status
          +     * refers to.
          +     * 
          + * + * int64 acl_policy_revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The aclPolicyRevisionNumber. + */ + @java.lang.Override + public long getAclPolicyRevisionNumber() { + return aclPolicyRevisionNumber_; + } + + /** + * + * + *
          +     * Output only. The revision number of the ACL policy revision this status
          +     * refers to.
          +     * 
          + * + * int64 acl_policy_revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The aclPolicyRevisionNumber to set. + * @return This builder for chaining. + */ + public Builder setAclPolicyRevisionNumber(long value) { + + aclPolicyRevisionNumber_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The revision number of the ACL policy revision this status
          +     * refers to.
          +     * 
          + * + * int64 acl_policy_revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAclPolicyRevisionNumber() { + bitField0_ = (bitField0_ & ~0x00000002); + aclPolicyRevisionNumber_ = 0L; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
          +     * Output only. AclPolicyRevision state.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
          +     * Output only. AclPolicyRevision state.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. AclPolicyRevision state.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.State getState() { + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.State result = + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.State.forNumber(state_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
          +     * Output only. AclPolicyRevision state.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. AclPolicyRevision state.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object errorMessage_ = ""; + + /** + * + * + *
          +     * Output only. Human-readable error message providing more details for FAILED
          +     * states.
          +     * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorMessage. + */ + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. Human-readable error message providing more details for FAILED
          +     * states.
          +     * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for errorMessage. + */ + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. Human-readable error message providing more details for FAILED
          +     * states.
          +     * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + errorMessage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Human-readable error message providing more details for FAILED
          +     * states.
          +     * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearErrorMessage() { + errorMessage_ = getDefaultInstance().getErrorMessage(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Human-readable error message providing more details for FAILED
          +     * states.
          +     * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus) + private static final com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus(); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AclPolicyRevisionStatus 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.redis.cluster.v1beta1.AclPolicyRevisionStatus + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyRevisionStatusOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyRevisionStatusOrBuilder.java new file mode 100644 index 000000000000..da051c0b84ce --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclPolicyRevisionStatusOrBuilder.java @@ -0,0 +1,134 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +@com.google.protobuf.Generated +public interface AclPolicyRevisionStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Output only. The resource name of the ACL policy revision this status
          +   * refers to. Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The aclPolicyRevision. + */ + java.lang.String getAclPolicyRevision(); + + /** + * + * + *
          +   * Output only. The resource name of the ACL policy revision this status
          +   * refers to. Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for aclPolicyRevision. + */ + com.google.protobuf.ByteString getAclPolicyRevisionBytes(); + + /** + * + * + *
          +   * Output only. The revision number of the ACL policy revision this status
          +   * refers to.
          +   * 
          + * + * int64 acl_policy_revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The aclPolicyRevisionNumber. + */ + long getAclPolicyRevisionNumber(); + + /** + * + * + *
          +   * Output only. AclPolicyRevision state.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
          +   * Output only. AclPolicyRevision state.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.State getState(); + + /** + * + * + *
          +   * Output only. Human-readable error message providing more details for FAILED
          +   * states.
          +   * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorMessage. + */ + java.lang.String getErrorMessage(); + + /** + * + * + *
          +   * Output only. Human-readable error message providing more details for FAILED
          +   * states.
          +   * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for errorMessage. + */ + com.google.protobuf.ByteString getErrorMessageBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclRule.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclRule.java new file mode 100644 index 000000000000..188f8132e87e --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclRule.java @@ -0,0 +1,805 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
          + * A single ACL rule which defines the policy for a user.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.AclRule} + */ +@com.google.protobuf.Generated +public final class AclRule extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.AclRule) + AclRuleOrBuilder { + 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= */ "", + "AclRule"); + } + + // Use AclRule.newBuilder() to construct. + private AclRule(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AclRule() { + username_ = ""; + rule_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.AclRule.class, + com.google.cloud.redis.cluster.v1beta1.AclRule.Builder.class); + } + + public static final int USERNAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object username_ = ""; + + /** + * + * + *
          +   * Required. Specifies the IAM user or service account to be added to the ACL
          +   * policy. This username will be directly set on the Redis OSS.
          +   * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + @java.lang.Override + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. Specifies the IAM user or service account to be added to the ACL
          +   * policy. This username will be directly set on the Redis OSS.
          +   * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RULE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object rule_ = ""; + + /** + * + * + *
          +   * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +   * +@all" The format of the rule is defined by Redis OSS:
          +   * https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
          +   * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rule. + */ + @java.lang.Override + public java.lang.String getRule() { + java.lang.Object ref = rule_; + 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(); + rule_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +   * +@all" The format of the rule is defined by Redis OSS:
          +   * https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
          +   * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRuleBytes() { + java.lang.Object ref = rule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, username_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rule_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, rule_); + } + 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(username_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, username_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rule_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, rule_); + } + 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.redis.cluster.v1beta1.AclRule)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.AclRule other = + (com.google.cloud.redis.cluster.v1beta1.AclRule) obj; + + if (!getUsername().equals(other.getUsername())) return false; + if (!getRule().equals(other.getRule())) 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) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + RULE_FIELD_NUMBER; + hash = (53 * hash) + getRule().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.AclRule parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclRule 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.redis.cluster.v1beta1.AclRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclRule 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.redis.cluster.v1beta1.AclRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclRule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclRule 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.redis.cluster.v1beta1.AclRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclRule 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.redis.cluster.v1beta1.AclRule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclRule 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.redis.cluster.v1beta1.AclRule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * A single ACL rule which defines the policy for a user.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.AclRule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.AclRule) + com.google.cloud.redis.cluster.v1beta1.AclRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.AclRule.class, + com.google.cloud.redis.cluster.v1beta1.AclRule.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.AclRule.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + username_ = ""; + rule_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AclRule_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclRule getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.AclRule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclRule build() { + com.google.cloud.redis.cluster.v1beta1.AclRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclRule buildPartial() { + com.google.cloud.redis.cluster.v1beta1.AclRule result = + new com.google.cloud.redis.cluster.v1beta1.AclRule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1beta1.AclRule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.username_ = username_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rule_ = rule_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.AclRule) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.AclRule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.AclRule other) { + if (other == com.google.cloud.redis.cluster.v1beta1.AclRule.getDefaultInstance()) return this; + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRule().isEmpty()) { + rule_ = other.rule_; + bitField0_ |= 0x00000002; + 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: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + rule_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object username_ = ""; + + /** + * + * + *
          +     * Required. Specifies the IAM user or service account to be added to the ACL
          +     * policy. This username will be directly set on the Redis OSS.
          +     * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. Specifies the IAM user or service account to be added to the ACL
          +     * policy. This username will be directly set on the Redis OSS.
          +     * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. Specifies the IAM user or service account to be added to the ACL
          +     * policy. This username will be directly set on the Redis OSS.
          +     * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The username to set. + * @return This builder for chaining. + */ + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + username_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Specifies the IAM user or service account to be added to the ACL
          +     * policy. This username will be directly set on the Redis OSS.
          +     * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUsername() { + username_ = getDefaultInstance().getUsername(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Specifies the IAM user or service account to be added to the ACL
          +     * policy. This username will be directly set on the Redis OSS.
          +     * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for username to set. + * @return This builder for chaining. + */ + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object rule_ = ""; + + /** + * + * + *
          +     * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +     * +@all" The format of the rule is defined by Redis OSS:
          +     * https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
          +     * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rule. + */ + public java.lang.String getRule() { + java.lang.Object ref = rule_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rule_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +     * +@all" The format of the rule is defined by Redis OSS:
          +     * https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
          +     * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rule. + */ + public com.google.protobuf.ByteString getRuleBytes() { + java.lang.Object ref = rule_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +     * +@all" The format of the rule is defined by Redis OSS:
          +     * https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
          +     * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The rule to set. + * @return This builder for chaining. + */ + public Builder setRule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rule_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +     * +@all" The format of the rule is defined by Redis OSS:
          +     * https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
          +     * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRule() { + rule_ = getDefaultInstance().getRule(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +     * +@all" The format of the rule is defined by Redis OSS:
          +     * https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
          +     * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for rule to set. + * @return This builder for chaining. + */ + public Builder setRuleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rule_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.AclRule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.AclRule) + private static final com.google.cloud.redis.cluster.v1beta1.AclRule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.AclRule(); + } + + public static com.google.cloud.redis.cluster.v1beta1.AclRule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AclRule 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.redis.cluster.v1beta1.AclRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclRuleOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclRuleOrBuilder.java new file mode 100644 index 000000000000..14eb8f37576d --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AclRuleOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +@com.google.protobuf.Generated +public interface AclRuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.AclRule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Specifies the IAM user or service account to be added to the ACL
          +   * policy. This username will be directly set on the Redis OSS.
          +   * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + java.lang.String getUsername(); + + /** + * + * + *
          +   * Required. Specifies the IAM user or service account to be added to the ACL
          +   * policy. This username will be directly set on the Redis OSS.
          +   * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + com.google.protobuf.ByteString getUsernameBytes(); + + /** + * + * + *
          +   * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +   * +@all" The format of the rule is defined by Redis OSS:
          +   * https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
          +   * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rule. + */ + java.lang.String getRule(); + + /** + * + * + *
          +   * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +   * +@all" The format of the rule is defined by Redis OSS:
          +   * https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
          +   * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rule. + */ + com.google.protobuf.ByteString getRuleBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterProto.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterProto.java index 2fbe36b29530..931015c1987e 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterProto.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_redis_cluster_v1beta1_CreateClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1beta1_CreateClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_CreateAclPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_CreateAclPolicyRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1beta1_ListClustersRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -52,18 +56,50 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_redis_cluster_v1beta1_ListClustersResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1beta1_ListClustersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_ListAclPoliciesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_ListAclPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_ListAclPoliciesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_ListAclPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_ListAclPolicyRevisionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_ListAclPolicyRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_ListAclPolicyRevisionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_ListAclPolicyRevisionsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1beta1_UpdateClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1beta1_UpdateClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_UpdateAclPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_UpdateAclPolicyRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1beta1_GetClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1beta1_GetClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_GetAclPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_GetAclPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_GetAclPolicyRevisionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_GetAclPolicyRevisionRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1beta1_DeleteClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1beta1_DeleteClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_DeleteAclPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_DeleteAclPolicyRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1beta1_GetClusterCertificateAuthorityRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -128,6 +164,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_redis_cluster_v1beta1_Cluster_RedisConfigsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1beta1_Cluster_RedisConfigsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_AclPolicy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_AclPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyRevisionStatus_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyRevisionStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_ClusterAclPolicyAttachment_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_ClusterAclPolicyAttachment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyRevision_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyRevision_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_AclRule_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_AclRule_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -282,7 +342,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "cluster_id\030\002 \001(\tB\003\340A\002\022A\n" + "\007cluster\030\003" + " \001(\0132+.google.cloud.redis.cluster.v1beta1.ClusterB\003\340A\002\022\022\n\n" - + "request_id\030\004 \001(\t\"w\n" + + "request_id\030\004 \001(\t\"\325\001\n" + + "\026CreateAclPolicyRequest\0226\n" + + "\006parent\030\001 \001(\tB&\340A\002\372A" + + " \022\036redis.googleapis.com/AclPolicy\022\032\n\r" + + "acl_policy_id\030\002 \001(\tB\003\340A\002\022F\n\n" + + "acl_policy\030\003" + + " \001(\0132-.google.cloud.redis.cluster.v1beta1.AclPolicyB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"w\n" + "\023ListClustersRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022\021\n" @@ -291,30 +358,67 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024ListClustersResponse\022=\n" + "\010clusters\030\001 \003(\0132+.google.cloud.redis.cluster.v1beta1.Cluster\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" - + "\013unreachable\030\003 \003(\t\"\243\001\n" + + "\013unreachable\030\003 \003(\t\"\201\001\n" + + "\026ListAclPoliciesRequest\0226\n" + + "\006parent\030\001 \001(\tB&\340A\002\372A" + + " \022\036redis.googleapis.com/AclPolicy\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\221\001\n" + + "\027ListAclPoliciesResponse\022C\n" + + "\014acl_policies\030\001" + + " \003(\0132-.google.cloud.redis.cluster.v1beta1.AclPolicy\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\030\n" + + "\013unreachable\030\003 \003(\tB\003\340A\006\"\220\001\n" + + "\035ListAclPolicyRevisionsRequest\022>\n" + + "\006parent\030\001 \001(" + + "\tB.\340A\002\372A(\022&redis.googleapis.com/AclPolicyRevision\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\250\001\n" + + "\036ListAclPolicyRevisionsResponse\022S\n" + + "\024acl_policy_revisions\030\001" + + " \003(\01325.google.cloud.redis.cluster.v1beta1.AclPolicyRevision\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\030\n" + + "\013unreachable\030\003 \003(\tB\003\340A\006\"\243\001\n" + "\024UpdateClusterRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022A\n" - + "\007cluster\030\002 \001(\0132" - + "+.google.cloud.redis.cluster.v1beta1.ClusterB\003\340A\002\022\022\n\n" - + "request_id\030\003 \001(\t\"G\n" + + "\007cluster\030\002" + + " \001(\0132+.google.cloud.redis.cluster.v1beta1.ClusterB\003\340A\002\022\022\n\n" + + "request_id\030\003 \001(\t\"\267\001\n" + + "\026UpdateAclPolicyRequest\022F\n\n" + + "acl_policy\030\001" + + " \001(\0132-.google.cloud.redis.cluster.v1beta1.AclPolicyB\003\340A\002\0224\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"G\n" + "\021GetClusterRequest\0222\n" + "\004name\030\001 \001(\tB$\340A\002\372A\036\n" - + "\034redis.googleapis.com/Cluster\"^\n" + + "\034redis.googleapis.com/Cluster\"K\n" + + "\023GetAclPolicyRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036redis.googleapis.com/AclPolicy\"[\n" + + "\033GetAclPolicyRevisionRequest\022<\n" + + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + + "&redis.googleapis.com/AclPolicyRevision\"^\n" + "\024DeleteClusterRequest\0222\n" + "\004name\030\001 \001(\tB$\340A\002\372A\036\n" + "\034redis.googleapis.com/Cluster\022\022\n\n" - + "request_id\030\002 \001(\t\"h\n" + + "request_id\030\002 \001(\t\"\202\001\n" + + "\026DeleteAclPolicyRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036redis.googleapis.com/AclPolicy\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\021\n" + + "\004etag\030\003 \001(\tB\003\340A\001\"h\n" + "%GetClusterCertificateAuthorityRequest\022?\n" + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + ")redis.googleapis.com/CertificateAuthority\"\216\001\n" + "\034ListBackupCollectionsRequest\022=\n" - + "\006parent\030\001 \001(\tB-\340A\002\372A" - + "\'\022%redis.googleapis.com/BackupCollection\022\026\n" + + "\006parent\030\001 \001(" + + "\tB-\340A\002\372A\'\022%redis.googleapis.com/BackupCollection\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"\237\001\n" + "\035ListBackupCollectionsResponse\022P\n" - + "\022backup_collections\030\001 \003(\01324.google" - + ".cloud.redis.cluster.v1beta1.BackupCollection\022\027\n" + + "\022backup_collections\030\001" + + " \003(\01324.google.cloud.redis.cluster.v1beta1.BackupCollection\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"Y\n" + "\032GetBackupCollectionRequest\022;\n" @@ -345,75 +449,78 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB$\340A\002\372A\036\n" + "\034redis.googleapis.com/Cluster\022+\n" + "\003ttl\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\033\n" - + "\tbackup_id\030\003 \001(\tB\003\340A\001H\000\210\001\001B\014\n" - + "\n" - + "_backup_id\"\260\032\n" + + "\tbackup_id\030\003 \001(\tB\003\340A\001H\000\210\001\001B\014\n\n" + + "_backup_id\"\275\033\n" + "\007Cluster\022V\n\n" - + "gcs_source\030\" " - + "\001(\0132;.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSourceB\003\340A\001H\000\022e\n" - + "\025managed_backup_source\030# \001(\0132?.google.cloud.re" - + "dis.cluster.v1beta1.Cluster.ManagedBackupSourceB\003\340A\001H\000\022\024\n" + + "gcs_source\030\" \001(\0132;.google.clou" + + "d.redis.cluster.v1beta1.Cluster.GcsBackupSourceB\003\340A\001H\000\022e\n" + + "\025managed_backup_source\030#" + + " \001(\0132?.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSourceB\003\340A\001H\000\022\024\n" + "\004name\030\001 \001(\tB\006\340A\002\340A\010\0224\n" + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022E\n" - + "\005state\030\004 \001(\01621.google.cloud" - + ".redis.cluster.v1beta1.Cluster.StateB\003\340A\003\022\020\n" + + "\005state\030\004" + + " \001(\01621.google.cloud.redis.cluster.v1beta1.Cluster.StateB\003\340A\003\022\020\n" + "\003uid\030\005 \001(\tB\003\340A\003\022\037\n\r" + "replica_count\030\010 \001(\005B\003\340A\001H\001\210\001\001\022V\n" - + "\022authorization_mode\030\013 \001(\016" - + "25.google.cloud.redis.cluster.v1beta1.AuthorizationModeB\003\340A\001\022_\n" - + "\027transit_encryption_mode\030\014" - + " \001(\01629.google.cloud.redis.cluster.v1beta1.TransitEncryptionModeB\003\340A\001\022\031\n" + + "\022authorization_mode\030\013 \001(\01625.google.cloud.r" + + "edis.cluster.v1beta1.AuthorizationModeB\003\340A\001\022_\n" + + "\027transit_encryption_mode\030\014 \001(\01629.g" + + "oogle.cloud.redis.cluster.v1beta1.TransitEncryptionModeB\003\340A\001\022\031\n" + "\007size_gb\030\r" + " \001(\005B\003\340A\003H\002\210\001\001\022\035\n" + "\013shard_count\030\016 \001(\005B\003\340A\001H\003\210\001\001\022G\n" - + "\013psc_configs\030\017 \003(\0132-.g" - + "oogle.cloud.redis.cluster.v1beta1.PscConfigB\003\340A\001\022W\n" - + "\023discovery_endpoints\030\020 \003(\01325." - + "google.cloud.redis.cluster.v1beta1.DiscoveryEndpointB\003\340A\003\022O\n" - + "\017psc_connections\030\021 \003" - + "(\01321.google.cloud.redis.cluster.v1beta1.PscConnectionB\003\340A\003\022N\n\n" - + "state_info\030\022 \001(\01325" - + ".google.cloud.redis.cluster.v1beta1.Cluster.StateInfoB\003\340A\003\022D\n" - + "\tnode_type\030\023 \001(\0162,." - + "google.cloud.redis.cluster.v1beta1.NodeTypeB\003\340A\001\022]\n" - + "\022persistence_config\030\024 \001(\0132<.g" - + "oogle.cloud.redis.cluster.v1beta1.ClusterPersistenceConfigB\003\340A\001\022Y\n\r" - + "redis_configs\030\025" - + " \003(\0132=.google.cloud.redis.cluster.v1beta1.Cluster.RedisConfigsEntryB\003\340A\001\022!\n" + + "\013psc_configs\030\017" + + " \003(\0132-.google.cloud.redis.cluster.v1beta1.PscConfigB\003\340A\001\022W\n" + + "\023discovery_endpoints\030\020 \003(\01325.google.cloud.redi" + + "s.cluster.v1beta1.DiscoveryEndpointB\003\340A\003\022O\n" + + "\017psc_connections\030\021 \003(\01321.google.cloud" + + ".redis.cluster.v1beta1.PscConnectionB\003\340A\003\022N\n\n" + + "state_info\030\022 \001(\01325.google.cloud.red" + + "is.cluster.v1beta1.Cluster.StateInfoB\003\340A\003\022D\n" + + "\tnode_type\030\023" + + " \001(\0162,.google.cloud.redis.cluster.v1beta1.NodeTypeB\003\340A\001\022]\n" + + "\022persistence_config\030\024 \001(\0132<.google.cloud.redis" + + ".cluster.v1beta1.ClusterPersistenceConfigB\003\340A\001\022Y\n\r" + + "redis_configs\030\025 \003(\0132=.google.c" + + "loud.redis.cluster.v1beta1.Cluster.RedisConfigsEntryB\003\340A\001\022!\n" + "\017precise_size_gb\030\026 \001(\001B\003\340A\003H\004\210\001\001\022a\n" - + "\030zone_distribution_config\030\027 \001(\0132:.google.cloud.r" - + "edis.cluster.v1beta1.ZoneDistributionConfigB\003\340A\001\022p\n" - + " cross_cluster_replication_config\030\030 \001(\0132A.google.cloud.redis.cluster." - + "v1beta1.CrossClusterReplicationConfigB\003\340A\001\022-\n" + + "\030zone_distribution_config\030\027" + + " \001(\0132:.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfigB\003\340A\001\022p\n" + + " cross_cluster_replication_config\030\030 \001(\0132A.goog" + + "le.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfigB\003\340A\001\022-\n" + "\033deletion_protection_enabled\030\031" + " \001(\010B\003\340A\001H\005\210\001\001\022b\n" - + "\022maintenance_policy\030\032 \001(\0132<." - + "google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicyB\003\340A\001H\006\210\001\001\022f\n" - + "\024maintenance_schedule\030\033 \001(\0132>.google.cloud.redis" - + ".cluster.v1beta1.ClusterMaintenanceScheduleB\003\340A\003H\007\210\001\001\022^\n" - + "\027psc_service_attachments\030\036" - + " \003(\01328.google.cloud.redis.cluster.v1beta1.PscServiceAttachmentB\003\340A\003\022S\n" - + "\021cluster_endpoints\030$" - + " \003(\01323.google.cloud.redis.cluster.v1beta1.ClusterEndpointB\003\340A\001\022P\n" + + "\022maintenance_policy\030\032 \001(\0132<.google.cloud.redi" + + "s.cluster.v1beta1.ClusterMaintenancePolicyB\003\340A\001H\006\210\001\001\022f\n" + + "\024maintenance_schedule\030\033 \001" + + "(\0132>.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceScheduleB\003\340A\003H\007\210\001\001\022^\n" + + "\027psc_service_attachments\030\036 \003(\01328.google.c" + + "loud.redis.cluster.v1beta1.PscServiceAttachmentB\003\340A\003\022S\n" + + "\021cluster_endpoints\030$ \003(\0132" + + "3.google.cloud.redis.cluster.v1beta1.ClusterEndpointB\003\340A\001\022P\n" + "\021backup_collection\030\' \001(\tB0\340A\001\340A\003\372A\'\n" + "%redis.googleapis.com/BackupCollectionH\010\210\001\001\022?\n" + "\007kms_key\030( \001(\tB)\340A\001\372A#\n" + "!cloudkms.googleapis.com/CryptoKeyH\t\210\001\001\022_\n" - + "\027automated_backup_config\030* \001(\01329.google.cloud.redis.clus" - + "ter.v1beta1.AutomatedBackupConfigB\003\340A\001\022P\n" - + "\017encryption_info\030+ \001(\01322.google.cloud.r" - + "edis.cluster.v1beta1.EncryptionInfoB\003\340A\003\022:\n" + + "\027automated_backup_config\030* \001(\01329." + + "google.cloud.redis.cluster.v1beta1.AutomatedBackupConfigB\003\340A\001\022P\n" + + "\017encryption_info\030+" + + " \001(\01322.google.cloud.redis.cluster.v1beta1.EncryptionInfoB\003\340A\003\022:\n" + "(async_cluster_endpoints_deletion_enabled\030, \001(\010B\003\340A\001H\n" + "\210\001\001\022R\n" - + "\016server_ca_mode\0305" - + " \001(\01620.google.cloud.redis.cluster.v1beta1.ServerCaModeB\003\340A\001H\013\210\001\001\022D\n" + + "\016server_ca_mode\0305 \001(\01620.google.clo" + + "ud.redis.cluster.v1beta1.ServerCaModeB\003\340A\001H\013\210\001\001\022D\n" + "\016server_ca_pool\0306 \001(\tB\'\340A\001\372A!\n" + "\037privateca.googleapis.com/CaPoolH\014\210\001\001\022.\n" + "\031rotate_server_certificate\0307 \001(\010B\006\340A\001\340A\004H\r" - + "\210\001\001\032\357\001\n" + + "\210\001\001\022:\n\n" + + "acl_policy\0308 \001(\tB&\340A\001\372A \n" + + "\036redis.googleapis.com/AclPolicy\022O\n" + + "\017acl_policy_info\030:" + + " \001(\01321.google.cloud.redis.cluster.v1beta1.AclPolicyInfoB\003\340A\003\032\357\001\n" + "\tStateInfo\022W\n" - + "\013update_info\030\001 \001(\0132@.google.cloud.redis.c" - + "luster.v1beta1.Cluster.StateInfo.UpdateInfoH\000\032\200\001\n\n" + + "\013update_info\030\001 \001(\0132@.google.cloud.red" + + "is.cluster.v1beta1.Cluster.StateInfo.UpdateInfoH\000\032\200\001\n\n" + "UpdateInfo\022\037\n" + "\022target_shard_count\030\001 \001(\005H\000\210\001\001\022!\n" + "\024target_replica_count\030\002 \001(\005H\001\210\001\001B\025\n" @@ -433,8 +540,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006ACTIVE\020\002\022\014\n" + "\010UPDATING\020\003\022\014\n" + "\010DELETING\020\004:p\352Am\n" - + "\034redis.googleapis.com/Cluster\022:projects/{project}/locations/{location" - + "}/clusters/{cluster}*\010clusters2\007clusterB\020\n" + + "\034redis.googleapis.com/Cluster\022:projects/{project}/locations/{loca" + + "tion}/clusters/{cluster}*\010clusters2\007clusterB\020\n" + "\016import_sourcesB\020\n" + "\016_replica_countB\n\n" + "\010_size_gbB\016\n" @@ -448,12 +555,71 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ")_async_cluster_endpoints_deletion_enabledB\021\n" + "\017_server_ca_modeB\021\n" + "\017_server_ca_poolB\034\n" - + "\032_rotate_server_certificate\"\217\004\n" + + "\032_rotate_server_certificate\"\301\002\n\r" + + "AclPolicyInfo\022B\n" + + "\022applied_acl_policy\030\001 \001(\tB&\340A\003\372A \n" + + "\036redis.googleapis.com/AclPolicy\022S\n" + + "\033applied_acl_policy_revision\030\002 \001(\tB.\340A\003\372A(\n" + + "&redis.googleapis.com/AclPolicyRevision\022/\n" + + "\"applied_acl_policy_revision_number\030\003 \001(\003B\003\340A\003\022f\n" + + "\034acl_policy_revision_statuses\030\004 \003(\0132;.google.cloud.redis.cluste" + + "r.v1beta1.AclPolicyRevisionStatusB\003\340A\003\"\351\004\n" + + "\tAclPolicy\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022?\n" + + "\005rules\030\002" + + " \003(\0132+.google.cloud.redis.cluster.v1beta1.AclRuleB\003\340A\002\022G\n" + + "\005state\030\003 \001(\01623.google" + + ".cloud.redis.cluster.v1beta1.AclPolicy.StateB\003\340A\003\022\026\n" + + "\004etag\030\005 \001(\tB\003\340A\003H\000\210\001\001\022k\n" + + "\036cluster_acl_policy_attachments\030\006 \003(\0132>.goog" + + "le.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachmentB\003\340A\003\0224\n" + + "\013create_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"F\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\014\n" + + "\010UPDATING\020\002\022\014\n" + + "\010DELETING\020\003:}\352Az\n" + + "\036redis.googleapis.com/AclPolicy\022" + + "@projects/{project}/locations/{location}/aclPolicies/{acl_policy}*\013aclPolicies2" + + "\taclPolicyB\007\n" + + "\005_etag\"\311\002\n" + + "\027AclPolicyRevisionStatus\022K\n" + + "\023acl_policy_revision\030\001 \001(\tB.\340A\003\372A(\n" + + "&redis.googleapis.com/AclPolicyRevision\022\'\n" + + "\032acl_policy_revision_number\030\002 \001(\003B\003\340A\003\022U\n" + + "\005state\030\003 \001(\0162A.google.cloud.redis" + + ".cluster.v1beta1.AclPolicyRevisionStatus.StateB\003\340A\003\022\032\n\r" + + "error_message\030\004 \001(\tB\003\340A\003\"E\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\014\n" + + "\010APPLYING\020\001\022\013\n" + + "\007APPLIED\020\002\022\n\n" + + "\006FAILED\020\003\"\273\001\n" + + "\032ClusterAclPolicyAttachment\0225\n" + + "\007cluster\030\001 \001(\tB$\340A\003\372A\036\n" + + "\034redis.googleapis.com/Cluster\022f\n" + + "\034acl_policy_revision_statuses\030\002 \003(\0132;.goo" + + "gle.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatusB\003\340A\003\"\256\003\n" + + "\021AclPolicyRevision\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\034\n" + + "\017revision_number\030\002 \001(\003B\003\340A\003\022D\n" + + "\010snapshot\030\003 \001(\0132-.google.c" + + "loud.redis.cluster.v1beta1.AclPolicyB\003\340A\003\0224\n" + + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022?\n" + + "\021attached_clusters\030\005 \003(\tB$\340A\003\372A\036\n" + + "\034redis.googleapis.com/Cluster:\252\001\352A\246\001\n" + + "&redis.googleapis.com/AclPolicyRevision\022Uprojects/{project}/locations/{l" + + "ocation}/aclPolicies/{acl_policy}/revisi" + + "ons/{revision}*\022aclPolicyRevisions2\021aclPolicyRevision\"3\n" + + "\007AclRule\022\025\n" + + "\010username\030\001 \001(\tB\003\340A\002\022\021\n" + + "\004rule\030\002 \001(\tB\003\340A\002\"\217\004\n" + "\025AutomatedBackupConfig\022y\n" - + "\030fixed_frequency_schedule\030\002 \001(\0132P.google.cloud.redis.cluster." - + "v1beta1.AutomatedBackupConfig.FixedFrequencyScheduleB\003\340A\001H\000\022q\n" - + "\025automated_backup_mode\030\001 \001(\0162M.google.cloud.redis.cluster." - + "v1beta1.AutomatedBackupConfig.AutomatedBackupModeB\003\340A\001\0226\n" + + "\030fixed_frequency_schedule\030\002 \001(\0132P.google.cloud.redis.cluster.v1be" + + "ta1.AutomatedBackupConfig.FixedFrequencyScheduleB\003\340A\001H\000\022q\n" + + "\025automated_backup_mode\030\001 \001(\0162M.google.cloud.redis.cluster.v1be" + + "ta1.AutomatedBackupConfig.AutomatedBackupModeB\003\340A\001\0226\n" + "\tretention\030\003" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001H\001\210\001\001\032]\n" + "\026FixedFrequencySchedule\0224\n\n" @@ -475,9 +641,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!cloudkms.googleapis.com/CryptoKey\022\030\n" + "\003uid\030\006 \001(" + "\tB\013\340A\003\342\214\317\327\010\002\010\001:\237\001\352A\233\001\n" - + "%redis.googleapis.com/BackupCollection\022Mprojects/{project" - + "}/locations/{location}/backupCollections" - + "/{backup_collection}*\021backupCollections2\020backupCollection\"\233\010\n" + + "%redis.googleapis.com/BackupCollection\022Mprojects/{project}/lo" + + "cations/{location}/backupCollections/{ba" + + "ckup_collection}*\021backupCollections2\020backupCollection\"\233\010\n" + "\006Backup\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0225\n" @@ -489,19 +655,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013expire_time\030\006" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\033\n" + "\016engine_version\030\007 \001(\tB\003\340A\003\022I\n" - + "\014backup_files\030\010" - + " \003(\0132..google.cloud.redis.cluster.v1beta1.BackupFileB\003\340A\003\022D\n" - + "\tnode_type\030\t \001(\0162," - + ".google.cloud.redis.cluster.v1beta1.NodeTypeB\003\340A\003\022\032\n\r" + + "\014backup_files\030\010 \003" + + "(\0132..google.cloud.redis.cluster.v1beta1.BackupFileB\003\340A\003\022D\n" + + "\tnode_type\030\t \001(\0162,.goo" + + "gle.cloud.redis.cluster.v1beta1.NodeTypeB\003\340A\003\022\032\n\r" + "replica_count\030\n" + " \001(\005B\003\340A\003\022\030\n" + "\013shard_count\030\013 \001(\005B\003\340A\003\022O\n" - + "\013backup_type\030\014" - + " \001(\01625.google.cloud.redis.cluster.v1beta1.Backup.BackupTypeB\003\340A\003\022D\n" + + "\013backup_type\030\014 \001(\016" + + "25.google.cloud.redis.cluster.v1beta1.Backup.BackupTypeB\003\340A\003\022D\n" + "\005state\030\r" + " \001(\01620.google.cloud.redis.cluster.v1beta1.Backup.StateB\003\340A\003\022P\n" - + "\017encryption_info\030\016 \001(\0132" - + "2.google.cloud.redis.cluster.v1beta1.EncryptionInfoB\003\340A\003\022\030\n" + + "\017encryption_info\030\016 \001(\01322.go" + + "ogle.cloud.redis.cluster.v1beta1.EncryptionInfoB\003\340A\003\022\030\n" + "\003uid\030\017 \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\"G\n\n" + "BackupType\022\033\n" + "\027BACKUP_TYPE_UNSPECIFIED\020\000\022\r\n" @@ -513,8 +679,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006ACTIVE\020\002\022\014\n" + "\010DELETING\020\003\022\r\n" + "\tSUSPENDED\020\004:\222\001\352A\216\001\n" - + "\033redis.googleapis.com/Backup\022^projects/{project}/locations/{location}/" - + "backupCollections/{backup_collection}/backups/{backup}*\007backups2\006backup\"s\n\n" + + "\033redis.googleapis.com/Backup\022^projects/{project}/locations/{location}/back" + + "upCollections/{backup_collection}/backups/{backup}*\007backups2\006backup\"s\n\n" + "BackupFile\022\026\n" + "\tfile_name\030\001 \001(\tB\003\340A\003\022\027\n\n" + "size_bytes\030\002 \001(\003B\003\340A\003\0224\n" @@ -522,28 +688,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\211\001\n" + "\024PscServiceAttachment\022\037\n" + "\022service_attachment\030\001 \001(\tB\003\340A\003\022P\n" - + "\017connection_type\030\003 \001(\01622.google" - + ".cloud.redis.cluster.v1beta1.ConnectionTypeB\003\340A\003\"\222\007\n" + + "\017connection_type\030\003 \001(\01622.google.clo" + + "ud.redis.cluster.v1beta1.ConnectionTypeB\003\340A\003\"\222\007\n" + "\035CrossClusterReplicationConfig\022c\n" - + "\014cluster_role\030\001 \001(\0162M.google.cloud." - + "redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole\022h\n" - + "\017primary_cluster\030\002 \001(\0132O.google.cloud.redis.cluster.v1" - + "beta1.CrossClusterReplicationConfig.RemoteCluster\022k\n" - + "\022secondary_clusters\030\003 \003(\0132O.google.cloud.redis.cluster.v1beta1.Cross" - + "ClusterReplicationConfig.RemoteCluster\0224\n" + + "\014cluster_role\030\001 \001(\0162M.google.cloud.redi" + + "s.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole\022h\n" + + "\017primary_cluster\030\002 \001(\0132O.google.cloud.redis.cluster.v1beta" + + "1.CrossClusterReplicationConfig.RemoteCluster\022k\n" + + "\022secondary_clusters\030\003 \003(\0132O.goog" + + "le.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster\0224\n" + "\013update_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022e\n\n" - + "membership\030\005 \001(\0132L.googl" - + "e.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.MembershipB\003\340A\003\032U\n\r" + + "membership\030\005 \001(\0132L.google.cl" + + "oud.redis.cluster.v1beta1.CrossClusterReplicationConfig.MembershipB\003\340A\003\032U\n\r" + "RemoteCluster\0222\n" + "\007cluster\030\001 \001(\tB!\372A\036\n" + "\034redis.googleapis.com/Cluster\022\020\n" + "\003uid\030\002 \001(\tB\003\340A\003\032\355\001\n\n" + "Membership\022m\n" - + "\017primary_cluster\030\001 \001(\0132O.google.cloud.redis.cluster.v1beta1." - + "CrossClusterReplicationConfig.RemoteClusterB\003\340A\003\022p\n" - + "\022secondary_clusters\030\002 \003(\0132O.google.cloud.redis.cluster.v1beta1.CrossC" - + "lusterReplicationConfig.RemoteClusterB\003\340A\003\"Q\n" + + "\017primary_cluster\030\001 \001(\0132O.google.cloud.redis.cluster.v1beta1.Cros" + + "sClusterReplicationConfig.RemoteClusterB\003\340A\003\022p\n" + + "\022secondary_clusters\030\002 \003(\0132O.googl" + + "e.cloud.redis.cluster.v1beta1.CrossClust" + + "erReplicationConfig.RemoteClusterB\003\340A\003\"Q\n" + "\013ClusterRole\022\034\n" + "\030CLUSTER_ROLE_UNSPECIFIED\020\000\022\010\n" + "\004NONE\020\001\022\013\n" @@ -552,8 +719,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030ClusterMaintenancePolicy\0224\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022e\n" - + "\031weekly_maintenance_window\030\003 \003(\0132B.google.cloud.redis.c" - + "luster.v1beta1.ClusterWeeklyMaintenanceWindow\"q\n" + + "\031weekly_maintenance_window\030\003 \003(\0132B.google.cloud.redis.clust" + + "er.v1beta1.ClusterWeeklyMaintenanceWindow\"q\n" + "\036ClusterWeeklyMaintenanceWindow\022#\n" + "\003day\030\001 \001(\0162\026.google.type.DayOfWeek\022*\n\n" + "start_time\030\002 \001(\0132\026.google.type.TimeOfDay\"\204\001\n" @@ -582,8 +749,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017connection_type\030\n" + " \001(\01622.google.cloud.redis.cluster.v1beta1.ConnectionTypeB\003\340A\003\"\\\n" + "\017ClusterEndpoint\022I\n" - + "\013connections\030\001 \003(\01324.googl" - + "e.cloud.redis.cluster.v1beta1.ConnectionDetail\"\303\001\n" + + "\013connections\030\001 \003(\01324.google.cl" + + "oud.redis.cluster.v1beta1.ConnectionDetail\"\303\001\n" + "\020ConnectionDetail\022T\n" + "\023psc_auto_connection\030\001" + " \001(\01325.google.cloud.redis.cluster.v1beta1.PscAutoConnectionH\000\022K\n" @@ -600,22 +767,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036compute.googleapis.com/Network\022L\n" + "\022service_attachment\030\006 \001(\tB0\340A\003\372A*\n" + "(compute.googleapis.com/ServiceAttachment\022[\n" - + "\025psc_connection_status\030\010 \001(\01627.google" - + ".cloud.redis.cluster.v1beta1.PscConnectionStatusB\003\340A\003\022P\n" - + "\017connection_type\030\t \001(\01622" - + ".google.cloud.redis.cluster.v1beta1.ConnectionTypeB\003\340A\003\"\210\005\n" + + "\025psc_connection_status\030\010 \001(\01627.google.clo" + + "ud.redis.cluster.v1beta1.PscConnectionStatusB\003\340A\003\022P\n" + + "\017connection_type\030\t \001(\01622.goo" + + "gle.cloud.redis.cluster.v1beta1.ConnectionTypeB\003\340A\003\"\210\005\n" + "\"SharedRegionalCertificateAuthority\022\207\001\n" - + "\021managed_server_ca\030\002 \001(\0132j.google.cloud.redis.cluster.v1beta1." - + "SharedRegionalCertificateAuthority.RegionalManagedCertificateAuthorityH\000\022\021\n" + + "\021managed_server_ca\030\002 \001(\0132j.google.cloud.redis.cluster.v1beta1.Shar" + + "edRegionalCertificateAuthority.RegionalManagedCertificateAuthorityH\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\032\341\001\n" + "#RegionalManagedCertificateAuthority\022\216\001\n" - + "\010ca_certs\030\001 \003(\0132|.google.cloud.redis.cluster.v1beta1.SharedRegion" - + "alCertificateAuthority.RegionalManagedCertificateAuthority.RegionalCertChain\032)\n" + + "\010ca_certs\030\001 \003(\0132|.google.cloud.redis.cluster.v1beta1.SharedRegionalCe" + + "rtificateAuthority.RegionalManagedCertificateAuthority.RegionalCertChain\032)\n" + "\021RegionalCertChain\022\024\n" + "\014certificates\030\001 \003(\t:\323\001\352A\317\001\n" - + "7redis.googleapis.com/SharedRegionalCertificateAuthority\022Jprojects/{proje" - + "ct}/locations/{location}/sharedRegionalCertificateAuthority*$sharedRegionalCerti" - + "ficateAuthorities2\"sharedRegionalCertificateAuthorityB\013\n" + + "7redis.googleapis.com/SharedRegionalCertificateAuthority\022Jprojects/{project}/" + + "locations/{location}/sharedRegionalCertificateAuthority*$sharedRegionalCertifica" + + "teAuthorities2\"sharedRegionalCertificateAuthorityB\013\n" + "\tserver_ca\"}\n" + ",GetSharedRegionalCertificateAuthorityRequest\022M\n" + "\004name\030\001 \001(\tB?\340A\002\372A9\n" @@ -629,28 +796,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n" + "\013api_version\030\007 \001(\tB\003\340A\003\"\217\004\n" + "\024CertificateAuthority\022q\n" - + "\021managed_server_ca\030\001 \001(\0132T.google.cloud." - + "redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthorityH\000\022\021\n" + + "\021managed_server_ca\030\001 \001(\0132T.google.cloud.redi" + + "s.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthorityH\000\022\021\n" + "\004name\030\002 \001(\tB\003\340A\010\032\262\001\n" + "\033ManagedCertificateAuthority\022p\n" - + "\010ca_certs\030\001 \003(\0132^.google.cloud.red" - + "is.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain\032!\n" + + "\010ca_certs\030\001 \003(\0132^.google.cloud.redis.c" + + "luster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain\032!\n" + "\tCertChain\022\024\n" + "\014certificates\030\001 \003(\t:\256\001\352A\252\001\n" - + ")redis.googleapis.com/CertificateAuthority\022Oprojects/{project}/locations/{locati" - + "on}/clusters/{cluster}/certificateAuthor" - + "ity*\026certificateAuthorities2\024certificateAuthorityB\013\n" + + ")redis.googleapis.com/CertificateAuthority\022O" + + "projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority*" + + "\026certificateAuthorities2\024certificateAuthorityB\013\n" + "\tserver_ca\"\240\007\n" + "\030ClusterPersistenceConfig\022_\n" - + "\004mode\030\001 \001(\0162L.google.cloud" - + ".redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceModeB\003\340A\001\022_\n\n" - + "rdb_config\030\002 \001(\0132F.google.cloud.redis.cluster.v1" - + "beta1.ClusterPersistenceConfig.RDBConfigB\003\340A\001\022_\n\n" - + "aof_config\030\003 \001(\0132F.google.cloud" - + ".redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfigB\003\340A\001\032\277\002\n" + + "\004mode\030\001 \001(\0162L.google.cloud.redis.cluster.v1beta1.ClusterPersistenceCon", + "fig.PersistenceModeB\003\340A\001\022_\n\n" + + "rdb_config\030\002 \001(\0132F.google.cloud.redis.cluster.v1beta" + + "1.ClusterPersistenceConfig.RDBConfigB\003\340A\001\022_\n\n" + + "aof_config\030\003 \001(\0132F.google.cloud.red" + + "is.cluster.v1beta1.ClusterPersistenceConfig.AOFConfigB\003\340A\001\032\277\002\n" + "\tRDBConfig\022w\n" - + "\023rdb_snapshot_period\030\001 \001(\0162U.google.cloud" - + ".redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriodB\003\340A\001\022@\n" + + "\023rdb_snapshot_period\030\001 \001(\0162U.google.cloud.red" + + "is.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriodB\003\340A\001\022@\n" + "\027rdb_snapshot_start_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"w\n" + "\016SnapshotPeriod\022\037\n" @@ -660,8 +827,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014TWELVE_HOURS\020\003\022\025\n" + "\021TWENTY_FOUR_HOURS\020\004\032\311\001\n" + "\tAOFConfig\022m\n" - + "\014append_fsync\030\001 \001(\0162R.google.cloud.redi" - + "s.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsyncB\003\340A\001\"M\n" + + "\014append_fsync\030\001 \001(\0162R.google.cloud.redis.cl" + + "uster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsyncB\003\340A\001\"M\n" + "\013AppendFsync\022\034\n" + "\030APPEND_FSYNC_UNSPECIFIED\020\000\022\006\n" + "\002NO\020\001\022\014\n" @@ -673,8 +840,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003RDB\020\002\022\007\n" + "\003AOF\020\003\"\360\001\n" + "\026ZoneDistributionConfig\022b\n" - + "\004mode\030\001 \001(\0162O.google.cloud.redis.cluster.v1beta1.ZoneDist" - + "ributionConfig.ZoneDistributionModeB\003\340A\001\022\021\n" + + "\004mode\030\001 \001(\0162O.google." + + "cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionModeB\003\340A\001\022\021\n" + "\004zone\030\002 \001(\tB\003\340A\001\"_\n" + "\024ZoneDistributionMode\022&\n" + "\"ZONE_DISTRIBUTION_MODE_UNSPECIFIED\020\000\022\016\n\n" @@ -683,20 +850,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#RescheduleClusterMaintenanceRequest\0222\n" + "\004name\030\001 \001(\tB$\340A\002\372A\036\n" + "\034redis.googleapis.com/Cluster\022t\n" - + "\017reschedule_type\030\002 \001(\0162V.google.cloud.redis.cluster.v1beta1.Reschedul" - + "eClusterMaintenanceRequest.RescheduleTypeB\003\340A\002\0226\n\r" + + "\017reschedule_type\030\002 \001(\0162V.google.c" + + "loud.redis.cluster.v1beta1.RescheduleClu" + + "sterMaintenanceRequest.RescheduleTypeB\003\340A\002\0226\n\r" + "schedule_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"S\n" + "\016RescheduleType\022\037\n" + "\033RESCHEDULE_TYPE_UNSPECIFIED\020\000\022\r\n" + "\tIMMEDIATE\020\001\022\021\n\r" + "SPECIFIC_TIME\020\003\"\204\005\n" + "\016EncryptionInfo\022U\n" - + "\017encryption_type\030\001 \001(\01627.google" - + ".cloud.redis.cluster.v1beta1.EncryptionInfo.TypeB\003\340A\003\022J\n" + + "\017encryption_type\030\001 \001(\01627.google.clo" + + "ud.redis.cluster.v1beta1.EncryptionInfo.TypeB\003\340A\003\022J\n" + "\020kms_key_versions\030\002 \003(\tB0\340A\003\372A*\n" + "(cloudkms.googleapis.com/CryptoKeyVersion\022b\n" - + "\025kms_key_primary_state\030\003 \001(\016" - + "2>.google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyStateB\003\340A\003\0229\n" + + "\025kms_key_primary_state\030\003 \001(\0162>.g" + + "oogle.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyStateB\003\340A\003\0229\n" + "\020last_update_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\\\n" + "\004Type\022\024\n" @@ -743,117 +911,123 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033CONNECTION_TYPE_UNSPECIFIED\020\000\022\035\n" + "\031CONNECTION_TYPE_DISCOVERY\020\001\022\033\n" + "\027CONNECTION_TYPE_PRIMARY\020\002\022\032\n" - + "\026CONNECTION_TYPE_READER\020\0032\342\033\n" + + "\026CONNECTION_TYPE_READER\020\0032\226(\n" + "\021CloudRedisCluster\022\305\001\n" - + "\014ListClusters\0227.google.cloud.redis.clust" - + "er.v1beta1.ListClustersRequest\0328.google.cloud.redis.cluster.v1beta1.ListClusters" - + "Response\"B\332A\006parent\202\323\344\223\0023\0221/v1beta1/{parent=projects/*/locations/*}/clusters\022\262\001\n" - + "\n" - + "GetCluster\0225.google.cloud.redis.cluster.v1beta1.GetClusterRequest\032+.google.clou" - + "d.redis.cluster.v1beta1.Cluster\"@\332A\004name" - + "\202\323\344\223\0023\0221/v1beta1/{name=projects/*/locati", - "ons/*/clusters/*}\022\354\001\n\rUpdateCluster\0228.go" - + "ogle.cloud.redis.cluster.v1beta1.UpdateC" - + "lusterRequest\032\035.google.longrunning.Opera" - + "tion\"\201\001\312A\036\n\007Cluster\022\023google.protobuf.Any" - + "\332A\023cluster,update_mask\202\323\344\223\002D29/v1beta1/{" - + "cluster.name=projects/*/locations/*/clus" - + "ters/*}:\007cluster\022\331\001\n\rDeleteCluster\0228.goo" - + "gle.cloud.redis.cluster.v1beta1.DeleteCl" - + "usterRequest\032\035.google.longrunning.Operat" - + "ion\"o\312A,\n\025google.protobuf.Empty\022\023google." - + "protobuf.Any\332A\004name\202\323\344\223\0023*1/v1beta1/{nam" - + "e=projects/*/locations/*/clusters/*}\022\351\001\n" - + "\rCreateCluster\0228.google.cloud.redis.clus" - + "ter.v1beta1.CreateClusterRequest\032\035.googl" - + "e.longrunning.Operation\"\177\312A\036\n\007Cluster\022\023g" - + "oogle.protobuf.Any\332A\031parent,cluster,clus" - + "ter_id\202\323\344\223\002<\"1/v1beta1/{parent=projects/" - + "*/locations/*}/clusters:\007cluster\022\374\001\n\036Get" - + "ClusterCertificateAuthority\022I.google.clo" - + "ud.redis.cluster.v1beta1.GetClusterCerti" - + "ficateAuthorityRequest\0328.google.cloud.re" - + "dis.cluster.v1beta1.CertificateAuthority" - + "\"U\332A\004name\202\323\344\223\002H\022F/v1beta1/{name=projects" - + "/*/locations/*/clusters/*/certificateAut" - + "hority}\022\233\002\n%GetSharedRegionalCertificate" - + "Authority\022P.google.cloud.redis.cluster.v" - + "1beta1.GetSharedRegionalCertificateAutho" - + "rityRequest\032F.google.cloud.redis.cluster" - + ".v1beta1.SharedRegionalCertificateAuthor" - + "ity\"X\332A\004name\202\323\344\223\002K\022I/v1beta1/{name=proje" - + "cts/*/locations/*/sharedRegionalCertific" - + "ateAuthority}\022\250\002\n\034RescheduleClusterMaint" - + "enance\022G.google.cloud.redis.cluster.v1be" - + "ta1.RescheduleClusterMaintenanceRequest\032" - + "\035.google.longrunning.Operation\"\237\001\312A\036\n\007Cl" - + "uster\022\023google.protobuf.Any\332A\"name,resche" - + "dule_type,schedule_time\202\323\344\223\002S\"N/v1beta1/" - + "{name=projects/*/locations/*/clusters/*}" - + ":rescheduleClusterMaintenance:\001*\022\351\001\n\025Lis" - + "tBackupCollections\022@.google.cloud.redis." - + "cluster.v1beta1.ListBackupCollectionsReq" - + "uest\032A.google.cloud.redis.cluster.v1beta" - + "1.ListBackupCollectionsResponse\"K\332A\006pare" - + "nt\202\323\344\223\002<\022:/v1beta1/{parent=projects/*/lo" - + "cations/*}/backupCollections\022\326\001\n\023GetBack" - + "upCollection\022>.google.cloud.redis.cluste" - + "r.v1beta1.GetBackupCollectionRequest\0324.g" - + "oogle.cloud.redis.cluster.v1beta1.Backup" - + "Collection\"I\332A\004name\202\323\344\223\002<\022:/v1beta1/{nam" - + "e=projects/*/locations/*/backupCollectio" - + "ns/*}\022\325\001\n\013ListBackups\0226.google.cloud.red" - + "is.cluster.v1beta1.ListBackupsRequest\0327." - + "google.cloud.redis.cluster.v1beta1.ListB" - + "ackupsResponse\"U\332A\006parent\202\323\344\223\002F\022D/v1beta" - + "1/{parent=projects/*/locations/*/backupC" - + "ollections/*}/backups\022\302\001\n\tGetBackup\0224.go" - + "ogle.cloud.redis.cluster.v1beta1.GetBack" - + "upRequest\032*.google.cloud.redis.cluster.v" - + "1beta1.Backup\"S\332A\004name\202\323\344\223\002F\022D/v1beta1/{" - + "name=projects/*/locations/*/backupCollec" - + "tions/*/backups/*}\022\353\001\n\014DeleteBackup\0227.go" - + "ogle.cloud.redis.cluster.v1beta1.DeleteB" - + "ackupRequest\032\035.google.longrunning.Operat" - + "ion\"\202\001\312A,\n\025google.protobuf.Empty\022\023google" - + ".protobuf.Any\332A\004name\202\323\344\223\002F*D/v1beta1/{na" - + "me=projects/*/locations/*/backupCollecti" - + "ons/*/backups/*}\022\336\001\n\014ExportBackup\0227.goog" - + "le.cloud.redis.cluster.v1beta1.ExportBac" - + "kupRequest\032\035.google.longrunning.Operatio" - + "n\"v\312A\035\n\006Backup\022\023google.protobuf.Any\202\323\344\223\002" - + "P\"K/v1beta1/{name=projects/*/locations/*" - + "/backupCollections/*/backups/*}:export:\001" - + "*\022\325\001\n\rBackupCluster\0228.google.cloud.redis" - + ".cluster.v1beta1.BackupClusterRequest\032\035." - + "google.longrunning.Operation\"k\312A\036\n\007Clust" - + "er\022\023google.protobuf.Any\332A\004name\202\323\344\223\002=\"8/v" - + "1beta1/{name=projects/*/locations/*/clus" - + "ters/*}:backup:\001*\032H\312A\024redis.googleapis.c" - + "om\322A.https://www.googleapis.com/auth/clo" - + "ud-platformB\355\006\n&com.google.cloud.redis.c" - + "luster.v1beta1B\026CloudRedisClusterProtoP\001" - + "Z@cloud.google.com/go/redis/cluster/apiv" - + "1beta1/clusterpb;clusterpb\352\002&Google::Clo" - + "ud::Redis::Cluster::V1beta1\352An\n%compute." - + "googleapis.com/ForwardingRule\022Eprojects/" - + "{project}/regions/{region}/forwardingRul" - + "es/{forwarding_rule}\352AN\n\036compute.googlea" - + "pis.com/Network\022,projects/{project}/glob" - + "al/networks/{network}\352Aw\n(compute.google" - + "apis.com/ServiceAttachment\022Kprojects/{pr" - + "oject}/regions/{region}/serviceAttachmen" - + "ts/{service_attachment}\352Ax\n!cloudkms.goo" - + "gleapis.com/CryptoKey\022Sprojects/{project" - + "}/locations/{location}/keyRings/{key_rin" - + "g}/cryptoKeys/{crypto_key}\352A\246\001\n(cloudkms" - + ".googleapis.com/CryptoKeyVersion\022zprojec" - + "ts/{project}/locations/{location}/keyRin" - + "gs/{key_ring}/cryptoKeys/{crypto_key}/cr" - + "yptoKeyVersions/{crypto_key_version}\352A\\\n" - + "\037privateca.googleapis.com/CaPool\0229projec" - + "ts/{project}/locations/{location}/caPool" - + "s/{ca_pool}b\006proto3" + + "\014ListClusters\0227.google.cloud.redis.cluster.v" + + "1beta1.ListClustersRequest\0328.google.cloud.redis.cluster.v1beta1.ListClustersResp" + + "onse\"B\332A\006parent\202\323\344\223\0023\0221/v1beta1/{parent=projects/*/locations/*}/clusters\022\321\001\n" + + "\017ListAclPolicies\022:.google.cloud.redis.cluste" + + "r.v1beta1.ListAclPoliciesRequest\032;.google.cloud.redis.cluster.v1beta1.ListAclPol" + + "iciesResponse\"E\332A\006parent\202\323\344\223\0026\0224/v1beta1" + + "/{parent=projects/*/locations/*}/aclPolicies\022\262\001\n\n" + + "GetCluster\0225.google.cloud.redis.cluster.v1beta1.GetClusterRequest\032+.goo" + + "gle.cloud.redis.cluster.v1beta1.Cluster\"" + + "@\332A\004name\202\323\344\223\0023\0221/v1beta1/{name=projects/*/locations/*/clusters/*}\022\273\001\n" + + "\014GetAclPolicy\0227.google.cloud.redis.cluster.v1beta1." + + "GetAclPolicyRequest\032-.google.cloud.redis" + + ".cluster.v1beta1.AclPolicy\"C\332A\004name\202\323\344\223\002" + + "6\0224/v1beta1/{name=projects/*/locations/*/aclPolicies/*}\022\354\001\n\r" + + "UpdateCluster\0228.google.cloud.redis.cluster.v1beta1.UpdateClu" + + "sterRequest\032\035.google.longrunning.Operation\"\201\001\312A\036\n" + + "\007Cluster\022\023google.protobuf.Any\332A" + + "\023cluster,update_mask\202\323\344\223\002D29/v1beta1/{cl" + + "uster.name=projects/*/locations/*/clusters/*}:\007cluster\022\374\001\n" + + "\017UpdateAclPolicy\022:.google.cloud.redis.cluster.v1beta1.UpdateAc" + + "lPolicyRequest\032\035.google.longrunning.Operation\"\215\001\312A\036\n" + + "\tAclPolicy\022\021OperationMetadat" + + "a\332A\026acl_policy,update_mask\202\323\344\223\002M2?/v1bet" + + "a1/{acl_policy.name=projects/*/locations/*/aclPolicies/*}:\n" + + "acl_policy\022\331\001\n\r" + + "DeleteCluster\0228.google.cloud.redis.cluster.v1b" + + "eta1.DeleteClusterRequest\032\035.google.longrunning.Operation\"o\312A,\n" + + "\025google.protobuf.E" + + "mpty\022\023google.protobuf.Any\332A\004name\202\323\344\223\0023*1" + + "/v1beta1/{name=projects/*/locations/*/clusters/*}\022\336\001\n" + + "\017DeleteAclPolicy\022:.google.cloud.redis.cluster.v1beta1.DeleteAclPoli" + + "cyRequest\032\035.google.longrunning.Operation\"p\312A*\n" + + "\025google.protobuf.Empty\022\021OperationM" + + "etadata\332A\004name\202\323\344\223\0026*4/v1beta1/{name=projects/*/locations/*/aclPolicies/*}\022\337\001\n" + + "\024GetAclPolicyRevision\022?.google.cloud.redis" + + ".cluster.v1beta1.GetAclPolicyRevisionRequest\0325.google.cloud.redis.cluster.v1beta" + + "1.AclPolicyRevision\"O\332A\004name\202\323\344\223\002B\022@/v1b" + + "eta1/{name=projects/*/locations/*/aclPolicies/*/revisions/*}\022\362\001\n" + + "\026ListAclPolicyRevisions\022A.google.cloud.redis.cluster.v1b" + + "eta1.ListAclPolicyRevisionsRequest\032B.google.cloud.redis.cluster.v1beta1.ListAclP" + + "olicyRevisionsResponse\"Q\332A\006parent\202\323\344\223\002B\022" + + "@/v1beta1/{parent=projects/*/locations/*/aclPolicies/*}/revisions\022\351\001\n\r" + + "CreateCluster\0228.google.cloud.redis.cluster.v1beta1" + + ".CreateClusterRequest\032\035.google.longrunning.Operation\"\177\312A\036\n" + + "\007Cluster\022\023google.proto" + + "buf.Any\332A\031parent,cluster,cluster_id\202\323\344\223\002" + + "<\"1/v1beta1/{parent=projects/*/locations/*}/clusters:\007cluster\022\350\001\n" + + "\017CreateAclPolicy\022:.google.cloud.redis.cluster.v1beta1.C" + + "reateAclPolicyRequest\032-.google.cloud.red" + + "is.cluster.v1beta1.AclPolicy\"j\332A\037parent," + + "acl_policy,acl_policy_id\202\323\344\223\002B\"4/v1beta1" + + "/{parent=projects/*/locations/*}/aclPolicies:\n" + + "acl_policy\022\374\001\n" + + "\036GetClusterCertificateAuthority\022I.google.cloud.redis.cluster" + + ".v1beta1.GetClusterCertificateAuthorityRequest\0328.google.cloud.redis.cluster.v1be" + + "ta1.CertificateAuthority\"U\332A\004name\202\323\344\223\002H\022" + + "F/v1beta1/{name=projects/*/locations/*/clusters/*/certificateAuthority}\022\233\002\n" + + "%GetSharedRegionalCertificateAuthority\022P.goog" + + "le.cloud.redis.cluster.v1beta1.GetSharedRegionalCertificateAuthorityRequest\032F.go" + + "ogle.cloud.redis.cluster.v1beta1.SharedR" + + "egionalCertificateAuthority\"X\332A\004name\202\323\344\223" + + "\002K\022I/v1beta1/{name=projects/*/locations/" + + "*/sharedRegionalCertificateAuthority}\022\250\002\n" + + "\034RescheduleClusterMaintenance\022G.google.cloud.redis.cluster.v1beta1.RescheduleCl" + + "usterMaintenanceRequest\032\035.google.longrunning.Operation\"\237\001\312A\036\n" + + "\007Cluster\022\023google.protobuf.Any\332A\"name,reschedule_type,schedu" + + "le_time\202\323\344\223\002S\"N/v1beta1/{name=projects/*" + + "/locations/*/clusters/*}:rescheduleClusterMaintenance:\001*\022\351\001\n" + + "\025ListBackupCollections\022@.google.cloud.redis.cluster.v1beta1." + + "ListBackupCollectionsRequest\032A.google.cloud.redis.cluster.v1beta1.ListBackupColl" + + "ectionsResponse\"K\332A\006parent\202\323\344\223\002<\022:/v1bet" + + "a1/{parent=projects/*/locations/*}/backupCollections\022\326\001\n" + + "\023GetBackupCollection\022>.google.cloud.redis.cluster.v1beta1.GetBac" + + "kupCollectionRequest\0324.google.cloud.redi" + + "s.cluster.v1beta1.BackupCollection\"I\332A\004n" + + "ame\202\323\344\223\002<\022:/v1beta1/{name=projects/*/locations/*/backupCollections/*}\022\325\001\n" + + "\013ListBackups\0226.google.cloud.redis.cluster.v1bet" + + "a1.ListBackupsRequest\0327.google.cloud.redis.cluster.v1beta1.ListBackupsResponse\"U" + + "\332A\006parent\202\323\344\223\002F\022D/v1beta1/{parent=projec" + + "ts/*/locations/*/backupCollections/*}/backups\022\302\001\n" + + "\tGetBackup\0224.google.cloud.redis.cluster.v1beta1.GetBackupRequest\032*.goog" + + "le.cloud.redis.cluster.v1beta1.Backup\"S\332" + + "A\004name\202\323\344\223\002F\022D/v1beta1/{name=projects/*/" + + "locations/*/backupCollections/*/backups/*}\022\353\001\n" + + "\014DeleteBackup\0227.google.cloud.redis" + + ".cluster.v1beta1.DeleteBackupRequest\032\035.google.longrunning.Operation\"\202\001\312A,\n" + + "\025google.protobuf.Empty\022\023google.protobuf.Any\332A\004" + + "name\202\323\344\223\002F*D/v1beta1/{name=projects/*/lo" + + "cations/*/backupCollections/*/backups/*}\022\336\001\n" + + "\014ExportBackup\0227.google.cloud.redis.c" + + "luster.v1beta1.ExportBackupRequest\032\035.google.longrunning.Operation\"v\312A\035\n" + + "\006Backup\022\023google.protobuf.Any\202\323\344\223\002P\"K/v1beta1/{nam" + + "e=projects/*/locations/*/backupCollections/*/backups/*}:export:\001*\022\325\001\n\r" + + "BackupCluster\0228.google.cloud.redis.cluster.v1beta1" + + ".BackupClusterRequest\032\035.google.longrunning.Operation\"k\312A\036\n" + + "\007Cluster\022\023google.proto" + + "buf.Any\332A\004name\202\323\344\223\002=\"8/v1beta1/{name=pro" + + "jects/*/locations/*/clusters/*}:backup:\001" + + "*\032H\312A\024redis.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\355\006\n" + + "&com.google.cloud.redis.cluster.v1beta1B\026" + + "CloudRedisClusterProtoP\001Z@cloud.google.com/go/redis/cluster/apiv1beta1/clusterpb" + + ";clusterpb\352\002&Google::Cloud::Redis::Cluster::V1beta1\352An\n" + + "%compute.googleapis.com/ForwardingRule\022Eprojects/{project}/region" + + "s/{region}/forwardingRules/{forwarding_rule}\352AN\n" + + "\036compute.googleapis.com/Network\022" + + ",projects/{project}/global/networks/{network}\352Aw\n" + + "(compute.googleapis.com/ServiceAttachment\022Kprojects/{project}/regions/{" + + "region}/serviceAttachments/{service_attachment}\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project}/locations/{loc" + + "ation}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352A\246\001\n" + + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects/{project}/loc" + + "ations/{location}/keyRings/{key_ring}/cr" + + "yptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}\352A\\\n" + + "\037privateca.googleapis.com/CaPool\0229projects/{project}/loc" + + "ations/{location}/caPools/{ca_pool}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -881,8 +1055,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Parent", "ClusterId", "Cluster", "RequestId", }); - internal_static_google_cloud_redis_cluster_v1beta1_ListClustersRequest_descriptor = + internal_static_google_cloud_redis_cluster_v1beta1_CreateAclPolicyRequest_descriptor = getDescriptor().getMessageType(1); + internal_static_google_cloud_redis_cluster_v1beta1_CreateAclPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_CreateAclPolicyRequest_descriptor, + new java.lang.String[] { + "Parent", "AclPolicyId", "AclPolicy", "RequestId", + }); + internal_static_google_cloud_redis_cluster_v1beta1_ListClustersRequest_descriptor = + getDescriptor().getMessageType(2); internal_static_google_cloud_redis_cluster_v1beta1_ListClustersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_ListClustersRequest_descriptor, @@ -890,39 +1072,103 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_redis_cluster_v1beta1_ListClustersResponse_descriptor = - getDescriptor().getMessageType(2); + getDescriptor().getMessageType(3); internal_static_google_cloud_redis_cluster_v1beta1_ListClustersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_ListClustersResponse_descriptor, new java.lang.String[] { "Clusters", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_redis_cluster_v1beta1_ListAclPoliciesRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_redis_cluster_v1beta1_ListAclPoliciesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_ListAclPoliciesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_redis_cluster_v1beta1_ListAclPoliciesResponse_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_redis_cluster_v1beta1_ListAclPoliciesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_ListAclPoliciesResponse_descriptor, + new java.lang.String[] { + "AclPolicies", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_redis_cluster_v1beta1_ListAclPolicyRevisionsRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_redis_cluster_v1beta1_ListAclPolicyRevisionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_ListAclPolicyRevisionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_redis_cluster_v1beta1_ListAclPolicyRevisionsResponse_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_redis_cluster_v1beta1_ListAclPolicyRevisionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_ListAclPolicyRevisionsResponse_descriptor, + new java.lang.String[] { + "AclPolicyRevisions", "NextPageToken", "Unreachable", + }); internal_static_google_cloud_redis_cluster_v1beta1_UpdateClusterRequest_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(8); internal_static_google_cloud_redis_cluster_v1beta1_UpdateClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_UpdateClusterRequest_descriptor, new java.lang.String[] { "UpdateMask", "Cluster", "RequestId", }); + internal_static_google_cloud_redis_cluster_v1beta1_UpdateAclPolicyRequest_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_redis_cluster_v1beta1_UpdateAclPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_UpdateAclPolicyRequest_descriptor, + new java.lang.String[] { + "AclPolicy", "UpdateMask", "RequestId", + }); internal_static_google_cloud_redis_cluster_v1beta1_GetClusterRequest_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(10); internal_static_google_cloud_redis_cluster_v1beta1_GetClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_GetClusterRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_cloud_redis_cluster_v1beta1_GetAclPolicyRequest_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_redis_cluster_v1beta1_GetAclPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_GetAclPolicyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_redis_cluster_v1beta1_GetAclPolicyRevisionRequest_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_redis_cluster_v1beta1_GetAclPolicyRevisionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_GetAclPolicyRevisionRequest_descriptor, + new java.lang.String[] { + "Name", + }); internal_static_google_cloud_redis_cluster_v1beta1_DeleteClusterRequest_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(13); internal_static_google_cloud_redis_cluster_v1beta1_DeleteClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_DeleteClusterRequest_descriptor, new java.lang.String[] { "Name", "RequestId", }); + internal_static_google_cloud_redis_cluster_v1beta1_DeleteAclPolicyRequest_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_cloud_redis_cluster_v1beta1_DeleteAclPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_DeleteAclPolicyRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", "Etag", + }); internal_static_google_cloud_redis_cluster_v1beta1_GetClusterCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(15); internal_static_google_cloud_redis_cluster_v1beta1_GetClusterCertificateAuthorityRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_GetClusterCertificateAuthorityRequest_descriptor, @@ -930,7 +1176,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsRequest_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(16); internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsRequest_descriptor, @@ -938,7 +1184,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsResponse_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(17); internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsResponse_descriptor, @@ -946,7 +1192,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackupCollections", "NextPageToken", "Unreachable", }); internal_static_google_cloud_redis_cluster_v1beta1_GetBackupCollectionRequest_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(18); internal_static_google_cloud_redis_cluster_v1beta1_GetBackupCollectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_GetBackupCollectionRequest_descriptor, @@ -954,7 +1200,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsRequest_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(19); internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsRequest_descriptor, @@ -962,7 +1208,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsResponse_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(20); internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsResponse_descriptor, @@ -970,7 +1216,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Backups", "NextPageToken", "Unreachable", }); internal_static_google_cloud_redis_cluster_v1beta1_GetBackupRequest_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(21); internal_static_google_cloud_redis_cluster_v1beta1_GetBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_GetBackupRequest_descriptor, @@ -978,7 +1224,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_redis_cluster_v1beta1_DeleteBackupRequest_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(22); internal_static_google_cloud_redis_cluster_v1beta1_DeleteBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_DeleteBackupRequest_descriptor, @@ -986,7 +1232,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_redis_cluster_v1beta1_ExportBackupRequest_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(23); internal_static_google_cloud_redis_cluster_v1beta1_ExportBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_ExportBackupRequest_descriptor, @@ -994,7 +1240,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsBucket", "Name", "Destination", }); internal_static_google_cloud_redis_cluster_v1beta1_BackupClusterRequest_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(24); internal_static_google_cloud_redis_cluster_v1beta1_BackupClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_BackupClusterRequest_descriptor, @@ -1002,7 +1248,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Ttl", "BackupId", }); internal_static_google_cloud_redis_cluster_v1beta1_Cluster_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(25); internal_static_google_cloud_redis_cluster_v1beta1_Cluster_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_Cluster_descriptor, @@ -1041,6 +1287,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServerCaMode", "ServerCaPool", "RotateServerCertificate", + "AclPolicy", + "AclPolicyInfo", "ImportSources", }); internal_static_google_cloud_redis_cluster_v1beta1_Cluster_StateInfo_descriptor = @@ -1084,8 +1332,65 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyInfo_descriptor = + getDescriptor().getMessageType(26); + internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyInfo_descriptor, + new java.lang.String[] { + "AppliedAclPolicy", + "AppliedAclPolicyRevision", + "AppliedAclPolicyRevisionNumber", + "AclPolicyRevisionStatuses", + }); + internal_static_google_cloud_redis_cluster_v1beta1_AclPolicy_descriptor = + getDescriptor().getMessageType(27); + internal_static_google_cloud_redis_cluster_v1beta1_AclPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_AclPolicy_descriptor, + new java.lang.String[] { + "Name", + "Rules", + "State", + "Etag", + "ClusterAclPolicyAttachments", + "CreateTime", + "UpdateTime", + }); + internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyRevisionStatus_descriptor = + getDescriptor().getMessageType(28); + internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyRevisionStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyRevisionStatus_descriptor, + new java.lang.String[] { + "AclPolicyRevision", "AclPolicyRevisionNumber", "State", "ErrorMessage", + }); + internal_static_google_cloud_redis_cluster_v1beta1_ClusterAclPolicyAttachment_descriptor = + getDescriptor().getMessageType(29); + internal_static_google_cloud_redis_cluster_v1beta1_ClusterAclPolicyAttachment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_ClusterAclPolicyAttachment_descriptor, + new java.lang.String[] { + "Cluster", "AclPolicyRevisionStatuses", + }); + internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyRevision_descriptor = + getDescriptor().getMessageType(30); + internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyRevision_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_AclPolicyRevision_descriptor, + new java.lang.String[] { + "Name", "RevisionNumber", "Snapshot", "CreateTime", "AttachedClusters", + }); + internal_static_google_cloud_redis_cluster_v1beta1_AclRule_descriptor = + getDescriptor().getMessageType(31); + internal_static_google_cloud_redis_cluster_v1beta1_AclRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_AclRule_descriptor, + new java.lang.String[] { + "Username", "Rule", + }); internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(32); internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_descriptor, @@ -1102,7 +1407,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StartTime", }); internal_static_google_cloud_redis_cluster_v1beta1_BackupCollection_descriptor = - getDescriptor().getMessageType(18); + getDescriptor().getMessageType(33); internal_static_google_cloud_redis_cluster_v1beta1_BackupCollection_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_BackupCollection_descriptor, @@ -1110,7 +1415,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ClusterUid", "Cluster", "KmsKey", "Uid", }); internal_static_google_cloud_redis_cluster_v1beta1_Backup_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(34); internal_static_google_cloud_redis_cluster_v1beta1_Backup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_Backup_descriptor, @@ -1132,7 +1437,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Uid", }); internal_static_google_cloud_redis_cluster_v1beta1_BackupFile_descriptor = - getDescriptor().getMessageType(20); + getDescriptor().getMessageType(35); internal_static_google_cloud_redis_cluster_v1beta1_BackupFile_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_BackupFile_descriptor, @@ -1140,7 +1445,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FileName", "SizeBytes", "CreateTime", }); internal_static_google_cloud_redis_cluster_v1beta1_PscServiceAttachment_descriptor = - getDescriptor().getMessageType(21); + getDescriptor().getMessageType(36); internal_static_google_cloud_redis_cluster_v1beta1_PscServiceAttachment_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_PscServiceAttachment_descriptor, @@ -1148,7 +1453,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceAttachment", "ConnectionType", }); internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_descriptor = - getDescriptor().getMessageType(22); + getDescriptor().getMessageType(37); internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_descriptor, @@ -1174,7 +1479,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrimaryCluster", "SecondaryClusters", }); internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenancePolicy_descriptor = - getDescriptor().getMessageType(23); + getDescriptor().getMessageType(38); internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenancePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenancePolicy_descriptor, @@ -1182,7 +1487,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "UpdateTime", "WeeklyMaintenanceWindow", }); internal_static_google_cloud_redis_cluster_v1beta1_ClusterWeeklyMaintenanceWindow_descriptor = - getDescriptor().getMessageType(24); + getDescriptor().getMessageType(39); internal_static_google_cloud_redis_cluster_v1beta1_ClusterWeeklyMaintenanceWindow_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_ClusterWeeklyMaintenanceWindow_descriptor, @@ -1190,7 +1495,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Day", "StartTime", }); internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenanceSchedule_descriptor = - getDescriptor().getMessageType(25); + getDescriptor().getMessageType(40); internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenanceSchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenanceSchedule_descriptor, @@ -1198,7 +1503,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StartTime", "EndTime", }); internal_static_google_cloud_redis_cluster_v1beta1_PscConfig_descriptor = - getDescriptor().getMessageType(26); + getDescriptor().getMessageType(41); internal_static_google_cloud_redis_cluster_v1beta1_PscConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_PscConfig_descriptor, @@ -1206,7 +1511,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Network", }); internal_static_google_cloud_redis_cluster_v1beta1_DiscoveryEndpoint_descriptor = - getDescriptor().getMessageType(27); + getDescriptor().getMessageType(42); internal_static_google_cloud_redis_cluster_v1beta1_DiscoveryEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_DiscoveryEndpoint_descriptor, @@ -1214,7 +1519,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Address", "Port", "PscConfig", }); internal_static_google_cloud_redis_cluster_v1beta1_PscConnection_descriptor = - getDescriptor().getMessageType(28); + getDescriptor().getMessageType(43); internal_static_google_cloud_redis_cluster_v1beta1_PscConnection_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_PscConnection_descriptor, @@ -1229,7 +1534,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConnectionType", }); internal_static_google_cloud_redis_cluster_v1beta1_ClusterEndpoint_descriptor = - getDescriptor().getMessageType(29); + getDescriptor().getMessageType(44); internal_static_google_cloud_redis_cluster_v1beta1_ClusterEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_ClusterEndpoint_descriptor, @@ -1237,7 +1542,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Connections", }); internal_static_google_cloud_redis_cluster_v1beta1_ConnectionDetail_descriptor = - getDescriptor().getMessageType(30); + getDescriptor().getMessageType(45); internal_static_google_cloud_redis_cluster_v1beta1_ConnectionDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_ConnectionDetail_descriptor, @@ -1245,7 +1550,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PscAutoConnection", "PscConnection", "Connection", }); internal_static_google_cloud_redis_cluster_v1beta1_PscAutoConnection_descriptor = - getDescriptor().getMessageType(31); + getDescriptor().getMessageType(46); internal_static_google_cloud_redis_cluster_v1beta1_PscAutoConnection_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_PscAutoConnection_descriptor, @@ -1260,7 +1565,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConnectionType", }); internal_static_google_cloud_redis_cluster_v1beta1_SharedRegionalCertificateAuthority_descriptor = - getDescriptor().getMessageType(32); + getDescriptor().getMessageType(47); internal_static_google_cloud_redis_cluster_v1beta1_SharedRegionalCertificateAuthority_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_SharedRegionalCertificateAuthority_descriptor, @@ -1286,7 +1591,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Certificates", }); internal_static_google_cloud_redis_cluster_v1beta1_GetSharedRegionalCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageType(33); + getDescriptor().getMessageType(48); internal_static_google_cloud_redis_cluster_v1beta1_GetSharedRegionalCertificateAuthorityRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_GetSharedRegionalCertificateAuthorityRequest_descriptor, @@ -1294,7 +1599,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_redis_cluster_v1beta1_OperationMetadata_descriptor = - getDescriptor().getMessageType(34); + getDescriptor().getMessageType(49); internal_static_google_cloud_redis_cluster_v1beta1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_OperationMetadata_descriptor, @@ -1308,7 +1613,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiVersion", }); internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_descriptor = - getDescriptor().getMessageType(35); + getDescriptor().getMessageType(50); internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_descriptor, @@ -1334,7 +1639,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Certificates", }); internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_descriptor = - getDescriptor().getMessageType(36); + getDescriptor().getMessageType(51); internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_descriptor, @@ -1360,7 +1665,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AppendFsync", }); internal_static_google_cloud_redis_cluster_v1beta1_ZoneDistributionConfig_descriptor = - getDescriptor().getMessageType(37); + getDescriptor().getMessageType(52); internal_static_google_cloud_redis_cluster_v1beta1_ZoneDistributionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_ZoneDistributionConfig_descriptor, @@ -1368,7 +1673,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Mode", "Zone", }); internal_static_google_cloud_redis_cluster_v1beta1_RescheduleClusterMaintenanceRequest_descriptor = - getDescriptor().getMessageType(38); + getDescriptor().getMessageType(53); internal_static_google_cloud_redis_cluster_v1beta1_RescheduleClusterMaintenanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_RescheduleClusterMaintenanceRequest_descriptor, @@ -1376,7 +1681,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RescheduleType", "ScheduleTime", }); internal_static_google_cloud_redis_cluster_v1beta1_EncryptionInfo_descriptor = - getDescriptor().getMessageType(39); + getDescriptor().getMessageType(54); internal_static_google_cloud_redis_cluster_v1beta1_EncryptionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_EncryptionInfo_descriptor, diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/Cluster.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/Cluster.java index e176f16720bd..94b96cb34119 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/Cluster.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/Cluster.java @@ -67,6 +67,7 @@ private Cluster() { kmsKey_ = ""; serverCaMode_ = 0; serverCaPool_ = ""; + aclPolicy_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -5481,6 +5482,122 @@ public boolean getRotateServerCertificate() { return rotateServerCertificate_; } + public static final int ACL_POLICY_FIELD_NUMBER = 56; + + @SuppressWarnings("serial") + private volatile java.lang.Object aclPolicy_ = ""; + + /** + * + * + *
          +   * Optional. The ACL policy to be applied to the cluster.
          +   * 
          + * + * + * string acl_policy = 56 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The aclPolicy. + */ + @java.lang.Override + public java.lang.String getAclPolicy() { + java.lang.Object ref = aclPolicy_; + 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(); + aclPolicy_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. The ACL policy to be applied to the cluster.
          +   * 
          + * + * + * string acl_policy = 56 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for aclPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAclPolicyBytes() { + java.lang.Object ref = aclPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aclPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACL_POLICY_INFO_FIELD_NUMBER = 58; + private com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo aclPolicyInfo_; + + /** + * + * + *
          +   * Output only. Details of the applied ACL policy.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the aclPolicyInfo field is set. + */ + @java.lang.Override + public boolean hasAclPolicyInfo() { + return ((bitField0_ & 0x00100000) != 0); + } + + /** + * + * + *
          +   * Output only. Details of the applied ACL policy.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The aclPolicyInfo. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo getAclPolicyInfo() { + return aclPolicyInfo_ == null + ? com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo.getDefaultInstance() + : aclPolicyInfo_; + } + + /** + * + * + *
          +   * Output only. Details of the applied ACL policy.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicyInfoOrBuilder getAclPolicyInfoOrBuilder() { + return aclPolicyInfo_ == null + ? com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo.getDefaultInstance() + : aclPolicyInfo_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -5605,6 +5722,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00080000) != 0)) { output.writeBool(55, rotateServerCertificate_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(aclPolicy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 56, aclPolicy_); + } + if (((bitField0_ & 0x00100000) != 0)) { + output.writeMessage(58, getAclPolicyInfo()); + } getUnknownFields().writeTo(output); } @@ -5746,6 +5869,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(55, rotateServerCertificate_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(aclPolicy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(56, aclPolicy_); + } + if (((bitField0_ & 0x00100000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(58, getAclPolicyInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5859,6 +5988,11 @@ public boolean equals(final java.lang.Object obj) { if (hasRotateServerCertificate()) { if (getRotateServerCertificate() != other.getRotateServerCertificate()) return false; } + if (!getAclPolicy().equals(other.getAclPolicy())) return false; + if (hasAclPolicyInfo() != other.hasAclPolicyInfo()) return false; + if (hasAclPolicyInfo()) { + if (!getAclPolicyInfo().equals(other.getAclPolicyInfo())) return false; + } if (!getImportSourcesCase().equals(other.getImportSourcesCase())) return false; switch (importSourcesCase_) { case 34: @@ -6002,6 +6136,12 @@ public int hashCode() { hash = (37 * hash) + ROTATE_SERVER_CERTIFICATE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRotateServerCertificate()); } + hash = (37 * hash) + ACL_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicy().hashCode(); + if (hasAclPolicyInfo()) { + hash = (37 * hash) + ACL_POLICY_INFO_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicyInfo().hashCode(); + } switch (importSourcesCase_) { case 34: hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; @@ -6191,6 +6331,7 @@ private void maybeForceBuilderInitialization() { internalGetClusterEndpointsFieldBuilder(); internalGetAutomatedBackupConfigFieldBuilder(); internalGetEncryptionInfoFieldBuilder(); + internalGetAclPolicyInfoFieldBuilder(); } } @@ -6303,6 +6444,12 @@ public Builder clear() { serverCaMode_ = 0; serverCaPool_ = ""; rotateServerCertificate_ = false; + aclPolicy_ = ""; + aclPolicyInfo_ = null; + if (aclPolicyInfoBuilder_ != null) { + aclPolicyInfoBuilder_.dispose(); + aclPolicyInfoBuilder_ = null; + } importSourcesCase_ = 0; importSources_ = null; return this; @@ -6522,6 +6669,14 @@ private void buildPartial1(com.google.cloud.redis.cluster.v1beta1.Cluster result result.rotateServerCertificate_ = rotateServerCertificate_; to_bitField0_ |= 0x00080000; } + if (((from_bitField1_ & 0x00000004) != 0)) { + result.aclPolicy_ = aclPolicy_; + } + if (((from_bitField1_ & 0x00000008) != 0)) { + result.aclPolicyInfo_ = + aclPolicyInfoBuilder_ == null ? aclPolicyInfo_ : aclPolicyInfoBuilder_.build(); + to_bitField0_ |= 0x00100000; + } result.bitField0_ |= to_bitField0_; } @@ -6773,6 +6928,14 @@ public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.Cluster other) { if (other.hasRotateServerCertificate()) { setRotateServerCertificate(other.getRotateServerCertificate()); } + if (!other.getAclPolicy().isEmpty()) { + aclPolicy_ = other.aclPolicy_; + bitField1_ |= 0x00000004; + onChanged(); + } + if (other.hasAclPolicyInfo()) { + mergeAclPolicyInfo(other.getAclPolicyInfo()); + } switch (other.getImportSourcesCase()) { case GCS_SOURCE: { @@ -7078,6 +7241,19 @@ public Builder mergeFrom( bitField1_ |= 0x00000002; break; } // case 440 + case 450: + { + aclPolicy_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00000004; + break; + } // case 450 + case 466: + { + input.readMessage( + internalGetAclPolicyInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00000008; + break; + } // case 466 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -13770,6 +13946,342 @@ public Builder clearRotateServerCertificate() { return this; } + private java.lang.Object aclPolicy_ = ""; + + /** + * + * + *
          +     * Optional. The ACL policy to be applied to the cluster.
          +     * 
          + * + * + * string acl_policy = 56 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The aclPolicy. + */ + public java.lang.String getAclPolicy() { + java.lang.Object ref = aclPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + aclPolicy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. The ACL policy to be applied to the cluster.
          +     * 
          + * + * + * string acl_policy = 56 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for aclPolicy. + */ + public com.google.protobuf.ByteString getAclPolicyBytes() { + java.lang.Object ref = aclPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aclPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. The ACL policy to be applied to the cluster.
          +     * 
          + * + * + * string acl_policy = 56 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The aclPolicy to set. + * @return This builder for chaining. + */ + public Builder setAclPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + aclPolicy_ = value; + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The ACL policy to be applied to the cluster.
          +     * 
          + * + * + * string acl_policy = 56 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAclPolicy() { + aclPolicy_ = getDefaultInstance().getAclPolicy(); + bitField1_ = (bitField1_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The ACL policy to be applied to the cluster.
          +     * 
          + * + * + * string acl_policy = 56 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for aclPolicy to set. + * @return This builder for chaining. + */ + public Builder setAclPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + aclPolicy_ = value; + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo aclPolicyInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo, + com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo.Builder, + com.google.cloud.redis.cluster.v1beta1.AclPolicyInfoOrBuilder> + aclPolicyInfoBuilder_; + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the aclPolicyInfo field is set. + */ + public boolean hasAclPolicyInfo() { + return ((bitField1_ & 0x00000008) != 0); + } + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The aclPolicyInfo. + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo getAclPolicyInfo() { + if (aclPolicyInfoBuilder_ == null) { + return aclPolicyInfo_ == null + ? com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo.getDefaultInstance() + : aclPolicyInfo_; + } else { + return aclPolicyInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAclPolicyInfo(com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo value) { + if (aclPolicyInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aclPolicyInfo_ = value; + } else { + aclPolicyInfoBuilder_.setMessage(value); + } + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAclPolicyInfo( + com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo.Builder builderForValue) { + if (aclPolicyInfoBuilder_ == null) { + aclPolicyInfo_ = builderForValue.build(); + } else { + aclPolicyInfoBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAclPolicyInfo(com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo value) { + if (aclPolicyInfoBuilder_ == null) { + if (((bitField1_ & 0x00000008) != 0) + && aclPolicyInfo_ != null + && aclPolicyInfo_ + != com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo.getDefaultInstance()) { + getAclPolicyInfoBuilder().mergeFrom(value); + } else { + aclPolicyInfo_ = value; + } + } else { + aclPolicyInfoBuilder_.mergeFrom(value); + } + if (aclPolicyInfo_ != null) { + bitField1_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAclPolicyInfo() { + bitField1_ = (bitField1_ & ~0x00000008); + aclPolicyInfo_ = null; + if (aclPolicyInfoBuilder_ != null) { + aclPolicyInfoBuilder_.dispose(); + aclPolicyInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo.Builder getAclPolicyInfoBuilder() { + bitField1_ |= 0x00000008; + onChanged(); + return internalGetAclPolicyInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicyInfoOrBuilder + getAclPolicyInfoOrBuilder() { + if (aclPolicyInfoBuilder_ != null) { + return aclPolicyInfoBuilder_.getMessageOrBuilder(); + } else { + return aclPolicyInfo_ == null + ? com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo.getDefaultInstance() + : aclPolicyInfo_; + } + } + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo, + com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo.Builder, + com.google.cloud.redis.cluster.v1beta1.AclPolicyInfoOrBuilder> + internalGetAclPolicyInfoFieldBuilder() { + if (aclPolicyInfoBuilder_ == null) { + aclPolicyInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo, + com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo.Builder, + com.google.cloud.redis.cluster.v1beta1.AclPolicyInfoOrBuilder>( + getAclPolicyInfo(), getParentForChildren(), isClean()); + aclPolicyInfo_ = null; + } + return aclPolicyInfoBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.Cluster) } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterAclPolicyAttachment.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterAclPolicyAttachment.java new file mode 100644 index 000000000000..0c03398751fe --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterAclPolicyAttachment.java @@ -0,0 +1,1252 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
          + * ClusterAclPolicyAttachment stores the ACL policy status for an attached
          + * cluster for the revisions successfully applied, under application or failed.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment} + */ +@com.google.protobuf.Generated +public final class ClusterAclPolicyAttachment extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment) + ClusterAclPolicyAttachmentOrBuilder { + 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= */ "", + "ClusterAclPolicyAttachment"); + } + + // Use ClusterAclPolicyAttachment.newBuilder() to construct. + private ClusterAclPolicyAttachment(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ClusterAclPolicyAttachment() { + cluster_ = ""; + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterAclPolicyAttachment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterAclPolicyAttachment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment.class, + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment.Builder.class); + } + + public static final int CLUSTER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object cluster_ = ""; + + /** + * + * + *
          +   * Output only. The resource name of the attached Cluster.
          +   * Format:
          +   * "projects/{project}/locations/{location}/clusters/{cluster}"
          +   * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The cluster. + */ + @java.lang.Override + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + 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(); + cluster_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. The resource name of the attached Cluster.
          +   * Format:
          +   * "projects/{project}/locations/{location}/clusters/{cluster}"
          +   * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cluster. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACL_POLICY_REVISION_STATUSES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + aclPolicyRevisionStatuses_; + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getAclPolicyRevisionStatusesList() { + return aclPolicyRevisionStatuses_; + } + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatusOrBuilder> + getAclPolicyRevisionStatusesOrBuilderList() { + return aclPolicyRevisionStatuses_; + } + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getAclPolicyRevisionStatusesCount() { + return aclPolicyRevisionStatuses_.size(); + } + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus + getAclPolicyRevisionStatuses(int index) { + return aclPolicyRevisionStatuses_.get(index); + } + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatusOrBuilder + getAclPolicyRevisionStatusesOrBuilder(int index) { + return aclPolicyRevisionStatuses_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cluster_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, cluster_); + } + for (int i = 0; i < aclPolicyRevisionStatuses_.size(); i++) { + output.writeMessage(2, aclPolicyRevisionStatuses_.get(i)); + } + 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(cluster_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, cluster_); + } + for (int i = 0; i < aclPolicyRevisionStatuses_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, aclPolicyRevisionStatuses_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment other = + (com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment) obj; + + if (!getCluster().equals(other.getCluster())) return false; + if (!getAclPolicyRevisionStatusesList().equals(other.getAclPolicyRevisionStatusesList())) + 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) + CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getCluster().hashCode(); + if (getAclPolicyRevisionStatusesCount() > 0) { + hash = (37 * hash) + ACL_POLICY_REVISION_STATUSES_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicyRevisionStatusesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment 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.redis.cluster.v1beta1.ClusterAclPolicyAttachment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment 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.redis.cluster.v1beta1.ClusterAclPolicyAttachment parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment 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.redis.cluster.v1beta1.ClusterAclPolicyAttachment + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment + 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.redis.cluster.v1beta1.ClusterAclPolicyAttachment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment 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.redis.cluster.v1beta1.ClusterAclPolicyAttachment 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; + } + + /** + * + * + *
          +   * ClusterAclPolicyAttachment stores the ACL policy status for an attached
          +   * cluster for the revisions successfully applied, under application or failed.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment) + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterAclPolicyAttachment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterAclPolicyAttachment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment.class, + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment.Builder.class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cluster_ = ""; + if (aclPolicyRevisionStatusesBuilder_ == null) { + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + } else { + aclPolicyRevisionStatuses_ = null; + aclPolicyRevisionStatusesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterAclPolicyAttachment_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment build() { + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment buildPartial() { + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment result = + new com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment result) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + aclPolicyRevisionStatuses_ = + java.util.Collections.unmodifiableList(aclPolicyRevisionStatuses_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.aclPolicyRevisionStatuses_ = aclPolicyRevisionStatuses_; + } else { + result.aclPolicyRevisionStatuses_ = aclPolicyRevisionStatusesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cluster_ = cluster_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment.getDefaultInstance()) + return this; + if (!other.getCluster().isEmpty()) { + cluster_ = other.cluster_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (!other.aclPolicyRevisionStatuses_.isEmpty()) { + if (aclPolicyRevisionStatuses_.isEmpty()) { + aclPolicyRevisionStatuses_ = other.aclPolicyRevisionStatuses_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.addAll(other.aclPolicyRevisionStatuses_); + } + onChanged(); + } + } else { + if (!other.aclPolicyRevisionStatuses_.isEmpty()) { + if (aclPolicyRevisionStatusesBuilder_.isEmpty()) { + aclPolicyRevisionStatusesBuilder_.dispose(); + aclPolicyRevisionStatusesBuilder_ = null; + aclPolicyRevisionStatuses_ = other.aclPolicyRevisionStatuses_; + bitField0_ = (bitField0_ & ~0x00000002); + aclPolicyRevisionStatusesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAclPolicyRevisionStatusesFieldBuilder() + : null; + } else { + aclPolicyRevisionStatusesBuilder_.addAllMessages(other.aclPolicyRevisionStatuses_); + } + } + } + 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: + { + cluster_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus m = + input.readMessage( + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.parser(), + extensionRegistry); + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(m); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object cluster_ = ""; + + /** + * + * + *
          +     * Output only. The resource name of the attached Cluster.
          +     * Format:
          +     * "projects/{project}/locations/{location}/clusters/{cluster}"
          +     * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The cluster. + */ + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the attached Cluster.
          +     * Format:
          +     * "projects/{project}/locations/{location}/clusters/{cluster}"
          +     * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cluster. + */ + public com.google.protobuf.ByteString getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the attached Cluster.
          +     * Format:
          +     * "projects/{project}/locations/{location}/clusters/{cluster}"
          +     * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The cluster to set. + * @return This builder for chaining. + */ + public Builder setCluster(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cluster_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the attached Cluster.
          +     * Format:
          +     * "projects/{project}/locations/{location}/clusters/{cluster}"
          +     * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCluster() { + cluster_ = getDefaultInstance().getCluster(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the attached Cluster.
          +     * Format:
          +     * "projects/{project}/locations/{location}/clusters/{cluster}"
          +     * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cluster to set. + * @return This builder for chaining. + */ + public Builder setClusterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cluster_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + + private void ensureAclPolicyRevisionStatusesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + aclPolicyRevisionStatuses_ = + new java.util.ArrayList( + aclPolicyRevisionStatuses_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.Builder, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatusOrBuilder> + aclPolicyRevisionStatusesBuilder_; + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getAclPolicyRevisionStatusesList() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return java.util.Collections.unmodifiableList(aclPolicyRevisionStatuses_); + } else { + return aclPolicyRevisionStatusesBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getAclPolicyRevisionStatusesCount() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return aclPolicyRevisionStatuses_.size(); + } else { + return aclPolicyRevisionStatusesBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus + getAclPolicyRevisionStatuses(int index) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return aclPolicyRevisionStatuses_.get(index); + } else { + return aclPolicyRevisionStatusesBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAclPolicyRevisionStatuses( + int index, com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus value) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.set(index, value); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAclPolicyRevisionStatuses( + int index, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.Builder builderForValue) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.set(index, builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus value) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(value); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + int index, com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus value) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(index, value); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.Builder builderForValue) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + int index, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.Builder builderForValue) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(index, builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllAclPolicyRevisionStatuses( + java.lang.Iterable + values) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aclPolicyRevisionStatuses_); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAclPolicyRevisionStatuses() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeAclPolicyRevisionStatuses(int index) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.remove(index); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.Builder + getAclPolicyRevisionStatusesBuilder(int index) { + return internalGetAclPolicyRevisionStatusesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatusOrBuilder + getAclPolicyRevisionStatusesOrBuilder(int index) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return aclPolicyRevisionStatuses_.get(index); + } else { + return aclPolicyRevisionStatusesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatusOrBuilder> + getAclPolicyRevisionStatusesOrBuilderList() { + if (aclPolicyRevisionStatusesBuilder_ != null) { + return aclPolicyRevisionStatusesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(aclPolicyRevisionStatuses_); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.Builder + addAclPolicyRevisionStatusesBuilder() { + return internalGetAclPolicyRevisionStatusesFieldBuilder() + .addBuilder( + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.getDefaultInstance()); + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.Builder + addAclPolicyRevisionStatusesBuilder(int index) { + return internalGetAclPolicyRevisionStatusesFieldBuilder() + .addBuilder( + index, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.getDefaultInstance()); + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the cluster.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getAclPolicyRevisionStatusesBuilderList() { + return internalGetAclPolicyRevisionStatusesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.Builder, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatusOrBuilder> + internalGetAclPolicyRevisionStatusesFieldBuilder() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + aclPolicyRevisionStatusesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus.Builder, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatusOrBuilder>( + aclPolicyRevisionStatuses_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + aclPolicyRevisionStatuses_ = null; + } + return aclPolicyRevisionStatusesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment) + private static final com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment(); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterAclPolicyAttachment 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.redis.cluster.v1beta1.ClusterAclPolicyAttachment + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterAclPolicyAttachmentOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterAclPolicyAttachmentOrBuilder.java new file mode 100644 index 000000000000..16f8b85de167 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterAclPolicyAttachmentOrBuilder.java @@ -0,0 +1,136 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +@com.google.protobuf.Generated +public interface ClusterAclPolicyAttachmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Output only. The resource name of the attached Cluster.
          +   * Format:
          +   * "projects/{project}/locations/{location}/clusters/{cluster}"
          +   * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The cluster. + */ + java.lang.String getCluster(); + + /** + * + * + *
          +   * Output only. The resource name of the attached Cluster.
          +   * Format:
          +   * "projects/{project}/locations/{location}/clusters/{cluster}"
          +   * 
          + * + * + * string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cluster. + */ + com.google.protobuf.ByteString getClusterBytes(); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAclPolicyRevisionStatusesList(); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus getAclPolicyRevisionStatuses( + int index); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAclPolicyRevisionStatusesCount(); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAclPolicyRevisionStatusesOrBuilderList(); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the cluster.
          +   * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionStatusOrBuilder + getAclPolicyRevisionStatusesOrBuilder(int index); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterOrBuilder.java index 016f070c79d8..8df775c283ae 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterOrBuilder.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterOrBuilder.java @@ -1525,5 +1525,78 @@ com.google.cloud.redis.cluster.v1beta1.ClusterEndpointOrBuilder getClusterEndpoi */ boolean getRotateServerCertificate(); + /** + * + * + *
          +   * Optional. The ACL policy to be applied to the cluster.
          +   * 
          + * + * + * string acl_policy = 56 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The aclPolicy. + */ + java.lang.String getAclPolicy(); + + /** + * + * + *
          +   * Optional. The ACL policy to be applied to the cluster.
          +   * 
          + * + * + * string acl_policy = 56 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for aclPolicy. + */ + com.google.protobuf.ByteString getAclPolicyBytes(); + + /** + * + * + *
          +   * Output only. Details of the applied ACL policy.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the aclPolicyInfo field is set. + */ + boolean hasAclPolicyInfo(); + + /** + * + * + *
          +   * Output only. Details of the applied ACL policy.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The aclPolicyInfo. + */ + com.google.cloud.redis.cluster.v1beta1.AclPolicyInfo getAclPolicyInfo(); + + /** + * + * + *
          +   * Output only. Details of the applied ACL policy.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicyInfo acl_policy_info = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1beta1.AclPolicyInfoOrBuilder getAclPolicyInfoOrBuilder(); + com.google.cloud.redis.cluster.v1beta1.Cluster.ImportSourcesCase getImportSourcesCase(); } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CreateAclPolicyRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CreateAclPolicyRequest.java new file mode 100644 index 000000000000..2d6def24f383 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CreateAclPolicyRequest.java @@ -0,0 +1,1395 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
          + * Request for `CreateAclPolicy`.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest} + */ +@com.google.protobuf.Generated +public final class CreateAclPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest) + CreateAclPolicyRequestOrBuilder { + 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= */ "", + "CreateAclPolicyRequest"); + } + + // Use CreateAclPolicyRequest.newBuilder() to construct. + private CreateAclPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateAclPolicyRequest() { + parent_ = ""; + aclPolicyId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CreateAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CreateAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest.class, + com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
          +   * Required. The resource name of the cluster location using the form:
          +   * `projects/{project_id}/locations/{location_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The resource name of the cluster location using the form:
          +   * `projects/{project_id}/locations/{location_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACL_POLICY_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object aclPolicyId_ = ""; + + /** + * + * + *
          +   * Required. The logical name of the ACL policy in the customer project
          +   * with the following restrictions:
          +   *
          +   * * Must contain only lowercase letters, numbers, and hyphens.
          +   * * Must start with a letter.
          +   * * Must be between 1-63 characters.
          +   * * Must end with a number or a letter.
          +   * * Must be unique within the customer project / location
          +   * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The aclPolicyId. + */ + @java.lang.Override + public java.lang.String getAclPolicyId() { + java.lang.Object ref = aclPolicyId_; + 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(); + aclPolicyId_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The logical name of the ACL policy in the customer project
          +   * with the following restrictions:
          +   *
          +   * * Must contain only lowercase letters, numbers, and hyphens.
          +   * * Must start with a letter.
          +   * * Must be between 1-63 characters.
          +   * * Must end with a number or a letter.
          +   * * Must be unique within the customer project / location
          +   * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for aclPolicyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAclPolicyIdBytes() { + java.lang.Object ref = aclPolicyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aclPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACL_POLICY_FIELD_NUMBER = 3; + private com.google.cloud.redis.cluster.v1beta1.AclPolicy aclPolicy_; + + /** + * + * + *
          +   * Required. The ACL policy that is to be created.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclPolicy field is set. + */ + @java.lang.Override + public boolean hasAclPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Required. The ACL policy that is to be created.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclPolicy. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicy getAclPolicy() { + return aclPolicy_ == null + ? com.google.cloud.redis.cluster.v1beta1.AclPolicy.getDefaultInstance() + : aclPolicy_; + } + + /** + * + * + *
          +   * Required. The ACL policy that is to be created.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder getAclPolicyOrBuilder() { + return aclPolicy_ == null + ? com.google.cloud.redis.cluster.v1beta1.AclPolicy.getDefaultInstance() + : aclPolicy_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * .
          +   * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * .
          +   * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(aclPolicyId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, aclPolicyId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAclPolicy()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(aclPolicyId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, aclPolicyId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAclPolicy()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + 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.redis.cluster.v1beta1.CreateAclPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest other = + (com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getAclPolicyId().equals(other.getAclPolicyId())) return false; + if (hasAclPolicy() != other.hasAclPolicy()) return false; + if (hasAclPolicy()) { + if (!getAclPolicy().equals(other.getAclPolicy())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + ACL_POLICY_ID_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicyId().hashCode(); + if (hasAclPolicy()) { + hash = (37 * hash) + ACL_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicy().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest 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.redis.cluster.v1beta1.CreateAclPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest 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.redis.cluster.v1beta1.CreateAclPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest 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.redis.cluster.v1beta1.CreateAclPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest 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.redis.cluster.v1beta1.CreateAclPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest 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.redis.cluster.v1beta1.CreateAclPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request for `CreateAclPolicy`.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest) + com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CreateAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CreateAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest.class, + com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAclPolicyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + aclPolicyId_ = ""; + aclPolicy_ = null; + if (aclPolicyBuilder_ != null) { + aclPolicyBuilder_.dispose(); + aclPolicyBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CreateAclPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest build() { + com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest buildPartial() { + com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest result = + new com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.aclPolicyId_ = aclPolicyId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.aclPolicy_ = aclPolicyBuilder_ == null ? aclPolicy_ : aclPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAclPolicyId().isEmpty()) { + aclPolicyId_ = other.aclPolicyId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAclPolicy()) { + mergeAclPolicy(other.getAclPolicy()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + aclPolicyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetAclPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
          +     * Required. The resource name of the cluster location using the form:
          +     * `projects/{project_id}/locations/{location_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The resource name of the cluster location using the form:
          +     * `projects/{project_id}/locations/{location_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The resource name of the cluster location using the form:
          +     * `projects/{project_id}/locations/{location_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The resource name of the cluster location using the form:
          +     * `projects/{project_id}/locations/{location_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The resource name of the cluster location using the form:
          +     * `projects/{project_id}/locations/{location_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object aclPolicyId_ = ""; + + /** + * + * + *
          +     * Required. The logical name of the ACL policy in the customer project
          +     * with the following restrictions:
          +     *
          +     * * Must contain only lowercase letters, numbers, and hyphens.
          +     * * Must start with a letter.
          +     * * Must be between 1-63 characters.
          +     * * Must end with a number or a letter.
          +     * * Must be unique within the customer project / location
          +     * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The aclPolicyId. + */ + public java.lang.String getAclPolicyId() { + java.lang.Object ref = aclPolicyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + aclPolicyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The logical name of the ACL policy in the customer project
          +     * with the following restrictions:
          +     *
          +     * * Must contain only lowercase letters, numbers, and hyphens.
          +     * * Must start with a letter.
          +     * * Must be between 1-63 characters.
          +     * * Must end with a number or a letter.
          +     * * Must be unique within the customer project / location
          +     * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for aclPolicyId. + */ + public com.google.protobuf.ByteString getAclPolicyIdBytes() { + java.lang.Object ref = aclPolicyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aclPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The logical name of the ACL policy in the customer project
          +     * with the following restrictions:
          +     *
          +     * * Must contain only lowercase letters, numbers, and hyphens.
          +     * * Must start with a letter.
          +     * * Must be between 1-63 characters.
          +     * * Must end with a number or a letter.
          +     * * Must be unique within the customer project / location
          +     * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The aclPolicyId to set. + * @return This builder for chaining. + */ + public Builder setAclPolicyId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + aclPolicyId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The logical name of the ACL policy in the customer project
          +     * with the following restrictions:
          +     *
          +     * * Must contain only lowercase letters, numbers, and hyphens.
          +     * * Must start with a letter.
          +     * * Must be between 1-63 characters.
          +     * * Must end with a number or a letter.
          +     * * Must be unique within the customer project / location
          +     * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAclPolicyId() { + aclPolicyId_ = getDefaultInstance().getAclPolicyId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The logical name of the ACL policy in the customer project
          +     * with the following restrictions:
          +     *
          +     * * Must contain only lowercase letters, numbers, and hyphens.
          +     * * Must start with a letter.
          +     * * Must be between 1-63 characters.
          +     * * Must end with a number or a letter.
          +     * * Must be unique within the customer project / location
          +     * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for aclPolicyId to set. + * @return This builder for chaining. + */ + public Builder setAclPolicyIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + aclPolicyId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.redis.cluster.v1beta1.AclPolicy aclPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclPolicy, + com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder, + com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder> + aclPolicyBuilder_; + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclPolicy field is set. + */ + public boolean hasAclPolicy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclPolicy. + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicy getAclPolicy() { + if (aclPolicyBuilder_ == null) { + return aclPolicy_ == null + ? com.google.cloud.redis.cluster.v1beta1.AclPolicy.getDefaultInstance() + : aclPolicy_; + } else { + return aclPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAclPolicy(com.google.cloud.redis.cluster.v1beta1.AclPolicy value) { + if (aclPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aclPolicy_ = value; + } else { + aclPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAclPolicy( + com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder builderForValue) { + if (aclPolicyBuilder_ == null) { + aclPolicy_ = builderForValue.build(); + } else { + aclPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAclPolicy(com.google.cloud.redis.cluster.v1beta1.AclPolicy value) { + if (aclPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && aclPolicy_ != null + && aclPolicy_ + != com.google.cloud.redis.cluster.v1beta1.AclPolicy.getDefaultInstance()) { + getAclPolicyBuilder().mergeFrom(value); + } else { + aclPolicy_ = value; + } + } else { + aclPolicyBuilder_.mergeFrom(value); + } + if (aclPolicy_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAclPolicy() { + bitField0_ = (bitField0_ & ~0x00000004); + aclPolicy_ = null; + if (aclPolicyBuilder_ != null) { + aclPolicyBuilder_.dispose(); + aclPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder getAclPolicyBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetAclPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder getAclPolicyOrBuilder() { + if (aclPolicyBuilder_ != null) { + return aclPolicyBuilder_.getMessageOrBuilder(); + } else { + return aclPolicy_ == null + ? com.google.cloud.redis.cluster.v1beta1.AclPolicy.getDefaultInstance() + : aclPolicy_; + } + } + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclPolicy, + com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder, + com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder> + internalGetAclPolicyFieldBuilder() { + if (aclPolicyBuilder_ == null) { + aclPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclPolicy, + com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder, + com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder>( + getAclPolicy(), getParentForChildren(), isClean()); + aclPolicy_ = null; + } + return aclPolicyBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * .
          +     * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * .
          +     * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * .
          +     * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * .
          +     * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * .
          +     * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest) + private static final com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest(); + } + + public static com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAclPolicyRequest 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.redis.cluster.v1beta1.CreateAclPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CreateAclPolicyRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CreateAclPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..5e9f4bd2882c --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CreateAclPolicyRequestOrBuilder.java @@ -0,0 +1,177 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +@com.google.protobuf.Generated +public interface CreateAclPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The resource name of the cluster location using the form:
          +   * `projects/{project_id}/locations/{location_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
          +   * Required. The resource name of the cluster location using the form:
          +   * `projects/{project_id}/locations/{location_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Required. The logical name of the ACL policy in the customer project
          +   * with the following restrictions:
          +   *
          +   * * Must contain only lowercase letters, numbers, and hyphens.
          +   * * Must start with a letter.
          +   * * Must be between 1-63 characters.
          +   * * Must end with a number or a letter.
          +   * * Must be unique within the customer project / location
          +   * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The aclPolicyId. + */ + java.lang.String getAclPolicyId(); + + /** + * + * + *
          +   * Required. The logical name of the ACL policy in the customer project
          +   * with the following restrictions:
          +   *
          +   * * Must contain only lowercase letters, numbers, and hyphens.
          +   * * Must start with a letter.
          +   * * Must be between 1-63 characters.
          +   * * Must end with a number or a letter.
          +   * * Must be unique within the customer project / location
          +   * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for aclPolicyId. + */ + com.google.protobuf.ByteString getAclPolicyIdBytes(); + + /** + * + * + *
          +   * Required. The ACL policy that is to be created.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclPolicy field is set. + */ + boolean hasAclPolicy(); + + /** + * + * + *
          +   * Required. The ACL policy that is to be created.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclPolicy. + */ + com.google.cloud.redis.cluster.v1beta1.AclPolicy getAclPolicy(); + + /** + * + * + *
          +   * Required. The ACL policy that is to be created.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder getAclPolicyOrBuilder(); + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * .
          +   * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * .
          +   * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/DeleteAclPolicyRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/DeleteAclPolicyRequest.java new file mode 100644 index 000000000000..4888dff1597d --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/DeleteAclPolicyRequest.java @@ -0,0 +1,1028 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
          + * Request for `DeleteAclPolicy`.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest} + */ +@com.google.protobuf.Generated +public final class DeleteAclPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest) + DeleteAclPolicyRequestOrBuilder { + 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= */ "", + "DeleteAclPolicyRequest"); + } + + // Use DeleteAclPolicyRequest.newBuilder() to construct. + private DeleteAclPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteAclPolicyRequest() { + name_ = ""; + requestId_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_DeleteAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_DeleteAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest.class, + com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Required. Redis ACL policy resource name using the form:
          +   * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. Redis ACL policy resource name using the form:
          +   * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
          +   * Optional. Etag of the ACL policy. If this is different from the server's
          +   * etag, the request will fail with an ABORTED error.
          +   * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Etag of the ACL policy. If this is different from the server's
          +   * etag, the request will fail with an ABORTED error.
          +   * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, etag_); + } + 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.redis.cluster.v1beta1.DeleteAclPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest other = + (com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest 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.redis.cluster.v1beta1.DeleteAclPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest 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.redis.cluster.v1beta1.DeleteAclPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest 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.redis.cluster.v1beta1.DeleteAclPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest 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.redis.cluster.v1beta1.DeleteAclPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest 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.redis.cluster.v1beta1.DeleteAclPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request for `DeleteAclPolicy`.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest) + com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_DeleteAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_DeleteAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest.class, + com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_DeleteAclPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest build() { + com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest buildPartial() { + com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest result = + new com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.etag_ = etag_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + etag_ = 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 name_ = ""; + + /** + * + * + *
          +     * Required. Redis ACL policy resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. Redis ACL policy resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. Redis ACL policy resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Redis ACL policy resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Redis ACL policy resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
          +     * Optional. Etag of the ACL policy. If this is different from the server's
          +     * etag, the request will fail with an ABORTED error.
          +     * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Etag of the ACL policy. If this is different from the server's
          +     * etag, the request will fail with an ABORTED error.
          +     * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Etag of the ACL policy. If this is different from the server's
          +     * etag, the request will fail with an ABORTED error.
          +     * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Etag of the ACL policy. If this is different from the server's
          +     * etag, the request will fail with an ABORTED error.
          +     * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Etag of the ACL policy. If this is different from the server's
          +     * etag, the request will fail with an ABORTED error.
          +     * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest) + private static final com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest(); + } + + public static com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAclPolicyRequest 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.redis.cluster.v1beta1.DeleteAclPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/DeleteAclPolicyRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/DeleteAclPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..b6c18729e71d --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/DeleteAclPolicyRequestOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +@com.google.protobuf.Generated +public interface DeleteAclPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Redis ACL policy resource name using the form:
          +   * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Required. Redis ACL policy resource name using the form:
          +   * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
          +   * Optional. Etag of the ACL policy. If this is different from the server's
          +   * etag, the request will fail with an ABORTED error.
          +   * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
          +   * Optional. Etag of the ACL policy. If this is different from the server's
          +   * etag, the request will fail with an ABORTED error.
          +   * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetAclPolicyRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetAclPolicyRequest.java new file mode 100644 index 000000000000..4135f5e1dcf2 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetAclPolicyRequest.java @@ -0,0 +1,625 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
          + * Request for `GetAclPolicy`.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest} + */ +@com.google.protobuf.Generated +public final class GetAclPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest) + GetAclPolicyRequestOrBuilder { + 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= */ "", + "GetAclPolicyRequest"); + } + + // Use GetAclPolicyRequest.newBuilder() to construct. + private GetAclPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAclPolicyRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest.class, + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Required. Redis ACL policy resource name using the form:
          +   * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. Redis ACL policy resource name using the form:
          +   * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.redis.cluster.v1beta1.GetAclPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest other = + (com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest 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.redis.cluster.v1beta1.GetAclPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest 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.redis.cluster.v1beta1.GetAclPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest 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.redis.cluster.v1beta1.GetAclPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest 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.redis.cluster.v1beta1.GetAclPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest 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.redis.cluster.v1beta1.GetAclPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request for `GetAclPolicy`.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest) + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest.class, + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetAclPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest build() { + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest buildPartial() { + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest result = + new com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest other) { + if (other == com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Required. Redis ACL policy resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. Redis ACL policy resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. Redis ACL policy resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Redis ACL policy resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Redis ACL policy resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest) + private static final com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest(); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAclPolicyRequest 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.redis.cluster.v1beta1.GetAclPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetAclPolicyRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetAclPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..aad0f7f85c97 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetAclPolicyRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +@com.google.protobuf.Generated +public interface GetAclPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Redis ACL policy resource name using the form:
          +   * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Required. Redis ACL policy resource name using the form:
          +   * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetAclPolicyRevisionRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetAclPolicyRevisionRequest.java new file mode 100644 index 000000000000..464725a1a7e7 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetAclPolicyRevisionRequest.java @@ -0,0 +1,636 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
          + * Request for `GetAclPolicyRevision`.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest} + */ +@com.google.protobuf.Generated +public final class GetAclPolicyRevisionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest) + GetAclPolicyRevisionRequestOrBuilder { + 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= */ "", + "GetAclPolicyRevisionRequest"); + } + + // Use GetAclPolicyRevisionRequest.newBuilder() to construct. + private GetAclPolicyRevisionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAclPolicyRevisionRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetAclPolicyRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetAclPolicyRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest.class, + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Required. Redis ACL policy revision resource name using the form:
          +   * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. Redis ACL policy revision resource name using the form:
          +   * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.redis.cluster.v1beta1.GetAclPolicyRevisionRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest other = + (com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest 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.redis.cluster.v1beta1.GetAclPolicyRevisionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest 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.redis.cluster.v1beta1.GetAclPolicyRevisionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest 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.redis.cluster.v1beta1.GetAclPolicyRevisionRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest + 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.redis.cluster.v1beta1.GetAclPolicyRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest 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.redis.cluster.v1beta1.GetAclPolicyRevisionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request for `GetAclPolicyRevision`.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest) + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetAclPolicyRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetAclPolicyRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest.class, + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest.Builder.class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetAclPolicyRevisionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest build() { + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest buildPartial() { + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest result = + new com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Required. Redis ACL policy revision resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. Redis ACL policy revision resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. Redis ACL policy revision resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Redis ACL policy revision resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Redis ACL policy revision resource name using the form:
          +     * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest) + private static final com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest(); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAclPolicyRevisionRequest 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.redis.cluster.v1beta1.GetAclPolicyRevisionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetAclPolicyRevisionRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetAclPolicyRevisionRequestOrBuilder.java new file mode 100644 index 000000000000..4bcfb1493371 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetAclPolicyRevisionRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +@com.google.protobuf.Generated +public interface GetAclPolicyRevisionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Redis ACL policy revision resource name using the form:
          +   * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Required. Redis ACL policy revision resource name using the form:
          +   * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListAclPoliciesRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListAclPoliciesRequest.java new file mode 100644 index 000000000000..6f84b738d286 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListAclPoliciesRequest.java @@ -0,0 +1,954 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
          + * Request for `ListAclPolicies`.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest} + */ +@com.google.protobuf.Generated +public final class ListAclPoliciesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest) + ListAclPoliciesRequestOrBuilder { + 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= */ "", + "ListAclPoliciesRequest"); + } + + // Use ListAclPoliciesRequest.newBuilder() to construct. + private ListAclPoliciesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAclPoliciesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListAclPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListAclPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest.class, + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
          +   * Required. The resource name of the ACL policy location using the form:
          +   * `projects/{project_id}/locations/{location_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The resource name of the ACL policy location using the form:
          +   * `projects/{project_id}/locations/{location_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
          +   * Optional. The maximum number of items to return.
          +   *
          +   * If not specified, a default value of 1000 will be used by the service.
          +   * Regardless of the page_size value, the response may include a partial list
          +   * and a caller should only rely on response's
          +   * [`next_page_token`][google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse.next_page_token]
          +   * to determine if there are more ACL policies left to be queried.
          +   *
          +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * `ListAclPolicies` request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * `ListAclPolicies` request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + 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.redis.cluster.v1beta1.ListAclPoliciesRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest other = + (com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest 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.redis.cluster.v1beta1.ListAclPoliciesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest 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.redis.cluster.v1beta1.ListAclPoliciesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest 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.redis.cluster.v1beta1.ListAclPoliciesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest 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.redis.cluster.v1beta1.ListAclPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest 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.redis.cluster.v1beta1.ListAclPoliciesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request for `ListAclPolicies`.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest) + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListAclPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListAclPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest.class, + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListAclPoliciesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest build() { + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest buildPartial() { + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest result = + new com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = 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 parent_ = ""; + + /** + * + * + *
          +     * Required. The resource name of the ACL policy location using the form:
          +     * `projects/{project_id}/locations/{location_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The resource name of the ACL policy location using the form:
          +     * `projects/{project_id}/locations/{location_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The resource name of the ACL policy location using the form:
          +     * `projects/{project_id}/locations/{location_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The resource name of the ACL policy location using the form:
          +     * `projects/{project_id}/locations/{location_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The resource name of the ACL policy location using the form:
          +     * `projects/{project_id}/locations/{location_id}`
          +     * where `location_id` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
          +     * Optional. The maximum number of items to return.
          +     *
          +     * If not specified, a default value of 1000 will be used by the service.
          +     * Regardless of the page_size value, the response may include a partial list
          +     * and a caller should only rely on response's
          +     * [`next_page_token`][google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse.next_page_token]
          +     * to determine if there are more ACL policies left to be queried.
          +     *
          +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
          +     * Optional. The maximum number of items to return.
          +     *
          +     * If not specified, a default value of 1000 will be used by the service.
          +     * Regardless of the page_size value, the response may include a partial list
          +     * and a caller should only rely on response's
          +     * [`next_page_token`][google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse.next_page_token]
          +     * to determine if there are more ACL policies left to be queried.
          +     *
          +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The maximum number of items to return.
          +     *
          +     * If not specified, a default value of 1000 will be used by the service.
          +     * Regardless of the page_size value, the response may include a partial list
          +     * and a caller should only rely on response's
          +     * [`next_page_token`][google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse.next_page_token]
          +     * to determine if there are more ACL policies left to be queried.
          +     *
          +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicies` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicies` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicies` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicies` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicies` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest) + private static final com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest(); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAclPoliciesRequest 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.redis.cluster.v1beta1.ListAclPoliciesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListAclPoliciesRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListAclPoliciesRequestOrBuilder.java new file mode 100644 index 000000000000..7e0b49a29dbe --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListAclPoliciesRequestOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +@com.google.protobuf.Generated +public interface ListAclPoliciesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The resource name of the ACL policy location using the form:
          +   * `projects/{project_id}/locations/{location_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
          +   * Required. The resource name of the ACL policy location using the form:
          +   * `projects/{project_id}/locations/{location_id}`
          +   * where `location_id` refers to a Google Cloud region.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Optional. The maximum number of items to return.
          +   *
          +   * If not specified, a default value of 1000 will be used by the service.
          +   * Regardless of the page_size value, the response may include a partial list
          +   * and a caller should only rely on response's
          +   * [`next_page_token`][google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse.next_page_token]
          +   * to determine if there are more ACL policies left to be queried.
          +   *
          +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * `ListAclPolicies` request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * `ListAclPolicies` request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListAclPoliciesResponse.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListAclPoliciesResponse.java new file mode 100644 index 000000000000..e7945aefb903 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListAclPoliciesResponse.java @@ -0,0 +1,1516 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
          + * Response for `ListAclPolicies`.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse} + */ +@com.google.protobuf.Generated +public final class ListAclPoliciesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse) + ListAclPoliciesResponseOrBuilder { + 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= */ "", + "ListAclPoliciesResponse"); + } + + // Use ListAclPoliciesResponse.newBuilder() to construct. + private ListAclPoliciesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAclPoliciesResponse() { + aclPolicies_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListAclPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListAclPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse.class, + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse.Builder.class); + } + + public static final int ACL_POLICIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List aclPolicies_; + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location_id` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + @java.lang.Override + public java.util.List getAclPoliciesList() { + return aclPolicies_; + } + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location_id` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + @java.lang.Override + public java.util.List + getAclPoliciesOrBuilderList() { + return aclPolicies_; + } + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location_id` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + @java.lang.Override + public int getAclPoliciesCount() { + return aclPolicies_.size(); + } + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location_id` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicy getAclPolicies(int index) { + return aclPolicies_.get(index); + } + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location_id` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder getAclPoliciesOrBuilder( + int index) { + return aclPolicies_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < aclPolicies_.size(); i++) { + output.writeMessage(1, aclPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < aclPolicies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, aclPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse other = + (com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse) obj; + + if (!getAclPoliciesList().equals(other.getAclPoliciesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAclPoliciesCount() > 0) { + hash = (37 * hash) + ACL_POLICIES_FIELD_NUMBER; + hash = (53 * hash) + getAclPoliciesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse 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.redis.cluster.v1beta1.ListAclPoliciesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse 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.redis.cluster.v1beta1.ListAclPoliciesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse 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.redis.cluster.v1beta1.ListAclPoliciesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse 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.redis.cluster.v1beta1.ListAclPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse 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.redis.cluster.v1beta1.ListAclPoliciesResponse 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; + } + + /** + * + * + *
          +   * Response for `ListAclPolicies`.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse) + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListAclPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListAclPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse.class, + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (aclPoliciesBuilder_ == null) { + aclPolicies_ = java.util.Collections.emptyList(); + } else { + aclPolicies_ = null; + aclPoliciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListAclPoliciesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse build() { + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse buildPartial() { + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse result = + new com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse result) { + if (aclPoliciesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + aclPolicies_ = java.util.Collections.unmodifiableList(aclPolicies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.aclPolicies_ = aclPolicies_; + } else { + result.aclPolicies_ = aclPoliciesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse.getDefaultInstance()) + return this; + if (aclPoliciesBuilder_ == null) { + if (!other.aclPolicies_.isEmpty()) { + if (aclPolicies_.isEmpty()) { + aclPolicies_ = other.aclPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAclPoliciesIsMutable(); + aclPolicies_.addAll(other.aclPolicies_); + } + onChanged(); + } + } else { + if (!other.aclPolicies_.isEmpty()) { + if (aclPoliciesBuilder_.isEmpty()) { + aclPoliciesBuilder_.dispose(); + aclPoliciesBuilder_ = null; + aclPolicies_ = other.aclPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + aclPoliciesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAclPoliciesFieldBuilder() + : null; + } else { + aclPoliciesBuilder_.addAllMessages(other.aclPolicies_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + 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: + { + com.google.cloud.redis.cluster.v1beta1.AclPolicy m = + input.readMessage( + com.google.cloud.redis.cluster.v1beta1.AclPolicy.parser(), + extensionRegistry); + if (aclPoliciesBuilder_ == null) { + ensureAclPoliciesIsMutable(); + aclPolicies_.add(m); + } else { + aclPoliciesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + 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.util.List aclPolicies_ = + java.util.Collections.emptyList(); + + private void ensureAclPoliciesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + aclPolicies_ = + new java.util.ArrayList(aclPolicies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclPolicy, + com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder, + com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder> + aclPoliciesBuilder_; + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + public java.util.List getAclPoliciesList() { + if (aclPoliciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(aclPolicies_); + } else { + return aclPoliciesBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + public int getAclPoliciesCount() { + if (aclPoliciesBuilder_ == null) { + return aclPolicies_.size(); + } else { + return aclPoliciesBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicy getAclPolicies(int index) { + if (aclPoliciesBuilder_ == null) { + return aclPolicies_.get(index); + } else { + return aclPoliciesBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + public Builder setAclPolicies( + int index, com.google.cloud.redis.cluster.v1beta1.AclPolicy value) { + if (aclPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPoliciesIsMutable(); + aclPolicies_.set(index, value); + onChanged(); + } else { + aclPoliciesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + public Builder setAclPolicies( + int index, com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder builderForValue) { + if (aclPoliciesBuilder_ == null) { + ensureAclPoliciesIsMutable(); + aclPolicies_.set(index, builderForValue.build()); + onChanged(); + } else { + aclPoliciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + public Builder addAclPolicies(com.google.cloud.redis.cluster.v1beta1.AclPolicy value) { + if (aclPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPoliciesIsMutable(); + aclPolicies_.add(value); + onChanged(); + } else { + aclPoliciesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + public Builder addAclPolicies( + int index, com.google.cloud.redis.cluster.v1beta1.AclPolicy value) { + if (aclPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPoliciesIsMutable(); + aclPolicies_.add(index, value); + onChanged(); + } else { + aclPoliciesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + public Builder addAclPolicies( + com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder builderForValue) { + if (aclPoliciesBuilder_ == null) { + ensureAclPoliciesIsMutable(); + aclPolicies_.add(builderForValue.build()); + onChanged(); + } else { + aclPoliciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + public Builder addAclPolicies( + int index, com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder builderForValue) { + if (aclPoliciesBuilder_ == null) { + ensureAclPoliciesIsMutable(); + aclPolicies_.add(index, builderForValue.build()); + onChanged(); + } else { + aclPoliciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + public Builder addAllAclPolicies( + java.lang.Iterable values) { + if (aclPoliciesBuilder_ == null) { + ensureAclPoliciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aclPolicies_); + onChanged(); + } else { + aclPoliciesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + public Builder clearAclPolicies() { + if (aclPoliciesBuilder_ == null) { + aclPolicies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + aclPoliciesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + public Builder removeAclPolicies(int index) { + if (aclPoliciesBuilder_ == null) { + ensureAclPoliciesIsMutable(); + aclPolicies_.remove(index); + onChanged(); + } else { + aclPoliciesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder getAclPoliciesBuilder( + int index) { + return internalGetAclPoliciesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder getAclPoliciesOrBuilder( + int index) { + if (aclPoliciesBuilder_ == null) { + return aclPolicies_.get(index); + } else { + return aclPoliciesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + public java.util.List + getAclPoliciesOrBuilderList() { + if (aclPoliciesBuilder_ != null) { + return aclPoliciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(aclPolicies_); + } + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder addAclPoliciesBuilder() { + return internalGetAclPoliciesFieldBuilder() + .addBuilder(com.google.cloud.redis.cluster.v1beta1.AclPolicy.getDefaultInstance()); + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder addAclPoliciesBuilder( + int index) { + return internalGetAclPoliciesFieldBuilder() + .addBuilder(index, com.google.cloud.redis.cluster.v1beta1.AclPolicy.getDefaultInstance()); + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location_id` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + public java.util.List + getAclPoliciesBuilderList() { + return internalGetAclPoliciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclPolicy, + com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder, + com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder> + internalGetAclPoliciesFieldBuilder() { + if (aclPoliciesBuilder_ == null) { + aclPoliciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclPolicy, + com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder, + com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder>( + aclPolicies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + aclPolicies_ = null; + } + return aclPoliciesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse) + private static final com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse(); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAclPoliciesResponse 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.redis.cluster.v1beta1.ListAclPoliciesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListAclPoliciesResponseOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListAclPoliciesResponseOrBuilder.java new file mode 100644 index 000000000000..29ef1ee1c135 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListAclPoliciesResponseOrBuilder.java @@ -0,0 +1,186 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +@com.google.protobuf.Generated +public interface ListAclPoliciesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location_id` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + java.util.List getAclPoliciesList(); + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location_id` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + com.google.cloud.redis.cluster.v1beta1.AclPolicy getAclPolicies(int index); + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location_id` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + int getAclPoliciesCount(); + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location_id` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + java.util.List + getAclPoliciesOrBuilderList(); + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location_id` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policies = 1; + */ + com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder getAclPoliciesOrBuilder(int index); + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListAclPolicyRevisionsRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListAclPolicyRevisionsRequest.java new file mode 100644 index 000000000000..8fce375d4bf7 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListAclPolicyRevisionsRequest.java @@ -0,0 +1,929 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
          + * Request for `ListAclPolicyRevisions`.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest} + */ +@com.google.protobuf.Generated +public final class ListAclPolicyRevisionsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest) + ListAclPolicyRevisionsRequestOrBuilder { + 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= */ "", + "ListAclPolicyRevisionsRequest"); + } + + // Use ListAclPolicyRevisionsRequest.newBuilder() to construct. + private ListAclPolicyRevisionsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAclPolicyRevisionsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListAclPolicyRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListAclPolicyRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest.class, + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
          +   * Required. The name of the ACL policy to list revisions for.
          +   * Format:
          +   * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}"
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The name of the ACL policy to list revisions for.
          +   * Format:
          +   * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}"
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
          +   * Optional. The maximum number of items to return.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * `ListAclPolicyRevisions` request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * `ListAclPolicyRevisions` request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + 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.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest other = + (com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest 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.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest 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.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest 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.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest + 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.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest 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.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request for `ListAclPolicyRevisions`.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest) + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListAclPolicyRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListAclPolicyRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest.class, + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListAclPolicyRevisionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest build() { + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest buildPartial() { + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest result = + new com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = 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 parent_ = ""; + + /** + * + * + *
          +     * Required. The name of the ACL policy to list revisions for.
          +     * Format:
          +     * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}"
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The name of the ACL policy to list revisions for.
          +     * Format:
          +     * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}"
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The name of the ACL policy to list revisions for.
          +     * Format:
          +     * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}"
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The name of the ACL policy to list revisions for.
          +     * Format:
          +     * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}"
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The name of the ACL policy to list revisions for.
          +     * Format:
          +     * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}"
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
          +     * Optional. The maximum number of items to return.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
          +     * Optional. The maximum number of items to return.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The maximum number of items to return.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicyRevisions` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicyRevisions` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicyRevisions` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicyRevisions` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicyRevisions` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest) + private static final com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest(); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAclPolicyRevisionsRequest 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.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListAclPolicyRevisionsRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListAclPolicyRevisionsRequestOrBuilder.java new file mode 100644 index 000000000000..b3f179f203a1 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListAclPolicyRevisionsRequestOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +@com.google.protobuf.Generated +public interface ListAclPolicyRevisionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The name of the ACL policy to list revisions for.
          +   * Format:
          +   * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}"
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
          +   * Required. The name of the ACL policy to list revisions for.
          +   * Format:
          +   * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}"
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Optional. The maximum number of items to return.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * `ListAclPolicyRevisions` request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * `ListAclPolicyRevisions` request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListAclPolicyRevisionsResponse.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListAclPolicyRevisionsResponse.java new file mode 100644 index 000000000000..64f130721ae0 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListAclPolicyRevisionsResponse.java @@ -0,0 +1,1487 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
          + * Response for `ListAclPolicyRevisions`.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse} + */ +@com.google.protobuf.Generated +public final class ListAclPolicyRevisionsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse) + ListAclPolicyRevisionsResponseOrBuilder { + 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= */ "", + "ListAclPolicyRevisionsResponse"); + } + + // Use ListAclPolicyRevisionsResponse.newBuilder() to construct. + private ListAclPolicyRevisionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAclPolicyRevisionsResponse() { + aclPolicyRevisions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListAclPolicyRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListAclPolicyRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse.class, + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse.Builder.class); + } + + public static final int ACL_POLICY_REVISIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + aclPolicyRevisions_; + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + @java.lang.Override + public java.util.List + getAclPolicyRevisionsList() { + return aclPolicyRevisions_; + } + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + @java.lang.Override + public java.util.List + getAclPolicyRevisionsOrBuilderList() { + return aclPolicyRevisions_; + } + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + @java.lang.Override + public int getAclPolicyRevisionsCount() { + return aclPolicyRevisions_.size(); + } + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision getAclPolicyRevisions(int index) { + return aclPolicyRevisions_.get(index); + } + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionOrBuilder + getAclPolicyRevisionsOrBuilder(int index) { + return aclPolicyRevisions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < aclPolicyRevisions_.size(); i++) { + output.writeMessage(1, aclPolicyRevisions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < aclPolicyRevisions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, aclPolicyRevisions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse other = + (com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse) obj; + + if (!getAclPolicyRevisionsList().equals(other.getAclPolicyRevisionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAclPolicyRevisionsCount() > 0) { + hash = (37 * hash) + ACL_POLICY_REVISIONS_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicyRevisionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse 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.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse 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.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse 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.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse + 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.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse 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.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse 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; + } + + /** + * + * + *
          +   * Response for `ListAclPolicyRevisions`.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse) + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListAclPolicyRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListAclPolicyRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse.class, + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (aclPolicyRevisionsBuilder_ == null) { + aclPolicyRevisions_ = java.util.Collections.emptyList(); + } else { + aclPolicyRevisions_ = null; + aclPolicyRevisionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListAclPolicyRevisionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse build() { + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse buildPartial() { + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse result = + new com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse result) { + if (aclPolicyRevisionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + aclPolicyRevisions_ = java.util.Collections.unmodifiableList(aclPolicyRevisions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.aclPolicyRevisions_ = aclPolicyRevisions_; + } else { + result.aclPolicyRevisions_ = aclPolicyRevisionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse + .getDefaultInstance()) return this; + if (aclPolicyRevisionsBuilder_ == null) { + if (!other.aclPolicyRevisions_.isEmpty()) { + if (aclPolicyRevisions_.isEmpty()) { + aclPolicyRevisions_ = other.aclPolicyRevisions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.addAll(other.aclPolicyRevisions_); + } + onChanged(); + } + } else { + if (!other.aclPolicyRevisions_.isEmpty()) { + if (aclPolicyRevisionsBuilder_.isEmpty()) { + aclPolicyRevisionsBuilder_.dispose(); + aclPolicyRevisionsBuilder_ = null; + aclPolicyRevisions_ = other.aclPolicyRevisions_; + bitField0_ = (bitField0_ & ~0x00000001); + aclPolicyRevisionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAclPolicyRevisionsFieldBuilder() + : null; + } else { + aclPolicyRevisionsBuilder_.addAllMessages(other.aclPolicyRevisions_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + 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: + { + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision m = + input.readMessage( + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision.parser(), + extensionRegistry); + if (aclPolicyRevisionsBuilder_ == null) { + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.add(m); + } else { + aclPolicyRevisionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + 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.util.List + aclPolicyRevisions_ = java.util.Collections.emptyList(); + + private void ensureAclPolicyRevisionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + aclPolicyRevisions_ = + new java.util.ArrayList( + aclPolicyRevisions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision.Builder, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionOrBuilder> + aclPolicyRevisionsBuilder_; + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public java.util.List + getAclPolicyRevisionsList() { + if (aclPolicyRevisionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(aclPolicyRevisions_); + } else { + return aclPolicyRevisionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public int getAclPolicyRevisionsCount() { + if (aclPolicyRevisionsBuilder_ == null) { + return aclPolicyRevisions_.size(); + } else { + return aclPolicyRevisionsBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision getAclPolicyRevisions( + int index) { + if (aclPolicyRevisionsBuilder_ == null) { + return aclPolicyRevisions_.get(index); + } else { + return aclPolicyRevisionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder setAclPolicyRevisions( + int index, com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision value) { + if (aclPolicyRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.set(index, value); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder setAclPolicyRevisions( + int index, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision.Builder builderForValue) { + if (aclPolicyRevisionsBuilder_ == null) { + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.set(index, builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder addAclPolicyRevisions( + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision value) { + if (aclPolicyRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.add(value); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder addAclPolicyRevisions( + int index, com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision value) { + if (aclPolicyRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.add(index, value); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder addAclPolicyRevisions( + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision.Builder builderForValue) { + if (aclPolicyRevisionsBuilder_ == null) { + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.add(builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder addAclPolicyRevisions( + int index, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision.Builder builderForValue) { + if (aclPolicyRevisionsBuilder_ == null) { + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.add(index, builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder addAllAclPolicyRevisions( + java.lang.Iterable + values) { + if (aclPolicyRevisionsBuilder_ == null) { + ensureAclPolicyRevisionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aclPolicyRevisions_); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder clearAclPolicyRevisions() { + if (aclPolicyRevisionsBuilder_ == null) { + aclPolicyRevisions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder removeAclPolicyRevisions(int index) { + if (aclPolicyRevisionsBuilder_ == null) { + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.remove(index); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision.Builder + getAclPolicyRevisionsBuilder(int index) { + return internalGetAclPolicyRevisionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionOrBuilder + getAclPolicyRevisionsOrBuilder(int index) { + if (aclPolicyRevisionsBuilder_ == null) { + return aclPolicyRevisions_.get(index); + } else { + return aclPolicyRevisionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionOrBuilder> + getAclPolicyRevisionsOrBuilderList() { + if (aclPolicyRevisionsBuilder_ != null) { + return aclPolicyRevisionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(aclPolicyRevisions_); + } + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision.Builder + addAclPolicyRevisionsBuilder() { + return internalGetAclPolicyRevisionsFieldBuilder() + .addBuilder( + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision.getDefaultInstance()); + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision.Builder + addAclPolicyRevisionsBuilder(int index) { + return internalGetAclPolicyRevisionsFieldBuilder() + .addBuilder( + index, com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision.getDefaultInstance()); + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public java.util.List + getAclPolicyRevisionsBuilderList() { + return internalGetAclPolicyRevisionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision.Builder, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionOrBuilder> + internalGetAclPolicyRevisionsFieldBuilder() { + if (aclPolicyRevisionsBuilder_ == null) { + aclPolicyRevisionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision.Builder, + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionOrBuilder>( + aclPolicyRevisions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + aclPolicyRevisions_ = null; + } + return aclPolicyRevisionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse) + private static final com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse(); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAclPolicyRevisionsResponse 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.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListAclPolicyRevisionsResponseOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListAclPolicyRevisionsResponseOrBuilder.java new file mode 100644 index 000000000000..ff2d046e8c99 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListAclPolicyRevisionsResponseOrBuilder.java @@ -0,0 +1,173 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +@com.google.protobuf.Generated +public interface ListAclPolicyRevisionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + java.util.List + getAclPolicyRevisionsList(); + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision getAclPolicyRevisions(int index); + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + int getAclPolicyRevisionsCount(); + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + java.util.List + getAclPolicyRevisionsOrBuilderList(); + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.redis.cluster.v1beta1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionOrBuilder getAclPolicyRevisionsOrBuilder( + int index); + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/UpdateAclPolicyRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/UpdateAclPolicyRequest.java new file mode 100644 index 000000000000..b3291baaf5a9 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/UpdateAclPolicyRequest.java @@ -0,0 +1,1270 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
          + * Request for `UpdateAclPolicy`.
          + * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest} + */ +@com.google.protobuf.Generated +public final class UpdateAclPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest) + UpdateAclPolicyRequestOrBuilder { + 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= */ "", + "UpdateAclPolicyRequest"); + } + + // Use UpdateAclPolicyRequest.newBuilder() to construct. + private UpdateAclPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateAclPolicyRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_UpdateAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_UpdateAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest.class, + com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int ACL_POLICY_FIELD_NUMBER = 1; + private com.google.cloud.redis.cluster.v1beta1.AclPolicy aclPolicy_; + + /** + * + * + *
          +   * Required. The ACL policy to be updated.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclPolicy field is set. + */ + @java.lang.Override + public boolean hasAclPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Required. The ACL policy to be updated.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclPolicy. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicy getAclPolicy() { + return aclPolicy_ == null + ? com.google.cloud.redis.cluster.v1beta1.AclPolicy.getDefaultInstance() + : aclPolicy_; + } + + /** + * + * + *
          +   * Required. The ACL policy to be updated.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder getAclPolicyOrBuilder() { + return aclPolicy_ == null + ? com.google.cloud.redis.cluster.v1beta1.AclPolicy.getDefaultInstance() + : aclPolicy_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
          +   * Optional. Mask of fields to be updated. At least one path must be supplied
          +   * in this field. The elements of the repeated paths field may only include
          +   * these fields from `AclPolicy`:
          +   *
          +   * *   `rules`
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +   * Optional. Mask of fields to be updated. At least one path must be supplied
          +   * in this field. The elements of the repeated paths field may only include
          +   * these fields from `AclPolicy`:
          +   *
          +   * *   `rules`
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
          +   * Optional. Mask of fields to be updated. At least one path must be supplied
          +   * in this field. The elements of the repeated paths field may only include
          +   * these fields from `AclPolicy`:
          +   *
          +   * *   `rules`
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAclPolicy()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAclPolicy()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + 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.redis.cluster.v1beta1.UpdateAclPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest other = + (com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest) obj; + + if (hasAclPolicy() != other.hasAclPolicy()) return false; + if (hasAclPolicy()) { + if (!getAclPolicy().equals(other.getAclPolicy())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAclPolicy()) { + hash = (37 * hash) + ACL_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicy().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest 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.redis.cluster.v1beta1.UpdateAclPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest 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.redis.cluster.v1beta1.UpdateAclPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest 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.redis.cluster.v1beta1.UpdateAclPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest 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.redis.cluster.v1beta1.UpdateAclPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest 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.redis.cluster.v1beta1.UpdateAclPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request for `UpdateAclPolicy`.
          +   * 
          + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest) + com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_UpdateAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_UpdateAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest.class, + com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAclPolicyFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + aclPolicy_ = null; + if (aclPolicyBuilder_ != null) { + aclPolicyBuilder_.dispose(); + aclPolicyBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_UpdateAclPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest build() { + com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest buildPartial() { + com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest result = + new com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.aclPolicy_ = aclPolicyBuilder_ == null ? aclPolicy_ : aclPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest.getDefaultInstance()) + return this; + if (other.hasAclPolicy()) { + mergeAclPolicy(other.getAclPolicy()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + input.readMessage( + internalGetAclPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = 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 com.google.cloud.redis.cluster.v1beta1.AclPolicy aclPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclPolicy, + com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder, + com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder> + aclPolicyBuilder_; + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclPolicy field is set. + */ + public boolean hasAclPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclPolicy. + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicy getAclPolicy() { + if (aclPolicyBuilder_ == null) { + return aclPolicy_ == null + ? com.google.cloud.redis.cluster.v1beta1.AclPolicy.getDefaultInstance() + : aclPolicy_; + } else { + return aclPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAclPolicy(com.google.cloud.redis.cluster.v1beta1.AclPolicy value) { + if (aclPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aclPolicy_ = value; + } else { + aclPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAclPolicy( + com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder builderForValue) { + if (aclPolicyBuilder_ == null) { + aclPolicy_ = builderForValue.build(); + } else { + aclPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAclPolicy(com.google.cloud.redis.cluster.v1beta1.AclPolicy value) { + if (aclPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && aclPolicy_ != null + && aclPolicy_ + != com.google.cloud.redis.cluster.v1beta1.AclPolicy.getDefaultInstance()) { + getAclPolicyBuilder().mergeFrom(value); + } else { + aclPolicy_ = value; + } + } else { + aclPolicyBuilder_.mergeFrom(value); + } + if (aclPolicy_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAclPolicy() { + bitField0_ = (bitField0_ & ~0x00000001); + aclPolicy_ = null; + if (aclPolicyBuilder_ != null) { + aclPolicyBuilder_.dispose(); + aclPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder getAclPolicyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAclPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder getAclPolicyOrBuilder() { + if (aclPolicyBuilder_ != null) { + return aclPolicyBuilder_.getMessageOrBuilder(); + } else { + return aclPolicy_ == null + ? com.google.cloud.redis.cluster.v1beta1.AclPolicy.getDefaultInstance() + : aclPolicy_; + } + } + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclPolicy, + com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder, + com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder> + internalGetAclPolicyFieldBuilder() { + if (aclPolicyBuilder_ == null) { + aclPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.redis.cluster.v1beta1.AclPolicy, + com.google.cloud.redis.cluster.v1beta1.AclPolicy.Builder, + com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder>( + getAclPolicy(), getParentForChildren(), isClean()); + aclPolicy_ = null; + } + return aclPolicyBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest) + private static final com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest(); + } + + public static com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAclPolicyRequest 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.redis.cluster.v1beta1.UpdateAclPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/UpdateAclPolicyRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/UpdateAclPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..5dbeb67a40a7 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/UpdateAclPolicyRequestOrBuilder.java @@ -0,0 +1,153 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.redis.cluster.v1beta1; + +@com.google.protobuf.Generated +public interface UpdateAclPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The ACL policy to be updated.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclPolicy field is set. + */ + boolean hasAclPolicy(); + + /** + * + * + *
          +   * Required. The ACL policy to be updated.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclPolicy. + */ + com.google.cloud.redis.cluster.v1beta1.AclPolicy getAclPolicy(); + + /** + * + * + *
          +   * Required. The ACL policy to be updated.
          +   * 
          + * + * + * .google.cloud.redis.cluster.v1beta1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.redis.cluster.v1beta1.AclPolicyOrBuilder getAclPolicyOrBuilder(); + + /** + * + * + *
          +   * Optional. Mask of fields to be updated. At least one path must be supplied
          +   * in this field. The elements of the repeated paths field may only include
          +   * these fields from `AclPolicy`:
          +   *
          +   * *   `rules`
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
          +   * Optional. Mask of fields to be updated. At least one path must be supplied
          +   * in this field. The elements of the repeated paths field may only include
          +   * these fields from `AclPolicy`:
          +   *
          +   * *   `rules`
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
          +   * Optional. Mask of fields to be updated. At least one path must be supplied
          +   * in this field. The elements of the repeated paths field may only include
          +   * these fields from `AclPolicy`:
          +   *
          +   * *   `rules`
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/proto/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/proto/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto index 3abba8a42277..9f1de4811ab4 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/proto/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/proto/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto @@ -96,6 +96,23 @@ service CloudRedisCluster { option (google.api.method_signature) = "parent"; } + // Lists all ACL policies owned by a project in either the specified + // location (region) or all locations. + // + // The location should have the following format: + // + // * `projects/{project_id}/locations/{location_id}` + // + // If `location_id` is specified as `-` (wildcard), then all regions + // available to the project are queried, and the results are aggregated. + rpc ListAclPolicies(ListAclPoliciesRequest) + returns (ListAclPoliciesResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/aclPolicies" + }; + option (google.api.method_signature) = "parent"; + } + // Gets the details of a specific Redis cluster. rpc GetCluster(GetClusterRequest) returns (Cluster) { option (google.api.http) = { @@ -104,6 +121,14 @@ service CloudRedisCluster { option (google.api.method_signature) = "name"; } + // Gets the details of a specific Redis Cluster ACL policy. + rpc GetAclPolicy(GetAclPolicyRequest) returns (AclPolicy) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/aclPolicies/*}" + }; + option (google.api.method_signature) = "name"; + } + // Updates the metadata and configuration of a specific Redis cluster. // // Completed longrunning.Operation will contain the new cluster object @@ -122,6 +147,29 @@ service CloudRedisCluster { }; } + // Updates the ACL policy. + // + // The operation applies the updated ACL policy to all of the linked clusters. + // If Memorystore can apply the policy to all clusters, then the operation + // returns a SUCCESS status. If Memorystore can't apply the policy to all + // clusters, then to ensure eventual consistency, Memorystore uses + // reconciliation to apply the policy to the failed clusters. + // + // Completed longrunning.Operation will contain the new ACL policy object in + // the response field. + rpc UpdateAclPolicy(UpdateAclPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1beta1/{acl_policy.name=projects/*/locations/*/aclPolicies/*}" + body: "acl_policy" + }; + option (google.api.method_signature) = "acl_policy,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "AclPolicy" + metadata_type: "OperationMetadata" + }; + } + // Deletes a specific Redis cluster. Cluster stops serving and data is // deleted. rpc DeleteCluster(DeleteClusterRequest) @@ -136,6 +184,39 @@ service CloudRedisCluster { }; } + // Deletes a specific ACL policy. This action will delete the ACL policy and + // all the rules associated with it. An ACL policy cannot be deleted if it is + // attached to a cluster. + rpc DeleteAclPolicy(DeleteAclPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/aclPolicies/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Gets details of a specific ACL policy revision. + rpc GetAclPolicyRevision(GetAclPolicyRevisionRequest) + returns (AclPolicyRevision) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/aclPolicies/*/revisions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all ACL policy revisions in a given ACL policy. + rpc ListAclPolicyRevisions(ListAclPolicyRevisionsRequest) + returns (ListAclPolicyRevisionsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/aclPolicies/*}/revisions" + }; + option (google.api.method_signature) = "parent"; + } + // Creates a Redis cluster based on the specified properties. // The creation is executed asynchronously and callers may check the returned // operation to track its progress. Once the operation is completed the Redis @@ -157,6 +238,17 @@ service CloudRedisCluster { }; } + // Creates an ACL policy. + // The creation is executed synchronously and the policy is available for use + // immediately after the RPC returns. + rpc CreateAclPolicy(CreateAclPolicyRequest) returns (AclPolicy) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/aclPolicies" + body: "acl_policy" + }; + option (google.api.method_signature) = "parent,acl_policy,acl_policy_id"; + } + // Gets the details of certificate authority information for Redis cluster. rpc GetClusterCertificateAuthority(GetClusterCertificateAuthorityRequest) returns (CertificateAuthority) { @@ -401,6 +493,39 @@ message CreateClusterRequest { string request_id = 4; } +// Request for `CreateAclPolicy`. +message CreateAclPolicyRequest { + // Required. The resource name of the cluster location using the form: + // `projects/{project_id}/locations/{location_id}` + // where `location_id` refers to a Google Cloud region. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "redis.googleapis.com/AclPolicy" + } + ]; + + // Required. The logical name of the ACL policy in the customer project + // with the following restrictions: + // + // * Must contain only lowercase letters, numbers, and hyphens. + // * Must start with a letter. + // * Must be between 1-63 characters. + // * Must end with a number or a letter. + // * Must be unique within the customer project / location + string acl_policy_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ACL policy that is to be created. + AclPolicy acl_policy = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Idempotent request UUID. + // . + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + // Request for [ListClusters][CloudRedis.ListClusters]. message ListClustersRequest { // Required. The resource name of the cluster location using the form: @@ -450,6 +575,86 @@ message ListClustersResponse { repeated string unreachable = 3; } +// Request for `ListAclPolicies`. +message ListAclPoliciesRequest { + // Required. The resource name of the ACL policy location using the form: + // `projects/{project_id}/locations/{location_id}` + // where `location_id` refers to a Google Cloud region. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "redis.googleapis.com/AclPolicy" + } + ]; + + // Optional. The maximum number of items to return. + // + // If not specified, a default value of 1000 will be used by the service. + // Regardless of the page_size value, the response may include a partial list + // and a caller should only rely on response's + // [`next_page_token`][google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse.next_page_token] + // to determine if there are more ACL policies left to be queried. + // + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The `next_page_token` value returned from a previous + // `ListAclPolicies` request, if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for `ListAclPolicies`. +message ListAclPoliciesResponse { + // A list of ACL policies in the project in the specified location, + // or across all locations. + // + // If the `location_id` in the parent field of the request is "-", all regions + // available to the project are queried, and the results aggregated. + repeated AclPolicy acl_policies = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; + + // Unordered list. Locations that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + +// Request for `ListAclPolicyRevisions`. +message ListAclPolicyRevisionsRequest { + // Required. The name of the ACL policy to list revisions for. + // Format: + // "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "redis.googleapis.com/AclPolicyRevision" + } + ]; + + // Optional. The maximum number of items to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The `next_page_token` value returned from a previous + // `ListAclPolicyRevisions` request, if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for `ListAclPolicyRevisions`. +message ListAclPolicyRevisionsResponse { + // A list of ACL policy revisions. + repeated AclPolicyRevision acl_policy_revisions = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; + + // Unordered list. Locations that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + // Request for [UpdateCluster][CloudRedis.UpdateCluster]. message UpdateClusterRequest { // Required. Mask of fields to update. At least one path must be supplied in @@ -469,6 +674,26 @@ message UpdateClusterRequest { string request_id = 3; } +// Request for `UpdateAclPolicy`. +message UpdateAclPolicyRequest { + // Required. The ACL policy to be updated. + AclPolicy acl_policy = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Mask of fields to be updated. At least one path must be supplied + // in this field. The elements of the repeated paths field may only include + // these fields from `AclPolicy`: + // + // * `rules` + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Idempotent request UUID. + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + // Request for [GetCluster][CloudRedis.GetCluster]. message GetClusterRequest { // Required. Redis cluster resource name using the form: @@ -480,6 +705,30 @@ message GetClusterRequest { ]; } +// Request for `GetAclPolicy`. +message GetAclPolicyRequest { + // Required. Redis ACL policy resource name using the form: + // `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` + // where `location_id` refers to a Google Cloud region. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "redis.googleapis.com/AclPolicy" } + ]; +} + +// Request for `GetAclPolicyRevision`. +message GetAclPolicyRevisionRequest { + // Required. Redis ACL policy revision resource name using the form: + // `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}` + // where `location_id` refers to a Google Cloud region. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "redis.googleapis.com/AclPolicyRevision" + } + ]; +} + // Request for [DeleteCluster][CloudRedis.DeleteCluster]. message DeleteClusterRequest { // Required. Redis cluster resource name using the form: @@ -494,6 +743,27 @@ message DeleteClusterRequest { string request_id = 2; } +// Request for `DeleteAclPolicy`. +message DeleteAclPolicyRequest { + // Required. Redis ACL policy resource name using the form: + // `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` + // where `location_id` refers to a Google Cloud region. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "redis.googleapis.com/AclPolicy" } + ]; + + // Optional. Idempotent request UUID. + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; + + // Optional. Etag of the ACL policy. If this is different from the server's + // etag, the request will fail with an ABORTED error. + string etag = 3 [(google.api.field_behavior) = OPTIONAL]; +} + // Request for // [GetClusterCertificateAuthorityRequest][CloudRedis.GetClusterCertificateAuthorityRequest]. message GetClusterCertificateAuthorityRequest { @@ -902,6 +1172,198 @@ message Cluster { (google.api.field_behavior) = OPTIONAL, (google.api.field_behavior) = INPUT_ONLY ]; + + // Optional. The ACL policy to be applied to the cluster. + string acl_policy = 56 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "redis.googleapis.com/AclPolicy" } + ]; + + // Output only. Details of the applied ACL policy. + AclPolicyInfo acl_policy_info = 58 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Details of the applied ACL policy. +message AclPolicyInfo { + // Output only. The resource name of the applied ACL policy. + // Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}" + string applied_acl_policy = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "redis.googleapis.com/AclPolicy" } + ]; + + // Output only. The resource name of the applied ACL policy revision. + // Format: + // "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}" + string applied_acl_policy_revision = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "redis.googleapis.com/AclPolicyRevision" + } + ]; + + // Output only. The revision number of the applied ACL policy revision. + int64 applied_acl_policy_revision_number = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A list of status for various revisions of this ACL policy on + // the cluster. + repeated AclPolicyRevisionStatus acl_policy_revision_statuses = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The ACL policy resource. +message AclPolicy { + option (google.api.resource) = { + type: "redis.googleapis.com/AclPolicy" + pattern: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}" + plural: "aclPolicies" + singular: "aclPolicy" + }; + + // Represents the different states of an ACL policy. + enum State { + // Not set. + STATE_UNSPECIFIED = 0; + + // ACL policy has been created and is fully usable. Since ACL policy + // creation is synchronous and not an LRO, there is no CREATING state. + ACTIVE = 1; + + // ACL policy is being updated. + UPDATING = 2; + + // ACL policy is being deleted. + DELETING = 3; + } + + // Identifier. Full resource path of the ACL policy. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The ACL rules within the ACL policy. + repeated AclRule rules = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The state of the ACL policy. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Etag for the ACL policy. + optional string etag = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The ACL policy attachment status for each attached cluster. + repeated ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp that the ACL policy was created. + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp that the ACL policy was last updated. + google.protobuf.Timestamp update_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// AclPolicyRevisionStatus stores the per-revision status for an attached +// cluster. +message AclPolicyRevisionStatus { + // Enum indicating the status of this ACL policy revision on the cluster. + enum State { + // Not set. + STATE_UNSPECIFIED = 0; + + // The cluster is attempting to apply this revision. + APPLYING = 1; + + // The cluster has successfully applied this revision. + APPLIED = 2; + + // The cluster failed to apply this revision. + FAILED = 3; + } + + // Output only. The resource name of the ACL policy revision this status + // refers to. Format: + // "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}" + string acl_policy_revision = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "redis.googleapis.com/AclPolicyRevision" + } + ]; + + // Output only. The revision number of the ACL policy revision this status + // refers to. + int64 acl_policy_revision_number = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. AclPolicyRevision state. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable error message providing more details for FAILED + // states. + string error_message = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// ClusterAclPolicyAttachment stores the ACL policy status for an attached +// cluster for the revisions successfully applied, under application or failed. +message ClusterAclPolicyAttachment { + // Output only. The resource name of the attached Cluster. + // Format: + // "projects/{project}/locations/{location}/clusters/{cluster}" + string cluster = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "redis.googleapis.com/Cluster" } + ]; + + // Output only. A list of status for various revisions of this ACL policy on + // the cluster. + repeated AclPolicyRevisionStatus acl_policy_revision_statuses = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The ACL policy revision resource. +message AclPolicyRevision { + option (google.api.resource) = { + type: "redis.googleapis.com/AclPolicyRevision" + pattern: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}" + plural: "aclPolicyRevisions" + singular: "aclPolicyRevision" + }; + + // Identifier. The name of the ACL policy revision. + // Format: + // "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}" + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The revision number of the ACL policy revision. + int64 revision_number = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The snapshot of the ACL policy at the time of revision + // creation. + AclPolicy snapshot = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp that the revision was created. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A list of clusters that are attached to this ACL policy + // revision. + repeated string attached_clusters = 5 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "redis.googleapis.com/Cluster" } + ]; +} + +// A single ACL rule which defines the policy for a user. +message AclRule { + // Required. Specifies the IAM user or service account to be added to the ACL + // policy. This username will be directly set on the Redis OSS. + string username = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The rule to be applied to the username. Ex: "on >password123 ~* + // +@all" The format of the rule is defined by Redis OSS: + // https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/ + string rule = 2 [(google.api.field_behavior) = REQUIRED]; } // The automated backup config for a cluster. diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addauthtoken/AsyncAddAuthToken.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addauthtoken/AsyncAddAuthToken.java new file mode 100644 index 000000000000..1925c4d1fa27 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addauthtoken/AsyncAddAuthToken.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_AddAuthToken_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1.AddAuthTokenRequest; +import com.google.cloud.redis.cluster.v1.AuthToken; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; +import com.google.longrunning.Operation; + +public class AsyncAddAuthToken { + + public static void main(String[] args) throws Exception { + asyncAddAuthToken(); + } + + public static void asyncAddAuthToken() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + AddAuthTokenRequest request = + AddAuthTokenRequest.newBuilder() + .setTokenAuthUser( + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString()) + .setAuthToken(AuthToken.newBuilder().build()) + .build(); + ApiFuture future = + cloudRedisClusterClient.addAuthTokenCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_AddAuthToken_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addauthtoken/AsyncAddAuthTokenLRO.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addauthtoken/AsyncAddAuthTokenLRO.java new file mode 100644 index 000000000000..3fb965870c65 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addauthtoken/AsyncAddAuthTokenLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_AddAuthToken_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.redis.cluster.v1.AddAuthTokenRequest; +import com.google.cloud.redis.cluster.v1.AuthToken; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.OperationMetadata; +import com.google.cloud.redis.cluster.v1.TokenAuthUser; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; + +public class AsyncAddAuthTokenLRO { + + public static void main(String[] args) throws Exception { + asyncAddAuthTokenLRO(); + } + + public static void asyncAddAuthTokenLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + AddAuthTokenRequest request = + AddAuthTokenRequest.newBuilder() + .setTokenAuthUser( + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString()) + .setAuthToken(AuthToken.newBuilder().build()) + .build(); + OperationFuture future = + cloudRedisClusterClient.addAuthTokenOperationCallable().futureCall(request); + // Do something. + TokenAuthUser response = future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_AddAuthToken_LRO_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addauthtoken/SyncAddAuthToken.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addauthtoken/SyncAddAuthToken.java new file mode 100644 index 000000000000..b896cdd6998e --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addauthtoken/SyncAddAuthToken.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_AddAuthToken_sync] +import com.google.cloud.redis.cluster.v1.AddAuthTokenRequest; +import com.google.cloud.redis.cluster.v1.AuthToken; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.TokenAuthUser; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; + +public class SyncAddAuthToken { + + public static void main(String[] args) throws Exception { + syncAddAuthToken(); + } + + public static void syncAddAuthToken() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + AddAuthTokenRequest request = + AddAuthTokenRequest.newBuilder() + .setTokenAuthUser( + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString()) + .setAuthToken(AuthToken.newBuilder().build()) + .build(); + TokenAuthUser response = cloudRedisClusterClient.addAuthTokenAsync(request).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_AddAuthToken_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addauthtoken/SyncAddAuthTokenStringAuthtoken.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addauthtoken/SyncAddAuthTokenStringAuthtoken.java new file mode 100644 index 000000000000..736fa5a4b050 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addauthtoken/SyncAddAuthTokenStringAuthtoken.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_AddAuthToken_StringAuthtoken_sync] +import com.google.cloud.redis.cluster.v1.AuthToken; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.TokenAuthUser; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; + +public class SyncAddAuthTokenStringAuthtoken { + + public static void main(String[] args) throws Exception { + syncAddAuthTokenStringAuthtoken(); + } + + public static void syncAddAuthTokenStringAuthtoken() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String tokenAuthUser = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString(); + AuthToken authToken = AuthToken.newBuilder().build(); + TokenAuthUser response = + cloudRedisClusterClient.addAuthTokenAsync(tokenAuthUser, authToken).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_AddAuthToken_StringAuthtoken_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addauthtoken/SyncAddAuthTokenTokenauthusernameAuthtoken.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addauthtoken/SyncAddAuthTokenTokenauthusernameAuthtoken.java new file mode 100644 index 000000000000..1992a059b399 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addauthtoken/SyncAddAuthTokenTokenauthusernameAuthtoken.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_AddAuthToken_TokenauthusernameAuthtoken_sync] +import com.google.cloud.redis.cluster.v1.AuthToken; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.TokenAuthUser; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; + +public class SyncAddAuthTokenTokenauthusernameAuthtoken { + + public static void main(String[] args) throws Exception { + syncAddAuthTokenTokenauthusernameAuthtoken(); + } + + public static void syncAddAuthTokenTokenauthusernameAuthtoken() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + TokenAuthUserName tokenAuthUser = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + AuthToken authToken = AuthToken.newBuilder().build(); + TokenAuthUser response = + cloudRedisClusterClient.addAuthTokenAsync(tokenAuthUser, authToken).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_AddAuthToken_TokenauthusernameAuthtoken_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addtokenauthuser/AsyncAddTokenAuthUser.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addtokenauthuser/AsyncAddTokenAuthUser.java new file mode 100644 index 000000000000..fc0f7e0fcf77 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addtokenauthuser/AsyncAddTokenAuthUser.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_AddTokenAuthUser_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ClusterName; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; +import com.google.longrunning.Operation; + +public class AsyncAddTokenAuthUser { + + public static void main(String[] args) throws Exception { + asyncAddTokenAuthUser(); + } + + public static void asyncAddTokenAuthUser() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + AddTokenAuthUserRequest request = + AddTokenAuthUserRequest.newBuilder() + .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setTokenAuthUser( + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString()) + .build(); + ApiFuture future = + cloudRedisClusterClient.addTokenAuthUserCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_AddTokenAuthUser_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addtokenauthuser/AsyncAddTokenAuthUserLRO.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addtokenauthuser/AsyncAddTokenAuthUserLRO.java new file mode 100644 index 000000000000..cda3f6bc3a1e --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addtokenauthuser/AsyncAddTokenAuthUserLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_AddTokenAuthUser_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.Cluster; +import com.google.cloud.redis.cluster.v1.ClusterName; +import com.google.cloud.redis.cluster.v1.OperationMetadata; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; + +public class AsyncAddTokenAuthUserLRO { + + public static void main(String[] args) throws Exception { + asyncAddTokenAuthUserLRO(); + } + + public static void asyncAddTokenAuthUserLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + AddTokenAuthUserRequest request = + AddTokenAuthUserRequest.newBuilder() + .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setTokenAuthUser( + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString()) + .build(); + OperationFuture future = + cloudRedisClusterClient.addTokenAuthUserOperationCallable().futureCall(request); + // Do something. + Cluster response = future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_AddTokenAuthUser_LRO_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addtokenauthuser/SyncAddTokenAuthUser.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addtokenauthuser/SyncAddTokenAuthUser.java new file mode 100644 index 000000000000..834c8eeb1790 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addtokenauthuser/SyncAddTokenAuthUser.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_AddTokenAuthUser_sync] +import com.google.cloud.redis.cluster.v1.AddTokenAuthUserRequest; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.Cluster; +import com.google.cloud.redis.cluster.v1.ClusterName; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; + +public class SyncAddTokenAuthUser { + + public static void main(String[] args) throws Exception { + syncAddTokenAuthUser(); + } + + public static void syncAddTokenAuthUser() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + AddTokenAuthUserRequest request = + AddTokenAuthUserRequest.newBuilder() + .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setTokenAuthUser( + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString()) + .build(); + Cluster response = cloudRedisClusterClient.addTokenAuthUserAsync(request).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_AddTokenAuthUser_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addtokenauthuser/SyncAddTokenAuthUserClusternameString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addtokenauthuser/SyncAddTokenAuthUserClusternameString.java new file mode 100644 index 000000000000..6aa475c2fc4e --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addtokenauthuser/SyncAddTokenAuthUserClusternameString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_AddTokenAuthUser_ClusternameString_sync] +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.Cluster; +import com.google.cloud.redis.cluster.v1.ClusterName; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; + +public class SyncAddTokenAuthUserClusternameString { + + public static void main(String[] args) throws Exception { + syncAddTokenAuthUserClusternameString(); + } + + public static void syncAddTokenAuthUserClusternameString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ClusterName cluster = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + String tokenAuthUser = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString(); + Cluster response = + cloudRedisClusterClient.addTokenAuthUserAsync(cluster, tokenAuthUser).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_AddTokenAuthUser_ClusternameString_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addtokenauthuser/SyncAddTokenAuthUserClusternameTokenauthusername.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addtokenauthuser/SyncAddTokenAuthUserClusternameTokenauthusername.java new file mode 100644 index 000000000000..906390d8a1b1 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addtokenauthuser/SyncAddTokenAuthUserClusternameTokenauthusername.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_AddTokenAuthUser_ClusternameTokenauthusername_sync] +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.Cluster; +import com.google.cloud.redis.cluster.v1.ClusterName; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; + +public class SyncAddTokenAuthUserClusternameTokenauthusername { + + public static void main(String[] args) throws Exception { + syncAddTokenAuthUserClusternameTokenauthusername(); + } + + public static void syncAddTokenAuthUserClusternameTokenauthusername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ClusterName cluster = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + TokenAuthUserName tokenAuthUser = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + Cluster response = + cloudRedisClusterClient.addTokenAuthUserAsync(cluster, tokenAuthUser).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_AddTokenAuthUser_ClusternameTokenauthusername_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addtokenauthuser/SyncAddTokenAuthUserStringString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addtokenauthuser/SyncAddTokenAuthUserStringString.java new file mode 100644 index 000000000000..492c30f5229d --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addtokenauthuser/SyncAddTokenAuthUserStringString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_AddTokenAuthUser_StringString_sync] +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.Cluster; +import com.google.cloud.redis.cluster.v1.ClusterName; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; + +public class SyncAddTokenAuthUserStringString { + + public static void main(String[] args) throws Exception { + syncAddTokenAuthUserStringString(); + } + + public static void syncAddTokenAuthUserStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String cluster = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); + String tokenAuthUser = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString(); + Cluster response = + cloudRedisClusterClient.addTokenAuthUserAsync(cluster, tokenAuthUser).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_AddTokenAuthUser_StringString_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addtokenauthuser/SyncAddTokenAuthUserStringTokenauthusername.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addtokenauthuser/SyncAddTokenAuthUserStringTokenauthusername.java new file mode 100644 index 000000000000..4de86075ea99 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/addtokenauthuser/SyncAddTokenAuthUserStringTokenauthusername.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_AddTokenAuthUser_StringTokenauthusername_sync] +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.Cluster; +import com.google.cloud.redis.cluster.v1.ClusterName; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; + +public class SyncAddTokenAuthUserStringTokenauthusername { + + public static void main(String[] args) throws Exception { + syncAddTokenAuthUserStringTokenauthusername(); + } + + public static void syncAddTokenAuthUserStringTokenauthusername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String cluster = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); + TokenAuthUserName tokenAuthUser = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + Cluster response = + cloudRedisClusterClient.addTokenAuthUserAsync(cluster, tokenAuthUser).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_AddTokenAuthUser_StringTokenauthusername_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/createaclpolicy/AsyncCreateAclPolicy.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/createaclpolicy/AsyncCreateAclPolicy.java new file mode 100644 index 000000000000..07dfb9aa3e36 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/createaclpolicy/AsyncCreateAclPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_CreateAclPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1.AclPolicy; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest; +import com.google.cloud.redis.cluster.v1.LocationName; + +public class AsyncCreateAclPolicy { + + public static void main(String[] args) throws Exception { + asyncCreateAclPolicy(); + } + + public static void asyncCreateAclPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + CreateAclPolicyRequest request = + CreateAclPolicyRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAclPolicyId("aclPolicyId-1805591401") + .setAclPolicy(AclPolicy.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + cloudRedisClusterClient.createAclPolicyCallable().futureCall(request); + // Do something. + AclPolicy response = future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_CreateAclPolicy_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/createaclpolicy/SyncCreateAclPolicy.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/createaclpolicy/SyncCreateAclPolicy.java new file mode 100644 index 000000000000..a109216c495d --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/createaclpolicy/SyncCreateAclPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_CreateAclPolicy_sync] +import com.google.cloud.redis.cluster.v1.AclPolicy; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.CreateAclPolicyRequest; +import com.google.cloud.redis.cluster.v1.LocationName; + +public class SyncCreateAclPolicy { + + public static void main(String[] args) throws Exception { + syncCreateAclPolicy(); + } + + public static void syncCreateAclPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + CreateAclPolicyRequest request = + CreateAclPolicyRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAclPolicyId("aclPolicyId-1805591401") + .setAclPolicy(AclPolicy.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + AclPolicy response = cloudRedisClusterClient.createAclPolicy(request); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_CreateAclPolicy_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/createaclpolicy/SyncCreateAclPolicyLocationnameAclpolicyString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/createaclpolicy/SyncCreateAclPolicyLocationnameAclpolicyString.java new file mode 100644 index 000000000000..5c4c6d616e3b --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/createaclpolicy/SyncCreateAclPolicyLocationnameAclpolicyString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_CreateAclPolicy_LocationnameAclpolicyString_sync] +import com.google.cloud.redis.cluster.v1.AclPolicy; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.LocationName; + +public class SyncCreateAclPolicyLocationnameAclpolicyString { + + public static void main(String[] args) throws Exception { + syncCreateAclPolicyLocationnameAclpolicyString(); + } + + public static void syncCreateAclPolicyLocationnameAclpolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + String aclPolicyId = "aclPolicyId-1805591401"; + AclPolicy response = cloudRedisClusterClient.createAclPolicy(parent, aclPolicy, aclPolicyId); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_CreateAclPolicy_LocationnameAclpolicyString_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/createaclpolicy/SyncCreateAclPolicyStringAclpolicyString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/createaclpolicy/SyncCreateAclPolicyStringAclpolicyString.java new file mode 100644 index 000000000000..ad9a9b497229 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/createaclpolicy/SyncCreateAclPolicyStringAclpolicyString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_CreateAclPolicy_StringAclpolicyString_sync] +import com.google.cloud.redis.cluster.v1.AclPolicy; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.LocationName; + +public class SyncCreateAclPolicyStringAclpolicyString { + + public static void main(String[] args) throws Exception { + syncCreateAclPolicyStringAclpolicyString(); + } + + public static void syncCreateAclPolicyStringAclpolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + String aclPolicyId = "aclPolicyId-1805591401"; + AclPolicy response = cloudRedisClusterClient.createAclPolicy(parent, aclPolicy, aclPolicyId); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_CreateAclPolicy_StringAclpolicyString_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteaclpolicy/AsyncDeleteAclPolicy.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteaclpolicy/AsyncDeleteAclPolicy.java new file mode 100644 index 000000000000..56b2853e5930 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteaclpolicy/AsyncDeleteAclPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_DeleteAclPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1.AclPolicyName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteAclPolicy { + + public static void main(String[] args) throws Exception { + asyncDeleteAclPolicy(); + } + + public static void asyncDeleteAclPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + DeleteAclPolicyRequest request = + DeleteAclPolicyRequest.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setRequestId("requestId693933066") + .setEtag("etag3123477") + .build(); + ApiFuture future = + cloudRedisClusterClient.deleteAclPolicyCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_DeleteAclPolicy_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteaclpolicy/AsyncDeleteAclPolicyLRO.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteaclpolicy/AsyncDeleteAclPolicyLRO.java new file mode 100644 index 000000000000..63a3726a2bc7 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteaclpolicy/AsyncDeleteAclPolicyLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_DeleteAclPolicy_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.redis.cluster.v1.AclPolicyName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest; +import com.google.cloud.redis.cluster.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteAclPolicyLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteAclPolicyLRO(); + } + + public static void asyncDeleteAclPolicyLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + DeleteAclPolicyRequest request = + DeleteAclPolicyRequest.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setRequestId("requestId693933066") + .setEtag("etag3123477") + .build(); + OperationFuture future = + cloudRedisClusterClient.deleteAclPolicyOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_DeleteAclPolicy_LRO_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteaclpolicy/SyncDeleteAclPolicy.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteaclpolicy/SyncDeleteAclPolicy.java new file mode 100644 index 000000000000..ad6fc7269f8a --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteaclpolicy/SyncDeleteAclPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_DeleteAclPolicy_sync] +import com.google.cloud.redis.cluster.v1.AclPolicyName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.DeleteAclPolicyRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteAclPolicy { + + public static void main(String[] args) throws Exception { + syncDeleteAclPolicy(); + } + + public static void syncDeleteAclPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + DeleteAclPolicyRequest request = + DeleteAclPolicyRequest.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setRequestId("requestId693933066") + .setEtag("etag3123477") + .build(); + cloudRedisClusterClient.deleteAclPolicyAsync(request).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_DeleteAclPolicy_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteaclpolicy/SyncDeleteAclPolicyAclpolicyname.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteaclpolicy/SyncDeleteAclPolicyAclpolicyname.java new file mode 100644 index 000000000000..f8c087c5ca13 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteaclpolicy/SyncDeleteAclPolicyAclpolicyname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_DeleteAclPolicy_Aclpolicyname_sync] +import com.google.cloud.redis.cluster.v1.AclPolicyName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAclPolicyAclpolicyname { + + public static void main(String[] args) throws Exception { + syncDeleteAclPolicyAclpolicyname(); + } + + public static void syncDeleteAclPolicyAclpolicyname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + cloudRedisClusterClient.deleteAclPolicyAsync(name).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_DeleteAclPolicy_Aclpolicyname_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteaclpolicy/SyncDeleteAclPolicyString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteaclpolicy/SyncDeleteAclPolicyString.java new file mode 100644 index 000000000000..3fcc220ccb7c --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteaclpolicy/SyncDeleteAclPolicyString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_DeleteAclPolicy_String_sync] +import com.google.cloud.redis.cluster.v1.AclPolicyName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAclPolicyString { + + public static void main(String[] args) throws Exception { + syncDeleteAclPolicyString(); + } + + public static void syncDeleteAclPolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString(); + cloudRedisClusterClient.deleteAclPolicyAsync(name).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_DeleteAclPolicy_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteauthtoken/AsyncDeleteAuthToken.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteauthtoken/AsyncDeleteAuthToken.java new file mode 100644 index 000000000000..9e2287b6371f --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteauthtoken/AsyncDeleteAuthToken.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_DeleteAuthToken_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1.AuthTokenName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteAuthToken { + + public static void main(String[] args) throws Exception { + asyncDeleteAuthToken(); + } + + public static void asyncDeleteAuthToken() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + DeleteAuthTokenRequest request = + DeleteAuthTokenRequest.newBuilder() + .setName( + AuthTokenName.of( + "[PROJECT]", + "[LOCATION]", + "[CLUSTER]", + "[TOKEN_AUTH_USER]", + "[AUTH_TOKEN]") + .toString()) + .build(); + ApiFuture future = + cloudRedisClusterClient.deleteAuthTokenCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_DeleteAuthToken_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteauthtoken/AsyncDeleteAuthTokenLRO.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteauthtoken/AsyncDeleteAuthTokenLRO.java new file mode 100644 index 000000000000..404c87ee1694 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteauthtoken/AsyncDeleteAuthTokenLRO.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_DeleteAuthToken_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.redis.cluster.v1.AuthTokenName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest; +import com.google.cloud.redis.cluster.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteAuthTokenLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteAuthTokenLRO(); + } + + public static void asyncDeleteAuthTokenLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + DeleteAuthTokenRequest request = + DeleteAuthTokenRequest.newBuilder() + .setName( + AuthTokenName.of( + "[PROJECT]", + "[LOCATION]", + "[CLUSTER]", + "[TOKEN_AUTH_USER]", + "[AUTH_TOKEN]") + .toString()) + .build(); + OperationFuture future = + cloudRedisClusterClient.deleteAuthTokenOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_DeleteAuthToken_LRO_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteauthtoken/SyncDeleteAuthToken.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteauthtoken/SyncDeleteAuthToken.java new file mode 100644 index 000000000000..2a5d84b62f2e --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteauthtoken/SyncDeleteAuthToken.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_DeleteAuthToken_sync] +import com.google.cloud.redis.cluster.v1.AuthTokenName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.DeleteAuthTokenRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteAuthToken { + + public static void main(String[] args) throws Exception { + syncDeleteAuthToken(); + } + + public static void syncDeleteAuthToken() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + DeleteAuthTokenRequest request = + DeleteAuthTokenRequest.newBuilder() + .setName( + AuthTokenName.of( + "[PROJECT]", + "[LOCATION]", + "[CLUSTER]", + "[TOKEN_AUTH_USER]", + "[AUTH_TOKEN]") + .toString()) + .build(); + cloudRedisClusterClient.deleteAuthTokenAsync(request).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_DeleteAuthToken_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteauthtoken/SyncDeleteAuthTokenAuthtokenname.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteauthtoken/SyncDeleteAuthTokenAuthtokenname.java new file mode 100644 index 000000000000..8042e21082c3 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteauthtoken/SyncDeleteAuthTokenAuthtokenname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_DeleteAuthToken_Authtokenname_sync] +import com.google.cloud.redis.cluster.v1.AuthTokenName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAuthTokenAuthtokenname { + + public static void main(String[] args) throws Exception { + syncDeleteAuthTokenAuthtokenname(); + } + + public static void syncDeleteAuthTokenAuthtokenname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + AuthTokenName name = + AuthTokenName.of( + "[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]", "[AUTH_TOKEN]"); + cloudRedisClusterClient.deleteAuthTokenAsync(name).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_DeleteAuthToken_Authtokenname_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteauthtoken/SyncDeleteAuthTokenString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteauthtoken/SyncDeleteAuthTokenString.java new file mode 100644 index 000000000000..38982649363a --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deleteauthtoken/SyncDeleteAuthTokenString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_DeleteAuthToken_String_sync] +import com.google.cloud.redis.cluster.v1.AuthTokenName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAuthTokenString { + + public static void main(String[] args) throws Exception { + syncDeleteAuthTokenString(); + } + + public static void syncDeleteAuthTokenString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String name = + AuthTokenName.of( + "[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]", "[AUTH_TOKEN]") + .toString(); + cloudRedisClusterClient.deleteAuthTokenAsync(name).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_DeleteAuthToken_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletetokenauthuser/AsyncDeleteTokenAuthUser.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletetokenauthuser/AsyncDeleteTokenAuthUser.java new file mode 100644 index 000000000000..f108906d1efa --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletetokenauthuser/AsyncDeleteTokenAuthUser.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_DeleteTokenAuthUser_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; +import com.google.longrunning.Operation; + +public class AsyncDeleteTokenAuthUser { + + public static void main(String[] args) throws Exception { + asyncDeleteTokenAuthUser(); + } + + public static void asyncDeleteTokenAuthUser() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + DeleteTokenAuthUserRequest request = + DeleteTokenAuthUserRequest.newBuilder() + .setName( + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + ApiFuture future = + cloudRedisClusterClient.deleteTokenAuthUserCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_DeleteTokenAuthUser_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletetokenauthuser/AsyncDeleteTokenAuthUserLRO.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletetokenauthuser/AsyncDeleteTokenAuthUserLRO.java new file mode 100644 index 000000000000..2649a3117fbc --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletetokenauthuser/AsyncDeleteTokenAuthUserLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_DeleteTokenAuthUser_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest; +import com.google.cloud.redis.cluster.v1.OperationMetadata; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; +import com.google.protobuf.Empty; + +public class AsyncDeleteTokenAuthUserLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteTokenAuthUserLRO(); + } + + public static void asyncDeleteTokenAuthUserLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + DeleteTokenAuthUserRequest request = + DeleteTokenAuthUserRequest.newBuilder() + .setName( + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + OperationFuture future = + cloudRedisClusterClient.deleteTokenAuthUserOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_DeleteTokenAuthUser_LRO_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletetokenauthuser/SyncDeleteTokenAuthUser.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletetokenauthuser/SyncDeleteTokenAuthUser.java new file mode 100644 index 000000000000..25d3a62ea425 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletetokenauthuser/SyncDeleteTokenAuthUser.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_DeleteTokenAuthUser_sync] +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.DeleteTokenAuthUserRequest; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; +import com.google.protobuf.Empty; + +public class SyncDeleteTokenAuthUser { + + public static void main(String[] args) throws Exception { + syncDeleteTokenAuthUser(); + } + + public static void syncDeleteTokenAuthUser() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + DeleteTokenAuthUserRequest request = + DeleteTokenAuthUserRequest.newBuilder() + .setName( + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + cloudRedisClusterClient.deleteTokenAuthUserAsync(request).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_DeleteTokenAuthUser_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletetokenauthuser/SyncDeleteTokenAuthUserString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletetokenauthuser/SyncDeleteTokenAuthUserString.java new file mode 100644 index 000000000000..2be5ebc3de60 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletetokenauthuser/SyncDeleteTokenAuthUserString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_DeleteTokenAuthUser_String_sync] +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; +import com.google.protobuf.Empty; + +public class SyncDeleteTokenAuthUserString { + + public static void main(String[] args) throws Exception { + syncDeleteTokenAuthUserString(); + } + + public static void syncDeleteTokenAuthUserString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String name = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString(); + cloudRedisClusterClient.deleteTokenAuthUserAsync(name).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_DeleteTokenAuthUser_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletetokenauthuser/SyncDeleteTokenAuthUserTokenauthusername.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletetokenauthuser/SyncDeleteTokenAuthUserTokenauthusername.java new file mode 100644 index 000000000000..bc987b55f722 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletetokenauthuser/SyncDeleteTokenAuthUserTokenauthusername.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_DeleteTokenAuthUser_Tokenauthusername_sync] +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; +import com.google.protobuf.Empty; + +public class SyncDeleteTokenAuthUserTokenauthusername { + + public static void main(String[] args) throws Exception { + syncDeleteTokenAuthUserTokenauthusername(); + } + + public static void syncDeleteTokenAuthUserTokenauthusername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + TokenAuthUserName name = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + cloudRedisClusterClient.deleteTokenAuthUserAsync(name).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_DeleteTokenAuthUser_Tokenauthusername_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getaclpolicy/AsyncGetAclPolicy.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getaclpolicy/AsyncGetAclPolicy.java new file mode 100644 index 000000000000..8b19ac306b25 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getaclpolicy/AsyncGetAclPolicy.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetAclPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1.AclPolicy; +import com.google.cloud.redis.cluster.v1.AclPolicyName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.GetAclPolicyRequest; + +public class AsyncGetAclPolicy { + + public static void main(String[] args) throws Exception { + asyncGetAclPolicy(); + } + + public static void asyncGetAclPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + GetAclPolicyRequest request = + GetAclPolicyRequest.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .build(); + ApiFuture future = + cloudRedisClusterClient.getAclPolicyCallable().futureCall(request); + // Do something. + AclPolicy response = future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetAclPolicy_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getaclpolicy/SyncGetAclPolicy.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getaclpolicy/SyncGetAclPolicy.java new file mode 100644 index 000000000000..4a6abadcc145 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getaclpolicy/SyncGetAclPolicy.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetAclPolicy_sync] +import com.google.cloud.redis.cluster.v1.AclPolicy; +import com.google.cloud.redis.cluster.v1.AclPolicyName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.GetAclPolicyRequest; + +public class SyncGetAclPolicy { + + public static void main(String[] args) throws Exception { + syncGetAclPolicy(); + } + + public static void syncGetAclPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + GetAclPolicyRequest request = + GetAclPolicyRequest.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .build(); + AclPolicy response = cloudRedisClusterClient.getAclPolicy(request); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetAclPolicy_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getaclpolicy/SyncGetAclPolicyAclpolicyname.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getaclpolicy/SyncGetAclPolicyAclpolicyname.java new file mode 100644 index 000000000000..5bf493fffb62 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getaclpolicy/SyncGetAclPolicyAclpolicyname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetAclPolicy_Aclpolicyname_sync] +import com.google.cloud.redis.cluster.v1.AclPolicy; +import com.google.cloud.redis.cluster.v1.AclPolicyName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; + +public class SyncGetAclPolicyAclpolicyname { + + public static void main(String[] args) throws Exception { + syncGetAclPolicyAclpolicyname(); + } + + public static void syncGetAclPolicyAclpolicyname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + AclPolicy response = cloudRedisClusterClient.getAclPolicy(name); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetAclPolicy_Aclpolicyname_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getaclpolicy/SyncGetAclPolicyString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getaclpolicy/SyncGetAclPolicyString.java new file mode 100644 index 000000000000..02152c10d273 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getaclpolicy/SyncGetAclPolicyString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetAclPolicy_String_sync] +import com.google.cloud.redis.cluster.v1.AclPolicy; +import com.google.cloud.redis.cluster.v1.AclPolicyName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; + +public class SyncGetAclPolicyString { + + public static void main(String[] args) throws Exception { + syncGetAclPolicyString(); + } + + public static void syncGetAclPolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString(); + AclPolicy response = cloudRedisClusterClient.getAclPolicy(name); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetAclPolicy_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getaclpolicyrevision/AsyncGetAclPolicyRevision.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getaclpolicyrevision/AsyncGetAclPolicyRevision.java new file mode 100644 index 000000000000..472c8e2efe91 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getaclpolicyrevision/AsyncGetAclPolicyRevision.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetAclPolicyRevision_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1.AclPolicyRevision; +import com.google.cloud.redis.cluster.v1.AclPolicyRevisionName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest; + +public class AsyncGetAclPolicyRevision { + + public static void main(String[] args) throws Exception { + asyncGetAclPolicyRevision(); + } + + public static void asyncGetAclPolicyRevision() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + GetAclPolicyRevisionRequest request = + GetAclPolicyRevisionRequest.newBuilder() + .setName( + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + .toString()) + .build(); + ApiFuture future = + cloudRedisClusterClient.getAclPolicyRevisionCallable().futureCall(request); + // Do something. + AclPolicyRevision response = future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetAclPolicyRevision_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getaclpolicyrevision/SyncGetAclPolicyRevision.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getaclpolicyrevision/SyncGetAclPolicyRevision.java new file mode 100644 index 000000000000..d4c9101cdb56 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getaclpolicyrevision/SyncGetAclPolicyRevision.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetAclPolicyRevision_sync] +import com.google.cloud.redis.cluster.v1.AclPolicyRevision; +import com.google.cloud.redis.cluster.v1.AclPolicyRevisionName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.GetAclPolicyRevisionRequest; + +public class SyncGetAclPolicyRevision { + + public static void main(String[] args) throws Exception { + syncGetAclPolicyRevision(); + } + + public static void syncGetAclPolicyRevision() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + GetAclPolicyRevisionRequest request = + GetAclPolicyRevisionRequest.newBuilder() + .setName( + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + .toString()) + .build(); + AclPolicyRevision response = cloudRedisClusterClient.getAclPolicyRevision(request); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetAclPolicyRevision_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getaclpolicyrevision/SyncGetAclPolicyRevisionAclpolicyrevisionname.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getaclpolicyrevision/SyncGetAclPolicyRevisionAclpolicyrevisionname.java new file mode 100644 index 000000000000..1ba57da66c0a --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getaclpolicyrevision/SyncGetAclPolicyRevisionAclpolicyrevisionname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetAclPolicyRevision_Aclpolicyrevisionname_sync] +import com.google.cloud.redis.cluster.v1.AclPolicyRevision; +import com.google.cloud.redis.cluster.v1.AclPolicyRevisionName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; + +public class SyncGetAclPolicyRevisionAclpolicyrevisionname { + + public static void main(String[] args) throws Exception { + syncGetAclPolicyRevisionAclpolicyrevisionname(); + } + + public static void syncGetAclPolicyRevisionAclpolicyrevisionname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + AclPolicyRevisionName name = + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]"); + AclPolicyRevision response = cloudRedisClusterClient.getAclPolicyRevision(name); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetAclPolicyRevision_Aclpolicyrevisionname_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getaclpolicyrevision/SyncGetAclPolicyRevisionString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getaclpolicyrevision/SyncGetAclPolicyRevisionString.java new file mode 100644 index 000000000000..5da9f6f17564 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getaclpolicyrevision/SyncGetAclPolicyRevisionString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetAclPolicyRevision_String_sync] +import com.google.cloud.redis.cluster.v1.AclPolicyRevision; +import com.google.cloud.redis.cluster.v1.AclPolicyRevisionName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; + +public class SyncGetAclPolicyRevisionString { + + public static void main(String[] args) throws Exception { + syncGetAclPolicyRevisionString(); + } + + public static void syncGetAclPolicyRevisionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String name = + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + .toString(); + AclPolicyRevision response = cloudRedisClusterClient.getAclPolicyRevision(name); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetAclPolicyRevision_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getauthtoken/AsyncGetAuthToken.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getauthtoken/AsyncGetAuthToken.java new file mode 100644 index 000000000000..c10b09fbe762 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getauthtoken/AsyncGetAuthToken.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetAuthToken_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1.AuthToken; +import com.google.cloud.redis.cluster.v1.AuthTokenName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.GetAuthTokenRequest; + +public class AsyncGetAuthToken { + + public static void main(String[] args) throws Exception { + asyncGetAuthToken(); + } + + public static void asyncGetAuthToken() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + GetAuthTokenRequest request = + GetAuthTokenRequest.newBuilder() + .setName( + AuthTokenName.of( + "[PROJECT]", + "[LOCATION]", + "[CLUSTER]", + "[TOKEN_AUTH_USER]", + "[AUTH_TOKEN]") + .toString()) + .build(); + ApiFuture future = + cloudRedisClusterClient.getAuthTokenCallable().futureCall(request); + // Do something. + AuthToken response = future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetAuthToken_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getauthtoken/SyncGetAuthToken.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getauthtoken/SyncGetAuthToken.java new file mode 100644 index 000000000000..a30f5b8a8055 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getauthtoken/SyncGetAuthToken.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetAuthToken_sync] +import com.google.cloud.redis.cluster.v1.AuthToken; +import com.google.cloud.redis.cluster.v1.AuthTokenName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.GetAuthTokenRequest; + +public class SyncGetAuthToken { + + public static void main(String[] args) throws Exception { + syncGetAuthToken(); + } + + public static void syncGetAuthToken() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + GetAuthTokenRequest request = + GetAuthTokenRequest.newBuilder() + .setName( + AuthTokenName.of( + "[PROJECT]", + "[LOCATION]", + "[CLUSTER]", + "[TOKEN_AUTH_USER]", + "[AUTH_TOKEN]") + .toString()) + .build(); + AuthToken response = cloudRedisClusterClient.getAuthToken(request); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetAuthToken_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getauthtoken/SyncGetAuthTokenAuthtokenname.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getauthtoken/SyncGetAuthTokenAuthtokenname.java new file mode 100644 index 000000000000..978b18e82f6c --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getauthtoken/SyncGetAuthTokenAuthtokenname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetAuthToken_Authtokenname_sync] +import com.google.cloud.redis.cluster.v1.AuthToken; +import com.google.cloud.redis.cluster.v1.AuthTokenName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; + +public class SyncGetAuthTokenAuthtokenname { + + public static void main(String[] args) throws Exception { + syncGetAuthTokenAuthtokenname(); + } + + public static void syncGetAuthTokenAuthtokenname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + AuthTokenName name = + AuthTokenName.of( + "[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]", "[AUTH_TOKEN]"); + AuthToken response = cloudRedisClusterClient.getAuthToken(name); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetAuthToken_Authtokenname_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getauthtoken/SyncGetAuthTokenString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getauthtoken/SyncGetAuthTokenString.java new file mode 100644 index 000000000000..2612dddcf344 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getauthtoken/SyncGetAuthTokenString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetAuthToken_String_sync] +import com.google.cloud.redis.cluster.v1.AuthToken; +import com.google.cloud.redis.cluster.v1.AuthTokenName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; + +public class SyncGetAuthTokenString { + + public static void main(String[] args) throws Exception { + syncGetAuthTokenString(); + } + + public static void syncGetAuthTokenString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String name = + AuthTokenName.of( + "[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]", "[AUTH_TOKEN]") + .toString(); + AuthToken response = cloudRedisClusterClient.getAuthToken(name); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetAuthToken_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/gettokenauthuser/AsyncGetTokenAuthUser.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/gettokenauthuser/AsyncGetTokenAuthUser.java new file mode 100644 index 000000000000..c8c812ad2965 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/gettokenauthuser/AsyncGetTokenAuthUser.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetTokenAuthUser_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest; +import com.google.cloud.redis.cluster.v1.TokenAuthUser; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; + +public class AsyncGetTokenAuthUser { + + public static void main(String[] args) throws Exception { + asyncGetTokenAuthUser(); + } + + public static void asyncGetTokenAuthUser() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + GetTokenAuthUserRequest request = + GetTokenAuthUserRequest.newBuilder() + .setName( + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString()) + .build(); + ApiFuture future = + cloudRedisClusterClient.getTokenAuthUserCallable().futureCall(request); + // Do something. + TokenAuthUser response = future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetTokenAuthUser_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/gettokenauthuser/SyncGetTokenAuthUser.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/gettokenauthuser/SyncGetTokenAuthUser.java new file mode 100644 index 000000000000..37c9d8e8f15c --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/gettokenauthuser/SyncGetTokenAuthUser.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetTokenAuthUser_sync] +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.GetTokenAuthUserRequest; +import com.google.cloud.redis.cluster.v1.TokenAuthUser; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; + +public class SyncGetTokenAuthUser { + + public static void main(String[] args) throws Exception { + syncGetTokenAuthUser(); + } + + public static void syncGetTokenAuthUser() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + GetTokenAuthUserRequest request = + GetTokenAuthUserRequest.newBuilder() + .setName( + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString()) + .build(); + TokenAuthUser response = cloudRedisClusterClient.getTokenAuthUser(request); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetTokenAuthUser_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/gettokenauthuser/SyncGetTokenAuthUserString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/gettokenauthuser/SyncGetTokenAuthUserString.java new file mode 100644 index 000000000000..14bc2c472c4c --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/gettokenauthuser/SyncGetTokenAuthUserString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetTokenAuthUser_String_sync] +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.TokenAuthUser; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; + +public class SyncGetTokenAuthUserString { + + public static void main(String[] args) throws Exception { + syncGetTokenAuthUserString(); + } + + public static void syncGetTokenAuthUserString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String name = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString(); + TokenAuthUser response = cloudRedisClusterClient.getTokenAuthUser(name); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetTokenAuthUser_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/gettokenauthuser/SyncGetTokenAuthUserTokenauthusername.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/gettokenauthuser/SyncGetTokenAuthUserTokenauthusername.java new file mode 100644 index 000000000000..80b3217a0ae1 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/gettokenauthuser/SyncGetTokenAuthUserTokenauthusername.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetTokenAuthUser_Tokenauthusername_sync] +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.TokenAuthUser; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; + +public class SyncGetTokenAuthUserTokenauthusername { + + public static void main(String[] args) throws Exception { + syncGetTokenAuthUserTokenauthusername(); + } + + public static void syncGetTokenAuthUserTokenauthusername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + TokenAuthUserName name = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + TokenAuthUser response = cloudRedisClusterClient.getTokenAuthUser(name); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetTokenAuthUser_Tokenauthusername_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicies/AsyncListAclPolicies.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicies/AsyncListAclPolicies.java new file mode 100644 index 000000000000..660e09ea4b17 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicies/AsyncListAclPolicies.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListAclPolicies_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1.AclPolicy; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest; +import com.google.cloud.redis.cluster.v1.LocationName; + +public class AsyncListAclPolicies { + + public static void main(String[] args) throws Exception { + asyncListAclPolicies(); + } + + public static void asyncListAclPolicies() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListAclPoliciesRequest request = + ListAclPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + cloudRedisClusterClient.listAclPoliciesPagedCallable().futureCall(request); + // Do something. + for (AclPolicy element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListAclPolicies_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicies/AsyncListAclPoliciesPaged.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicies/AsyncListAclPoliciesPaged.java new file mode 100644 index 000000000000..0430ee4e2e02 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicies/AsyncListAclPoliciesPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListAclPolicies_Paged_async] +import com.google.cloud.redis.cluster.v1.AclPolicy; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest; +import com.google.cloud.redis.cluster.v1.ListAclPoliciesResponse; +import com.google.cloud.redis.cluster.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListAclPoliciesPaged { + + public static void main(String[] args) throws Exception { + asyncListAclPoliciesPaged(); + } + + public static void asyncListAclPoliciesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListAclPoliciesRequest request = + ListAclPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListAclPoliciesResponse response = + cloudRedisClusterClient.listAclPoliciesCallable().call(request); + for (AclPolicy element : response.getAclPoliciesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListAclPolicies_Paged_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicies/SyncListAclPolicies.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicies/SyncListAclPolicies.java new file mode 100644 index 000000000000..9b6d8a208c5d --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicies/SyncListAclPolicies.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListAclPolicies_sync] +import com.google.cloud.redis.cluster.v1.AclPolicy; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ListAclPoliciesRequest; +import com.google.cloud.redis.cluster.v1.LocationName; + +public class SyncListAclPolicies { + + public static void main(String[] args) throws Exception { + syncListAclPolicies(); + } + + public static void syncListAclPolicies() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListAclPoliciesRequest request = + ListAclPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (AclPolicy element : cloudRedisClusterClient.listAclPolicies(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListAclPolicies_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicies/SyncListAclPoliciesLocationname.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicies/SyncListAclPoliciesLocationname.java new file mode 100644 index 000000000000..f6309175e6a6 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicies/SyncListAclPoliciesLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListAclPolicies_Locationname_sync] +import com.google.cloud.redis.cluster.v1.AclPolicy; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.LocationName; + +public class SyncListAclPoliciesLocationname { + + public static void main(String[] args) throws Exception { + syncListAclPoliciesLocationname(); + } + + public static void syncListAclPoliciesLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (AclPolicy element : cloudRedisClusterClient.listAclPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListAclPolicies_Locationname_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicies/SyncListAclPoliciesString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicies/SyncListAclPoliciesString.java new file mode 100644 index 000000000000..feb76539cd9d --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicies/SyncListAclPoliciesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListAclPolicies_String_sync] +import com.google.cloud.redis.cluster.v1.AclPolicy; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.LocationName; + +public class SyncListAclPoliciesString { + + public static void main(String[] args) throws Exception { + syncListAclPoliciesString(); + } + + public static void syncListAclPoliciesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (AclPolicy element : cloudRedisClusterClient.listAclPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListAclPolicies_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicyrevisions/AsyncListAclPolicyRevisions.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicyrevisions/AsyncListAclPolicyRevisions.java new file mode 100644 index 000000000000..7499f9ef56ce --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicyrevisions/AsyncListAclPolicyRevisions.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListAclPolicyRevisions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1.AclPolicyName; +import com.google.cloud.redis.cluster.v1.AclPolicyRevision; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest; + +public class AsyncListAclPolicyRevisions { + + public static void main(String[] args) throws Exception { + asyncListAclPolicyRevisions(); + } + + public static void asyncListAclPolicyRevisions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListAclPolicyRevisionsRequest request = + ListAclPolicyRevisionsRequest.newBuilder() + .setParent(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + cloudRedisClusterClient.listAclPolicyRevisionsPagedCallable().futureCall(request); + // Do something. + for (AclPolicyRevision element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListAclPolicyRevisions_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicyrevisions/AsyncListAclPolicyRevisionsPaged.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicyrevisions/AsyncListAclPolicyRevisionsPaged.java new file mode 100644 index 000000000000..4c7915e2781e --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicyrevisions/AsyncListAclPolicyRevisionsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListAclPolicyRevisions_Paged_async] +import com.google.cloud.redis.cluster.v1.AclPolicyName; +import com.google.cloud.redis.cluster.v1.AclPolicyRevision; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest; +import com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsResponse; +import com.google.common.base.Strings; + +public class AsyncListAclPolicyRevisionsPaged { + + public static void main(String[] args) throws Exception { + asyncListAclPolicyRevisionsPaged(); + } + + public static void asyncListAclPolicyRevisionsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListAclPolicyRevisionsRequest request = + ListAclPolicyRevisionsRequest.newBuilder() + .setParent(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListAclPolicyRevisionsResponse response = + cloudRedisClusterClient.listAclPolicyRevisionsCallable().call(request); + for (AclPolicyRevision element : response.getAclPolicyRevisionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListAclPolicyRevisions_Paged_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicyrevisions/SyncListAclPolicyRevisions.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicyrevisions/SyncListAclPolicyRevisions.java new file mode 100644 index 000000000000..94d05d5fa6a6 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicyrevisions/SyncListAclPolicyRevisions.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListAclPolicyRevisions_sync] +import com.google.cloud.redis.cluster.v1.AclPolicyName; +import com.google.cloud.redis.cluster.v1.AclPolicyRevision; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ListAclPolicyRevisionsRequest; + +public class SyncListAclPolicyRevisions { + + public static void main(String[] args) throws Exception { + syncListAclPolicyRevisions(); + } + + public static void syncListAclPolicyRevisions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListAclPolicyRevisionsRequest request = + ListAclPolicyRevisionsRequest.newBuilder() + .setParent(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (AclPolicyRevision element : + cloudRedisClusterClient.listAclPolicyRevisions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListAclPolicyRevisions_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicyrevisions/SyncListAclPolicyRevisionsAclpolicyname.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicyrevisions/SyncListAclPolicyRevisionsAclpolicyname.java new file mode 100644 index 000000000000..c761f93eec21 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicyrevisions/SyncListAclPolicyRevisionsAclpolicyname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListAclPolicyRevisions_Aclpolicyname_sync] +import com.google.cloud.redis.cluster.v1.AclPolicyName; +import com.google.cloud.redis.cluster.v1.AclPolicyRevision; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; + +public class SyncListAclPolicyRevisionsAclpolicyname { + + public static void main(String[] args) throws Exception { + syncListAclPolicyRevisionsAclpolicyname(); + } + + public static void syncListAclPolicyRevisionsAclpolicyname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + AclPolicyName parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + for (AclPolicyRevision element : + cloudRedisClusterClient.listAclPolicyRevisions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListAclPolicyRevisions_Aclpolicyname_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicyrevisions/SyncListAclPolicyRevisionsString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicyrevisions/SyncListAclPolicyRevisionsString.java new file mode 100644 index 000000000000..48ca8032bd80 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listaclpolicyrevisions/SyncListAclPolicyRevisionsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListAclPolicyRevisions_String_sync] +import com.google.cloud.redis.cluster.v1.AclPolicyName; +import com.google.cloud.redis.cluster.v1.AclPolicyRevision; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; + +public class SyncListAclPolicyRevisionsString { + + public static void main(String[] args) throws Exception { + syncListAclPolicyRevisionsString(); + } + + public static void syncListAclPolicyRevisionsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString(); + for (AclPolicyRevision element : + cloudRedisClusterClient.listAclPolicyRevisions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListAclPolicyRevisions_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listauthtokens/AsyncListAuthTokens.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listauthtokens/AsyncListAuthTokens.java new file mode 100644 index 000000000000..9fc2201175d1 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listauthtokens/AsyncListAuthTokens.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListAuthTokens_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1.AuthToken; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ListAuthTokensRequest; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; + +public class AsyncListAuthTokens { + + public static void main(String[] args) throws Exception { + asyncListAuthTokens(); + } + + public static void asyncListAuthTokens() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListAuthTokensRequest request = + ListAuthTokensRequest.newBuilder() + .setParent( + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + cloudRedisClusterClient.listAuthTokensPagedCallable().futureCall(request); + // Do something. + for (AuthToken element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListAuthTokens_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listauthtokens/AsyncListAuthTokensPaged.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listauthtokens/AsyncListAuthTokensPaged.java new file mode 100644 index 000000000000..fd325f56ac90 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listauthtokens/AsyncListAuthTokensPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListAuthTokens_Paged_async] +import com.google.cloud.redis.cluster.v1.AuthToken; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ListAuthTokensRequest; +import com.google.cloud.redis.cluster.v1.ListAuthTokensResponse; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; +import com.google.common.base.Strings; + +public class AsyncListAuthTokensPaged { + + public static void main(String[] args) throws Exception { + asyncListAuthTokensPaged(); + } + + public static void asyncListAuthTokensPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListAuthTokensRequest request = + ListAuthTokensRequest.newBuilder() + .setParent( + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListAuthTokensResponse response = + cloudRedisClusterClient.listAuthTokensCallable().call(request); + for (AuthToken element : response.getAuthTokensList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListAuthTokens_Paged_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listauthtokens/SyncListAuthTokens.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listauthtokens/SyncListAuthTokens.java new file mode 100644 index 000000000000..313fdf6cdea2 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listauthtokens/SyncListAuthTokens.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListAuthTokens_sync] +import com.google.cloud.redis.cluster.v1.AuthToken; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ListAuthTokensRequest; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; + +public class SyncListAuthTokens { + + public static void main(String[] args) throws Exception { + syncListAuthTokens(); + } + + public static void syncListAuthTokens() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListAuthTokensRequest request = + ListAuthTokensRequest.newBuilder() + .setParent( + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (AuthToken element : cloudRedisClusterClient.listAuthTokens(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListAuthTokens_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listauthtokens/SyncListAuthTokensString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listauthtokens/SyncListAuthTokensString.java new file mode 100644 index 000000000000..84452c0d0a22 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listauthtokens/SyncListAuthTokensString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListAuthTokens_String_sync] +import com.google.cloud.redis.cluster.v1.AuthToken; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; + +public class SyncListAuthTokensString { + + public static void main(String[] args) throws Exception { + syncListAuthTokensString(); + } + + public static void syncListAuthTokensString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String parent = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]") + .toString(); + for (AuthToken element : cloudRedisClusterClient.listAuthTokens(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListAuthTokens_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listauthtokens/SyncListAuthTokensTokenauthusername.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listauthtokens/SyncListAuthTokensTokenauthusername.java new file mode 100644 index 000000000000..616e2a8b0eee --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listauthtokens/SyncListAuthTokensTokenauthusername.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListAuthTokens_Tokenauthusername_sync] +import com.google.cloud.redis.cluster.v1.AuthToken; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.TokenAuthUserName; + +public class SyncListAuthTokensTokenauthusername { + + public static void main(String[] args) throws Exception { + syncListAuthTokensTokenauthusername(); + } + + public static void syncListAuthTokensTokenauthusername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + TokenAuthUserName parent = + TokenAuthUserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[TOKEN_AUTH_USER]"); + for (AuthToken element : cloudRedisClusterClient.listAuthTokens(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListAuthTokens_Tokenauthusername_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listtokenauthusers/AsyncListTokenAuthUsers.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listtokenauthusers/AsyncListTokenAuthUsers.java new file mode 100644 index 000000000000..5c470b890782 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listtokenauthusers/AsyncListTokenAuthUsers.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListTokenAuthUsers_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ClusterName; +import com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest; +import com.google.cloud.redis.cluster.v1.TokenAuthUser; + +public class AsyncListTokenAuthUsers { + + public static void main(String[] args) throws Exception { + asyncListTokenAuthUsers(); + } + + public static void asyncListTokenAuthUsers() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListTokenAuthUsersRequest request = + ListTokenAuthUsersRequest.newBuilder() + .setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + cloudRedisClusterClient.listTokenAuthUsersPagedCallable().futureCall(request); + // Do something. + for (TokenAuthUser element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListTokenAuthUsers_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listtokenauthusers/AsyncListTokenAuthUsersPaged.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listtokenauthusers/AsyncListTokenAuthUsersPaged.java new file mode 100644 index 000000000000..44654257e8b7 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listtokenauthusers/AsyncListTokenAuthUsersPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListTokenAuthUsers_Paged_async] +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ClusterName; +import com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest; +import com.google.cloud.redis.cluster.v1.ListTokenAuthUsersResponse; +import com.google.cloud.redis.cluster.v1.TokenAuthUser; +import com.google.common.base.Strings; + +public class AsyncListTokenAuthUsersPaged { + + public static void main(String[] args) throws Exception { + asyncListTokenAuthUsersPaged(); + } + + public static void asyncListTokenAuthUsersPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListTokenAuthUsersRequest request = + ListTokenAuthUsersRequest.newBuilder() + .setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListTokenAuthUsersResponse response = + cloudRedisClusterClient.listTokenAuthUsersCallable().call(request); + for (TokenAuthUser element : response.getTokenAuthUsersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListTokenAuthUsers_Paged_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listtokenauthusers/SyncListTokenAuthUsers.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listtokenauthusers/SyncListTokenAuthUsers.java new file mode 100644 index 000000000000..248568783a17 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listtokenauthusers/SyncListTokenAuthUsers.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListTokenAuthUsers_sync] +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ClusterName; +import com.google.cloud.redis.cluster.v1.ListTokenAuthUsersRequest; +import com.google.cloud.redis.cluster.v1.TokenAuthUser; + +public class SyncListTokenAuthUsers { + + public static void main(String[] args) throws Exception { + syncListTokenAuthUsers(); + } + + public static void syncListTokenAuthUsers() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListTokenAuthUsersRequest request = + ListTokenAuthUsersRequest.newBuilder() + .setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (TokenAuthUser element : + cloudRedisClusterClient.listTokenAuthUsers(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListTokenAuthUsers_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listtokenauthusers/SyncListTokenAuthUsersClustername.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listtokenauthusers/SyncListTokenAuthUsersClustername.java new file mode 100644 index 000000000000..329f94f526d9 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listtokenauthusers/SyncListTokenAuthUsersClustername.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListTokenAuthUsers_Clustername_sync] +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ClusterName; +import com.google.cloud.redis.cluster.v1.TokenAuthUser; + +public class SyncListTokenAuthUsersClustername { + + public static void main(String[] args) throws Exception { + syncListTokenAuthUsersClustername(); + } + + public static void syncListTokenAuthUsersClustername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ClusterName parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + for (TokenAuthUser element : + cloudRedisClusterClient.listTokenAuthUsers(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListTokenAuthUsers_Clustername_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listtokenauthusers/SyncListTokenAuthUsersString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listtokenauthusers/SyncListTokenAuthUsersString.java new file mode 100644 index 000000000000..6c8ce629beb8 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listtokenauthusers/SyncListTokenAuthUsersString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListTokenAuthUsers_String_sync] +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ClusterName; +import com.google.cloud.redis.cluster.v1.TokenAuthUser; + +public class SyncListTokenAuthUsersString { + + public static void main(String[] args) throws Exception { + syncListTokenAuthUsersString(); + } + + public static void syncListTokenAuthUsersString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); + for (TokenAuthUser element : + cloudRedisClusterClient.listTokenAuthUsers(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListTokenAuthUsers_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/updateaclpolicy/AsyncUpdateAclPolicy.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/updateaclpolicy/AsyncUpdateAclPolicy.java new file mode 100644 index 000000000000..87c50fbb862b --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/updateaclpolicy/AsyncUpdateAclPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_UpdateAclPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1.AclPolicy; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAclPolicy { + + public static void main(String[] args) throws Exception { + asyncUpdateAclPolicy(); + } + + public static void asyncUpdateAclPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + UpdateAclPolicyRequest request = + UpdateAclPolicyRequest.newBuilder() + .setAclPolicy(AclPolicy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + cloudRedisClusterClient.updateAclPolicyCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_UpdateAclPolicy_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/updateaclpolicy/AsyncUpdateAclPolicyLRO.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/updateaclpolicy/AsyncUpdateAclPolicyLRO.java new file mode 100644 index 000000000000..515b25f4e430 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/updateaclpolicy/AsyncUpdateAclPolicyLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_UpdateAclPolicy_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.redis.cluster.v1.AclPolicy; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.OperationMetadata; +import com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAclPolicyLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateAclPolicyLRO(); + } + + public static void asyncUpdateAclPolicyLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + UpdateAclPolicyRequest request = + UpdateAclPolicyRequest.newBuilder() + .setAclPolicy(AclPolicy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + cloudRedisClusterClient.updateAclPolicyOperationCallable().futureCall(request); + // Do something. + AclPolicy response = future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_UpdateAclPolicy_LRO_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/updateaclpolicy/SyncUpdateAclPolicy.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/updateaclpolicy/SyncUpdateAclPolicy.java new file mode 100644 index 000000000000..1fe9966d4cd5 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/updateaclpolicy/SyncUpdateAclPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_UpdateAclPolicy_sync] +import com.google.cloud.redis.cluster.v1.AclPolicy; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.UpdateAclPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAclPolicy { + + public static void main(String[] args) throws Exception { + syncUpdateAclPolicy(); + } + + public static void syncUpdateAclPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + UpdateAclPolicyRequest request = + UpdateAclPolicyRequest.newBuilder() + .setAclPolicy(AclPolicy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + AclPolicy response = cloudRedisClusterClient.updateAclPolicyAsync(request).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_UpdateAclPolicy_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/updateaclpolicy/SyncUpdateAclPolicyAclpolicyFieldmask.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/updateaclpolicy/SyncUpdateAclPolicyAclpolicyFieldmask.java new file mode 100644 index 000000000000..768018d47e22 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/updateaclpolicy/SyncUpdateAclPolicyAclpolicyFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_UpdateAclPolicy_AclpolicyFieldmask_sync] +import com.google.cloud.redis.cluster.v1.AclPolicy; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAclPolicyAclpolicyFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateAclPolicyAclpolicyFieldmask(); + } + + public static void syncUpdateAclPolicyAclpolicyFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + AclPolicy response = + cloudRedisClusterClient.updateAclPolicyAsync(aclPolicy, updateMask).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_UpdateAclPolicy_AclpolicyFieldmask_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/createaclpolicy/AsyncCreateAclPolicy.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/createaclpolicy/AsyncCreateAclPolicy.java new file mode 100644 index 000000000000..7d8703ad70b0 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/createaclpolicy/AsyncCreateAclPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_CreateAclPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1beta1.AclPolicy; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest; +import com.google.cloud.redis.cluster.v1beta1.LocationName; + +public class AsyncCreateAclPolicy { + + public static void main(String[] args) throws Exception { + asyncCreateAclPolicy(); + } + + public static void asyncCreateAclPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + CreateAclPolicyRequest request = + CreateAclPolicyRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAclPolicyId("aclPolicyId-1805591401") + .setAclPolicy(AclPolicy.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + cloudRedisClusterClient.createAclPolicyCallable().futureCall(request); + // Do something. + AclPolicy response = future.get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_CreateAclPolicy_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/createaclpolicy/SyncCreateAclPolicy.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/createaclpolicy/SyncCreateAclPolicy.java new file mode 100644 index 000000000000..e27d81060b25 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/createaclpolicy/SyncCreateAclPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_CreateAclPolicy_sync] +import com.google.cloud.redis.cluster.v1beta1.AclPolicy; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.CreateAclPolicyRequest; +import com.google.cloud.redis.cluster.v1beta1.LocationName; + +public class SyncCreateAclPolicy { + + public static void main(String[] args) throws Exception { + syncCreateAclPolicy(); + } + + public static void syncCreateAclPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + CreateAclPolicyRequest request = + CreateAclPolicyRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAclPolicyId("aclPolicyId-1805591401") + .setAclPolicy(AclPolicy.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + AclPolicy response = cloudRedisClusterClient.createAclPolicy(request); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_CreateAclPolicy_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/createaclpolicy/SyncCreateAclPolicyLocationnameAclpolicyString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/createaclpolicy/SyncCreateAclPolicyLocationnameAclpolicyString.java new file mode 100644 index 000000000000..b85ccc28170e --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/createaclpolicy/SyncCreateAclPolicyLocationnameAclpolicyString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_CreateAclPolicy_LocationnameAclpolicyString_sync] +import com.google.cloud.redis.cluster.v1beta1.AclPolicy; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.LocationName; + +public class SyncCreateAclPolicyLocationnameAclpolicyString { + + public static void main(String[] args) throws Exception { + syncCreateAclPolicyLocationnameAclpolicyString(); + } + + public static void syncCreateAclPolicyLocationnameAclpolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + String aclPolicyId = "aclPolicyId-1805591401"; + AclPolicy response = cloudRedisClusterClient.createAclPolicy(parent, aclPolicy, aclPolicyId); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_CreateAclPolicy_LocationnameAclpolicyString_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/createaclpolicy/SyncCreateAclPolicyStringAclpolicyString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/createaclpolicy/SyncCreateAclPolicyStringAclpolicyString.java new file mode 100644 index 000000000000..c8d77663ff09 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/createaclpolicy/SyncCreateAclPolicyStringAclpolicyString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_CreateAclPolicy_StringAclpolicyString_sync] +import com.google.cloud.redis.cluster.v1beta1.AclPolicy; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.LocationName; + +public class SyncCreateAclPolicyStringAclpolicyString { + + public static void main(String[] args) throws Exception { + syncCreateAclPolicyStringAclpolicyString(); + } + + public static void syncCreateAclPolicyStringAclpolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + String aclPolicyId = "aclPolicyId-1805591401"; + AclPolicy response = cloudRedisClusterClient.createAclPolicy(parent, aclPolicy, aclPolicyId); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_CreateAclPolicy_StringAclpolicyString_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deleteaclpolicy/AsyncDeleteAclPolicy.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deleteaclpolicy/AsyncDeleteAclPolicy.java new file mode 100644 index 000000000000..34146a145038 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deleteaclpolicy/AsyncDeleteAclPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_DeleteAclPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1beta1.AclPolicyName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteAclPolicy { + + public static void main(String[] args) throws Exception { + asyncDeleteAclPolicy(); + } + + public static void asyncDeleteAclPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + DeleteAclPolicyRequest request = + DeleteAclPolicyRequest.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setRequestId("requestId693933066") + .setEtag("etag3123477") + .build(); + ApiFuture future = + cloudRedisClusterClient.deleteAclPolicyCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_DeleteAclPolicy_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deleteaclpolicy/AsyncDeleteAclPolicyLRO.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deleteaclpolicy/AsyncDeleteAclPolicyLRO.java new file mode 100644 index 000000000000..e4e156d8c47c --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deleteaclpolicy/AsyncDeleteAclPolicyLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_DeleteAclPolicy_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.redis.cluster.v1beta1.AclPolicyName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest; +import com.google.cloud.redis.cluster.v1beta1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteAclPolicyLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteAclPolicyLRO(); + } + + public static void asyncDeleteAclPolicyLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + DeleteAclPolicyRequest request = + DeleteAclPolicyRequest.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setRequestId("requestId693933066") + .setEtag("etag3123477") + .build(); + OperationFuture future = + cloudRedisClusterClient.deleteAclPolicyOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_DeleteAclPolicy_LRO_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deleteaclpolicy/SyncDeleteAclPolicy.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deleteaclpolicy/SyncDeleteAclPolicy.java new file mode 100644 index 000000000000..73c15bc8a303 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deleteaclpolicy/SyncDeleteAclPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_DeleteAclPolicy_sync] +import com.google.cloud.redis.cluster.v1beta1.AclPolicyName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.DeleteAclPolicyRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteAclPolicy { + + public static void main(String[] args) throws Exception { + syncDeleteAclPolicy(); + } + + public static void syncDeleteAclPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + DeleteAclPolicyRequest request = + DeleteAclPolicyRequest.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setRequestId("requestId693933066") + .setEtag("etag3123477") + .build(); + cloudRedisClusterClient.deleteAclPolicyAsync(request).get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_DeleteAclPolicy_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deleteaclpolicy/SyncDeleteAclPolicyAclpolicyname.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deleteaclpolicy/SyncDeleteAclPolicyAclpolicyname.java new file mode 100644 index 000000000000..e6818e131054 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deleteaclpolicy/SyncDeleteAclPolicyAclpolicyname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_DeleteAclPolicy_Aclpolicyname_sync] +import com.google.cloud.redis.cluster.v1beta1.AclPolicyName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAclPolicyAclpolicyname { + + public static void main(String[] args) throws Exception { + syncDeleteAclPolicyAclpolicyname(); + } + + public static void syncDeleteAclPolicyAclpolicyname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + cloudRedisClusterClient.deleteAclPolicyAsync(name).get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_DeleteAclPolicy_Aclpolicyname_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deleteaclpolicy/SyncDeleteAclPolicyString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deleteaclpolicy/SyncDeleteAclPolicyString.java new file mode 100644 index 000000000000..ed0811143bc6 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deleteaclpolicy/SyncDeleteAclPolicyString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_DeleteAclPolicy_String_sync] +import com.google.cloud.redis.cluster.v1beta1.AclPolicyName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAclPolicyString { + + public static void main(String[] args) throws Exception { + syncDeleteAclPolicyString(); + } + + public static void syncDeleteAclPolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString(); + cloudRedisClusterClient.deleteAclPolicyAsync(name).get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_DeleteAclPolicy_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getaclpolicy/AsyncGetAclPolicy.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getaclpolicy/AsyncGetAclPolicy.java new file mode 100644 index 000000000000..86caa8fc4db6 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getaclpolicy/AsyncGetAclPolicy.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_GetAclPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1beta1.AclPolicy; +import com.google.cloud.redis.cluster.v1beta1.AclPolicyName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest; + +public class AsyncGetAclPolicy { + + public static void main(String[] args) throws Exception { + asyncGetAclPolicy(); + } + + public static void asyncGetAclPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + GetAclPolicyRequest request = + GetAclPolicyRequest.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .build(); + ApiFuture future = + cloudRedisClusterClient.getAclPolicyCallable().futureCall(request); + // Do something. + AclPolicy response = future.get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_GetAclPolicy_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getaclpolicy/SyncGetAclPolicy.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getaclpolicy/SyncGetAclPolicy.java new file mode 100644 index 000000000000..8341143dcd57 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getaclpolicy/SyncGetAclPolicy.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_GetAclPolicy_sync] +import com.google.cloud.redis.cluster.v1beta1.AclPolicy; +import com.google.cloud.redis.cluster.v1beta1.AclPolicyName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRequest; + +public class SyncGetAclPolicy { + + public static void main(String[] args) throws Exception { + syncGetAclPolicy(); + } + + public static void syncGetAclPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + GetAclPolicyRequest request = + GetAclPolicyRequest.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .build(); + AclPolicy response = cloudRedisClusterClient.getAclPolicy(request); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_GetAclPolicy_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getaclpolicy/SyncGetAclPolicyAclpolicyname.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getaclpolicy/SyncGetAclPolicyAclpolicyname.java new file mode 100644 index 000000000000..885f14f09294 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getaclpolicy/SyncGetAclPolicyAclpolicyname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_GetAclPolicy_Aclpolicyname_sync] +import com.google.cloud.redis.cluster.v1beta1.AclPolicy; +import com.google.cloud.redis.cluster.v1beta1.AclPolicyName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; + +public class SyncGetAclPolicyAclpolicyname { + + public static void main(String[] args) throws Exception { + syncGetAclPolicyAclpolicyname(); + } + + public static void syncGetAclPolicyAclpolicyname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + AclPolicy response = cloudRedisClusterClient.getAclPolicy(name); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_GetAclPolicy_Aclpolicyname_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getaclpolicy/SyncGetAclPolicyString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getaclpolicy/SyncGetAclPolicyString.java new file mode 100644 index 000000000000..c7d5ffa678fe --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getaclpolicy/SyncGetAclPolicyString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_GetAclPolicy_String_sync] +import com.google.cloud.redis.cluster.v1beta1.AclPolicy; +import com.google.cloud.redis.cluster.v1beta1.AclPolicyName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; + +public class SyncGetAclPolicyString { + + public static void main(String[] args) throws Exception { + syncGetAclPolicyString(); + } + + public static void syncGetAclPolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString(); + AclPolicy response = cloudRedisClusterClient.getAclPolicy(name); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_GetAclPolicy_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getaclpolicyrevision/AsyncGetAclPolicyRevision.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getaclpolicyrevision/AsyncGetAclPolicyRevision.java new file mode 100644 index 000000000000..591740d57571 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getaclpolicyrevision/AsyncGetAclPolicyRevision.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_GetAclPolicyRevision_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision; +import com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest; + +public class AsyncGetAclPolicyRevision { + + public static void main(String[] args) throws Exception { + asyncGetAclPolicyRevision(); + } + + public static void asyncGetAclPolicyRevision() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + GetAclPolicyRevisionRequest request = + GetAclPolicyRevisionRequest.newBuilder() + .setName( + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + .toString()) + .build(); + ApiFuture future = + cloudRedisClusterClient.getAclPolicyRevisionCallable().futureCall(request); + // Do something. + AclPolicyRevision response = future.get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_GetAclPolicyRevision_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getaclpolicyrevision/SyncGetAclPolicyRevision.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getaclpolicyrevision/SyncGetAclPolicyRevision.java new file mode 100644 index 000000000000..e78af5d306a3 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getaclpolicyrevision/SyncGetAclPolicyRevision.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_GetAclPolicyRevision_sync] +import com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision; +import com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.GetAclPolicyRevisionRequest; + +public class SyncGetAclPolicyRevision { + + public static void main(String[] args) throws Exception { + syncGetAclPolicyRevision(); + } + + public static void syncGetAclPolicyRevision() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + GetAclPolicyRevisionRequest request = + GetAclPolicyRevisionRequest.newBuilder() + .setName( + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + .toString()) + .build(); + AclPolicyRevision response = cloudRedisClusterClient.getAclPolicyRevision(request); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_GetAclPolicyRevision_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getaclpolicyrevision/SyncGetAclPolicyRevisionAclpolicyrevisionname.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getaclpolicyrevision/SyncGetAclPolicyRevisionAclpolicyrevisionname.java new file mode 100644 index 000000000000..a4101642180c --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getaclpolicyrevision/SyncGetAclPolicyRevisionAclpolicyrevisionname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_GetAclPolicyRevision_Aclpolicyrevisionname_sync] +import com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision; +import com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; + +public class SyncGetAclPolicyRevisionAclpolicyrevisionname { + + public static void main(String[] args) throws Exception { + syncGetAclPolicyRevisionAclpolicyrevisionname(); + } + + public static void syncGetAclPolicyRevisionAclpolicyrevisionname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + AclPolicyRevisionName name = + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]"); + AclPolicyRevision response = cloudRedisClusterClient.getAclPolicyRevision(name); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_GetAclPolicyRevision_Aclpolicyrevisionname_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getaclpolicyrevision/SyncGetAclPolicyRevisionString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getaclpolicyrevision/SyncGetAclPolicyRevisionString.java new file mode 100644 index 000000000000..61124e099f21 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getaclpolicyrevision/SyncGetAclPolicyRevisionString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_GetAclPolicyRevision_String_sync] +import com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision; +import com.google.cloud.redis.cluster.v1beta1.AclPolicyRevisionName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; + +public class SyncGetAclPolicyRevisionString { + + public static void main(String[] args) throws Exception { + syncGetAclPolicyRevisionString(); + } + + public static void syncGetAclPolicyRevisionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String name = + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + .toString(); + AclPolicyRevision response = cloudRedisClusterClient.getAclPolicyRevision(name); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_GetAclPolicyRevision_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicies/AsyncListAclPolicies.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicies/AsyncListAclPolicies.java new file mode 100644 index 000000000000..ce37efea1d90 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicies/AsyncListAclPolicies.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_ListAclPolicies_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1beta1.AclPolicy; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest; +import com.google.cloud.redis.cluster.v1beta1.LocationName; + +public class AsyncListAclPolicies { + + public static void main(String[] args) throws Exception { + asyncListAclPolicies(); + } + + public static void asyncListAclPolicies() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListAclPoliciesRequest request = + ListAclPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + cloudRedisClusterClient.listAclPoliciesPagedCallable().futureCall(request); + // Do something. + for (AclPolicy element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_ListAclPolicies_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicies/AsyncListAclPoliciesPaged.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicies/AsyncListAclPoliciesPaged.java new file mode 100644 index 000000000000..07d7227d95f5 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicies/AsyncListAclPoliciesPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_ListAclPolicies_Paged_async] +import com.google.cloud.redis.cluster.v1beta1.AclPolicy; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest; +import com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesResponse; +import com.google.cloud.redis.cluster.v1beta1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListAclPoliciesPaged { + + public static void main(String[] args) throws Exception { + asyncListAclPoliciesPaged(); + } + + public static void asyncListAclPoliciesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListAclPoliciesRequest request = + ListAclPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListAclPoliciesResponse response = + cloudRedisClusterClient.listAclPoliciesCallable().call(request); + for (AclPolicy element : response.getAclPoliciesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_ListAclPolicies_Paged_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicies/SyncListAclPolicies.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicies/SyncListAclPolicies.java new file mode 100644 index 000000000000..c7eaba720788 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicies/SyncListAclPolicies.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_ListAclPolicies_sync] +import com.google.cloud.redis.cluster.v1beta1.AclPolicy; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.ListAclPoliciesRequest; +import com.google.cloud.redis.cluster.v1beta1.LocationName; + +public class SyncListAclPolicies { + + public static void main(String[] args) throws Exception { + syncListAclPolicies(); + } + + public static void syncListAclPolicies() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListAclPoliciesRequest request = + ListAclPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (AclPolicy element : cloudRedisClusterClient.listAclPolicies(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_ListAclPolicies_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicies/SyncListAclPoliciesLocationname.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicies/SyncListAclPoliciesLocationname.java new file mode 100644 index 000000000000..7e99bb3c3923 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicies/SyncListAclPoliciesLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_ListAclPolicies_Locationname_sync] +import com.google.cloud.redis.cluster.v1beta1.AclPolicy; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.LocationName; + +public class SyncListAclPoliciesLocationname { + + public static void main(String[] args) throws Exception { + syncListAclPoliciesLocationname(); + } + + public static void syncListAclPoliciesLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (AclPolicy element : cloudRedisClusterClient.listAclPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_ListAclPolicies_Locationname_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicies/SyncListAclPoliciesString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicies/SyncListAclPoliciesString.java new file mode 100644 index 000000000000..b3f5906b896c --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicies/SyncListAclPoliciesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_ListAclPolicies_String_sync] +import com.google.cloud.redis.cluster.v1beta1.AclPolicy; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.LocationName; + +public class SyncListAclPoliciesString { + + public static void main(String[] args) throws Exception { + syncListAclPoliciesString(); + } + + public static void syncListAclPoliciesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (AclPolicy element : cloudRedisClusterClient.listAclPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_ListAclPolicies_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicyrevisions/AsyncListAclPolicyRevisions.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicyrevisions/AsyncListAclPolicyRevisions.java new file mode 100644 index 000000000000..d8b226df830f --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicyrevisions/AsyncListAclPolicyRevisions.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_ListAclPolicyRevisions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1beta1.AclPolicyName; +import com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest; + +public class AsyncListAclPolicyRevisions { + + public static void main(String[] args) throws Exception { + asyncListAclPolicyRevisions(); + } + + public static void asyncListAclPolicyRevisions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListAclPolicyRevisionsRequest request = + ListAclPolicyRevisionsRequest.newBuilder() + .setParent(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + cloudRedisClusterClient.listAclPolicyRevisionsPagedCallable().futureCall(request); + // Do something. + for (AclPolicyRevision element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_ListAclPolicyRevisions_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicyrevisions/AsyncListAclPolicyRevisionsPaged.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicyrevisions/AsyncListAclPolicyRevisionsPaged.java new file mode 100644 index 000000000000..c14845a25eec --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicyrevisions/AsyncListAclPolicyRevisionsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_ListAclPolicyRevisions_Paged_async] +import com.google.cloud.redis.cluster.v1beta1.AclPolicyName; +import com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest; +import com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsResponse; +import com.google.common.base.Strings; + +public class AsyncListAclPolicyRevisionsPaged { + + public static void main(String[] args) throws Exception { + asyncListAclPolicyRevisionsPaged(); + } + + public static void asyncListAclPolicyRevisionsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListAclPolicyRevisionsRequest request = + ListAclPolicyRevisionsRequest.newBuilder() + .setParent(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListAclPolicyRevisionsResponse response = + cloudRedisClusterClient.listAclPolicyRevisionsCallable().call(request); + for (AclPolicyRevision element : response.getAclPolicyRevisionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_ListAclPolicyRevisions_Paged_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicyrevisions/SyncListAclPolicyRevisions.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicyrevisions/SyncListAclPolicyRevisions.java new file mode 100644 index 000000000000..cafbd6cc6ebd --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicyrevisions/SyncListAclPolicyRevisions.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_ListAclPolicyRevisions_sync] +import com.google.cloud.redis.cluster.v1beta1.AclPolicyName; +import com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.ListAclPolicyRevisionsRequest; + +public class SyncListAclPolicyRevisions { + + public static void main(String[] args) throws Exception { + syncListAclPolicyRevisions(); + } + + public static void syncListAclPolicyRevisions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListAclPolicyRevisionsRequest request = + ListAclPolicyRevisionsRequest.newBuilder() + .setParent(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (AclPolicyRevision element : + cloudRedisClusterClient.listAclPolicyRevisions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_ListAclPolicyRevisions_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicyrevisions/SyncListAclPolicyRevisionsAclpolicyname.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicyrevisions/SyncListAclPolicyRevisionsAclpolicyname.java new file mode 100644 index 000000000000..f083dab22c17 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicyrevisions/SyncListAclPolicyRevisionsAclpolicyname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_ListAclPolicyRevisions_Aclpolicyname_sync] +import com.google.cloud.redis.cluster.v1beta1.AclPolicyName; +import com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; + +public class SyncListAclPolicyRevisionsAclpolicyname { + + public static void main(String[] args) throws Exception { + syncListAclPolicyRevisionsAclpolicyname(); + } + + public static void syncListAclPolicyRevisionsAclpolicyname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + AclPolicyName parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + for (AclPolicyRevision element : + cloudRedisClusterClient.listAclPolicyRevisions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_ListAclPolicyRevisions_Aclpolicyname_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicyrevisions/SyncListAclPolicyRevisionsString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicyrevisions/SyncListAclPolicyRevisionsString.java new file mode 100644 index 000000000000..682555893e45 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listaclpolicyrevisions/SyncListAclPolicyRevisionsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_ListAclPolicyRevisions_String_sync] +import com.google.cloud.redis.cluster.v1beta1.AclPolicyName; +import com.google.cloud.redis.cluster.v1beta1.AclPolicyRevision; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; + +public class SyncListAclPolicyRevisionsString { + + public static void main(String[] args) throws Exception { + syncListAclPolicyRevisionsString(); + } + + public static void syncListAclPolicyRevisionsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString(); + for (AclPolicyRevision element : + cloudRedisClusterClient.listAclPolicyRevisions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_ListAclPolicyRevisions_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/updateaclpolicy/AsyncUpdateAclPolicy.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/updateaclpolicy/AsyncUpdateAclPolicy.java new file mode 100644 index 000000000000..5692c038144c --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/updateaclpolicy/AsyncUpdateAclPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_UpdateAclPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1beta1.AclPolicy; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAclPolicy { + + public static void main(String[] args) throws Exception { + asyncUpdateAclPolicy(); + } + + public static void asyncUpdateAclPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + UpdateAclPolicyRequest request = + UpdateAclPolicyRequest.newBuilder() + .setAclPolicy(AclPolicy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + cloudRedisClusterClient.updateAclPolicyCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_UpdateAclPolicy_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/updateaclpolicy/AsyncUpdateAclPolicyLRO.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/updateaclpolicy/AsyncUpdateAclPolicyLRO.java new file mode 100644 index 000000000000..738c086babfe --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/updateaclpolicy/AsyncUpdateAclPolicyLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_UpdateAclPolicy_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.redis.cluster.v1beta1.AclPolicy; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.OperationMetadata; +import com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAclPolicyLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateAclPolicyLRO(); + } + + public static void asyncUpdateAclPolicyLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + UpdateAclPolicyRequest request = + UpdateAclPolicyRequest.newBuilder() + .setAclPolicy(AclPolicy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + cloudRedisClusterClient.updateAclPolicyOperationCallable().futureCall(request); + // Do something. + AclPolicy response = future.get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_UpdateAclPolicy_LRO_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/updateaclpolicy/SyncUpdateAclPolicy.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/updateaclpolicy/SyncUpdateAclPolicy.java new file mode 100644 index 000000000000..dd9359a53b79 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/updateaclpolicy/SyncUpdateAclPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_UpdateAclPolicy_sync] +import com.google.cloud.redis.cluster.v1beta1.AclPolicy; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.UpdateAclPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAclPolicy { + + public static void main(String[] args) throws Exception { + syncUpdateAclPolicy(); + } + + public static void syncUpdateAclPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + UpdateAclPolicyRequest request = + UpdateAclPolicyRequest.newBuilder() + .setAclPolicy(AclPolicy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + AclPolicy response = cloudRedisClusterClient.updateAclPolicyAsync(request).get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_UpdateAclPolicy_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/updateaclpolicy/SyncUpdateAclPolicyAclpolicyFieldmask.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/updateaclpolicy/SyncUpdateAclPolicyAclpolicyFieldmask.java new file mode 100644 index 000000000000..ea675c8d4e62 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/updateaclpolicy/SyncUpdateAclPolicyAclpolicyFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_UpdateAclPolicy_AclpolicyFieldmask_sync] +import com.google.cloud.redis.cluster.v1beta1.AclPolicy; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAclPolicyAclpolicyFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateAclPolicyAclpolicyFieldmask(); + } + + public static void syncUpdateAclPolicyAclpolicyFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + AclPolicy response = + cloudRedisClusterClient.updateAclPolicyAsync(aclPolicy, updateMask).get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_UpdateAclPolicy_AclpolicyFieldmask_sync] diff --git a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java index 0c8c3a23cbcf..e4b7d0addf88 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java +++ b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java @@ -1419,6 +1419,7 @@ public void createNotificationConfigTest() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -1471,6 +1472,7 @@ public void createNotificationConfigTest2() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -1523,6 +1525,7 @@ public void createNotificationConfigTest3() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -1575,6 +1578,7 @@ public void createNotificationConfigTest4() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -1627,6 +1631,7 @@ public void createNotificationConfigTest5() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -1682,6 +1687,7 @@ public void createNotificationConfigTest6() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -1737,6 +1743,7 @@ public void createNotificationConfigTest7() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -1792,6 +1799,7 @@ public void createNotificationConfigTest8() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -2302,6 +2310,7 @@ public void getBigQueryExportTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -2357,6 +2366,7 @@ public void getBigQueryExportTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -2609,6 +2619,7 @@ public void getNotificationConfigTest() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -2663,6 +2674,7 @@ public void getNotificationConfigTest2() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -5633,6 +5645,7 @@ public void updateNotificationConfigTest() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -5645,6 +5658,7 @@ public void updateNotificationConfigTest() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); NotificationConfig actualResponse = client.updateNotificationConfig(notificationConfig); @@ -5682,6 +5696,7 @@ public void updateNotificationConfigExceptionTest() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); client.updateNotificationConfig(notificationConfig); Assert.fail("No exception raised"); @@ -5701,6 +5716,7 @@ public void updateNotificationConfigTest2() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -5713,6 +5729,7 @@ public void updateNotificationConfigTest2() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -5752,6 +5769,7 @@ public void updateNotificationConfigExceptionTest2() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateNotificationConfig(notificationConfig, updateMask); @@ -6035,6 +6053,7 @@ public void createBigQueryExportTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -6093,6 +6112,7 @@ public void createBigQueryExportTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -6151,6 +6171,7 @@ public void createBigQueryExportTest3() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -6209,6 +6230,7 @@ public void createBigQueryExportTest4() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -6349,6 +6371,7 @@ public void updateBigQueryExportTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -6364,6 +6387,7 @@ public void updateBigQueryExportTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -6405,6 +6429,7 @@ public void updateBigQueryExportExceptionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateBigQueryExport(bigQueryExport, updateMask); diff --git a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java index 424fdeb8b9c9..f99c83e9c004 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java +++ b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java @@ -1335,6 +1335,7 @@ public void createNotificationConfigTest() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -1383,6 +1384,7 @@ public void createNotificationConfigTest2() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -1431,6 +1433,7 @@ public void createNotificationConfigTest3() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -1479,6 +1482,7 @@ public void createNotificationConfigTest4() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -1527,6 +1531,7 @@ public void createNotificationConfigTest5() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -1579,6 +1584,7 @@ public void createNotificationConfigTest6() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -1631,6 +1637,7 @@ public void createNotificationConfigTest7() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -1683,6 +1690,7 @@ public void createNotificationConfigTest8() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -2130,6 +2138,7 @@ public void getBigQueryExportTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -2179,6 +2188,7 @@ public void getBigQueryExportTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -2401,6 +2411,7 @@ public void getNotificationConfigTest() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -2450,6 +2461,7 @@ public void getNotificationConfigTest2() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -5019,6 +5031,7 @@ public void updateNotificationConfigTest() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -5064,6 +5077,7 @@ public void updateNotificationConfigTest2() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -5298,6 +5312,7 @@ public void createBigQueryExportTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -5353,6 +5368,7 @@ public void createBigQueryExportTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -5408,6 +5424,7 @@ public void createBigQueryExportTest3() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -5463,6 +5480,7 @@ public void createBigQueryExportTest4() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -5590,6 +5608,7 @@ public void updateBigQueryExportTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); diff --git a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v2/SecurityCenterClientHttpJsonTest.java b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v2/SecurityCenterClientHttpJsonTest.java index dcc36c2e0f9d..d95971e75574 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v2/SecurityCenterClientHttpJsonTest.java +++ b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v2/SecurityCenterClientHttpJsonTest.java @@ -346,6 +346,7 @@ public void createBigQueryExportTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -405,6 +406,7 @@ public void createBigQueryExportTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -464,6 +466,7 @@ public void createBigQueryExportTest3() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -523,6 +526,7 @@ public void createBigQueryExportTest4() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -1191,6 +1195,7 @@ public void createNotificationConfigTest() throws Exception { .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") .setUpdateTime(Timestamp.newBuilder().build()) + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -1247,6 +1252,7 @@ public void createNotificationConfigTest2() throws Exception { .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") .setUpdateTime(Timestamp.newBuilder().build()) + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -1303,6 +1309,7 @@ public void createNotificationConfigTest3() throws Exception { .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") .setUpdateTime(Timestamp.newBuilder().build()) + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -1359,6 +1366,7 @@ public void createNotificationConfigTest4() throws Exception { .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") .setUpdateTime(Timestamp.newBuilder().build()) + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -1854,6 +1862,7 @@ public void getBigQueryExportTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -1912,6 +1921,7 @@ public void getBigQueryExportTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -2375,6 +2385,7 @@ public void getNotificationConfigTest() throws Exception { .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") .setUpdateTime(Timestamp.newBuilder().build()) + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -2430,6 +2441,7 @@ public void getNotificationConfigTest2() throws Exception { .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") .setUpdateTime(Timestamp.newBuilder().build()) + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -4893,6 +4905,7 @@ public void updateBigQueryExportTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -4909,6 +4922,7 @@ public void updateBigQueryExportTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -4951,6 +4965,7 @@ public void updateBigQueryExportExceptionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateBigQueryExport(bigQueryExport, updateMask); @@ -5370,6 +5385,7 @@ public void updateNotificationConfigTest() throws Exception { .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") .setUpdateTime(Timestamp.newBuilder().build()) + .setDeletionNotificationsEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -5383,6 +5399,7 @@ public void updateNotificationConfigTest() throws Exception { .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") .setUpdateTime(Timestamp.newBuilder().build()) + .setDeletionNotificationsEnabled(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -5423,6 +5440,7 @@ public void updateNotificationConfigExceptionTest() throws Exception { .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") .setUpdateTime(Timestamp.newBuilder().build()) + .setDeletionNotificationsEnabled(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateNotificationConfig(notificationConfig, updateMask); diff --git a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v2/SecurityCenterClientTest.java b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v2/SecurityCenterClientTest.java index 0c2fd7c40243..365f7072d1e6 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v2/SecurityCenterClientTest.java +++ b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v2/SecurityCenterClientTest.java @@ -335,6 +335,7 @@ public void createBigQueryExportTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -391,6 +392,7 @@ public void createBigQueryExportTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -447,6 +449,7 @@ public void createBigQueryExportTest3() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -503,6 +506,7 @@ public void createBigQueryExportTest4() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -1132,6 +1136,7 @@ public void createNotificationConfigTest() throws Exception { .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") .setUpdateTime(Timestamp.newBuilder().build()) + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -1185,6 +1190,7 @@ public void createNotificationConfigTest2() throws Exception { .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") .setUpdateTime(Timestamp.newBuilder().build()) + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -1238,6 +1244,7 @@ public void createNotificationConfigTest3() throws Exception { .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") .setUpdateTime(Timestamp.newBuilder().build()) + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -1291,6 +1298,7 @@ public void createNotificationConfigTest4() throws Exception { .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") .setUpdateTime(Timestamp.newBuilder().build()) + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -1727,6 +1735,7 @@ public void getBigQueryExportTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -1779,6 +1788,7 @@ public void getBigQueryExportTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -2184,6 +2194,7 @@ public void getNotificationConfigTest() throws Exception { .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") .setUpdateTime(Timestamp.newBuilder().build()) + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -2234,6 +2245,7 @@ public void getNotificationConfigTest2() throws Exception { .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") .setUpdateTime(Timestamp.newBuilder().build()) + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -4451,6 +4463,7 @@ public void updateBigQueryExportTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMostRecentEditor("mostRecentEditor-833861941") .setPrincipal("principal-1812041682") + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -4704,6 +4717,7 @@ public void updateNotificationConfigTest() throws Exception { .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") .setUpdateTime(Timestamp.newBuilder().build()) + .setDeletionNotificationsEnabled(true) .build(); mockSecurityCenter.addResponse(expectedResponse); diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExport.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExport.java index 7be181c46800..95d884108e87 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExport.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExport.java @@ -574,6 +574,27 @@ public com.google.protobuf.ByteString getPrincipalBytes() { } } + public static final int DELETION_NOTIFICATIONS_ENABLED_FIELD_NUMBER = 9; + private boolean deletionNotificationsEnabled_ = false; + + /** + * + * + *
          +   * Optional. Indicates whether the notifications will be sent for deleted
          +   * findings. When enabled, the filter is still respected when sending deletion
          +   * notifications.
          +   * 
          + * + * bool deletion_notifications_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deletionNotificationsEnabled. + */ + @java.lang.Override + public boolean getDeletionNotificationsEnabled() { + return deletionNotificationsEnabled_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -612,6 +633,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(principal_)) { com.google.protobuf.GeneratedMessage.writeString(output, 8, principal_); } + if (deletionNotificationsEnabled_ != false) { + output.writeBool(9, deletionNotificationsEnabled_); + } getUnknownFields().writeTo(output); } @@ -645,6 +669,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(principal_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(8, principal_); } + if (deletionNotificationsEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(9, deletionNotificationsEnabled_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -675,6 +703,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getMostRecentEditor().equals(other.getMostRecentEditor())) return false; if (!getPrincipal().equals(other.getPrincipal())) return false; + if (getDeletionNotificationsEnabled() != other.getDeletionNotificationsEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -706,6 +735,9 @@ public int hashCode() { hash = (53 * hash) + getMostRecentEditor().hashCode(); hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; hash = (53 * hash) + getPrincipal().hashCode(); + hash = (37 * hash) + DELETION_NOTIFICATIONS_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeletionNotificationsEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -872,6 +904,7 @@ public Builder clear() { } mostRecentEditor_ = ""; principal_ = ""; + deletionNotificationsEnabled_ = false; return this; } @@ -935,6 +968,9 @@ private void buildPartial0(com.google.cloud.securitycenter.v1.BigQueryExport res if (((from_bitField0_ & 0x00000080) != 0)) { result.principal_ = principal_; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.deletionNotificationsEnabled_ = deletionNotificationsEnabled_; + } result.bitField0_ |= to_bitField0_; } @@ -987,6 +1023,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.BigQueryExport other bitField0_ |= 0x00000080; onChanged(); } + if (other.getDeletionNotificationsEnabled() != false) { + setDeletionNotificationsEnabled(other.getDeletionNotificationsEnabled()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1063,6 +1102,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 66 + case 72: + { + deletionNotificationsEnabled_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2368,6 +2413,71 @@ public Builder setPrincipalBytes(com.google.protobuf.ByteString value) { return this; } + private boolean deletionNotificationsEnabled_; + + /** + * + * + *
          +     * Optional. Indicates whether the notifications will be sent for deleted
          +     * findings. When enabled, the filter is still respected when sending deletion
          +     * notifications.
          +     * 
          + * + * bool deletion_notifications_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deletionNotificationsEnabled. + */ + @java.lang.Override + public boolean getDeletionNotificationsEnabled() { + return deletionNotificationsEnabled_; + } + + /** + * + * + *
          +     * Optional. Indicates whether the notifications will be sent for deleted
          +     * findings. When enabled, the filter is still respected when sending deletion
          +     * notifications.
          +     * 
          + * + * bool deletion_notifications_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The deletionNotificationsEnabled to set. + * @return This builder for chaining. + */ + public Builder setDeletionNotificationsEnabled(boolean value) { + + deletionNotificationsEnabled_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Indicates whether the notifications will be sent for deleted
          +     * findings. When enabled, the filter is still respected when sending deletion
          +     * notifications.
          +     * 
          + * + * bool deletion_notifications_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDeletionNotificationsEnabled() { + bitField0_ = (bitField0_ & ~0x00000100); + deletionNotificationsEnabled_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.BigQueryExport) } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportOrBuilder.java index 3fdc838dd6f3..085d1f2b2b81 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportOrBuilder.java @@ -337,4 +337,19 @@ public interface BigQueryExportOrBuilder * @return The bytes for principal. */ com.google.protobuf.ByteString getPrincipalBytes(); + + /** + * + * + *
          +   * Optional. Indicates whether the notifications will be sent for deleted
          +   * findings. When enabled, the filter is still respected when sending deletion
          +   * notifications.
          +   * 
          + * + * bool deletion_notifications_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deletionNotificationsEnabled. + */ + boolean getDeletionNotificationsEnabled(); } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportProto.java index e70f3b40855a..9df6e0c4a893 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportProto.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportProto.java @@ -53,28 +53,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "4google/cloud/securitycenter/v1/bigquery_export.proto\022\036google.cloud.securitycen" + "\n4google/cloud/securitycenter/v1/bigquer" + + "y_export.proto\022\036google.cloud.securitycen" + "ter.v1\032\037google/api/field_behavior.proto\032" - + "\031google/api/resource.proto\032\037google/protobuf/timestamp.proto\"\336\003\n" - + "\016BigQueryExport\022\014\n" - + "\004name\030\001 \001(\t\022\023\n" - + "\013description\030\002 \001(\t\022\016\n" - + "\006filter\030\003 \001(\t\022\017\n" - + "\007dataset\030\004 \001(\t\0224\n" - + "\013create_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\006" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\037\n" - + "\022most_recent_editor\030\007 \001(\tB\003\340A\003\022\026\n" - + "\tprincipal\030\010 \001(\tB\003\340A\003:\342\001\352A\336\001\n" - + ",securitycenter.googleapis.com/BigQueryExport\0225organizations/{organization}/bigQu" - + "eryExports/{export}\022)folders/{folder}/bigQueryExports/{export}\022+projects/{projec" - + "t}/bigQueryExports/{export}*\017bigQueryExports2\016bigQueryExportB\355\001\n" - + "\"com.google.cloud.securitycenter.v1B\023BigQueryExportProto" - + "P\001ZJcloud.google.com/go/securitycenter/a" - + "piv1/securitycenterpb;securitycenterpb\252\002" - + "\036Google.Cloud.SecurityCenter.V1\312\002\036Google" - + "\\Cloud\\SecurityCenter\\V1\352\002!Google::Cloud::SecurityCenter::V1b\006proto3" + + "\031google/api/resource.proto\032\037google/proto" + + "buf/timestamp.proto\"\213\004\n\016BigQueryExport\022\014" + + "\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\016\n\006fil" + + "ter\030\003 \001(\t\022\017\n\007dataset\030\004 \001(\t\0224\n\013create_tim" + + "e\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0224\n\013update_time\030\006 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022\037\n\022most_recent_editor\030\007 \001" + + "(\tB\003\340A\003\022\026\n\tprincipal\030\010 \001(\tB\003\340A\003\022+\n\036delet" + + "ion_notifications_enabled\030\t \001(\010B\003\340A\001:\342\001\352" + + "A\336\001\n,securitycenter.googleapis.com/BigQu" + + "eryExport\0225organizations/{organization}/" + + "bigQueryExports/{export}\022)folders/{folde" + + "r}/bigQueryExports/{export}\022+projects/{p" + + "roject}/bigQueryExports/{export}*\017bigQue" + + "ryExports2\016bigQueryExportB\355\001\n\"com.google" + + ".cloud.securitycenter.v1B\023BigQueryExport" + + "ProtoP\001ZJcloud.google.com/go/securitycen" + + "ter/apiv1/securitycenterpb;securitycente" + + "rpb\252\002\036Google.Cloud.SecurityCenter.V1\312\002\036G" + + "oogle\\Cloud\\SecurityCenter\\V1\352\002!Google::" + + "Cloud::SecurityCenter::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -98,6 +100,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateTime", "MostRecentEditor", "Principal", + "DeletionNotificationsEnabled", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java index 5b96b8e1b5eb..e0042cbf475f 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java @@ -1215,6 +1215,27 @@ public boolean hasStreamingConfig() { .getDefaultInstance(); } + public static final int DELETION_NOTIFICATIONS_ENABLED_FIELD_NUMBER = 7; + private boolean deletionNotificationsEnabled_ = false; + + /** + * + * + *
          +   * Optional. Indicates whether the notifications will be sent for deleted
          +   * findings. When enabled, the filter defined in the streaming config is still
          +   * respected when sending deletion notifications.
          +   * 
          + * + * bool deletion_notifications_enabled = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deletionNotificationsEnabled. + */ + @java.lang.Override + public boolean getDeletionNotificationsEnabled() { + return deletionNotificationsEnabled_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1245,6 +1266,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 5, (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_); } + if (deletionNotificationsEnabled_ != false) { + output.writeBool(7, deletionNotificationsEnabled_); + } getUnknownFields().writeTo(output); } @@ -1273,6 +1297,10 @@ public int getSerializedSize() { (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_); } + if (deletionNotificationsEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(7, deletionNotificationsEnabled_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1293,6 +1321,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDescription().equals(other.getDescription())) return false; if (!getPubsubTopic().equals(other.getPubsubTopic())) return false; if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (getDeletionNotificationsEnabled() != other.getDeletionNotificationsEnabled()) return false; if (!getNotifyConfigCase().equals(other.getNotifyConfigCase())) return false; switch (notifyConfigCase_) { case 5: @@ -1320,6 +1349,9 @@ public int hashCode() { hash = (53 * hash) + getPubsubTopic().hashCode(); hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getServiceAccount().hashCode(); + hash = (37 * hash) + DELETION_NOTIFICATIONS_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeletionNotificationsEnabled()); switch (notifyConfigCase_) { case 5: hash = (37 * hash) + STREAMING_CONFIG_FIELD_NUMBER; @@ -1479,6 +1511,7 @@ public Builder clear() { if (streamingConfigBuilder_ != null) { streamingConfigBuilder_.clear(); } + deletionNotificationsEnabled_ = false; notifyConfigCase_ = 0; notifyConfig_ = null; return this; @@ -1530,6 +1563,9 @@ private void buildPartial0(com.google.cloud.securitycenter.v1.NotificationConfig if (((from_bitField0_ & 0x00000008) != 0)) { result.serviceAccount_ = serviceAccount_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.deletionNotificationsEnabled_ = deletionNotificationsEnabled_; + } } private void buildPartialOneofs(com.google.cloud.securitycenter.v1.NotificationConfig result) { @@ -1573,6 +1609,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.NotificationConfig o bitField0_ |= 0x00000008; onChanged(); } + if (other.getDeletionNotificationsEnabled() != false) { + setDeletionNotificationsEnabled(other.getDeletionNotificationsEnabled()); + } switch (other.getNotifyConfigCase()) { case STREAMING_CONFIG: { @@ -1641,6 +1680,12 @@ public Builder mergeFrom( notifyConfigCase_ = 5; break; } // case 42 + case 56: + { + deletionNotificationsEnabled_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 56 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2406,6 +2451,71 @@ public Builder clearStreamingConfig() { return streamingConfigBuilder_; } + private boolean deletionNotificationsEnabled_; + + /** + * + * + *
          +     * Optional. Indicates whether the notifications will be sent for deleted
          +     * findings. When enabled, the filter defined in the streaming config is still
          +     * respected when sending deletion notifications.
          +     * 
          + * + * bool deletion_notifications_enabled = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deletionNotificationsEnabled. + */ + @java.lang.Override + public boolean getDeletionNotificationsEnabled() { + return deletionNotificationsEnabled_; + } + + /** + * + * + *
          +     * Optional. Indicates whether the notifications will be sent for deleted
          +     * findings. When enabled, the filter defined in the streaming config is still
          +     * respected when sending deletion notifications.
          +     * 
          + * + * bool deletion_notifications_enabled = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The deletionNotificationsEnabled to set. + * @return This builder for chaining. + */ + public Builder setDeletionNotificationsEnabled(boolean value) { + + deletionNotificationsEnabled_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Indicates whether the notifications will be sent for deleted
          +     * findings. When enabled, the filter defined in the streaming config is still
          +     * respected when sending deletion notifications.
          +     * 
          + * + * bool deletion_notifications_enabled = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDeletionNotificationsEnabled() { + bitField0_ = (bitField0_ & ~0x00000020); + deletionNotificationsEnabled_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.NotificationConfig) } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigOrBuilder.java index 8be7e89d3281..a9782497e971 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigOrBuilder.java @@ -185,5 +185,20 @@ public interface NotificationConfigOrBuilder com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder(); + /** + * + * + *
          +   * Optional. Indicates whether the notifications will be sent for deleted
          +   * findings. When enabled, the filter defined in the streaming config is still
          +   * respected when sending deletion notifications.
          +   * 
          + * + * bool deletion_notifications_enabled = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deletionNotificationsEnabled. + */ + boolean getDeletionNotificationsEnabled(); + com.google.cloud.securitycenter.v1.NotificationConfig.NotifyConfigCase getNotifyConfigCase(); } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigProto.java index 84cbde7be43d..6d8ef391ea45 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigProto.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigProto.java @@ -60,30 +60,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n8google/cloud/securitycenter/v1/notific" + "ation_config.proto\022\036google.cloud.securit" + "ycenter.v1\032\037google/api/field_behavior.pr" - + "oto\032\031google/api/resource.proto\"\305\004\n\022Notif" + + "oto\032\031google/api/resource.proto\"\362\004\n\022Notif" + "icationConfig\022\014\n\004name\030\001 \001(\t\022\023\n\013descripti" + "on\030\002 \001(\t\0226\n\014pubsub_topic\030\003 \001(\tB \372A\035\n\033pub" + "sub.googleapis.com/Topic\022\034\n\017service_acco" + "unt\030\004 \001(\tB\003\340A\003\022^\n\020streaming_config\030\005 \001(\013" + "2B.google.cloud.securitycenter.v1.Notifi" - + "cationConfig.StreamingConfigH\000\032!\n\017Stream" - + "ingConfig\022\016\n\006filter\030\001 \001(\t:\241\002\352A\235\002\n0securi" - + "tycenter.googleapis.com/NotificationConf" - + "ig\022Forganizations/{organization}/notific" - + "ationConfigs/{notification_config}\022:fold" - + "ers/{folder}/notificationConfigs/{notifi" - + "cation_config}\022 + * Indicates whether the finding is deleted. + * + * + * bool deleted_finding = 5; + * + * @return The deletedFinding. + */ + @java.lang.Override + public boolean getDeletedFinding() { + return deletedFinding_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -304,6 +323,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getResource()); } + if (deletedFinding_ != false) { + output.writeBool(5, deletedFinding_); + } getUnknownFields().writeTo(output); } @@ -324,6 +346,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } + if (deletedFinding_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, deletedFinding_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -345,6 +370,7 @@ public boolean equals(final java.lang.Object obj) { if (hasResource()) { if (!getResource().equals(other.getResource())) return false; } + if (getDeletedFinding() != other.getDeletedFinding()) return false; if (!getEventCase().equals(other.getEventCase())) return false; switch (eventCase_) { case 2: @@ -370,6 +396,8 @@ public int hashCode() { hash = (37 * hash) + RESOURCE_FIELD_NUMBER; hash = (53 * hash) + getResource().hashCode(); } + hash = (37 * hash) + DELETED_FINDING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeletedFinding()); switch (eventCase_) { case 2: hash = (37 * hash) + FINDING_FIELD_NUMBER; @@ -537,6 +565,7 @@ public Builder clear() { resourceBuilder_.dispose(); resourceBuilder_ = null; } + deletedFinding_ = false; eventCase_ = 0; event_ = null; return this; @@ -584,6 +613,9 @@ private void buildPartial0(com.google.cloud.securitycenter.v1.NotificationMessag result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.deletedFinding_ = deletedFinding_; + } result.bitField0_ |= to_bitField0_; } @@ -616,6 +648,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.NotificationMessage if (other.hasResource()) { mergeResource(other.getResource()); } + if (other.getDeletedFinding() != false) { + setDeletedFinding(other.getDeletedFinding()); + } switch (other.getEventCase()) { case FINDING: { @@ -672,6 +707,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 40: + { + deletedFinding_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1237,6 +1278,62 @@ public com.google.cloud.securitycenter.v1.ResourceOrBuilder getResourceOrBuilder return resourceBuilder_; } + private boolean deletedFinding_; + + /** + * + * + *
          +     * Indicates whether the finding is deleted.
          +     * 
          + * + * bool deleted_finding = 5; + * + * @return The deletedFinding. + */ + @java.lang.Override + public boolean getDeletedFinding() { + return deletedFinding_; + } + + /** + * + * + *
          +     * Indicates whether the finding is deleted.
          +     * 
          + * + * bool deleted_finding = 5; + * + * @param value The deletedFinding to set. + * @return This builder for chaining. + */ + public Builder setDeletedFinding(boolean value) { + + deletedFinding_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Indicates whether the finding is deleted.
          +     * 
          + * + * bool deleted_finding = 5; + * + * @return This builder for chaining. + */ + public Builder clearDeletedFinding() { + bitField0_ = (bitField0_ & ~0x00000008); + deletedFinding_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.NotificationMessage) } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java index fa1114486060..3d34643882f0 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java @@ -129,5 +129,18 @@ public interface NotificationMessageOrBuilder */ com.google.cloud.securitycenter.v1.ResourceOrBuilder getResourceOrBuilder(); + /** + * + * + *
          +   * Indicates whether the finding is deleted.
          +   * 
          + * + * bool deleted_finding = 5; + * + * @return The deletedFinding. + */ + boolean getDeletedFinding(); + com.google.cloud.securitycenter.v1.NotificationMessage.EventCase getEventCase(); } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java index c80848205668..f5e022454325 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java @@ -57,18 +57,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ation_message.proto\022\036google.cloud.securi" + "tycenter.v1\032,google/cloud/securitycenter" + "/v1/finding.proto\032-google/cloud/security" - + "center/v1/resource.proto\"\270\001\n\023Notificatio" + + "center/v1/resource.proto\"\321\001\n\023Notificatio" + "nMessage\022 \n\030notification_config_name\030\001 \001" + "(\t\022:\n\007finding\030\002 \001(\0132\'.google.cloud.secur" + "itycenter.v1.FindingH\000\022:\n\010resource\030\003 \001(\013" + "2(.google.cloud.securitycenter.v1.Resour" - + "ceB\007\n\005eventB\362\001\n\"com.google.cloud.securit" - + "ycenter.v1B\030NotificationMessageProtoP\001ZJ" - + "cloud.google.com/go/securitycenter/apiv1" - + "/securitycenterpb;securitycenterpb\252\002\036Goo" - + "gle.Cloud.SecurityCenter.V1\312\002\036Google\\Clo" - + "ud\\SecurityCenter\\V1\352\002!Google::Cloud::Se" - + "curityCenter::V1b\006proto3" + + "ce\022\027\n\017deleted_finding\030\005 \001(\010B\007\n\005eventB\362\001\n" + + "\"com.google.cloud.securitycenter.v1B\030Not" + + "ificationMessageProtoP\001ZJcloud.google.co" + + "m/go/securitycenter/apiv1/securitycenter" + + "pb;securitycenterpb\252\002\036Google.Cloud.Secur" + + "ityCenter.V1\312\002\036Google\\Cloud\\SecurityCent" + + "er\\V1\352\002!Google::Cloud::SecurityCenter::V" + + "1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -83,7 +84,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor, new java.lang.String[] { - "NotificationConfigName", "Finding", "Resource", "Event", + "NotificationConfigName", "Finding", "Resource", "DeletedFinding", "Event", }); descriptor.resolveAllFeaturesImmutable(); com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(); diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/bigquery_export.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/bigquery_export.proto index 63265a9aa45c..020c5182b712 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/bigquery_export.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/bigquery_export.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -100,4 +100,10 @@ message BigQueryExport { // Output only. The service account that needs permission to create table and // upload data to the BigQuery dataset. string principal = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Indicates whether the notifications will be sent for deleted + // findings. When enabled, the filter is still respected when sending deletion + // notifications. + bool deletion_notifications_enabled = 9 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_config.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_config.proto index 374e6167c8dc..31159b0475cd 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_config.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_config.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -98,4 +98,10 @@ message NotificationConfig { // The config for triggering streaming-based notifications. StreamingConfig streaming_config = 5; } + + // Optional. Indicates whether the notifications will be sent for deleted + // findings. When enabled, the filter defined in the streaming config is still + // respected when sending deletion notifications. + bool deletion_notifications_enabled = 7 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_message.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_message.proto index 08ed4dab91f9..99fa54e5d8b1 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_message.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_message.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -41,4 +41,7 @@ message NotificationMessage { // The Cloud resource tied to this notification's Finding. Resource resource = 3; + + // Indicates whether the finding is deleted. + bool deleted_finding = 5; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/BigQueryExport.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/BigQueryExport.java index 4464208d1087..ce7b0e092ee5 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/BigQueryExport.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/BigQueryExport.java @@ -582,6 +582,28 @@ public com.google.protobuf.ByteString getPrincipalBytes() { } } + public static final int DELETION_NOTIFICATIONS_ENABLED_FIELD_NUMBER = 10; + private boolean deletionNotificationsEnabled_ = false; + + /** + * + * + *
          +   * Optional. Indicates whether the notifications will be sent for deleted
          +   * findings. When enabled, the filter is still respected when sending deletion
          +   * notifications.
          +   * 
          + * + * bool deletion_notifications_enabled = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deletionNotificationsEnabled. + */ + @java.lang.Override + public boolean getDeletionNotificationsEnabled() { + return deletionNotificationsEnabled_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -620,6 +642,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(principal_)) { com.google.protobuf.GeneratedMessage.writeString(output, 8, principal_); } + if (deletionNotificationsEnabled_ != false) { + output.writeBool(10, deletionNotificationsEnabled_); + } getUnknownFields().writeTo(output); } @@ -653,6 +678,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(principal_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(8, principal_); } + if (deletionNotificationsEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(10, deletionNotificationsEnabled_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -683,6 +712,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getMostRecentEditor().equals(other.getMostRecentEditor())) return false; if (!getPrincipal().equals(other.getPrincipal())) return false; + if (getDeletionNotificationsEnabled() != other.getDeletionNotificationsEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -714,6 +744,9 @@ public int hashCode() { hash = (53 * hash) + getMostRecentEditor().hashCode(); hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; hash = (53 * hash) + getPrincipal().hashCode(); + hash = (37 * hash) + DELETION_NOTIFICATIONS_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeletionNotificationsEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -880,6 +913,7 @@ public Builder clear() { } mostRecentEditor_ = ""; principal_ = ""; + deletionNotificationsEnabled_ = false; return this; } @@ -943,6 +977,9 @@ private void buildPartial0(com.google.cloud.securitycenter.v2.BigQueryExport res if (((from_bitField0_ & 0x00000080) != 0)) { result.principal_ = principal_; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.deletionNotificationsEnabled_ = deletionNotificationsEnabled_; + } result.bitField0_ |= to_bitField0_; } @@ -995,6 +1032,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v2.BigQueryExport other bitField0_ |= 0x00000080; onChanged(); } + if (other.getDeletionNotificationsEnabled() != false) { + setDeletionNotificationsEnabled(other.getDeletionNotificationsEnabled()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1071,6 +1111,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 66 + case 80: + { + deletionNotificationsEnabled_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 80 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2396,6 +2442,71 @@ public Builder setPrincipalBytes(com.google.protobuf.ByteString value) { return this; } + private boolean deletionNotificationsEnabled_; + + /** + * + * + *
          +     * Optional. Indicates whether the notifications will be sent for deleted
          +     * findings. When enabled, the filter is still respected when sending deletion
          +     * notifications.
          +     * 
          + * + * bool deletion_notifications_enabled = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deletionNotificationsEnabled. + */ + @java.lang.Override + public boolean getDeletionNotificationsEnabled() { + return deletionNotificationsEnabled_; + } + + /** + * + * + *
          +     * Optional. Indicates whether the notifications will be sent for deleted
          +     * findings. When enabled, the filter is still respected when sending deletion
          +     * notifications.
          +     * 
          + * + * bool deletion_notifications_enabled = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The deletionNotificationsEnabled to set. + * @return This builder for chaining. + */ + public Builder setDeletionNotificationsEnabled(boolean value) { + + deletionNotificationsEnabled_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Indicates whether the notifications will be sent for deleted
          +     * findings. When enabled, the filter is still respected when sending deletion
          +     * notifications.
          +     * 
          + * + * bool deletion_notifications_enabled = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDeletionNotificationsEnabled() { + bitField0_ = (bitField0_ & ~0x00000100); + deletionNotificationsEnabled_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v2.BigQueryExport) } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/BigQueryExportOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/BigQueryExportOrBuilder.java index e1bc0c071847..ed262e300d84 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/BigQueryExportOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/BigQueryExportOrBuilder.java @@ -345,4 +345,20 @@ public interface BigQueryExportOrBuilder * @return The bytes for principal. */ com.google.protobuf.ByteString getPrincipalBytes(); + + /** + * + * + *
          +   * Optional. Indicates whether the notifications will be sent for deleted
          +   * findings. When enabled, the filter is still respected when sending deletion
          +   * notifications.
          +   * 
          + * + * bool deletion_notifications_enabled = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deletionNotificationsEnabled. + */ + boolean getDeletionNotificationsEnabled(); } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/BigQueryExportProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/BigQueryExportProto.java index d115672eba36..af6eff99923e 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/BigQueryExportProto.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/BigQueryExportProto.java @@ -56,7 +56,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "4google/cloud/securitycenter/v2/bigquery_export.proto\022\036google.cloud.securitycen" + "ter.v2\032\037google/api/field_behavior.proto\032" - + "\031google/api/resource.proto\032\037google/protobuf/timestamp.proto\"\242\004\n" + + "\031google/api/resource.proto\032\037google/protobuf/timestamp.proto\"\317\004\n" + "\016BigQueryExport\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\023\n" + "\013description\030\002 \001(\t\022\016\n" @@ -66,16 +66,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\006" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\037\n" + "\022most_recent_editor\030\007 \001(\tB\003\340A\003\022\026\n" - + "\tprincipal\030\010 \001(\tB\003\340A\003:\241\002\352A\235\002\n" - + ",securitycenter.googleapis.com/BigQueryExport\022Jorganizations/{organization}/" - + "locations/{location}/bigQueryExports/{export}\022>folders/{folder}/locations/{locat" - + "ion}/bigQueryExports/{export}\022@projects/{project}/locations/{location}/bigQueryE" - + "xports/{export}*\017bigQueryExports2\016bigQueryExportB\355\001\n" - + "\"com.google.cloud.securitycenter.v2B\023BigQueryExportProtoP\001ZJcloud.go" - + "ogle.com/go/securitycenter/apiv2/securit" - + "ycenterpb;securitycenterpb\252\002\036Google.Clou" - + "d.SecurityCenter.V2\312\002\036Google\\Cloud\\Secur" - + "ityCenter\\V2\352\002!Google::Cloud::SecurityCenter::V2b\006proto3" + + "\tprincipal\030\010 \001(\tB\003\340A\003\022+\n" + + "\036deletion_notifications_enabled\030\n" + + " \001(\010B\003\340A\001:\241\002\352A\235\002\n" + + ",securitycenter.googleapis.com/BigQueryExport\022Jorganizations/{organizat" + + "ion}/locations/{location}/bigQueryExports/{export}\022>folders/{folder}/locations/{" + + "location}/bigQueryExports/{export}\022@projects/{project}/locations/{location}/bigQ" + + "ueryExports/{export}*\017bigQueryExports2\016bigQueryExportB\355\001\n" + + "\"com.google.cloud.securitycenter.v2B\023BigQueryExportProtoP\001ZJclo" + + "ud.google.com/go/securitycenter/apiv2/se" + + "curitycenterpb;securitycenterpb\252\002\036Google" + + ".Cloud.SecurityCenter.V2\312\002\036Google\\Cloud\\" + + "SecurityCenter\\V2\352\002!Google::Cloud::SecurityCenter::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -99,6 +101,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateTime", "MostRecentEditor", "Principal", + "DeletionNotificationsEnabled", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfig.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfig.java index 565fd437b505..a7729750cbc4 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfig.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfig.java @@ -1277,6 +1277,27 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } + public static final int DELETION_NOTIFICATIONS_ENABLED_FIELD_NUMBER = 9; + private boolean deletionNotificationsEnabled_ = false; + + /** + * + * + *
          +   * Optional. Indicates whether the notifications will be sent for deleted
          +   * findings. When enabled, the filter defined in the streaming config is still
          +   * respected when sending deletion notifications.
          +   * 
          + * + * bool deletion_notifications_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deletionNotificationsEnabled. + */ + @java.lang.Override + public boolean getDeletionNotificationsEnabled() { + return deletionNotificationsEnabled_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1310,6 +1331,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(7, getUpdateTime()); } + if (deletionNotificationsEnabled_ != false) { + output.writeBool(9, deletionNotificationsEnabled_); + } getUnknownFields().writeTo(output); } @@ -1341,6 +1365,10 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); } + if (deletionNotificationsEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(9, deletionNotificationsEnabled_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1365,6 +1393,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } + if (getDeletionNotificationsEnabled() != other.getDeletionNotificationsEnabled()) return false; if (!getNotifyConfigCase().equals(other.getNotifyConfigCase())) return false; switch (notifyConfigCase_) { case 5: @@ -1396,6 +1425,9 @@ public int hashCode() { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } + hash = (37 * hash) + DELETION_NOTIFICATIONS_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeletionNotificationsEnabled()); switch (notifyConfigCase_) { case 5: hash = (37 * hash) + STREAMING_CONFIG_FIELD_NUMBER; @@ -1569,6 +1601,7 @@ public Builder clear() { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } + deletionNotificationsEnabled_ = false; notifyConfigCase_ = 0; notifyConfig_ = null; return this; @@ -1625,6 +1658,9 @@ private void buildPartial0(com.google.cloud.securitycenter.v2.NotificationConfig result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.deletionNotificationsEnabled_ = deletionNotificationsEnabled_; + } result.bitField0_ |= to_bitField0_; } @@ -1672,6 +1708,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v2.NotificationConfig o if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } + if (other.getDeletionNotificationsEnabled() != false) { + setDeletionNotificationsEnabled(other.getDeletionNotificationsEnabled()); + } switch (other.getNotifyConfigCase()) { case STREAMING_CONFIG: { @@ -1747,6 +1786,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 58 + case 72: + { + deletionNotificationsEnabled_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2748,6 +2793,71 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTimeBuilder_; } + private boolean deletionNotificationsEnabled_; + + /** + * + * + *
          +     * Optional. Indicates whether the notifications will be sent for deleted
          +     * findings. When enabled, the filter defined in the streaming config is still
          +     * respected when sending deletion notifications.
          +     * 
          + * + * bool deletion_notifications_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deletionNotificationsEnabled. + */ + @java.lang.Override + public boolean getDeletionNotificationsEnabled() { + return deletionNotificationsEnabled_; + } + + /** + * + * + *
          +     * Optional. Indicates whether the notifications will be sent for deleted
          +     * findings. When enabled, the filter defined in the streaming config is still
          +     * respected when sending deletion notifications.
          +     * 
          + * + * bool deletion_notifications_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The deletionNotificationsEnabled to set. + * @return This builder for chaining. + */ + public Builder setDeletionNotificationsEnabled(boolean value) { + + deletionNotificationsEnabled_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Indicates whether the notifications will be sent for deleted
          +     * findings. When enabled, the filter defined in the streaming config is still
          +     * respected when sending deletion notifications.
          +     * 
          + * + * bool deletion_notifications_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDeletionNotificationsEnabled() { + bitField0_ = (bitField0_ & ~0x00000040); + deletionNotificationsEnabled_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v2.NotificationConfig) } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfigOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfigOrBuilder.java index 71d4221a6c12..1ed4170f5e78 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfigOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfigOrBuilder.java @@ -234,5 +234,20 @@ public interface NotificationConfigOrBuilder */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + /** + * + * + *
          +   * Optional. Indicates whether the notifications will be sent for deleted
          +   * findings. When enabled, the filter defined in the streaming config is still
          +   * respected when sending deletion notifications.
          +   * 
          + * + * bool deletion_notifications_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deletionNotificationsEnabled. + */ + boolean getDeletionNotificationsEnabled(); + com.google.cloud.securitycenter.v2.NotificationConfig.NotifyConfigCase getNotifyConfigCase(); } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfigProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfigProto.java index 98483134cc22..a658557aa2e6 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfigProto.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfigProto.java @@ -61,7 +61,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ation_config.proto\022\036google.cloud.securit" + "ycenter.v2\032\037google/api/field_behavior.pr" + "oto\032\031google/api/resource.proto\032\037google/p" - + "rotobuf/timestamp.proto\"\277\005\n\022Notification" + + "rotobuf/timestamp.proto\"\354\005\n\022Notification" + "Config\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\023\n\013description" + "\030\002 \001(\t\0226\n\014pubsub_topic\030\003 \001(\tB \372A\035\n\033pubsu" + "b.googleapis.com/Topic\022\034\n\017service_accoun" @@ -69,25 +69,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".google.cloud.securitycenter.v2.Notifica" + "tionConfig.StreamingConfigH\000\0224\n\013update_t" + "ime\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\032!\n\017StreamingConfig\022\016\n\006filter\030\001 \001(\t:\340\002" - + "\352A\334\002\n0securitycenter.googleapis.com/Noti" - + "ficationConfig\022[organizations/{organizat" - + "ion}/locations/{location}/notificationCo" - + "nfigs/{notification_config}\022Ofolders/{fo" - + "lder}/locations/{location}/notificationC" - + "onfigs/{notification_config}\022Qprojects/{" - + "project}/locations/{location}/notificati" - + "onConfigs/{notification_config}*\023notific" - + "ationConfigs2\022notificationConfigB\017\n\rnoti" - + "fy_configB\264\002\n\"com.google.cloud.securityc" - + "enter.v2B\027NotificationConfigProtoP\001ZJclo" - + "ud.google.com/go/securitycenter/apiv2/se" - + "curitycenterpb;securitycenterpb\252\002\036Google" - + ".Cloud.SecurityCenter.V2\312\002\036Google\\Cloud\\" - + "SecurityCenter\\V2\352\002!Google::Cloud::Secur" - + "ityCenter::V2\352A@\n\033pubsub.googleapis.com/" - + "Topic\022!projects/{project}/topics/{topic}" - + "b\006proto3" + + "A\003\022+\n\036deletion_notifications_enabled\030\t \001" + + "(\010B\003\340A\001\032!\n\017StreamingConfig\022\016\n\006filter\030\001 \001" + + "(\t:\340\002\352A\334\002\n0securitycenter.googleapis.com" + + "/NotificationConfig\022[organizations/{orga" + + "nization}/locations/{location}/notificat" + + "ionConfigs/{notification_config}\022Ofolder" + + "s/{folder}/locations/{location}/notifica" + + "tionConfigs/{notification_config}\022Qproje" + + "cts/{project}/locations/{location}/notif" + + "icationConfigs/{notification_config}*\023no" + + "tificationConfigs2\022notificationConfigB\017\n" + + "\rnotify_configB\264\002\n\"com.google.cloud.secu" + + "ritycenter.v2B\027NotificationConfigProtoP\001" + + "ZJcloud.google.com/go/securitycenter/api" + + "v2/securitycenterpb;securitycenterpb\252\002\036G" + + "oogle.Cloud.SecurityCenter.V2\312\002\036Google\\C" + + "loud\\SecurityCenter\\V2\352\002!Google::Cloud::" + + "SecurityCenter::V2\352A@\n\033pubsub.googleapis" + + ".com/Topic\022!projects/{project}/topics/{t" + + "opic}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -109,6 +110,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceAccount", "StreamingConfig", "UpdateTime", + "DeletionNotificationsEnabled", "NotifyConfig", }); internal_static_google_cloud_securitycenter_v2_NotificationConfig_StreamingConfig_descriptor = diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationMessage.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationMessage.java index a3a0e089410e..67d711b75819 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationMessage.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationMessage.java @@ -281,6 +281,25 @@ public com.google.cloud.securitycenter.v2.ResourceOrBuilder getResourceOrBuilder : resource_; } + public static final int DELETED_FINDING_FIELD_NUMBER = 5; + private boolean deletedFinding_ = false; + + /** + * + * + *
          +   * Indicates whether the finding is deleted.
          +   * 
          + * + * bool deleted_finding = 5; + * + * @return The deletedFinding. + */ + @java.lang.Override + public boolean getDeletedFinding() { + return deletedFinding_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -304,6 +323,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getResource()); } + if (deletedFinding_ != false) { + output.writeBool(5, deletedFinding_); + } getUnknownFields().writeTo(output); } @@ -324,6 +346,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } + if (deletedFinding_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, deletedFinding_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -345,6 +370,7 @@ public boolean equals(final java.lang.Object obj) { if (hasResource()) { if (!getResource().equals(other.getResource())) return false; } + if (getDeletedFinding() != other.getDeletedFinding()) return false; if (!getEventCase().equals(other.getEventCase())) return false; switch (eventCase_) { case 2: @@ -370,6 +396,8 @@ public int hashCode() { hash = (37 * hash) + RESOURCE_FIELD_NUMBER; hash = (53 * hash) + getResource().hashCode(); } + hash = (37 * hash) + DELETED_FINDING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeletedFinding()); switch (eventCase_) { case 2: hash = (37 * hash) + FINDING_FIELD_NUMBER; @@ -537,6 +565,7 @@ public Builder clear() { resourceBuilder_.dispose(); resourceBuilder_ = null; } + deletedFinding_ = false; eventCase_ = 0; event_ = null; return this; @@ -584,6 +613,9 @@ private void buildPartial0(com.google.cloud.securitycenter.v2.NotificationMessag result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.deletedFinding_ = deletedFinding_; + } result.bitField0_ |= to_bitField0_; } @@ -616,6 +648,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v2.NotificationMessage if (other.hasResource()) { mergeResource(other.getResource()); } + if (other.getDeletedFinding() != false) { + setDeletedFinding(other.getDeletedFinding()); + } switch (other.getEventCase()) { case FINDING: { @@ -672,6 +707,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 40: + { + deletedFinding_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1237,6 +1278,62 @@ public com.google.cloud.securitycenter.v2.ResourceOrBuilder getResourceOrBuilder return resourceBuilder_; } + private boolean deletedFinding_; + + /** + * + * + *
          +     * Indicates whether the finding is deleted.
          +     * 
          + * + * bool deleted_finding = 5; + * + * @return The deletedFinding. + */ + @java.lang.Override + public boolean getDeletedFinding() { + return deletedFinding_; + } + + /** + * + * + *
          +     * Indicates whether the finding is deleted.
          +     * 
          + * + * bool deleted_finding = 5; + * + * @param value The deletedFinding to set. + * @return This builder for chaining. + */ + public Builder setDeletedFinding(boolean value) { + + deletedFinding_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Indicates whether the finding is deleted.
          +     * 
          + * + * bool deleted_finding = 5; + * + * @return This builder for chaining. + */ + public Builder clearDeletedFinding() { + bitField0_ = (bitField0_ & ~0x00000008); + deletedFinding_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v2.NotificationMessage) } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationMessageOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationMessageOrBuilder.java index 2b74e7fd0e0d..d133c2734002 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationMessageOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationMessageOrBuilder.java @@ -129,5 +129,18 @@ public interface NotificationMessageOrBuilder */ com.google.cloud.securitycenter.v2.ResourceOrBuilder getResourceOrBuilder(); + /** + * + * + *
          +   * Indicates whether the finding is deleted.
          +   * 
          + * + * bool deleted_finding = 5; + * + * @return The deletedFinding. + */ + boolean getDeletedFinding(); + com.google.cloud.securitycenter.v2.NotificationMessage.EventCase getEventCase(); } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationMessageProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationMessageProto.java index fd29ca7a8032..6709d1a9d271 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationMessageProto.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationMessageProto.java @@ -57,18 +57,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ation_message.proto\022\036google.cloud.securi" + "tycenter.v2\032,google/cloud/securitycenter" + "/v2/finding.proto\032-google/cloud/security" - + "center/v2/resource.proto\"\270\001\n\023Notificatio" + + "center/v2/resource.proto\"\321\001\n\023Notificatio" + "nMessage\022 \n\030notification_config_name\030\001 \001" + "(\t\022:\n\007finding\030\002 \001(\0132\'.google.cloud.secur" + "itycenter.v2.FindingH\000\022:\n\010resource\030\003 \001(\013" + "2(.google.cloud.securitycenter.v2.Resour" - + "ceB\007\n\005eventB\362\001\n\"com.google.cloud.securit" - + "ycenter.v2B\030NotificationMessageProtoP\001ZJ" - + "cloud.google.com/go/securitycenter/apiv2" - + "/securitycenterpb;securitycenterpb\252\002\036Goo" - + "gle.Cloud.SecurityCenter.V2\312\002\036Google\\Clo" - + "ud\\SecurityCenter\\V2\352\002!Google::Cloud::Se" - + "curityCenter::V2b\006proto3" + + "ce\022\027\n\017deleted_finding\030\005 \001(\010B\007\n\005eventB\362\001\n" + + "\"com.google.cloud.securitycenter.v2B\030Not" + + "ificationMessageProtoP\001ZJcloud.google.co" + + "m/go/securitycenter/apiv2/securitycenter" + + "pb;securitycenterpb\252\002\036Google.Cloud.Secur" + + "ityCenter.V2\312\002\036Google\\Cloud\\SecurityCent" + + "er\\V2\352\002!Google::Cloud::SecurityCenter::V" + + "2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -83,7 +84,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_NotificationMessage_descriptor, new java.lang.String[] { - "NotificationConfigName", "Finding", "Resource", "Event", + "NotificationConfigName", "Finding", "Resource", "DeletedFinding", "Event", }); descriptor.resolveAllFeaturesImmutable(); com.google.cloud.securitycenter.v2.FindingProto.getDescriptor(); diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/bigquery_export.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/bigquery_export.proto index 68325fcd69eb..bed031838664 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/bigquery_export.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/bigquery_export.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -104,4 +104,10 @@ message BigQueryExport { // Output only. The service account that needs permission to create table and // upload data to the BigQuery dataset. string principal = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Indicates whether the notifications will be sent for deleted + // findings. When enabled, the filter is still respected when sending deletion + // notifications. + bool deletion_notifications_enabled = 10 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/notification_config.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/notification_config.proto index f83d79254b78..bfe9f5e5536e 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/notification_config.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/notification_config.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -107,4 +107,10 @@ message NotificationConfig { // updated. google.protobuf.Timestamp update_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Indicates whether the notifications will be sent for deleted + // findings. When enabled, the filter defined in the streaming config is still + // respected when sending deletion notifications. + bool deletion_notifications_enabled = 9 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/notification_message.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/notification_message.proto index 370d8bfd4936..39df49e483c3 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/notification_message.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/notification_message.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -41,4 +41,7 @@ message NotificationMessage { // The Cloud resource tied to this notification's Finding. Resource resource = 3; + + // Indicates whether the finding is deleted. + bool deleted_finding = 5; } diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/MemorystoreClient.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/MemorystoreClient.java index 3f7738439215..38971f0777d2 100644 --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/MemorystoreClient.java +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/MemorystoreClient.java @@ -60,8 +60,8 @@ * // - 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { - * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); - * Instance response = memorystoreClient.getInstance(name); + * AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + * AclPolicy response = memorystoreClient.getAclPolicy(name); * } * } * @@ -76,6 +76,31 @@ * Method Variants * * + *

          ListAclPolicies + *

          Lists all ACL policies owned by a project in either the specified location (region) or all locations. + *

          The location should have the following format: + *

            + *
          • `projects/{project_id}/locations/{location_id}` + *
          + *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • listAclPolicies(ListAclPoliciesRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • listAclPolicies(LocationName parent) + *

          • listAclPolicies(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.

          + *
            + *
          • listAclPoliciesPagedCallable() + *

          • listAclPoliciesCallable() + *

          + * + * + * *

          ListInstances *

          Lists Instances in a given project and location. * @@ -96,6 +121,25 @@ * * * + *

          GetAclPolicy + *

          Gets the details of a specific Memorystore ACL policy. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • getAclPolicy(GetAclPolicyRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • getAclPolicy(AclPolicyName name) + *

          • getAclPolicy(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.

          + *
            + *
          • getAclPolicyCallable() + *

          + * + * + * *

          GetInstance *

          Gets details of a single Instance. * @@ -115,6 +159,25 @@ * * * + *

          CreateAclPolicy + *

          Creates an ACL policy. The creation is executed synchronously and the policy is available for use immediately after the RPC returns. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • createAclPolicy(CreateAclPolicyRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • createAclPolicy(LocationName parent, AclPolicy aclPolicy, String aclPolicyId) + *

          • createAclPolicy(String parent, AclPolicy aclPolicy, String aclPolicyId) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • createAclPolicyCallable() + *

          + * + * + * *

          CreateInstance *

          Creates a new Instance in a given project and location. * @@ -135,6 +198,27 @@ * * * + *

          UpdateAclPolicy + *

          Updates the ACL policy. + *

          The operation will apply the updated ACL policy to all the linked instances. The operation will return success if it successfully applied the policy to all the instances. If the operation completed with a failure, the service will continue to apply the policy via reconciliation for the failed instances even after operation completion to ensure eventual consistency. + *

          Completed longrunning.Operation will contain the new ACL policy object in the response field. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • updateAclPolicyAsync(UpdateAclPolicyRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • updateAclPolicyAsync(AclPolicy aclPolicy, 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.

          + *
            + *
          • updateAclPolicyOperationCallable() + *

          • updateAclPolicyCallable() + *

          + * + * + * *

          UpdateInstance *

          Updates the parameters of a single Instance. * @@ -154,6 +238,65 @@ * * * + *

          DeleteAclPolicy + *

          Deletes a specific ACL policy. This action will delete the ACL policy and all the rules associated with it. An ACL policy cannot be deleted if it is attached to an instance. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • deleteAclPolicyAsync(DeleteAclPolicyRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • deleteAclPolicyAsync(AclPolicyName name) + *

          • deleteAclPolicyAsync(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.

          + *
            + *
          • deleteAclPolicyOperationCallable() + *

          • deleteAclPolicyCallable() + *

          + * + * + * + *

          GetAclPolicyRevision + *

          Gets details of a specific ACL policy revision. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • getAclPolicyRevision(GetAclPolicyRevisionRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • getAclPolicyRevision(AclPolicyRevisionName name) + *

          • getAclPolicyRevision(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.

          + *
            + *
          • getAclPolicyRevisionCallable() + *

          + * + * + * + *

          ListAclPolicyRevisions + *

          Lists all ACL policy revisions in a given ACL policy. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • listAclPolicyRevisions(ListAclPolicyRevisionsRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • listAclPolicyRevisions(AclPolicyName parent) + *

          • listAclPolicyRevisions(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.

          + *
            + *
          • listAclPolicyRevisionsPagedCallable() + *

          • listAclPolicyRevisionsCallable() + *

          + * + * + * *

          DeleteInstance *

          Deletes a single Instance. * @@ -721,6 +864,222 @@ public final OperationsClient getHttpJsonOperationsClient() { return httpJsonOperationsClient; } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ACL policies owned by a project in either the specified location (region) or all + * locations. + * + *

          The location should have the following format: + * + *

            + *
          • `projects/{project_id}/locations/{location_id}` + *
          + * + *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
          +   *   for (AclPolicy element : memorystoreClient.listAclPolicies(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The resource name of the ACL policy location using the form: + * `projects/{project}/locations/{location}` where `location` refers to a Google Cloud region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAclPoliciesPagedResponse listAclPolicies(@Nullable LocationName parent) { + ListAclPoliciesRequest request = + ListAclPoliciesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAclPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ACL policies owned by a project in either the specified location (region) or all + * locations. + * + *

          The location should have the following format: + * + *

            + *
          • `projects/{project_id}/locations/{location_id}` + *
          + * + *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
          +   *   for (AclPolicy element : memorystoreClient.listAclPolicies(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The resource name of the ACL policy location using the form: + * `projects/{project}/locations/{location}` where `location` refers to a Google Cloud region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAclPoliciesPagedResponse listAclPolicies(String parent) { + ListAclPoliciesRequest request = ListAclPoliciesRequest.newBuilder().setParent(parent).build(); + return listAclPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ACL policies owned by a project in either the specified location (region) or all + * locations. + * + *

          The location should have the following format: + * + *

            + *
          • `projects/{project_id}/locations/{location_id}` + *
          + * + *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   ListAclPoliciesRequest request =
          +   *       ListAclPoliciesRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   for (AclPolicy element : memorystoreClient.listAclPolicies(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 ListAclPoliciesPagedResponse listAclPolicies(ListAclPoliciesRequest request) { + return listAclPoliciesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ACL policies owned by a project in either the specified location (region) or all + * locations. + * + *

          The location should have the following format: + * + *

            + *
          • `projects/{project_id}/locations/{location_id}` + *
          + * + *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   ListAclPoliciesRequest request =
          +   *       ListAclPoliciesRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       memorystoreClient.listAclPoliciesPagedCallable().futureCall(request);
          +   *   // Do something.
          +   *   for (AclPolicy element : future.get().iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + listAclPoliciesPagedCallable() { + return stub.listAclPoliciesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ACL policies owned by a project in either the specified location (region) or all + * locations. + * + *

          The location should have the following format: + * + *

            + *
          • `projects/{project_id}/locations/{location_id}` + *
          + * + *

          If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   ListAclPoliciesRequest request =
          +   *       ListAclPoliciesRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   while (true) {
          +   *     ListAclPoliciesResponse response =
          +   *         memorystoreClient.listAclPoliciesCallable().call(request);
          +   *     for (AclPolicy element : response.getAclPoliciesList()) {
          +   *       // doThingsWith(element);
          +   *     }
          +   *     String nextPageToken = response.getNextPageToken();
          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
          +   *     } else {
          +   *       break;
          +   *     }
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + listAclPoliciesCallable() { + return stub.listAclPoliciesCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists Instances in a given project and location. @@ -893,7 +1252,7 @@ public final UnaryCallable listInst // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Instance. + * Gets the details of a specific Memorystore ACL policy. * *

          Sample code: * @@ -904,24 +1263,25 @@ public final UnaryCallable listInst * // - 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { - * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); - * Instance response = memorystoreClient.getInstance(name); + * AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + * AclPolicy response = memorystoreClient.getAclPolicy(name); * } * } * - * @param name Required. The name of the instance to retrieve. Format: - * projects/{project}/locations/{location}/instances/{instance} + * @param name Required. Memorystore ACL policy resource name using the form: + * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}` where `location` refers + * to a Google Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(@Nullable InstanceName name) { - GetInstanceRequest request = - GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getInstance(request); + public final AclPolicy getAclPolicy(@Nullable AclPolicyName name) { + GetAclPolicyRequest request = + GetAclPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAclPolicy(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Instance. + * Gets the details of a specific Memorystore ACL policy. * *

          Sample code: * @@ -932,8 +1292,119 @@ public final Instance getInstance(@Nullable InstanceName name) { * // - 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { - * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); - * Instance response = memorystoreClient.getInstance(name); + * String name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString(); + * AclPolicy response = memorystoreClient.getAclPolicy(name); + * } + * } + * + * @param name Required. Memorystore ACL policy resource name using the form: + * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}` where `location` refers + * to a Google Cloud region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclPolicy getAclPolicy(String name) { + GetAclPolicyRequest request = GetAclPolicyRequest.newBuilder().setName(name).build(); + return getAclPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific Memorystore ACL policy. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   GetAclPolicyRequest request =
          +   *       GetAclPolicyRequest.newBuilder()
          +   *           .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +   *           .build();
          +   *   AclPolicy response = memorystoreClient.getAclPolicy(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 AclPolicy getAclPolicy(GetAclPolicyRequest request) { + return getAclPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific Memorystore ACL policy. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   GetAclPolicyRequest request =
          +   *       GetAclPolicyRequest.newBuilder()
          +   *           .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +   *           .build();
          +   *   ApiFuture future = memorystoreClient.getAclPolicyCallable().futureCall(request);
          +   *   // Do something.
          +   *   AclPolicy response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable getAclPolicyCallable() { + return stub.getAclPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Instance. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
          +   *   Instance response = memorystoreClient.getInstance(name);
          +   * }
          +   * }
          + * + * @param name Required. The name of the instance to retrieve. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Instance getInstance(@Nullable InstanceName name) { + GetInstanceRequest request = + GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getInstance(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Instance. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
          +   *   Instance response = memorystoreClient.getInstance(name);
              * }
              * }
          * @@ -991,19 +1462,802 @@ public final Instance getInstance(GetInstanceRequest request) { * GetInstanceRequest.newBuilder() * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) * .build(); - * ApiFuture future = memorystoreClient.getInstanceCallable().futureCall(request); + * ApiFuture future = memorystoreClient.getInstanceCallable().futureCall(request); + * // Do something. + * Instance response = future.get(); + * } + * } + */ + public final UnaryCallable getInstanceCallable() { + return stub.getInstanceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an ACL policy. The creation is executed synchronously and the policy is available for + * use immediately after the RPC returns. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
          +   *   AclPolicy aclPolicy = AclPolicy.newBuilder().build();
          +   *   String aclPolicyId = "aclPolicyId-1805591401";
          +   *   AclPolicy response = memorystoreClient.createAclPolicy(parent, aclPolicy, aclPolicyId);
          +   * }
          +   * }
          + * + * @param parent Required. The resource name of the ACL policy location using the form: + * `projects/{project}/locations/{location}` where `location` refers to a Google Cloud region. + * @param aclPolicy Required. The ACL policy that is to be created. + * @param aclPolicyId Required. The logical name of the ACL policy in the customer project with + * the following restrictions: + *
            + *
          • Must contain only lowercase letters, numbers, and hyphens. + *
          • Must start with a letter. + *
          • Must be between 1-63 characters. + *
          • Must end with a number or a letter. + *
          • Must be unique within the customer project / location + *
          + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclPolicy createAclPolicy( + @Nullable LocationName parent, AclPolicy aclPolicy, String aclPolicyId) { + CreateAclPolicyRequest request = + CreateAclPolicyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAclPolicy(aclPolicy) + .setAclPolicyId(aclPolicyId) + .build(); + return createAclPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an ACL policy. The creation is executed synchronously and the policy is available for + * use immediately after the RPC returns. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
          +   *   AclPolicy aclPolicy = AclPolicy.newBuilder().build();
          +   *   String aclPolicyId = "aclPolicyId-1805591401";
          +   *   AclPolicy response = memorystoreClient.createAclPolicy(parent, aclPolicy, aclPolicyId);
          +   * }
          +   * }
          + * + * @param parent Required. The resource name of the ACL policy location using the form: + * `projects/{project}/locations/{location}` where `location` refers to a Google Cloud region. + * @param aclPolicy Required. The ACL policy that is to be created. + * @param aclPolicyId Required. The logical name of the ACL policy in the customer project with + * the following restrictions: + *
            + *
          • Must contain only lowercase letters, numbers, and hyphens. + *
          • Must start with a letter. + *
          • Must be between 1-63 characters. + *
          • Must end with a number or a letter. + *
          • Must be unique within the customer project / location + *
          + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclPolicy createAclPolicy(String parent, AclPolicy aclPolicy, String aclPolicyId) { + CreateAclPolicyRequest request = + CreateAclPolicyRequest.newBuilder() + .setParent(parent) + .setAclPolicy(aclPolicy) + .setAclPolicyId(aclPolicyId) + .build(); + return createAclPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an ACL policy. The creation is executed synchronously and the policy is available for + * use immediately after the RPC returns. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   CreateAclPolicyRequest request =
          +   *       CreateAclPolicyRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setAclPolicyId("aclPolicyId-1805591401")
          +   *           .setAclPolicy(AclPolicy.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   AclPolicy response = memorystoreClient.createAclPolicy(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 AclPolicy createAclPolicy(CreateAclPolicyRequest request) { + return createAclPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an ACL policy. The creation is executed synchronously and the policy is available for + * use immediately after the RPC returns. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   CreateAclPolicyRequest request =
          +   *       CreateAclPolicyRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setAclPolicyId("aclPolicyId-1805591401")
          +   *           .setAclPolicy(AclPolicy.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future = memorystoreClient.createAclPolicyCallable().futureCall(request);
          +   *   // Do something.
          +   *   AclPolicy response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable createAclPolicyCallable() { + return stub.createAclPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Instance 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
          +   *   Instance instance = Instance.newBuilder().build();
          +   *   String instanceId = "instanceId902024336";
          +   *   Instance response = memorystoreClient.createInstanceAsync(parent, instance, instanceId).get();
          +   * }
          +   * }
          + * + * @param parent Required. The parent resource where this instance will be created. Format: + * projects/{project}/locations/{location} + * @param instance Required. The instance to create. + * @param instanceId Required. The ID to use for the instance, which will become the final + * component of the instance's resource name. + *

          This value is subject to the following restrictions: + *

            + *
          • Must be 4-63 characters in length + *
          • Must begin with a letter or digit + *
          • Must contain only lowercase letters, digits, and hyphens + *
          • Must not end with a hyphen + *
          • Must be unique within a location + *
          + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createInstanceAsync( + @Nullable LocationName parent, Instance instance, String instanceId) { + CreateInstanceRequest request = + CreateInstanceRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setInstance(instance) + .setInstanceId(instanceId) + .build(); + return createInstanceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Instance 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
          +   *   Instance instance = Instance.newBuilder().build();
          +   *   String instanceId = "instanceId902024336";
          +   *   Instance response = memorystoreClient.createInstanceAsync(parent, instance, instanceId).get();
          +   * }
          +   * }
          + * + * @param parent Required. The parent resource where this instance will be created. Format: + * projects/{project}/locations/{location} + * @param instance Required. The instance to create. + * @param instanceId Required. The ID to use for the instance, which will become the final + * component of the instance's resource name. + *

          This value is subject to the following restrictions: + *

            + *
          • Must be 4-63 characters in length + *
          • Must begin with a letter or digit + *
          • Must contain only lowercase letters, digits, and hyphens + *
          • Must not end with a hyphen + *
          • Must be unique within a location + *
          + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createInstanceAsync( + String parent, Instance instance, String instanceId) { + CreateInstanceRequest request = + CreateInstanceRequest.newBuilder() + .setParent(parent) + .setInstance(instance) + .setInstanceId(instanceId) + .build(); + return createInstanceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Instance 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   CreateInstanceRequest request =
          +   *       CreateInstanceRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setInstanceId("instanceId902024336")
          +   *           .setInstance(Instance.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   Instance response = memorystoreClient.createInstanceAsync(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 createInstanceAsync( + CreateInstanceRequest request) { + return createInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Instance 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   CreateInstanceRequest request =
          +   *       CreateInstanceRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setInstanceId("instanceId902024336")
          +   *           .setInstance(Instance.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       memorystoreClient.createInstanceOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   Instance response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + createInstanceOperationCallable() { + return stub.createInstanceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Instance 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   CreateInstanceRequest request =
          +   *       CreateInstanceRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setInstanceId("instanceId902024336")
          +   *           .setInstance(Instance.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future = memorystoreClient.createInstanceCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable createInstanceCallable() { + return stub.createInstanceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the ACL policy. + * + *

          The operation will apply the updated ACL policy to all the linked instances. The operation + * will return success if it successfully applied the policy to all the instances. If the + * operation completed with a failure, the service will continue to apply the policy via + * reconciliation for the failed instances even after operation completion to ensure eventual + * consistency. + * + *

          Completed longrunning.Operation will contain the new ACL policy object in the response + * field. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   AclPolicy aclPolicy = AclPolicy.newBuilder().build();
          +   *   FieldMask updateMask = FieldMask.newBuilder().build();
          +   *   AclPolicy response = memorystoreClient.updateAclPolicyAsync(aclPolicy, updateMask).get();
          +   * }
          +   * }
          + * + * @param aclPolicy Required. The ACL policy to be updated. + * @param updateMask Optional. Mask of fields to be updated. At least one path must be supplied in + * this field. The elements of the repeated paths field may only include these fields from + * `AclPolicy`: + *

          * `rules` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateAclPolicyAsync( + AclPolicy aclPolicy, FieldMask updateMask) { + UpdateAclPolicyRequest request = + UpdateAclPolicyRequest.newBuilder() + .setAclPolicy(aclPolicy) + .setUpdateMask(updateMask) + .build(); + return updateAclPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the ACL policy. + * + *

          The operation will apply the updated ACL policy to all the linked instances. The operation + * will return success if it successfully applied the policy to all the instances. If the + * operation completed with a failure, the service will continue to apply the policy via + * reconciliation for the failed instances even after operation completion to ensure eventual + * consistency. + * + *

          Completed longrunning.Operation will contain the new ACL policy object in the response + * field. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   UpdateAclPolicyRequest request =
          +   *       UpdateAclPolicyRequest.newBuilder()
          +   *           .setAclPolicy(AclPolicy.newBuilder().build())
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   AclPolicy response = memorystoreClient.updateAclPolicyAsync(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 updateAclPolicyAsync( + UpdateAclPolicyRequest request) { + return updateAclPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the ACL policy. + * + *

          The operation will apply the updated ACL policy to all the linked instances. The operation + * will return success if it successfully applied the policy to all the instances. If the + * operation completed with a failure, the service will continue to apply the policy via + * reconciliation for the failed instances even after operation completion to ensure eventual + * consistency. + * + *

          Completed longrunning.Operation will contain the new ACL policy object in the response + * field. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   UpdateAclPolicyRequest request =
          +   *       UpdateAclPolicyRequest.newBuilder()
          +   *           .setAclPolicy(AclPolicy.newBuilder().build())
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       memorystoreClient.updateAclPolicyOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   AclPolicy response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + updateAclPolicyOperationCallable() { + return stub.updateAclPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the ACL policy. + * + *

          The operation will apply the updated ACL policy to all the linked instances. The operation + * will return success if it successfully applied the policy to all the instances. If the + * operation completed with a failure, the service will continue to apply the policy via + * reconciliation for the failed instances even after operation completion to ensure eventual + * consistency. + * + *

          Completed longrunning.Operation will contain the new ACL policy object in the response + * field. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   UpdateAclPolicyRequest request =
          +   *       UpdateAclPolicyRequest.newBuilder()
          +   *           .setAclPolicy(AclPolicy.newBuilder().build())
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future = memorystoreClient.updateAclPolicyCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable updateAclPolicyCallable() { + return stub.updateAclPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Instance. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   Instance instance = Instance.newBuilder().build();
          +   *   FieldMask updateMask = FieldMask.newBuilder().build();
          +   *   Instance response = memorystoreClient.updateInstanceAsync(instance, updateMask).get();
          +   * }
          +   * }
          + * + * @param instance Required. The instance to update. + * @param updateMask Optional. The list of fields to be updated on the instance. At least one + * field must be specified. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateInstanceAsync( + Instance instance, FieldMask updateMask) { + UpdateInstanceRequest request = + UpdateInstanceRequest.newBuilder().setInstance(instance).setUpdateMask(updateMask).build(); + return updateInstanceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Instance. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   UpdateInstanceRequest request =
          +   *       UpdateInstanceRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setInstance(Instance.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   Instance response = memorystoreClient.updateInstanceAsync(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 updateInstanceAsync( + UpdateInstanceRequest request) { + return updateInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Instance. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   UpdateInstanceRequest request =
          +   *       UpdateInstanceRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setInstance(Instance.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       memorystoreClient.updateInstanceOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   Instance response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + updateInstanceOperationCallable() { + return stub.updateInstanceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Instance. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   UpdateInstanceRequest request =
          +   *       UpdateInstanceRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setInstance(Instance.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future = memorystoreClient.updateInstanceCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable updateInstanceCallable() { + return stub.updateInstanceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific ACL policy. This action will delete the ACL policy and all the rules + * associated with it. An ACL policy cannot be deleted if it is attached to an instance. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
          +   *   memorystoreClient.deleteAclPolicyAsync(name).get();
          +   * }
          +   * }
          + * + * @param name Required. Memorystore ACL policy resource name using the form: + * `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}` where `location` + * refers to a Google Cloud region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAclPolicyAsync( + @Nullable AclPolicyName name) { + DeleteAclPolicyRequest request = + DeleteAclPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteAclPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific ACL policy. This action will delete the ACL policy and all the rules + * associated with it. An ACL policy cannot be deleted if it is attached to an instance. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   String name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString();
          +   *   memorystoreClient.deleteAclPolicyAsync(name).get();
          +   * }
          +   * }
          + * + * @param name Required. Memorystore ACL policy resource name using the form: + * `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}` where `location` + * refers to a Google Cloud region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAclPolicyAsync(String name) { + DeleteAclPolicyRequest request = DeleteAclPolicyRequest.newBuilder().setName(name).build(); + return deleteAclPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific ACL policy. This action will delete the ACL policy and all the rules + * associated with it. An ACL policy cannot be deleted if it is attached to an instance. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   DeleteAclPolicyRequest request =
          +   *       DeleteAclPolicyRequest.newBuilder()
          +   *           .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .setEtag("etag3123477")
          +   *           .build();
          +   *   memorystoreClient.deleteAclPolicyAsync(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 deleteAclPolicyAsync( + DeleteAclPolicyRequest request) { + return deleteAclPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific ACL policy. This action will delete the ACL policy and all the rules + * associated with it. An ACL policy cannot be deleted if it is attached to an instance. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   DeleteAclPolicyRequest request =
          +   *       DeleteAclPolicyRequest.newBuilder()
          +   *           .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .setEtag("etag3123477")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       memorystoreClient.deleteAclPolicyOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + deleteAclPolicyOperationCallable() { + return stub.deleteAclPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific ACL policy. This action will delete the ACL policy and all the rules + * associated with it. An ACL policy cannot be deleted if it is attached to an instance. + * + *

          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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          +   *   DeleteAclPolicyRequest request =
          +   *       DeleteAclPolicyRequest.newBuilder()
          +   *           .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .setEtag("etag3123477")
          +   *           .build();
          +   *   ApiFuture future = memorystoreClient.deleteAclPolicyCallable().futureCall(request);
              *   // Do something.
          -   *   Instance response = future.get();
          +   *   future.get();
              * }
              * }
          */ - public final UnaryCallable getInstanceCallable() { - return stub.getInstanceCallable(); + public final UnaryCallable deleteAclPolicyCallable() { + return stub.deleteAclPolicyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Instance in a given project and location. + * Gets details of a specific ACL policy revision. * *

          Sample code: * @@ -1014,43 +2268,28 @@ public final UnaryCallable getInstanceCallable() { * // - 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * Instance instance = Instance.newBuilder().build(); - * String instanceId = "instanceId902024336"; - * Instance response = memorystoreClient.createInstanceAsync(parent, instance, instanceId).get(); + * AclPolicyRevisionName name = + * AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]"); + * AclPolicyRevision response = memorystoreClient.getAclPolicyRevision(name); * } * } * - * @param parent Required. The parent resource where this instance will be created. Format: - * projects/{project}/locations/{location} - * @param instance Required. The instance to create. - * @param instanceId Required. The ID to use for the instance, which will become the final - * component of the instance's resource name. - *

          This value is subject to the following restrictions: - *

            - *
          • Must be 4-63 characters in length - *
          • Must begin with a letter or digit - *
          • Must contain only lowercase letters, digits, and hyphens - *
          • Must not end with a hyphen - *
          • Must be unique within a location - *
          - * + * @param name Required. Memorystore ACL policy revision resource name using the form: + * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}` + * where `location` refers to a Google Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createInstanceAsync( - @Nullable LocationName parent, Instance instance, String instanceId) { - CreateInstanceRequest request = - CreateInstanceRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setInstance(instance) - .setInstanceId(instanceId) + public final AclPolicyRevision getAclPolicyRevision(@Nullable AclPolicyRevisionName name) { + GetAclPolicyRevisionRequest request = + GetAclPolicyRevisionRequest.newBuilder() + .setName(name == null ? null : name.toString()) .build(); - return createInstanceAsync(request); + return getAclPolicyRevision(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Instance in a given project and location. + * Gets details of a specific ACL policy revision. * *

          Sample code: * @@ -1061,43 +2300,27 @@ public final OperationFuture createInstanceAsync( * // - 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * Instance instance = Instance.newBuilder().build(); - * String instanceId = "instanceId902024336"; - * Instance response = memorystoreClient.createInstanceAsync(parent, instance, instanceId).get(); + * String name = + * AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + * .toString(); + * AclPolicyRevision response = memorystoreClient.getAclPolicyRevision(name); * } * } * - * @param parent Required. The parent resource where this instance will be created. Format: - * projects/{project}/locations/{location} - * @param instance Required. The instance to create. - * @param instanceId Required. The ID to use for the instance, which will become the final - * component of the instance's resource name. - *

          This value is subject to the following restrictions: - *

            - *
          • Must be 4-63 characters in length - *
          • Must begin with a letter or digit - *
          • Must contain only lowercase letters, digits, and hyphens - *
          • Must not end with a hyphen - *
          • Must be unique within a location - *
          - * + * @param name Required. Memorystore ACL policy revision resource name using the form: + * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}` + * where `location` refers to a Google Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createInstanceAsync( - String parent, Instance instance, String instanceId) { - CreateInstanceRequest request = - CreateInstanceRequest.newBuilder() - .setParent(parent) - .setInstance(instance) - .setInstanceId(instanceId) - .build(); - return createInstanceAsync(request); + public final AclPolicyRevision getAclPolicyRevision(String name) { + GetAclPolicyRevisionRequest request = + GetAclPolicyRevisionRequest.newBuilder().setName(name).build(); + return getAclPolicyRevision(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Instance in a given project and location. + * Gets details of a specific ACL policy revision. * *

          Sample code: * @@ -1108,28 +2331,26 @@ public final OperationFuture createInstanceAsync( * // - 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { - * CreateInstanceRequest request = - * CreateInstanceRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setInstanceId("instanceId902024336") - * .setInstance(Instance.newBuilder().build()) - * .setRequestId("requestId693933066") + * GetAclPolicyRevisionRequest request = + * GetAclPolicyRevisionRequest.newBuilder() + * .setName( + * AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + * .toString()) * .build(); - * Instance response = memorystoreClient.createInstanceAsync(request).get(); + * AclPolicyRevision response = memorystoreClient.getAclPolicyRevision(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 OperationFuture createInstanceAsync( - CreateInstanceRequest request) { - return createInstanceOperationCallable().futureCall(request); + public final AclPolicyRevision getAclPolicyRevision(GetAclPolicyRevisionRequest request) { + return getAclPolicyRevisionCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Instance in a given project and location. + * Gets details of a specific ACL policy revision. * *

          Sample code: * @@ -1140,28 +2361,27 @@ public final OperationFuture createInstanceAsync( * // - 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { - * CreateInstanceRequest request = - * CreateInstanceRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setInstanceId("instanceId902024336") - * .setInstance(Instance.newBuilder().build()) - * .setRequestId("requestId693933066") + * GetAclPolicyRevisionRequest request = + * GetAclPolicyRevisionRequest.newBuilder() + * .setName( + * AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + * .toString()) * .build(); - * OperationFuture future = - * memorystoreClient.createInstanceOperationCallable().futureCall(request); + * ApiFuture future = + * memorystoreClient.getAclPolicyRevisionCallable().futureCall(request); * // Do something. - * Instance response = future.get(); + * AclPolicyRevision response = future.get(); * } * } */ - public final OperationCallable - createInstanceOperationCallable() { - return stub.createInstanceOperationCallable(); + public final UnaryCallable + getAclPolicyRevisionCallable() { + return stub.getAclPolicyRevisionCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Instance in a given project and location. + * Lists all ACL policy revisions in a given ACL policy. * *

          Sample code: * @@ -1172,26 +2392,30 @@ public final OperationFuture createInstanceAsync( * // - 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { - * CreateInstanceRequest request = - * CreateInstanceRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setInstanceId("instanceId902024336") - * .setInstance(Instance.newBuilder().build()) - * .setRequestId("requestId693933066") - * .build(); - * ApiFuture future = memorystoreClient.createInstanceCallable().futureCall(request); - * // Do something. - * Operation response = future.get(); + * AclPolicyName parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + * for (AclPolicyRevision element : + * memorystoreClient.listAclPolicyRevisions(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } + * + * @param parent Required. The resource name of the ACL policy to list revisions for. Format: + * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable createInstanceCallable() { - return stub.createInstanceCallable(); + public final ListAclPolicyRevisionsPagedResponse listAclPolicyRevisions( + @Nullable AclPolicyName parent) { + ListAclPolicyRevisionsRequest request = + ListAclPolicyRevisionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAclPolicyRevisions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single Instance. + * Lists all ACL policy revisions in a given ACL policy. * *

          Sample code: * @@ -1202,27 +2426,27 @@ public final UnaryCallable createInstanceCalla * // - 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { - * Instance instance = Instance.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * Instance response = memorystoreClient.updateInstanceAsync(instance, updateMask).get(); + * String parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString(); + * for (AclPolicyRevision element : + * memorystoreClient.listAclPolicyRevisions(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param instance Required. The instance to update. - * @param updateMask Optional. The list of fields to be updated on the instance. At least one - * field must be specified. + * @param parent Required. The resource name of the ACL policy to list revisions for. Format: + * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updateInstanceAsync( - Instance instance, FieldMask updateMask) { - UpdateInstanceRequest request = - UpdateInstanceRequest.newBuilder().setInstance(instance).setUpdateMask(updateMask).build(); - return updateInstanceAsync(request); + public final ListAclPolicyRevisionsPagedResponse listAclPolicyRevisions(String parent) { + ListAclPolicyRevisionsRequest request = + ListAclPolicyRevisionsRequest.newBuilder().setParent(parent).build(); + return listAclPolicyRevisions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single Instance. + * Lists all ACL policy revisions in a given ACL policy. * *

          Sample code: * @@ -1233,27 +2457,30 @@ public final OperationFuture updateInstanceAsync( * // - 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { - * UpdateInstanceRequest request = - * UpdateInstanceRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setInstance(Instance.newBuilder().build()) - * .setRequestId("requestId693933066") + * ListAclPolicyRevisionsRequest request = + * ListAclPolicyRevisionsRequest.newBuilder() + * .setParent(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * Instance response = memorystoreClient.updateInstanceAsync(request).get(); + * for (AclPolicyRevision element : + * memorystoreClient.listAclPolicyRevisions(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 OperationFuture updateInstanceAsync( - UpdateInstanceRequest request) { - return updateInstanceOperationCallable().futureCall(request); + public final ListAclPolicyRevisionsPagedResponse listAclPolicyRevisions( + ListAclPolicyRevisionsRequest request) { + return listAclPolicyRevisionsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single Instance. + * Lists all ACL policy revisions in a given ACL policy. * *

          Sample code: * @@ -1264,27 +2491,29 @@ public final OperationFuture updateInstanceAsync( * // - 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { - * UpdateInstanceRequest request = - * UpdateInstanceRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setInstance(Instance.newBuilder().build()) - * .setRequestId("requestId693933066") + * ListAclPolicyRevisionsRequest request = + * ListAclPolicyRevisionsRequest.newBuilder() + * .setParent(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * OperationFuture future = - * memorystoreClient.updateInstanceOperationCallable().futureCall(request); + * ApiFuture future = + * memorystoreClient.listAclPolicyRevisionsPagedCallable().futureCall(request); * // Do something. - * Instance response = future.get(); + * for (AclPolicyRevision element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final OperationCallable - updateInstanceOperationCallable() { - return stub.updateInstanceOperationCallable(); + public final UnaryCallable + listAclPolicyRevisionsPagedCallable() { + return stub.listAclPolicyRevisionsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single Instance. + * Lists all ACL policy revisions in a given ACL policy. * *

          Sample code: * @@ -1295,20 +2524,31 @@ public final OperationFuture updateInstanceAsync( * // - 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { - * UpdateInstanceRequest request = - * UpdateInstanceRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setInstance(Instance.newBuilder().build()) - * .setRequestId("requestId693933066") + * ListAclPolicyRevisionsRequest request = + * ListAclPolicyRevisionsRequest.newBuilder() + * .setParent(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = memorystoreClient.updateInstanceCallable().futureCall(request); - * // Do something. - * Operation response = future.get(); + * while (true) { + * ListAclPolicyRevisionsResponse response = + * memorystoreClient.listAclPolicyRevisionsCallable().call(request); + * for (AclPolicyRevision element : response.getAclPolicyRevisionsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } */ - public final UnaryCallable updateInstanceCallable() { - return stub.updateInstanceCallable(); + public final UnaryCallable + listAclPolicyRevisionsCallable() { + return stub.listAclPolicyRevisionsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. @@ -4648,6 +5888,83 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted return stub.awaitTermination(duration, unit); } + public static class ListAclPoliciesPagedResponse + extends AbstractPagedListResponse< + ListAclPoliciesRequest, + ListAclPoliciesResponse, + AclPolicy, + ListAclPoliciesPage, + ListAclPoliciesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAclPoliciesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAclPoliciesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAclPoliciesPagedResponse(ListAclPoliciesPage page) { + super(page, ListAclPoliciesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAclPoliciesPage + extends AbstractPage< + ListAclPoliciesRequest, ListAclPoliciesResponse, AclPolicy, ListAclPoliciesPage> { + + private ListAclPoliciesPage( + @Nullable PageContext context, + @Nullable ListAclPoliciesResponse response) { + super(context, response); + } + + private static ListAclPoliciesPage createEmptyPage() { + return new ListAclPoliciesPage(null, null); + } + + @Override + protected ListAclPoliciesPage createPage( + @Nullable PageContext context, + @Nullable ListAclPoliciesResponse response) { + return new ListAclPoliciesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAclPoliciesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAclPoliciesRequest, + ListAclPoliciesResponse, + AclPolicy, + ListAclPoliciesPage, + ListAclPoliciesFixedSizeCollection> { + + private ListAclPoliciesFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAclPoliciesFixedSizeCollection createEmptyCollection() { + return new ListAclPoliciesFixedSizeCollection(null, 0); + } + + @Override + protected ListAclPoliciesFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAclPoliciesFixedSizeCollection(pages, collectionSize); + } + } + public static class ListInstancesPagedResponse extends AbstractPagedListResponse< ListInstancesRequest, @@ -4725,6 +6042,97 @@ protected ListInstancesFixedSizeCollection createCollection( } } + public static class ListAclPolicyRevisionsPagedResponse + extends AbstractPagedListResponse< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + AclPolicyRevision, + ListAclPolicyRevisionsPage, + ListAclPolicyRevisionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse, AclPolicyRevision> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAclPolicyRevisionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAclPolicyRevisionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAclPolicyRevisionsPagedResponse(ListAclPolicyRevisionsPage page) { + super(page, ListAclPolicyRevisionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAclPolicyRevisionsPage + extends AbstractPage< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + AclPolicyRevision, + ListAclPolicyRevisionsPage> { + + private ListAclPolicyRevisionsPage( + @Nullable + PageContext< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse, AclPolicyRevision> + context, + @Nullable ListAclPolicyRevisionsResponse response) { + super(context, response); + } + + private static ListAclPolicyRevisionsPage createEmptyPage() { + return new ListAclPolicyRevisionsPage(null, null); + } + + @Override + protected ListAclPolicyRevisionsPage createPage( + @Nullable + PageContext< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse, AclPolicyRevision> + context, + @Nullable ListAclPolicyRevisionsResponse response) { + return new ListAclPolicyRevisionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse, AclPolicyRevision> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAclPolicyRevisionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + AclPolicyRevision, + ListAclPolicyRevisionsPage, + ListAclPolicyRevisionsFixedSizeCollection> { + + private ListAclPolicyRevisionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAclPolicyRevisionsFixedSizeCollection createEmptyCollection() { + return new ListAclPolicyRevisionsFixedSizeCollection(null, 0); + } + + @Override + protected ListAclPolicyRevisionsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAclPolicyRevisionsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListBackupCollectionsPagedResponse extends AbstractPagedListResponse< ListBackupCollectionsRequest, diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/MemorystoreSettings.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/MemorystoreSettings.java index d6e074afad2b..e15b461fca69 100644 --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/MemorystoreSettings.java +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/MemorystoreSettings.java @@ -16,6 +16,8 @@ package com.google.cloud.memorystore.v1beta; +import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListAclPoliciesPagedResponse; +import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListAclPolicyRevisionsPagedResponse; import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListAuthTokensPagedResponse; import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListBackupCollectionsPagedResponse; import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListBackupsPagedResponse; @@ -66,7 +68,7 @@ * *

          For example, to set the * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) - * of getInstance: + * of getAclPolicy: * *

          {@code
            * // This snippet has been automatically generated and should be regarded as a code template only.
          @@ -76,10 +78,10 @@
            * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            * MemorystoreSettings.Builder memorystoreSettingsBuilder = MemorystoreSettings.newBuilder();
            * memorystoreSettingsBuilder
          - *     .getInstanceSettings()
          + *     .getAclPolicySettings()
            *     .setRetrySettings(
            *         memorystoreSettingsBuilder
          - *             .getInstanceSettings()
          + *             .getAclPolicySettings()
            *             .getRetrySettings()
            *             .toBuilder()
            *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
          @@ -128,17 +130,34 @@
           @Generated("by gapic-generator-java")
           public class MemorystoreSettings extends ClientSettings {
           
          +  /** Returns the object with the settings used for calls to listAclPolicies. */
          +  public PagedCallSettings<
          +          ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse>
          +      listAclPoliciesSettings() {
          +    return ((MemorystoreStubSettings) getStubSettings()).listAclPoliciesSettings();
          +  }
          +
             /** Returns the object with the settings used for calls to listInstances. */
             public PagedCallSettings
                 listInstancesSettings() {
               return ((MemorystoreStubSettings) getStubSettings()).listInstancesSettings();
             }
           
          +  /** Returns the object with the settings used for calls to getAclPolicy. */
          +  public UnaryCallSettings getAclPolicySettings() {
          +    return ((MemorystoreStubSettings) getStubSettings()).getAclPolicySettings();
          +  }
          +
             /** Returns the object with the settings used for calls to getInstance. */
             public UnaryCallSettings getInstanceSettings() {
               return ((MemorystoreStubSettings) getStubSettings()).getInstanceSettings();
             }
           
          +  /** Returns the object with the settings used for calls to createAclPolicy. */
          +  public UnaryCallSettings createAclPolicySettings() {
          +    return ((MemorystoreStubSettings) getStubSettings()).createAclPolicySettings();
          +  }
          +
             /** Returns the object with the settings used for calls to createInstance. */
             public UnaryCallSettings createInstanceSettings() {
               return ((MemorystoreStubSettings) getStubSettings()).createInstanceSettings();
          @@ -150,6 +169,17 @@ public UnaryCallSettings createInstanceSetting
               return ((MemorystoreStubSettings) getStubSettings()).createInstanceOperationSettings();
             }
           
          +  /** Returns the object with the settings used for calls to updateAclPolicy. */
          +  public UnaryCallSettings updateAclPolicySettings() {
          +    return ((MemorystoreStubSettings) getStubSettings()).updateAclPolicySettings();
          +  }
          +
          +  /** Returns the object with the settings used for calls to updateAclPolicy. */
          +  public OperationCallSettings
          +      updateAclPolicyOperationSettings() {
          +    return ((MemorystoreStubSettings) getStubSettings()).updateAclPolicyOperationSettings();
          +  }
          +
             /** Returns the object with the settings used for calls to updateInstance. */
             public UnaryCallSettings updateInstanceSettings() {
               return ((MemorystoreStubSettings) getStubSettings()).updateInstanceSettings();
          @@ -161,6 +191,32 @@ public UnaryCallSettings updateInstanceSetting
               return ((MemorystoreStubSettings) getStubSettings()).updateInstanceOperationSettings();
             }
           
          +  /** Returns the object with the settings used for calls to deleteAclPolicy. */
          +  public UnaryCallSettings deleteAclPolicySettings() {
          +    return ((MemorystoreStubSettings) getStubSettings()).deleteAclPolicySettings();
          +  }
          +
          +  /** Returns the object with the settings used for calls to deleteAclPolicy. */
          +  public OperationCallSettings
          +      deleteAclPolicyOperationSettings() {
          +    return ((MemorystoreStubSettings) getStubSettings()).deleteAclPolicyOperationSettings();
          +  }
          +
          +  /** Returns the object with the settings used for calls to getAclPolicyRevision. */
          +  public UnaryCallSettings
          +      getAclPolicyRevisionSettings() {
          +    return ((MemorystoreStubSettings) getStubSettings()).getAclPolicyRevisionSettings();
          +  }
          +
          +  /** Returns the object with the settings used for calls to listAclPolicyRevisions. */
          +  public PagedCallSettings<
          +          ListAclPolicyRevisionsRequest,
          +          ListAclPolicyRevisionsResponse,
          +          ListAclPolicyRevisionsPagedResponse>
          +      listAclPolicyRevisionsSettings() {
          +    return ((MemorystoreStubSettings) getStubSettings()).listAclPolicyRevisionsSettings();
          +  }
          +
             /** Returns the object with the settings used for calls to deleteInstance. */
             public UnaryCallSettings deleteInstanceSettings() {
               return ((MemorystoreStubSettings) getStubSettings()).deleteInstanceSettings();
          @@ -471,6 +527,13 @@ public Builder applyToAllUnaryMethods(
                 return this;
               }
           
          +    /** Returns the builder for the settings used for calls to listAclPolicies. */
          +    public PagedCallSettings.Builder<
          +            ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse>
          +        listAclPoliciesSettings() {
          +      return getStubSettingsBuilder().listAclPoliciesSettings();
          +    }
          +
               /** Returns the builder for the settings used for calls to listInstances. */
               public PagedCallSettings.Builder<
                       ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse>
          @@ -478,11 +541,21 @@ public Builder applyToAllUnaryMethods(
                 return getStubSettingsBuilder().listInstancesSettings();
               }
           
          +    /** Returns the builder for the settings used for calls to getAclPolicy. */
          +    public UnaryCallSettings.Builder getAclPolicySettings() {
          +      return getStubSettingsBuilder().getAclPolicySettings();
          +    }
          +
               /** Returns the builder for the settings used for calls to getInstance. */
               public UnaryCallSettings.Builder getInstanceSettings() {
                 return getStubSettingsBuilder().getInstanceSettings();
               }
           
          +    /** Returns the builder for the settings used for calls to createAclPolicy. */
          +    public UnaryCallSettings.Builder createAclPolicySettings() {
          +      return getStubSettingsBuilder().createAclPolicySettings();
          +    }
          +
               /** Returns the builder for the settings used for calls to createInstance. */
               public UnaryCallSettings.Builder createInstanceSettings() {
                 return getStubSettingsBuilder().createInstanceSettings();
          @@ -494,6 +567,17 @@ public UnaryCallSettings.Builder createInstanc
                 return getStubSettingsBuilder().createInstanceOperationSettings();
               }
           
          +    /** Returns the builder for the settings used for calls to updateAclPolicy. */
          +    public UnaryCallSettings.Builder updateAclPolicySettings() {
          +      return getStubSettingsBuilder().updateAclPolicySettings();
          +    }
          +
          +    /** Returns the builder for the settings used for calls to updateAclPolicy. */
          +    public OperationCallSettings.Builder
          +        updateAclPolicyOperationSettings() {
          +      return getStubSettingsBuilder().updateAclPolicyOperationSettings();
          +    }
          +
               /** Returns the builder for the settings used for calls to updateInstance. */
               public UnaryCallSettings.Builder updateInstanceSettings() {
                 return getStubSettingsBuilder().updateInstanceSettings();
          @@ -505,6 +589,32 @@ public UnaryCallSettings.Builder updateInstanc
                 return getStubSettingsBuilder().updateInstanceOperationSettings();
               }
           
          +    /** Returns the builder for the settings used for calls to deleteAclPolicy. */
          +    public UnaryCallSettings.Builder deleteAclPolicySettings() {
          +      return getStubSettingsBuilder().deleteAclPolicySettings();
          +    }
          +
          +    /** Returns the builder for the settings used for calls to deleteAclPolicy. */
          +    public OperationCallSettings.Builder
          +        deleteAclPolicyOperationSettings() {
          +      return getStubSettingsBuilder().deleteAclPolicyOperationSettings();
          +    }
          +
          +    /** Returns the builder for the settings used for calls to getAclPolicyRevision. */
          +    public UnaryCallSettings.Builder
          +        getAclPolicyRevisionSettings() {
          +      return getStubSettingsBuilder().getAclPolicyRevisionSettings();
          +    }
          +
          +    /** Returns the builder for the settings used for calls to listAclPolicyRevisions. */
          +    public PagedCallSettings.Builder<
          +            ListAclPolicyRevisionsRequest,
          +            ListAclPolicyRevisionsResponse,
          +            ListAclPolicyRevisionsPagedResponse>
          +        listAclPolicyRevisionsSettings() {
          +      return getStubSettingsBuilder().listAclPolicyRevisionsSettings();
          +    }
          +
               /** Returns the builder for the settings used for calls to deleteInstance. */
               public UnaryCallSettings.Builder deleteInstanceSettings() {
                 return getStubSettingsBuilder().deleteInstanceSettings();
          diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/gapic_metadata.json b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/gapic_metadata.json
          index 2c3ffc2ef1a9..d3f4ad24845a 100644
          --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/gapic_metadata.json
          +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/gapic_metadata.json
          @@ -19,9 +19,15 @@
                       "BackupInstance": {
                         "methods": ["backupInstanceAsync", "backupInstanceAsync", "backupInstanceAsync", "backupInstanceOperationCallable", "backupInstanceCallable"]
                       },
          +            "CreateAclPolicy": {
          +              "methods": ["createAclPolicy", "createAclPolicy", "createAclPolicy", "createAclPolicyCallable"]
          +            },
                       "CreateInstance": {
                         "methods": ["createInstanceAsync", "createInstanceAsync", "createInstanceAsync", "createInstanceOperationCallable", "createInstanceCallable"]
                       },
          +            "DeleteAclPolicy": {
          +              "methods": ["deleteAclPolicyAsync", "deleteAclPolicyAsync", "deleteAclPolicyAsync", "deleteAclPolicyOperationCallable", "deleteAclPolicyCallable"]
          +            },
                       "DeleteAuthToken": {
                         "methods": ["deleteAuthTokenAsync", "deleteAuthTokenAsync", "deleteAuthTokenAsync", "deleteAuthTokenOperationCallable", "deleteAuthTokenCallable"]
                       },
          @@ -40,6 +46,12 @@
                       "FinishMigration": {
                         "methods": ["finishMigrationAsync", "finishMigrationAsync", "finishMigrationAsync", "finishMigrationOperationCallable", "finishMigrationCallable"]
                       },
          +            "GetAclPolicy": {
          +              "methods": ["getAclPolicy", "getAclPolicy", "getAclPolicy", "getAclPolicyCallable"]
          +            },
          +            "GetAclPolicyRevision": {
          +              "methods": ["getAclPolicyRevision", "getAclPolicyRevision", "getAclPolicyRevision", "getAclPolicyRevisionCallable"]
          +            },
                       "GetAuthToken": {
                         "methods": ["getAuthToken", "getAuthToken", "getAuthToken", "getAuthTokenCallable"]
                       },
          @@ -64,6 +76,12 @@
                       "GetTokenAuthUser": {
                         "methods": ["getTokenAuthUser", "getTokenAuthUser", "getTokenAuthUser", "getTokenAuthUserCallable"]
                       },
          +            "ListAclPolicies": {
          +              "methods": ["listAclPolicies", "listAclPolicies", "listAclPolicies", "listAclPoliciesPagedCallable", "listAclPoliciesCallable"]
          +            },
          +            "ListAclPolicyRevisions": {
          +              "methods": ["listAclPolicyRevisions", "listAclPolicyRevisions", "listAclPolicyRevisions", "listAclPolicyRevisionsPagedCallable", "listAclPolicyRevisionsCallable"]
          +            },
                       "ListAuthTokens": {
                         "methods": ["listAuthTokens", "listAuthTokens", "listAuthTokens", "listAuthTokensPagedCallable", "listAuthTokensCallable"]
                       },
          @@ -88,6 +106,9 @@
                       "StartMigration": {
                         "methods": ["startMigrationAsync", "startMigrationOperationCallable", "startMigrationCallable"]
                       },
          +            "UpdateAclPolicy": {
          +              "methods": ["updateAclPolicyAsync", "updateAclPolicyAsync", "updateAclPolicyOperationCallable", "updateAclPolicyCallable"]
          +            },
                       "UpdateInstance": {
                         "methods": ["updateInstanceAsync", "updateInstanceAsync", "updateInstanceOperationCallable", "updateInstanceCallable"]
                       }
          diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/package-info.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/package-info.java
          index a2b0bf595c53..b43a403af690 100644
          --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/package-info.java
          +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/package-info.java
          @@ -32,8 +32,8 @@
            * // - 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
          - *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
          - *   Instance response = memorystoreClient.getInstance(name);
          + *   AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
          + *   AclPolicy response = memorystoreClient.getAclPolicy(name);
            * }
            * }
          */ diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/GrpcMemorystoreStub.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/GrpcMemorystoreStub.java index 8365ec6eab18..f65142cbdb75 100644 --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/GrpcMemorystoreStub.java +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/GrpcMemorystoreStub.java @@ -16,6 +16,8 @@ package com.google.cloud.memorystore.v1beta.stub; +import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListAclPoliciesPagedResponse; +import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListAclPolicyRevisionsPagedResponse; import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListAuthTokensPagedResponse; import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListBackupCollectionsPagedResponse; import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListBackupsPagedResponse; @@ -36,6 +38,8 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.memorystore.v1beta.AclPolicy; +import com.google.cloud.memorystore.v1beta.AclPolicyRevision; import com.google.cloud.memorystore.v1beta.AddAuthTokenRequest; import com.google.cloud.memorystore.v1beta.AddTokenAuthUserRequest; import com.google.cloud.memorystore.v1beta.AuthToken; @@ -43,13 +47,17 @@ import com.google.cloud.memorystore.v1beta.BackupCollection; import com.google.cloud.memorystore.v1beta.BackupInstanceRequest; import com.google.cloud.memorystore.v1beta.CertificateAuthority; +import com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest; import com.google.cloud.memorystore.v1beta.CreateInstanceRequest; +import com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest; import com.google.cloud.memorystore.v1beta.DeleteAuthTokenRequest; import com.google.cloud.memorystore.v1beta.DeleteBackupRequest; import com.google.cloud.memorystore.v1beta.DeleteInstanceRequest; import com.google.cloud.memorystore.v1beta.DeleteTokenAuthUserRequest; import com.google.cloud.memorystore.v1beta.ExportBackupRequest; import com.google.cloud.memorystore.v1beta.FinishMigrationRequest; +import com.google.cloud.memorystore.v1beta.GetAclPolicyRequest; +import com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest; import com.google.cloud.memorystore.v1beta.GetAuthTokenRequest; import com.google.cloud.memorystore.v1beta.GetBackupCollectionRequest; import com.google.cloud.memorystore.v1beta.GetBackupRequest; @@ -58,6 +66,10 @@ import com.google.cloud.memorystore.v1beta.GetSharedRegionalCertificateAuthorityRequest; import com.google.cloud.memorystore.v1beta.GetTokenAuthUserRequest; import com.google.cloud.memorystore.v1beta.Instance; +import com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest; +import com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse; +import com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest; +import com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse; import com.google.cloud.memorystore.v1beta.ListAuthTokensRequest; import com.google.cloud.memorystore.v1beta.ListAuthTokensResponse; import com.google.cloud.memorystore.v1beta.ListBackupCollectionsRequest; @@ -73,6 +85,7 @@ import com.google.cloud.memorystore.v1beta.SharedRegionalCertificateAuthority; import com.google.cloud.memorystore.v1beta.StartMigrationRequest; import com.google.cloud.memorystore.v1beta.TokenAuthUser; +import com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest; import com.google.cloud.memorystore.v1beta.UpdateInstanceRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; @@ -94,6 +107,18 @@ @BetaApi @Generated("by gapic-generator-java") public class GrpcMemorystoreStub extends MemorystoreStub { + private static final MethodDescriptor + listAclPoliciesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.memorystore.v1beta.Memorystore/ListAclPolicies") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAclPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAclPoliciesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listInstancesMethodDescriptor = MethodDescriptor.newBuilder() @@ -106,6 +131,16 @@ public class GrpcMemorystoreStub extends MemorystoreStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + getAclPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.memorystore.v1beta.Memorystore/GetAclPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetAclPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AclPolicy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor getInstanceMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -115,6 +150,17 @@ public class GrpcMemorystoreStub extends MemorystoreStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + createAclPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.memorystore.v1beta.Memorystore/CreateAclPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAclPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AclPolicy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor createInstanceMethodDescriptor = MethodDescriptor.newBuilder() @@ -126,6 +172,17 @@ public class GrpcMemorystoreStub extends MemorystoreStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + updateAclPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.memorystore.v1beta.Memorystore/UpdateAclPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAclPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor updateInstanceMethodDescriptor = MethodDescriptor.newBuilder() @@ -137,6 +194,43 @@ public class GrpcMemorystoreStub extends MemorystoreStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + deleteAclPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.memorystore.v1beta.Memorystore/DeleteAclPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAclPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAclPolicyRevisionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.memorystore.v1beta.Memorystore/GetAclPolicyRevision") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAclPolicyRevisionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AclPolicyRevision.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse> + listAclPolicyRevisionsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.memorystore.v1beta.Memorystore/ListAclPolicyRevisions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAclPolicyRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAclPolicyRevisionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor deleteInstanceMethodDescriptor = MethodDescriptor.newBuilder() @@ -396,16 +490,34 @@ public class GrpcMemorystoreStub extends MemorystoreStub { .setSampledToLocalTracing(true) .build(); + private final UnaryCallable + listAclPoliciesCallable; + private final UnaryCallable + listAclPoliciesPagedCallable; private final UnaryCallable listInstancesCallable; private final UnaryCallable listInstancesPagedCallable; + private final UnaryCallable getAclPolicyCallable; private final UnaryCallable getInstanceCallable; + private final UnaryCallable createAclPolicyCallable; private final UnaryCallable createInstanceCallable; private final OperationCallable createInstanceOperationCallable; + private final UnaryCallable updateAclPolicyCallable; + private final OperationCallable + updateAclPolicyOperationCallable; private final UnaryCallable updateInstanceCallable; private final OperationCallable updateInstanceOperationCallable; + private final UnaryCallable deleteAclPolicyCallable; + private final OperationCallable + deleteAclPolicyOperationCallable; + private final UnaryCallable + getAclPolicyRevisionCallable; + private final UnaryCallable + listAclPolicyRevisionsCallable; + private final UnaryCallable + listAclPolicyRevisionsPagedCallable; private final UnaryCallable deleteInstanceCallable; private final OperationCallable deleteInstanceOperationCallable; @@ -511,6 +623,18 @@ protected GrpcMemorystoreStub( this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + GrpcCallSettings + listAclPoliciesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAclPoliciesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); GrpcCallSettings listInstancesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listInstancesMethodDescriptor) @@ -522,6 +646,17 @@ protected GrpcMemorystoreStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + GrpcCallSettings getAclPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAclPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); GrpcCallSettings getInstanceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getInstanceMethodDescriptor) @@ -533,6 +668,17 @@ protected GrpcMemorystoreStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + GrpcCallSettings createAclPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAclPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); GrpcCallSettings createInstanceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createInstanceMethodDescriptor) @@ -544,6 +690,16 @@ protected GrpcMemorystoreStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + GrpcCallSettings updateAclPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAclPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("acl_policy.name", String.valueOf(request.getAclPolicy().getName())); + return builder.build(); + }) + .build(); GrpcCallSettings updateInstanceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateInstanceMethodDescriptor) @@ -554,6 +710,42 @@ protected GrpcMemorystoreStub( return builder.build(); }) .build(); + GrpcCallSettings deleteAclPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAclPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + getAclPolicyRevisionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAclPolicyRevisionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listAclPolicyRevisionsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listAclPolicyRevisionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); GrpcCallSettings deleteInstanceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteInstanceMethodDescriptor) @@ -817,15 +1009,27 @@ protected GrpcMemorystoreStub( }) .build(); + this.listAclPoliciesCallable = + callableFactory.createUnaryCallable( + listAclPoliciesTransportSettings, settings.listAclPoliciesSettings(), clientContext); + this.listAclPoliciesPagedCallable = + callableFactory.createPagedCallable( + listAclPoliciesTransportSettings, settings.listAclPoliciesSettings(), clientContext); this.listInstancesCallable = callableFactory.createUnaryCallable( listInstancesTransportSettings, settings.listInstancesSettings(), clientContext); this.listInstancesPagedCallable = callableFactory.createPagedCallable( listInstancesTransportSettings, settings.listInstancesSettings(), clientContext); + this.getAclPolicyCallable = + callableFactory.createUnaryCallable( + getAclPolicyTransportSettings, settings.getAclPolicySettings(), clientContext); this.getInstanceCallable = callableFactory.createUnaryCallable( getInstanceTransportSettings, settings.getInstanceSettings(), clientContext); + this.createAclPolicyCallable = + callableFactory.createUnaryCallable( + createAclPolicyTransportSettings, settings.createAclPolicySettings(), clientContext); this.createInstanceCallable = callableFactory.createUnaryCallable( createInstanceTransportSettings, settings.createInstanceSettings(), clientContext); @@ -835,6 +1039,15 @@ protected GrpcMemorystoreStub( settings.createInstanceOperationSettings(), clientContext, operationsStub); + this.updateAclPolicyCallable = + callableFactory.createUnaryCallable( + updateAclPolicyTransportSettings, settings.updateAclPolicySettings(), clientContext); + this.updateAclPolicyOperationCallable = + callableFactory.createOperationCallable( + updateAclPolicyTransportSettings, + settings.updateAclPolicyOperationSettings(), + clientContext, + operationsStub); this.updateInstanceCallable = callableFactory.createUnaryCallable( updateInstanceTransportSettings, settings.updateInstanceSettings(), clientContext); @@ -844,6 +1057,30 @@ protected GrpcMemorystoreStub( settings.updateInstanceOperationSettings(), clientContext, operationsStub); + this.deleteAclPolicyCallable = + callableFactory.createUnaryCallable( + deleteAclPolicyTransportSettings, settings.deleteAclPolicySettings(), clientContext); + this.deleteAclPolicyOperationCallable = + callableFactory.createOperationCallable( + deleteAclPolicyTransportSettings, + settings.deleteAclPolicyOperationSettings(), + clientContext, + operationsStub); + this.getAclPolicyRevisionCallable = + callableFactory.createUnaryCallable( + getAclPolicyRevisionTransportSettings, + settings.getAclPolicyRevisionSettings(), + clientContext); + this.listAclPolicyRevisionsCallable = + callableFactory.createUnaryCallable( + listAclPolicyRevisionsTransportSettings, + settings.listAclPolicyRevisionsSettings(), + clientContext); + this.listAclPolicyRevisionsPagedCallable = + callableFactory.createPagedCallable( + listAclPolicyRevisionsTransportSettings, + settings.listAclPolicyRevisionsSettings(), + clientContext); this.deleteInstanceCallable = callableFactory.createUnaryCallable( deleteInstanceTransportSettings, settings.deleteInstanceSettings(), clientContext); @@ -1021,6 +1258,17 @@ public GrpcOperationsStub getOperationsStub() { return operationsStub; } + @Override + public UnaryCallable listAclPoliciesCallable() { + return listAclPoliciesCallable; + } + + @Override + public UnaryCallable + listAclPoliciesPagedCallable() { + return listAclPoliciesPagedCallable; + } + @Override public UnaryCallable listInstancesCallable() { return listInstancesCallable; @@ -1032,11 +1280,21 @@ public UnaryCallable listInstancesC return listInstancesPagedCallable; } + @Override + public UnaryCallable getAclPolicyCallable() { + return getAclPolicyCallable; + } + @Override public UnaryCallable getInstanceCallable() { return getInstanceCallable; } + @Override + public UnaryCallable createAclPolicyCallable() { + return createAclPolicyCallable; + } + @Override public UnaryCallable createInstanceCallable() { return createInstanceCallable; @@ -1048,6 +1306,17 @@ public UnaryCallable createInstanceCallable() return createInstanceOperationCallable; } + @Override + public UnaryCallable updateAclPolicyCallable() { + return updateAclPolicyCallable; + } + + @Override + public OperationCallable + updateAclPolicyOperationCallable() { + return updateAclPolicyOperationCallable; + } + @Override public UnaryCallable updateInstanceCallable() { return updateInstanceCallable; @@ -1059,6 +1328,35 @@ public UnaryCallable updateInstanceCallable() return updateInstanceOperationCallable; } + @Override + public UnaryCallable deleteAclPolicyCallable() { + return deleteAclPolicyCallable; + } + + @Override + public OperationCallable + deleteAclPolicyOperationCallable() { + return deleteAclPolicyOperationCallable; + } + + @Override + public UnaryCallable + getAclPolicyRevisionCallable() { + return getAclPolicyRevisionCallable; + } + + @Override + public UnaryCallable + listAclPolicyRevisionsCallable() { + return listAclPolicyRevisionsCallable; + } + + @Override + public UnaryCallable + listAclPolicyRevisionsPagedCallable() { + return listAclPolicyRevisionsPagedCallable; + } + @Override public UnaryCallable deleteInstanceCallable() { return deleteInstanceCallable; diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/HttpJsonMemorystoreStub.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/HttpJsonMemorystoreStub.java index f867a65c28e6..d534a701d17f 100644 --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/HttpJsonMemorystoreStub.java +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/HttpJsonMemorystoreStub.java @@ -16,6 +16,8 @@ package com.google.cloud.memorystore.v1beta.stub; +import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListAclPoliciesPagedResponse; +import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListAclPolicyRevisionsPagedResponse; import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListAuthTokensPagedResponse; import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListBackupCollectionsPagedResponse; import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListBackupsPagedResponse; @@ -44,6 +46,8 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.memorystore.v1beta.AclPolicy; +import com.google.cloud.memorystore.v1beta.AclPolicyRevision; import com.google.cloud.memorystore.v1beta.AddAuthTokenRequest; import com.google.cloud.memorystore.v1beta.AddTokenAuthUserRequest; import com.google.cloud.memorystore.v1beta.AuthToken; @@ -51,13 +55,17 @@ import com.google.cloud.memorystore.v1beta.BackupCollection; import com.google.cloud.memorystore.v1beta.BackupInstanceRequest; import com.google.cloud.memorystore.v1beta.CertificateAuthority; +import com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest; import com.google.cloud.memorystore.v1beta.CreateInstanceRequest; +import com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest; import com.google.cloud.memorystore.v1beta.DeleteAuthTokenRequest; import com.google.cloud.memorystore.v1beta.DeleteBackupRequest; import com.google.cloud.memorystore.v1beta.DeleteInstanceRequest; import com.google.cloud.memorystore.v1beta.DeleteTokenAuthUserRequest; import com.google.cloud.memorystore.v1beta.ExportBackupRequest; import com.google.cloud.memorystore.v1beta.FinishMigrationRequest; +import com.google.cloud.memorystore.v1beta.GetAclPolicyRequest; +import com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest; import com.google.cloud.memorystore.v1beta.GetAuthTokenRequest; import com.google.cloud.memorystore.v1beta.GetBackupCollectionRequest; import com.google.cloud.memorystore.v1beta.GetBackupRequest; @@ -66,6 +74,10 @@ import com.google.cloud.memorystore.v1beta.GetSharedRegionalCertificateAuthorityRequest; import com.google.cloud.memorystore.v1beta.GetTokenAuthUserRequest; import com.google.cloud.memorystore.v1beta.Instance; +import com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest; +import com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse; +import com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest; +import com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse; import com.google.cloud.memorystore.v1beta.ListAuthTokensRequest; import com.google.cloud.memorystore.v1beta.ListAuthTokensResponse; import com.google.cloud.memorystore.v1beta.ListBackupCollectionsRequest; @@ -81,6 +93,7 @@ import com.google.cloud.memorystore.v1beta.SharedRegionalCertificateAuthority; import com.google.cloud.memorystore.v1beta.StartMigrationRequest; import com.google.cloud.memorystore.v1beta.TokenAuthUser; +import com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest; import com.google.cloud.memorystore.v1beta.UpdateInstanceRequest; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; @@ -112,8 +125,45 @@ public class HttpJsonMemorystoreStub extends MemorystoreStub { .add(TokenAuthUser.getDescriptor()) .add(Instance.getDescriptor()) .add(OperationMetadata.getDescriptor()) + .add(AclPolicy.getDescriptor()) .build(); + private static final ApiMethodDescriptor + listAclPoliciesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.memorystore.v1beta.Memorystore/ListAclPolicies") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*}/aclPolicies", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAclPoliciesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listInstancesMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -152,6 +202,40 @@ public class HttpJsonMemorystoreStub extends MemorystoreStub { .build()) .build(); + private static final ApiMethodDescriptor + getAclPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.memorystore.v1beta.Memorystore/GetAclPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/aclPolicies/*}", + 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 -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AclPolicy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor getInstanceMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -186,6 +270,46 @@ public class HttpJsonMemorystoreStub extends MemorystoreStub { .build()) .build(); + private static final ApiMethodDescriptor + createAclPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.memorystore.v1beta.Memorystore/CreateAclPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*}/aclPolicies", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "aclPolicyId", request.getAclPolicyId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("aclPolicy", request.getAclPolicy(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AclPolicy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor createInstanceMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -228,6 +352,49 @@ public class HttpJsonMemorystoreStub extends MemorystoreStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + updateAclPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.memorystore.v1beta.Memorystore/UpdateAclPolicy") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{aclPolicy.name=projects/*/locations/*/aclPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "aclPolicy.name", request.getAclPolicy().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("aclPolicy", request.getAclPolicy(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateAclPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor updateInstanceMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -271,6 +438,118 @@ public class HttpJsonMemorystoreStub extends MemorystoreStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + deleteAclPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.memorystore.v1beta.Memorystore/DeleteAclPolicy") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/aclPolicies/*}", + 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, "etag", request.getEtag()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteAclPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getAclPolicyRevisionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.memorystore.v1beta.Memorystore/GetAclPolicyRevision") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/aclPolicies/*/revisions/*}", + 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 -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AclPolicyRevision.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse> + listAclPolicyRevisionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.memorystore.v1beta.Memorystore/ListAclPolicyRevisions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*/aclPolicies/*}/revisions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAclPolicyRevisionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor deleteInstanceMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1134,16 +1413,34 @@ public class HttpJsonMemorystoreStub extends MemorystoreStub { .build()) .build(); + private final UnaryCallable + listAclPoliciesCallable; + private final UnaryCallable + listAclPoliciesPagedCallable; private final UnaryCallable listInstancesCallable; private final UnaryCallable listInstancesPagedCallable; + private final UnaryCallable getAclPolicyCallable; private final UnaryCallable getInstanceCallable; + private final UnaryCallable createAclPolicyCallable; private final UnaryCallable createInstanceCallable; private final OperationCallable createInstanceOperationCallable; + private final UnaryCallable updateAclPolicyCallable; + private final OperationCallable + updateAclPolicyOperationCallable; private final UnaryCallable updateInstanceCallable; private final OperationCallable updateInstanceOperationCallable; + private final UnaryCallable deleteAclPolicyCallable; + private final OperationCallable + deleteAclPolicyOperationCallable; + private final UnaryCallable + getAclPolicyRevisionCallable; + private final UnaryCallable + listAclPolicyRevisionsCallable; + private final UnaryCallable + listAclPolicyRevisionsPagedCallable; private final UnaryCallable deleteInstanceCallable; private final OperationCallable deleteInstanceOperationCallable; @@ -1277,6 +1574,19 @@ protected HttpJsonMemorystoreStub( .build()) .build()); + HttpJsonCallSettings + listAclPoliciesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAclPoliciesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); HttpJsonCallSettings listInstancesTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1290,6 +1600,18 @@ protected HttpJsonMemorystoreStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + HttpJsonCallSettings getAclPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAclPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); HttpJsonCallSettings getInstanceTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getInstanceMethodDescriptor) @@ -1302,6 +1624,18 @@ protected HttpJsonMemorystoreStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + HttpJsonCallSettings createAclPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAclPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); HttpJsonCallSettings createInstanceTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(createInstanceMethodDescriptor) @@ -1314,6 +1648,17 @@ protected HttpJsonMemorystoreStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + HttpJsonCallSettings updateAclPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAclPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("acl_policy.name", String.valueOf(request.getAclPolicy().getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings updateInstanceTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(updateInstanceMethodDescriptor) @@ -1325,6 +1670,45 @@ protected HttpJsonMemorystoreStub( return builder.build(); }) .build(); + HttpJsonCallSettings deleteAclPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAclPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + getAclPolicyRevisionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAclPolicyRevisionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listAclPolicyRevisionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listAclPolicyRevisionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); HttpJsonCallSettings deleteInstanceTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteInstanceMethodDescriptor) @@ -1613,15 +1997,27 @@ protected HttpJsonMemorystoreStub( }) .build(); + this.listAclPoliciesCallable = + callableFactory.createUnaryCallable( + listAclPoliciesTransportSettings, settings.listAclPoliciesSettings(), clientContext); + this.listAclPoliciesPagedCallable = + callableFactory.createPagedCallable( + listAclPoliciesTransportSettings, settings.listAclPoliciesSettings(), clientContext); this.listInstancesCallable = callableFactory.createUnaryCallable( listInstancesTransportSettings, settings.listInstancesSettings(), clientContext); this.listInstancesPagedCallable = callableFactory.createPagedCallable( listInstancesTransportSettings, settings.listInstancesSettings(), clientContext); + this.getAclPolicyCallable = + callableFactory.createUnaryCallable( + getAclPolicyTransportSettings, settings.getAclPolicySettings(), clientContext); this.getInstanceCallable = callableFactory.createUnaryCallable( getInstanceTransportSettings, settings.getInstanceSettings(), clientContext); + this.createAclPolicyCallable = + callableFactory.createUnaryCallable( + createAclPolicyTransportSettings, settings.createAclPolicySettings(), clientContext); this.createInstanceCallable = callableFactory.createUnaryCallable( createInstanceTransportSettings, settings.createInstanceSettings(), clientContext); @@ -1631,6 +2027,15 @@ protected HttpJsonMemorystoreStub( settings.createInstanceOperationSettings(), clientContext, httpJsonOperationsStub); + this.updateAclPolicyCallable = + callableFactory.createUnaryCallable( + updateAclPolicyTransportSettings, settings.updateAclPolicySettings(), clientContext); + this.updateAclPolicyOperationCallable = + callableFactory.createOperationCallable( + updateAclPolicyTransportSettings, + settings.updateAclPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); this.updateInstanceCallable = callableFactory.createUnaryCallable( updateInstanceTransportSettings, settings.updateInstanceSettings(), clientContext); @@ -1640,6 +2045,30 @@ protected HttpJsonMemorystoreStub( settings.updateInstanceOperationSettings(), clientContext, httpJsonOperationsStub); + this.deleteAclPolicyCallable = + callableFactory.createUnaryCallable( + deleteAclPolicyTransportSettings, settings.deleteAclPolicySettings(), clientContext); + this.deleteAclPolicyOperationCallable = + callableFactory.createOperationCallable( + deleteAclPolicyTransportSettings, + settings.deleteAclPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getAclPolicyRevisionCallable = + callableFactory.createUnaryCallable( + getAclPolicyRevisionTransportSettings, + settings.getAclPolicyRevisionSettings(), + clientContext); + this.listAclPolicyRevisionsCallable = + callableFactory.createUnaryCallable( + listAclPolicyRevisionsTransportSettings, + settings.listAclPolicyRevisionsSettings(), + clientContext); + this.listAclPolicyRevisionsPagedCallable = + callableFactory.createPagedCallable( + listAclPolicyRevisionsTransportSettings, + settings.listAclPolicyRevisionsSettings(), + clientContext); this.deleteInstanceCallable = callableFactory.createUnaryCallable( deleteInstanceTransportSettings, settings.deleteInstanceSettings(), clientContext); @@ -1816,10 +2245,17 @@ protected HttpJsonMemorystoreStub( @InternalApi public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listAclPoliciesMethodDescriptor); methodDescriptors.add(listInstancesMethodDescriptor); + methodDescriptors.add(getAclPolicyMethodDescriptor); methodDescriptors.add(getInstanceMethodDescriptor); + methodDescriptors.add(createAclPolicyMethodDescriptor); methodDescriptors.add(createInstanceMethodDescriptor); + methodDescriptors.add(updateAclPolicyMethodDescriptor); methodDescriptors.add(updateInstanceMethodDescriptor); + methodDescriptors.add(deleteAclPolicyMethodDescriptor); + methodDescriptors.add(getAclPolicyRevisionMethodDescriptor); + methodDescriptors.add(listAclPolicyRevisionsMethodDescriptor); methodDescriptors.add(deleteInstanceMethodDescriptor); methodDescriptors.add(getCertificateAuthorityMethodDescriptor); methodDescriptors.add(getSharedRegionalCertificateAuthorityMethodDescriptor); @@ -1850,6 +2286,17 @@ public HttpJsonOperationsStub getHttpJsonOperationsStub() { return httpJsonOperationsStub; } + @Override + public UnaryCallable listAclPoliciesCallable() { + return listAclPoliciesCallable; + } + + @Override + public UnaryCallable + listAclPoliciesPagedCallable() { + return listAclPoliciesPagedCallable; + } + @Override public UnaryCallable listInstancesCallable() { return listInstancesCallable; @@ -1861,11 +2308,21 @@ public UnaryCallable listInstancesC return listInstancesPagedCallable; } + @Override + public UnaryCallable getAclPolicyCallable() { + return getAclPolicyCallable; + } + @Override public UnaryCallable getInstanceCallable() { return getInstanceCallable; } + @Override + public UnaryCallable createAclPolicyCallable() { + return createAclPolicyCallable; + } + @Override public UnaryCallable createInstanceCallable() { return createInstanceCallable; @@ -1877,6 +2334,17 @@ public UnaryCallable createInstanceCallable() return createInstanceOperationCallable; } + @Override + public UnaryCallable updateAclPolicyCallable() { + return updateAclPolicyCallable; + } + + @Override + public OperationCallable + updateAclPolicyOperationCallable() { + return updateAclPolicyOperationCallable; + } + @Override public UnaryCallable updateInstanceCallable() { return updateInstanceCallable; @@ -1888,6 +2356,35 @@ public UnaryCallable updateInstanceCallable() return updateInstanceOperationCallable; } + @Override + public UnaryCallable deleteAclPolicyCallable() { + return deleteAclPolicyCallable; + } + + @Override + public OperationCallable + deleteAclPolicyOperationCallable() { + return deleteAclPolicyOperationCallable; + } + + @Override + public UnaryCallable + getAclPolicyRevisionCallable() { + return getAclPolicyRevisionCallable; + } + + @Override + public UnaryCallable + listAclPolicyRevisionsCallable() { + return listAclPolicyRevisionsCallable; + } + + @Override + public UnaryCallable + listAclPolicyRevisionsPagedCallable() { + return listAclPolicyRevisionsPagedCallable; + } + @Override public UnaryCallable deleteInstanceCallable() { return deleteInstanceCallable; diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/MemorystoreStub.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/MemorystoreStub.java index e717abeae688..a13f3b1c11c7 100644 --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/MemorystoreStub.java +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/MemorystoreStub.java @@ -16,6 +16,8 @@ package com.google.cloud.memorystore.v1beta.stub; +import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListAclPoliciesPagedResponse; +import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListAclPolicyRevisionsPagedResponse; import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListAuthTokensPagedResponse; import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListBackupCollectionsPagedResponse; import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListBackupsPagedResponse; @@ -31,6 +33,8 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.memorystore.v1beta.AclPolicy; +import com.google.cloud.memorystore.v1beta.AclPolicyRevision; import com.google.cloud.memorystore.v1beta.AddAuthTokenRequest; import com.google.cloud.memorystore.v1beta.AddTokenAuthUserRequest; import com.google.cloud.memorystore.v1beta.AuthToken; @@ -38,13 +42,17 @@ import com.google.cloud.memorystore.v1beta.BackupCollection; import com.google.cloud.memorystore.v1beta.BackupInstanceRequest; import com.google.cloud.memorystore.v1beta.CertificateAuthority; +import com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest; import com.google.cloud.memorystore.v1beta.CreateInstanceRequest; +import com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest; import com.google.cloud.memorystore.v1beta.DeleteAuthTokenRequest; import com.google.cloud.memorystore.v1beta.DeleteBackupRequest; import com.google.cloud.memorystore.v1beta.DeleteInstanceRequest; import com.google.cloud.memorystore.v1beta.DeleteTokenAuthUserRequest; import com.google.cloud.memorystore.v1beta.ExportBackupRequest; import com.google.cloud.memorystore.v1beta.FinishMigrationRequest; +import com.google.cloud.memorystore.v1beta.GetAclPolicyRequest; +import com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest; import com.google.cloud.memorystore.v1beta.GetAuthTokenRequest; import com.google.cloud.memorystore.v1beta.GetBackupCollectionRequest; import com.google.cloud.memorystore.v1beta.GetBackupRequest; @@ -53,6 +61,10 @@ import com.google.cloud.memorystore.v1beta.GetSharedRegionalCertificateAuthorityRequest; import com.google.cloud.memorystore.v1beta.GetTokenAuthUserRequest; import com.google.cloud.memorystore.v1beta.Instance; +import com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest; +import com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse; +import com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest; +import com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse; import com.google.cloud.memorystore.v1beta.ListAuthTokensRequest; import com.google.cloud.memorystore.v1beta.ListAuthTokensResponse; import com.google.cloud.memorystore.v1beta.ListBackupCollectionsRequest; @@ -68,6 +80,7 @@ import com.google.cloud.memorystore.v1beta.SharedRegionalCertificateAuthority; import com.google.cloud.memorystore.v1beta.StartMigrationRequest; import com.google.cloud.memorystore.v1beta.TokenAuthUser; +import com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest; import com.google.cloud.memorystore.v1beta.UpdateInstanceRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; @@ -96,6 +109,15 @@ public abstract class MemorystoreStub implements BackgroundResource { return null; } + public UnaryCallable + listAclPoliciesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAclPoliciesPagedCallable()"); + } + + public UnaryCallable listAclPoliciesCallable() { + throw new UnsupportedOperationException("Not implemented: listAclPoliciesCallable()"); + } + public UnaryCallable listInstancesPagedCallable() { throw new UnsupportedOperationException("Not implemented: listInstancesPagedCallable()"); @@ -105,10 +127,18 @@ public UnaryCallable listInstancesC throw new UnsupportedOperationException("Not implemented: listInstancesCallable()"); } + public UnaryCallable getAclPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getAclPolicyCallable()"); + } + public UnaryCallable getInstanceCallable() { throw new UnsupportedOperationException("Not implemented: getInstanceCallable()"); } + public UnaryCallable createAclPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: createAclPolicyCallable()"); + } + public OperationCallable createInstanceOperationCallable() { throw new UnsupportedOperationException("Not implemented: createInstanceOperationCallable()"); @@ -118,6 +148,15 @@ public UnaryCallable createInstanceCallable() throw new UnsupportedOperationException("Not implemented: createInstanceCallable()"); } + public OperationCallable + updateAclPolicyOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateAclPolicyOperationCallable()"); + } + + public UnaryCallable updateAclPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: updateAclPolicyCallable()"); + } + public OperationCallable updateInstanceOperationCallable() { throw new UnsupportedOperationException("Not implemented: updateInstanceOperationCallable()"); @@ -127,6 +166,31 @@ public UnaryCallable updateInstanceCallable() throw new UnsupportedOperationException("Not implemented: updateInstanceCallable()"); } + public OperationCallable + deleteAclPolicyOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAclPolicyOperationCallable()"); + } + + public UnaryCallable deleteAclPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAclPolicyCallable()"); + } + + public UnaryCallable + getAclPolicyRevisionCallable() { + throw new UnsupportedOperationException("Not implemented: getAclPolicyRevisionCallable()"); + } + + public UnaryCallable + listAclPolicyRevisionsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAclPolicyRevisionsPagedCallable()"); + } + + public UnaryCallable + listAclPolicyRevisionsCallable() { + throw new UnsupportedOperationException("Not implemented: listAclPolicyRevisionsCallable()"); + } + public OperationCallable deleteInstanceOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteInstanceOperationCallable()"); diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/MemorystoreStubSettings.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/MemorystoreStubSettings.java index 2102c0d8a221..5fbbbeb47b18 100644 --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/MemorystoreStubSettings.java +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/MemorystoreStubSettings.java @@ -16,6 +16,8 @@ package com.google.cloud.memorystore.v1beta.stub; +import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListAclPoliciesPagedResponse; +import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListAclPolicyRevisionsPagedResponse; import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListAuthTokensPagedResponse; import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListBackupCollectionsPagedResponse; import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListBackupsPagedResponse; @@ -58,6 +60,8 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.memorystore.v1beta.AclPolicy; +import com.google.cloud.memorystore.v1beta.AclPolicyRevision; import com.google.cloud.memorystore.v1beta.AddAuthTokenRequest; import com.google.cloud.memorystore.v1beta.AddTokenAuthUserRequest; import com.google.cloud.memorystore.v1beta.AuthToken; @@ -65,13 +69,17 @@ import com.google.cloud.memorystore.v1beta.BackupCollection; import com.google.cloud.memorystore.v1beta.BackupInstanceRequest; import com.google.cloud.memorystore.v1beta.CertificateAuthority; +import com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest; import com.google.cloud.memorystore.v1beta.CreateInstanceRequest; +import com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest; import com.google.cloud.memorystore.v1beta.DeleteAuthTokenRequest; import com.google.cloud.memorystore.v1beta.DeleteBackupRequest; import com.google.cloud.memorystore.v1beta.DeleteInstanceRequest; import com.google.cloud.memorystore.v1beta.DeleteTokenAuthUserRequest; import com.google.cloud.memorystore.v1beta.ExportBackupRequest; import com.google.cloud.memorystore.v1beta.FinishMigrationRequest; +import com.google.cloud.memorystore.v1beta.GetAclPolicyRequest; +import com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest; import com.google.cloud.memorystore.v1beta.GetAuthTokenRequest; import com.google.cloud.memorystore.v1beta.GetBackupCollectionRequest; import com.google.cloud.memorystore.v1beta.GetBackupRequest; @@ -80,6 +88,10 @@ import com.google.cloud.memorystore.v1beta.GetSharedRegionalCertificateAuthorityRequest; import com.google.cloud.memorystore.v1beta.GetTokenAuthUserRequest; import com.google.cloud.memorystore.v1beta.Instance; +import com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest; +import com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse; +import com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest; +import com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse; import com.google.cloud.memorystore.v1beta.ListAuthTokensRequest; import com.google.cloud.memorystore.v1beta.ListAuthTokensResponse; import com.google.cloud.memorystore.v1beta.ListBackupCollectionsRequest; @@ -95,6 +107,7 @@ import com.google.cloud.memorystore.v1beta.SharedRegionalCertificateAuthority; import com.google.cloud.memorystore.v1beta.StartMigrationRequest; import com.google.cloud.memorystore.v1beta.TokenAuthUser; +import com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest; import com.google.cloud.memorystore.v1beta.UpdateInstanceRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; @@ -126,7 +139,7 @@ * *

          For example, to set the * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) - * of getInstance: + * of getAclPolicy: * *

          {@code
            * // This snippet has been automatically generated and should be regarded as a code template only.
          @@ -137,10 +150,10 @@
            * MemorystoreStubSettings.Builder memorystoreSettingsBuilder =
            *     MemorystoreStubSettings.newBuilder();
            * memorystoreSettingsBuilder
          - *     .getInstanceSettings()
          + *     .getAclPolicySettings()
            *     .setRetrySettings(
            *         memorystoreSettingsBuilder
          - *             .getInstanceSettings()
          + *             .getAclPolicySettings()
            *             .getRetrySettings()
            *             .toBuilder()
            *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
          @@ -198,16 +211,34 @@ public class MemorystoreStubSettings extends StubSettings
          +      listAclPoliciesSettings;
             private final PagedCallSettings<
                     ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse>
                 listInstancesSettings;
          +  private final UnaryCallSettings getAclPolicySettings;
             private final UnaryCallSettings getInstanceSettings;
          +  private final UnaryCallSettings createAclPolicySettings;
             private final UnaryCallSettings createInstanceSettings;
             private final OperationCallSettings
                 createInstanceOperationSettings;
          +  private final UnaryCallSettings updateAclPolicySettings;
          +  private final OperationCallSettings
          +      updateAclPolicyOperationSettings;
             private final UnaryCallSettings updateInstanceSettings;
             private final OperationCallSettings
                 updateInstanceOperationSettings;
          +  private final UnaryCallSettings deleteAclPolicySettings;
          +  private final OperationCallSettings
          +      deleteAclPolicyOperationSettings;
          +  private final UnaryCallSettings
          +      getAclPolicyRevisionSettings;
          +  private final PagedCallSettings<
          +          ListAclPolicyRevisionsRequest,
          +          ListAclPolicyRevisionsResponse,
          +          ListAclPolicyRevisionsPagedResponse>
          +      listAclPolicyRevisionsSettings;
             private final UnaryCallSettings deleteInstanceSettings;
             private final OperationCallSettings
                 deleteInstanceOperationSettings;
          @@ -271,6 +302,43 @@ public class MemorystoreStubSettings extends StubSettings getLocationSettings;
           
          +  private static final PagedListDescriptor<
          +          ListAclPoliciesRequest, ListAclPoliciesResponse, AclPolicy>
          +      LIST_ACL_POLICIES_PAGE_STR_DESC =
          +          new PagedListDescriptor() {
          +            @Override
          +            public String emptyToken() {
          +              return "";
          +            }
          +
          +            @Override
          +            public ListAclPoliciesRequest injectToken(
          +                ListAclPoliciesRequest payload, String token) {
          +              return ListAclPoliciesRequest.newBuilder(payload).setPageToken(token).build();
          +            }
          +
          +            @Override
          +            public ListAclPoliciesRequest injectPageSize(
          +                ListAclPoliciesRequest payload, int pageSize) {
          +              return ListAclPoliciesRequest.newBuilder(payload).setPageSize(pageSize).build();
          +            }
          +
          +            @Override
          +            public Integer extractPageSize(ListAclPoliciesRequest payload) {
          +              return payload.getPageSize();
          +            }
          +
          +            @Override
          +            public String extractNextToken(ListAclPoliciesResponse payload) {
          +              return payload.getNextPageToken();
          +            }
          +
          +            @Override
          +            public Iterable extractResources(ListAclPoliciesResponse payload) {
          +              return payload.getAclPoliciesList();
          +            }
          +          };
          +
             private static final PagedListDescriptor
                 LIST_INSTANCES_PAGE_STR_DESC =
                     new PagedListDescriptor() {
          @@ -305,6 +373,47 @@ public Iterable extractResources(ListInstancesResponse payload) {
                       }
                     };
           
          +  private static final PagedListDescriptor<
          +          ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse, AclPolicyRevision>
          +      LIST_ACL_POLICY_REVISIONS_PAGE_STR_DESC =
          +          new PagedListDescriptor<
          +              ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse, AclPolicyRevision>() {
          +            @Override
          +            public String emptyToken() {
          +              return "";
          +            }
          +
          +            @Override
          +            public ListAclPolicyRevisionsRequest injectToken(
          +                ListAclPolicyRevisionsRequest payload, String token) {
          +              return ListAclPolicyRevisionsRequest.newBuilder(payload).setPageToken(token).build();
          +            }
          +
          +            @Override
          +            public ListAclPolicyRevisionsRequest injectPageSize(
          +                ListAclPolicyRevisionsRequest payload, int pageSize) {
          +              return ListAclPolicyRevisionsRequest.newBuilder(payload)
          +                  .setPageSize(pageSize)
          +                  .build();
          +            }
          +
          +            @Override
          +            public Integer extractPageSize(ListAclPolicyRevisionsRequest payload) {
          +              return payload.getPageSize();
          +            }
          +
          +            @Override
          +            public String extractNextToken(ListAclPolicyRevisionsResponse payload) {
          +              return payload.getNextPageToken();
          +            }
          +
          +            @Override
          +            public Iterable extractResources(
          +                ListAclPolicyRevisionsResponse payload) {
          +              return payload.getAclPolicyRevisionsList();
          +            }
          +          };
          +
             private static final PagedListDescriptor<
                     ListBackupCollectionsRequest, ListBackupCollectionsResponse, BackupCollection>
                 LIST_BACKUP_COLLECTIONS_PAGE_STR_DESC =
          @@ -485,6 +594,23 @@ public Iterable extractResources(ListLocationsResponse payload) {
                       }
                     };
           
          +  private static final PagedListResponseFactory<
          +          ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse>
          +      LIST_ACL_POLICIES_PAGE_STR_FACT =
          +          new PagedListResponseFactory<
          +              ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse>() {
          +            @Override
          +            public ApiFuture getFuturePagedResponse(
          +                UnaryCallable callable,
          +                ListAclPoliciesRequest request,
          +                ApiCallContext context,
          +                ApiFuture futureResponse) {
          +              PageContext pageContext =
          +                  PageContext.create(callable, LIST_ACL_POLICIES_PAGE_STR_DESC, request, context);
          +              return ListAclPoliciesPagedResponse.createAsync(pageContext, futureResponse);
          +            }
          +          };
          +
             private static final PagedListResponseFactory<
                     ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse>
                 LIST_INSTANCES_PAGE_STR_FACT =
          @@ -502,6 +628,33 @@ public ApiFuture getFuturePagedResponse(
                       }
                     };
           
          +  private static final PagedListResponseFactory<
          +          ListAclPolicyRevisionsRequest,
          +          ListAclPolicyRevisionsResponse,
          +          ListAclPolicyRevisionsPagedResponse>
          +      LIST_ACL_POLICY_REVISIONS_PAGE_STR_FACT =
          +          new PagedListResponseFactory<
          +              ListAclPolicyRevisionsRequest,
          +              ListAclPolicyRevisionsResponse,
          +              ListAclPolicyRevisionsPagedResponse>() {
          +            @Override
          +            public ApiFuture getFuturePagedResponse(
          +                UnaryCallable
          +                    callable,
          +                ListAclPolicyRevisionsRequest request,
          +                ApiCallContext context,
          +                ApiFuture futureResponse) {
          +              PageContext<
          +                      ListAclPolicyRevisionsRequest,
          +                      ListAclPolicyRevisionsResponse,
          +                      AclPolicyRevision>
          +                  pageContext =
          +                      PageContext.create(
          +                          callable, LIST_ACL_POLICY_REVISIONS_PAGE_STR_DESC, request, context);
          +              return ListAclPolicyRevisionsPagedResponse.createAsync(pageContext, futureResponse);
          +            }
          +          };
          +
             private static final PagedListResponseFactory<
                     ListBackupCollectionsRequest,
                     ListBackupCollectionsResponse,
          @@ -598,17 +751,34 @@ public ApiFuture getFuturePagedResponse(
                       }
                     };
           
          +  /** Returns the object with the settings used for calls to listAclPolicies. */
          +  public PagedCallSettings<
          +          ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse>
          +      listAclPoliciesSettings() {
          +    return listAclPoliciesSettings;
          +  }
          +
             /** Returns the object with the settings used for calls to listInstances. */
             public PagedCallSettings
                 listInstancesSettings() {
               return listInstancesSettings;
             }
           
          +  /** Returns the object with the settings used for calls to getAclPolicy. */
          +  public UnaryCallSettings getAclPolicySettings() {
          +    return getAclPolicySettings;
          +  }
          +
             /** Returns the object with the settings used for calls to getInstance. */
             public UnaryCallSettings getInstanceSettings() {
               return getInstanceSettings;
             }
           
          +  /** Returns the object with the settings used for calls to createAclPolicy. */
          +  public UnaryCallSettings createAclPolicySettings() {
          +    return createAclPolicySettings;
          +  }
          +
             /** Returns the object with the settings used for calls to createInstance. */
             public UnaryCallSettings createInstanceSettings() {
               return createInstanceSettings;
          @@ -620,6 +790,17 @@ public UnaryCallSettings createInstanceSetting
               return createInstanceOperationSettings;
             }
           
          +  /** Returns the object with the settings used for calls to updateAclPolicy. */
          +  public UnaryCallSettings updateAclPolicySettings() {
          +    return updateAclPolicySettings;
          +  }
          +
          +  /** Returns the object with the settings used for calls to updateAclPolicy. */
          +  public OperationCallSettings
          +      updateAclPolicyOperationSettings() {
          +    return updateAclPolicyOperationSettings;
          +  }
          +
             /** Returns the object with the settings used for calls to updateInstance. */
             public UnaryCallSettings updateInstanceSettings() {
               return updateInstanceSettings;
          @@ -631,6 +812,32 @@ public UnaryCallSettings updateInstanceSetting
               return updateInstanceOperationSettings;
             }
           
          +  /** Returns the object with the settings used for calls to deleteAclPolicy. */
          +  public UnaryCallSettings deleteAclPolicySettings() {
          +    return deleteAclPolicySettings;
          +  }
          +
          +  /** Returns the object with the settings used for calls to deleteAclPolicy. */
          +  public OperationCallSettings
          +      deleteAclPolicyOperationSettings() {
          +    return deleteAclPolicyOperationSettings;
          +  }
          +
          +  /** Returns the object with the settings used for calls to getAclPolicyRevision. */
          +  public UnaryCallSettings
          +      getAclPolicyRevisionSettings() {
          +    return getAclPolicyRevisionSettings;
          +  }
          +
          +  /** Returns the object with the settings used for calls to listAclPolicyRevisions. */
          +  public PagedCallSettings<
          +          ListAclPolicyRevisionsRequest,
          +          ListAclPolicyRevisionsResponse,
          +          ListAclPolicyRevisionsPagedResponse>
          +      listAclPolicyRevisionsSettings() {
          +    return listAclPolicyRevisionsSettings;
          +  }
          +
             /** Returns the object with the settings used for calls to deleteInstance. */
             public UnaryCallSettings deleteInstanceSettings() {
               return deleteInstanceSettings;
          @@ -940,12 +1147,21 @@ public Builder toBuilder() {
             protected MemorystoreStubSettings(Builder settingsBuilder) throws IOException {
               super(settingsBuilder);
           
          +    listAclPoliciesSettings = settingsBuilder.listAclPoliciesSettings().build();
               listInstancesSettings = settingsBuilder.listInstancesSettings().build();
          +    getAclPolicySettings = settingsBuilder.getAclPolicySettings().build();
               getInstanceSettings = settingsBuilder.getInstanceSettings().build();
          +    createAclPolicySettings = settingsBuilder.createAclPolicySettings().build();
               createInstanceSettings = settingsBuilder.createInstanceSettings().build();
               createInstanceOperationSettings = settingsBuilder.createInstanceOperationSettings().build();
          +    updateAclPolicySettings = settingsBuilder.updateAclPolicySettings().build();
          +    updateAclPolicyOperationSettings = settingsBuilder.updateAclPolicyOperationSettings().build();
               updateInstanceSettings = settingsBuilder.updateInstanceSettings().build();
               updateInstanceOperationSettings = settingsBuilder.updateInstanceOperationSettings().build();
          +    deleteAclPolicySettings = settingsBuilder.deleteAclPolicySettings().build();
          +    deleteAclPolicyOperationSettings = settingsBuilder.deleteAclPolicyOperationSettings().build();
          +    getAclPolicyRevisionSettings = settingsBuilder.getAclPolicyRevisionSettings().build();
          +    listAclPolicyRevisionsSettings = settingsBuilder.listAclPolicyRevisionsSettings().build();
               deleteInstanceSettings = settingsBuilder.deleteInstanceSettings().build();
               deleteInstanceOperationSettings = settingsBuilder.deleteInstanceOperationSettings().build();
               getCertificateAuthoritySettings = settingsBuilder.getCertificateAuthoritySettings().build();
          @@ -997,18 +1213,40 @@ protected LibraryMetadata getLibraryMetadata() {
             /** Builder for MemorystoreStubSettings. */
             public static class Builder extends StubSettings.Builder {
               private final ImmutableList> unaryMethodSettingsBuilders;
          +    private final PagedCallSettings.Builder<
          +            ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse>
          +        listAclPoliciesSettings;
               private final PagedCallSettings.Builder<
                       ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse>
                   listInstancesSettings;
          +    private final UnaryCallSettings.Builder getAclPolicySettings;
               private final UnaryCallSettings.Builder getInstanceSettings;
          +    private final UnaryCallSettings.Builder
          +        createAclPolicySettings;
               private final UnaryCallSettings.Builder
                   createInstanceSettings;
               private final OperationCallSettings.Builder
                   createInstanceOperationSettings;
          +    private final UnaryCallSettings.Builder
          +        updateAclPolicySettings;
          +    private final OperationCallSettings.Builder<
          +            UpdateAclPolicyRequest, AclPolicy, OperationMetadata>
          +        updateAclPolicyOperationSettings;
               private final UnaryCallSettings.Builder
                   updateInstanceSettings;
               private final OperationCallSettings.Builder
                   updateInstanceOperationSettings;
          +    private final UnaryCallSettings.Builder
          +        deleteAclPolicySettings;
          +    private final OperationCallSettings.Builder
          +        deleteAclPolicyOperationSettings;
          +    private final UnaryCallSettings.Builder
          +        getAclPolicyRevisionSettings;
          +    private final PagedCallSettings.Builder<
          +            ListAclPolicyRevisionsRequest,
          +            ListAclPolicyRevisionsResponse,
          +            ListAclPolicyRevisionsPagedResponse>
          +        listAclPolicyRevisionsSettings;
               private final UnaryCallSettings.Builder
                   deleteInstanceSettings;
               private final OperationCallSettings.Builder
          @@ -1134,12 +1372,22 @@ protected Builder() {
               protected Builder(@Nullable ClientContext clientContext) {
                 super(clientContext);
           
          +      listAclPoliciesSettings = PagedCallSettings.newBuilder(LIST_ACL_POLICIES_PAGE_STR_FACT);
                 listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT);
          +      getAclPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                 getInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
          +      createAclPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                 createInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                 createInstanceOperationSettings = OperationCallSettings.newBuilder();
          +      updateAclPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
          +      updateAclPolicyOperationSettings = OperationCallSettings.newBuilder();
                 updateInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                 updateInstanceOperationSettings = OperationCallSettings.newBuilder();
          +      deleteAclPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
          +      deleteAclPolicyOperationSettings = OperationCallSettings.newBuilder();
          +      getAclPolicyRevisionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
          +      listAclPolicyRevisionsSettings =
          +          PagedCallSettings.newBuilder(LIST_ACL_POLICY_REVISIONS_PAGE_STR_FACT);
                 deleteInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                 deleteInstanceOperationSettings = OperationCallSettings.newBuilder();
                 getCertificateAuthoritySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
          @@ -1180,10 +1428,17 @@ protected Builder(@Nullable ClientContext clientContext) {
           
                 unaryMethodSettingsBuilders =
                     ImmutableList.>of(
          +              listAclPoliciesSettings,
                         listInstancesSettings,
          +              getAclPolicySettings,
                         getInstanceSettings,
          +              createAclPolicySettings,
                         createInstanceSettings,
          +              updateAclPolicySettings,
                         updateInstanceSettings,
          +              deleteAclPolicySettings,
          +              getAclPolicyRevisionSettings,
          +              listAclPolicyRevisionsSettings,
                         deleteInstanceSettings,
                         getCertificateAuthoritySettings,
                         getSharedRegionalCertificateAuthoritySettings,
          @@ -1213,12 +1468,21 @@ protected Builder(@Nullable ClientContext clientContext) {
               protected Builder(MemorystoreStubSettings settings) {
                 super(settings);
           
          +      listAclPoliciesSettings = settings.listAclPoliciesSettings.toBuilder();
                 listInstancesSettings = settings.listInstancesSettings.toBuilder();
          +      getAclPolicySettings = settings.getAclPolicySettings.toBuilder();
                 getInstanceSettings = settings.getInstanceSettings.toBuilder();
          +      createAclPolicySettings = settings.createAclPolicySettings.toBuilder();
                 createInstanceSettings = settings.createInstanceSettings.toBuilder();
                 createInstanceOperationSettings = settings.createInstanceOperationSettings.toBuilder();
          +      updateAclPolicySettings = settings.updateAclPolicySettings.toBuilder();
          +      updateAclPolicyOperationSettings = settings.updateAclPolicyOperationSettings.toBuilder();
                 updateInstanceSettings = settings.updateInstanceSettings.toBuilder();
                 updateInstanceOperationSettings = settings.updateInstanceOperationSettings.toBuilder();
          +      deleteAclPolicySettings = settings.deleteAclPolicySettings.toBuilder();
          +      deleteAclPolicyOperationSettings = settings.deleteAclPolicyOperationSettings.toBuilder();
          +      getAclPolicyRevisionSettings = settings.getAclPolicyRevisionSettings.toBuilder();
          +      listAclPolicyRevisionsSettings = settings.listAclPolicyRevisionsSettings.toBuilder();
                 deleteInstanceSettings = settings.deleteInstanceSettings.toBuilder();
                 deleteInstanceOperationSettings = settings.deleteInstanceOperationSettings.toBuilder();
                 getCertificateAuthoritySettings = settings.getCertificateAuthoritySettings.toBuilder();
          @@ -1259,10 +1523,17 @@ protected Builder(MemorystoreStubSettings settings) {
           
                 unaryMethodSettingsBuilders =
                     ImmutableList.>of(
          +              listAclPoliciesSettings,
                         listInstancesSettings,
          +              getAclPolicySettings,
                         getInstanceSettings,
          +              createAclPolicySettings,
                         createInstanceSettings,
          +              updateAclPolicySettings,
                         updateInstanceSettings,
          +              deleteAclPolicySettings,
          +              getAclPolicyRevisionSettings,
          +              listAclPolicyRevisionsSettings,
                         deleteInstanceSettings,
                         getCertificateAuthoritySettings,
                         getSharedRegionalCertificateAuthoritySettings,
          @@ -1313,26 +1584,61 @@ private static Builder createHttpJsonDefault() {
               }
           
               private static Builder initDefaults(Builder builder) {
          +      builder
          +          .listAclPoliciesSettings()
          +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
          +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
          +
                 builder
                     .listInstancesSettings()
                     .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
                     .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
           
          +      builder
          +          .getAclPolicySettings()
          +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
          +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
          +
                 builder
                     .getInstanceSettings()
                     .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
                     .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
           
          +      builder
          +          .createAclPolicySettings()
          +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
          +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
          +
                 builder
                     .createInstanceSettings()
                     .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
                     .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
           
          +      builder
          +          .updateAclPolicySettings()
          +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
          +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
          +
                 builder
                     .updateInstanceSettings()
                     .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
                     .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
           
          +      builder
          +          .deleteAclPolicySettings()
          +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
          +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
          +
          +      builder
          +          .getAclPolicyRevisionSettings()
          +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
          +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
          +
          +      builder
          +          .listAclPolicyRevisionsSettings()
          +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
          +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
          +
                 builder
                     .deleteInstanceSettings()
                     .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
          @@ -1472,6 +1778,30 @@ private static Builder initDefaults(Builder builder) {
                                 .setTotalTimeoutDuration(Duration.ofMillis(300000L))
                                 .build()));
           
          +      builder
          +          .updateAclPolicyOperationSettings()
          +          .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(AclPolicy.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
                     .updateInstanceOperationSettings()
                     .setInitialCallSettings(
          @@ -1496,6 +1826,30 @@ private static Builder initDefaults(Builder builder) {
                                 .setTotalTimeoutDuration(Duration.ofMillis(300000L))
                                 .build()));
           
          +      builder
          +          .deleteAclPolicyOperationSettings()
          +          .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
                     .deleteInstanceOperationSettings()
                     .setInitialCallSettings(
          @@ -1778,6 +2132,13 @@ public Builder applyToAllUnaryMethods(
                 return unaryMethodSettingsBuilders;
               }
           
          +    /** Returns the builder for the settings used for calls to listAclPolicies. */
          +    public PagedCallSettings.Builder<
          +            ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse>
          +        listAclPoliciesSettings() {
          +      return listAclPoliciesSettings;
          +    }
          +
               /** Returns the builder for the settings used for calls to listInstances. */
               public PagedCallSettings.Builder<
                       ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse>
          @@ -1785,11 +2146,21 @@ public Builder applyToAllUnaryMethods(
                 return listInstancesSettings;
               }
           
          +    /** Returns the builder for the settings used for calls to getAclPolicy. */
          +    public UnaryCallSettings.Builder getAclPolicySettings() {
          +      return getAclPolicySettings;
          +    }
          +
               /** Returns the builder for the settings used for calls to getInstance. */
               public UnaryCallSettings.Builder getInstanceSettings() {
                 return getInstanceSettings;
               }
           
          +    /** Returns the builder for the settings used for calls to createAclPolicy. */
          +    public UnaryCallSettings.Builder createAclPolicySettings() {
          +      return createAclPolicySettings;
          +    }
          +
               /** Returns the builder for the settings used for calls to createInstance. */
               public UnaryCallSettings.Builder createInstanceSettings() {
                 return createInstanceSettings;
          @@ -1801,6 +2172,17 @@ public UnaryCallSettings.Builder createInstanc
                 return createInstanceOperationSettings;
               }
           
          +    /** Returns the builder for the settings used for calls to updateAclPolicy. */
          +    public UnaryCallSettings.Builder updateAclPolicySettings() {
          +      return updateAclPolicySettings;
          +    }
          +
          +    /** Returns the builder for the settings used for calls to updateAclPolicy. */
          +    public OperationCallSettings.Builder
          +        updateAclPolicyOperationSettings() {
          +      return updateAclPolicyOperationSettings;
          +    }
          +
               /** Returns the builder for the settings used for calls to updateInstance. */
               public UnaryCallSettings.Builder updateInstanceSettings() {
                 return updateInstanceSettings;
          @@ -1812,6 +2194,32 @@ public UnaryCallSettings.Builder updateInstanc
                 return updateInstanceOperationSettings;
               }
           
          +    /** Returns the builder for the settings used for calls to deleteAclPolicy. */
          +    public UnaryCallSettings.Builder deleteAclPolicySettings() {
          +      return deleteAclPolicySettings;
          +    }
          +
          +    /** Returns the builder for the settings used for calls to deleteAclPolicy. */
          +    public OperationCallSettings.Builder
          +        deleteAclPolicyOperationSettings() {
          +      return deleteAclPolicyOperationSettings;
          +    }
          +
          +    /** Returns the builder for the settings used for calls to getAclPolicyRevision. */
          +    public UnaryCallSettings.Builder
          +        getAclPolicyRevisionSettings() {
          +      return getAclPolicyRevisionSettings;
          +    }
          +
          +    /** Returns the builder for the settings used for calls to listAclPolicyRevisions. */
          +    public PagedCallSettings.Builder<
          +            ListAclPolicyRevisionsRequest,
          +            ListAclPolicyRevisionsResponse,
          +            ListAclPolicyRevisionsPagedResponse>
          +        listAclPolicyRevisionsSettings() {
          +      return listAclPolicyRevisionsSettings;
          +    }
          +
               /** Returns the builder for the settings used for calls to deleteInstance. */
               public UnaryCallSettings.Builder deleteInstanceSettings() {
                 return deleteInstanceSettings;
          diff --git a/java-valkey/google-cloud-valkey/src/main/resources/META-INF/native-image/com.google.cloud.memorystore.v1beta/reflect-config.json b/java-valkey/google-cloud-valkey/src/main/resources/META-INF/native-image/com.google.cloud.memorystore.v1beta/reflect-config.json
          index 33f7d0d66be1..82708e11a5a6 100644
          --- a/java-valkey/google-cloud-valkey/src/main/resources/META-INF/native-image/com.google.cloud.memorystore.v1beta/reflect-config.json
          +++ b/java-valkey/google-cloud-valkey/src/main/resources/META-INF/native-image/com.google.cloud.memorystore.v1beta/reflect-config.json
          @@ -593,6 +593,114 @@
               "allDeclaredClasses": true,
               "allPublicClasses": true
             },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.AclPolicy",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.AclPolicy$Builder",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.AclPolicy$State",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.AclPolicyInfo",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.AclPolicyInfo$Builder",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.AclPolicyRevision",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.AclPolicyRevision$Builder",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus$Builder",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus$State",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.AclRule",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.AclRule$Builder",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
             {
               "name": "com.google.cloud.memorystore.v1beta.AddAuthTokenRequest",
               "queryAllDeclaredConstructors": true,
          @@ -854,6 +962,24 @@
               "allDeclaredClasses": true,
               "allPublicClasses": true
             },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest$Builder",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
             {
               "name": "com.google.cloud.memorystore.v1beta.CreateInstanceRequest",
               "queryAllDeclaredConstructors": true,
          @@ -935,6 +1061,24 @@
               "allDeclaredClasses": true,
               "allPublicClasses": true
             },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest$Builder",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
             {
               "name": "com.google.cloud.memorystore.v1beta.DeleteAuthTokenRequest",
               "queryAllDeclaredConstructors": true,
          @@ -1097,6 +1241,42 @@
               "allDeclaredClasses": true,
               "allPublicClasses": true
             },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.GetAclPolicyRequest",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.GetAclPolicyRequest$Builder",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest$Builder",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
             {
               "name": "com.google.cloud.memorystore.v1beta.GetAuthTokenRequest",
               "queryAllDeclaredConstructors": true,
          @@ -1403,6 +1583,96 @@
               "allDeclaredClasses": true,
               "allPublicClasses": true
             },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment$Builder",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest$Builder",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse$Builder",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest$Builder",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse$Builder",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
             {
               "name": "com.google.cloud.memorystore.v1beta.ListAuthTokensRequest",
               "queryAllDeclaredConstructors": true,
          @@ -1970,6 +2240,24 @@
               "allDeclaredClasses": true,
               "allPublicClasses": true
             },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
          +  {
          +    "name": "com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest$Builder",
          +    "queryAllDeclaredConstructors": true,
          +    "queryAllPublicConstructors": true,
          +    "queryAllDeclaredMethods": true,
          +    "allPublicMethods": true,
          +    "allDeclaredClasses": true,
          +    "allPublicClasses": true
          +  },
             {
               "name": "com.google.cloud.memorystore.v1beta.UpdateInstanceRequest",
               "queryAllDeclaredConstructors": true,
          diff --git a/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1beta/MemorystoreClientHttpJsonTest.java b/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1beta/MemorystoreClientHttpJsonTest.java
          index 99f4ffe27c28..c7f80f1c2236 100644
          --- a/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1beta/MemorystoreClientHttpJsonTest.java
          +++ b/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1beta/MemorystoreClientHttpJsonTest.java
          @@ -16,6 +16,8 @@
           
           package com.google.cloud.memorystore.v1beta;
           
          +import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListAclPoliciesPagedResponse;
          +import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListAclPolicyRevisionsPagedResponse;
           import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListAuthTokensPagedResponse;
           import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListBackupCollectionsPagedResponse;
           import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListBackupsPagedResponse;
          @@ -92,6 +94,106 @@ public void tearDown() throws Exception {
               mockService.reset();
             }
           
          +  @Test
          +  public void listAclPoliciesTest() throws Exception {
          +    AclPolicy responsesElement = AclPolicy.newBuilder().build();
          +    ListAclPoliciesResponse expectedResponse =
          +        ListAclPoliciesResponse.newBuilder()
          +            .setNextPageToken("")
          +            .addAllAclPolicies(Arrays.asList(responsesElement))
          +            .build();
          +    mockService.addResponse(expectedResponse);
          +
          +    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
          +
          +    ListAclPoliciesPagedResponse pagedListResponse = client.listAclPolicies(parent);
          +
          +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
          +
          +    Assert.assertEquals(1, resources.size());
          +    Assert.assertEquals(expectedResponse.getAclPoliciesList().get(0), resources.get(0));
          +
          +    List actualRequests = mockService.getRequestPaths();
          +    Assert.assertEquals(1, actualRequests.size());
          +
          +    String apiClientHeaderKey =
          +        mockService
          +            .getRequestHeaders()
          +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
          +            .iterator()
          +            .next();
          +    Assert.assertTrue(
          +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
          +            .matcher(apiClientHeaderKey)
          +            .matches());
          +  }
          +
          +  @Test
          +  public void listAclPoliciesExceptionTest() throws Exception {
          +    ApiException exception =
          +        ApiExceptionFactory.createException(
          +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
          +    mockService.addException(exception);
          +
          +    try {
          +      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
          +      client.listAclPolicies(parent);
          +      Assert.fail("No exception raised");
          +    } catch (InvalidArgumentException e) {
          +      // Expected exception.
          +    }
          +  }
          +
          +  @Test
          +  public void listAclPoliciesTest2() throws Exception {
          +    AclPolicy responsesElement = AclPolicy.newBuilder().build();
          +    ListAclPoliciesResponse expectedResponse =
          +        ListAclPoliciesResponse.newBuilder()
          +            .setNextPageToken("")
          +            .addAllAclPolicies(Arrays.asList(responsesElement))
          +            .build();
          +    mockService.addResponse(expectedResponse);
          +
          +    String parent = "projects/project-5833/locations/location-5833";
          +
          +    ListAclPoliciesPagedResponse pagedListResponse = client.listAclPolicies(parent);
          +
          +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
          +
          +    Assert.assertEquals(1, resources.size());
          +    Assert.assertEquals(expectedResponse.getAclPoliciesList().get(0), resources.get(0));
          +
          +    List actualRequests = mockService.getRequestPaths();
          +    Assert.assertEquals(1, actualRequests.size());
          +
          +    String apiClientHeaderKey =
          +        mockService
          +            .getRequestHeaders()
          +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
          +            .iterator()
          +            .next();
          +    Assert.assertTrue(
          +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
          +            .matcher(apiClientHeaderKey)
          +            .matches());
          +  }
          +
          +  @Test
          +  public void listAclPoliciesExceptionTest2() throws Exception {
          +    ApiException exception =
          +        ApiExceptionFactory.createException(
          +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
          +    mockService.addException(exception);
          +
          +    try {
          +      String parent = "projects/project-5833/locations/location-5833";
          +      client.listAclPolicies(parent);
          +      Assert.fail("No exception raised");
          +    } catch (InvalidArgumentException e) {
          +      // Expected exception.
          +    }
          +  }
          +
             @Test
             public void listInstancesTest() throws Exception {
               Instance responsesElement = Instance.newBuilder().build();
          @@ -192,6 +294,104 @@ public void listInstancesExceptionTest2() throws Exception {
               }
             }
           
          +  @Test
          +  public void getAclPolicyTest() throws Exception {
          +    AclPolicy expectedResponse =
          +        AclPolicy.newBuilder()
          +            .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .addAllRules(new ArrayList())
          +            .setEtag("etag3123477")
          +            .addAllInstanceAclPolicyAttachments(new ArrayList())
          +            .setCreateTime(Timestamp.newBuilder().build())
          +            .setUpdateTime(Timestamp.newBuilder().build())
          +            .build();
          +    mockService.addResponse(expectedResponse);
          +
          +    AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
          +
          +    AclPolicy actualResponse = client.getAclPolicy(name);
          +    Assert.assertEquals(expectedResponse, actualResponse);
          +
          +    List actualRequests = mockService.getRequestPaths();
          +    Assert.assertEquals(1, actualRequests.size());
          +
          +    String apiClientHeaderKey =
          +        mockService
          +            .getRequestHeaders()
          +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
          +            .iterator()
          +            .next();
          +    Assert.assertTrue(
          +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
          +            .matcher(apiClientHeaderKey)
          +            .matches());
          +  }
          +
          +  @Test
          +  public void getAclPolicyExceptionTest() throws Exception {
          +    ApiException exception =
          +        ApiExceptionFactory.createException(
          +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
          +    mockService.addException(exception);
          +
          +    try {
          +      AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
          +      client.getAclPolicy(name);
          +      Assert.fail("No exception raised");
          +    } catch (InvalidArgumentException e) {
          +      // Expected exception.
          +    }
          +  }
          +
          +  @Test
          +  public void getAclPolicyTest2() throws Exception {
          +    AclPolicy expectedResponse =
          +        AclPolicy.newBuilder()
          +            .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .addAllRules(new ArrayList())
          +            .setEtag("etag3123477")
          +            .addAllInstanceAclPolicyAttachments(new ArrayList())
          +            .setCreateTime(Timestamp.newBuilder().build())
          +            .setUpdateTime(Timestamp.newBuilder().build())
          +            .build();
          +    mockService.addResponse(expectedResponse);
          +
          +    String name = "projects/project-7152/locations/location-7152/aclPolicies/aclPolicie-7152";
          +
          +    AclPolicy actualResponse = client.getAclPolicy(name);
          +    Assert.assertEquals(expectedResponse, actualResponse);
          +
          +    List actualRequests = mockService.getRequestPaths();
          +    Assert.assertEquals(1, actualRequests.size());
          +
          +    String apiClientHeaderKey =
          +        mockService
          +            .getRequestHeaders()
          +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
          +            .iterator()
          +            .next();
          +    Assert.assertTrue(
          +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
          +            .matcher(apiClientHeaderKey)
          +            .matches());
          +  }
          +
          +  @Test
          +  public void getAclPolicyExceptionTest2() throws Exception {
          +    ApiException exception =
          +        ApiExceptionFactory.createException(
          +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
          +    mockService.addException(exception);
          +
          +    try {
          +      String name = "projects/project-7152/locations/location-7152/aclPolicies/aclPolicie-7152";
          +      client.getAclPolicy(name);
          +      Assert.fail("No exception raised");
          +    } catch (InvalidArgumentException e) {
          +      // Expected exception.
          +    }
          +  }
          +
             @Test
             public void getInstanceTest() throws Exception {
               Instance expectedResponse =
          @@ -235,6 +435,8 @@ public void getInstanceTest() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               mockService.addResponse(expectedResponse);
           
          @@ -317,6 +519,8 @@ public void getInstanceTest2() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               mockService.addResponse(expectedResponse);
           
          @@ -356,6 +560,112 @@ public void getInstanceExceptionTest2() throws Exception {
               }
             }
           
          +  @Test
          +  public void createAclPolicyTest() throws Exception {
          +    AclPolicy expectedResponse =
          +        AclPolicy.newBuilder()
          +            .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .addAllRules(new ArrayList())
          +            .setEtag("etag3123477")
          +            .addAllInstanceAclPolicyAttachments(new ArrayList())
          +            .setCreateTime(Timestamp.newBuilder().build())
          +            .setUpdateTime(Timestamp.newBuilder().build())
          +            .build();
          +    mockService.addResponse(expectedResponse);
          +
          +    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
          +    AclPolicy aclPolicy = AclPolicy.newBuilder().build();
          +    String aclPolicyId = "aclPolicyId-1805591401";
          +
          +    AclPolicy actualResponse = client.createAclPolicy(parent, aclPolicy, aclPolicyId);
          +    Assert.assertEquals(expectedResponse, actualResponse);
          +
          +    List actualRequests = mockService.getRequestPaths();
          +    Assert.assertEquals(1, actualRequests.size());
          +
          +    String apiClientHeaderKey =
          +        mockService
          +            .getRequestHeaders()
          +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
          +            .iterator()
          +            .next();
          +    Assert.assertTrue(
          +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
          +            .matcher(apiClientHeaderKey)
          +            .matches());
          +  }
          +
          +  @Test
          +  public void createAclPolicyExceptionTest() throws Exception {
          +    ApiException exception =
          +        ApiExceptionFactory.createException(
          +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
          +    mockService.addException(exception);
          +
          +    try {
          +      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
          +      AclPolicy aclPolicy = AclPolicy.newBuilder().build();
          +      String aclPolicyId = "aclPolicyId-1805591401";
          +      client.createAclPolicy(parent, aclPolicy, aclPolicyId);
          +      Assert.fail("No exception raised");
          +    } catch (InvalidArgumentException e) {
          +      // Expected exception.
          +    }
          +  }
          +
          +  @Test
          +  public void createAclPolicyTest2() throws Exception {
          +    AclPolicy expectedResponse =
          +        AclPolicy.newBuilder()
          +            .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .addAllRules(new ArrayList())
          +            .setEtag("etag3123477")
          +            .addAllInstanceAclPolicyAttachments(new ArrayList())
          +            .setCreateTime(Timestamp.newBuilder().build())
          +            .setUpdateTime(Timestamp.newBuilder().build())
          +            .build();
          +    mockService.addResponse(expectedResponse);
          +
          +    String parent = "projects/project-5833/locations/location-5833";
          +    AclPolicy aclPolicy = AclPolicy.newBuilder().build();
          +    String aclPolicyId = "aclPolicyId-1805591401";
          +
          +    AclPolicy actualResponse = client.createAclPolicy(parent, aclPolicy, aclPolicyId);
          +    Assert.assertEquals(expectedResponse, actualResponse);
          +
          +    List actualRequests = mockService.getRequestPaths();
          +    Assert.assertEquals(1, actualRequests.size());
          +
          +    String apiClientHeaderKey =
          +        mockService
          +            .getRequestHeaders()
          +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
          +            .iterator()
          +            .next();
          +    Assert.assertTrue(
          +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
          +            .matcher(apiClientHeaderKey)
          +            .matches());
          +  }
          +
          +  @Test
          +  public void createAclPolicyExceptionTest2() throws Exception {
          +    ApiException exception =
          +        ApiExceptionFactory.createException(
          +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
          +    mockService.addException(exception);
          +
          +    try {
          +      String parent = "projects/project-5833/locations/location-5833";
          +      AclPolicy aclPolicy = AclPolicy.newBuilder().build();
          +      String aclPolicyId = "aclPolicyId-1805591401";
          +      client.createAclPolicy(parent, aclPolicy, aclPolicyId);
          +      Assert.fail("No exception raised");
          +    } catch (InvalidArgumentException e) {
          +      // Expected exception.
          +    }
          +  }
          +
             @Test
             public void createInstanceTest() throws Exception {
               Instance expectedResponse =
          @@ -399,6 +709,8 @@ public void createInstanceTest() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               Operation resultOperation =
                   Operation.newBuilder()
          @@ -490,6 +802,8 @@ public void createInstanceTest2() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               Operation resultOperation =
                   Operation.newBuilder()
          @@ -538,6 +852,78 @@ public void createInstanceExceptionTest2() throws Exception {
               }
             }
           
          +  @Test
          +  public void updateAclPolicyTest() throws Exception {
          +    AclPolicy expectedResponse =
          +        AclPolicy.newBuilder()
          +            .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .addAllRules(new ArrayList())
          +            .setEtag("etag3123477")
          +            .addAllInstanceAclPolicyAttachments(new ArrayList())
          +            .setCreateTime(Timestamp.newBuilder().build())
          +            .setUpdateTime(Timestamp.newBuilder().build())
          +            .build();
          +    Operation resultOperation =
          +        Operation.newBuilder()
          +            .setName("updateAclPolicyTest")
          +            .setDone(true)
          +            .setResponse(Any.pack(expectedResponse))
          +            .build();
          +    mockService.addResponse(resultOperation);
          +
          +    AclPolicy aclPolicy =
          +        AclPolicy.newBuilder()
          +            .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .addAllRules(new ArrayList())
          +            .setEtag("etag3123477")
          +            .addAllInstanceAclPolicyAttachments(new ArrayList())
          +            .setCreateTime(Timestamp.newBuilder().build())
          +            .setUpdateTime(Timestamp.newBuilder().build())
          +            .build();
          +    FieldMask updateMask = FieldMask.newBuilder().build();
          +
          +    AclPolicy actualResponse = client.updateAclPolicyAsync(aclPolicy, updateMask).get();
          +    Assert.assertEquals(expectedResponse, actualResponse);
          +
          +    List actualRequests = mockService.getRequestPaths();
          +    Assert.assertEquals(1, actualRequests.size());
          +
          +    String apiClientHeaderKey =
          +        mockService
          +            .getRequestHeaders()
          +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
          +            .iterator()
          +            .next();
          +    Assert.assertTrue(
          +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
          +            .matcher(apiClientHeaderKey)
          +            .matches());
          +  }
          +
          +  @Test
          +  public void updateAclPolicyExceptionTest() throws Exception {
          +    ApiException exception =
          +        ApiExceptionFactory.createException(
          +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
          +    mockService.addException(exception);
          +
          +    try {
          +      AclPolicy aclPolicy =
          +          AclPolicy.newBuilder()
          +              .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +              .addAllRules(new ArrayList())
          +              .setEtag("etag3123477")
          +              .addAllInstanceAclPolicyAttachments(new ArrayList())
          +              .setCreateTime(Timestamp.newBuilder().build())
          +              .setUpdateTime(Timestamp.newBuilder().build())
          +              .build();
          +      FieldMask updateMask = FieldMask.newBuilder().build();
          +      client.updateAclPolicyAsync(aclPolicy, updateMask).get();
          +      Assert.fail("No exception raised");
          +    } catch (ExecutionException e) {
          +    }
          +  }
          +
             @Test
             public void updateInstanceTest() throws Exception {
               Instance expectedResponse =
          @@ -581,6 +967,8 @@ public void updateInstanceTest() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               Operation resultOperation =
                   Operation.newBuilder()
          @@ -631,6 +1019,8 @@ public void updateInstanceTest() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               FieldMask updateMask = FieldMask.newBuilder().build();
           
          @@ -702,6 +1092,8 @@ public void updateInstanceExceptionTest() throws Exception {
                         .setServerCaPool("serverCaPool1433802429")
                         .setRotateServerCertificate(true)
                         .setMigrationConfig(MigrationConfig.newBuilder().build())
          +              .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +              .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                         .build();
                 FieldMask updateMask = FieldMask.newBuilder().build();
                 client.updateInstanceAsync(instance, updateMask).get();
          @@ -710,6 +1102,300 @@ public void updateInstanceExceptionTest() throws Exception {
               }
             }
           
          +  @Test
          +  public void deleteAclPolicyTest() throws Exception {
          +    Empty expectedResponse = Empty.newBuilder().build();
          +    Operation resultOperation =
          +        Operation.newBuilder()
          +            .setName("deleteAclPolicyTest")
          +            .setDone(true)
          +            .setResponse(Any.pack(expectedResponse))
          +            .build();
          +    mockService.addResponse(resultOperation);
          +
          +    AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
          +
          +    client.deleteAclPolicyAsync(name).get();
          +
          +    List actualRequests = mockService.getRequestPaths();
          +    Assert.assertEquals(1, actualRequests.size());
          +
          +    String apiClientHeaderKey =
          +        mockService
          +            .getRequestHeaders()
          +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
          +            .iterator()
          +            .next();
          +    Assert.assertTrue(
          +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
          +            .matcher(apiClientHeaderKey)
          +            .matches());
          +  }
          +
          +  @Test
          +  public void deleteAclPolicyExceptionTest() throws Exception {
          +    ApiException exception =
          +        ApiExceptionFactory.createException(
          +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
          +    mockService.addException(exception);
          +
          +    try {
          +      AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
          +      client.deleteAclPolicyAsync(name).get();
          +      Assert.fail("No exception raised");
          +    } catch (ExecutionException e) {
          +    }
          +  }
          +
          +  @Test
          +  public void deleteAclPolicyTest2() throws Exception {
          +    Empty expectedResponse = Empty.newBuilder().build();
          +    Operation resultOperation =
          +        Operation.newBuilder()
          +            .setName("deleteAclPolicyTest")
          +            .setDone(true)
          +            .setResponse(Any.pack(expectedResponse))
          +            .build();
          +    mockService.addResponse(resultOperation);
          +
          +    String name = "projects/project-7152/locations/location-7152/aclPolicies/aclPolicie-7152";
          +
          +    client.deleteAclPolicyAsync(name).get();
          +
          +    List actualRequests = mockService.getRequestPaths();
          +    Assert.assertEquals(1, actualRequests.size());
          +
          +    String apiClientHeaderKey =
          +        mockService
          +            .getRequestHeaders()
          +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
          +            .iterator()
          +            .next();
          +    Assert.assertTrue(
          +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
          +            .matcher(apiClientHeaderKey)
          +            .matches());
          +  }
          +
          +  @Test
          +  public void deleteAclPolicyExceptionTest2() throws Exception {
          +    ApiException exception =
          +        ApiExceptionFactory.createException(
          +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
          +    mockService.addException(exception);
          +
          +    try {
          +      String name = "projects/project-7152/locations/location-7152/aclPolicies/aclPolicie-7152";
          +      client.deleteAclPolicyAsync(name).get();
          +      Assert.fail("No exception raised");
          +    } catch (ExecutionException e) {
          +    }
          +  }
          +
          +  @Test
          +  public void getAclPolicyRevisionTest() throws Exception {
          +    AclPolicyRevision expectedResponse =
          +        AclPolicyRevision.newBuilder()
          +            .setName(
          +                AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]")
          +                    .toString())
          +            .setRevisionNumber(-1651923923)
          +            .setSnapshot(AclPolicy.newBuilder().build())
          +            .setCreateTime(Timestamp.newBuilder().build())
          +            .addAllAttachedInstances(new ArrayList())
          +            .build();
          +    mockService.addResponse(expectedResponse);
          +
          +    AclPolicyRevisionName name =
          +        AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]");
          +
          +    AclPolicyRevision actualResponse = client.getAclPolicyRevision(name);
          +    Assert.assertEquals(expectedResponse, actualResponse);
          +
          +    List actualRequests = mockService.getRequestPaths();
          +    Assert.assertEquals(1, actualRequests.size());
          +
          +    String apiClientHeaderKey =
          +        mockService
          +            .getRequestHeaders()
          +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
          +            .iterator()
          +            .next();
          +    Assert.assertTrue(
          +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
          +            .matcher(apiClientHeaderKey)
          +            .matches());
          +  }
          +
          +  @Test
          +  public void getAclPolicyRevisionExceptionTest() throws Exception {
          +    ApiException exception =
          +        ApiExceptionFactory.createException(
          +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
          +    mockService.addException(exception);
          +
          +    try {
          +      AclPolicyRevisionName name =
          +          AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]");
          +      client.getAclPolicyRevision(name);
          +      Assert.fail("No exception raised");
          +    } catch (InvalidArgumentException e) {
          +      // Expected exception.
          +    }
          +  }
          +
          +  @Test
          +  public void getAclPolicyRevisionTest2() throws Exception {
          +    AclPolicyRevision expectedResponse =
          +        AclPolicyRevision.newBuilder()
          +            .setName(
          +                AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]")
          +                    .toString())
          +            .setRevisionNumber(-1651923923)
          +            .setSnapshot(AclPolicy.newBuilder().build())
          +            .setCreateTime(Timestamp.newBuilder().build())
          +            .addAllAttachedInstances(new ArrayList())
          +            .build();
          +    mockService.addResponse(expectedResponse);
          +
          +    String name =
          +        "projects/project-644/locations/location-644/aclPolicies/aclPolicie-644/revisions/revision-644";
          +
          +    AclPolicyRevision actualResponse = client.getAclPolicyRevision(name);
          +    Assert.assertEquals(expectedResponse, actualResponse);
          +
          +    List actualRequests = mockService.getRequestPaths();
          +    Assert.assertEquals(1, actualRequests.size());
          +
          +    String apiClientHeaderKey =
          +        mockService
          +            .getRequestHeaders()
          +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
          +            .iterator()
          +            .next();
          +    Assert.assertTrue(
          +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
          +            .matcher(apiClientHeaderKey)
          +            .matches());
          +  }
          +
          +  @Test
          +  public void getAclPolicyRevisionExceptionTest2() throws Exception {
          +    ApiException exception =
          +        ApiExceptionFactory.createException(
          +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
          +    mockService.addException(exception);
          +
          +    try {
          +      String name =
          +          "projects/project-644/locations/location-644/aclPolicies/aclPolicie-644/revisions/revision-644";
          +      client.getAclPolicyRevision(name);
          +      Assert.fail("No exception raised");
          +    } catch (InvalidArgumentException e) {
          +      // Expected exception.
          +    }
          +  }
          +
          +  @Test
          +  public void listAclPolicyRevisionsTest() throws Exception {
          +    AclPolicyRevision responsesElement = AclPolicyRevision.newBuilder().build();
          +    ListAclPolicyRevisionsResponse expectedResponse =
          +        ListAclPolicyRevisionsResponse.newBuilder()
          +            .setNextPageToken("")
          +            .addAllAclPolicyRevisions(Arrays.asList(responsesElement))
          +            .build();
          +    mockService.addResponse(expectedResponse);
          +
          +    AclPolicyName parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
          +
          +    ListAclPolicyRevisionsPagedResponse pagedListResponse = client.listAclPolicyRevisions(parent);
          +
          +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
          +
          +    Assert.assertEquals(1, resources.size());
          +    Assert.assertEquals(expectedResponse.getAclPolicyRevisionsList().get(0), resources.get(0));
          +
          +    List actualRequests = mockService.getRequestPaths();
          +    Assert.assertEquals(1, actualRequests.size());
          +
          +    String apiClientHeaderKey =
          +        mockService
          +            .getRequestHeaders()
          +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
          +            .iterator()
          +            .next();
          +    Assert.assertTrue(
          +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
          +            .matcher(apiClientHeaderKey)
          +            .matches());
          +  }
          +
          +  @Test
          +  public void listAclPolicyRevisionsExceptionTest() throws Exception {
          +    ApiException exception =
          +        ApiExceptionFactory.createException(
          +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
          +    mockService.addException(exception);
          +
          +    try {
          +      AclPolicyName parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
          +      client.listAclPolicyRevisions(parent);
          +      Assert.fail("No exception raised");
          +    } catch (InvalidArgumentException e) {
          +      // Expected exception.
          +    }
          +  }
          +
          +  @Test
          +  public void listAclPolicyRevisionsTest2() throws Exception {
          +    AclPolicyRevision responsesElement = AclPolicyRevision.newBuilder().build();
          +    ListAclPolicyRevisionsResponse expectedResponse =
          +        ListAclPolicyRevisionsResponse.newBuilder()
          +            .setNextPageToken("")
          +            .addAllAclPolicyRevisions(Arrays.asList(responsesElement))
          +            .build();
          +    mockService.addResponse(expectedResponse);
          +
          +    String parent = "projects/project-9295/locations/location-9295/aclPolicies/aclPolicie-9295";
          +
          +    ListAclPolicyRevisionsPagedResponse pagedListResponse = client.listAclPolicyRevisions(parent);
          +
          +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
          +
          +    Assert.assertEquals(1, resources.size());
          +    Assert.assertEquals(expectedResponse.getAclPolicyRevisionsList().get(0), resources.get(0));
          +
          +    List actualRequests = mockService.getRequestPaths();
          +    Assert.assertEquals(1, actualRequests.size());
          +
          +    String apiClientHeaderKey =
          +        mockService
          +            .getRequestHeaders()
          +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
          +            .iterator()
          +            .next();
          +    Assert.assertTrue(
          +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
          +            .matcher(apiClientHeaderKey)
          +            .matches());
          +  }
          +
          +  @Test
          +  public void listAclPolicyRevisionsExceptionTest2() throws Exception {
          +    ApiException exception =
          +        ApiExceptionFactory.createException(
          +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
          +    mockService.addException(exception);
          +
          +    try {
          +      String parent = "projects/project-9295/locations/location-9295/aclPolicies/aclPolicie-9295";
          +      client.listAclPolicyRevisions(parent);
          +      Assert.fail("No exception raised");
          +    } catch (InvalidArgumentException e) {
          +      // Expected exception.
          +    }
          +  }
          +
             @Test
             public void deleteInstanceTest() throws Exception {
               Empty expectedResponse = Empty.newBuilder().build();
          @@ -1022,6 +1708,8 @@ public void rescheduleMaintenanceTest() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               Operation resultOperation =
                   Operation.newBuilder()
          @@ -1116,6 +1804,8 @@ public void rescheduleMaintenanceTest2() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               Operation resultOperation =
                   Operation.newBuilder()
          @@ -1806,6 +2496,8 @@ public void backupInstanceTest() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               Operation resultOperation =
                   Operation.newBuilder()
          @@ -1893,6 +2585,8 @@ public void backupInstanceTest2() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               Operation resultOperation =
                   Operation.newBuilder()
          @@ -1980,6 +2674,8 @@ public void startMigrationTest() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               Operation resultOperation =
                   Operation.newBuilder()
          @@ -2073,6 +2769,8 @@ public void finishMigrationTest() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               Operation resultOperation =
                   Operation.newBuilder()
          @@ -2162,6 +2860,8 @@ public void finishMigrationTest2() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               Operation resultOperation =
                   Operation.newBuilder()
          @@ -2663,6 +3363,8 @@ public void addTokenAuthUserTest() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               Operation resultOperation =
                   Operation.newBuilder()
          @@ -2752,6 +3454,8 @@ public void addTokenAuthUserTest2() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               Operation resultOperation =
                   Operation.newBuilder()
          diff --git a/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1beta/MemorystoreClientTest.java b/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1beta/MemorystoreClientTest.java
          index bac3c9fad3dc..33e2afe5a737 100644
          --- a/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1beta/MemorystoreClientTest.java
          +++ b/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1beta/MemorystoreClientTest.java
          @@ -16,6 +16,8 @@
           
           package com.google.cloud.memorystore.v1beta;
           
          +import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListAclPoliciesPagedResponse;
          +import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListAclPolicyRevisionsPagedResponse;
           import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListAuthTokensPagedResponse;
           import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListBackupCollectionsPagedResponse;
           import static com.google.cloud.memorystore.v1beta.MemorystoreClient.ListBackupsPagedResponse;
          @@ -99,6 +101,94 @@ public void tearDown() throws Exception {
               client.close();
             }
           
          +  @Test
          +  public void listAclPoliciesTest() throws Exception {
          +    AclPolicy responsesElement = AclPolicy.newBuilder().build();
          +    ListAclPoliciesResponse expectedResponse =
          +        ListAclPoliciesResponse.newBuilder()
          +            .setNextPageToken("")
          +            .addAllAclPolicies(Arrays.asList(responsesElement))
          +            .build();
          +    mockMemorystore.addResponse(expectedResponse);
          +
          +    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
          +
          +    ListAclPoliciesPagedResponse pagedListResponse = client.listAclPolicies(parent);
          +
          +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
          +
          +    Assert.assertEquals(1, resources.size());
          +    Assert.assertEquals(expectedResponse.getAclPoliciesList().get(0), resources.get(0));
          +
          +    List actualRequests = mockMemorystore.getRequests();
          +    Assert.assertEquals(1, actualRequests.size());
          +    ListAclPoliciesRequest actualRequest = ((ListAclPoliciesRequest) actualRequests.get(0));
          +
          +    Assert.assertEquals(parent.toString(), actualRequest.getParent());
          +    Assert.assertTrue(
          +        channelProvider.isHeaderSent(
          +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
          +  }
          +
          +  @Test
          +  public void listAclPoliciesExceptionTest() throws Exception {
          +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
          +    mockMemorystore.addException(exception);
          +
          +    try {
          +      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
          +      client.listAclPolicies(parent);
          +      Assert.fail("No exception raised");
          +    } catch (InvalidArgumentException e) {
          +      // Expected exception.
          +    }
          +  }
          +
          +  @Test
          +  public void listAclPoliciesTest2() throws Exception {
          +    AclPolicy responsesElement = AclPolicy.newBuilder().build();
          +    ListAclPoliciesResponse expectedResponse =
          +        ListAclPoliciesResponse.newBuilder()
          +            .setNextPageToken("")
          +            .addAllAclPolicies(Arrays.asList(responsesElement))
          +            .build();
          +    mockMemorystore.addResponse(expectedResponse);
          +
          +    String parent = "parent-995424086";
          +
          +    ListAclPoliciesPagedResponse pagedListResponse = client.listAclPolicies(parent);
          +
          +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
          +
          +    Assert.assertEquals(1, resources.size());
          +    Assert.assertEquals(expectedResponse.getAclPoliciesList().get(0), resources.get(0));
          +
          +    List actualRequests = mockMemorystore.getRequests();
          +    Assert.assertEquals(1, actualRequests.size());
          +    ListAclPoliciesRequest actualRequest = ((ListAclPoliciesRequest) actualRequests.get(0));
          +
          +    Assert.assertEquals(parent, actualRequest.getParent());
          +    Assert.assertTrue(
          +        channelProvider.isHeaderSent(
          +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
          +  }
          +
          +  @Test
          +  public void listAclPoliciesExceptionTest2() throws Exception {
          +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
          +    mockMemorystore.addException(exception);
          +
          +    try {
          +      String parent = "parent-995424086";
          +      client.listAclPolicies(parent);
          +      Assert.fail("No exception raised");
          +    } catch (InvalidArgumentException e) {
          +      // Expected exception.
          +    }
          +  }
          +
             @Test
             public void listInstancesTest() throws Exception {
               Instance responsesElement = Instance.newBuilder().build();
          @@ -187,6 +277,92 @@ public void listInstancesExceptionTest2() throws Exception {
               }
             }
           
          +  @Test
          +  public void getAclPolicyTest() throws Exception {
          +    AclPolicy expectedResponse =
          +        AclPolicy.newBuilder()
          +            .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .addAllRules(new ArrayList())
          +            .setEtag("etag3123477")
          +            .addAllInstanceAclPolicyAttachments(new ArrayList())
          +            .setCreateTime(Timestamp.newBuilder().build())
          +            .setUpdateTime(Timestamp.newBuilder().build())
          +            .build();
          +    mockMemorystore.addResponse(expectedResponse);
          +
          +    AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
          +
          +    AclPolicy actualResponse = client.getAclPolicy(name);
          +    Assert.assertEquals(expectedResponse, actualResponse);
          +
          +    List actualRequests = mockMemorystore.getRequests();
          +    Assert.assertEquals(1, actualRequests.size());
          +    GetAclPolicyRequest actualRequest = ((GetAclPolicyRequest) actualRequests.get(0));
          +
          +    Assert.assertEquals(name.toString(), actualRequest.getName());
          +    Assert.assertTrue(
          +        channelProvider.isHeaderSent(
          +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
          +  }
          +
          +  @Test
          +  public void getAclPolicyExceptionTest() throws Exception {
          +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
          +    mockMemorystore.addException(exception);
          +
          +    try {
          +      AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
          +      client.getAclPolicy(name);
          +      Assert.fail("No exception raised");
          +    } catch (InvalidArgumentException e) {
          +      // Expected exception.
          +    }
          +  }
          +
          +  @Test
          +  public void getAclPolicyTest2() throws Exception {
          +    AclPolicy expectedResponse =
          +        AclPolicy.newBuilder()
          +            .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .addAllRules(new ArrayList())
          +            .setEtag("etag3123477")
          +            .addAllInstanceAclPolicyAttachments(new ArrayList())
          +            .setCreateTime(Timestamp.newBuilder().build())
          +            .setUpdateTime(Timestamp.newBuilder().build())
          +            .build();
          +    mockMemorystore.addResponse(expectedResponse);
          +
          +    String name = "name3373707";
          +
          +    AclPolicy actualResponse = client.getAclPolicy(name);
          +    Assert.assertEquals(expectedResponse, actualResponse);
          +
          +    List actualRequests = mockMemorystore.getRequests();
          +    Assert.assertEquals(1, actualRequests.size());
          +    GetAclPolicyRequest actualRequest = ((GetAclPolicyRequest) actualRequests.get(0));
          +
          +    Assert.assertEquals(name, actualRequest.getName());
          +    Assert.assertTrue(
          +        channelProvider.isHeaderSent(
          +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
          +  }
          +
          +  @Test
          +  public void getAclPolicyExceptionTest2() throws Exception {
          +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
          +    mockMemorystore.addException(exception);
          +
          +    try {
          +      String name = "name3373707";
          +      client.getAclPolicy(name);
          +      Assert.fail("No exception raised");
          +    } catch (InvalidArgumentException e) {
          +      // Expected exception.
          +    }
          +  }
          +
             @Test
             public void getInstanceTest() throws Exception {
               Instance expectedResponse =
          @@ -230,6 +406,8 @@ public void getInstanceTest() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               mockMemorystore.addResponse(expectedResponse);
           
          @@ -306,6 +484,8 @@ public void getInstanceTest2() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               mockMemorystore.addResponse(expectedResponse);
           
          @@ -339,6 +519,104 @@ public void getInstanceExceptionTest2() throws Exception {
               }
             }
           
          +  @Test
          +  public void createAclPolicyTest() throws Exception {
          +    AclPolicy expectedResponse =
          +        AclPolicy.newBuilder()
          +            .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .addAllRules(new ArrayList())
          +            .setEtag("etag3123477")
          +            .addAllInstanceAclPolicyAttachments(new ArrayList())
          +            .setCreateTime(Timestamp.newBuilder().build())
          +            .setUpdateTime(Timestamp.newBuilder().build())
          +            .build();
          +    mockMemorystore.addResponse(expectedResponse);
          +
          +    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
          +    AclPolicy aclPolicy = AclPolicy.newBuilder().build();
          +    String aclPolicyId = "aclPolicyId-1805591401";
          +
          +    AclPolicy actualResponse = client.createAclPolicy(parent, aclPolicy, aclPolicyId);
          +    Assert.assertEquals(expectedResponse, actualResponse);
          +
          +    List actualRequests = mockMemorystore.getRequests();
          +    Assert.assertEquals(1, actualRequests.size());
          +    CreateAclPolicyRequest actualRequest = ((CreateAclPolicyRequest) actualRequests.get(0));
          +
          +    Assert.assertEquals(parent.toString(), actualRequest.getParent());
          +    Assert.assertEquals(aclPolicy, actualRequest.getAclPolicy());
          +    Assert.assertEquals(aclPolicyId, actualRequest.getAclPolicyId());
          +    Assert.assertTrue(
          +        channelProvider.isHeaderSent(
          +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
          +  }
          +
          +  @Test
          +  public void createAclPolicyExceptionTest() throws Exception {
          +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
          +    mockMemorystore.addException(exception);
          +
          +    try {
          +      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
          +      AclPolicy aclPolicy = AclPolicy.newBuilder().build();
          +      String aclPolicyId = "aclPolicyId-1805591401";
          +      client.createAclPolicy(parent, aclPolicy, aclPolicyId);
          +      Assert.fail("No exception raised");
          +    } catch (InvalidArgumentException e) {
          +      // Expected exception.
          +    }
          +  }
          +
          +  @Test
          +  public void createAclPolicyTest2() throws Exception {
          +    AclPolicy expectedResponse =
          +        AclPolicy.newBuilder()
          +            .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .addAllRules(new ArrayList())
          +            .setEtag("etag3123477")
          +            .addAllInstanceAclPolicyAttachments(new ArrayList())
          +            .setCreateTime(Timestamp.newBuilder().build())
          +            .setUpdateTime(Timestamp.newBuilder().build())
          +            .build();
          +    mockMemorystore.addResponse(expectedResponse);
          +
          +    String parent = "parent-995424086";
          +    AclPolicy aclPolicy = AclPolicy.newBuilder().build();
          +    String aclPolicyId = "aclPolicyId-1805591401";
          +
          +    AclPolicy actualResponse = client.createAclPolicy(parent, aclPolicy, aclPolicyId);
          +    Assert.assertEquals(expectedResponse, actualResponse);
          +
          +    List actualRequests = mockMemorystore.getRequests();
          +    Assert.assertEquals(1, actualRequests.size());
          +    CreateAclPolicyRequest actualRequest = ((CreateAclPolicyRequest) actualRequests.get(0));
          +
          +    Assert.assertEquals(parent, actualRequest.getParent());
          +    Assert.assertEquals(aclPolicy, actualRequest.getAclPolicy());
          +    Assert.assertEquals(aclPolicyId, actualRequest.getAclPolicyId());
          +    Assert.assertTrue(
          +        channelProvider.isHeaderSent(
          +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
          +  }
          +
          +  @Test
          +  public void createAclPolicyExceptionTest2() throws Exception {
          +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
          +    mockMemorystore.addException(exception);
          +
          +    try {
          +      String parent = "parent-995424086";
          +      AclPolicy aclPolicy = AclPolicy.newBuilder().build();
          +      String aclPolicyId = "aclPolicyId-1805591401";
          +      client.createAclPolicy(parent, aclPolicy, aclPolicyId);
          +      Assert.fail("No exception raised");
          +    } catch (InvalidArgumentException e) {
          +      // Expected exception.
          +    }
          +  }
          +
             @Test
             public void createInstanceTest() throws Exception {
               Instance expectedResponse =
          @@ -382,6 +660,8 @@ public void createInstanceTest() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               Operation resultOperation =
                   Operation.newBuilder()
          @@ -472,6 +752,8 @@ public void createInstanceTest2() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               Operation resultOperation =
                   Operation.newBuilder()
          @@ -519,6 +801,60 @@ public void createInstanceExceptionTest2() throws Exception {
               }
             }
           
          +  @Test
          +  public void updateAclPolicyTest() throws Exception {
          +    AclPolicy expectedResponse =
          +        AclPolicy.newBuilder()
          +            .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .addAllRules(new ArrayList())
          +            .setEtag("etag3123477")
          +            .addAllInstanceAclPolicyAttachments(new ArrayList())
          +            .setCreateTime(Timestamp.newBuilder().build())
          +            .setUpdateTime(Timestamp.newBuilder().build())
          +            .build();
          +    Operation resultOperation =
          +        Operation.newBuilder()
          +            .setName("updateAclPolicyTest")
          +            .setDone(true)
          +            .setResponse(Any.pack(expectedResponse))
          +            .build();
          +    mockMemorystore.addResponse(resultOperation);
          +
          +    AclPolicy aclPolicy = AclPolicy.newBuilder().build();
          +    FieldMask updateMask = FieldMask.newBuilder().build();
          +
          +    AclPolicy actualResponse = client.updateAclPolicyAsync(aclPolicy, updateMask).get();
          +    Assert.assertEquals(expectedResponse, actualResponse);
          +
          +    List actualRequests = mockMemorystore.getRequests();
          +    Assert.assertEquals(1, actualRequests.size());
          +    UpdateAclPolicyRequest actualRequest = ((UpdateAclPolicyRequest) actualRequests.get(0));
          +
          +    Assert.assertEquals(aclPolicy, actualRequest.getAclPolicy());
          +    Assert.assertEquals(updateMask, actualRequest.getUpdateMask());
          +    Assert.assertTrue(
          +        channelProvider.isHeaderSent(
          +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
          +  }
          +
          +  @Test
          +  public void updateAclPolicyExceptionTest() throws Exception {
          +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
          +    mockMemorystore.addException(exception);
          +
          +    try {
          +      AclPolicy aclPolicy = AclPolicy.newBuilder().build();
          +      FieldMask updateMask = FieldMask.newBuilder().build();
          +      client.updateAclPolicyAsync(aclPolicy, updateMask).get();
          +      Assert.fail("No exception raised");
          +    } catch (ExecutionException e) {
          +      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
          +      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
          +      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
          +    }
          +  }
          +
             @Test
             public void updateInstanceTest() throws Exception {
               Instance expectedResponse =
          @@ -562,6 +898,8 @@ public void updateInstanceTest() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               Operation resultOperation =
                   Operation.newBuilder()
          @@ -606,6 +944,272 @@ public void updateInstanceExceptionTest() throws Exception {
               }
             }
           
          +  @Test
          +  public void deleteAclPolicyTest() throws Exception {
          +    Empty expectedResponse = Empty.newBuilder().build();
          +    Operation resultOperation =
          +        Operation.newBuilder()
          +            .setName("deleteAclPolicyTest")
          +            .setDone(true)
          +            .setResponse(Any.pack(expectedResponse))
          +            .build();
          +    mockMemorystore.addResponse(resultOperation);
          +
          +    AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
          +
          +    client.deleteAclPolicyAsync(name).get();
          +
          +    List actualRequests = mockMemorystore.getRequests();
          +    Assert.assertEquals(1, actualRequests.size());
          +    DeleteAclPolicyRequest actualRequest = ((DeleteAclPolicyRequest) actualRequests.get(0));
          +
          +    Assert.assertEquals(name.toString(), actualRequest.getName());
          +    Assert.assertTrue(
          +        channelProvider.isHeaderSent(
          +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
          +  }
          +
          +  @Test
          +  public void deleteAclPolicyExceptionTest() throws Exception {
          +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
          +    mockMemorystore.addException(exception);
          +
          +    try {
          +      AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
          +      client.deleteAclPolicyAsync(name).get();
          +      Assert.fail("No exception raised");
          +    } catch (ExecutionException e) {
          +      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
          +      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
          +      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
          +    }
          +  }
          +
          +  @Test
          +  public void deleteAclPolicyTest2() throws Exception {
          +    Empty expectedResponse = Empty.newBuilder().build();
          +    Operation resultOperation =
          +        Operation.newBuilder()
          +            .setName("deleteAclPolicyTest")
          +            .setDone(true)
          +            .setResponse(Any.pack(expectedResponse))
          +            .build();
          +    mockMemorystore.addResponse(resultOperation);
          +
          +    String name = "name3373707";
          +
          +    client.deleteAclPolicyAsync(name).get();
          +
          +    List actualRequests = mockMemorystore.getRequests();
          +    Assert.assertEquals(1, actualRequests.size());
          +    DeleteAclPolicyRequest actualRequest = ((DeleteAclPolicyRequest) actualRequests.get(0));
          +
          +    Assert.assertEquals(name, actualRequest.getName());
          +    Assert.assertTrue(
          +        channelProvider.isHeaderSent(
          +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
          +  }
          +
          +  @Test
          +  public void deleteAclPolicyExceptionTest2() throws Exception {
          +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
          +    mockMemorystore.addException(exception);
          +
          +    try {
          +      String name = "name3373707";
          +      client.deleteAclPolicyAsync(name).get();
          +      Assert.fail("No exception raised");
          +    } catch (ExecutionException e) {
          +      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
          +      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
          +      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
          +    }
          +  }
          +
          +  @Test
          +  public void getAclPolicyRevisionTest() throws Exception {
          +    AclPolicyRevision expectedResponse =
          +        AclPolicyRevision.newBuilder()
          +            .setName(
          +                AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]")
          +                    .toString())
          +            .setRevisionNumber(-1651923923)
          +            .setSnapshot(AclPolicy.newBuilder().build())
          +            .setCreateTime(Timestamp.newBuilder().build())
          +            .addAllAttachedInstances(new ArrayList())
          +            .build();
          +    mockMemorystore.addResponse(expectedResponse);
          +
          +    AclPolicyRevisionName name =
          +        AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]");
          +
          +    AclPolicyRevision actualResponse = client.getAclPolicyRevision(name);
          +    Assert.assertEquals(expectedResponse, actualResponse);
          +
          +    List actualRequests = mockMemorystore.getRequests();
          +    Assert.assertEquals(1, actualRequests.size());
          +    GetAclPolicyRevisionRequest actualRequest =
          +        ((GetAclPolicyRevisionRequest) actualRequests.get(0));
          +
          +    Assert.assertEquals(name.toString(), actualRequest.getName());
          +    Assert.assertTrue(
          +        channelProvider.isHeaderSent(
          +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
          +  }
          +
          +  @Test
          +  public void getAclPolicyRevisionExceptionTest() throws Exception {
          +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
          +    mockMemorystore.addException(exception);
          +
          +    try {
          +      AclPolicyRevisionName name =
          +          AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]");
          +      client.getAclPolicyRevision(name);
          +      Assert.fail("No exception raised");
          +    } catch (InvalidArgumentException e) {
          +      // Expected exception.
          +    }
          +  }
          +
          +  @Test
          +  public void getAclPolicyRevisionTest2() throws Exception {
          +    AclPolicyRevision expectedResponse =
          +        AclPolicyRevision.newBuilder()
          +            .setName(
          +                AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]")
          +                    .toString())
          +            .setRevisionNumber(-1651923923)
          +            .setSnapshot(AclPolicy.newBuilder().build())
          +            .setCreateTime(Timestamp.newBuilder().build())
          +            .addAllAttachedInstances(new ArrayList())
          +            .build();
          +    mockMemorystore.addResponse(expectedResponse);
          +
          +    String name = "name3373707";
          +
          +    AclPolicyRevision actualResponse = client.getAclPolicyRevision(name);
          +    Assert.assertEquals(expectedResponse, actualResponse);
          +
          +    List actualRequests = mockMemorystore.getRequests();
          +    Assert.assertEquals(1, actualRequests.size());
          +    GetAclPolicyRevisionRequest actualRequest =
          +        ((GetAclPolicyRevisionRequest) actualRequests.get(0));
          +
          +    Assert.assertEquals(name, actualRequest.getName());
          +    Assert.assertTrue(
          +        channelProvider.isHeaderSent(
          +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
          +  }
          +
          +  @Test
          +  public void getAclPolicyRevisionExceptionTest2() throws Exception {
          +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
          +    mockMemorystore.addException(exception);
          +
          +    try {
          +      String name = "name3373707";
          +      client.getAclPolicyRevision(name);
          +      Assert.fail("No exception raised");
          +    } catch (InvalidArgumentException e) {
          +      // Expected exception.
          +    }
          +  }
          +
          +  @Test
          +  public void listAclPolicyRevisionsTest() throws Exception {
          +    AclPolicyRevision responsesElement = AclPolicyRevision.newBuilder().build();
          +    ListAclPolicyRevisionsResponse expectedResponse =
          +        ListAclPolicyRevisionsResponse.newBuilder()
          +            .setNextPageToken("")
          +            .addAllAclPolicyRevisions(Arrays.asList(responsesElement))
          +            .build();
          +    mockMemorystore.addResponse(expectedResponse);
          +
          +    AclPolicyName parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
          +
          +    ListAclPolicyRevisionsPagedResponse pagedListResponse = client.listAclPolicyRevisions(parent);
          +
          +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
          +
          +    Assert.assertEquals(1, resources.size());
          +    Assert.assertEquals(expectedResponse.getAclPolicyRevisionsList().get(0), resources.get(0));
          +
          +    List actualRequests = mockMemorystore.getRequests();
          +    Assert.assertEquals(1, actualRequests.size());
          +    ListAclPolicyRevisionsRequest actualRequest =
          +        ((ListAclPolicyRevisionsRequest) actualRequests.get(0));
          +
          +    Assert.assertEquals(parent.toString(), actualRequest.getParent());
          +    Assert.assertTrue(
          +        channelProvider.isHeaderSent(
          +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
          +  }
          +
          +  @Test
          +  public void listAclPolicyRevisionsExceptionTest() throws Exception {
          +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
          +    mockMemorystore.addException(exception);
          +
          +    try {
          +      AclPolicyName parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
          +      client.listAclPolicyRevisions(parent);
          +      Assert.fail("No exception raised");
          +    } catch (InvalidArgumentException e) {
          +      // Expected exception.
          +    }
          +  }
          +
          +  @Test
          +  public void listAclPolicyRevisionsTest2() throws Exception {
          +    AclPolicyRevision responsesElement = AclPolicyRevision.newBuilder().build();
          +    ListAclPolicyRevisionsResponse expectedResponse =
          +        ListAclPolicyRevisionsResponse.newBuilder()
          +            .setNextPageToken("")
          +            .addAllAclPolicyRevisions(Arrays.asList(responsesElement))
          +            .build();
          +    mockMemorystore.addResponse(expectedResponse);
          +
          +    String parent = "parent-995424086";
          +
          +    ListAclPolicyRevisionsPagedResponse pagedListResponse = client.listAclPolicyRevisions(parent);
          +
          +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
          +
          +    Assert.assertEquals(1, resources.size());
          +    Assert.assertEquals(expectedResponse.getAclPolicyRevisionsList().get(0), resources.get(0));
          +
          +    List actualRequests = mockMemorystore.getRequests();
          +    Assert.assertEquals(1, actualRequests.size());
          +    ListAclPolicyRevisionsRequest actualRequest =
          +        ((ListAclPolicyRevisionsRequest) actualRequests.get(0));
          +
          +    Assert.assertEquals(parent, actualRequest.getParent());
          +    Assert.assertTrue(
          +        channelProvider.isHeaderSent(
          +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
          +  }
          +
          +  @Test
          +  public void listAclPolicyRevisionsExceptionTest2() throws Exception {
          +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
          +    mockMemorystore.addException(exception);
          +
          +    try {
          +      String parent = "parent-995424086";
          +      client.listAclPolicyRevisions(parent);
          +      Assert.fail("No exception raised");
          +    } catch (InvalidArgumentException e) {
          +      // Expected exception.
          +    }
          +  }
          +
             @Test
             public void deleteInstanceTest() throws Exception {
               Empty expectedResponse = Empty.newBuilder().build();
          @@ -891,6 +1495,8 @@ public void rescheduleMaintenanceTest() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               Operation resultOperation =
                   Operation.newBuilder()
          @@ -985,6 +1591,8 @@ public void rescheduleMaintenanceTest2() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               Operation resultOperation =
                   Operation.newBuilder()
          @@ -1613,6 +2221,8 @@ public void backupInstanceTest() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               Operation resultOperation =
                   Operation.newBuilder()
          @@ -1697,6 +2307,8 @@ public void backupInstanceTest2() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               Operation resultOperation =
                   Operation.newBuilder()
          @@ -1781,6 +2393,8 @@ public void startMigrationTest() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               Operation resultOperation =
                   Operation.newBuilder()
          @@ -1872,6 +2486,8 @@ public void finishMigrationTest() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               Operation resultOperation =
                   Operation.newBuilder()
          @@ -1959,6 +2575,8 @@ public void finishMigrationTest2() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               Operation resultOperation =
                   Operation.newBuilder()
          @@ -2404,6 +3022,8 @@ public void addTokenAuthUserTest() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               Operation resultOperation =
                   Operation.newBuilder()
          @@ -2491,6 +3111,8 @@ public void addTokenAuthUserTest2() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
          +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
          +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               Operation resultOperation =
                   Operation.newBuilder()
          diff --git a/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1beta/MockMemorystoreImpl.java b/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1beta/MockMemorystoreImpl.java
          index 51f38170ce3b..e185702f49d4 100644
          --- a/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1beta/MockMemorystoreImpl.java
          +++ b/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1beta/MockMemorystoreImpl.java
          @@ -59,6 +59,27 @@ public void reset() {
               responses = new LinkedList<>();
             }
           
          +  @Override
          +  public void listAclPolicies(
          +      ListAclPoliciesRequest request, StreamObserver responseObserver) {
          +    Object response = responses.poll();
          +    if (response instanceof ListAclPoliciesResponse) {
          +      requests.add(request);
          +      responseObserver.onNext(((ListAclPoliciesResponse) response));
          +      responseObserver.onCompleted();
          +    } else if (response instanceof Exception) {
          +      responseObserver.onError(((Exception) response));
          +    } else {
          +      responseObserver.onError(
          +          new IllegalArgumentException(
          +              String.format(
          +                  "Unrecognized response type %s for method ListAclPolicies, expected %s or %s",
          +                  response == null ? "null" : response.getClass().getName(),
          +                  ListAclPoliciesResponse.class.getName(),
          +                  Exception.class.getName())));
          +    }
          +  }
          +
             @Override
             public void listInstances(
                 ListInstancesRequest request, StreamObserver responseObserver) {
          @@ -80,6 +101,27 @@ public void listInstances(
               }
             }
           
          +  @Override
          +  public void getAclPolicy(
          +      GetAclPolicyRequest request, StreamObserver responseObserver) {
          +    Object response = responses.poll();
          +    if (response instanceof AclPolicy) {
          +      requests.add(request);
          +      responseObserver.onNext(((AclPolicy) response));
          +      responseObserver.onCompleted();
          +    } else if (response instanceof Exception) {
          +      responseObserver.onError(((Exception) response));
          +    } else {
          +      responseObserver.onError(
          +          new IllegalArgumentException(
          +              String.format(
          +                  "Unrecognized response type %s for method GetAclPolicy, expected %s or %s",
          +                  response == null ? "null" : response.getClass().getName(),
          +                  AclPolicy.class.getName(),
          +                  Exception.class.getName())));
          +    }
          +  }
          +
             @Override
             public void getInstance(GetInstanceRequest request, StreamObserver responseObserver) {
               Object response = responses.poll();
          @@ -100,6 +142,27 @@ public void getInstance(GetInstanceRequest request, StreamObserver res
               }
             }
           
          +  @Override
          +  public void createAclPolicy(
          +      CreateAclPolicyRequest request, StreamObserver responseObserver) {
          +    Object response = responses.poll();
          +    if (response instanceof AclPolicy) {
          +      requests.add(request);
          +      responseObserver.onNext(((AclPolicy) response));
          +      responseObserver.onCompleted();
          +    } else if (response instanceof Exception) {
          +      responseObserver.onError(((Exception) response));
          +    } else {
          +      responseObserver.onError(
          +          new IllegalArgumentException(
          +              String.format(
          +                  "Unrecognized response type %s for method CreateAclPolicy, expected %s or %s",
          +                  response == null ? "null" : response.getClass().getName(),
          +                  AclPolicy.class.getName(),
          +                  Exception.class.getName())));
          +    }
          +  }
          +
             @Override
             public void createInstance(
                 CreateInstanceRequest request, StreamObserver responseObserver) {
          @@ -121,6 +184,27 @@ public void createInstance(
               }
             }
           
          +  @Override
          +  public void updateAclPolicy(
          +      UpdateAclPolicyRequest request, StreamObserver responseObserver) {
          +    Object response = responses.poll();
          +    if (response instanceof Operation) {
          +      requests.add(request);
          +      responseObserver.onNext(((Operation) response));
          +      responseObserver.onCompleted();
          +    } else if (response instanceof Exception) {
          +      responseObserver.onError(((Exception) response));
          +    } else {
          +      responseObserver.onError(
          +          new IllegalArgumentException(
          +              String.format(
          +                  "Unrecognized response type %s for method UpdateAclPolicy, expected %s or %s",
          +                  response == null ? "null" : response.getClass().getName(),
          +                  Operation.class.getName(),
          +                  Exception.class.getName())));
          +    }
          +  }
          +
             @Override
             public void updateInstance(
                 UpdateInstanceRequest request, StreamObserver responseObserver) {
          @@ -142,6 +226,72 @@ public void updateInstance(
               }
             }
           
          +  @Override
          +  public void deleteAclPolicy(
          +      DeleteAclPolicyRequest request, StreamObserver responseObserver) {
          +    Object response = responses.poll();
          +    if (response instanceof Operation) {
          +      requests.add(request);
          +      responseObserver.onNext(((Operation) response));
          +      responseObserver.onCompleted();
          +    } else if (response instanceof Exception) {
          +      responseObserver.onError(((Exception) response));
          +    } else {
          +      responseObserver.onError(
          +          new IllegalArgumentException(
          +              String.format(
          +                  "Unrecognized response type %s for method DeleteAclPolicy, expected %s or %s",
          +                  response == null ? "null" : response.getClass().getName(),
          +                  Operation.class.getName(),
          +                  Exception.class.getName())));
          +    }
          +  }
          +
          +  @Override
          +  public void getAclPolicyRevision(
          +      GetAclPolicyRevisionRequest request, StreamObserver responseObserver) {
          +    Object response = responses.poll();
          +    if (response instanceof AclPolicyRevision) {
          +      requests.add(request);
          +      responseObserver.onNext(((AclPolicyRevision) response));
          +      responseObserver.onCompleted();
          +    } else if (response instanceof Exception) {
          +      responseObserver.onError(((Exception) response));
          +    } else {
          +      responseObserver.onError(
          +          new IllegalArgumentException(
          +              String.format(
          +                  "Unrecognized response type %s for method GetAclPolicyRevision, expected %s or"
          +                      + " %s",
          +                  response == null ? "null" : response.getClass().getName(),
          +                  AclPolicyRevision.class.getName(),
          +                  Exception.class.getName())));
          +    }
          +  }
          +
          +  @Override
          +  public void listAclPolicyRevisions(
          +      ListAclPolicyRevisionsRequest request,
          +      StreamObserver responseObserver) {
          +    Object response = responses.poll();
          +    if (response instanceof ListAclPolicyRevisionsResponse) {
          +      requests.add(request);
          +      responseObserver.onNext(((ListAclPolicyRevisionsResponse) response));
          +      responseObserver.onCompleted();
          +    } else if (response instanceof Exception) {
          +      responseObserver.onError(((Exception) response));
          +    } else {
          +      responseObserver.onError(
          +          new IllegalArgumentException(
          +              String.format(
          +                  "Unrecognized response type %s for method ListAclPolicyRevisions, expected %s or"
          +                      + " %s",
          +                  response == null ? "null" : response.getClass().getName(),
          +                  ListAclPolicyRevisionsResponse.class.getName(),
          +                  Exception.class.getName())));
          +    }
          +  }
          +
             @Override
             public void deleteInstance(
                 DeleteInstanceRequest request, StreamObserver responseObserver) {
          diff --git a/java-valkey/grpc-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/MemorystoreGrpc.java b/java-valkey/grpc-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/MemorystoreGrpc.java
          index 6b2a8d93e36c..3c75fefde988 100644
          --- a/java-valkey/grpc-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/MemorystoreGrpc.java
          +++ b/java-valkey/grpc-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/MemorystoreGrpc.java
          @@ -32,6 +32,53 @@ private MemorystoreGrpc() {}
             public static final java.lang.String SERVICE_NAME = "google.cloud.memorystore.v1beta.Memorystore";
           
             // Static method descriptors that strictly reflect the proto.
          +  private static volatile io.grpc.MethodDescriptor<
          +          com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest,
          +          com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse>
          +      getListAclPoliciesMethod;
          +
          +  @io.grpc.stub.annotations.RpcMethod(
          +      fullMethodName = SERVICE_NAME + '/' + "ListAclPolicies",
          +      requestType = com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest.class,
          +      responseType = com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse.class,
          +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
          +  public static io.grpc.MethodDescriptor<
          +          com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest,
          +          com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse>
          +      getListAclPoliciesMethod() {
          +    io.grpc.MethodDescriptor<
          +            com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest,
          +            com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse>
          +        getListAclPoliciesMethod;
          +    if ((getListAclPoliciesMethod = MemorystoreGrpc.getListAclPoliciesMethod) == null) {
          +      synchronized (MemorystoreGrpc.class) {
          +        if ((getListAclPoliciesMethod = MemorystoreGrpc.getListAclPoliciesMethod) == null) {
          +          MemorystoreGrpc.getListAclPoliciesMethod =
          +              getListAclPoliciesMethod =
          +                  io.grpc.MethodDescriptor
          +                      .
          +                          newBuilder()
          +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAclPolicies"))
          +                      .setSampledToLocalTracing(true)
          +                      .setRequestMarshaller(
          +                          io.grpc.protobuf.ProtoUtils.marshaller(
          +                              com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest
          +                                  .getDefaultInstance()))
          +                      .setResponseMarshaller(
          +                          io.grpc.protobuf.ProtoUtils.marshaller(
          +                              com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse
          +                                  .getDefaultInstance()))
          +                      .setSchemaDescriptor(
          +                          new MemorystoreMethodDescriptorSupplier("ListAclPolicies"))
          +                      .build();
          +        }
          +      }
          +    }
          +    return getListAclPoliciesMethod;
          +  }
          +
             private static volatile io.grpc.MethodDescriptor<
                     com.google.cloud.memorystore.v1beta.ListInstancesRequest,
                     com.google.cloud.memorystore.v1beta.ListInstancesResponse>
          @@ -78,6 +125,51 @@ private MemorystoreGrpc() {}
               return getListInstancesMethod;
             }
           
          +  private static volatile io.grpc.MethodDescriptor<
          +          com.google.cloud.memorystore.v1beta.GetAclPolicyRequest,
          +          com.google.cloud.memorystore.v1beta.AclPolicy>
          +      getGetAclPolicyMethod;
          +
          +  @io.grpc.stub.annotations.RpcMethod(
          +      fullMethodName = SERVICE_NAME + '/' + "GetAclPolicy",
          +      requestType = com.google.cloud.memorystore.v1beta.GetAclPolicyRequest.class,
          +      responseType = com.google.cloud.memorystore.v1beta.AclPolicy.class,
          +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
          +  public static io.grpc.MethodDescriptor<
          +          com.google.cloud.memorystore.v1beta.GetAclPolicyRequest,
          +          com.google.cloud.memorystore.v1beta.AclPolicy>
          +      getGetAclPolicyMethod() {
          +    io.grpc.MethodDescriptor<
          +            com.google.cloud.memorystore.v1beta.GetAclPolicyRequest,
          +            com.google.cloud.memorystore.v1beta.AclPolicy>
          +        getGetAclPolicyMethod;
          +    if ((getGetAclPolicyMethod = MemorystoreGrpc.getGetAclPolicyMethod) == null) {
          +      synchronized (MemorystoreGrpc.class) {
          +        if ((getGetAclPolicyMethod = MemorystoreGrpc.getGetAclPolicyMethod) == null) {
          +          MemorystoreGrpc.getGetAclPolicyMethod =
          +              getGetAclPolicyMethod =
          +                  io.grpc.MethodDescriptor
          +                      .
          +                          newBuilder()
          +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAclPolicy"))
          +                      .setSampledToLocalTracing(true)
          +                      .setRequestMarshaller(
          +                          io.grpc.protobuf.ProtoUtils.marshaller(
          +                              com.google.cloud.memorystore.v1beta.GetAclPolicyRequest
          +                                  .getDefaultInstance()))
          +                      .setResponseMarshaller(
          +                          io.grpc.protobuf.ProtoUtils.marshaller(
          +                              com.google.cloud.memorystore.v1beta.AclPolicy.getDefaultInstance()))
          +                      .setSchemaDescriptor(new MemorystoreMethodDescriptorSupplier("GetAclPolicy"))
          +                      .build();
          +        }
          +      }
          +    }
          +    return getGetAclPolicyMethod;
          +  }
          +
             private static volatile io.grpc.MethodDescriptor<
                     com.google.cloud.memorystore.v1beta.GetInstanceRequest,
                     com.google.cloud.memorystore.v1beta.Instance>
          @@ -123,6 +215,52 @@ private MemorystoreGrpc() {}
               return getGetInstanceMethod;
             }
           
          +  private static volatile io.grpc.MethodDescriptor<
          +          com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest,
          +          com.google.cloud.memorystore.v1beta.AclPolicy>
          +      getCreateAclPolicyMethod;
          +
          +  @io.grpc.stub.annotations.RpcMethod(
          +      fullMethodName = SERVICE_NAME + '/' + "CreateAclPolicy",
          +      requestType = com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest.class,
          +      responseType = com.google.cloud.memorystore.v1beta.AclPolicy.class,
          +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
          +  public static io.grpc.MethodDescriptor<
          +          com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest,
          +          com.google.cloud.memorystore.v1beta.AclPolicy>
          +      getCreateAclPolicyMethod() {
          +    io.grpc.MethodDescriptor<
          +            com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest,
          +            com.google.cloud.memorystore.v1beta.AclPolicy>
          +        getCreateAclPolicyMethod;
          +    if ((getCreateAclPolicyMethod = MemorystoreGrpc.getCreateAclPolicyMethod) == null) {
          +      synchronized (MemorystoreGrpc.class) {
          +        if ((getCreateAclPolicyMethod = MemorystoreGrpc.getCreateAclPolicyMethod) == null) {
          +          MemorystoreGrpc.getCreateAclPolicyMethod =
          +              getCreateAclPolicyMethod =
          +                  io.grpc.MethodDescriptor
          +                      .
          +                          newBuilder()
          +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAclPolicy"))
          +                      .setSampledToLocalTracing(true)
          +                      .setRequestMarshaller(
          +                          io.grpc.protobuf.ProtoUtils.marshaller(
          +                              com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest
          +                                  .getDefaultInstance()))
          +                      .setResponseMarshaller(
          +                          io.grpc.protobuf.ProtoUtils.marshaller(
          +                              com.google.cloud.memorystore.v1beta.AclPolicy.getDefaultInstance()))
          +                      .setSchemaDescriptor(
          +                          new MemorystoreMethodDescriptorSupplier("CreateAclPolicy"))
          +                      .build();
          +        }
          +      }
          +    }
          +    return getCreateAclPolicyMethod;
          +  }
          +
             private static volatile io.grpc.MethodDescriptor<
                     com.google.cloud.memorystore.v1beta.CreateInstanceRequest,
                     com.google.longrunning.Operation>
          @@ -169,6 +307,52 @@ private MemorystoreGrpc() {}
               return getCreateInstanceMethod;
             }
           
          +  private static volatile io.grpc.MethodDescriptor<
          +          com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest,
          +          com.google.longrunning.Operation>
          +      getUpdateAclPolicyMethod;
          +
          +  @io.grpc.stub.annotations.RpcMethod(
          +      fullMethodName = SERVICE_NAME + '/' + "UpdateAclPolicy",
          +      requestType = com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest.class,
          +      responseType = com.google.longrunning.Operation.class,
          +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
          +  public static io.grpc.MethodDescriptor<
          +          com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest,
          +          com.google.longrunning.Operation>
          +      getUpdateAclPolicyMethod() {
          +    io.grpc.MethodDescriptor<
          +            com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest,
          +            com.google.longrunning.Operation>
          +        getUpdateAclPolicyMethod;
          +    if ((getUpdateAclPolicyMethod = MemorystoreGrpc.getUpdateAclPolicyMethod) == null) {
          +      synchronized (MemorystoreGrpc.class) {
          +        if ((getUpdateAclPolicyMethod = MemorystoreGrpc.getUpdateAclPolicyMethod) == null) {
          +          MemorystoreGrpc.getUpdateAclPolicyMethod =
          +              getUpdateAclPolicyMethod =
          +                  io.grpc.MethodDescriptor
          +                      .
          +                          newBuilder()
          +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAclPolicy"))
          +                      .setSampledToLocalTracing(true)
          +                      .setRequestMarshaller(
          +                          io.grpc.protobuf.ProtoUtils.marshaller(
          +                              com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest
          +                                  .getDefaultInstance()))
          +                      .setResponseMarshaller(
          +                          io.grpc.protobuf.ProtoUtils.marshaller(
          +                              com.google.longrunning.Operation.getDefaultInstance()))
          +                      .setSchemaDescriptor(
          +                          new MemorystoreMethodDescriptorSupplier("UpdateAclPolicy"))
          +                      .build();
          +        }
          +      }
          +    }
          +    return getUpdateAclPolicyMethod;
          +  }
          +
             private static volatile io.grpc.MethodDescriptor<
                     com.google.cloud.memorystore.v1beta.UpdateInstanceRequest,
                     com.google.longrunning.Operation>
          @@ -215,6 +399,151 @@ private MemorystoreGrpc() {}
               return getUpdateInstanceMethod;
             }
           
          +  private static volatile io.grpc.MethodDescriptor<
          +          com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest,
          +          com.google.longrunning.Operation>
          +      getDeleteAclPolicyMethod;
          +
          +  @io.grpc.stub.annotations.RpcMethod(
          +      fullMethodName = SERVICE_NAME + '/' + "DeleteAclPolicy",
          +      requestType = com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest.class,
          +      responseType = com.google.longrunning.Operation.class,
          +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
          +  public static io.grpc.MethodDescriptor<
          +          com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest,
          +          com.google.longrunning.Operation>
          +      getDeleteAclPolicyMethod() {
          +    io.grpc.MethodDescriptor<
          +            com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest,
          +            com.google.longrunning.Operation>
          +        getDeleteAclPolicyMethod;
          +    if ((getDeleteAclPolicyMethod = MemorystoreGrpc.getDeleteAclPolicyMethod) == null) {
          +      synchronized (MemorystoreGrpc.class) {
          +        if ((getDeleteAclPolicyMethod = MemorystoreGrpc.getDeleteAclPolicyMethod) == null) {
          +          MemorystoreGrpc.getDeleteAclPolicyMethod =
          +              getDeleteAclPolicyMethod =
          +                  io.grpc.MethodDescriptor
          +                      .
          +                          newBuilder()
          +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAclPolicy"))
          +                      .setSampledToLocalTracing(true)
          +                      .setRequestMarshaller(
          +                          io.grpc.protobuf.ProtoUtils.marshaller(
          +                              com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest
          +                                  .getDefaultInstance()))
          +                      .setResponseMarshaller(
          +                          io.grpc.protobuf.ProtoUtils.marshaller(
          +                              com.google.longrunning.Operation.getDefaultInstance()))
          +                      .setSchemaDescriptor(
          +                          new MemorystoreMethodDescriptorSupplier("DeleteAclPolicy"))
          +                      .build();
          +        }
          +      }
          +    }
          +    return getDeleteAclPolicyMethod;
          +  }
          +
          +  private static volatile io.grpc.MethodDescriptor<
          +          com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest,
          +          com.google.cloud.memorystore.v1beta.AclPolicyRevision>
          +      getGetAclPolicyRevisionMethod;
          +
          +  @io.grpc.stub.annotations.RpcMethod(
          +      fullMethodName = SERVICE_NAME + '/' + "GetAclPolicyRevision",
          +      requestType = com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest.class,
          +      responseType = com.google.cloud.memorystore.v1beta.AclPolicyRevision.class,
          +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
          +  public static io.grpc.MethodDescriptor<
          +          com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest,
          +          com.google.cloud.memorystore.v1beta.AclPolicyRevision>
          +      getGetAclPolicyRevisionMethod() {
          +    io.grpc.MethodDescriptor<
          +            com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest,
          +            com.google.cloud.memorystore.v1beta.AclPolicyRevision>
          +        getGetAclPolicyRevisionMethod;
          +    if ((getGetAclPolicyRevisionMethod = MemorystoreGrpc.getGetAclPolicyRevisionMethod) == null) {
          +      synchronized (MemorystoreGrpc.class) {
          +        if ((getGetAclPolicyRevisionMethod = MemorystoreGrpc.getGetAclPolicyRevisionMethod)
          +            == null) {
          +          MemorystoreGrpc.getGetAclPolicyRevisionMethod =
          +              getGetAclPolicyRevisionMethod =
          +                  io.grpc.MethodDescriptor
          +                      .
          +                          newBuilder()
          +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          +                      .setFullMethodName(
          +                          generateFullMethodName(SERVICE_NAME, "GetAclPolicyRevision"))
          +                      .setSampledToLocalTracing(true)
          +                      .setRequestMarshaller(
          +                          io.grpc.protobuf.ProtoUtils.marshaller(
          +                              com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest
          +                                  .getDefaultInstance()))
          +                      .setResponseMarshaller(
          +                          io.grpc.protobuf.ProtoUtils.marshaller(
          +                              com.google.cloud.memorystore.v1beta.AclPolicyRevision
          +                                  .getDefaultInstance()))
          +                      .setSchemaDescriptor(
          +                          new MemorystoreMethodDescriptorSupplier("GetAclPolicyRevision"))
          +                      .build();
          +        }
          +      }
          +    }
          +    return getGetAclPolicyRevisionMethod;
          +  }
          +
          +  private static volatile io.grpc.MethodDescriptor<
          +          com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest,
          +          com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse>
          +      getListAclPolicyRevisionsMethod;
          +
          +  @io.grpc.stub.annotations.RpcMethod(
          +      fullMethodName = SERVICE_NAME + '/' + "ListAclPolicyRevisions",
          +      requestType = com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest.class,
          +      responseType = com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse.class,
          +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
          +  public static io.grpc.MethodDescriptor<
          +          com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest,
          +          com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse>
          +      getListAclPolicyRevisionsMethod() {
          +    io.grpc.MethodDescriptor<
          +            com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest,
          +            com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse>
          +        getListAclPolicyRevisionsMethod;
          +    if ((getListAclPolicyRevisionsMethod = MemorystoreGrpc.getListAclPolicyRevisionsMethod)
          +        == null) {
          +      synchronized (MemorystoreGrpc.class) {
          +        if ((getListAclPolicyRevisionsMethod = MemorystoreGrpc.getListAclPolicyRevisionsMethod)
          +            == null) {
          +          MemorystoreGrpc.getListAclPolicyRevisionsMethod =
          +              getListAclPolicyRevisionsMethod =
          +                  io.grpc.MethodDescriptor
          +                      .
          +                          newBuilder()
          +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          +                      .setFullMethodName(
          +                          generateFullMethodName(SERVICE_NAME, "ListAclPolicyRevisions"))
          +                      .setSampledToLocalTracing(true)
          +                      .setRequestMarshaller(
          +                          io.grpc.protobuf.ProtoUtils.marshaller(
          +                              com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest
          +                                  .getDefaultInstance()))
          +                      .setResponseMarshaller(
          +                          io.grpc.protobuf.ProtoUtils.marshaller(
          +                              com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse
          +                                  .getDefaultInstance()))
          +                      .setSchemaDescriptor(
          +                          new MemorystoreMethodDescriptorSupplier("ListAclPolicyRevisions"))
          +                      .build();
          +        }
          +      }
          +    }
          +    return getListAclPolicyRevisionsMethod;
          +  }
          +
             private static volatile io.grpc.MethodDescriptor<
                     com.google.cloud.memorystore.v1beta.DeleteInstanceRequest,
                     com.google.longrunning.Operation>
          @@ -1258,6 +1587,26 @@ public MemorystoreFutureStub newStub(
              */
             public interface AsyncService {
           
          +    /**
          +     *
          +     *
          +     * 
          +     * Lists all ACL policies owned by a project in either the specified
          +     * location (region) or all locations.
          +     * The location should have the following format:
          +     * * `projects/{project_id}/locations/{location_id}`
          +     * If `location_id` is specified as `-` (wildcard), then all regions
          +     * available to the project are queried, and the results are aggregated.
          +     * 
          + */ + default void listAclPolicies( + com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAclPoliciesMethod(), responseObserver); + } + /** * * @@ -1273,6 +1622,21 @@ default void listInstances( getListInstancesMethod(), responseObserver); } + /** + * + * + *
          +     * Gets the details of a specific Memorystore ACL policy.
          +     * 
          + */ + default void getAclPolicy( + com.google.cloud.memorystore.v1beta.GetAclPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAclPolicyMethod(), responseObserver); + } + /** * * @@ -1288,6 +1652,23 @@ default void getInstance( getGetInstanceMethod(), responseObserver); } + /** + * + * + *
          +     * Creates an ACL policy.
          +     * The creation is executed synchronously and the policy is available for use
          +     * immediately after the RPC returns.
          +     * 
          + */ + default void createAclPolicy( + com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAclPolicyMethod(), responseObserver); + } + /** * * @@ -1302,6 +1683,27 @@ default void createInstance( getCreateInstanceMethod(), responseObserver); } + /** + * + * + *
          +     * Updates the ACL policy.
          +     * The operation will apply the updated ACL policy to all the linked
          +     * instances. The operation will return success if it successfully applied the
          +     * policy to all the instances. If the operation completed with a failure, the
          +     * service will continue to apply the policy via reconciliation for the failed
          +     * instances even after operation completion to ensure eventual consistency.
          +     * Completed longrunning.Operation will contain the new ACL policy object
          +     * in the response field.
          +     * 
          + */ + default void updateAclPolicy( + com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAclPolicyMethod(), responseObserver); + } + /** * * @@ -1316,6 +1718,53 @@ default void updateInstance( getUpdateInstanceMethod(), responseObserver); } + /** + * + * + *
          +     * Deletes a specific ACL policy. This action will delete the ACL policy and
          +     * all the rules associated with it. An ACL policy cannot be deleted if it is
          +     * attached to an instance.
          +     * 
          + */ + default void deleteAclPolicy( + com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAclPolicyMethod(), responseObserver); + } + + /** + * + * + *
          +     * Gets details of a specific ACL policy revision.
          +     * 
          + */ + default void getAclPolicyRevision( + com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAclPolicyRevisionMethod(), responseObserver); + } + + /** + * + * + *
          +     * Lists all ACL policy revisions in a given ACL policy.
          +     * 
          + */ + default void listAclPolicyRevisions( + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAclPolicyRevisionsMethod(), responseObserver); + } + /** * * @@ -1680,6 +2129,28 @@ protected MemorystoreStub build(io.grpc.Channel channel, io.grpc.CallOptions cal return new MemorystoreStub(channel, callOptions); } + /** + * + * + *
          +     * Lists all ACL policies owned by a project in either the specified
          +     * location (region) or all locations.
          +     * The location should have the following format:
          +     * * `projects/{project_id}/locations/{location_id}`
          +     * If `location_id` is specified as `-` (wildcard), then all regions
          +     * available to the project are queried, and the results are aggregated.
          +     * 
          + */ + public void listAclPolicies( + com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAclPoliciesMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1697,6 +2168,23 @@ public void listInstances( responseObserver); } + /** + * + * + *
          +     * Gets the details of a specific Memorystore ACL policy.
          +     * 
          + */ + public void getAclPolicy( + com.google.cloud.memorystore.v1beta.GetAclPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAclPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1714,6 +2202,25 @@ public void getInstance( responseObserver); } + /** + * + * + *
          +     * Creates an ACL policy.
          +     * The creation is executed synchronously and the policy is available for use
          +     * immediately after the RPC returns.
          +     * 
          + */ + public void createAclPolicy( + com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAclPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1725,7 +2232,81 @@ public void createInstance( com.google.cloud.memorystore.v1beta.CreateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Updates the ACL policy.
          +     * The operation will apply the updated ACL policy to all the linked
          +     * instances. The operation will return success if it successfully applied the
          +     * policy to all the instances. If the operation completed with a failure, the
          +     * service will continue to apply the policy via reconciliation for the failed
          +     * instances even after operation completion to ensure eventual consistency.
          +     * Completed longrunning.Operation will contain the new ACL policy object
          +     * in the response field.
          +     * 
          + */ + public void updateAclPolicy( + com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAclPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Updates the parameters of a single Instance.
          +     * 
          + */ + public void updateInstance( + com.google.cloud.memorystore.v1beta.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Deletes a specific ACL policy. This action will delete the ACL policy and
          +     * all the rules associated with it. An ACL policy cannot be deleted if it is
          +     * attached to an instance.
          +     * 
          + */ + public void deleteAclPolicy( + com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAclPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Gets details of a specific ACL policy revision.
          +     * 
          + */ + public void getAclPolicyRevision( + com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAclPolicyRevisionMethod(), getCallOptions()), request, responseObserver); } @@ -1734,14 +2315,16 @@ public void createInstance( * * *
          -     * Updates the parameters of a single Instance.
          +     * Lists all ACL policy revisions in a given ACL policy.
                * 
          */ - public void updateInstance( - com.google.cloud.memorystore.v1beta.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listAclPolicyRevisions( + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse> + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), + getChannel().newCall(getListAclPolicyRevisionsMethod(), getCallOptions()), request, responseObserver); } @@ -2136,6 +2719,25 @@ protected MemorystoreBlockingV2Stub build( return new MemorystoreBlockingV2Stub(channel, callOptions); } + /** + * + * + *
          +     * Lists all ACL policies owned by a project in either the specified
          +     * location (region) or all locations.
          +     * The location should have the following format:
          +     * * `projects/{project_id}/locations/{location_id}`
          +     * If `location_id` is specified as `-` (wildcard), then all regions
          +     * available to the project are queried, and the results are aggregated.
          +     * 
          + */ + public com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse listAclPolicies( + com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAclPoliciesMethod(), getCallOptions(), request); + } + /** * * @@ -2150,6 +2752,20 @@ public com.google.cloud.memorystore.v1beta.ListInstancesResponse listInstances( getChannel(), getListInstancesMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Gets the details of a specific Memorystore ACL policy.
          +     * 
          + */ + public com.google.cloud.memorystore.v1beta.AclPolicy getAclPolicy( + com.google.cloud.memorystore.v1beta.GetAclPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAclPolicyMethod(), getCallOptions(), request); + } + /** * * @@ -2164,6 +2780,22 @@ public com.google.cloud.memorystore.v1beta.Instance getInstance( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Creates an ACL policy.
          +     * The creation is executed synchronously and the policy is available for use
          +     * immediately after the RPC returns.
          +     * 
          + */ + public com.google.cloud.memorystore.v1beta.AclPolicy createAclPolicy( + com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateAclPolicyMethod(), getCallOptions(), request); + } + /** * * @@ -2178,6 +2810,27 @@ public com.google.longrunning.Operation createInstance( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Updates the ACL policy.
          +     * The operation will apply the updated ACL policy to all the linked
          +     * instances. The operation will return success if it successfully applied the
          +     * policy to all the instances. If the operation completed with a failure, the
          +     * service will continue to apply the policy via reconciliation for the failed
          +     * instances even after operation completion to ensure eventual consistency.
          +     * Completed longrunning.Operation will contain the new ACL policy object
          +     * in the response field.
          +     * 
          + */ + public com.google.longrunning.Operation updateAclPolicy( + com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateAclPolicyMethod(), getCallOptions(), request); + } + /** * * @@ -2192,6 +2845,51 @@ public com.google.longrunning.Operation updateInstance( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Deletes a specific ACL policy. This action will delete the ACL policy and
          +     * all the rules associated with it. An ACL policy cannot be deleted if it is
          +     * attached to an instance.
          +     * 
          + */ + public com.google.longrunning.Operation deleteAclPolicy( + com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteAclPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Gets details of a specific ACL policy revision.
          +     * 
          + */ + public com.google.cloud.memorystore.v1beta.AclPolicyRevision getAclPolicyRevision( + com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAclPolicyRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Lists all ACL policy revisions in a given ACL policy.
          +     * 
          + */ + public com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse + listAclPolicyRevisions( + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAclPolicyRevisionsMethod(), getCallOptions(), request); + } + /** * * @@ -2536,6 +3234,24 @@ protected MemorystoreBlockingStub build( return new MemorystoreBlockingStub(channel, callOptions); } + /** + * + * + *
          +     * Lists all ACL policies owned by a project in either the specified
          +     * location (region) or all locations.
          +     * The location should have the following format:
          +     * * `projects/{project_id}/locations/{location_id}`
          +     * If `location_id` is specified as `-` (wildcard), then all regions
          +     * available to the project are queried, and the results are aggregated.
          +     * 
          + */ + public com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse listAclPolicies( + com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAclPoliciesMethod(), getCallOptions(), request); + } + /** * * @@ -2549,6 +3265,19 @@ public com.google.cloud.memorystore.v1beta.ListInstancesResponse listInstances( getChannel(), getListInstancesMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Gets the details of a specific Memorystore ACL policy.
          +     * 
          + */ + public com.google.cloud.memorystore.v1beta.AclPolicy getAclPolicy( + com.google.cloud.memorystore.v1beta.GetAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAclPolicyMethod(), getCallOptions(), request); + } + /** * * @@ -2562,6 +3291,21 @@ public com.google.cloud.memorystore.v1beta.Instance getInstance( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Creates an ACL policy.
          +     * The creation is executed synchronously and the policy is available for use
          +     * immediately after the RPC returns.
          +     * 
          + */ + public com.google.cloud.memorystore.v1beta.AclPolicy createAclPolicy( + com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAclPolicyMethod(), getCallOptions(), request); + } + /** * * @@ -2575,6 +3319,26 @@ public com.google.longrunning.Operation createInstance( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Updates the ACL policy.
          +     * The operation will apply the updated ACL policy to all the linked
          +     * instances. The operation will return success if it successfully applied the
          +     * policy to all the instances. If the operation completed with a failure, the
          +     * service will continue to apply the policy via reconciliation for the failed
          +     * instances even after operation completion to ensure eventual consistency.
          +     * Completed longrunning.Operation will contain the new ACL policy object
          +     * in the response field.
          +     * 
          + */ + public com.google.longrunning.Operation updateAclPolicy( + com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAclPolicyMethod(), getCallOptions(), request); + } + /** * * @@ -2588,6 +3352,48 @@ public com.google.longrunning.Operation updateInstance( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Deletes a specific ACL policy. This action will delete the ACL policy and
          +     * all the rules associated with it. An ACL policy cannot be deleted if it is
          +     * attached to an instance.
          +     * 
          + */ + public com.google.longrunning.Operation deleteAclPolicy( + com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAclPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Gets details of a specific ACL policy revision.
          +     * 
          + */ + public com.google.cloud.memorystore.v1beta.AclPolicyRevision getAclPolicyRevision( + com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAclPolicyRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Lists all ACL policy revisions in a given ACL policy.
          +     * 
          + */ + public com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse + listAclPolicyRevisions( + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAclPolicyRevisionsMethod(), getCallOptions(), request); + } + /** * * @@ -2911,6 +3717,25 @@ protected MemorystoreFutureStub build( return new MemorystoreFutureStub(channel, callOptions); } + /** + * + * + *
          +     * Lists all ACL policies owned by a project in either the specified
          +     * location (region) or all locations.
          +     * The location should have the following format:
          +     * * `projects/{project_id}/locations/{location_id}`
          +     * If `location_id` is specified as `-` (wildcard), then all regions
          +     * available to the project are queried, and the results are aggregated.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse> + listAclPolicies(com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAclPoliciesMethod(), getCallOptions()), request); + } + /** * * @@ -2925,6 +3750,20 @@ protected MemorystoreFutureStub build( getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); } + /** + * + * + *
          +     * Gets the details of a specific Memorystore ACL policy.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.memorystore.v1beta.AclPolicy> + getAclPolicy(com.google.cloud.memorystore.v1beta.GetAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAclPolicyMethod(), getCallOptions()), request); + } + /** * * @@ -2939,6 +3778,22 @@ protected MemorystoreFutureStub build( getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); } + /** + * + * + *
          +     * Creates an ACL policy.
          +     * The creation is executed synchronously and the policy is available for use
          +     * immediately after the RPC returns.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.memorystore.v1beta.AclPolicy> + createAclPolicy(com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAclPolicyMethod(), getCallOptions()), request); + } + /** * * @@ -2952,6 +3807,26 @@ protected MemorystoreFutureStub build( getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); } + /** + * + * + *
          +     * Updates the ACL policy.
          +     * The operation will apply the updated ACL policy to all the linked
          +     * instances. The operation will return success if it successfully applied the
          +     * policy to all the instances. If the operation completed with a failure, the
          +     * service will continue to apply the policy via reconciliation for the failed
          +     * instances even after operation completion to ensure eventual consistency.
          +     * Completed longrunning.Operation will contain the new ACL policy object
          +     * in the response field.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + updateAclPolicy(com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAclPolicyMethod(), getCallOptions()), request); + } + /** * * @@ -2965,6 +3840,51 @@ protected MemorystoreFutureStub build( getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); } + /** + * + * + *
          +     * Deletes a specific ACL policy. This action will delete the ACL policy and
          +     * all the rules associated with it. An ACL policy cannot be deleted if it is
          +     * attached to an instance.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + deleteAclPolicy(com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAclPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Gets details of a specific ACL policy revision.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.memorystore.v1beta.AclPolicyRevision> + getAclPolicyRevision( + com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAclPolicyRevisionMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Lists all ACL policy revisions in a given ACL policy.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse> + listAclPolicyRevisions( + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAclPolicyRevisionsMethod(), getCallOptions()), request); + } + /** * * @@ -3282,31 +4202,38 @@ protected MemorystoreFutureStub build( } } - private static final int METHODID_LIST_INSTANCES = 0; - private static final int METHODID_GET_INSTANCE = 1; - private static final int METHODID_CREATE_INSTANCE = 2; - private static final int METHODID_UPDATE_INSTANCE = 3; - private static final int METHODID_DELETE_INSTANCE = 4; - private static final int METHODID_GET_CERTIFICATE_AUTHORITY = 5; - private static final int METHODID_GET_SHARED_REGIONAL_CERTIFICATE_AUTHORITY = 6; - private static final int METHODID_RESCHEDULE_MAINTENANCE = 7; - private static final int METHODID_LIST_BACKUP_COLLECTIONS = 8; - private static final int METHODID_GET_BACKUP_COLLECTION = 9; - private static final int METHODID_LIST_BACKUPS = 10; - private static final int METHODID_GET_BACKUP = 11; - private static final int METHODID_DELETE_BACKUP = 12; - private static final int METHODID_EXPORT_BACKUP = 13; - private static final int METHODID_BACKUP_INSTANCE = 14; - private static final int METHODID_START_MIGRATION = 15; - private static final int METHODID_FINISH_MIGRATION = 16; - private static final int METHODID_LIST_TOKEN_AUTH_USERS = 17; - private static final int METHODID_GET_TOKEN_AUTH_USER = 18; - private static final int METHODID_LIST_AUTH_TOKENS = 19; - private static final int METHODID_GET_AUTH_TOKEN = 20; - private static final int METHODID_ADD_TOKEN_AUTH_USER = 21; - private static final int METHODID_DELETE_TOKEN_AUTH_USER = 22; - private static final int METHODID_ADD_AUTH_TOKEN = 23; - private static final int METHODID_DELETE_AUTH_TOKEN = 24; + private static final int METHODID_LIST_ACL_POLICIES = 0; + private static final int METHODID_LIST_INSTANCES = 1; + private static final int METHODID_GET_ACL_POLICY = 2; + private static final int METHODID_GET_INSTANCE = 3; + private static final int METHODID_CREATE_ACL_POLICY = 4; + private static final int METHODID_CREATE_INSTANCE = 5; + private static final int METHODID_UPDATE_ACL_POLICY = 6; + private static final int METHODID_UPDATE_INSTANCE = 7; + private static final int METHODID_DELETE_ACL_POLICY = 8; + private static final int METHODID_GET_ACL_POLICY_REVISION = 9; + private static final int METHODID_LIST_ACL_POLICY_REVISIONS = 10; + private static final int METHODID_DELETE_INSTANCE = 11; + private static final int METHODID_GET_CERTIFICATE_AUTHORITY = 12; + private static final int METHODID_GET_SHARED_REGIONAL_CERTIFICATE_AUTHORITY = 13; + private static final int METHODID_RESCHEDULE_MAINTENANCE = 14; + private static final int METHODID_LIST_BACKUP_COLLECTIONS = 15; + private static final int METHODID_GET_BACKUP_COLLECTION = 16; + private static final int METHODID_LIST_BACKUPS = 17; + private static final int METHODID_GET_BACKUP = 18; + private static final int METHODID_DELETE_BACKUP = 19; + private static final int METHODID_EXPORT_BACKUP = 20; + private static final int METHODID_BACKUP_INSTANCE = 21; + private static final int METHODID_START_MIGRATION = 22; + private static final int METHODID_FINISH_MIGRATION = 23; + private static final int METHODID_LIST_TOKEN_AUTH_USERS = 24; + private static final int METHODID_GET_TOKEN_AUTH_USER = 25; + private static final int METHODID_LIST_AUTH_TOKENS = 26; + private static final int METHODID_GET_AUTH_TOKEN = 27; + private static final int METHODID_ADD_TOKEN_AUTH_USER = 28; + private static final int METHODID_DELETE_TOKEN_AUTH_USER = 29; + private static final int METHODID_ADD_AUTH_TOKEN = 30; + private static final int METHODID_DELETE_AUTH_TOKEN = 31; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -3325,6 +4252,13 @@ private static final class MethodHandlers @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { + case METHODID_LIST_ACL_POLICIES: + serviceImpl.listAclPolicies( + (com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse>) + responseObserver); + break; case METHODID_LIST_INSTANCES: serviceImpl.listInstances( (com.google.cloud.memorystore.v1beta.ListInstancesRequest) request, @@ -3332,22 +4266,57 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.memorystore.v1beta.ListInstancesResponse>) responseObserver); break; + case METHODID_GET_ACL_POLICY: + serviceImpl.getAclPolicy( + (com.google.cloud.memorystore.v1beta.GetAclPolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_GET_INSTANCE: serviceImpl.getInstance( (com.google.cloud.memorystore.v1beta.GetInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_ACL_POLICY: + serviceImpl.createAclPolicy( + (com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_CREATE_INSTANCE: serviceImpl.createInstance( (com.google.cloud.memorystore.v1beta.CreateInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_ACL_POLICY: + serviceImpl.updateAclPolicy( + (com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_UPDATE_INSTANCE: serviceImpl.updateInstance( (com.google.cloud.memorystore.v1beta.UpdateInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_DELETE_ACL_POLICY: + serviceImpl.deleteAclPolicy( + (com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ACL_POLICY_REVISION: + serviceImpl.getAclPolicyRevision( + (com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_ACL_POLICY_REVISIONS: + serviceImpl.listAclPolicyRevisions( + (com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse>) + responseObserver); + break; case METHODID_DELETE_INSTANCE: serviceImpl.deleteInstance( (com.google.cloud.memorystore.v1beta.DeleteInstanceRequest) request, @@ -3487,6 +4456,13 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListAclPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest, + com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse>( + service, METHODID_LIST_ACL_POLICIES))) .addMethod( getListInstancesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3494,24 +4470,64 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.memorystore.v1beta.ListInstancesRequest, com.google.cloud.memorystore.v1beta.ListInstancesResponse>( service, METHODID_LIST_INSTANCES))) + .addMethod( + getGetAclPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memorystore.v1beta.GetAclPolicyRequest, + com.google.cloud.memorystore.v1beta.AclPolicy>( + service, METHODID_GET_ACL_POLICY))) .addMethod( getGetInstanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.memorystore.v1beta.GetInstanceRequest, com.google.cloud.memorystore.v1beta.Instance>(service, METHODID_GET_INSTANCE))) + .addMethod( + getCreateAclPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest, + com.google.cloud.memorystore.v1beta.AclPolicy>( + service, METHODID_CREATE_ACL_POLICY))) .addMethod( getCreateInstanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.memorystore.v1beta.CreateInstanceRequest, com.google.longrunning.Operation>(service, METHODID_CREATE_INSTANCE))) + .addMethod( + getUpdateAclPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_ACL_POLICY))) .addMethod( getUpdateInstanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.memorystore.v1beta.UpdateInstanceRequest, com.google.longrunning.Operation>(service, METHODID_UPDATE_INSTANCE))) + .addMethod( + getDeleteAclPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_ACL_POLICY))) + .addMethod( + getGetAclPolicyRevisionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest, + com.google.cloud.memorystore.v1beta.AclPolicyRevision>( + service, METHODID_GET_ACL_POLICY_REVISION))) + .addMethod( + getListAclPolicyRevisionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest, + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse>( + service, METHODID_LIST_ACL_POLICY_REVISIONS))) .addMethod( getDeleteInstanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3699,10 +4715,17 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new MemorystoreFileDescriptorSupplier()) + .addMethod(getListAclPoliciesMethod()) .addMethod(getListInstancesMethod()) + .addMethod(getGetAclPolicyMethod()) .addMethod(getGetInstanceMethod()) + .addMethod(getCreateAclPolicyMethod()) .addMethod(getCreateInstanceMethod()) + .addMethod(getUpdateAclPolicyMethod()) .addMethod(getUpdateInstanceMethod()) + .addMethod(getDeleteAclPolicyMethod()) + .addMethod(getGetAclPolicyRevisionMethod()) + .addMethod(getListAclPolicyRevisionsMethod()) .addMethod(getDeleteInstanceMethod()) .addMethod(getGetCertificateAuthorityMethod()) .addMethod(getGetSharedRegionalCertificateAuthorityMethod()) diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicy.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicy.java new file mode 100644 index 000000000000..433f77e156e3 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicy.java @@ -0,0 +1,2949 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +/** + * + * + *
          + * The ACL policy resource.
          + * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.AclPolicy} + */ +@com.google.protobuf.Generated +public final class AclPolicy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1beta.AclPolicy) + AclPolicyOrBuilder { + 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= */ "", + "AclPolicy"); + } + + // Use AclPolicy.newBuilder() to construct. + private AclPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AclPolicy() { + name_ = ""; + rules_ = java.util.Collections.emptyList(); + state_ = 0; + etag_ = ""; + instanceAclPolicyAttachments_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.AclPolicy.class, + com.google.cloud.memorystore.v1beta.AclPolicy.Builder.class); + } + + /** + * + * + *
          +   * Represents the different states of an ACL policy.
          +   * 
          + * + * Protobuf enum {@code google.cloud.memorystore.v1beta.AclPolicy.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Not set.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
          +     * ACL policy has been created and is fully usable.
          +     * 
          + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
          +     * ACL policy is being updated.
          +     * 
          + * + * UPDATING = 2; + */ + UPDATING(2), + /** + * + * + *
          +     * ACL policy is being deleted.
          +     * 
          + * + * DELETING = 3; + */ + DELETING(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
          +     * Not set.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
          +     * ACL policy has been created and is fully usable.
          +     * 
          + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
          +     * ACL policy is being updated.
          +     * 
          + * + * UPDATING = 2; + */ + public static final int UPDATING_VALUE = 2; + + /** + * + * + *
          +     * ACL policy is being deleted.
          +     * 
          + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return UPDATING; + case 3: + return DELETING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.AclPolicy.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.memorystore.v1beta.AclPolicy.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Identifier. Full resource path of the ACL policy.
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Identifier. Full resource path of the ACL policy.
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RULES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List rules_; + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getRulesList() { + return rules_; + } + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRulesOrBuilderList() { + return rules_; + } + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRulesCount() { + return rules_.size(); + } + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclRule getRules(int index) { + return rules_.get(index); + } + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclRuleOrBuilder getRulesOrBuilder(int index) { + return rules_.get(index); + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + + /** + * + * + *
          +   * Output only. The state of the ACL policy.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
          +   * Output only. The state of the ACL policy.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicy.State getState() { + com.google.cloud.memorystore.v1beta.AclPolicy.State result = + com.google.cloud.memorystore.v1beta.AclPolicy.State.forNumber(state_); + return result == null + ? com.google.cloud.memorystore.v1beta.AclPolicy.State.UNRECOGNIZED + : result; + } + + public static final int ETAG_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
          +   * Output only. Etag of the ACL policy.
          +   * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the etag field is set. + */ + @java.lang.Override + public boolean hasEtag() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Output only. Etag of the ACL policy.
          +   * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. Etag of the ACL policy.
          +   * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_ACL_POLICY_ATTACHMENTS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List + instanceAclPolicyAttachments_; + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getInstanceAclPolicyAttachmentsList() { + return instanceAclPolicyAttachments_; + } + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachmentOrBuilder> + getInstanceAclPolicyAttachmentsOrBuilderList() { + return instanceAclPolicyAttachments_; + } + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getInstanceAclPolicyAttachmentsCount() { + return instanceAclPolicyAttachments_.size(); + } + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment + getInstanceAclPolicyAttachments(int index) { + return instanceAclPolicyAttachments_.get(index); + } + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachmentOrBuilder + getInstanceAclPolicyAttachmentsOrBuilder(int index) { + return instanceAclPolicyAttachments_.get(index); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + for (int i = 0; i < rules_.size(); i++) { + output.writeMessage(2, rules_.get(i)); + } + if (state_ + != com.google.cloud.memorystore.v1beta.AclPolicy.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, etag_); + } + for (int i = 0; i < instanceAclPolicyAttachments_.size(); i++) { + output.writeMessage(6, instanceAclPolicyAttachments_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + for (int i = 0; i < rules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, rules_.get(i)); + } + if (state_ + != com.google.cloud.memorystore.v1beta.AclPolicy.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, etag_); + } + for (int i = 0; i < instanceAclPolicyAttachments_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, instanceAclPolicyAttachments_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + } + 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.memorystore.v1beta.AclPolicy)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1beta.AclPolicy other = + (com.google.cloud.memorystore.v1beta.AclPolicy) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRulesList().equals(other.getRulesList())) return false; + if (state_ != other.state_) return false; + if (hasEtag() != other.hasEtag()) return false; + if (hasEtag()) { + if (!getEtag().equals(other.getEtag())) return false; + } + if (!getInstanceAclPolicyAttachmentsList().equals(other.getInstanceAclPolicyAttachmentsList())) + return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getRulesCount() > 0) { + hash = (37 * hash) + RULES_FIELD_NUMBER; + hash = (53 * hash) + getRulesList().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasEtag()) { + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + } + if (getInstanceAclPolicyAttachmentsCount() > 0) { + hash = (37 * hash) + INSTANCE_ACL_POLICY_ATTACHMENTS_FIELD_NUMBER; + hash = (53 * hash) + getInstanceAclPolicyAttachmentsList().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.memorystore.v1beta.AclPolicy parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicy 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.memorystore.v1beta.AclPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicy 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.memorystore.v1beta.AclPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicy 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.memorystore.v1beta.AclPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicy 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.memorystore.v1beta.AclPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicy 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.memorystore.v1beta.AclPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * The ACL policy resource.
          +   * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.AclPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1beta.AclPolicy) + com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.AclPolicy.class, + com.google.cloud.memorystore.v1beta.AclPolicy.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1beta.AclPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRulesFieldBuilder(); + internalGetInstanceAclPolicyAttachmentsFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + } else { + rules_ = null; + rulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + etag_ = ""; + if (instanceAclPolicyAttachmentsBuilder_ == null) { + instanceAclPolicyAttachments_ = java.util.Collections.emptyList(); + } else { + instanceAclPolicyAttachments_ = null; + instanceAclPolicyAttachmentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicy getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1beta.AclPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicy build() { + com.google.cloud.memorystore.v1beta.AclPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicy buildPartial() { + com.google.cloud.memorystore.v1beta.AclPolicy result = + new com.google.cloud.memorystore.v1beta.AclPolicy(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.memorystore.v1beta.AclPolicy result) { + if (rulesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.rules_ = rules_; + } else { + result.rules_ = rulesBuilder_.build(); + } + if (instanceAclPolicyAttachmentsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + instanceAclPolicyAttachments_ = + java.util.Collections.unmodifiableList(instanceAclPolicyAttachments_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.instanceAclPolicyAttachments_ = instanceAclPolicyAttachments_; + } else { + result.instanceAclPolicyAttachments_ = instanceAclPolicyAttachmentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.memorystore.v1beta.AclPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.etag_ = etag_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1beta.AclPolicy) { + return mergeFrom((com.google.cloud.memorystore.v1beta.AclPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1beta.AclPolicy other) { + if (other == com.google.cloud.memorystore.v1beta.AclPolicy.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (rulesBuilder_ == null) { + if (!other.rules_.isEmpty()) { + if (rules_.isEmpty()) { + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRulesIsMutable(); + rules_.addAll(other.rules_); + } + onChanged(); + } + } else { + if (!other.rules_.isEmpty()) { + if (rulesBuilder_.isEmpty()) { + rulesBuilder_.dispose(); + rulesBuilder_ = null; + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000002); + rulesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRulesFieldBuilder() + : null; + } else { + rulesBuilder_.addAllMessages(other.rules_); + } + } + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasEtag()) { + etag_ = other.etag_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (instanceAclPolicyAttachmentsBuilder_ == null) { + if (!other.instanceAclPolicyAttachments_.isEmpty()) { + if (instanceAclPolicyAttachments_.isEmpty()) { + instanceAclPolicyAttachments_ = other.instanceAclPolicyAttachments_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureInstanceAclPolicyAttachmentsIsMutable(); + instanceAclPolicyAttachments_.addAll(other.instanceAclPolicyAttachments_); + } + onChanged(); + } + } else { + if (!other.instanceAclPolicyAttachments_.isEmpty()) { + if (instanceAclPolicyAttachmentsBuilder_.isEmpty()) { + instanceAclPolicyAttachmentsBuilder_.dispose(); + instanceAclPolicyAttachmentsBuilder_ = null; + instanceAclPolicyAttachments_ = other.instanceAclPolicyAttachments_; + bitField0_ = (bitField0_ & ~0x00000010); + instanceAclPolicyAttachmentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInstanceAclPolicyAttachmentsFieldBuilder() + : null; + } else { + instanceAclPolicyAttachmentsBuilder_.addAllMessages( + other.instanceAclPolicyAttachments_); + } + } + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.memorystore.v1beta.AclRule m = + input.readMessage( + com.google.cloud.memorystore.v1beta.AclRule.parser(), extensionRegistry); + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(m); + } else { + rulesBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 42: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment m = + input.readMessage( + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment.parser(), + extensionRegistry); + if (instanceAclPolicyAttachmentsBuilder_ == null) { + ensureInstanceAclPolicyAttachmentsIsMutable(); + instanceAclPolicyAttachments_.add(m); + } else { + instanceAclPolicyAttachmentsBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Identifier. Full resource path of the ACL policy.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Identifier. Full resource path of the ACL policy.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Identifier. Full resource path of the ACL policy.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Identifier. Full resource path of the ACL policy.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Identifier. Full resource path of the ACL policy.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List rules_ = + java.util.Collections.emptyList(); + + private void ensureRulesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + rules_ = new java.util.ArrayList(rules_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1beta.AclRule, + com.google.cloud.memorystore.v1beta.AclRule.Builder, + com.google.cloud.memorystore.v1beta.AclRuleOrBuilder> + rulesBuilder_; + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRulesList() { + if (rulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rules_); + } else { + return rulesBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRulesCount() { + if (rulesBuilder_ == null) { + return rules_.size(); + } else { + return rulesBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.memorystore.v1beta.AclRule getRules(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRules(int index, com.google.cloud.memorystore.v1beta.AclRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.set(index, value); + onChanged(); + } else { + rulesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRules( + int index, com.google.cloud.memorystore.v1beta.AclRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.set(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules(com.google.cloud.memorystore.v1beta.AclRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(value); + onChanged(); + } else { + rulesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules(int index, com.google.cloud.memorystore.v1beta.AclRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(index, value); + onChanged(); + } else { + rulesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules(com.google.cloud.memorystore.v1beta.AclRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules( + int index, com.google.cloud.memorystore.v1beta.AclRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRules( + java.lang.Iterable values) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_); + onChanged(); + } else { + rulesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRules() { + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + rulesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRules(int index) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.remove(index); + onChanged(); + } else { + rulesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.memorystore.v1beta.AclRule.Builder getRulesBuilder(int index) { + return internalGetRulesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.memorystore.v1beta.AclRuleOrBuilder getRulesOrBuilder(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRulesOrBuilderList() { + if (rulesBuilder_ != null) { + return rulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rules_); + } + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.memorystore.v1beta.AclRule.Builder addRulesBuilder() { + return internalGetRulesFieldBuilder() + .addBuilder(com.google.cloud.memorystore.v1beta.AclRule.getDefaultInstance()); + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.memorystore.v1beta.AclRule.Builder addRulesBuilder(int index) { + return internalGetRulesFieldBuilder() + .addBuilder(index, com.google.cloud.memorystore.v1beta.AclRule.getDefaultInstance()); + } + + /** + * + * + *
          +     * Required. The ACL rules within the ACL policy.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRulesBuilderList() { + return internalGetRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1beta.AclRule, + com.google.cloud.memorystore.v1beta.AclRule.Builder, + com.google.cloud.memorystore.v1beta.AclRuleOrBuilder> + internalGetRulesFieldBuilder() { + if (rulesBuilder_ == null) { + rulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1beta.AclRule, + com.google.cloud.memorystore.v1beta.AclRule.Builder, + com.google.cloud.memorystore.v1beta.AclRuleOrBuilder>( + rules_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + rules_ = null; + } + return rulesBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
          +     * Output only. The state of the ACL policy.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
          +     * Output only. The state of the ACL policy.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The state of the ACL policy.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicy.State getState() { + com.google.cloud.memorystore.v1beta.AclPolicy.State result = + com.google.cloud.memorystore.v1beta.AclPolicy.State.forNumber(state_); + return result == null + ? com.google.cloud.memorystore.v1beta.AclPolicy.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
          +     * Output only. The state of the ACL policy.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.memorystore.v1beta.AclPolicy.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The state of the ACL policy.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
          +     * Output only. Etag of the ACL policy.
          +     * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the etag field is set. + */ + public boolean hasEtag() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
          +     * Output only. Etag of the ACL policy.
          +     * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. Etag of the ACL policy.
          +     * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. Etag of the ACL policy.
          +     * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Etag of the ACL policy.
          +     * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Etag of the ACL policy.
          +     * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.util.List + instanceAclPolicyAttachments_ = java.util.Collections.emptyList(); + + private void ensureInstanceAclPolicyAttachmentsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + instanceAclPolicyAttachments_ = + new java.util.ArrayList< + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment>( + instanceAclPolicyAttachments_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment, + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment.Builder, + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachmentOrBuilder> + instanceAclPolicyAttachmentsBuilder_; + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getInstanceAclPolicyAttachmentsList() { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(instanceAclPolicyAttachments_); + } else { + return instanceAclPolicyAttachmentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getInstanceAclPolicyAttachmentsCount() { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + return instanceAclPolicyAttachments_.size(); + } else { + return instanceAclPolicyAttachmentsBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment + getInstanceAclPolicyAttachments(int index) { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + return instanceAclPolicyAttachments_.get(index); + } else { + return instanceAclPolicyAttachmentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInstanceAclPolicyAttachments( + int index, com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment value) { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceAclPolicyAttachmentsIsMutable(); + instanceAclPolicyAttachments_.set(index, value); + onChanged(); + } else { + instanceAclPolicyAttachmentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInstanceAclPolicyAttachments( + int index, + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment.Builder builderForValue) { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + ensureInstanceAclPolicyAttachmentsIsMutable(); + instanceAclPolicyAttachments_.set(index, builderForValue.build()); + onChanged(); + } else { + instanceAclPolicyAttachmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInstanceAclPolicyAttachments( + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment value) { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceAclPolicyAttachmentsIsMutable(); + instanceAclPolicyAttachments_.add(value); + onChanged(); + } else { + instanceAclPolicyAttachmentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInstanceAclPolicyAttachments( + int index, com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment value) { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceAclPolicyAttachmentsIsMutable(); + instanceAclPolicyAttachments_.add(index, value); + onChanged(); + } else { + instanceAclPolicyAttachmentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInstanceAclPolicyAttachments( + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment.Builder builderForValue) { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + ensureInstanceAclPolicyAttachmentsIsMutable(); + instanceAclPolicyAttachments_.add(builderForValue.build()); + onChanged(); + } else { + instanceAclPolicyAttachmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInstanceAclPolicyAttachments( + int index, + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment.Builder builderForValue) { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + ensureInstanceAclPolicyAttachmentsIsMutable(); + instanceAclPolicyAttachments_.add(index, builderForValue.build()); + onChanged(); + } else { + instanceAclPolicyAttachmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllInstanceAclPolicyAttachments( + java.lang.Iterable< + ? extends com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment> + values) { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + ensureInstanceAclPolicyAttachmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, instanceAclPolicyAttachments_); + onChanged(); + } else { + instanceAclPolicyAttachmentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearInstanceAclPolicyAttachments() { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + instanceAclPolicyAttachments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + instanceAclPolicyAttachmentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeInstanceAclPolicyAttachments(int index) { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + ensureInstanceAclPolicyAttachmentsIsMutable(); + instanceAclPolicyAttachments_.remove(index); + onChanged(); + } else { + instanceAclPolicyAttachmentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment.Builder + getInstanceAclPolicyAttachmentsBuilder(int index) { + return internalGetInstanceAclPolicyAttachmentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachmentOrBuilder + getInstanceAclPolicyAttachmentsOrBuilder(int index) { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + return instanceAclPolicyAttachments_.get(index); + } else { + return instanceAclPolicyAttachmentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachmentOrBuilder> + getInstanceAclPolicyAttachmentsOrBuilderList() { + if (instanceAclPolicyAttachmentsBuilder_ != null) { + return instanceAclPolicyAttachmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(instanceAclPolicyAttachments_); + } + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment.Builder + addInstanceAclPolicyAttachmentsBuilder() { + return internalGetInstanceAclPolicyAttachmentsFieldBuilder() + .addBuilder( + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment.getDefaultInstance()); + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment.Builder + addInstanceAclPolicyAttachmentsBuilder(int index) { + return internalGetInstanceAclPolicyAttachmentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment.getDefaultInstance()); + } + + /** + * + * + *
          +     * Output only. The ACL policy attachment status for each attached instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getInstanceAclPolicyAttachmentsBuilderList() { + return internalGetInstanceAclPolicyAttachmentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment, + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment.Builder, + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachmentOrBuilder> + internalGetInstanceAclPolicyAttachmentsFieldBuilder() { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + instanceAclPolicyAttachmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment, + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment.Builder, + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachmentOrBuilder>( + instanceAclPolicyAttachments_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + instanceAclPolicyAttachments_ = null; + } + return instanceAclPolicyAttachmentsBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
          +     * Output only. The timestamp that the ACL policy was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1beta.AclPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1beta.AclPolicy) + private static final com.google.cloud.memorystore.v1beta.AclPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1beta.AclPolicy(); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AclPolicy 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.memorystore.v1beta.AclPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyInfo.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyInfo.java new file mode 100644 index 000000000000..0d519de190f4 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyInfo.java @@ -0,0 +1,1565 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +/** + * + * + *
          + * Details of the applied ACL policy.
          + * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.AclPolicyInfo} + */ +@com.google.protobuf.Generated +public final class AclPolicyInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1beta.AclPolicyInfo) + AclPolicyInfoOrBuilder { + 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= */ "", + "AclPolicyInfo"); + } + + // Use AclPolicyInfo.newBuilder() to construct. + private AclPolicyInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AclPolicyInfo() { + appliedAclPolicy_ = ""; + appliedAclPolicyRevision_ = ""; + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclPolicyInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclPolicyInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.AclPolicyInfo.class, + com.google.cloud.memorystore.v1beta.AclPolicyInfo.Builder.class); + } + + public static final int APPLIED_ACL_POLICY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object appliedAclPolicy_ = ""; + + /** + * + * + *
          +   * Output only. The resource name of the applied ACL policy.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +   * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appliedAclPolicy. + */ + @java.lang.Override + public java.lang.String getAppliedAclPolicy() { + java.lang.Object ref = appliedAclPolicy_; + 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(); + appliedAclPolicy_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. The resource name of the applied ACL policy.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +   * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appliedAclPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppliedAclPolicyBytes() { + java.lang.Object ref = appliedAclPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appliedAclPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPLIED_ACL_POLICY_REVISION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object appliedAclPolicyRevision_ = ""; + + /** + * + * + *
          +   * Output only. The resource name of the applied ACL policy revision.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appliedAclPolicyRevision. + */ + @java.lang.Override + public java.lang.String getAppliedAclPolicyRevision() { + java.lang.Object ref = appliedAclPolicyRevision_; + 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(); + appliedAclPolicyRevision_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. The resource name of the applied ACL policy revision.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appliedAclPolicyRevision. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppliedAclPolicyRevisionBytes() { + java.lang.Object ref = appliedAclPolicyRevision_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appliedAclPolicyRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPLIED_ACL_POLICY_REVISION_NUMBER_FIELD_NUMBER = 3; + private long appliedAclPolicyRevisionNumber_ = 0L; + + /** + * + * + *
          +   * Output only. The revision number of the applied ACL policy revision.
          +   * 
          + * + * + * int64 applied_acl_policy_revision_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The appliedAclPolicyRevisionNumber. + */ + @java.lang.Override + public long getAppliedAclPolicyRevisionNumber() { + return appliedAclPolicyRevisionNumber_; + } + + public static final int ACL_POLICY_REVISION_STATUSES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List + aclPolicyRevisionStatuses_; + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getAclPolicyRevisionStatusesList() { + return aclPolicyRevisionStatuses_; + } + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatusOrBuilder> + getAclPolicyRevisionStatusesOrBuilderList() { + return aclPolicyRevisionStatuses_; + } + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getAclPolicyRevisionStatusesCount() { + return aclPolicyRevisionStatuses_.size(); + } + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus getAclPolicyRevisionStatuses( + int index) { + return aclPolicyRevisionStatuses_.get(index); + } + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatusOrBuilder + getAclPolicyRevisionStatusesOrBuilder(int index) { + return aclPolicyRevisionStatuses_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appliedAclPolicy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, appliedAclPolicy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appliedAclPolicyRevision_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, appliedAclPolicyRevision_); + } + if (appliedAclPolicyRevisionNumber_ != 0L) { + output.writeInt64(3, appliedAclPolicyRevisionNumber_); + } + for (int i = 0; i < aclPolicyRevisionStatuses_.size(); i++) { + output.writeMessage(4, aclPolicyRevisionStatuses_.get(i)); + } + 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(appliedAclPolicy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, appliedAclPolicy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appliedAclPolicyRevision_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, appliedAclPolicyRevision_); + } + if (appliedAclPolicyRevisionNumber_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size( + 3, appliedAclPolicyRevisionNumber_); + } + for (int i = 0; i < aclPolicyRevisionStatuses_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, aclPolicyRevisionStatuses_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.memorystore.v1beta.AclPolicyInfo)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1beta.AclPolicyInfo other = + (com.google.cloud.memorystore.v1beta.AclPolicyInfo) obj; + + if (!getAppliedAclPolicy().equals(other.getAppliedAclPolicy())) return false; + if (!getAppliedAclPolicyRevision().equals(other.getAppliedAclPolicyRevision())) return false; + if (getAppliedAclPolicyRevisionNumber() != other.getAppliedAclPolicyRevisionNumber()) + return false; + if (!getAclPolicyRevisionStatusesList().equals(other.getAclPolicyRevisionStatusesList())) + 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) + APPLIED_ACL_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAppliedAclPolicy().hashCode(); + hash = (37 * hash) + APPLIED_ACL_POLICY_REVISION_FIELD_NUMBER; + hash = (53 * hash) + getAppliedAclPolicyRevision().hashCode(); + hash = (37 * hash) + APPLIED_ACL_POLICY_REVISION_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAppliedAclPolicyRevisionNumber()); + if (getAclPolicyRevisionStatusesCount() > 0) { + hash = (37 * hash) + ACL_POLICY_REVISION_STATUSES_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicyRevisionStatusesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyInfo 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.memorystore.v1beta.AclPolicyInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyInfo 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.memorystore.v1beta.AclPolicyInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyInfo 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.memorystore.v1beta.AclPolicyInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyInfo 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.memorystore.v1beta.AclPolicyInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyInfo 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.memorystore.v1beta.AclPolicyInfo 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; + } + + /** + * + * + *
          +   * Details of the applied ACL policy.
          +   * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.AclPolicyInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1beta.AclPolicyInfo) + com.google.cloud.memorystore.v1beta.AclPolicyInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclPolicyInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclPolicyInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.AclPolicyInfo.class, + com.google.cloud.memorystore.v1beta.AclPolicyInfo.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1beta.AclPolicyInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + appliedAclPolicy_ = ""; + appliedAclPolicyRevision_ = ""; + appliedAclPolicyRevisionNumber_ = 0L; + if (aclPolicyRevisionStatusesBuilder_ == null) { + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + } else { + aclPolicyRevisionStatuses_ = null; + aclPolicyRevisionStatusesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclPolicyInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicyInfo getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1beta.AclPolicyInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicyInfo build() { + com.google.cloud.memorystore.v1beta.AclPolicyInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicyInfo buildPartial() { + com.google.cloud.memorystore.v1beta.AclPolicyInfo result = + new com.google.cloud.memorystore.v1beta.AclPolicyInfo(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.memorystore.v1beta.AclPolicyInfo result) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + aclPolicyRevisionStatuses_ = + java.util.Collections.unmodifiableList(aclPolicyRevisionStatuses_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.aclPolicyRevisionStatuses_ = aclPolicyRevisionStatuses_; + } else { + result.aclPolicyRevisionStatuses_ = aclPolicyRevisionStatusesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.memorystore.v1beta.AclPolicyInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.appliedAclPolicy_ = appliedAclPolicy_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.appliedAclPolicyRevision_ = appliedAclPolicyRevision_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.appliedAclPolicyRevisionNumber_ = appliedAclPolicyRevisionNumber_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1beta.AclPolicyInfo) { + return mergeFrom((com.google.cloud.memorystore.v1beta.AclPolicyInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1beta.AclPolicyInfo other) { + if (other == com.google.cloud.memorystore.v1beta.AclPolicyInfo.getDefaultInstance()) + return this; + if (!other.getAppliedAclPolicy().isEmpty()) { + appliedAclPolicy_ = other.appliedAclPolicy_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAppliedAclPolicyRevision().isEmpty()) { + appliedAclPolicyRevision_ = other.appliedAclPolicyRevision_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getAppliedAclPolicyRevisionNumber() != 0L) { + setAppliedAclPolicyRevisionNumber(other.getAppliedAclPolicyRevisionNumber()); + } + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (!other.aclPolicyRevisionStatuses_.isEmpty()) { + if (aclPolicyRevisionStatuses_.isEmpty()) { + aclPolicyRevisionStatuses_ = other.aclPolicyRevisionStatuses_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.addAll(other.aclPolicyRevisionStatuses_); + } + onChanged(); + } + } else { + if (!other.aclPolicyRevisionStatuses_.isEmpty()) { + if (aclPolicyRevisionStatusesBuilder_.isEmpty()) { + aclPolicyRevisionStatusesBuilder_.dispose(); + aclPolicyRevisionStatusesBuilder_ = null; + aclPolicyRevisionStatuses_ = other.aclPolicyRevisionStatuses_; + bitField0_ = (bitField0_ & ~0x00000008); + aclPolicyRevisionStatusesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAclPolicyRevisionStatusesFieldBuilder() + : null; + } else { + aclPolicyRevisionStatusesBuilder_.addAllMessages(other.aclPolicyRevisionStatuses_); + } + } + } + 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: + { + appliedAclPolicy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + appliedAclPolicyRevision_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + appliedAclPolicyRevisionNumber_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus m = + input.readMessage( + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.parser(), + extensionRegistry); + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(m); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(m); + } + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object appliedAclPolicy_ = ""; + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +     * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appliedAclPolicy. + */ + public java.lang.String getAppliedAclPolicy() { + java.lang.Object ref = appliedAclPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appliedAclPolicy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +     * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appliedAclPolicy. + */ + public com.google.protobuf.ByteString getAppliedAclPolicyBytes() { + java.lang.Object ref = appliedAclPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appliedAclPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +     * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The appliedAclPolicy to set. + * @return This builder for chaining. + */ + public Builder setAppliedAclPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appliedAclPolicy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +     * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAppliedAclPolicy() { + appliedAclPolicy_ = getDefaultInstance().getAppliedAclPolicy(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +     * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for appliedAclPolicy to set. + * @return This builder for chaining. + */ + public Builder setAppliedAclPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appliedAclPolicy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object appliedAclPolicyRevision_ = ""; + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appliedAclPolicyRevision. + */ + public java.lang.String getAppliedAclPolicyRevision() { + java.lang.Object ref = appliedAclPolicyRevision_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appliedAclPolicyRevision_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appliedAclPolicyRevision. + */ + public com.google.protobuf.ByteString getAppliedAclPolicyRevisionBytes() { + java.lang.Object ref = appliedAclPolicyRevision_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appliedAclPolicyRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The appliedAclPolicyRevision to set. + * @return This builder for chaining. + */ + public Builder setAppliedAclPolicyRevision(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appliedAclPolicyRevision_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAppliedAclPolicyRevision() { + appliedAclPolicyRevision_ = getDefaultInstance().getAppliedAclPolicyRevision(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the applied ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for appliedAclPolicyRevision to set. + * @return This builder for chaining. + */ + public Builder setAppliedAclPolicyRevisionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appliedAclPolicyRevision_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long appliedAclPolicyRevisionNumber_; + + /** + * + * + *
          +     * Output only. The revision number of the applied ACL policy revision.
          +     * 
          + * + * + * int64 applied_acl_policy_revision_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The appliedAclPolicyRevisionNumber. + */ + @java.lang.Override + public long getAppliedAclPolicyRevisionNumber() { + return appliedAclPolicyRevisionNumber_; + } + + /** + * + * + *
          +     * Output only. The revision number of the applied ACL policy revision.
          +     * 
          + * + * + * int64 applied_acl_policy_revision_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The appliedAclPolicyRevisionNumber to set. + * @return This builder for chaining. + */ + public Builder setAppliedAclPolicyRevisionNumber(long value) { + + appliedAclPolicyRevisionNumber_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The revision number of the applied ACL policy revision.
          +     * 
          + * + * + * int64 applied_acl_policy_revision_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAppliedAclPolicyRevisionNumber() { + bitField0_ = (bitField0_ & ~0x00000004); + appliedAclPolicyRevisionNumber_ = 0L; + onChanged(); + return this; + } + + private java.util.List + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + + private void ensureAclPolicyRevisionStatusesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + aclPolicyRevisionStatuses_ = + new java.util.ArrayList( + aclPolicyRevisionStatuses_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus, + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.Builder, + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatusOrBuilder> + aclPolicyRevisionStatusesBuilder_; + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getAclPolicyRevisionStatusesList() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return java.util.Collections.unmodifiableList(aclPolicyRevisionStatuses_); + } else { + return aclPolicyRevisionStatusesBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getAclPolicyRevisionStatusesCount() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return aclPolicyRevisionStatuses_.size(); + } else { + return aclPolicyRevisionStatusesBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus getAclPolicyRevisionStatuses( + int index) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return aclPolicyRevisionStatuses_.get(index); + } else { + return aclPolicyRevisionStatusesBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAclPolicyRevisionStatuses( + int index, com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus value) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.set(index, value); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAclPolicyRevisionStatuses( + int index, + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.Builder builderForValue) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.set(index, builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus value) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(value); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + int index, com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus value) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(index, value); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.Builder builderForValue) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + int index, + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.Builder builderForValue) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(index, builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllAclPolicyRevisionStatuses( + java.lang.Iterable + values) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aclPolicyRevisionStatuses_); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAclPolicyRevisionStatuses() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeAclPolicyRevisionStatuses(int index) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.remove(index); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.Builder + getAclPolicyRevisionStatusesBuilder(int index) { + return internalGetAclPolicyRevisionStatusesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatusOrBuilder + getAclPolicyRevisionStatusesOrBuilder(int index) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return aclPolicyRevisionStatuses_.get(index); + } else { + return aclPolicyRevisionStatusesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatusOrBuilder> + getAclPolicyRevisionStatusesOrBuilderList() { + if (aclPolicyRevisionStatusesBuilder_ != null) { + return aclPolicyRevisionStatusesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(aclPolicyRevisionStatuses_); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.Builder + addAclPolicyRevisionStatusesBuilder() { + return internalGetAclPolicyRevisionStatusesFieldBuilder() + .addBuilder( + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.getDefaultInstance()); + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.Builder + addAclPolicyRevisionStatusesBuilder(int index) { + return internalGetAclPolicyRevisionStatusesFieldBuilder() + .addBuilder( + index, + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.getDefaultInstance()); + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getAclPolicyRevisionStatusesBuilderList() { + return internalGetAclPolicyRevisionStatusesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus, + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.Builder, + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatusOrBuilder> + internalGetAclPolicyRevisionStatusesFieldBuilder() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + aclPolicyRevisionStatusesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus, + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.Builder, + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatusOrBuilder>( + aclPolicyRevisionStatuses_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + aclPolicyRevisionStatuses_ = null; + } + return aclPolicyRevisionStatusesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1beta.AclPolicyInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1beta.AclPolicyInfo) + private static final com.google.cloud.memorystore.v1beta.AclPolicyInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1beta.AclPolicyInfo(); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AclPolicyInfo 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.memorystore.v1beta.AclPolicyInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyInfoOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyInfoOrBuilder.java new file mode 100644 index 000000000000..9df058c70929 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyInfoOrBuilder.java @@ -0,0 +1,185 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +@com.google.protobuf.Generated +public interface AclPolicyInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1beta.AclPolicyInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Output only. The resource name of the applied ACL policy.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +   * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appliedAclPolicy. + */ + java.lang.String getAppliedAclPolicy(); + + /** + * + * + *
          +   * Output only. The resource name of the applied ACL policy.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +   * 
          + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appliedAclPolicy. + */ + com.google.protobuf.ByteString getAppliedAclPolicyBytes(); + + /** + * + * + *
          +   * Output only. The resource name of the applied ACL policy revision.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appliedAclPolicyRevision. + */ + java.lang.String getAppliedAclPolicyRevision(); + + /** + * + * + *
          +   * Output only. The resource name of the applied ACL policy revision.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appliedAclPolicyRevision. + */ + com.google.protobuf.ByteString getAppliedAclPolicyRevisionBytes(); + + /** + * + * + *
          +   * Output only. The revision number of the applied ACL policy revision.
          +   * 
          + * + * + * int64 applied_acl_policy_revision_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The appliedAclPolicyRevisionNumber. + */ + long getAppliedAclPolicyRevisionNumber(); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAclPolicyRevisionStatusesList(); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus getAclPolicyRevisionStatuses( + int index); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAclPolicyRevisionStatusesCount(); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAclPolicyRevisionStatusesOrBuilderList(); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatusOrBuilder + getAclPolicyRevisionStatusesOrBuilder(int index); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyName.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyName.java new file mode 100644 index 000000000000..e4c20148fc5f --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyName.java @@ -0,0 +1,226 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class AclPolicyName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ACL_POLICY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String aclPolicy; + + @Deprecated + protected AclPolicyName() { + project = null; + location = null; + aclPolicy = null; + } + + private AclPolicyName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + aclPolicy = Preconditions.checkNotNull(builder.getAclPolicy()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAclPolicy() { + return aclPolicy; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AclPolicyName of(String project, String location, String aclPolicy) { + return newBuilder().setProject(project).setLocation(location).setAclPolicy(aclPolicy).build(); + } + + public static String format(String project, String location, String aclPolicy) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAclPolicy(aclPolicy) + .build() + .toString(); + } + + public static @Nullable AclPolicyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ACL_POLICY.validatedMatch( + formattedString, "AclPolicyName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("acl_policy")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List<@Nullable AclPolicyName> values) { + List list = new ArrayList<>(values.size()); + for (AclPolicyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ACL_POLICY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (aclPolicy != null) { + fieldMapBuilder.put("acl_policy", aclPolicy); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ACL_POLICY.instantiate( + "project", project, "location", location, "acl_policy", aclPolicy); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AclPolicyName that = ((AclPolicyName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.aclPolicy, that.aclPolicy); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(aclPolicy); + return h; + } + + /** Builder for projects/{project}/locations/{location}/aclPolicies/{acl_policy}. */ + public static class Builder { + private String project; + private String location; + private String aclPolicy; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAclPolicy() { + return aclPolicy; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAclPolicy(String aclPolicy) { + this.aclPolicy = aclPolicy; + return this; + } + + private Builder(AclPolicyName aclPolicyName) { + this.project = aclPolicyName.project; + this.location = aclPolicyName.location; + this.aclPolicy = aclPolicyName.aclPolicy; + } + + public AclPolicyName build() { + return new AclPolicyName(this); + } + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyOrBuilder.java new file mode 100644 index 000000000000..69f178bd0bc2 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyOrBuilder.java @@ -0,0 +1,338 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +@com.google.protobuf.Generated +public interface AclPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1beta.AclPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Identifier. Full resource path of the ACL policy.
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Identifier. Full resource path of the ACL policy.
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRulesList(); + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.memorystore.v1beta.AclRule getRules(int index); + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRulesCount(); + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRulesOrBuilderList(); + + /** + * + * + *
          +   * Required. The ACL rules within the ACL policy.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.memorystore.v1beta.AclRuleOrBuilder getRulesOrBuilder(int index); + + /** + * + * + *
          +   * Output only. The state of the ACL policy.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
          +   * Output only. The state of the ACL policy.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.memorystore.v1beta.AclPolicy.State getState(); + + /** + * + * + *
          +   * Output only. Etag of the ACL policy.
          +   * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the etag field is set. + */ + boolean hasEtag(); + + /** + * + * + *
          +   * Output only. Etag of the ACL policy.
          +   * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
          +   * Output only. Etag of the ACL policy.
          +   * 
          + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getInstanceAclPolicyAttachmentsList(); + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment getInstanceAclPolicyAttachments( + int index); + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getInstanceAclPolicyAttachmentsCount(); + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getInstanceAclPolicyAttachmentsOrBuilderList(); + + /** + * + * + *
          +   * Output only. The ACL policy attachment status for each attached instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachmentOrBuilder + getInstanceAclPolicyAttachmentsOrBuilder(int index); + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
          +   * Output only. The timestamp that the ACL policy was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyRevision.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyRevision.java new file mode 100644 index 000000000000..ae949e64f6f0 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyRevision.java @@ -0,0 +1,1664 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +/** + * + * + *
          + * The ACL policy revision resource.
          + * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.AclPolicyRevision} + */ +@com.google.protobuf.Generated +public final class AclPolicyRevision extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1beta.AclPolicyRevision) + AclPolicyRevisionOrBuilder { + 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= */ "", + "AclPolicyRevision"); + } + + // Use AclPolicyRevision.newBuilder() to construct. + private AclPolicyRevision(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AclPolicyRevision() { + name_ = ""; + attachedInstances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclPolicyRevision_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclPolicyRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.AclPolicyRevision.class, + com.google.cloud.memorystore.v1beta.AclPolicyRevision.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Identifier. The name of the ACL policy revision.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Identifier. The name of the ACL policy revision.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REVISION_NUMBER_FIELD_NUMBER = 2; + private long revisionNumber_ = 0L; + + /** + * + * + *
          +   * Output only. The revision number of the ACL policy revision.
          +   * 
          + * + * int64 revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revisionNumber. + */ + @java.lang.Override + public long getRevisionNumber() { + return revisionNumber_; + } + + public static final int SNAPSHOT_FIELD_NUMBER = 3; + private com.google.cloud.memorystore.v1beta.AclPolicy snapshot_; + + /** + * + * + *
          +   * Output only. The snapshot of the ACL policy at the time of revision
          +   * creation.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + @java.lang.Override + public boolean hasSnapshot() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Output only. The snapshot of the ACL policy at the time of revision
          +   * creation.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicy getSnapshot() { + return snapshot_ == null + ? com.google.cloud.memorystore.v1beta.AclPolicy.getDefaultInstance() + : snapshot_; + } + + /** + * + * + *
          +   * Output only. The snapshot of the ACL policy at the time of revision
          +   * creation.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder getSnapshotOrBuilder() { + return snapshot_ == null + ? com.google.cloud.memorystore.v1beta.AclPolicy.getDefaultInstance() + : snapshot_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
          +   * Output only. The timestamp that the revision was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +   * Output only. The timestamp that the revision was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
          +   * Output only. The timestamp that the revision was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int ATTACHED_INSTANCES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList attachedInstances_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
          +   * Output only. A list of instances that are attached to this ACL policy
          +   * revision.
          +   * 
          + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the attachedInstances. + */ + public com.google.protobuf.ProtocolStringList getAttachedInstancesList() { + return attachedInstances_; + } + + /** + * + * + *
          +   * Output only. A list of instances that are attached to this ACL policy
          +   * revision.
          +   * 
          + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of attachedInstances. + */ + public int getAttachedInstancesCount() { + return attachedInstances_.size(); + } + + /** + * + * + *
          +   * Output only. A list of instances that are attached to this ACL policy
          +   * revision.
          +   * 
          + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The attachedInstances at the given index. + */ + public java.lang.String getAttachedInstances(int index) { + return attachedInstances_.get(index); + } + + /** + * + * + *
          +   * Output only. A list of instances that are attached to this ACL policy
          +   * revision.
          +   * 
          + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the attachedInstances at the given index. + */ + public com.google.protobuf.ByteString getAttachedInstancesBytes(int index) { + return attachedInstances_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (revisionNumber_ != 0L) { + output.writeInt64(2, revisionNumber_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getSnapshot()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getCreateTime()); + } + for (int i = 0; i < attachedInstances_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, attachedInstances_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (revisionNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, revisionNumber_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSnapshot()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + { + int dataSize = 0; + for (int i = 0; i < attachedInstances_.size(); i++) { + dataSize += computeStringSizeNoTag(attachedInstances_.getRaw(i)); + } + size += dataSize; + size += 1 * getAttachedInstancesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.memorystore.v1beta.AclPolicyRevision)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1beta.AclPolicyRevision other = + (com.google.cloud.memorystore.v1beta.AclPolicyRevision) obj; + + if (!getName().equals(other.getName())) return false; + if (getRevisionNumber() != other.getRevisionNumber()) return false; + if (hasSnapshot() != other.hasSnapshot()) return false; + if (hasSnapshot()) { + if (!getSnapshot().equals(other.getSnapshot())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getAttachedInstancesList().equals(other.getAttachedInstancesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REVISION_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRevisionNumber()); + if (hasSnapshot()) { + hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSnapshot().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (getAttachedInstancesCount() > 0) { + hash = (37 * hash) + ATTACHED_INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getAttachedInstancesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyRevision parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyRevision 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.memorystore.v1beta.AclPolicyRevision parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyRevision 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.memorystore.v1beta.AclPolicyRevision parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyRevision parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyRevision parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyRevision 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.memorystore.v1beta.AclPolicyRevision parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyRevision 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.memorystore.v1beta.AclPolicyRevision parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyRevision 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.memorystore.v1beta.AclPolicyRevision prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * The ACL policy revision resource.
          +   * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.AclPolicyRevision} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1beta.AclPolicyRevision) + com.google.cloud.memorystore.v1beta.AclPolicyRevisionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclPolicyRevision_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclPolicyRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.AclPolicyRevision.class, + com.google.cloud.memorystore.v1beta.AclPolicyRevision.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1beta.AclPolicyRevision.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSnapshotFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + revisionNumber_ = 0L; + snapshot_ = null; + if (snapshotBuilder_ != null) { + snapshotBuilder_.dispose(); + snapshotBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + attachedInstances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclPolicyRevision_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicyRevision getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1beta.AclPolicyRevision.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicyRevision build() { + com.google.cloud.memorystore.v1beta.AclPolicyRevision result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicyRevision buildPartial() { + com.google.cloud.memorystore.v1beta.AclPolicyRevision result = + new com.google.cloud.memorystore.v1beta.AclPolicyRevision(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.memorystore.v1beta.AclPolicyRevision result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.revisionNumber_ = revisionNumber_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.snapshot_ = snapshotBuilder_ == null ? snapshot_ : snapshotBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + attachedInstances_.makeImmutable(); + result.attachedInstances_ = attachedInstances_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1beta.AclPolicyRevision) { + return mergeFrom((com.google.cloud.memorystore.v1beta.AclPolicyRevision) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1beta.AclPolicyRevision other) { + if (other == com.google.cloud.memorystore.v1beta.AclPolicyRevision.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getRevisionNumber() != 0L) { + setRevisionNumber(other.getRevisionNumber()); + } + if (other.hasSnapshot()) { + mergeSnapshot(other.getSnapshot()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (!other.attachedInstances_.isEmpty()) { + if (attachedInstances_.isEmpty()) { + attachedInstances_ = other.attachedInstances_; + bitField0_ |= 0x00000010; + } else { + ensureAttachedInstancesIsMutable(); + attachedInstances_.addAll(other.attachedInstances_); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + revisionNumber_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + internalGetSnapshotFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAttachedInstancesIsMutable(); + attachedInstances_.add(s); + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Identifier. The name of the ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Identifier. The name of the ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Identifier. The name of the ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Identifier. The name of the ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Identifier. The name of the ACL policy revision.
          +     * Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long revisionNumber_; + + /** + * + * + *
          +     * Output only. The revision number of the ACL policy revision.
          +     * 
          + * + * int64 revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revisionNumber. + */ + @java.lang.Override + public long getRevisionNumber() { + return revisionNumber_; + } + + /** + * + * + *
          +     * Output only. The revision number of the ACL policy revision.
          +     * 
          + * + * int64 revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The revisionNumber to set. + * @return This builder for chaining. + */ + public Builder setRevisionNumber(long value) { + + revisionNumber_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The revision number of the ACL policy revision.
          +     * 
          + * + * int64 revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRevisionNumber() { + bitField0_ = (bitField0_ & ~0x00000002); + revisionNumber_ = 0L; + onChanged(); + return this; + } + + private com.google.cloud.memorystore.v1beta.AclPolicy snapshot_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1beta.AclPolicy, + com.google.cloud.memorystore.v1beta.AclPolicy.Builder, + com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder> + snapshotBuilder_; + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + public boolean hasSnapshot() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + public com.google.cloud.memorystore.v1beta.AclPolicy getSnapshot() { + if (snapshotBuilder_ == null) { + return snapshot_ == null + ? com.google.cloud.memorystore.v1beta.AclPolicy.getDefaultInstance() + : snapshot_; + } else { + return snapshotBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSnapshot(com.google.cloud.memorystore.v1beta.AclPolicy value) { + if (snapshotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snapshot_ = value; + } else { + snapshotBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSnapshot( + com.google.cloud.memorystore.v1beta.AclPolicy.Builder builderForValue) { + if (snapshotBuilder_ == null) { + snapshot_ = builderForValue.build(); + } else { + snapshotBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSnapshot(com.google.cloud.memorystore.v1beta.AclPolicy value) { + if (snapshotBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && snapshot_ != null + && snapshot_ != com.google.cloud.memorystore.v1beta.AclPolicy.getDefaultInstance()) { + getSnapshotBuilder().mergeFrom(value); + } else { + snapshot_ = value; + } + } else { + snapshotBuilder_.mergeFrom(value); + } + if (snapshot_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSnapshot() { + bitField0_ = (bitField0_ & ~0x00000004); + snapshot_ = null; + if (snapshotBuilder_ != null) { + snapshotBuilder_.dispose(); + snapshotBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1beta.AclPolicy.Builder getSnapshotBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetSnapshotFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder getSnapshotOrBuilder() { + if (snapshotBuilder_ != null) { + return snapshotBuilder_.getMessageOrBuilder(); + } else { + return snapshot_ == null + ? com.google.cloud.memorystore.v1beta.AclPolicy.getDefaultInstance() + : snapshot_; + } + } + + /** + * + * + *
          +     * Output only. The snapshot of the ACL policy at the time of revision
          +     * creation.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1beta.AclPolicy, + com.google.cloud.memorystore.v1beta.AclPolicy.Builder, + com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder> + internalGetSnapshotFieldBuilder() { + if (snapshotBuilder_ == null) { + snapshotBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1beta.AclPolicy, + com.google.cloud.memorystore.v1beta.AclPolicy.Builder, + com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder>( + getSnapshot(), getParentForChildren(), isClean()); + snapshot_ = null; + } + return snapshotBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
          +     * Output only. The timestamp that the revision was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.LazyStringArrayList attachedInstances_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAttachedInstancesIsMutable() { + if (!attachedInstances_.isModifiable()) { + attachedInstances_ = new com.google.protobuf.LazyStringArrayList(attachedInstances_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
          +     * Output only. A list of instances that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the attachedInstances. + */ + public com.google.protobuf.ProtocolStringList getAttachedInstancesList() { + attachedInstances_.makeImmutable(); + return attachedInstances_; + } + + /** + * + * + *
          +     * Output only. A list of instances that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of attachedInstances. + */ + public int getAttachedInstancesCount() { + return attachedInstances_.size(); + } + + /** + * + * + *
          +     * Output only. A list of instances that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The attachedInstances at the given index. + */ + public java.lang.String getAttachedInstances(int index) { + return attachedInstances_.get(index); + } + + /** + * + * + *
          +     * Output only. A list of instances that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the attachedInstances at the given index. + */ + public com.google.protobuf.ByteString getAttachedInstancesBytes(int index) { + return attachedInstances_.getByteString(index); + } + + /** + * + * + *
          +     * Output only. A list of instances that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The attachedInstances to set. + * @return This builder for chaining. + */ + public Builder setAttachedInstances(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachedInstancesIsMutable(); + attachedInstances_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. A list of instances that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The attachedInstances to add. + * @return This builder for chaining. + */ + public Builder addAttachedInstances(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachedInstancesIsMutable(); + attachedInstances_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. A list of instances that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param values The attachedInstances to add. + * @return This builder for chaining. + */ + public Builder addAllAttachedInstances(java.lang.Iterable values) { + ensureAttachedInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attachedInstances_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. A list of instances that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAttachedInstances() { + attachedInstances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. A list of instances that are attached to this ACL policy
          +     * revision.
          +     * 
          + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the attachedInstances to add. + * @return This builder for chaining. + */ + public Builder addAttachedInstancesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAttachedInstancesIsMutable(); + attachedInstances_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1beta.AclPolicyRevision) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1beta.AclPolicyRevision) + private static final com.google.cloud.memorystore.v1beta.AclPolicyRevision DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1beta.AclPolicyRevision(); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyRevision getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AclPolicyRevision 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.memorystore.v1beta.AclPolicyRevision getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyRevisionName.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyRevisionName.java new file mode 100644 index 000000000000..ff8a015e8d81 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyRevisionName.java @@ -0,0 +1,264 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class AclPolicyRevisionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ACL_POLICY_REVISION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String aclPolicy; + private final String revision; + + @Deprecated + protected AclPolicyRevisionName() { + project = null; + location = null; + aclPolicy = null; + revision = null; + } + + private AclPolicyRevisionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + aclPolicy = Preconditions.checkNotNull(builder.getAclPolicy()); + revision = Preconditions.checkNotNull(builder.getRevision()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAclPolicy() { + return aclPolicy; + } + + public String getRevision() { + return revision; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AclPolicyRevisionName of( + String project, String location, String aclPolicy, String revision) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAclPolicy(aclPolicy) + .setRevision(revision) + .build(); + } + + public static String format(String project, String location, String aclPolicy, String revision) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAclPolicy(aclPolicy) + .setRevision(revision) + .build() + .toString(); + } + + public static @Nullable AclPolicyRevisionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ACL_POLICY_REVISION.validatedMatch( + formattedString, "AclPolicyRevisionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("acl_policy"), + matchMap.get("revision")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List<@Nullable AclPolicyRevisionName> values) { + List list = new ArrayList<>(values.size()); + for (AclPolicyRevisionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ACL_POLICY_REVISION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (aclPolicy != null) { + fieldMapBuilder.put("acl_policy", aclPolicy); + } + if (revision != null) { + fieldMapBuilder.put("revision", revision); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ACL_POLICY_REVISION.instantiate( + "project", project, "location", location, "acl_policy", aclPolicy, "revision", revision); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AclPolicyRevisionName that = ((AclPolicyRevisionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.aclPolicy, that.aclPolicy) + && Objects.equals(this.revision, that.revision); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(aclPolicy); + h *= 1000003; + h ^= Objects.hashCode(revision); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}. + */ + public static class Builder { + private String project; + private String location; + private String aclPolicy; + private String revision; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAclPolicy() { + return aclPolicy; + } + + public String getRevision() { + return revision; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAclPolicy(String aclPolicy) { + this.aclPolicy = aclPolicy; + return this; + } + + public Builder setRevision(String revision) { + this.revision = revision; + return this; + } + + private Builder(AclPolicyRevisionName aclPolicyRevisionName) { + this.project = aclPolicyRevisionName.project; + this.location = aclPolicyRevisionName.location; + this.aclPolicy = aclPolicyRevisionName.aclPolicy; + this.revision = aclPolicyRevisionName.revision; + } + + public AclPolicyRevisionName build() { + return new AclPolicyRevisionName(this); + } + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyRevisionOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyRevisionOrBuilder.java new file mode 100644 index 000000000000..36a64a8abdb0 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyRevisionOrBuilder.java @@ -0,0 +1,223 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +@com.google.protobuf.Generated +public interface AclPolicyRevisionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1beta.AclPolicyRevision) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Identifier. The name of the ACL policy revision.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Identifier. The name of the ACL policy revision.
          +   * Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Output only. The revision number of the ACL policy revision.
          +   * 
          + * + * int64 revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revisionNumber. + */ + long getRevisionNumber(); + + /** + * + * + *
          +   * Output only. The snapshot of the ACL policy at the time of revision
          +   * creation.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + boolean hasSnapshot(); + + /** + * + * + *
          +   * Output only. The snapshot of the ACL policy at the time of revision
          +   * creation.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + com.google.cloud.memorystore.v1beta.AclPolicy getSnapshot(); + + /** + * + * + *
          +   * Output only. The snapshot of the ACL policy at the time of revision
          +   * creation.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder getSnapshotOrBuilder(); + + /** + * + * + *
          +   * Output only. The timestamp that the revision was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
          +   * Output only. The timestamp that the revision was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
          +   * Output only. The timestamp that the revision was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. A list of instances that are attached to this ACL policy
          +   * revision.
          +   * 
          + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the attachedInstances. + */ + java.util.List getAttachedInstancesList(); + + /** + * + * + *
          +   * Output only. A list of instances that are attached to this ACL policy
          +   * revision.
          +   * 
          + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of attachedInstances. + */ + int getAttachedInstancesCount(); + + /** + * + * + *
          +   * Output only. A list of instances that are attached to this ACL policy
          +   * revision.
          +   * 
          + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The attachedInstances at the given index. + */ + java.lang.String getAttachedInstances(int index); + + /** + * + * + *
          +   * Output only. A list of instances that are attached to this ACL policy
          +   * revision.
          +   * 
          + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the attachedInstances at the given index. + */ + com.google.protobuf.ByteString getAttachedInstancesBytes(int index); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyRevisionStatus.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyRevisionStatus.java new file mode 100644 index 000000000000..5dfa1679cbe9 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyRevisionStatus.java @@ -0,0 +1,1299 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +/** + * + * + *
          + * AclPolicyRevisionStatus stores the per-revision status for an attached
          + * instance.
          + * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.AclPolicyRevisionStatus} + */ +@com.google.protobuf.Generated +public final class AclPolicyRevisionStatus extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1beta.AclPolicyRevisionStatus) + AclPolicyRevisionStatusOrBuilder { + 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= */ "", + "AclPolicyRevisionStatus"); + } + + // Use AclPolicyRevisionStatus.newBuilder() to construct. + private AclPolicyRevisionStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AclPolicyRevisionStatus() { + aclPolicyRevision_ = ""; + state_ = 0; + errorMessage_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclPolicyRevisionStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclPolicyRevisionStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.class, + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.Builder.class); + } + + /** + * + * + *
          +   * Enum indicating the status of this ACL policy revision on the instance.
          +   * 
          + * + * Protobuf enum {@code google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Not set.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
          +     * The instance is attempting to apply this revision.
          +     * 
          + * + * APPLYING = 1; + */ + APPLYING(1), + /** + * + * + *
          +     * The instance has successfully applied this revision.
          +     * 
          + * + * APPLIED = 2; + */ + APPLIED(2), + /** + * + * + *
          +     * The instance failed to apply this revision.
          +     * 
          + * + * FAILED = 3; + */ + FAILED(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
          +     * Not set.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
          +     * The instance is attempting to apply this revision.
          +     * 
          + * + * APPLYING = 1; + */ + public static final int APPLYING_VALUE = 1; + + /** + * + * + *
          +     * The instance has successfully applied this revision.
          +     * 
          + * + * APPLIED = 2; + */ + public static final int APPLIED_VALUE = 2; + + /** + * + * + *
          +     * The instance failed to apply this revision.
          +     * 
          + * + * FAILED = 3; + */ + public static final int FAILED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return APPLYING; + case 2: + return APPLIED; + case 3: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.State) + } + + public static final int ACL_POLICY_REVISION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object aclPolicyRevision_ = ""; + + /** + * + * + *
          +   * Output only. The resource name of the ACL policy revision this status
          +   * refers to. Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The aclPolicyRevision. + */ + @java.lang.Override + public java.lang.String getAclPolicyRevision() { + java.lang.Object ref = aclPolicyRevision_; + 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(); + aclPolicyRevision_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. The resource name of the ACL policy revision this status
          +   * refers to. Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for aclPolicyRevision. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAclPolicyRevisionBytes() { + java.lang.Object ref = aclPolicyRevision_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aclPolicyRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACL_POLICY_REVISION_NUMBER_FIELD_NUMBER = 2; + private long aclPolicyRevisionNumber_ = 0L; + + /** + * + * + *
          +   * Output only. The revision number of the ACL policy revision this status
          +   * refers to.
          +   * 
          + * + * int64 acl_policy_revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The aclPolicyRevisionNumber. + */ + @java.lang.Override + public long getAclPolicyRevisionNumber() { + return aclPolicyRevisionNumber_; + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + + /** + * + * + *
          +   * Output only. AclPolicyRevision state.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
          +   * Output only. AclPolicyRevision state.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.State getState() { + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.State result = + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.State.forNumber(state_); + return result == null + ? com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.State.UNRECOGNIZED + : result; + } + + public static final int ERROR_MESSAGE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object errorMessage_ = ""; + + /** + * + * + *
          +   * Output only. Human-readable error message providing more details for FAILED
          +   * states.
          +   * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorMessage. + */ + @java.lang.Override + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + 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(); + errorMessage_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. Human-readable error message providing more details for FAILED
          +   * states.
          +   * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for errorMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(aclPolicyRevision_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, aclPolicyRevision_); + } + if (aclPolicyRevisionNumber_ != 0L) { + output.writeInt64(2, aclPolicyRevisionNumber_); + } + if (state_ + != com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, errorMessage_); + } + 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(aclPolicyRevision_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, aclPolicyRevision_); + } + if (aclPolicyRevisionNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, aclPolicyRevisionNumber_); + } + if (state_ + != com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, errorMessage_); + } + 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.memorystore.v1beta.AclPolicyRevisionStatus)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus other = + (com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus) obj; + + if (!getAclPolicyRevision().equals(other.getAclPolicyRevision())) return false; + if (getAclPolicyRevisionNumber() != other.getAclPolicyRevisionNumber()) return false; + if (state_ != other.state_) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) 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) + ACL_POLICY_REVISION_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicyRevision().hashCode(); + hash = (37 * hash) + ACL_POLICY_REVISION_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAclPolicyRevisionNumber()); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus 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.memorystore.v1beta.AclPolicyRevisionStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus 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.memorystore.v1beta.AclPolicyRevisionStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus 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.memorystore.v1beta.AclPolicyRevisionStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus 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.memorystore.v1beta.AclPolicyRevisionStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus 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.memorystore.v1beta.AclPolicyRevisionStatus 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; + } + + /** + * + * + *
          +   * AclPolicyRevisionStatus stores the per-revision status for an attached
          +   * instance.
          +   * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.AclPolicyRevisionStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1beta.AclPolicyRevisionStatus) + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclPolicyRevisionStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclPolicyRevisionStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.class, + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + aclPolicyRevision_ = ""; + aclPolicyRevisionNumber_ = 0L; + state_ = 0; + errorMessage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclPolicyRevisionStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus build() { + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus buildPartial() { + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus result = + new com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.aclPolicyRevision_ = aclPolicyRevision_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.aclPolicyRevisionNumber_ = aclPolicyRevisionNumber_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.errorMessage_ = errorMessage_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus) { + return mergeFrom((com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus other) { + if (other == com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.getDefaultInstance()) + return this; + if (!other.getAclPolicyRevision().isEmpty()) { + aclPolicyRevision_ = other.aclPolicyRevision_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getAclPolicyRevisionNumber() != 0L) { + setAclPolicyRevisionNumber(other.getAclPolicyRevisionNumber()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + bitField0_ |= 0x00000008; + 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: + { + aclPolicyRevision_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + aclPolicyRevisionNumber_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object aclPolicyRevision_ = ""; + + /** + * + * + *
          +     * Output only. The resource name of the ACL policy revision this status
          +     * refers to. Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The aclPolicyRevision. + */ + public java.lang.String getAclPolicyRevision() { + java.lang.Object ref = aclPolicyRevision_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + aclPolicyRevision_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the ACL policy revision this status
          +     * refers to. Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for aclPolicyRevision. + */ + public com.google.protobuf.ByteString getAclPolicyRevisionBytes() { + java.lang.Object ref = aclPolicyRevision_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aclPolicyRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the ACL policy revision this status
          +     * refers to. Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The aclPolicyRevision to set. + * @return This builder for chaining. + */ + public Builder setAclPolicyRevision(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + aclPolicyRevision_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the ACL policy revision this status
          +     * refers to. Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAclPolicyRevision() { + aclPolicyRevision_ = getDefaultInstance().getAclPolicyRevision(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the ACL policy revision this status
          +     * refers to. Format:
          +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +     * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for aclPolicyRevision to set. + * @return This builder for chaining. + */ + public Builder setAclPolicyRevisionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + aclPolicyRevision_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long aclPolicyRevisionNumber_; + + /** + * + * + *
          +     * Output only. The revision number of the ACL policy revision this status
          +     * refers to.
          +     * 
          + * + * int64 acl_policy_revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The aclPolicyRevisionNumber. + */ + @java.lang.Override + public long getAclPolicyRevisionNumber() { + return aclPolicyRevisionNumber_; + } + + /** + * + * + *
          +     * Output only. The revision number of the ACL policy revision this status
          +     * refers to.
          +     * 
          + * + * int64 acl_policy_revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The aclPolicyRevisionNumber to set. + * @return This builder for chaining. + */ + public Builder setAclPolicyRevisionNumber(long value) { + + aclPolicyRevisionNumber_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The revision number of the ACL policy revision this status
          +     * refers to.
          +     * 
          + * + * int64 acl_policy_revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAclPolicyRevisionNumber() { + bitField0_ = (bitField0_ & ~0x00000002); + aclPolicyRevisionNumber_ = 0L; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
          +     * Output only. AclPolicyRevision state.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
          +     * Output only. AclPolicyRevision state.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. AclPolicyRevision state.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.State getState() { + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.State result = + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.State.forNumber(state_); + return result == null + ? com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
          +     * Output only. AclPolicyRevision state.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. AclPolicyRevision state.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object errorMessage_ = ""; + + /** + * + * + *
          +     * Output only. Human-readable error message providing more details for FAILED
          +     * states.
          +     * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorMessage. + */ + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. Human-readable error message providing more details for FAILED
          +     * states.
          +     * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for errorMessage. + */ + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. Human-readable error message providing more details for FAILED
          +     * states.
          +     * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + errorMessage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Human-readable error message providing more details for FAILED
          +     * states.
          +     * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearErrorMessage() { + errorMessage_ = getDefaultInstance().getErrorMessage(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Human-readable error message providing more details for FAILED
          +     * states.
          +     * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1beta.AclPolicyRevisionStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1beta.AclPolicyRevisionStatus) + private static final com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus(); + } + + public static com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AclPolicyRevisionStatus 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.memorystore.v1beta.AclPolicyRevisionStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyRevisionStatusOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyRevisionStatusOrBuilder.java new file mode 100644 index 000000000000..5237121acc3c --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclPolicyRevisionStatusOrBuilder.java @@ -0,0 +1,134 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +@com.google.protobuf.Generated +public interface AclPolicyRevisionStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1beta.AclPolicyRevisionStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Output only. The resource name of the ACL policy revision this status
          +   * refers to. Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The aclPolicyRevision. + */ + java.lang.String getAclPolicyRevision(); + + /** + * + * + *
          +   * Output only. The resource name of the ACL policy revision this status
          +   * refers to. Format:
          +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
          +   * 
          + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for aclPolicyRevision. + */ + com.google.protobuf.ByteString getAclPolicyRevisionBytes(); + + /** + * + * + *
          +   * Output only. The revision number of the ACL policy revision this status
          +   * refers to.
          +   * 
          + * + * int64 acl_policy_revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The aclPolicyRevisionNumber. + */ + long getAclPolicyRevisionNumber(); + + /** + * + * + *
          +   * Output only. AclPolicyRevision state.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
          +   * Output only. AclPolicyRevision state.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.State getState(); + + /** + * + * + *
          +   * Output only. Human-readable error message providing more details for FAILED
          +   * states.
          +   * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorMessage. + */ + java.lang.String getErrorMessage(); + + /** + * + * + *
          +   * Output only. Human-readable error message providing more details for FAILED
          +   * states.
          +   * 
          + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for errorMessage. + */ + com.google.protobuf.ByteString getErrorMessageBytes(); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclRule.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclRule.java new file mode 100644 index 000000000000..154403e73f96 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclRule.java @@ -0,0 +1,805 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +/** + * + * + *
          + * A single ACL rule which defines the policy for a user.
          + * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.AclRule} + */ +@com.google.protobuf.Generated +public final class AclRule extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1beta.AclRule) + AclRuleOrBuilder { + 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= */ "", + "AclRule"); + } + + // Use AclRule.newBuilder() to construct. + private AclRule(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AclRule() { + username_ = ""; + rule_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.AclRule.class, + com.google.cloud.memorystore.v1beta.AclRule.Builder.class); + } + + public static final int USERNAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object username_ = ""; + + /** + * + * + *
          +   * Required. Specifies the IAM user or service account to be added to the ACL
          +   * policy. This username will be directly set on the Valkey OSS.
          +   * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + @java.lang.Override + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. Specifies the IAM user or service account to be added to the ACL
          +   * policy. This username will be directly set on the Valkey OSS.
          +   * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RULE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object rule_ = ""; + + /** + * + * + *
          +   * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +   * +@all" The format of the rule is defined by Valkey OSS:
          +   * https://valkey.io/topics/acl/
          +   * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rule. + */ + @java.lang.Override + public java.lang.String getRule() { + java.lang.Object ref = rule_; + 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(); + rule_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +   * +@all" The format of the rule is defined by Valkey OSS:
          +   * https://valkey.io/topics/acl/
          +   * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRuleBytes() { + java.lang.Object ref = rule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, username_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rule_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, rule_); + } + 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(username_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, username_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rule_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, rule_); + } + 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.memorystore.v1beta.AclRule)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1beta.AclRule other = + (com.google.cloud.memorystore.v1beta.AclRule) obj; + + if (!getUsername().equals(other.getUsername())) return false; + if (!getRule().equals(other.getRule())) 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) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + RULE_FIELD_NUMBER; + hash = (53 * hash) + getRule().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.memorystore.v1beta.AclRule parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.AclRule 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.memorystore.v1beta.AclRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.AclRule 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.memorystore.v1beta.AclRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.AclRule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1beta.AclRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.AclRule 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.memorystore.v1beta.AclRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.AclRule 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.memorystore.v1beta.AclRule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.AclRule 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.memorystore.v1beta.AclRule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * A single ACL rule which defines the policy for a user.
          +   * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.AclRule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1beta.AclRule) + com.google.cloud.memorystore.v1beta.AclRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.AclRule.class, + com.google.cloud.memorystore.v1beta.AclRule.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1beta.AclRule.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + username_ = ""; + rule_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_AclRule_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclRule getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1beta.AclRule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclRule build() { + com.google.cloud.memorystore.v1beta.AclRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclRule buildPartial() { + com.google.cloud.memorystore.v1beta.AclRule result = + new com.google.cloud.memorystore.v1beta.AclRule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.memorystore.v1beta.AclRule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.username_ = username_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rule_ = rule_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1beta.AclRule) { + return mergeFrom((com.google.cloud.memorystore.v1beta.AclRule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1beta.AclRule other) { + if (other == com.google.cloud.memorystore.v1beta.AclRule.getDefaultInstance()) return this; + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRule().isEmpty()) { + rule_ = other.rule_; + bitField0_ |= 0x00000002; + 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: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + rule_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object username_ = ""; + + /** + * + * + *
          +     * Required. Specifies the IAM user or service account to be added to the ACL
          +     * policy. This username will be directly set on the Valkey OSS.
          +     * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. Specifies the IAM user or service account to be added to the ACL
          +     * policy. This username will be directly set on the Valkey OSS.
          +     * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. Specifies the IAM user or service account to be added to the ACL
          +     * policy. This username will be directly set on the Valkey OSS.
          +     * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The username to set. + * @return This builder for chaining. + */ + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + username_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Specifies the IAM user or service account to be added to the ACL
          +     * policy. This username will be directly set on the Valkey OSS.
          +     * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUsername() { + username_ = getDefaultInstance().getUsername(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Specifies the IAM user or service account to be added to the ACL
          +     * policy. This username will be directly set on the Valkey OSS.
          +     * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for username to set. + * @return This builder for chaining. + */ + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object rule_ = ""; + + /** + * + * + *
          +     * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +     * +@all" The format of the rule is defined by Valkey OSS:
          +     * https://valkey.io/topics/acl/
          +     * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rule. + */ + public java.lang.String getRule() { + java.lang.Object ref = rule_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rule_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +     * +@all" The format of the rule is defined by Valkey OSS:
          +     * https://valkey.io/topics/acl/
          +     * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rule. + */ + public com.google.protobuf.ByteString getRuleBytes() { + java.lang.Object ref = rule_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +     * +@all" The format of the rule is defined by Valkey OSS:
          +     * https://valkey.io/topics/acl/
          +     * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The rule to set. + * @return This builder for chaining. + */ + public Builder setRule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rule_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +     * +@all" The format of the rule is defined by Valkey OSS:
          +     * https://valkey.io/topics/acl/
          +     * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRule() { + rule_ = getDefaultInstance().getRule(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +     * +@all" The format of the rule is defined by Valkey OSS:
          +     * https://valkey.io/topics/acl/
          +     * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for rule to set. + * @return This builder for chaining. + */ + public Builder setRuleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rule_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1beta.AclRule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1beta.AclRule) + private static final com.google.cloud.memorystore.v1beta.AclRule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1beta.AclRule(); + } + + public static com.google.cloud.memorystore.v1beta.AclRule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AclRule 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.memorystore.v1beta.AclRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclRuleOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclRuleOrBuilder.java new file mode 100644 index 000000000000..43298209eaf1 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/AclRuleOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +@com.google.protobuf.Generated +public interface AclRuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1beta.AclRule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Specifies the IAM user or service account to be added to the ACL
          +   * policy. This username will be directly set on the Valkey OSS.
          +   * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + java.lang.String getUsername(); + + /** + * + * + *
          +   * Required. Specifies the IAM user or service account to be added to the ACL
          +   * policy. This username will be directly set on the Valkey OSS.
          +   * 
          + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + com.google.protobuf.ByteString getUsernameBytes(); + + /** + * + * + *
          +   * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +   * +@all" The format of the rule is defined by Valkey OSS:
          +   * https://valkey.io/topics/acl/
          +   * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rule. + */ + java.lang.String getRule(); + + /** + * + * + *
          +   * Required. The rule to be applied to the username. Ex: "on >password123 ~*
          +   * +@all" The format of the rule is defined by Valkey OSS:
          +   * https://valkey.io/topics/acl/
          +   * 
          + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rule. + */ + com.google.protobuf.ByteString getRuleBytes(); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/CreateAclPolicyRequest.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/CreateAclPolicyRequest.java new file mode 100644 index 000000000000..018361ade792 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/CreateAclPolicyRequest.java @@ -0,0 +1,1390 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +/** + * + * + *
          + * Request for `CreateAclPolicy`.
          + * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.CreateAclPolicyRequest} + */ +@com.google.protobuf.Generated +public final class CreateAclPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1beta.CreateAclPolicyRequest) + CreateAclPolicyRequestOrBuilder { + 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= */ "", + "CreateAclPolicyRequest"); + } + + // Use CreateAclPolicyRequest.newBuilder() to construct. + private CreateAclPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateAclPolicyRequest() { + parent_ = ""; + aclPolicyId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_CreateAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_CreateAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest.class, + com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
          +   * Required. The resource name of the ACL policy location using the form:
          +   * `projects/{project}/locations/{location}`
          +   * where `location` refers to a Google Cloud region.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The resource name of the ACL policy location using the form:
          +   * `projects/{project}/locations/{location}`
          +   * where `location` refers to a Google Cloud region.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACL_POLICY_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object aclPolicyId_ = ""; + + /** + * + * + *
          +   * Required. The logical name of the ACL policy in the customer project
          +   * with the following restrictions:
          +   *
          +   * * Must contain only lowercase letters, numbers, and hyphens.
          +   * * Must start with a letter.
          +   * * Must be between 1-63 characters.
          +   * * Must end with a number or a letter.
          +   * * Must be unique within the customer project / location
          +   * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The aclPolicyId. + */ + @java.lang.Override + public java.lang.String getAclPolicyId() { + java.lang.Object ref = aclPolicyId_; + 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(); + aclPolicyId_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The logical name of the ACL policy in the customer project
          +   * with the following restrictions:
          +   *
          +   * * Must contain only lowercase letters, numbers, and hyphens.
          +   * * Must start with a letter.
          +   * * Must be between 1-63 characters.
          +   * * Must end with a number or a letter.
          +   * * Must be unique within the customer project / location
          +   * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for aclPolicyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAclPolicyIdBytes() { + java.lang.Object ref = aclPolicyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aclPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACL_POLICY_FIELD_NUMBER = 3; + private com.google.cloud.memorystore.v1beta.AclPolicy aclPolicy_; + + /** + * + * + *
          +   * Required. The ACL policy that is to be created.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclPolicy field is set. + */ + @java.lang.Override + public boolean hasAclPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Required. The ACL policy that is to be created.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclPolicy. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicy getAclPolicy() { + return aclPolicy_ == null + ? com.google.cloud.memorystore.v1beta.AclPolicy.getDefaultInstance() + : aclPolicy_; + } + + /** + * + * + *
          +   * Required. The ACL policy that is to be created.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder getAclPolicyOrBuilder() { + return aclPolicy_ == null + ? com.google.cloud.memorystore.v1beta.AclPolicy.getDefaultInstance() + : aclPolicy_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * .
          +   * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * .
          +   * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(aclPolicyId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, aclPolicyId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAclPolicy()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(aclPolicyId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, aclPolicyId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAclPolicy()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + 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.memorystore.v1beta.CreateAclPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest other = + (com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getAclPolicyId().equals(other.getAclPolicyId())) return false; + if (hasAclPolicy() != other.hasAclPolicy()) return false; + if (hasAclPolicy()) { + if (!getAclPolicy().equals(other.getAclPolicy())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + ACL_POLICY_ID_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicyId().hashCode(); + if (hasAclPolicy()) { + hash = (37 * hash) + ACL_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicy().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest 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.memorystore.v1beta.CreateAclPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest 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.memorystore.v1beta.CreateAclPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest 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.memorystore.v1beta.CreateAclPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest 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.memorystore.v1beta.CreateAclPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest 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.memorystore.v1beta.CreateAclPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request for `CreateAclPolicy`.
          +   * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.CreateAclPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1beta.CreateAclPolicyRequest) + com.google.cloud.memorystore.v1beta.CreateAclPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_CreateAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_CreateAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest.class, + com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAclPolicyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + aclPolicyId_ = ""; + aclPolicy_ = null; + if (aclPolicyBuilder_ != null) { + aclPolicyBuilder_.dispose(); + aclPolicyBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_CreateAclPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest build() { + com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest buildPartial() { + com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest result = + new com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.aclPolicyId_ = aclPolicyId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.aclPolicy_ = aclPolicyBuilder_ == null ? aclPolicy_ : aclPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest) { + return mergeFrom((com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest other) { + if (other == com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAclPolicyId().isEmpty()) { + aclPolicyId_ = other.aclPolicyId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAclPolicy()) { + mergeAclPolicy(other.getAclPolicy()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + aclPolicyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetAclPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
          +     * Required. The resource name of the ACL policy location using the form:
          +     * `projects/{project}/locations/{location}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The resource name of the ACL policy location using the form:
          +     * `projects/{project}/locations/{location}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The resource name of the ACL policy location using the form:
          +     * `projects/{project}/locations/{location}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The resource name of the ACL policy location using the form:
          +     * `projects/{project}/locations/{location}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The resource name of the ACL policy location using the form:
          +     * `projects/{project}/locations/{location}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object aclPolicyId_ = ""; + + /** + * + * + *
          +     * Required. The logical name of the ACL policy in the customer project
          +     * with the following restrictions:
          +     *
          +     * * Must contain only lowercase letters, numbers, and hyphens.
          +     * * Must start with a letter.
          +     * * Must be between 1-63 characters.
          +     * * Must end with a number or a letter.
          +     * * Must be unique within the customer project / location
          +     * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The aclPolicyId. + */ + public java.lang.String getAclPolicyId() { + java.lang.Object ref = aclPolicyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + aclPolicyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The logical name of the ACL policy in the customer project
          +     * with the following restrictions:
          +     *
          +     * * Must contain only lowercase letters, numbers, and hyphens.
          +     * * Must start with a letter.
          +     * * Must be between 1-63 characters.
          +     * * Must end with a number or a letter.
          +     * * Must be unique within the customer project / location
          +     * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for aclPolicyId. + */ + public com.google.protobuf.ByteString getAclPolicyIdBytes() { + java.lang.Object ref = aclPolicyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aclPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The logical name of the ACL policy in the customer project
          +     * with the following restrictions:
          +     *
          +     * * Must contain only lowercase letters, numbers, and hyphens.
          +     * * Must start with a letter.
          +     * * Must be between 1-63 characters.
          +     * * Must end with a number or a letter.
          +     * * Must be unique within the customer project / location
          +     * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The aclPolicyId to set. + * @return This builder for chaining. + */ + public Builder setAclPolicyId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + aclPolicyId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The logical name of the ACL policy in the customer project
          +     * with the following restrictions:
          +     *
          +     * * Must contain only lowercase letters, numbers, and hyphens.
          +     * * Must start with a letter.
          +     * * Must be between 1-63 characters.
          +     * * Must end with a number or a letter.
          +     * * Must be unique within the customer project / location
          +     * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAclPolicyId() { + aclPolicyId_ = getDefaultInstance().getAclPolicyId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The logical name of the ACL policy in the customer project
          +     * with the following restrictions:
          +     *
          +     * * Must contain only lowercase letters, numbers, and hyphens.
          +     * * Must start with a letter.
          +     * * Must be between 1-63 characters.
          +     * * Must end with a number or a letter.
          +     * * Must be unique within the customer project / location
          +     * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for aclPolicyId to set. + * @return This builder for chaining. + */ + public Builder setAclPolicyIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + aclPolicyId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.memorystore.v1beta.AclPolicy aclPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1beta.AclPolicy, + com.google.cloud.memorystore.v1beta.AclPolicy.Builder, + com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder> + aclPolicyBuilder_; + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclPolicy field is set. + */ + public boolean hasAclPolicy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclPolicy. + */ + public com.google.cloud.memorystore.v1beta.AclPolicy getAclPolicy() { + if (aclPolicyBuilder_ == null) { + return aclPolicy_ == null + ? com.google.cloud.memorystore.v1beta.AclPolicy.getDefaultInstance() + : aclPolicy_; + } else { + return aclPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAclPolicy(com.google.cloud.memorystore.v1beta.AclPolicy value) { + if (aclPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aclPolicy_ = value; + } else { + aclPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAclPolicy( + com.google.cloud.memorystore.v1beta.AclPolicy.Builder builderForValue) { + if (aclPolicyBuilder_ == null) { + aclPolicy_ = builderForValue.build(); + } else { + aclPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAclPolicy(com.google.cloud.memorystore.v1beta.AclPolicy value) { + if (aclPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && aclPolicy_ != null + && aclPolicy_ != com.google.cloud.memorystore.v1beta.AclPolicy.getDefaultInstance()) { + getAclPolicyBuilder().mergeFrom(value); + } else { + aclPolicy_ = value; + } + } else { + aclPolicyBuilder_.mergeFrom(value); + } + if (aclPolicy_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAclPolicy() { + bitField0_ = (bitField0_ & ~0x00000004); + aclPolicy_ = null; + if (aclPolicyBuilder_ != null) { + aclPolicyBuilder_.dispose(); + aclPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.memorystore.v1beta.AclPolicy.Builder getAclPolicyBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetAclPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder getAclPolicyOrBuilder() { + if (aclPolicyBuilder_ != null) { + return aclPolicyBuilder_.getMessageOrBuilder(); + } else { + return aclPolicy_ == null + ? com.google.cloud.memorystore.v1beta.AclPolicy.getDefaultInstance() + : aclPolicy_; + } + } + + /** + * + * + *
          +     * Required. The ACL policy that is to be created.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1beta.AclPolicy, + com.google.cloud.memorystore.v1beta.AclPolicy.Builder, + com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder> + internalGetAclPolicyFieldBuilder() { + if (aclPolicyBuilder_ == null) { + aclPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1beta.AclPolicy, + com.google.cloud.memorystore.v1beta.AclPolicy.Builder, + com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder>( + getAclPolicy(), getParentForChildren(), isClean()); + aclPolicy_ = null; + } + return aclPolicyBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * .
          +     * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * .
          +     * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * .
          +     * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * .
          +     * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * .
          +     * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1beta.CreateAclPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1beta.CreateAclPolicyRequest) + private static final com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest(); + } + + public static com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAclPolicyRequest 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.memorystore.v1beta.CreateAclPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/CreateAclPolicyRequestOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/CreateAclPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..393e8b5addee --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/CreateAclPolicyRequestOrBuilder.java @@ -0,0 +1,177 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +@com.google.protobuf.Generated +public interface CreateAclPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1beta.CreateAclPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The resource name of the ACL policy location using the form:
          +   * `projects/{project}/locations/{location}`
          +   * where `location` refers to a Google Cloud region.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
          +   * Required. The resource name of the ACL policy location using the form:
          +   * `projects/{project}/locations/{location}`
          +   * where `location` refers to a Google Cloud region.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Required. The logical name of the ACL policy in the customer project
          +   * with the following restrictions:
          +   *
          +   * * Must contain only lowercase letters, numbers, and hyphens.
          +   * * Must start with a letter.
          +   * * Must be between 1-63 characters.
          +   * * Must end with a number or a letter.
          +   * * Must be unique within the customer project / location
          +   * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The aclPolicyId. + */ + java.lang.String getAclPolicyId(); + + /** + * + * + *
          +   * Required. The logical name of the ACL policy in the customer project
          +   * with the following restrictions:
          +   *
          +   * * Must contain only lowercase letters, numbers, and hyphens.
          +   * * Must start with a letter.
          +   * * Must be between 1-63 characters.
          +   * * Must end with a number or a letter.
          +   * * Must be unique within the customer project / location
          +   * 
          + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for aclPolicyId. + */ + com.google.protobuf.ByteString getAclPolicyIdBytes(); + + /** + * + * + *
          +   * Required. The ACL policy that is to be created.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclPolicy field is set. + */ + boolean hasAclPolicy(); + + /** + * + * + *
          +   * Required. The ACL policy that is to be created.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclPolicy. + */ + com.google.cloud.memorystore.v1beta.AclPolicy getAclPolicy(); + + /** + * + * + *
          +   * Required. The ACL policy that is to be created.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder getAclPolicyOrBuilder(); + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * .
          +   * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * .
          +   * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/DeleteAclPolicyRequest.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/DeleteAclPolicyRequest.java new file mode 100644 index 000000000000..b87f2bc47129 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/DeleteAclPolicyRequest.java @@ -0,0 +1,1024 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +/** + * + * + *
          + * Request for `DeleteAclPolicy`.
          + * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.DeleteAclPolicyRequest} + */ +@com.google.protobuf.Generated +public final class DeleteAclPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1beta.DeleteAclPolicyRequest) + DeleteAclPolicyRequestOrBuilder { + 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= */ "", + "DeleteAclPolicyRequest"); + } + + // Use DeleteAclPolicyRequest.newBuilder() to construct. + private DeleteAclPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteAclPolicyRequest() { + name_ = ""; + requestId_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_DeleteAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_DeleteAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest.class, + com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Required. Memorystore ACL policy resource name using the form:
          +   * `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}`
          +   * where `location` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. Memorystore ACL policy resource name using the form:
          +   * `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}`
          +   * where `location` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
          +   * Optional. Etag of the ACL policy. If this is different from the server's
          +   * etag, the request will fail with an ABORTED error.
          +   * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Etag of the ACL policy. If this is different from the server's
          +   * etag, the request will fail with an ABORTED error.
          +   * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, etag_); + } + 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.memorystore.v1beta.DeleteAclPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest other = + (com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest 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.memorystore.v1beta.DeleteAclPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest 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.memorystore.v1beta.DeleteAclPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest 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.memorystore.v1beta.DeleteAclPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest 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.memorystore.v1beta.DeleteAclPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest 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.memorystore.v1beta.DeleteAclPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request for `DeleteAclPolicy`.
          +   * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.DeleteAclPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1beta.DeleteAclPolicyRequest) + com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_DeleteAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_DeleteAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest.class, + com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_DeleteAclPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest build() { + com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest buildPartial() { + com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest result = + new com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.etag_ = etag_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest) { + return mergeFrom((com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest other) { + if (other == com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + etag_ = 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 name_ = ""; + + /** + * + * + *
          +     * Required. Memorystore ACL policy resource name using the form:
          +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. Memorystore ACL policy resource name using the form:
          +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. Memorystore ACL policy resource name using the form:
          +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Memorystore ACL policy resource name using the form:
          +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Memorystore ACL policy resource name using the form:
          +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
          +     * Optional. Etag of the ACL policy. If this is different from the server's
          +     * etag, the request will fail with an ABORTED error.
          +     * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Etag of the ACL policy. If this is different from the server's
          +     * etag, the request will fail with an ABORTED error.
          +     * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Etag of the ACL policy. If this is different from the server's
          +     * etag, the request will fail with an ABORTED error.
          +     * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Etag of the ACL policy. If this is different from the server's
          +     * etag, the request will fail with an ABORTED error.
          +     * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Etag of the ACL policy. If this is different from the server's
          +     * etag, the request will fail with an ABORTED error.
          +     * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1beta.DeleteAclPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1beta.DeleteAclPolicyRequest) + private static final com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest(); + } + + public static com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAclPolicyRequest 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.memorystore.v1beta.DeleteAclPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/DeleteAclPolicyRequestOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/DeleteAclPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..e548ae08ed26 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/DeleteAclPolicyRequestOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +@com.google.protobuf.Generated +public interface DeleteAclPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1beta.DeleteAclPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Memorystore ACL policy resource name using the form:
          +   * `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}`
          +   * where `location` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Required. Memorystore ACL policy resource name using the form:
          +   * `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}`
          +   * where `location` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
          +   * Optional. Etag of the ACL policy. If this is different from the server's
          +   * etag, the request will fail with an ABORTED error.
          +   * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
          +   * Optional. Etag of the ACL policy. If this is different from the server's
          +   * etag, the request will fail with an ABORTED error.
          +   * 
          + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/GetAclPolicyRequest.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/GetAclPolicyRequest.java new file mode 100644 index 000000000000..9c975ca46af8 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/GetAclPolicyRequest.java @@ -0,0 +1,625 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +/** + * + * + *
          + * Request for `GetAclPolicy`.
          + * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.GetAclPolicyRequest} + */ +@com.google.protobuf.Generated +public final class GetAclPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1beta.GetAclPolicyRequest) + GetAclPolicyRequestOrBuilder { + 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= */ "", + "GetAclPolicyRequest"); + } + + // Use GetAclPolicyRequest.newBuilder() to construct. + private GetAclPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAclPolicyRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_GetAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_GetAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.GetAclPolicyRequest.class, + com.google.cloud.memorystore.v1beta.GetAclPolicyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Required. Memorystore ACL policy resource name using the form:
          +   * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}`
          +   * where `location` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. Memorystore ACL policy resource name using the form:
          +   * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}`
          +   * where `location` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.memorystore.v1beta.GetAclPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1beta.GetAclPolicyRequest other = + (com.google.cloud.memorystore.v1beta.GetAclPolicyRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.memorystore.v1beta.GetAclPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.GetAclPolicyRequest 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.memorystore.v1beta.GetAclPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.GetAclPolicyRequest 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.memorystore.v1beta.GetAclPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.GetAclPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1beta.GetAclPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.GetAclPolicyRequest 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.memorystore.v1beta.GetAclPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.GetAclPolicyRequest 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.memorystore.v1beta.GetAclPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.GetAclPolicyRequest 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.memorystore.v1beta.GetAclPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request for `GetAclPolicy`.
          +   * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.GetAclPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1beta.GetAclPolicyRequest) + com.google.cloud.memorystore.v1beta.GetAclPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_GetAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_GetAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.GetAclPolicyRequest.class, + com.google.cloud.memorystore.v1beta.GetAclPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1beta.GetAclPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_GetAclPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.GetAclPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1beta.GetAclPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.GetAclPolicyRequest build() { + com.google.cloud.memorystore.v1beta.GetAclPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.GetAclPolicyRequest buildPartial() { + com.google.cloud.memorystore.v1beta.GetAclPolicyRequest result = + new com.google.cloud.memorystore.v1beta.GetAclPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.memorystore.v1beta.GetAclPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1beta.GetAclPolicyRequest) { + return mergeFrom((com.google.cloud.memorystore.v1beta.GetAclPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1beta.GetAclPolicyRequest other) { + if (other == com.google.cloud.memorystore.v1beta.GetAclPolicyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Required. Memorystore ACL policy resource name using the form:
          +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. Memorystore ACL policy resource name using the form:
          +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. Memorystore ACL policy resource name using the form:
          +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Memorystore ACL policy resource name using the form:
          +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Memorystore ACL policy resource name using the form:
          +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1beta.GetAclPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1beta.GetAclPolicyRequest) + private static final com.google.cloud.memorystore.v1beta.GetAclPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1beta.GetAclPolicyRequest(); + } + + public static com.google.cloud.memorystore.v1beta.GetAclPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAclPolicyRequest 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.memorystore.v1beta.GetAclPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/GetAclPolicyRequestOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/GetAclPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..2eeead4cf726 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/GetAclPolicyRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +@com.google.protobuf.Generated +public interface GetAclPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1beta.GetAclPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Memorystore ACL policy resource name using the form:
          +   * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}`
          +   * where `location` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Required. Memorystore ACL policy resource name using the form:
          +   * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}`
          +   * where `location` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/GetAclPolicyRevisionRequest.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/GetAclPolicyRevisionRequest.java new file mode 100644 index 000000000000..3e77a49026e0 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/GetAclPolicyRevisionRequest.java @@ -0,0 +1,632 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +/** + * + * + *
          + * Request for `GetAclPolicyRevision`.
          + * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest} + */ +@com.google.protobuf.Generated +public final class GetAclPolicyRevisionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest) + GetAclPolicyRevisionRequestOrBuilder { + 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= */ "", + "GetAclPolicyRevisionRequest"); + } + + // Use GetAclPolicyRevisionRequest.newBuilder() to construct. + private GetAclPolicyRevisionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAclPolicyRevisionRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_GetAclPolicyRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_GetAclPolicyRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest.class, + com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Required. Memorystore ACL policy revision resource name using the form:
          +   * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}`
          +   * where `location` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. Memorystore ACL policy revision resource name using the form:
          +   * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}`
          +   * where `location` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.memorystore.v1beta.GetAclPolicyRevisionRequest)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest other = + (com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest 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.memorystore.v1beta.GetAclPolicyRevisionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest 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.memorystore.v1beta.GetAclPolicyRevisionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest 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.memorystore.v1beta.GetAclPolicyRevisionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest 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.memorystore.v1beta.GetAclPolicyRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest 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.memorystore.v1beta.GetAclPolicyRevisionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request for `GetAclPolicyRevision`.
          +   * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest) + com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_GetAclPolicyRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_GetAclPolicyRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest.class, + com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_GetAclPolicyRevisionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest + getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest build() { + com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest buildPartial() { + com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest result = + new com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest) { + return mergeFrom((com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest other) { + if (other + == com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Required. Memorystore ACL policy revision resource name using the form:
          +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. Memorystore ACL policy revision resource name using the form:
          +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. Memorystore ACL policy revision resource name using the form:
          +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Memorystore ACL policy revision resource name using the form:
          +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Memorystore ACL policy revision resource name using the form:
          +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest) + private static final com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest(); + } + + public static com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAclPolicyRevisionRequest 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.memorystore.v1beta.GetAclPolicyRevisionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/GetAclPolicyRevisionRequestOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/GetAclPolicyRevisionRequestOrBuilder.java new file mode 100644 index 000000000000..481de45ac376 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/GetAclPolicyRevisionRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +@com.google.protobuf.Generated +public interface GetAclPolicyRevisionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Memorystore ACL policy revision resource name using the form:
          +   * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}`
          +   * where `location` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Required. Memorystore ACL policy revision resource name using the form:
          +   * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}`
          +   * where `location` refers to a Google Cloud region.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/Instance.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/Instance.java index 3fe705945795..632fd3c74e70 100644 --- a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/Instance.java +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/Instance.java @@ -71,6 +71,7 @@ private Instance() { availableMaintenanceVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); serverCaMode_ = 0; serverCaPool_ = ""; + aclPolicy_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -9096,7 +9097,7 @@ public boolean getSimulateMaintenanceEvent() { * * * @deprecated google.cloud.memorystore.v1beta.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1beta/memorystore.proto;l=744 + * google/cloud/memorystore/v1beta/memorystore.proto;l=836 * @return Whether the ondemandMaintenance field is set. */ @java.lang.Override @@ -9117,7 +9118,7 @@ public boolean hasOndemandMaintenance() { * * * @deprecated google.cloud.memorystore.v1beta.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1beta/memorystore.proto;l=744 + * google/cloud/memorystore/v1beta/memorystore.proto;l=836 * @return The ondemandMaintenance. */ @java.lang.Override @@ -9960,7 +9961,7 @@ public com.google.protobuf.ByteString getAvailableMaintenanceVersionsBytes(int i * * * @deprecated google.cloud.memorystore.v1beta.Instance.allow_fewer_zones_deployment is - * deprecated. See google/cloud/memorystore/v1beta/memorystore.proto;l=825 + * deprecated. See google/cloud/memorystore/v1beta/memorystore.proto;l=917 * @return The allowFewerZonesDeployment. */ @java.lang.Override @@ -10210,6 +10211,143 @@ public com.google.cloud.memorystore.v1beta.MigrationConfig getMigrationConfig() : migrationConfig_; } + public static final int ACL_POLICY_FIELD_NUMBER = 60; + + @SuppressWarnings("serial") + private volatile java.lang.Object aclPolicy_ = ""; + + /** + * + * + *
          +   * Optional. The ACL policy for the instance.
          +   * Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}
          +   * 
          + * + * + * optional string acl_policy = 60 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the aclPolicy field is set. + */ + @java.lang.Override + public boolean hasAclPolicy() { + return ((bitField0_ & 0x04000000) != 0); + } + + /** + * + * + *
          +   * Optional. The ACL policy for the instance.
          +   * Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}
          +   * 
          + * + * + * optional string acl_policy = 60 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The aclPolicy. + */ + @java.lang.Override + public java.lang.String getAclPolicy() { + java.lang.Object ref = aclPolicy_; + 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(); + aclPolicy_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. The ACL policy for the instance.
          +   * Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}
          +   * 
          + * + * + * optional string acl_policy = 60 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for aclPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAclPolicyBytes() { + java.lang.Object ref = aclPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aclPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACL_POLICY_INFO_FIELD_NUMBER = 62; + private com.google.cloud.memorystore.v1beta.AclPolicyInfo aclPolicyInfo_; + + /** + * + * + *
          +   * Output only. Details of the applied ACL policy.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the aclPolicyInfo field is set. + */ + @java.lang.Override + public boolean hasAclPolicyInfo() { + return ((bitField0_ & 0x08000000) != 0); + } + + /** + * + * + *
          +   * Output only. Details of the applied ACL policy.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The aclPolicyInfo. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicyInfo getAclPolicyInfo() { + return aclPolicyInfo_ == null + ? com.google.cloud.memorystore.v1beta.AclPolicyInfo.getDefaultInstance() + : aclPolicyInfo_; + } + + /** + * + * + *
          +   * Output only. Details of the applied ACL policy.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicyInfoOrBuilder getAclPolicyInfoOrBuilder() { + return aclPolicyInfo_ == null + ? com.google.cloud.memorystore.v1beta.AclPolicyInfo.getDefaultInstance() + : aclPolicyInfo_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -10369,6 +10507,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x02000000) != 0)) { output.writeMessage(59, getMigrationConfig()); } + if (((bitField0_ & 0x04000000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 60, aclPolicy_); + } + if (((bitField0_ & 0x08000000) != 0)) { + output.writeMessage(62, getAclPolicyInfo()); + } getUnknownFields().writeTo(output); } @@ -10558,6 +10702,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x02000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(59, getMigrationConfig()); } + if (((bitField0_ & 0x04000000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(60, aclPolicy_); + } + if (((bitField0_ & 0x08000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(62, getAclPolicyInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -10701,6 +10851,14 @@ public boolean equals(final java.lang.Object obj) { if (hasMigrationConfig()) { if (!getMigrationConfig().equals(other.getMigrationConfig())) return false; } + if (hasAclPolicy() != other.hasAclPolicy()) return false; + if (hasAclPolicy()) { + if (!getAclPolicy().equals(other.getAclPolicy())) return false; + } + if (hasAclPolicyInfo() != other.hasAclPolicyInfo()) return false; + if (hasAclPolicyInfo()) { + if (!getAclPolicyInfo().equals(other.getAclPolicyInfo())) return false; + } if (!getImportSourcesCase().equals(other.getImportSourcesCase())) return false; switch (importSourcesCase_) { case 23: @@ -10878,6 +11036,14 @@ public int hashCode() { hash = (37 * hash) + MIGRATION_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getMigrationConfig().hashCode(); } + if (hasAclPolicy()) { + hash = (37 * hash) + ACL_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicy().hashCode(); + } + if (hasAclPolicyInfo()) { + hash = (37 * hash) + ACL_POLICY_INFO_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicyInfo().hashCode(); + } switch (importSourcesCase_) { case 23: hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; @@ -11073,6 +11239,7 @@ private void maybeForceBuilderInitialization() { internalGetEncryptionInfoFieldBuilder(); internalGetAutomatedBackupConfigFieldBuilder(); internalGetMigrationConfigFieldBuilder(); + internalGetAclPolicyInfoFieldBuilder(); } } @@ -11202,6 +11369,12 @@ public Builder clear() { migrationConfigBuilder_.dispose(); migrationConfigBuilder_ = null; } + aclPolicy_ = ""; + aclPolicyInfo_ = null; + if (aclPolicyInfoBuilder_ != null) { + aclPolicyInfoBuilder_.dispose(); + aclPolicyInfoBuilder_ = null; + } importSourcesCase_ = 0; importSources_ = null; return this; @@ -11457,6 +11630,15 @@ private void buildPartial1(com.google.cloud.memorystore.v1beta.Instance result) migrationConfigBuilder_ == null ? migrationConfig_ : migrationConfigBuilder_.build(); to_bitField0_ |= 0x02000000; } + if (((from_bitField1_ & 0x00002000) != 0)) { + result.aclPolicy_ = aclPolicy_; + to_bitField0_ |= 0x04000000; + } + if (((from_bitField1_ & 0x00004000) != 0)) { + result.aclPolicyInfo_ = + aclPolicyInfoBuilder_ == null ? aclPolicyInfo_ : aclPolicyInfoBuilder_.build(); + to_bitField0_ |= 0x08000000; + } result.bitField0_ |= to_bitField0_; } @@ -11729,6 +11911,14 @@ public Builder mergeFrom(com.google.cloud.memorystore.v1beta.Instance other) { if (other.hasMigrationConfig()) { mergeMigrationConfig(other.getMigrationConfig()); } + if (other.hasAclPolicy()) { + aclPolicy_ = other.aclPolicy_; + bitField1_ |= 0x00002000; + onChanged(); + } + if (other.hasAclPolicyInfo()) { + mergeAclPolicyInfo(other.getAclPolicyInfo()); + } switch (other.getImportSourcesCase()) { case GCS_SOURCE: { @@ -12102,6 +12292,19 @@ public Builder mergeFrom( bitField1_ |= 0x00001000; break; } // case 474 + case 482: + { + aclPolicy_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00002000; + break; + } // case 482 + case 498: + { + input.readMessage( + internalGetAclPolicyInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00004000; + break; + } // case 498 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -17337,7 +17540,7 @@ public Builder clearSimulateMaintenanceEvent() { * * * @deprecated google.cloud.memorystore.v1beta.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1beta/memorystore.proto;l=744 + * google/cloud/memorystore/v1beta/memorystore.proto;l=836 * @return Whether the ondemandMaintenance field is set. */ @java.lang.Override @@ -17358,7 +17561,7 @@ public boolean hasOndemandMaintenance() { * * * @deprecated google.cloud.memorystore.v1beta.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1beta/memorystore.proto;l=744 + * google/cloud/memorystore/v1beta/memorystore.proto;l=836 * @return The ondemandMaintenance. */ @java.lang.Override @@ -17379,7 +17582,7 @@ public boolean getOndemandMaintenance() { * * * @deprecated google.cloud.memorystore.v1beta.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1beta/memorystore.proto;l=744 + * google/cloud/memorystore/v1beta/memorystore.proto;l=836 * @param value The ondemandMaintenance to set. * @return This builder for chaining. */ @@ -17404,7 +17607,7 @@ public Builder setOndemandMaintenance(boolean value) { * * * @deprecated google.cloud.memorystore.v1beta.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1beta/memorystore.proto;l=744 + * google/cloud/memorystore/v1beta/memorystore.proto;l=836 * @return This builder for chaining. */ @java.lang.Deprecated @@ -19573,7 +19776,7 @@ public Builder addAvailableMaintenanceVersionsBytes(com.google.protobuf.ByteStri * * * @deprecated google.cloud.memorystore.v1beta.Instance.allow_fewer_zones_deployment is - * deprecated. See google/cloud/memorystore/v1beta/memorystore.proto;l=825 + * deprecated. See google/cloud/memorystore/v1beta/memorystore.proto;l=917 * @return The allowFewerZonesDeployment. */ @java.lang.Override @@ -19594,7 +19797,7 @@ public boolean getAllowFewerZonesDeployment() { * * * @deprecated google.cloud.memorystore.v1beta.Instance.allow_fewer_zones_deployment is - * deprecated. See google/cloud/memorystore/v1beta/memorystore.proto;l=825 + * deprecated. See google/cloud/memorystore/v1beta/memorystore.proto;l=917 * @param value The allowFewerZonesDeployment to set. * @return This builder for chaining. */ @@ -19619,7 +19822,7 @@ public Builder setAllowFewerZonesDeployment(boolean value) { * * * @deprecated google.cloud.memorystore.v1beta.Instance.allow_fewer_zones_deployment is - * deprecated. See google/cloud/memorystore/v1beta/memorystore.proto;l=825 + * deprecated. See google/cloud/memorystore/v1beta/memorystore.proto;l=917 * @return This builder for chaining. */ @java.lang.Deprecated @@ -20201,6 +20404,364 @@ public com.google.cloud.memorystore.v1beta.MigrationConfig.Builder getMigrationC return migrationConfigBuilder_; } + private java.lang.Object aclPolicy_ = ""; + + /** + * + * + *
          +     * Optional. The ACL policy for the instance.
          +     * Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}
          +     * 
          + * + * + * optional string acl_policy = 60 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the aclPolicy field is set. + */ + public boolean hasAclPolicy() { + return ((bitField1_ & 0x00002000) != 0); + } + + /** + * + * + *
          +     * Optional. The ACL policy for the instance.
          +     * Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}
          +     * 
          + * + * + * optional string acl_policy = 60 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The aclPolicy. + */ + public java.lang.String getAclPolicy() { + java.lang.Object ref = aclPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + aclPolicy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. The ACL policy for the instance.
          +     * Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}
          +     * 
          + * + * + * optional string acl_policy = 60 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for aclPolicy. + */ + public com.google.protobuf.ByteString getAclPolicyBytes() { + java.lang.Object ref = aclPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aclPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. The ACL policy for the instance.
          +     * Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}
          +     * 
          + * + * + * optional string acl_policy = 60 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The aclPolicy to set. + * @return This builder for chaining. + */ + public Builder setAclPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + aclPolicy_ = value; + bitField1_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The ACL policy for the instance.
          +     * Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}
          +     * 
          + * + * + * optional string acl_policy = 60 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAclPolicy() { + aclPolicy_ = getDefaultInstance().getAclPolicy(); + bitField1_ = (bitField1_ & ~0x00002000); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The ACL policy for the instance.
          +     * Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}
          +     * 
          + * + * + * optional string acl_policy = 60 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for aclPolicy to set. + * @return This builder for chaining. + */ + public Builder setAclPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + aclPolicy_ = value; + bitField1_ |= 0x00002000; + onChanged(); + return this; + } + + private com.google.cloud.memorystore.v1beta.AclPolicyInfo aclPolicyInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1beta.AclPolicyInfo, + com.google.cloud.memorystore.v1beta.AclPolicyInfo.Builder, + com.google.cloud.memorystore.v1beta.AclPolicyInfoOrBuilder> + aclPolicyInfoBuilder_; + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the aclPolicyInfo field is set. + */ + public boolean hasAclPolicyInfo() { + return ((bitField1_ & 0x00004000) != 0); + } + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The aclPolicyInfo. + */ + public com.google.cloud.memorystore.v1beta.AclPolicyInfo getAclPolicyInfo() { + if (aclPolicyInfoBuilder_ == null) { + return aclPolicyInfo_ == null + ? com.google.cloud.memorystore.v1beta.AclPolicyInfo.getDefaultInstance() + : aclPolicyInfo_; + } else { + return aclPolicyInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAclPolicyInfo(com.google.cloud.memorystore.v1beta.AclPolicyInfo value) { + if (aclPolicyInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aclPolicyInfo_ = value; + } else { + aclPolicyInfoBuilder_.setMessage(value); + } + bitField1_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAclPolicyInfo( + com.google.cloud.memorystore.v1beta.AclPolicyInfo.Builder builderForValue) { + if (aclPolicyInfoBuilder_ == null) { + aclPolicyInfo_ = builderForValue.build(); + } else { + aclPolicyInfoBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAclPolicyInfo(com.google.cloud.memorystore.v1beta.AclPolicyInfo value) { + if (aclPolicyInfoBuilder_ == null) { + if (((bitField1_ & 0x00004000) != 0) + && aclPolicyInfo_ != null + && aclPolicyInfo_ + != com.google.cloud.memorystore.v1beta.AclPolicyInfo.getDefaultInstance()) { + getAclPolicyInfoBuilder().mergeFrom(value); + } else { + aclPolicyInfo_ = value; + } + } else { + aclPolicyInfoBuilder_.mergeFrom(value); + } + if (aclPolicyInfo_ != null) { + bitField1_ |= 0x00004000; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAclPolicyInfo() { + bitField1_ = (bitField1_ & ~0x00004000); + aclPolicyInfo_ = null; + if (aclPolicyInfoBuilder_ != null) { + aclPolicyInfoBuilder_.dispose(); + aclPolicyInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1beta.AclPolicyInfo.Builder getAclPolicyInfoBuilder() { + bitField1_ |= 0x00004000; + onChanged(); + return internalGetAclPolicyInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1beta.AclPolicyInfoOrBuilder getAclPolicyInfoOrBuilder() { + if (aclPolicyInfoBuilder_ != null) { + return aclPolicyInfoBuilder_.getMessageOrBuilder(); + } else { + return aclPolicyInfo_ == null + ? com.google.cloud.memorystore.v1beta.AclPolicyInfo.getDefaultInstance() + : aclPolicyInfo_; + } + } + + /** + * + * + *
          +     * Output only. Details of the applied ACL policy.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1beta.AclPolicyInfo, + com.google.cloud.memorystore.v1beta.AclPolicyInfo.Builder, + com.google.cloud.memorystore.v1beta.AclPolicyInfoOrBuilder> + internalGetAclPolicyInfoFieldBuilder() { + if (aclPolicyInfoBuilder_ == null) { + aclPolicyInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1beta.AclPolicyInfo, + com.google.cloud.memorystore.v1beta.AclPolicyInfo.Builder, + com.google.cloud.memorystore.v1beta.AclPolicyInfoOrBuilder>( + getAclPolicyInfo(), getParentForChildren(), isClean()); + aclPolicyInfo_ = null; + } + return aclPolicyInfoBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1beta.Instance) } diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/InstanceAclPolicyAttachment.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/InstanceAclPolicyAttachment.java new file mode 100644 index 000000000000..668cb09b1b6a --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/InstanceAclPolicyAttachment.java @@ -0,0 +1,1250 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +/** + * + * + *
          + * InstanceAclPolicyAttachment stores the ACL policy status for an attached
          + * instance for the revisions successfully applied, under application or failed.
          + * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment} + */ +@com.google.protobuf.Generated +public final class InstanceAclPolicyAttachment extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment) + InstanceAclPolicyAttachmentOrBuilder { + 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= */ "", + "InstanceAclPolicyAttachment"); + } + + // Use InstanceAclPolicyAttachment.newBuilder() to construct. + private InstanceAclPolicyAttachment(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InstanceAclPolicyAttachment() { + instance_ = ""; + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_InstanceAclPolicyAttachment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_InstanceAclPolicyAttachment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment.class, + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment.Builder.class); + } + + public static final int INSTANCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object instance_ = ""; + + /** + * + * + *
          +   * Output only. The resource name of the attached instance.
          +   * Format:
          +   * "projects/{project}/locations/{location}/instances/{instance}"
          +   * 
          + * + * + * string instance = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The instance. + */ + @java.lang.Override + public java.lang.String getInstance() { + java.lang.Object ref = instance_; + 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(); + instance_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. The resource name of the attached instance.
          +   * Format:
          +   * "projects/{project}/locations/{location}/instances/{instance}"
          +   * 
          + * + * + * string instance = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instance. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceBytes() { + java.lang.Object ref = instance_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACL_POLICY_REVISION_STATUSES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + aclPolicyRevisionStatuses_; + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getAclPolicyRevisionStatusesList() { + return aclPolicyRevisionStatuses_; + } + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatusOrBuilder> + getAclPolicyRevisionStatusesOrBuilderList() { + return aclPolicyRevisionStatuses_; + } + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getAclPolicyRevisionStatusesCount() { + return aclPolicyRevisionStatuses_.size(); + } + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus getAclPolicyRevisionStatuses( + int index) { + return aclPolicyRevisionStatuses_.get(index); + } + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatusOrBuilder + getAclPolicyRevisionStatusesOrBuilder(int index) { + return aclPolicyRevisionStatuses_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instance_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, instance_); + } + for (int i = 0; i < aclPolicyRevisionStatuses_.size(); i++) { + output.writeMessage(2, aclPolicyRevisionStatuses_.get(i)); + } + 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(instance_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, instance_); + } + for (int i = 0; i < aclPolicyRevisionStatuses_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, aclPolicyRevisionStatuses_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment other = + (com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment) obj; + + if (!getInstance().equals(other.getInstance())) return false; + if (!getAclPolicyRevisionStatusesList().equals(other.getAclPolicyRevisionStatusesList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getInstance().hashCode(); + if (getAclPolicyRevisionStatusesCount() > 0) { + hash = (37 * hash) + ACL_POLICY_REVISION_STATUSES_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicyRevisionStatusesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment 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.memorystore.v1beta.InstanceAclPolicyAttachment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment 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.memorystore.v1beta.InstanceAclPolicyAttachment parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment 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.memorystore.v1beta.InstanceAclPolicyAttachment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment 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.memorystore.v1beta.InstanceAclPolicyAttachment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment 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.memorystore.v1beta.InstanceAclPolicyAttachment 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; + } + + /** + * + * + *
          +   * InstanceAclPolicyAttachment stores the ACL policy status for an attached
          +   * instance for the revisions successfully applied, under application or failed.
          +   * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment) + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_InstanceAclPolicyAttachment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_InstanceAclPolicyAttachment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment.class, + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instance_ = ""; + if (aclPolicyRevisionStatusesBuilder_ == null) { + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + } else { + aclPolicyRevisionStatuses_ = null; + aclPolicyRevisionStatusesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_InstanceAclPolicyAttachment_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment + getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment build() { + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment buildPartial() { + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment result = + new com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment result) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + aclPolicyRevisionStatuses_ = + java.util.Collections.unmodifiableList(aclPolicyRevisionStatuses_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.aclPolicyRevisionStatuses_ = aclPolicyRevisionStatuses_; + } else { + result.aclPolicyRevisionStatuses_ = aclPolicyRevisionStatusesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instance_ = instance_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment) { + return mergeFrom((com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment other) { + if (other + == com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment.getDefaultInstance()) + return this; + if (!other.getInstance().isEmpty()) { + instance_ = other.instance_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (!other.aclPolicyRevisionStatuses_.isEmpty()) { + if (aclPolicyRevisionStatuses_.isEmpty()) { + aclPolicyRevisionStatuses_ = other.aclPolicyRevisionStatuses_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.addAll(other.aclPolicyRevisionStatuses_); + } + onChanged(); + } + } else { + if (!other.aclPolicyRevisionStatuses_.isEmpty()) { + if (aclPolicyRevisionStatusesBuilder_.isEmpty()) { + aclPolicyRevisionStatusesBuilder_.dispose(); + aclPolicyRevisionStatusesBuilder_ = null; + aclPolicyRevisionStatuses_ = other.aclPolicyRevisionStatuses_; + bitField0_ = (bitField0_ & ~0x00000002); + aclPolicyRevisionStatusesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAclPolicyRevisionStatusesFieldBuilder() + : null; + } else { + aclPolicyRevisionStatusesBuilder_.addAllMessages(other.aclPolicyRevisionStatuses_); + } + } + } + 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: + { + instance_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus m = + input.readMessage( + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.parser(), + extensionRegistry); + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(m); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object instance_ = ""; + + /** + * + * + *
          +     * Output only. The resource name of the attached instance.
          +     * Format:
          +     * "projects/{project}/locations/{location}/instances/{instance}"
          +     * 
          + * + * + * string instance = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The instance. + */ + public java.lang.String getInstance() { + java.lang.Object ref = instance_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instance_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the attached instance.
          +     * Format:
          +     * "projects/{project}/locations/{location}/instances/{instance}"
          +     * 
          + * + * + * string instance = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instance. + */ + public com.google.protobuf.ByteString getInstanceBytes() { + java.lang.Object ref = instance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the attached instance.
          +     * Format:
          +     * "projects/{project}/locations/{location}/instances/{instance}"
          +     * 
          + * + * + * string instance = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The instance to set. + * @return This builder for chaining. + */ + public Builder setInstance(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instance_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the attached instance.
          +     * Format:
          +     * "projects/{project}/locations/{location}/instances/{instance}"
          +     * 
          + * + * + * string instance = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearInstance() { + instance_ = getDefaultInstance().getInstance(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the attached instance.
          +     * Format:
          +     * "projects/{project}/locations/{location}/instances/{instance}"
          +     * 
          + * + * + * string instance = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for instance to set. + * @return This builder for chaining. + */ + public Builder setInstanceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instance_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + + private void ensureAclPolicyRevisionStatusesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + aclPolicyRevisionStatuses_ = + new java.util.ArrayList( + aclPolicyRevisionStatuses_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus, + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.Builder, + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatusOrBuilder> + aclPolicyRevisionStatusesBuilder_; + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getAclPolicyRevisionStatusesList() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return java.util.Collections.unmodifiableList(aclPolicyRevisionStatuses_); + } else { + return aclPolicyRevisionStatusesBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getAclPolicyRevisionStatusesCount() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return aclPolicyRevisionStatuses_.size(); + } else { + return aclPolicyRevisionStatusesBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus getAclPolicyRevisionStatuses( + int index) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return aclPolicyRevisionStatuses_.get(index); + } else { + return aclPolicyRevisionStatusesBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAclPolicyRevisionStatuses( + int index, com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus value) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.set(index, value); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAclPolicyRevisionStatuses( + int index, + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.Builder builderForValue) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.set(index, builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus value) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(value); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + int index, com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus value) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(index, value); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.Builder builderForValue) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + int index, + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.Builder builderForValue) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(index, builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllAclPolicyRevisionStatuses( + java.lang.Iterable + values) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aclPolicyRevisionStatuses_); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAclPolicyRevisionStatuses() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeAclPolicyRevisionStatuses(int index) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.remove(index); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.Builder + getAclPolicyRevisionStatusesBuilder(int index) { + return internalGetAclPolicyRevisionStatusesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatusOrBuilder + getAclPolicyRevisionStatusesOrBuilder(int index) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return aclPolicyRevisionStatuses_.get(index); + } else { + return aclPolicyRevisionStatusesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatusOrBuilder> + getAclPolicyRevisionStatusesOrBuilderList() { + if (aclPolicyRevisionStatusesBuilder_ != null) { + return aclPolicyRevisionStatusesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(aclPolicyRevisionStatuses_); + } + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.Builder + addAclPolicyRevisionStatusesBuilder() { + return internalGetAclPolicyRevisionStatusesFieldBuilder() + .addBuilder( + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.getDefaultInstance()); + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.Builder + addAclPolicyRevisionStatusesBuilder(int index) { + return internalGetAclPolicyRevisionStatusesFieldBuilder() + .addBuilder( + index, + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.getDefaultInstance()); + } + + /** + * + * + *
          +     * Output only. A list of status for various revisions of this ACL policy on
          +     * the instance.
          +     * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getAclPolicyRevisionStatusesBuilderList() { + return internalGetAclPolicyRevisionStatusesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus, + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.Builder, + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatusOrBuilder> + internalGetAclPolicyRevisionStatusesFieldBuilder() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + aclPolicyRevisionStatusesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus, + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.Builder, + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatusOrBuilder>( + aclPolicyRevisionStatuses_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + aclPolicyRevisionStatuses_ = null; + } + return aclPolicyRevisionStatusesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment) + private static final com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment(); + } + + public static com.google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceAclPolicyAttachment 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.memorystore.v1beta.InstanceAclPolicyAttachment + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/InstanceAclPolicyAttachmentOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/InstanceAclPolicyAttachmentOrBuilder.java new file mode 100644 index 000000000000..22749a9ad746 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/InstanceAclPolicyAttachmentOrBuilder.java @@ -0,0 +1,136 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +@com.google.protobuf.Generated +public interface InstanceAclPolicyAttachmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1beta.InstanceAclPolicyAttachment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Output only. The resource name of the attached instance.
          +   * Format:
          +   * "projects/{project}/locations/{location}/instances/{instance}"
          +   * 
          + * + * + * string instance = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The instance. + */ + java.lang.String getInstance(); + + /** + * + * + *
          +   * Output only. The resource name of the attached instance.
          +   * Format:
          +   * "projects/{project}/locations/{location}/instances/{instance}"
          +   * 
          + * + * + * string instance = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instance. + */ + com.google.protobuf.ByteString getInstanceBytes(); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAclPolicyRevisionStatusesList(); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus getAclPolicyRevisionStatuses( + int index); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAclPolicyRevisionStatusesCount(); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAclPolicyRevisionStatusesOrBuilderList(); + + /** + * + * + *
          +   * Output only. A list of status for various revisions of this ACL policy on
          +   * the instance.
          +   * 
          + * + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.memorystore.v1beta.AclPolicyRevisionStatusOrBuilder + getAclPolicyRevisionStatusesOrBuilder(int index); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/InstanceOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/InstanceOrBuilder.java index a944fc03bd1c..e6b558040ff8 100644 --- a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/InstanceOrBuilder.java +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/InstanceOrBuilder.java @@ -1166,7 +1166,7 @@ com.google.cloud.memorystore.v1beta.Instance.InstanceEndpointOrBuilder getEndpoi * * * @deprecated google.cloud.memorystore.v1beta.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1beta/memorystore.proto;l=744 + * google/cloud/memorystore/v1beta/memorystore.proto;l=836 * @return Whether the ondemandMaintenance field is set. */ @java.lang.Deprecated @@ -1184,7 +1184,7 @@ com.google.cloud.memorystore.v1beta.Instance.InstanceEndpointOrBuilder getEndpoi * * * @deprecated google.cloud.memorystore.v1beta.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1beta/memorystore.proto;l=744 + * google/cloud/memorystore/v1beta/memorystore.proto;l=836 * @return The ondemandMaintenance. */ @java.lang.Deprecated @@ -1778,7 +1778,7 @@ com.google.cloud.memorystore.v1beta.Instance.InstanceEndpointOrBuilder getEndpoi * * * @deprecated google.cloud.memorystore.v1beta.Instance.allow_fewer_zones_deployment is - * deprecated. See google/cloud/memorystore/v1beta/memorystore.proto;l=825 + * deprecated. See google/cloud/memorystore/v1beta/memorystore.proto;l=917 * @return The allowFewerZonesDeployment. */ @java.lang.Deprecated @@ -1953,5 +1953,96 @@ com.google.cloud.memorystore.v1beta.Instance.InstanceEndpointOrBuilder getEndpoi */ com.google.cloud.memorystore.v1beta.MigrationConfigOrBuilder getMigrationConfigOrBuilder(); + /** + * + * + *
          +   * Optional. The ACL policy for the instance.
          +   * Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}
          +   * 
          + * + * + * optional string acl_policy = 60 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the aclPolicy field is set. + */ + boolean hasAclPolicy(); + + /** + * + * + *
          +   * Optional. The ACL policy for the instance.
          +   * Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}
          +   * 
          + * + * + * optional string acl_policy = 60 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The aclPolicy. + */ + java.lang.String getAclPolicy(); + + /** + * + * + *
          +   * Optional. The ACL policy for the instance.
          +   * Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}
          +   * 
          + * + * + * optional string acl_policy = 60 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for aclPolicy. + */ + com.google.protobuf.ByteString getAclPolicyBytes(); + + /** + * + * + *
          +   * Output only. Details of the applied ACL policy.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the aclPolicyInfo field is set. + */ + boolean hasAclPolicyInfo(); + + /** + * + * + *
          +   * Output only. Details of the applied ACL policy.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The aclPolicyInfo. + */ + com.google.cloud.memorystore.v1beta.AclPolicyInfo getAclPolicyInfo(); + + /** + * + * + *
          +   * Output only. Details of the applied ACL policy.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.memorystore.v1beta.AclPolicyInfoOrBuilder getAclPolicyInfoOrBuilder(); + com.google.cloud.memorystore.v1beta.Instance.ImportSourcesCase getImportSourcesCase(); } diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/ListAclPoliciesRequest.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/ListAclPoliciesRequest.java new file mode 100644 index 000000000000..f281c96824a6 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/ListAclPoliciesRequest.java @@ -0,0 +1,950 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +/** + * + * + *
          + * Request for `ListAclPolicies`.
          + * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.ListAclPoliciesRequest} + */ +@com.google.protobuf.Generated +public final class ListAclPoliciesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1beta.ListAclPoliciesRequest) + ListAclPoliciesRequestOrBuilder { + 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= */ "", + "ListAclPoliciesRequest"); + } + + // Use ListAclPoliciesRequest.newBuilder() to construct. + private ListAclPoliciesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAclPoliciesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_ListAclPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_ListAclPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest.class, + com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
          +   * Required. The resource name of the ACL policy location using the form:
          +   * `projects/{project}/locations/{location}`
          +   * where `location` refers to a Google Cloud region.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The resource name of the ACL policy location using the form:
          +   * `projects/{project}/locations/{location}`
          +   * where `location` refers to a Google Cloud region.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
          +   * Optional. The maximum number of items to return.
          +   *
          +   * If not specified, a default value of 1000 will be used by the service.
          +   * Regardless of the page_size value, the response may include a partial list
          +   * and a caller should only rely on response's
          +   * `next_page_token`
          +   * to determine if there are more ACL policies left to be queried.
          +   *
          +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * `ListAclPolicies` request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * `ListAclPolicies` request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + 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.memorystore.v1beta.ListAclPoliciesRequest)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest other = + (com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest 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.memorystore.v1beta.ListAclPoliciesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest 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.memorystore.v1beta.ListAclPoliciesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest 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.memorystore.v1beta.ListAclPoliciesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest 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.memorystore.v1beta.ListAclPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest 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.memorystore.v1beta.ListAclPoliciesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request for `ListAclPolicies`.
          +   * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.ListAclPoliciesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1beta.ListAclPoliciesRequest) + com.google.cloud.memorystore.v1beta.ListAclPoliciesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_ListAclPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_ListAclPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest.class, + com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_ListAclPoliciesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest build() { + com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest buildPartial() { + com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest result = + new com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest) { + return mergeFrom((com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest other) { + if (other == com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = 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 parent_ = ""; + + /** + * + * + *
          +     * Required. The resource name of the ACL policy location using the form:
          +     * `projects/{project}/locations/{location}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The resource name of the ACL policy location using the form:
          +     * `projects/{project}/locations/{location}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The resource name of the ACL policy location using the form:
          +     * `projects/{project}/locations/{location}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The resource name of the ACL policy location using the form:
          +     * `projects/{project}/locations/{location}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The resource name of the ACL policy location using the form:
          +     * `projects/{project}/locations/{location}`
          +     * where `location` refers to a Google Cloud region.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
          +     * Optional. The maximum number of items to return.
          +     *
          +     * If not specified, a default value of 1000 will be used by the service.
          +     * Regardless of the page_size value, the response may include a partial list
          +     * and a caller should only rely on response's
          +     * `next_page_token`
          +     * to determine if there are more ACL policies left to be queried.
          +     *
          +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
          +     * Optional. The maximum number of items to return.
          +     *
          +     * If not specified, a default value of 1000 will be used by the service.
          +     * Regardless of the page_size value, the response may include a partial list
          +     * and a caller should only rely on response's
          +     * `next_page_token`
          +     * to determine if there are more ACL policies left to be queried.
          +     *
          +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The maximum number of items to return.
          +     *
          +     * If not specified, a default value of 1000 will be used by the service.
          +     * Regardless of the page_size value, the response may include a partial list
          +     * and a caller should only rely on response's
          +     * `next_page_token`
          +     * to determine if there are more ACL policies left to be queried.
          +     *
          +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicies` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicies` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicies` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicies` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicies` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1beta.ListAclPoliciesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1beta.ListAclPoliciesRequest) + private static final com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest(); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAclPoliciesRequest 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.memorystore.v1beta.ListAclPoliciesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/ListAclPoliciesRequestOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/ListAclPoliciesRequestOrBuilder.java new file mode 100644 index 000000000000..f08b8e2ce45d --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/ListAclPoliciesRequestOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +@com.google.protobuf.Generated +public interface ListAclPoliciesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1beta.ListAclPoliciesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The resource name of the ACL policy location using the form:
          +   * `projects/{project}/locations/{location}`
          +   * where `location` refers to a Google Cloud region.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
          +   * Required. The resource name of the ACL policy location using the form:
          +   * `projects/{project}/locations/{location}`
          +   * where `location` refers to a Google Cloud region.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Optional. The maximum number of items to return.
          +   *
          +   * If not specified, a default value of 1000 will be used by the service.
          +   * Regardless of the page_size value, the response may include a partial list
          +   * and a caller should only rely on response's
          +   * `next_page_token`
          +   * to determine if there are more ACL policies left to be queried.
          +   *
          +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * `ListAclPolicies` request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * `ListAclPolicies` request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/ListAclPoliciesResponse.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/ListAclPoliciesResponse.java new file mode 100644 index 000000000000..e02b624863ae --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/ListAclPoliciesResponse.java @@ -0,0 +1,1504 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +/** + * + * + *
          + * Response for `ListAclPolicies`.
          + * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.ListAclPoliciesResponse} + */ +@com.google.protobuf.Generated +public final class ListAclPoliciesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1beta.ListAclPoliciesResponse) + ListAclPoliciesResponseOrBuilder { + 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= */ "", + "ListAclPoliciesResponse"); + } + + // Use ListAclPoliciesResponse.newBuilder() to construct. + private ListAclPoliciesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAclPoliciesResponse() { + aclPolicies_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_ListAclPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_ListAclPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse.class, + com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse.Builder.class); + } + + public static final int ACL_POLICIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List aclPolicies_; + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + @java.lang.Override + public java.util.List getAclPoliciesList() { + return aclPolicies_; + } + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + @java.lang.Override + public java.util.List + getAclPoliciesOrBuilderList() { + return aclPolicies_; + } + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + @java.lang.Override + public int getAclPoliciesCount() { + return aclPolicies_.size(); + } + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicy getAclPolicies(int index) { + return aclPolicies_.get(index); + } + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder getAclPoliciesOrBuilder(int index) { + return aclPolicies_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < aclPolicies_.size(); i++) { + output.writeMessage(1, aclPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < aclPolicies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, aclPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse other = + (com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse) obj; + + if (!getAclPoliciesList().equals(other.getAclPoliciesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAclPoliciesCount() > 0) { + hash = (37 * hash) + ACL_POLICIES_FIELD_NUMBER; + hash = (53 * hash) + getAclPoliciesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse 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.memorystore.v1beta.ListAclPoliciesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse 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.memorystore.v1beta.ListAclPoliciesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse 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.memorystore.v1beta.ListAclPoliciesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse 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.memorystore.v1beta.ListAclPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse 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.memorystore.v1beta.ListAclPoliciesResponse 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; + } + + /** + * + * + *
          +   * Response for `ListAclPolicies`.
          +   * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.ListAclPoliciesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1beta.ListAclPoliciesResponse) + com.google.cloud.memorystore.v1beta.ListAclPoliciesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_ListAclPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_ListAclPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse.class, + com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (aclPoliciesBuilder_ == null) { + aclPolicies_ = java.util.Collections.emptyList(); + } else { + aclPolicies_ = null; + aclPoliciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_ListAclPoliciesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse build() { + com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse buildPartial() { + com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse result = + new com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse result) { + if (aclPoliciesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + aclPolicies_ = java.util.Collections.unmodifiableList(aclPolicies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.aclPolicies_ = aclPolicies_; + } else { + result.aclPolicies_ = aclPoliciesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse) { + return mergeFrom((com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse other) { + if (other == com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse.getDefaultInstance()) + return this; + if (aclPoliciesBuilder_ == null) { + if (!other.aclPolicies_.isEmpty()) { + if (aclPolicies_.isEmpty()) { + aclPolicies_ = other.aclPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAclPoliciesIsMutable(); + aclPolicies_.addAll(other.aclPolicies_); + } + onChanged(); + } + } else { + if (!other.aclPolicies_.isEmpty()) { + if (aclPoliciesBuilder_.isEmpty()) { + aclPoliciesBuilder_.dispose(); + aclPoliciesBuilder_ = null; + aclPolicies_ = other.aclPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + aclPoliciesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAclPoliciesFieldBuilder() + : null; + } else { + aclPoliciesBuilder_.addAllMessages(other.aclPolicies_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + 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: + { + com.google.cloud.memorystore.v1beta.AclPolicy m = + input.readMessage( + com.google.cloud.memorystore.v1beta.AclPolicy.parser(), extensionRegistry); + if (aclPoliciesBuilder_ == null) { + ensureAclPoliciesIsMutable(); + aclPolicies_.add(m); + } else { + aclPoliciesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + 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.util.List aclPolicies_ = + java.util.Collections.emptyList(); + + private void ensureAclPoliciesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + aclPolicies_ = + new java.util.ArrayList(aclPolicies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1beta.AclPolicy, + com.google.cloud.memorystore.v1beta.AclPolicy.Builder, + com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder> + aclPoliciesBuilder_; + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + public java.util.List getAclPoliciesList() { + if (aclPoliciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(aclPolicies_); + } else { + return aclPoliciesBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + public int getAclPoliciesCount() { + if (aclPoliciesBuilder_ == null) { + return aclPolicies_.size(); + } else { + return aclPoliciesBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + public com.google.cloud.memorystore.v1beta.AclPolicy getAclPolicies(int index) { + if (aclPoliciesBuilder_ == null) { + return aclPolicies_.get(index); + } else { + return aclPoliciesBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + public Builder setAclPolicies(int index, com.google.cloud.memorystore.v1beta.AclPolicy value) { + if (aclPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPoliciesIsMutable(); + aclPolicies_.set(index, value); + onChanged(); + } else { + aclPoliciesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + public Builder setAclPolicies( + int index, com.google.cloud.memorystore.v1beta.AclPolicy.Builder builderForValue) { + if (aclPoliciesBuilder_ == null) { + ensureAclPoliciesIsMutable(); + aclPolicies_.set(index, builderForValue.build()); + onChanged(); + } else { + aclPoliciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + public Builder addAclPolicies(com.google.cloud.memorystore.v1beta.AclPolicy value) { + if (aclPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPoliciesIsMutable(); + aclPolicies_.add(value); + onChanged(); + } else { + aclPoliciesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + public Builder addAclPolicies(int index, com.google.cloud.memorystore.v1beta.AclPolicy value) { + if (aclPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPoliciesIsMutable(); + aclPolicies_.add(index, value); + onChanged(); + } else { + aclPoliciesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + public Builder addAclPolicies( + com.google.cloud.memorystore.v1beta.AclPolicy.Builder builderForValue) { + if (aclPoliciesBuilder_ == null) { + ensureAclPoliciesIsMutable(); + aclPolicies_.add(builderForValue.build()); + onChanged(); + } else { + aclPoliciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + public Builder addAclPolicies( + int index, com.google.cloud.memorystore.v1beta.AclPolicy.Builder builderForValue) { + if (aclPoliciesBuilder_ == null) { + ensureAclPoliciesIsMutable(); + aclPolicies_.add(index, builderForValue.build()); + onChanged(); + } else { + aclPoliciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + public Builder addAllAclPolicies( + java.lang.Iterable values) { + if (aclPoliciesBuilder_ == null) { + ensureAclPoliciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aclPolicies_); + onChanged(); + } else { + aclPoliciesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + public Builder clearAclPolicies() { + if (aclPoliciesBuilder_ == null) { + aclPolicies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + aclPoliciesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + public Builder removeAclPolicies(int index) { + if (aclPoliciesBuilder_ == null) { + ensureAclPoliciesIsMutable(); + aclPolicies_.remove(index); + onChanged(); + } else { + aclPoliciesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + public com.google.cloud.memorystore.v1beta.AclPolicy.Builder getAclPoliciesBuilder(int index) { + return internalGetAclPoliciesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + public com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder getAclPoliciesOrBuilder( + int index) { + if (aclPoliciesBuilder_ == null) { + return aclPolicies_.get(index); + } else { + return aclPoliciesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + public java.util.List + getAclPoliciesOrBuilderList() { + if (aclPoliciesBuilder_ != null) { + return aclPoliciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(aclPolicies_); + } + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + public com.google.cloud.memorystore.v1beta.AclPolicy.Builder addAclPoliciesBuilder() { + return internalGetAclPoliciesFieldBuilder() + .addBuilder(com.google.cloud.memorystore.v1beta.AclPolicy.getDefaultInstance()); + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + public com.google.cloud.memorystore.v1beta.AclPolicy.Builder addAclPoliciesBuilder(int index) { + return internalGetAclPoliciesFieldBuilder() + .addBuilder(index, com.google.cloud.memorystore.v1beta.AclPolicy.getDefaultInstance()); + } + + /** + * + * + *
          +     * A list of ACL policies in the project in the specified location,
          +     * or across all locations.
          +     *
          +     * If the `location` in the parent field of the request is "-", all regions
          +     * available to the project are queried, and the results aggregated.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + public java.util.List + getAclPoliciesBuilderList() { + return internalGetAclPoliciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1beta.AclPolicy, + com.google.cloud.memorystore.v1beta.AclPolicy.Builder, + com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder> + internalGetAclPoliciesFieldBuilder() { + if (aclPoliciesBuilder_ == null) { + aclPoliciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1beta.AclPolicy, + com.google.cloud.memorystore.v1beta.AclPolicy.Builder, + com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder>( + aclPolicies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + aclPolicies_ = null; + } + return aclPoliciesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1beta.ListAclPoliciesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1beta.ListAclPoliciesResponse) + private static final com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse(); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAclPoliciesResponse 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.memorystore.v1beta.ListAclPoliciesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/ListAclPoliciesResponseOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/ListAclPoliciesResponseOrBuilder.java new file mode 100644 index 000000000000..08990389f352 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/ListAclPoliciesResponseOrBuilder.java @@ -0,0 +1,186 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +@com.google.protobuf.Generated +public interface ListAclPoliciesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1beta.ListAclPoliciesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + java.util.List getAclPoliciesList(); + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + com.google.cloud.memorystore.v1beta.AclPolicy getAclPolicies(int index); + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + int getAclPoliciesCount(); + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + java.util.List + getAclPoliciesOrBuilderList(); + + /** + * + * + *
          +   * A list of ACL policies in the project in the specified location,
          +   * or across all locations.
          +   *
          +   * If the `location` in the parent field of the request is "-", all regions
          +   * available to the project are queried, and the results aggregated.
          +   * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicy acl_policies = 1; + */ + com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder getAclPoliciesOrBuilder(int index); + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/ListAclPolicyRevisionsRequest.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/ListAclPolicyRevisionsRequest.java new file mode 100644 index 000000000000..ae7504e0d550 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/ListAclPolicyRevisionsRequest.java @@ -0,0 +1,920 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +/** + * + * + *
          + * Request for `ListAclPolicyRevisions`.
          + * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest} + */ +@com.google.protobuf.Generated +public final class ListAclPolicyRevisionsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest) + ListAclPolicyRevisionsRequestOrBuilder { + 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= */ "", + "ListAclPolicyRevisionsRequest"); + } + + // Use ListAclPolicyRevisionsRequest.newBuilder() to construct. + private ListAclPolicyRevisionsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAclPolicyRevisionsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_ListAclPolicyRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_ListAclPolicyRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest.class, + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
          +   * Required. The resource name of the ACL policy to list revisions for.
          +   * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The resource name of the ACL policy to list revisions for.
          +   * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
          +   * Optional. The maximum number of items to return.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * `ListAclPolicyRevisions` request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * `ListAclPolicyRevisions` request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + 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.memorystore.v1beta.ListAclPolicyRevisionsRequest)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest other = + (com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest 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.memorystore.v1beta.ListAclPolicyRevisionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest 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.memorystore.v1beta.ListAclPolicyRevisionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest 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.memorystore.v1beta.ListAclPolicyRevisionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest + 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.memorystore.v1beta.ListAclPolicyRevisionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest 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.memorystore.v1beta.ListAclPolicyRevisionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request for `ListAclPolicyRevisions`.
          +   * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest) + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_ListAclPolicyRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_ListAclPolicyRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest.class, + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_ListAclPolicyRevisionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest + getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest build() { + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest buildPartial() { + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest result = + new com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest) { + return mergeFrom((com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest other) { + if (other + == com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = 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 parent_ = ""; + + /** + * + * + *
          +     * Required. The resource name of the ACL policy to list revisions for.
          +     * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The resource name of the ACL policy to list revisions for.
          +     * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The resource name of the ACL policy to list revisions for.
          +     * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The resource name of the ACL policy to list revisions for.
          +     * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The resource name of the ACL policy to list revisions for.
          +     * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
          +     * Optional. The maximum number of items to return.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
          +     * Optional. The maximum number of items to return.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The maximum number of items to return.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicyRevisions` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicyRevisions` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicyRevisions` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicyRevisions` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The `next_page_token` value returned from a previous
          +     * `ListAclPolicyRevisions` request, if any.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest) + private static final com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest(); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAclPolicyRevisionsRequest 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.memorystore.v1beta.ListAclPolicyRevisionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/ListAclPolicyRevisionsRequestOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/ListAclPolicyRevisionsRequestOrBuilder.java new file mode 100644 index 000000000000..06bc1d59ee1d --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/ListAclPolicyRevisionsRequestOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +@com.google.protobuf.Generated +public interface ListAclPolicyRevisionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The resource name of the ACL policy to list revisions for.
          +   * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
          +   * Required. The resource name of the ACL policy to list revisions for.
          +   * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Optional. The maximum number of items to return.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * `ListAclPolicyRevisions` request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
          +   * Optional. The `next_page_token` value returned from a previous
          +   * `ListAclPolicyRevisions` request, if any.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/ListAclPolicyRevisionsResponse.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/ListAclPolicyRevisionsResponse.java new file mode 100644 index 000000000000..aaeefdee84f5 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/ListAclPolicyRevisionsResponse.java @@ -0,0 +1,1463 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +/** + * + * + *
          + * Response for `ListAclPolicyRevisions`.
          + * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse} + */ +@com.google.protobuf.Generated +public final class ListAclPolicyRevisionsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse) + ListAclPolicyRevisionsResponseOrBuilder { + 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= */ "", + "ListAclPolicyRevisionsResponse"); + } + + // Use ListAclPolicyRevisionsResponse.newBuilder() to construct. + private ListAclPolicyRevisionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAclPolicyRevisionsResponse() { + aclPolicyRevisions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_ListAclPolicyRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_ListAclPolicyRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse.class, + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse.Builder.class); + } + + public static final int ACL_POLICY_REVISIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List aclPolicyRevisions_; + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + @java.lang.Override + public java.util.List + getAclPolicyRevisionsList() { + return aclPolicyRevisions_; + } + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + @java.lang.Override + public java.util.List + getAclPolicyRevisionsOrBuilderList() { + return aclPolicyRevisions_; + } + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + @java.lang.Override + public int getAclPolicyRevisionsCount() { + return aclPolicyRevisions_.size(); + } + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicyRevision getAclPolicyRevisions(int index) { + return aclPolicyRevisions_.get(index); + } + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicyRevisionOrBuilder + getAclPolicyRevisionsOrBuilder(int index) { + return aclPolicyRevisions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < aclPolicyRevisions_.size(); i++) { + output.writeMessage(1, aclPolicyRevisions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < aclPolicyRevisions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, aclPolicyRevisions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse other = + (com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse) obj; + + if (!getAclPolicyRevisionsList().equals(other.getAclPolicyRevisionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAclPolicyRevisionsCount() > 0) { + hash = (37 * hash) + ACL_POLICY_REVISIONS_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicyRevisionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse 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.memorystore.v1beta.ListAclPolicyRevisionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse 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.memorystore.v1beta.ListAclPolicyRevisionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse 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.memorystore.v1beta.ListAclPolicyRevisionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse + 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.memorystore.v1beta.ListAclPolicyRevisionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse 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.memorystore.v1beta.ListAclPolicyRevisionsResponse 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; + } + + /** + * + * + *
          +   * Response for `ListAclPolicyRevisions`.
          +   * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse) + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_ListAclPolicyRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_ListAclPolicyRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse.class, + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (aclPolicyRevisionsBuilder_ == null) { + aclPolicyRevisions_ = java.util.Collections.emptyList(); + } else { + aclPolicyRevisions_ = null; + aclPolicyRevisionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_ListAclPolicyRevisionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse + getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse build() { + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse buildPartial() { + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse result = + new com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse result) { + if (aclPolicyRevisionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + aclPolicyRevisions_ = java.util.Collections.unmodifiableList(aclPolicyRevisions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.aclPolicyRevisions_ = aclPolicyRevisions_; + } else { + result.aclPolicyRevisions_ = aclPolicyRevisionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse) { + return mergeFrom( + (com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse other) { + if (other + == com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse + .getDefaultInstance()) return this; + if (aclPolicyRevisionsBuilder_ == null) { + if (!other.aclPolicyRevisions_.isEmpty()) { + if (aclPolicyRevisions_.isEmpty()) { + aclPolicyRevisions_ = other.aclPolicyRevisions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.addAll(other.aclPolicyRevisions_); + } + onChanged(); + } + } else { + if (!other.aclPolicyRevisions_.isEmpty()) { + if (aclPolicyRevisionsBuilder_.isEmpty()) { + aclPolicyRevisionsBuilder_.dispose(); + aclPolicyRevisionsBuilder_ = null; + aclPolicyRevisions_ = other.aclPolicyRevisions_; + bitField0_ = (bitField0_ & ~0x00000001); + aclPolicyRevisionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAclPolicyRevisionsFieldBuilder() + : null; + } else { + aclPolicyRevisionsBuilder_.addAllMessages(other.aclPolicyRevisions_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + 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: + { + com.google.cloud.memorystore.v1beta.AclPolicyRevision m = + input.readMessage( + com.google.cloud.memorystore.v1beta.AclPolicyRevision.parser(), + extensionRegistry); + if (aclPolicyRevisionsBuilder_ == null) { + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.add(m); + } else { + aclPolicyRevisionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + 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.util.List + aclPolicyRevisions_ = java.util.Collections.emptyList(); + + private void ensureAclPolicyRevisionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + aclPolicyRevisions_ = + new java.util.ArrayList( + aclPolicyRevisions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1beta.AclPolicyRevision, + com.google.cloud.memorystore.v1beta.AclPolicyRevision.Builder, + com.google.cloud.memorystore.v1beta.AclPolicyRevisionOrBuilder> + aclPolicyRevisionsBuilder_; + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public java.util.List + getAclPolicyRevisionsList() { + if (aclPolicyRevisionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(aclPolicyRevisions_); + } else { + return aclPolicyRevisionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public int getAclPolicyRevisionsCount() { + if (aclPolicyRevisionsBuilder_ == null) { + return aclPolicyRevisions_.size(); + } else { + return aclPolicyRevisionsBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public com.google.cloud.memorystore.v1beta.AclPolicyRevision getAclPolicyRevisions(int index) { + if (aclPolicyRevisionsBuilder_ == null) { + return aclPolicyRevisions_.get(index); + } else { + return aclPolicyRevisionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder setAclPolicyRevisions( + int index, com.google.cloud.memorystore.v1beta.AclPolicyRevision value) { + if (aclPolicyRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.set(index, value); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder setAclPolicyRevisions( + int index, com.google.cloud.memorystore.v1beta.AclPolicyRevision.Builder builderForValue) { + if (aclPolicyRevisionsBuilder_ == null) { + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.set(index, builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder addAclPolicyRevisions( + com.google.cloud.memorystore.v1beta.AclPolicyRevision value) { + if (aclPolicyRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.add(value); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder addAclPolicyRevisions( + int index, com.google.cloud.memorystore.v1beta.AclPolicyRevision value) { + if (aclPolicyRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.add(index, value); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder addAclPolicyRevisions( + com.google.cloud.memorystore.v1beta.AclPolicyRevision.Builder builderForValue) { + if (aclPolicyRevisionsBuilder_ == null) { + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.add(builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder addAclPolicyRevisions( + int index, com.google.cloud.memorystore.v1beta.AclPolicyRevision.Builder builderForValue) { + if (aclPolicyRevisionsBuilder_ == null) { + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.add(index, builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder addAllAclPolicyRevisions( + java.lang.Iterable + values) { + if (aclPolicyRevisionsBuilder_ == null) { + ensureAclPolicyRevisionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aclPolicyRevisions_); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder clearAclPolicyRevisions() { + if (aclPolicyRevisionsBuilder_ == null) { + aclPolicyRevisions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder removeAclPolicyRevisions(int index) { + if (aclPolicyRevisionsBuilder_ == null) { + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.remove(index); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public com.google.cloud.memorystore.v1beta.AclPolicyRevision.Builder + getAclPolicyRevisionsBuilder(int index) { + return internalGetAclPolicyRevisionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public com.google.cloud.memorystore.v1beta.AclPolicyRevisionOrBuilder + getAclPolicyRevisionsOrBuilder(int index) { + if (aclPolicyRevisionsBuilder_ == null) { + return aclPolicyRevisions_.get(index); + } else { + return aclPolicyRevisionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public java.util.List + getAclPolicyRevisionsOrBuilderList() { + if (aclPolicyRevisionsBuilder_ != null) { + return aclPolicyRevisionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(aclPolicyRevisions_); + } + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public com.google.cloud.memorystore.v1beta.AclPolicyRevision.Builder + addAclPolicyRevisionsBuilder() { + return internalGetAclPolicyRevisionsFieldBuilder() + .addBuilder(com.google.cloud.memorystore.v1beta.AclPolicyRevision.getDefaultInstance()); + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public com.google.cloud.memorystore.v1beta.AclPolicyRevision.Builder + addAclPolicyRevisionsBuilder(int index) { + return internalGetAclPolicyRevisionsFieldBuilder() + .addBuilder( + index, com.google.cloud.memorystore.v1beta.AclPolicyRevision.getDefaultInstance()); + } + + /** + * + * + *
          +     * A list of ACL policy revisions.
          +     * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public java.util.List + getAclPolicyRevisionsBuilderList() { + return internalGetAclPolicyRevisionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1beta.AclPolicyRevision, + com.google.cloud.memorystore.v1beta.AclPolicyRevision.Builder, + com.google.cloud.memorystore.v1beta.AclPolicyRevisionOrBuilder> + internalGetAclPolicyRevisionsFieldBuilder() { + if (aclPolicyRevisionsBuilder_ == null) { + aclPolicyRevisionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1beta.AclPolicyRevision, + com.google.cloud.memorystore.v1beta.AclPolicyRevision.Builder, + com.google.cloud.memorystore.v1beta.AclPolicyRevisionOrBuilder>( + aclPolicyRevisions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + aclPolicyRevisions_ = null; + } + return aclPolicyRevisionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Token to retrieve the next page of results, or empty if there are no more
          +     * results in the list.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse) + private static final com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse(); + } + + public static com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAclPolicyRevisionsResponse 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.memorystore.v1beta.ListAclPolicyRevisionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/ListAclPolicyRevisionsResponseOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/ListAclPolicyRevisionsResponseOrBuilder.java new file mode 100644 index 000000000000..d21d473d687c --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/ListAclPolicyRevisionsResponseOrBuilder.java @@ -0,0 +1,172 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +@com.google.protobuf.Generated +public interface ListAclPolicyRevisionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + java.util.List getAclPolicyRevisionsList(); + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + com.google.cloud.memorystore.v1beta.AclPolicyRevision getAclPolicyRevisions(int index); + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + int getAclPolicyRevisionsCount(); + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + java.util.List + getAclPolicyRevisionsOrBuilderList(); + + /** + * + * + *
          +   * A list of ACL policy revisions.
          +   * 
          + * + * repeated .google.cloud.memorystore.v1beta.AclPolicyRevision acl_policy_revisions = 1; + * + */ + com.google.cloud.memorystore.v1beta.AclPolicyRevisionOrBuilder getAclPolicyRevisionsOrBuilder( + int index); + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
          +   * Token to retrieve the next page of results, or empty if there are no more
          +   * results in the list.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
          +   * Unordered list. Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/UpdateAclPolicyRequest.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/UpdateAclPolicyRequest.java new file mode 100644 index 000000000000..b4b9de4426c1 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/UpdateAclPolicyRequest.java @@ -0,0 +1,1265 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +/** + * + * + *
          + * Request for `UpdateAclPolicy`.
          + * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.UpdateAclPolicyRequest} + */ +@com.google.protobuf.Generated +public final class UpdateAclPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1beta.UpdateAclPolicyRequest) + UpdateAclPolicyRequestOrBuilder { + 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= */ "", + "UpdateAclPolicyRequest"); + } + + // Use UpdateAclPolicyRequest.newBuilder() to construct. + private UpdateAclPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateAclPolicyRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_UpdateAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_UpdateAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest.class, + com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int ACL_POLICY_FIELD_NUMBER = 1; + private com.google.cloud.memorystore.v1beta.AclPolicy aclPolicy_; + + /** + * + * + *
          +   * Required. The ACL policy to be updated.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclPolicy field is set. + */ + @java.lang.Override + public boolean hasAclPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Required. The ACL policy to be updated.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclPolicy. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicy getAclPolicy() { + return aclPolicy_ == null + ? com.google.cloud.memorystore.v1beta.AclPolicy.getDefaultInstance() + : aclPolicy_; + } + + /** + * + * + *
          +   * Required. The ACL policy to be updated.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder getAclPolicyOrBuilder() { + return aclPolicy_ == null + ? com.google.cloud.memorystore.v1beta.AclPolicy.getDefaultInstance() + : aclPolicy_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
          +   * Optional. Mask of fields to be updated. At least one path must be supplied
          +   * in this field. The elements of the repeated paths field may only include
          +   * these fields from `AclPolicy`:
          +   *
          +   * *   `rules`
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +   * Optional. Mask of fields to be updated. At least one path must be supplied
          +   * in this field. The elements of the repeated paths field may only include
          +   * these fields from `AclPolicy`:
          +   *
          +   * *   `rules`
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
          +   * Optional. Mask of fields to be updated. At least one path must be supplied
          +   * in this field. The elements of the repeated paths field may only include
          +   * these fields from `AclPolicy`:
          +   *
          +   * *   `rules`
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAclPolicy()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAclPolicy()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + 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.memorystore.v1beta.UpdateAclPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest other = + (com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest) obj; + + if (hasAclPolicy() != other.hasAclPolicy()) return false; + if (hasAclPolicy()) { + if (!getAclPolicy().equals(other.getAclPolicy())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAclPolicy()) { + hash = (37 * hash) + ACL_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicy().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest 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.memorystore.v1beta.UpdateAclPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest 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.memorystore.v1beta.UpdateAclPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest 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.memorystore.v1beta.UpdateAclPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest 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.memorystore.v1beta.UpdateAclPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest 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.memorystore.v1beta.UpdateAclPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Request for `UpdateAclPolicy`.
          +   * 
          + * + * Protobuf type {@code google.cloud.memorystore.v1beta.UpdateAclPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1beta.UpdateAclPolicyRequest) + com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_UpdateAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_UpdateAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest.class, + com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAclPolicyFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + aclPolicy_ = null; + if (aclPolicyBuilder_ != null) { + aclPolicyBuilder_.dispose(); + aclPolicyBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1beta.V1mainProto + .internal_static_google_cloud_memorystore_v1beta_UpdateAclPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest build() { + com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest buildPartial() { + com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest result = + new com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.aclPolicy_ = aclPolicyBuilder_ == null ? aclPolicy_ : aclPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest) { + return mergeFrom((com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest other) { + if (other == com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest.getDefaultInstance()) + return this; + if (other.hasAclPolicy()) { + mergeAclPolicy(other.getAclPolicy()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + input.readMessage( + internalGetAclPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = 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 com.google.cloud.memorystore.v1beta.AclPolicy aclPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1beta.AclPolicy, + com.google.cloud.memorystore.v1beta.AclPolicy.Builder, + com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder> + aclPolicyBuilder_; + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclPolicy field is set. + */ + public boolean hasAclPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclPolicy. + */ + public com.google.cloud.memorystore.v1beta.AclPolicy getAclPolicy() { + if (aclPolicyBuilder_ == null) { + return aclPolicy_ == null + ? com.google.cloud.memorystore.v1beta.AclPolicy.getDefaultInstance() + : aclPolicy_; + } else { + return aclPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAclPolicy(com.google.cloud.memorystore.v1beta.AclPolicy value) { + if (aclPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aclPolicy_ = value; + } else { + aclPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAclPolicy( + com.google.cloud.memorystore.v1beta.AclPolicy.Builder builderForValue) { + if (aclPolicyBuilder_ == null) { + aclPolicy_ = builderForValue.build(); + } else { + aclPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAclPolicy(com.google.cloud.memorystore.v1beta.AclPolicy value) { + if (aclPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && aclPolicy_ != null + && aclPolicy_ != com.google.cloud.memorystore.v1beta.AclPolicy.getDefaultInstance()) { + getAclPolicyBuilder().mergeFrom(value); + } else { + aclPolicy_ = value; + } + } else { + aclPolicyBuilder_.mergeFrom(value); + } + if (aclPolicy_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAclPolicy() { + bitField0_ = (bitField0_ & ~0x00000001); + aclPolicy_ = null; + if (aclPolicyBuilder_ != null) { + aclPolicyBuilder_.dispose(); + aclPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.memorystore.v1beta.AclPolicy.Builder getAclPolicyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAclPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder getAclPolicyOrBuilder() { + if (aclPolicyBuilder_ != null) { + return aclPolicyBuilder_.getMessageOrBuilder(); + } else { + return aclPolicy_ == null + ? com.google.cloud.memorystore.v1beta.AclPolicy.getDefaultInstance() + : aclPolicy_; + } + } + + /** + * + * + *
          +     * Required. The ACL policy to be updated.
          +     * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1beta.AclPolicy, + com.google.cloud.memorystore.v1beta.AclPolicy.Builder, + com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder> + internalGetAclPolicyFieldBuilder() { + if (aclPolicyBuilder_ == null) { + aclPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1beta.AclPolicy, + com.google.cloud.memorystore.v1beta.AclPolicy.Builder, + com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder>( + getAclPolicy(), getParentForChildren(), isClean()); + aclPolicy_ = null; + } + return aclPolicyBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
          +     * Optional. Mask of fields to be updated. At least one path must be supplied
          +     * in this field. The elements of the repeated paths field may only include
          +     * these fields from `AclPolicy`:
          +     *
          +     * *   `rules`
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Idempotent request UUID.
          +     * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1beta.UpdateAclPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1beta.UpdateAclPolicyRequest) + private static final com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest(); + } + + public static com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAclPolicyRequest 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.memorystore.v1beta.UpdateAclPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/UpdateAclPolicyRequestOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/UpdateAclPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..d809d1b66a60 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/UpdateAclPolicyRequestOrBuilder.java @@ -0,0 +1,153 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +@com.google.protobuf.Generated +public interface UpdateAclPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1beta.UpdateAclPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The ACL policy to be updated.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclPolicy field is set. + */ + boolean hasAclPolicy(); + + /** + * + * + *
          +   * Required. The ACL policy to be updated.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclPolicy. + */ + com.google.cloud.memorystore.v1beta.AclPolicy getAclPolicy(); + + /** + * + * + *
          +   * Required. The ACL policy to be updated.
          +   * 
          + * + * + * .google.cloud.memorystore.v1beta.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.memorystore.v1beta.AclPolicyOrBuilder getAclPolicyOrBuilder(); + + /** + * + * + *
          +   * Optional. Mask of fields to be updated. At least one path must be supplied
          +   * in this field. The elements of the repeated paths field may only include
          +   * these fields from `AclPolicy`:
          +   *
          +   * *   `rules`
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
          +   * Optional. Mask of fields to be updated. At least one path must be supplied
          +   * in this field. The elements of the repeated paths field may only include
          +   * these fields from `AclPolicy`:
          +   *
          +   * *   `rules`
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
          +   * Optional. Mask of fields to be updated. At least one path must be supplied
          +   * in this field. The elements of the repeated paths field may only include
          +   * these fields from `AclPolicy`:
          +   *
          +   * *   `rules`
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
          +   * Optional. Idempotent request UUID.
          +   * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/V1mainProto.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/V1mainProto.java index b7bb548a0a3b..feb217cd13c6 100644 --- a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/V1mainProto.java +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/V1mainProto.java @@ -76,6 +76,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_memorystore_v1beta_Instance_EngineConfigsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_memorystore_v1beta_Instance_EngineConfigsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1beta_AclPolicyInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1beta_AclPolicyInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_memorystore_v1beta_StartMigrationRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -92,6 +96,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_memorystore_v1beta_MigrationConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_memorystore_v1beta_MigrationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1beta_AclPolicy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1beta_AclPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1beta_AclPolicyRevision_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1beta_AclPolicyRevision_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1beta_AclPolicyRevisionStatus_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1beta_AclPolicyRevisionStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1beta_InstanceAclPolicyAttachment_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1beta_InstanceAclPolicyAttachment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1beta_AclRule_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1beta_AclRule_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_memorystore_v1beta_AutomatedBackupConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -184,6 +208,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_memorystore_v1beta_RescheduleMaintenanceRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_memorystore_v1beta_RescheduleMaintenanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1beta_ListAclPoliciesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1beta_ListAclPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1beta_ListAclPoliciesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1beta_ListAclPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1beta_ListAclPolicyRevisionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1beta_ListAclPolicyRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1beta_ListAclPolicyRevisionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1beta_ListAclPolicyRevisionsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_memorystore_v1beta_ListInstancesRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -192,18 +232,38 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_memorystore_v1beta_ListInstancesResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_memorystore_v1beta_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1beta_GetAclPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1beta_GetAclPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1beta_GetAclPolicyRevisionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1beta_GetAclPolicyRevisionRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_memorystore_v1beta_GetInstanceRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_memorystore_v1beta_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1beta_CreateAclPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1beta_CreateAclPolicyRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_memorystore_v1beta_CreateInstanceRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_memorystore_v1beta_CreateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1beta_UpdateAclPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1beta_UpdateAclPolicyRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_memorystore_v1beta_UpdateInstanceRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_memorystore_v1beta_UpdateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1beta_DeleteAclPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1beta_DeleteAclPolicyRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_memorystore_v1beta_DeleteInstanceRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -342,7 +402,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "grunning/operations.proto\032\036google/protob" + "uf/duration.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\032\033googl" - + "e/type/dayofweek.proto\032\033google/type/timeofday.proto\"\276*\n" + + "e/type/dayofweek.proto\032\033google/type/timeofday.proto\"\342+\n" + "\010Instance\022W\n\n" + "gcs_source\030\027" + " \001(\01329.google.cloud.memorystore.v1beta.Instance.GcsBackupSourceB\006\340A\001\340A\005H\000\022f\n" @@ -423,16 +483,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031rotate_server_certificate\030:" + " \001(\010B\006\340A\001\340A\004H\016\210\001\001\022O\n" + "\020migration_config\030; \001(\01320.g" - + "oogle.cloud.memorystore.v1beta.MigrationConfigB\003\340A\003\032\254\003\n" + + "oogle.cloud.memorystore.v1beta.MigrationConfigB\003\340A\003\022E\n\n" + + "acl_policy\030< \001(\tB,\340A\001\372A&\n" + + "$memorystore.googleapis.com/AclPolicyH\017\210\001\001\022L\n" + + "\017acl_policy_info\030> \001(\0132..google.clo" + + "ud.memorystore.v1beta.AclPolicyInfoB\003\340A\003\032\254\003\n" + "\tStateInfo\022Z\n" - + "\013update_info\030\001 \001(\0132>.google.cloud.memorystore.v1beta" - + ".Instance.StateInfo.UpdateInfoB\003\340A\003H\000\032\272\002\n\n" + + "\013update_info\030\001 \001(\0132>.go" + + "ogle.cloud.memorystore.v1beta.Instance.StateInfo.UpdateInfoB\003\340A\003H\000\032\272\002\n\n" + "UpdateInfo\022$\n" + "\022target_shard_count\030\001 \001(\005B\003\340A\003H\000\210\001\001\022&\n" + "\024target_replica_count\030\002 \001(\005B\003\340A\003H\001\210\001\001\022\'\n" + "\025target_engine_version\030\003 \001(\tB\003\340A\003H\002\210\001\001\022V\n" - + "\020target_node_type\030\004 \001(\01622." - + "google.cloud.memorystore.v1beta.Instance.NodeTypeB\003\340A\003H\003\210\001\001B\025\n" + + "\020target_node_type\030\004 \001(\01622.google.clou" + + "d.memorystore.v1beta.Instance.NodeTypeB\003\340A\003H\003\210\001\001B\025\n" + "\023_target_shard_countB\027\n" + "\025_target_replica_countB\030\n" + "\026_target_engine_versionB\023\n" @@ -443,13 +507,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023ManagedBackupSource\022\023\n" + "\006backup\030\001 \001(\tB\003\340A\001\032h\n" + "\020InstanceEndpoint\022T\n" - + "\013connections\030\001" - + " \003(\0132:.google.cloud.memorystore.v1beta.Instance.ConnectionDetailB\003\340A\001\032\302\001\n" + + "\013connections\030\001 \003(\0132:.goo" + + "gle.cloud.memorystore.v1beta.Instance.ConnectionDetailB\003\340A\001\032\302\001\n" + "\020ConnectionDetail\022V\n" - + "\023psc_auto_connection\030\001 \001(\013" - + "22.google.cloud.memorystore.v1beta.PscAutoConnectionB\003\340A\005H\000\022H\n" - + "\016psc_connection\030\002 " - + "\001(\0132..google.cloud.memorystore.v1beta.PscConnectionH\000B\014\n\n" + + "\023psc_auto_connection\030\001 \001(\01322.google.c" + + "loud.memorystore.v1beta.PscAutoConnectionB\003\340A\005H\000\022H\n" + + "\016psc_connection\030\002 \001(\0132..googl" + + "e.cloud.memorystore.v1beta.PscConnectionH\000B\014\n\n" + "connection\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -498,11 +562,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027CUSTOMER_MANAGED_CAS_CA\020\003\0225\n" + "-SERVER_CA_MODE_GOOGLE_MANAGED_PER_INSTANCE_CA\020\001\032\002\010\001\022/\n" + "\'SERVER_CA_MODE_GOOGLE_MANAGED_SHARED_CA\020\002\032\002\010\001\022.\n" - + "&SERVER_" - + "CA_MODE_CUSTOMER_MANAGED_CAS_CA\020\003\032\002\010\001\032\002\020\001:{\352Ax\n" - + "#memorystore.googleapis.com/Insta" - + "nce\022.google.cloud.memorystore.v1beta.AclPolicyRevisionStatus.StateB\003\340A\003\022\032\n\r" + + "error_message\030\004 \001(\tB\003\340A\003\"E\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\014\n" + + "\010APPLYING\020\001\022\013\n" + + "\007APPLIED\020\002\022\n" + + "\n" + + "\006FAILED\020\003\"\301\001\n" + + "\033InstanceAclPolicyAttachment\022=\n" + + "\010instance\030\001 \001(\tB+\340A\003\372A%\n" + + "#memorystore.googleapis.com/Instance\022c\n" + + "\034acl_policy_revision_statuses\030\002 \003(\01328.google.cloud.m" + + "emorystore.v1beta.AclPolicyRevisionStatusB\003\340A\003\"3\n" + + "\007AclRule\022\025\n" + + "\010username\030\001 \001(\tB\003\340A\002\022\021\n" + + "\004rule\030\002 \001(\tB\003\340A\002\"\342\003\n" + "\025AutomatedBackupConfig\022v\n" - + "\030fixed_frequency_schedule\030\002 \001(\0132M.google.cloud.memorystore" - + ".v1beta.AutomatedBackupConfig.FixedFrequencyScheduleB\003\340A\001H\000\022n\n" - + "\025automated_backup_mode\030\001 \001(\0162J.google.cloud.memorystore.v1" - + "beta.AutomatedBackupConfig.AutomatedBackupModeB\003\340A\001\0221\n" + + "\030fixed_frequency_schedule\030\002 \001(\0132" + + "M.google.cloud.memorystore.v1beta.Automa" + + "tedBackupConfig.FixedFrequencyScheduleB\003\340A\001H\000\022n\n" + + "\025automated_backup_mode\030\001 \001(\0162J.g" + + "oogle.cloud.memorystore.v1beta.AutomatedBackupConfig.AutomatedBackupModeB\003\340A\001\0221\n" + "\tretention\030\003 \001(\0132\031.google.protobuf.DurationB\003\340A\001\032I\n" + "\026FixedFrequencySchedule\022/\n\n" + "start_time\030\002 \001(\0132\026.google.type.TimeOfDayB\003\340A\002\"W\n" @@ -573,9 +696,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\003B\003\340A\003\0229\n" + "\020last_backup_time\030\013" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\245\001\352A\241\001\n" - + "+memorystore.googleapis.com/BackupCollection\022Mprojects/{project}/l" - + "ocations/{location}/backupCollections/{b" - + "ackup_collection}*\021backupCollections2\020backupCollection\"\244\010\n" + + "+memorystore.googleapis.com/BackupCollection\022Mprojects/{project}/locations/{loca" + + "tion}/backupCollections/{backup_collecti" + + "on}*\021backupCollections2\020backupCollection\"\244\010\n" + "\006Backup\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022=\n" @@ -587,19 +710,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013expire_time\030\006" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\033\n" + "\016engine_version\030\007 \001(\tB\003\340A\003\022F\n" - + "\014backup_files\030\010" - + " \003(\0132+.google.cloud.memorystore.v1beta.BackupFileB\003\340A\003\022J\n" - + "\tnode_type\030\t \001(" - + "\01622.google.cloud.memorystore.v1beta.Instance.NodeTypeB\003\340A\003\022\032\n\r" + + "\014backup_files\030\010 \003(\0132+" + + ".google.cloud.memorystore.v1beta.BackupFileB\003\340A\003\022J\n" + + "\tnode_type\030\t \001(\01622.google.clo" + + "ud.memorystore.v1beta.Instance.NodeTypeB\003\340A\003\022\032\n\r" + "replica_count\030\n" + " \001(\005B\003\340A\003\022\030\n" + "\013shard_count\030\013 \001(\005B\003\340A\003\022L\n" - + "\013backup_type\030\014" - + " \001(\01622.google.cloud.memorystore.v1beta.Backup.BackupTypeB\003\340A\003\022A\n" + + "\013backup_type\030\014 \001(\0162" + + "2.google.cloud.memorystore.v1beta.Backup.BackupTypeB\003\340A\003\022A\n" + "\005state\030\r" + " \001(\0162-.google.cloud.memorystore.v1beta.Backup.StateB\003\340A\003\022M\n" - + "\017encryption_info\030\016 \001" - + "(\0132/.google.cloud.memorystore.v1beta.EncryptionInfoB\003\340A\003\022\030\n" + + "\017encryption_info\030\016 \001(\0132/.google.cl" + + "oud.memorystore.v1beta.EncryptionInfoB\003\340A\003\022\030\n" + "\003uid\030\017 \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\"G\n\n" + "BackupType\022\033\n" + "\027BACKUP_TYPE_UNSPECIFIED\020\000\022\r\n" @@ -611,73 +734,73 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006ACTIVE\020\002\022\014\n" + "\010DELETING\020\003\022\r\n" + "\tSUSPENDED\020\004:\230\001\352A\224\001\n" - + "!memorystore.googleapis.com/Backup\022^projects/{project}/locations/{loca" - + "tion}/backupCollections/{backup_collection}/backups/{backup}*\007backups2\006backup\"s\n" - + "\n" + + "!memorystore.googleapis.com/Backup\022^projects" + + "/{project}/locations/{location}/backupCo" + + "llections/{backup_collection}/backups/{backup}*\007backups2\006backup\"s\n\n" + "BackupFile\022\026\n" + "\tfile_name\030\001 \001(\tB\003\340A\003\022\027\n\n" + "size_bytes\030\002 \001(\003B\003\340A\003\0224\n" + "\013create_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\266\007\n" + "\036CrossInstanceReplicationConfig\022h\n\r" - + "instance_role\030\001 \001(\0162L.google.cloud.memorystore." - + "v1beta.CrossInstanceReplicationConfig.InstanceRoleB\003\340A\002\022m\n" - + "\020primary_instance\030\002 \001(\0132N.google.cloud.memorystore.v1beta.Cros" - + "sInstanceReplicationConfig.RemoteInstanceB\003\340A\001\022p\n" - + "\023secondary_instances\030\003 \003(\0132N.google.cloud.memorystore.v1beta.CrossInsta" - + "nceReplicationConfig.RemoteInstanceB\003\340A\001\0224\n" + + "instance_role\030\001 \001(\0162L.google.cloud.memorystore.v1beta.CrossIn" + + "stanceReplicationConfig.InstanceRoleB\003\340A\002\022m\n" + + "\020primary_instance\030\002 \001(\0132N.google.clo" + + "ud.memorystore.v1beta.CrossInstanceReplicationConfig.RemoteInstanceB\003\340A\001\022p\n" + + "\023secondary_instances\030\003 \003(\0132N.google.cloud.mem" + + "orystore.v1beta.CrossInstanceReplicationConfig.RemoteInstanceB\003\340A\001\0224\n" + "\013update_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022c\n\n" - + "membership\030\005 \001(\0132J.goo" - + "gle.cloud.memorystore.v1beta.CrossInstanceReplicationConfig.MembershipB\003\340A\003\032i\n" + + "membership\030\005 \001(\0132J.google.cloud.memo" + + "rystore.v1beta.CrossInstanceReplicationConfig.MembershipB\003\340A\003\032i\n" + "\016RemoteInstance\022=\n" + "\010instance\030\001 \001(\tB+\340A\001\372A%\n" + "#memorystore.googleapis.com/Instance\022\030\n" + "\003uid\030\002 \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\032\355\001\n\n" + "Membership\022m\n" - + "\020primary_instance\030\001 \001(\0132N.google.cloud.m" - + "emorystore.v1beta.CrossInstanceReplicationConfig.RemoteInstanceB\003\340A\003\022p\n" - + "\023secondary_instances\030\002 \003(\0132N.google.cloud.memorys" - + "tore.v1beta.CrossInstanceReplicationConfig.RemoteInstanceB\003\340A\003\"S\n" + + "\020primary_instance\030\001 \001(\0132N.google.cloud.memorystore.v1b" + + "eta.CrossInstanceReplicationConfig.RemoteInstanceB\003\340A\003\022p\n" + + "\023secondary_instances\030\002 \003(\0132N.google.cloud.memorystore.v1beta.Cr" + + "ossInstanceReplicationConfig.RemoteInstanceB\003\340A\003\"S\n" + "\014InstanceRole\022\035\n" + "\031INSTANCE_ROLE_UNSPECIFIED\020\000\022\010\n" + "\004NONE\020\001\022\013\n" - + "\007PRIMARY\020\002\022\r\n" + + "\007PRIMARY\020\002\022\r" + + "\n" + "\tSECONDARY\020\003\"\361\002\n\r" + "TokenAuthUser\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022H\n" - + "\005state\030\002 \001(\0162" - + "4.google.cloud.memorystore.v1beta.TokenAuthUser.StateB\003\340A\003\"T\n" + + "\005state\030\002 \001(\01624.google.cloud" + + ".memorystore.v1beta.TokenAuthUser.StateB\003\340A\003\"T\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\014\n" + "\010CREATING\020\002\022\014\n" + "\010UPDATING\020\003\022\014\n" + "\010DELETING\020\004:\254\001\352A\250\001\n" - + "(memorystore.googleapis.com/TokenAuthUser\022]proje" - + "cts/{project}/locations/{location}/insta" - + "nces/{instance}/tokenAuthUsers/{token_auth_user}*\016tokenAuthUsers2\r" + + "(memorystore.googleapis.com/TokenAuthUser\022]projects/{project}/" + + "locations/{location}/instances/{instance" + + "}/tokenAuthUsers/{token_auth_user}*\016tokenAuthUsers2\r" + "tokenAuthUser\"\261\003\n" + "\tAuthToken\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\022\n" + "\005token\030\002 \001(\tB\003\340A\003\0224\n" + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022D\n" - + "\005state\030\004 \001(" - + "\01620.google.cloud.memorystore.v1beta.AuthToken.StateB\003\340A\003\"F\n" + + "\005state\030\004 \001(\01620.google.clo" + + "ud.memorystore.v1beta.AuthToken.StateB\003\340A\003\"F\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\014\n" + "\010CREATING\020\002\022\014\n" + "\010DELETING\020\003:\270\001\352A\264\001\n" - + "$memorystore.googleapis.com/AuthToken\022uprojects/{project}/locati" - + "ons/{location}/instances/{instance}/toke" - + "nAuthUsers/{token_auth_user}/authTokens/{auth_token}*\n" + + "$memorystore.googleapis.com/AuthToken\022uprojects/{project}/locations/{location}" + + "/instances/{instance}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}*\n" + "authTokens2\tauthToken\"\341\001\n" + "\021MaintenancePolicy\0224\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022`\n" - + "\031weekly_maintenance_window\030\003 \003(\013" - + "28.google.cloud.memorystore.v1beta.WeeklyMaintenanceWindowB\003\340A\001\"t\n" + + "\031weekly_maintenance_window\030\003 \003(\01328.google.clou" + + "d.memorystore.v1beta.WeeklyMaintenanceWindowB\003\340A\001\"t\n" + "\027WeeklyMaintenanceWindow\022(\n" + "\003day\030\001 \001(\0162\026.google.type.DayOfWeekB\003\340A\001\022/\n\n" + "start_time\030\002 \001(\0132\026.google.type.TimeOfDayB\003\340A\001\"}\n" @@ -688,8 +811,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023PscAttachmentDetail\022L\n" + "\022service_attachment\030\001 \001(\tB0\340A\003\372A*\n" + "(compute.googleapis.com/ServiceAttachment\022M\n" - + "\017connection_type\030\004 \001(\0162/.go" - + "ogle.cloud.memorystore.v1beta.ConnectionTypeB\003\340A\003\"\203\004\n" + + "\017connection_type\030\004" + + " \001(\0162/.google.cloud.memorystore.v1beta.ConnectionTypeB\003\340A\003\"\203\004\n" + "\021PscAutoConnection\022\023\n" + "\004port\030\t \001(\005B\003\340A\001H\000\022\036\n" + "\021psc_connection_id\030\001 \001(\tB\003\340A\003\022\037\n\n" @@ -701,10 +824,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036compute.googleapis.com/Network\022L\n" + "\022service_attachment\030\006 \001(\tB0\340A\003\372A*\n" + "(compute.googleapis.com/ServiceAttachment\022X\n" - + "\025psc_connection_status\030\007 \001(\01624.google.cloud.memo" - + "rystore.v1beta.PscConnectionStatusB\003\340A\003\022M\n" - + "\017connection_type\030\010 \001(\0162/.google.cloud." - + "memorystore.v1beta.ConnectionTypeB\003\340A\003B\007\n" + + "\025psc_connection_status\030\007" + + " \001(\01624.google.cloud.memorystore.v1beta.PscConnectionStatusB\003\340A\003\022M\n" + + "\017connection_type\030\010" + + " \001(\0162/.google.cloud.memorystore.v1beta.ConnectionTypeB\003\340A\003B\007\n" + "\005ports\"\377\003\n\r" + "PscConnection\022\023\n" + "\004port\030\t \001(\005B\003\340A\001H\000\022\036\n" @@ -717,8 +840,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036compute.googleapis.com/Network\022L\n" + "\022service_attachment\030\006 \001(\tB0\340A\002\372A*\n" + "(compute.googleapis.com/ServiceAttachment\022X\n" - + "\025psc_connection_status\030\007" - + " \001(\01624.google.cloud.memorystore.v1beta.PscConnectionStatusB\003\340A\003\022M\n" + + "\025psc_connection_status\030\007 \001(\016" + + "24.google.cloud.memorystore.v1beta.PscConnectionStatusB\003\340A\003\022M\n" + "\017connection_type\030\010" + " \001(\0162/.google.cloud.memorystore.v1beta.ConnectionTypeB\003\340A\003B\007\n" + "\005ports\"u\n" @@ -728,15 +851,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007network\030\004 \001(\tB&\340A\003\372A \n" + "\036compute.googleapis.com/Network\"\353\006\n" + "\021PersistenceConfig\022U\n" - + "\004mode\030\001 \001(\0162B.g" - + "oogle.cloud.memorystore.v1beta.PersistenceConfig.PersistenceModeB\003\340A\001\022U\n\n" - + "rdb_config\030\002" - + " \001(\0132<.google.cloud.memorystore.v1beta.PersistenceConfig.RDBConfigB\003\340A\001\022U\n\n" - + "aof_config\030\003 \001(\0132<.google.cloud.memoryst" - + "ore.v1beta.PersistenceConfig.AOFConfigB\003\340A\001\032\265\002\n" + + "\004mode\030\001 \001(\0162B.google.cloud.me" + + "morystore.v1beta.PersistenceConfig.PersistenceModeB\003\340A\001\022U\n\n" + + "rdb_config\030\002 \001(\0132<.go" + + "ogle.cloud.memorystore.v1beta.PersistenceConfig.RDBConfigB\003\340A\001\022U\n\n" + + "aof_config\030\003 \001" + + "(\0132<.google.cloud.memorystore.v1beta.PersistenceConfig.AOFConfigB\003\340A\001\032\265\002\n" + "\tRDBConfig\022m\n" - + "\023rdb_snapshot_period\030\001 \001(\0162K.google.cloud.memorystore.v1beta" - + ".PersistenceConfig.RDBConfig.SnapshotPeriodB\003\340A\001\022@\n" + + "\023rdb_snapshot_period\030\001 \001(\0162K.googl" + + "e.cloud.memorystore.v1beta.PersistenceConfig.RDBConfig.SnapshotPeriodB\003\340A\001\022@\n" + "\027rdb_snapshot_start_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"w\n" + "\016SnapshotPeriod\022\037\n" @@ -746,8 +869,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014TWELVE_HOURS\020\003\022\025\n" + "\021TWENTY_FOUR_HOURS\020\004\032\303\001\n" + "\tAOFConfig\022c\n" - + "\014append_fsync\030\001 \001(\0162H.google" - + ".cloud.memorystore.v1beta.PersistenceConfig.AOFConfig.AppendFsyncB\003\340A\001\"Q\n" + + "\014append_fsync\030\001 \001(\0162H.google.cloud.memorys" + + "tore.v1beta.PersistenceConfig.AOFConfig.AppendFsyncB\003\340A\001\"Q\n" + "\013AppendFsync\022\034\n" + "\030APPEND_FSYNC_UNSPECIFIED\020\000\022\t\n" + "\005NEVER\020\001\022\r\n" @@ -762,8 +885,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007size_gb\030\001 \001(\001B\003\340A\003\"\355\001\n" + "\026ZoneDistributionConfig\022\021\n" + "\004zone\030\002 \001(\tB\003\340A\001\022_\n" - + "\004mode\030\001 \001(\0162L.google.cloud.memorystor" - + "e.v1beta.ZoneDistributionConfig.ZoneDistributionModeB\003\340A\001\"_\n" + + "\004mode\030\001 \001(\0162L.google.cloud.memorystore.v1beta.ZoneD" + + "istributionConfig.ZoneDistributionModeB\003\340A\001\"_\n" + "\024ZoneDistributionMode\022&\n" + "\"ZONE_DISTRIBUTION_MODE_UNSPECIFIED\020\000\022\016\n\n" + "MULTI_ZONE\020\001\022\017\n" @@ -771,13 +894,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034RescheduleMaintenanceRequest\0229\n" + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#memorystore.googleapis.com/Instance\022j\n" - + "\017reschedule_type\030\002 \001(\0162L.google" - + ".cloud.memorystore.v1beta.RescheduleMaintenanceRequest.RescheduleTypeB\003\340A\002\0226\n\r" - + "schedule_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"S\n" + + "\017reschedule_type\030\002 \001(\0162L.google.cloud.memorys" + + "tore.v1beta.RescheduleMaintenanceRequest.RescheduleTypeB\003\340A\002\0226\n\r" + + "schedule_time\030\003 ", + "\001(\0132\032.google.protobuf.TimestampB\003\340A\001\"S\n" + "\016RescheduleType\022\037\n" + "\033RESCHEDULE_TYPE_UNSPECIFIED\020\000\022\r\n" + "\tIMMEDIATE\020\001\022\021\n\r" - + "SPECIFIC_TIME\020\003\"\260\001\n" + + "SPECIFIC_TIME\020\003\"\207\001\n" + + "\026ListAclPoliciesRequest\022<\n" + + "\006parent\030\001 \001(" + + "\tB,\340A\002\372A&\022$memorystore.googleapis.com/AclPolicy\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\216\001\n" + + "\027ListAclPoliciesResponse\022@\n" + + "\014acl_policies\030\001" + + " \003(\0132*.google.cloud.memorystore.v1beta.AclPolicy\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\030\n" + + "\013unreachable\030\003 \003(\tB\003\340A\006\"\226\001\n" + + "\035ListAclPolicyRevisionsRequest\022D\n" + + "\006parent\030\001 \001(" + + "\tB4\340A\002\372A.\022,memorystore.googleapis.com/AclPolicyRevision\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\245\001\n" + + "\036ListAclPolicyRevisionsResponse\022P\n" + + "\024acl_policy_revisions\030\001" + + " \003(\01322.google.cloud.memorystore.v1beta.AclPolicyRevision\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\030\n" + + "\013unreachable\030\003 \003(\tB\003\340A\006\"\260\001\n" + "\024ListInstancesRequest\022;\n" + "\006parent\030\001 \001(" + "\tB+\340A\002\372A%\022#memorystore.googleapis.com/Instance\022\026\n" @@ -788,42 +932,67 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025ListInstancesResponse\022<\n" + "\tinstances\030\001 \003(\0132).google.cloud.memorystore.v1beta.Instance\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" - + "\013unreachable\030\003 \003(\t\"O\n" + + "\013unreachable\030\003 \003(\t\"Q\n" + + "\023GetAclPolicyRequest\022:\n" + + "\004name\030\001 \001(\tB,\340A\002\372A&\n" + + "$memorystore.googleapis.com/AclPolicy\"a\n" + + "\033GetAclPolicyRevisionRequest\022B\n" + + "\004name\030\001 \001(\tB4\340A\002\372A.\n" + + ",memorystore.googleapis.com/AclPolicyRevision\"O\n" + "\022GetInstanceRequest\0229\n" + "\004name\030\001 \001(\tB+\340A\002\372A%\n" - + "#memorystore.googleapis.com/Instance\"\321\001\n" + + "#memorystore.googleapis.com/Instance\"\330\001\n" + + "\026CreateAclPolicyRequest\022<\n" + + "\006parent\030\001 \001(" + + "\tB,\340A\002\372A&\022$memorystore.googleapis.com/AclPolicy\022\032\n\r" + + "acl_policy_id\030\002 \001(\tB\003\340A\002\022C\n\n" + + "acl_policy\030\003 \001(\0132*" + + ".google.cloud.memorystore.v1beta.AclPolicyB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\321\001\n" + "\025CreateInstanceRequest\022;\n" + "\006parent\030\001 \001(" + "\tB+\340A\002\372A%\022#memorystore.googleapis.com/Instance\022\030\n" + "\013instance_id\030\002 \001(\tB\003\340A\002\022@\n" + "\010instance\030\003" + " \001(\0132).google.cloud.memorystore.v1beta.InstanceB\003\340A\002\022\037\n\n" - + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\260\001\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\264\001\n" + + "\026UpdateAclPolicyRequest\022C\n\n" + + "acl_policy\030\001" + + " \001(\0132*.google.cloud.memorystore.v1beta.AclPolicyB\003\340A\002\0224\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\260\001\n" + "\025UpdateInstanceRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022@\n" - + "\010instance\030\002 \001(\0132" - + ").google.cloud.memorystore.v1beta.InstanceB\003\340A\002\022\037\n\n" - + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"s\n" + + "\010instance\030\002" + + " \001(\0132).google.cloud.memorystore.v1beta.InstanceB\003\340A\002\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\210\001\n" + + "\026DeleteAclPolicyRequest\022:\n" + + "\004name\030\001 \001(\tB,\340A\002\372A&\n" + + "$memorystore.googleapis.com/AclPolicy\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\021\n" + + "\004etag\030\003 \001(\tB\003\340A\001\"s\n" + "\025DeleteInstanceRequest\0229\n" + "\004name\030\001 \001(\tB+\340A\002\372A%\n" - + "#memorystore.googleapis.com/Instance\022\037\n\n" + + "#memorystore.googleapis.com/Instance\022\037\n" + + "\n" + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\224\001\n" + "\034ListBackupCollectionsRequest\022C\n" - + "\006parent\030\001 \001(" - + "\tB3\340A\002\372A-\022+memorystore.googleapis.com/BackupCollection\022\026\n" + + "\006parent\030\001 \001(\tB" + + "3\340A\002\372A-\022+memorystore.googleapis.com/BackupCollection\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"\234\001\n" + "\035ListBackupCollectionsResponse\022M\n" - + "\022backup_collections\030\001" - + " \003(\01321.google.cloud.memorystore.v1beta.BackupCollection\022\027\n" + + "\022backup_collections\030\001 " + + "\003(\01321.google.cloud.memorystore.v1beta.BackupCollection\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"_\n" + "\032GetBackupCollectionRequest\022A\n" + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + "+memorystore.googleapis.com/BackupCollection\"\200\001\n" + "\022ListBackupsRequest\0229\n" - + "\006parent\030\001 \001(" - + "\tB)\340A\002\372A#\022!memorystore.googleapis.com/Backup\022\026\n" + + "\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\022!memorystore.googleapis.com/Backup\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"}\n" + "\023ListBackupsResponse\0228\n" @@ -846,30 +1015,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#memorystore.googleapis.com/Instance\022+\n" + "\003ttl\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\033\n" - + "\tbackup_id\030\003 \001(\tB\003", - "\340A\001H\000\210\001\001B\014\n\n" + + "\tbackup_id\030\003 \001(\tB\003\340A\001H\000\210\001\001B\014\n\n" + "_backup_id\"[\n" + "\036GetCertificateAuthorityRequest\0229\n" + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#memorystore.googleapis.com/Instance\"\272\001\n" + "\031ListTokenAuthUsersRequest\022@\n" - + "\006parent\030\001 \001(" - + "\tB0\340A\002\372A*\022(memorystore.googleapis.com/TokenAuthUser\022\026\n" + + "\006parent\030\001 \001(\tB0\340A\002\372" + + "A*\022(memorystore.googleapis.com/TokenAuthUser\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\231\001\n" + "\032ListTokenAuthUsersResponse\022H\n" - + "\020token_auth_users\030\001 \003(" - + "\0132..google.cloud.memorystore.v1beta.TokenAuthUser\022\027\n" + + "\020token_auth_users\030\001 \003(\0132..goo" + + "gle.cloud.memorystore.v1beta.TokenAuthUser\022\027\n" + "\017next_page_token\030\002 \001(\t\022\030\n" + "\013unreachable\030\003 \003(\tB\003\340A\006\"Y\n" + "\027GetTokenAuthUserRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + "(memorystore.googleapis.com/TokenAuthUser\"\262\001\n" + "\025ListAuthTokensRequest\022<\n" - + "\006parent\030\001 \001(\tB,\340A\002\372A" - + "&\022$memorystore.googleapis.com/AuthToken\022\026\n" + + "\006parent\030\001 \001(" + + "\tB,\340A\002\372A&\022$memorystore.googleapis.com/AuthToken\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" @@ -900,30 +1068,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB,\340A\002\372A&\n" + "$memorystore.googleapis.com/AuthToken\"\221\004\n" + "\024CertificateAuthority\022n\n" - + "\021managed_server_ca\030\002 \001(\0132Q.google.cloud.memorystore." - + "v1beta.CertificateAuthority.ManagedCertificateAuthorityH\000\022\021\n" + + "\021managed_server_ca\030\002 \001(\0132Q.google.cloud.memorystore.v1beta." + + "CertificateAuthority.ManagedCertificateAuthorityH\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\032\257\001\n" + "\033ManagedCertificateAuthority\022m\n" - + "\010ca_certs\030\001 \003(\0132[.google.cloud.memorystore.v1beta" - + ".CertificateAuthority.ManagedCertificateAuthority.CertChain\032!\n" + + "\010ca_certs\030\001 \003(\0132[.google.cloud.memorystore.v1beta.Certif" + + "icateAuthority.ManagedCertificateAuthority.CertChain\032!\n" + "\tCertChain\022\024\n" + "\014certificates\030\001 \003(\t:\266\001\352A\262\001\n" - + "/memorystore.googleapis.com/CertificateAuthority\022Qprojects" - + "/{project}/locations/{location}/instances/{instance}/certificateAuthority*\026certi" - + "ficateAuthorities2\024certificateAuthorityB\013\n" + + "/memorystore.googleapis.com/CertificateAuthority\022Qprojects/{proje" + + "ct}/locations/{location}/instances/{inst" + + "ance}/certificateAuthority*\026certificateAuthorities2\024certificateAuthorityB\013\n" + "\tserver_ca\"\210\005\n" + "\"SharedRegionalCertificateAuthority\022\204\001\n" - + "\021managed_server_ca\030\002 \001(\0132g.google.cloud.memorystore.v1beta.Shared" - + "RegionalCertificateAuthority.RegionalManagedCertificateAuthorityH\000\022\021\n" + + "\021managed_server_ca\030\002 \001(\0132g.googl" + + "e.cloud.memorystore.v1beta.SharedRegiona" + + "lCertificateAuthority.RegionalManagedCertificateAuthorityH\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\032\336\001\n" + "#RegionalManagedCertificateAuthority\022\213\001\n" - + "\010ca_certs\030\001 \003(\0132y.google.cloud.memorystore.v1beta.SharedRegionalCertifi" - + "cateAuthority.RegionalManagedCertificateAuthority.RegionalCertChain\032)\n" + + "\010ca_certs\030\001 \003(\0132y.google.cloud.memorys" + + "tore.v1beta.SharedRegionalCertificateAut" + + "hority.RegionalManagedCertificateAuthority.RegionalCertChain\032)\n" + "\021RegionalCertChain\022\024\n" + "\014certificates\030\001 \003(\t:\331\001\352A\325\001\n" - + "=memorystore.googleapis.com/SharedRegionalCertificateAuthority\022Jprojects/{project}" - + "/locations/{location}/sharedRegionalCertificateAuthority*$sharedRegionalCertific" - + "ateAuthorities2\"sharedRegionalCertificateAuthorityB\013\n" + + "=memorystore.googleapis.com/SharedRegionalCertifi" + + "cateAuthority\022Jprojects/{project}/locations/{location}/sharedRegionalCertificate" + + "Authority*$sharedRegionalCertificateAuth" + + "orities2\"sharedRegionalCertificateAuthorityB\013\n" + "\tserver_ca\"\203\001\n" + ",GetSharedRegionalCertificateAuthorityRequest\022S\n" + "\004name\030\001 \001(\tBE\340A\002\372A?\n" @@ -937,12 +1108,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n" + "\013api_version\030\007 \001(\tB\003\340A\003\"\376\004\n" + "\016EncryptionInfo\022R\n" - + "\017encryption_type\030\001 \001(\01624.google.cloud.memo" - + "rystore.v1beta.EncryptionInfo.TypeB\003\340A\003\022J\n" + + "\017encryption_type\030\001" + + " \001(\01624.google.cloud.memorystore.v1beta.EncryptionInfo.TypeB\003\340A\003\022J\n" + "\020kms_key_versions\030\002 \003(\tB0\340A\003\372A*\n" + "(cloudkms.googleapis.com/CryptoKeyVersion\022_\n" - + "\025kms_key_primary_state\030\003 \001(\0162;.google.clou" - + "d.memorystore.v1beta.EncryptionInfo.KmsKeyStateB\003\340A\003\0229\n" + + "\025kms_key_primary_state\030\003 \001(\0162;.google.cloud.memor" + + "ystore.v1beta.EncryptionInfo.KmsKeyStateB\003\340A\003\0229\n" + "\020last_update_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\\\n" + "\004Type\022\024\n" @@ -967,141 +1138,175 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033CONNECTION_TYPE_UNSPECIFIED\020\000\022\035\n" + "\031CONNECTION_TYPE_DISCOVERY\020\001\022\033\n" + "\027CONNECTION_TYPE_PRIMARY\020\002\022\032\n" - + "\026CONNECTION_TYPE_READER\020\0032\225.\n" - + "\013Memorystore\022\302\001\n\r" - + "ListInstances\0225.google.cloud.memorystore.v1beta.ListI" - + "nstancesRequest\0326.google.cloud.memorysto" - + "re.v1beta.ListInstancesResponse\"B\332A\006pare" - + "nt\202\323\344\223\0023\0221/v1beta/{parent=projects/*/locations/*}/instances\022\257\001\n" - + "\013GetInstance\0223.google.cloud.memorystore.v1beta.GetInstanc" - + "eRequest\032).google.cloud.memorystore.v1be" - + "ta.Instance\"@\332A\004name\202\323\344\223\0023\0221/v1beta/{nam" - + "e=projects/*/locations/*/instances/*}\022\353\001\n" - + "\016CreateInstance\0226.google.cloud.memoryst" - + "ore.v1beta.CreateInstanceRequest\032\035.google.longrunning.Operation\"\201\001\312A\035\n" - + "\010Instance\022\021OperationMetadata\332A\033parent,instance,ins" - + "tance_id\202\323\344\223\002=\"1/v1beta/{parent=projects/*/locations/*}/instances:\010instance\022\355\001\n" - + "\016UpdateInstance\0226.google.cloud.memorystor" - + "e.v1beta.UpdateInstanceRequest\032\035.google.longrunning.Operation\"\203\001\312A\035\n" - + "\010Instance\022\021OperationMetadata\332A\024instance,update_mask\202" - + "\323\344\223\002F2:/v1beta/{instance.name=projects/*/locations/*/instances/*}:\010instance\022\326\001\n" - + "\016DeleteInstance\0226.google.cloud.memorystor" - + "e.v1beta.DeleteInstanceRequest\032\035.google.longrunning.Operation\"m\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002" - + "3*1/v1beta/{name=projects/*/locations/*/instances/*}\022\350\001\n" - + "\027GetCertificateAuthority\022?.google.cloud.memorystore.v1beta.GetCe" - + "rtificateAuthorityRequest\0325.google.cloud.memorystore.v1beta.CertificateAuthority" - + "\"U\332A\004name\202\323\344\223\002H\022F/v1beta/{name=projects/" - + "*/locations/*/instances/*}/certificateAuthority\022\224\002\n" - + "%GetSharedRegionalCertificateAuthority\022M.google.cloud.memorystore.v1b" - + "eta.GetSharedRegionalCertificateAuthorityRequest\032C.google.cloud.memorystore.v1be" - + "ta.SharedRegionalCertificateAuthority\"W\332" - + "A\004name\202\323\344\223\002J\022H/v1beta/{name=projects/*/l" - + "ocations/*/sharedRegionalCertificateAuthority}\022\217\002\n" - + "\025RescheduleMaintenance\022=.google.cloud.memorystore.v1beta.RescheduleMai" - + "ntenanceRequest\032\035.google.longrunning.Operation\"\227\001\312A\035\n" - + "\010Instance\022\021OperationMetadata\332A\"name,reschedule_type,schedule_time\202\323" - + "\344\223\002L\"G/v1beta/{name=projects/*/locations" - + "/*/instances/*}:rescheduleMaintenance:\001*\022\342\001\n" - + "\025ListBackupCollections\022=.google.cloud.memorystore.v1beta.ListBackupCollectio" - + "nsRequest\032>.google.cloud.memorystore.v1b" - + "eta.ListBackupCollectionsResponse\"J\332A\006pa" - + "rent\202\323\344\223\002;\0229/v1beta/{parent=projects/*/locations/*}/backupCollections\022\317\001\n" - + "\023GetBackupCollection\022;.google.cloud.memorystore" - + ".v1beta.GetBackupCollectionRequest\0321.google.cloud.memorystore.v1beta.BackupColle" - + "ction\"H\332A\004name\202\323\344\223\002;\0229/v1beta/{name=proj" - + "ects/*/locations/*/backupCollections/*}\022\316\001\n" - + "\013ListBackups\0223.google.cloud.memorystore.v1beta.ListBackupsRequest\0324.google.cl" - + "oud.memorystore.v1beta.ListBackupsRespon" - + "se\"T\332A\006parent\202\323\344\223\002E\022C/v1beta/{parent=pro" - + "jects/*/locations/*/backupCollections/*}/backups\022\273\001\n" - + "\tGetBackup\0221.google.cloud.memorystore.v1beta.GetBackupRequest\032\'.goog" - + "le.cloud.memorystore.v1beta.Backup\"R\332A\004n" - + "ame\202\323\344\223\002E\022C/v1beta/{name=projects/*/loca" - + "tions/*/backupCollections/*/backups/*}\022\344\001\n" - + "\014DeleteBackup\0224.google.cloud.memorysto" - + "re.v1beta.DeleteBackupRequest\032\035.google.longrunning.Operation\"\177\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002E" - + "*C/v1beta/{name=projects/*/locations/*/backupCollections/*/backups/*}\022\330\001\n" - + "\014ExportBackup\0224.google.cloud.memorystore.v1beta" - + ".ExportBackupRequest\032\035.google.longrunning.Operation\"s\312A\033\n" - + "\006Backup\022\021OperationMetad" - + "ata\202\323\344\223\002O\"J/v1beta/{name=projects/*/loca" - + "tions/*/backupCollections/*/backups/*}:export:\001*\022\323\001\n" - + "\016BackupInstance\0226.google.clo" - + "ud.memorystore.v1beta.BackupInstanceRequest\032\035.google.longrunning.Operation\"j\312A\035\n" - + "\010Instance\022\021OperationMetadata\332A\004name\202\323\344\223\002" - + "=\"8/v1beta/{name=projects/*/locations/*/instances/*}:backup:\001*\022\324\001\n" - + "\016StartMigration\0226.google.cloud.memorystore.v1beta.Star" - + "tMigrationRequest\032\035.google.longrunning.Operation\"k\312A\035\n" - + "\010Instance\022\021OperationMetada" - + "ta\202\323\344\223\002E\"@/v1beta/{name=projects/*/locat" - + "ions/*/instances/*}:startMigration:\001*\022\344\001\n" - + "\017FinishMigration\0227.google.cloud.memorys" - + "tore.v1beta.FinishMigrationRequest\032\035.google.longrunning.Operation\"y\312A\035\n" + + "\026CONNECTION_TYPE_READER\020\0032\236:\n" + + "\013Memorystore\022\312\001\n" + + "\017ListAclPolicies\0227.google.cloud.memorystore.v1beta.ListAclPol" + + "iciesRequest\0328.google.cloud.memorystore." + + "v1beta.ListAclPoliciesResponse\"D\332A\006paren" + + "t\202\323\344\223\0025\0223/v1beta/{parent=projects/*/locations/*}/aclPolicies\022\302\001\n\r" + + "ListInstances\0225.google.cloud.memorystore.v1beta.ListIns" + + "tancesRequest\0326.google.cloud.memorystore" + + ".v1beta.ListInstancesResponse\"B\332A\006parent" + + "\202\323\344\223\0023\0221/v1beta/{parent=projects/*/locations/*}/instances\022\264\001\n" + + "\014GetAclPolicy\0224.google.cloud.memorystore.v1beta.GetAclPolic" + + "yRequest\032*.google.cloud.memorystore.v1be" + + "ta.AclPolicy\"B\332A\004name\202\323\344\223\0025\0223/v1beta/{na" + + "me=projects/*/locations/*/aclPolicies/*}\022\257\001\n" + + "\013GetInstance\0223.google.cloud.memorystore.v1beta.GetInstanceRequest\032).google.c" + + "loud.memorystore.v1beta.Instance\"@\332A\004nam" + + "e\202\323\344\223\0023\0221/v1beta/{name=projects/*/locations/*/instances/*}\022\341\001\n" + + "\017CreateAclPolicy\0227.google.cloud.memorystore.v1beta.CreateA" + + "clPolicyRequest\032*.google.cloud.memorysto" + + "re.v1beta.AclPolicy\"i\332A\037parent,acl_polic" + + "y,acl_policy_id\202\323\344\223\002A\"3/v1beta/{parent=projects/*/locations/*}/aclPolicies:\n" + + "acl_policy\022\353\001\n" + + "\016CreateInstance\0226.google.cloud" + + ".memorystore.v1beta.CreateInstanceRequest\032\035.google.longrunning.Operation\"\201\001\312A\035\n" + + "\010Instance\022\021OperationMetadata\332A\033parent,ins" + + "tance,instance_id\202\323\344\223\002=\"1/v1beta/{parent" + + "=projects/*/locations/*}/instances:\010instance\022\370\001\n" + + "\017UpdateAclPolicy\0227.google.cloud." + + "memorystore.v1beta.UpdateAclPolicyRequest\032\035.google.longrunning.Operation\"\214\001\312A\036\n" + + "\tAclPolicy\022\021OperationMetadata\332A\026acl_polic" + + "y,update_mask\202\323\344\223\002L2>/v1beta/{acl_policy" + + ".name=projects/*/locations/*/aclPolicies/*}:\n" + + "acl_policy\022\355\001\n" + + "\016UpdateInstance\0226.google.cloud.memorystore.v1beta.UpdateInsta" + + "nceRequest\032\035.google.longrunning.Operation\"\203\001\312A\035\n" + + "\010Instance\022\021OperationMetadata\332A\024i" + + "nstance,update_mask\202\323\344\223\002F2:/v1beta/{inst" + + "ance.name=projects/*/locations/*/instances/*}:\010instance\022\332\001\n" + + "\017DeleteAclPolicy\0227.google.cloud.memorystore.v1beta.DeleteAclP" + + "olicyRequest\032\035.google.longrunning.Operation\"o\312A*\n" + + "\025google.protobuf.Empty\022\021Operati" + + "onMetadata\332A\004name\202\323\344\223\0025*3/v1beta/{name=projects/*/locations/*/aclPolicies/*}\022\330\001\n" + + "\024GetAclPolicyRevision\022<.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequ" + + "est\0322.google.cloud.memorystore.v1beta.Ac" + + "lPolicyRevision\"N\332A\004name\202\323\344\223\002A\022?/v1beta/" + + "{name=projects/*/locations/*/aclPolicies/*/revisions/*}\022\353\001\n" + + "\026ListAclPolicyRevisions\022>.google.cloud.memorystore.v1beta.Lis" + + "tAclPolicyRevisionsRequest\032?.google.cloud.memorystore.v1beta.ListAclPolicyRevisi" + + "onsResponse\"P\332A\006parent\202\323\344\223\002A\022?/v1beta/{p" + + "arent=projects/*/locations/*/aclPolicies/*}/revisions\022\326\001\n" + + "\016DeleteInstance\0226.google.cloud.memorystore.v1beta.DeleteInstanc" + + "eRequest\032\035.google.longrunning.Operation\"m\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMe" + + "tadata\332A\004name\202\323\344\223\0023*1/v1beta/{name=projects/*/locations/*/instances/*}\022\350\001\n" + + "\027GetCertificateAuthority\022?.google.cloud.memory" + + "store.v1beta.GetCertificateAuthorityRequest\0325.google.cloud.memorystore.v1beta.Ce" + + "rtificateAuthority\"U\332A\004name\202\323\344\223\002H\022F/v1be" + + "ta/{name=projects/*/locations/*/instances/*}/certificateAuthority\022\224\002\n" + + "%GetSharedRegionalCertificateAuthority\022M.google.clo" + + "ud.memorystore.v1beta.GetSharedRegionalCertificateAuthorityRequest\032C.google.clou" + + "d.memorystore.v1beta.SharedRegionalCerti" + + "ficateAuthority\"W\332A\004name\202\323\344\223\002J\022H/v1beta/" + + "{name=projects/*/locations/*/sharedRegionalCertificateAuthority}\022\217\002\n" + + "\025RescheduleMaintenance\022=.google.cloud.memorystore.v1" + + "beta.RescheduleMaintenanceRequest\032\035.google.longrunning.Operation\"\227\001\312A\035\n" + + "\010Instance\022\021OperationMetadata\332A\"name,reschedule_ty" + + "pe,schedule_time\202\323\344\223\002L\"G/v1beta/{name=pr" + + "ojects/*/locations/*/instances/*}:rescheduleMaintenance:\001*\022\342\001\n" + + "\025ListBackupCollections\022=.google.cloud.memorystore.v1beta.L" + + "istBackupCollectionsRequest\032>.google.cloud.memorystore.v1beta.ListBackupCollecti" + + "onsResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1beta/{p" + + "arent=projects/*/locations/*}/backupCollections\022\317\001\n" + + "\023GetBackupCollection\022;.google.cloud.memorystore.v1beta.GetBackupColle" + + "ctionRequest\0321.google.cloud.memorystore." + + "v1beta.BackupCollection\"H\332A\004name\202\323\344\223\002;\0229" + + "/v1beta/{name=projects/*/locations/*/backupCollections/*}\022\316\001\n" + + "\013ListBackups\0223.google.cloud.memorystore.v1beta.ListBackupsR" + + "equest\0324.google.cloud.memorystore.v1beta" + + ".ListBackupsResponse\"T\332A\006parent\202\323\344\223\002E\022C/" + + "v1beta/{parent=projects/*/locations/*/backupCollections/*}/backups\022\273\001\n" + + "\tGetBackup\0221.google.cloud.memorystore.v1beta.GetBa" + + "ckupRequest\032\'.google.cloud.memorystore.v" + + "1beta.Backup\"R\332A\004name\202\323\344\223\002E\022C/v1beta/{na" + + "me=projects/*/locations/*/backupCollections/*/backups/*}\022\344\001\n" + + "\014DeleteBackup\0224.google.cloud.memorystore.v1beta.DeleteBackup" + + "Request\032\035.google.longrunning.Operation\"\177\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMet" + + "adata\332A\004name\202\323\344\223\002E*C/v1beta/{name=projec" + + "ts/*/locations/*/backupCollections/*/backups/*}\022\330\001\n" + + "\014ExportBackup\0224.google.cloud." + + "memorystore.v1beta.ExportBackupRequest\032\035.google.longrunning.Operation\"s\312A\033\n" + + "\006Backup\022\021OperationMetadata\202\323\344\223\002O\"J/v1beta/{na" + + "me=projects/*/locations/*/backupCollections/*/backups/*}:export:\001*\022\323\001\n" + + "\016BackupInstance\0226.google.cloud.memorystore.v1beta." + + "BackupInstanceRequest\032\035.google.longrunning.Operation\"j\312A\035\n" + + "\010Instance\022\021OperationMe" + + "tadata\332A\004name\202\323\344\223\002=\"8/v1beta/{name=proje" + + "cts/*/locations/*/instances/*}:backup:\001*\022\324\001\n" + + "\016StartMigration\0226.google.cloud.memor" + + "ystore.v1beta.StartMigrationRequest\032\035.google.longrunning.Operation\"k\312A\035\n" + + "\010Instance\022\021OperationMetadata\202\323\344\223\002E\"@/v1beta/{nam" + + "e=projects/*/locations/*/instances/*}:startMigration:\001*\022\344\001\n" + + "\017FinishMigration\0227.google.cloud.memorystore.v1beta.FinishMigr" + + "ationRequest\032\035.google.longrunning.Operation\"y\312A\035\n" + "\010Instance\022\021OperationMetadata\332A\n" - + "name,force\202\323\344\223\002F\"A" - + "/v1beta/{name=projects/*/locations/*/instances/*}:finishMigration:\001*\022\342\001\n" - + "\022ListTokenAuthUsers\022:.google.cloud.memorystore.v" - + "1beta.ListTokenAuthUsersRequest\032;.google.cloud.memorystore.v1beta.ListTokenAuthU" - + "sersResponse\"S\332A\006parent\202\323\344\223\002D\022B/v1beta/{" - + "parent=projects/*/locations/*/instances/*}/tokenAuthUsers\022\317\001\n" - + "\020GetTokenAuthUser\0228.google.cloud.memorystore.v1beta.GetToke" - + "nAuthUserRequest\032..google.cloud.memoryst" - + "ore.v1beta.TokenAuthUser\"Q\332A\004name\202\323\344\223\002D\022" - + "B/v1beta/{name=projects/*/locations/*/instances/*/tokenAuthUsers/*}\022\343\001\n" - + "\016ListAuthTokens\0226.google.cloud.memorystore.v1beta" - + ".ListAuthTokensRequest\0327.google.cloud.memorystore.v1beta.ListAuthTokensResponse\"" - + "`\332A\006parent\202\323\344\223\002Q\022O/v1beta/{parent=projec" - + "ts/*/locations/*/instances/*/tokenAuthUsers/*}/authTokens\022\320\001\n" - + "\014GetAuthToken\0224.google.cloud.memorystore.v1beta.GetAuthToke" - + "nRequest\032*.google.cloud.memorystore.v1be" - + "ta.AuthToken\"^\332A\004name\202\323\344\223\002Q\022O/v1beta/{na" - + "me=projects/*/locations/*/instances/*/tokenAuthUsers/*/authTokens/*}\022\372\001\n" - + "\020AddTokenAuthUser\0228.google.cloud.memorystore.v1b" - + "eta.AddTokenAuthUserRequest\032\035.google.longrunning.Operation\"\214\001\312A\035\n" - + "\010Instance\022\021OperationMetadata\332A\030instance,token_auth_user" - + "\202\323\344\223\002K\"F/v1beta/{instance=projects/*/loc" - + "ations/*/instances/*}:addTokenAuthUser:\001*\022\361\001\n" - + "\023DeleteTokenAuthUser\022;.google.cloud.memorystore.v1beta.DeleteTokenAuthUserR" - + "equest\032\035.google.longrunning.Operation\"~\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMeta" - + "data\332A\004name\202\323\344\223\002D*B/v1beta/{name=project" - + "s/*/locations/*/instances/*/tokenAuthUsers/*}\022\215\002\n" - + "\014AddAuthToken\0224.google.cloud.me" - + "morystore.v1beta.AddAuthTokenRequest\032\035.google.longrunning.Operation\"\247\001\312A\"\n\r" - + "TokenAuthUser\022\021OperationMetadata\332A\032token_auth" - + "_user,auth_token\202\323\344\223\002_\"Z/v1beta/{token_a" - + "uth_user=projects/*/locations/*/instance" - + "s/*/tokenAuthUsers/*}:addAuthToken:\001*\022\367\001\n" - + "\017DeleteAuthToken\0227.google.cloud.memorys" - + "tore.v1beta.DeleteAuthTokenRequest\032\035.google.longrunning.Operation\"\213\001\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name" - + "\202\323\344\223\002Q*O/v1beta/{name=projects/*/locatio" - + "ns/*/instances/*/tokenAuthUsers/*/authTo" - + "kens/*}\032\274\001\312A\032memorystore.googleapis.com\322" - + "A\233\001https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/aut" - + "h/memorystore.read-only,https://www.goog" - + "leapis.com/auth/memorystore.read-writeB\236\010\n" - + "#com.google.cloud.memorystore.v1betaB\013V1mainProtoP\001ZEcloud.google.com/go/memor" - + "ystore/apiv1beta/memorystorepb;memorysto" - + "repb\252\002\037Google.Cloud.Memorystore.V1Beta\312\002" - + "\037Google\\Cloud\\Memorystore\\V1beta\352\002\"Google::Cloud::Memorystore::V1beta\352An\n" - + "%compute.googleapis.com/ForwardingRule\022Eproject" - + "s/{project}/regions/{region}/forwardingRules/{forwarding_rule}\352AN\n" - + "\036compute.googl" - + "eapis.com/Network\022,projects/{project}/global/networks/{network}\352Aw\n" - + "(compute.googleapis.com/ServiceAttachment\022Kprojects/{" - + "project}/regions/{region}/serviceAttachments/{service_attachment}\352Ax\n" - + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{proje" - + "ct}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352A\246\001\n" - + "(cloudkms.googleapis.com/CryptoKeyVersion\022zproj" - + "ects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/" - + "cryptoKeyVersions/{crypto_key_version}\352A\\\n" - + "\037privateca.googleapis.com/CaPool\0229proj" - + "ects/{project}/locations/{location}/caPools/{ca_pool}\352Aw\n" - + "(compute.googleapis.com/NetworkAttachment\022Kprojects/{project}/r" - + "egions/{region}/networkAttachments/{network_attachment}b\006proto3" + + "name,force\202\323\344\223\002F\"A/v1beta/{name=projects" + + "/*/locations/*/instances/*}:finishMigration:\001*\022\342\001\n" + + "\022ListTokenAuthUsers\022:.google.cloud.memorystore.v1beta.ListTokenAuthUse" + + "rsRequest\032;.google.cloud.memorystore.v1b" + + "eta.ListTokenAuthUsersResponse\"S\332A\006paren" + + "t\202\323\344\223\002D\022B/v1beta/{parent=projects/*/locations/*/instances/*}/tokenAuthUsers\022\317\001\n" + + "\020GetTokenAuthUser\0228.google.cloud.memoryst" + + "ore.v1beta.GetTokenAuthUserRequest\032..google.cloud.memorystore.v1beta.TokenAuthUs" + + "er\"Q\332A\004name\202\323\344\223\002D\022B/v1beta/{name=project" + + "s/*/locations/*/instances/*/tokenAuthUsers/*}\022\343\001\n" + + "\016ListAuthTokens\0226.google.cloud.memorystore.v1beta.ListAuthTokensRequest" + + "\0327.google.cloud.memorystore.v1beta.ListA" + + "uthTokensResponse\"`\332A\006parent\202\323\344\223\002Q\022O/v1b" + + "eta/{parent=projects/*/locations/*/instances/*/tokenAuthUsers/*}/authTokens\022\320\001\n" + + "\014GetAuthToken\0224.google.cloud.memorystore." + + "v1beta.GetAuthTokenRequest\032*.google.clou" + + "d.memorystore.v1beta.AuthToken\"^\332A\004name\202" + + "\323\344\223\002Q\022O/v1beta/{name=projects/*/location" + + "s/*/instances/*/tokenAuthUsers/*/authTokens/*}\022\372\001\n" + + "\020AddTokenAuthUser\0228.google.cloud.memorystore.v1beta.AddTokenAuthUserRe" + + "quest\032\035.google.longrunning.Operation\"\214\001\312A\035\n" + + "\010Instance\022\021OperationMetadata\332A\030instan" + + "ce,token_auth_user\202\323\344\223\002K\"F/v1beta/{insta" + + "nce=projects/*/locations/*/instances/*}:addTokenAuthUser:\001*\022\361\001\n" + + "\023DeleteTokenAuthUser\022;.google.cloud.memorystore.v1beta.De" + + "leteTokenAuthUserRequest\032\035.google.longrunning.Operation\"~\312A*\n" + + "\025google.protobuf.Em" + + "pty\022\021OperationMetadata\332A\004name\202\323\344\223\002D*B/v1" + + "beta/{name=projects/*/locations/*/instances/*/tokenAuthUsers/*}\022\215\002\n" + + "\014AddAuthToken\0224.google.cloud.memorystore.v1beta.AddAu" + + "thTokenRequest\032\035.google.longrunning.Operation\"\247\001\312A\"\n\r" + + "TokenAuthUser\022\021OperationMet" + + "adata\332A\032token_auth_user,auth_token\202\323\344\223\002_" + + "\"Z/v1beta/{token_auth_user=projects/*/lo" + + "cations/*/instances/*/tokenAuthUsers/*}:addAuthToken:\001*\022\367\001\n" + + "\017DeleteAuthToken\0227.google.cloud.memorystore.v1beta.DeleteAuth" + + "TokenRequest\032\035.google.longrunning.Operation\"\213\001\312A*\n" + + "\025google.protobuf.Empty\022\021Operat" + + "ionMetadata\332A\004name\202\323\344\223\002Q*O/v1beta/{name=" + + "projects/*/locations/*/instances/*/token" + + "AuthUsers/*/authTokens/*}\032\274\001\312A\032memorysto" + + "re.googleapis.com\322A\233\001https://www.googlea" + + "pis.com/auth/cloud-platform,https://www.googleapis.com/auth/memorystore.read-onl" + + "y,https://www.googleapis.com/auth/memorystore.read-writeB\236\010\n" + + "#com.google.cloud.memorystore.v1betaB\013V1mainProtoP\001ZEcloud.g" + + "oogle.com/go/memorystore/apiv1beta/memor" + + "ystorepb;memorystorepb\252\002\037Google.Cloud.Me" + + "morystore.V1Beta\312\002\037Google\\Cloud\\Memoryst" + + "ore\\V1beta\352\002\"Google::Cloud::Memorystore::V1beta\352An\n" + + "%compute.googleapis.com/ForwardingRule\022Eprojects/{project}/regions/{r" + + "egion}/forwardingRules/{forwarding_rule}\352AN\n" + + "\036compute.googleapis.com/Network\022,pro" + + "jects/{project}/global/networks/{network}\352Aw\n" + + "(compute.googleapis.com/ServiceAttachment\022Kprojects/{project}/regions/{regi" + + "on}/serviceAttachments/{service_attachment}\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project}/locations/{locatio" + + "n}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352A\246\001\n" + + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects/{project}/locatio" + + "ns/{location}/keyRings/{key_ring}/crypto" + + "Keys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}\352A\\\n" + + "\037privateca.googleapi" + + "s.com/CaPool\0229projects/{project}/locations/{location}/caPools/{ca_pool}\352Aw\n" + + "(compute.googleapis.com/NetworkAttachment\022Kpr" + + "ojects/{project}/regions/{region}/networkAttachments/{network_attachment}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1171,6 +1376,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServerCaPool", "RotateServerCertificate", "MigrationConfig", + "AclPolicy", + "AclPolicyInfo", "ImportSources", }); internal_static_google_cloud_memorystore_v1beta_Instance_StateInfo_descriptor = @@ -1238,8 +1445,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_memorystore_v1beta_StartMigrationRequest_descriptor = + internal_static_google_cloud_memorystore_v1beta_AclPolicyInfo_descriptor = getDescriptor().getMessageType(1); + internal_static_google_cloud_memorystore_v1beta_AclPolicyInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1beta_AclPolicyInfo_descriptor, + new java.lang.String[] { + "AppliedAclPolicy", + "AppliedAclPolicyRevision", + "AppliedAclPolicyRevisionNumber", + "AclPolicyRevisionStatuses", + }); + internal_static_google_cloud_memorystore_v1beta_StartMigrationRequest_descriptor = + getDescriptor().getMessageType(2); internal_static_google_cloud_memorystore_v1beta_StartMigrationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_StartMigrationRequest_descriptor, @@ -1247,7 +1465,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SelfManagedSource", "Name", "Source", }); internal_static_google_cloud_memorystore_v1beta_FinishMigrationRequest_descriptor = - getDescriptor().getMessageType(2); + getDescriptor().getMessageType(3); internal_static_google_cloud_memorystore_v1beta_FinishMigrationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_FinishMigrationRequest_descriptor, @@ -1255,7 +1473,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Force", }); internal_static_google_cloud_memorystore_v1beta_SelfManagedSource_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(4); internal_static_google_cloud_memorystore_v1beta_SelfManagedSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_SelfManagedSource_descriptor, @@ -1263,15 +1481,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IpAddress", "Port", "NetworkAttachment", }); internal_static_google_cloud_memorystore_v1beta_MigrationConfig_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(5); internal_static_google_cloud_memorystore_v1beta_MigrationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_MigrationConfig_descriptor, new java.lang.String[] { "SelfManagedSource", "State", "ForceFinishMigration", "Source", }); + internal_static_google_cloud_memorystore_v1beta_AclPolicy_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_memorystore_v1beta_AclPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1beta_AclPolicy_descriptor, + new java.lang.String[] { + "Name", + "Rules", + "State", + "Etag", + "InstanceAclPolicyAttachments", + "CreateTime", + "UpdateTime", + }); + internal_static_google_cloud_memorystore_v1beta_AclPolicyRevision_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_memorystore_v1beta_AclPolicyRevision_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1beta_AclPolicyRevision_descriptor, + new java.lang.String[] { + "Name", "RevisionNumber", "Snapshot", "CreateTime", "AttachedInstances", + }); + internal_static_google_cloud_memorystore_v1beta_AclPolicyRevisionStatus_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_memorystore_v1beta_AclPolicyRevisionStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1beta_AclPolicyRevisionStatus_descriptor, + new java.lang.String[] { + "AclPolicyRevision", "AclPolicyRevisionNumber", "State", "ErrorMessage", + }); + internal_static_google_cloud_memorystore_v1beta_InstanceAclPolicyAttachment_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_memorystore_v1beta_InstanceAclPolicyAttachment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1beta_InstanceAclPolicyAttachment_descriptor, + new java.lang.String[] { + "Instance", "AclPolicyRevisionStatuses", + }); + internal_static_google_cloud_memorystore_v1beta_AclRule_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_memorystore_v1beta_AclRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1beta_AclRule_descriptor, + new java.lang.String[] { + "Username", "Rule", + }); internal_static_google_cloud_memorystore_v1beta_AutomatedBackupConfig_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(11); internal_static_google_cloud_memorystore_v1beta_AutomatedBackupConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_AutomatedBackupConfig_descriptor, @@ -1288,7 +1552,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StartTime", }); internal_static_google_cloud_memorystore_v1beta_BackupCollection_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(12); internal_static_google_cloud_memorystore_v1beta_BackupCollection_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_BackupCollection_descriptor, @@ -1304,7 +1568,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LastBackupTime", }); internal_static_google_cloud_memorystore_v1beta_Backup_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(13); internal_static_google_cloud_memorystore_v1beta_Backup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_Backup_descriptor, @@ -1326,7 +1590,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Uid", }); internal_static_google_cloud_memorystore_v1beta_BackupFile_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(14); internal_static_google_cloud_memorystore_v1beta_BackupFile_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_BackupFile_descriptor, @@ -1334,7 +1598,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FileName", "SizeBytes", "CreateTime", }); internal_static_google_cloud_memorystore_v1beta_CrossInstanceReplicationConfig_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(15); internal_static_google_cloud_memorystore_v1beta_CrossInstanceReplicationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_CrossInstanceReplicationConfig_descriptor, @@ -1360,7 +1624,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrimaryInstance", "SecondaryInstances", }); internal_static_google_cloud_memorystore_v1beta_TokenAuthUser_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(16); internal_static_google_cloud_memorystore_v1beta_TokenAuthUser_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_TokenAuthUser_descriptor, @@ -1368,7 +1632,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "State", }); internal_static_google_cloud_memorystore_v1beta_AuthToken_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(17); internal_static_google_cloud_memorystore_v1beta_AuthToken_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_AuthToken_descriptor, @@ -1376,7 +1640,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Token", "CreateTime", "State", }); internal_static_google_cloud_memorystore_v1beta_MaintenancePolicy_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(18); internal_static_google_cloud_memorystore_v1beta_MaintenancePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_MaintenancePolicy_descriptor, @@ -1384,7 +1648,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "UpdateTime", "WeeklyMaintenanceWindow", }); internal_static_google_cloud_memorystore_v1beta_WeeklyMaintenanceWindow_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(19); internal_static_google_cloud_memorystore_v1beta_WeeklyMaintenanceWindow_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_WeeklyMaintenanceWindow_descriptor, @@ -1392,7 +1656,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Day", "StartTime", }); internal_static_google_cloud_memorystore_v1beta_MaintenanceSchedule_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(20); internal_static_google_cloud_memorystore_v1beta_MaintenanceSchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_MaintenanceSchedule_descriptor, @@ -1400,7 +1664,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StartTime", "EndTime", }); internal_static_google_cloud_memorystore_v1beta_PscAttachmentDetail_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(21); internal_static_google_cloud_memorystore_v1beta_PscAttachmentDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_PscAttachmentDetail_descriptor, @@ -1408,7 +1672,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceAttachment", "ConnectionType", }); internal_static_google_cloud_memorystore_v1beta_PscAutoConnection_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(22); internal_static_google_cloud_memorystore_v1beta_PscAutoConnection_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_PscAutoConnection_descriptor, @@ -1425,7 +1689,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Ports", }); internal_static_google_cloud_memorystore_v1beta_PscConnection_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(23); internal_static_google_cloud_memorystore_v1beta_PscConnection_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_PscConnection_descriptor, @@ -1442,7 +1706,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Ports", }); internal_static_google_cloud_memorystore_v1beta_DiscoveryEndpoint_descriptor = - getDescriptor().getMessageType(18); + getDescriptor().getMessageType(24); internal_static_google_cloud_memorystore_v1beta_DiscoveryEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_DiscoveryEndpoint_descriptor, @@ -1450,7 +1714,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Address", "Port", "Network", }); internal_static_google_cloud_memorystore_v1beta_PersistenceConfig_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(25); internal_static_google_cloud_memorystore_v1beta_PersistenceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_PersistenceConfig_descriptor, @@ -1476,7 +1740,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AppendFsync", }); internal_static_google_cloud_memorystore_v1beta_NodeConfig_descriptor = - getDescriptor().getMessageType(20); + getDescriptor().getMessageType(26); internal_static_google_cloud_memorystore_v1beta_NodeConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_NodeConfig_descriptor, @@ -1484,7 +1748,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SizeGb", }); internal_static_google_cloud_memorystore_v1beta_ZoneDistributionConfig_descriptor = - getDescriptor().getMessageType(21); + getDescriptor().getMessageType(27); internal_static_google_cloud_memorystore_v1beta_ZoneDistributionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_ZoneDistributionConfig_descriptor, @@ -1492,15 +1756,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", "Mode", }); internal_static_google_cloud_memorystore_v1beta_RescheduleMaintenanceRequest_descriptor = - getDescriptor().getMessageType(22); + getDescriptor().getMessageType(28); internal_static_google_cloud_memorystore_v1beta_RescheduleMaintenanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_RescheduleMaintenanceRequest_descriptor, new java.lang.String[] { "Name", "RescheduleType", "ScheduleTime", }); + internal_static_google_cloud_memorystore_v1beta_ListAclPoliciesRequest_descriptor = + getDescriptor().getMessageType(29); + internal_static_google_cloud_memorystore_v1beta_ListAclPoliciesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1beta_ListAclPoliciesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_memorystore_v1beta_ListAclPoliciesResponse_descriptor = + getDescriptor().getMessageType(30); + internal_static_google_cloud_memorystore_v1beta_ListAclPoliciesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1beta_ListAclPoliciesResponse_descriptor, + new java.lang.String[] { + "AclPolicies", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_memorystore_v1beta_ListAclPolicyRevisionsRequest_descriptor = + getDescriptor().getMessageType(31); + internal_static_google_cloud_memorystore_v1beta_ListAclPolicyRevisionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1beta_ListAclPolicyRevisionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_memorystore_v1beta_ListAclPolicyRevisionsResponse_descriptor = + getDescriptor().getMessageType(32); + internal_static_google_cloud_memorystore_v1beta_ListAclPolicyRevisionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1beta_ListAclPolicyRevisionsResponse_descriptor, + new java.lang.String[] { + "AclPolicyRevisions", "NextPageToken", "Unreachable", + }); internal_static_google_cloud_memorystore_v1beta_ListInstancesRequest_descriptor = - getDescriptor().getMessageType(23); + getDescriptor().getMessageType(33); internal_static_google_cloud_memorystore_v1beta_ListInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_ListInstancesRequest_descriptor, @@ -1508,39 +1804,79 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_memorystore_v1beta_ListInstancesResponse_descriptor = - getDescriptor().getMessageType(24); + getDescriptor().getMessageType(34); internal_static_google_cloud_memorystore_v1beta_ListInstancesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_ListInstancesResponse_descriptor, new java.lang.String[] { "Instances", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_memorystore_v1beta_GetAclPolicyRequest_descriptor = + getDescriptor().getMessageType(35); + internal_static_google_cloud_memorystore_v1beta_GetAclPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1beta_GetAclPolicyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_memorystore_v1beta_GetAclPolicyRevisionRequest_descriptor = + getDescriptor().getMessageType(36); + internal_static_google_cloud_memorystore_v1beta_GetAclPolicyRevisionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1beta_GetAclPolicyRevisionRequest_descriptor, + new java.lang.String[] { + "Name", + }); internal_static_google_cloud_memorystore_v1beta_GetInstanceRequest_descriptor = - getDescriptor().getMessageType(25); + getDescriptor().getMessageType(37); internal_static_google_cloud_memorystore_v1beta_GetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_GetInstanceRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_cloud_memorystore_v1beta_CreateAclPolicyRequest_descriptor = + getDescriptor().getMessageType(38); + internal_static_google_cloud_memorystore_v1beta_CreateAclPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1beta_CreateAclPolicyRequest_descriptor, + new java.lang.String[] { + "Parent", "AclPolicyId", "AclPolicy", "RequestId", + }); internal_static_google_cloud_memorystore_v1beta_CreateInstanceRequest_descriptor = - getDescriptor().getMessageType(26); + getDescriptor().getMessageType(39); internal_static_google_cloud_memorystore_v1beta_CreateInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_CreateInstanceRequest_descriptor, new java.lang.String[] { "Parent", "InstanceId", "Instance", "RequestId", }); + internal_static_google_cloud_memorystore_v1beta_UpdateAclPolicyRequest_descriptor = + getDescriptor().getMessageType(40); + internal_static_google_cloud_memorystore_v1beta_UpdateAclPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1beta_UpdateAclPolicyRequest_descriptor, + new java.lang.String[] { + "AclPolicy", "UpdateMask", "RequestId", + }); internal_static_google_cloud_memorystore_v1beta_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageType(27); + getDescriptor().getMessageType(41); internal_static_google_cloud_memorystore_v1beta_UpdateInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_UpdateInstanceRequest_descriptor, new java.lang.String[] { "UpdateMask", "Instance", "RequestId", }); + internal_static_google_cloud_memorystore_v1beta_DeleteAclPolicyRequest_descriptor = + getDescriptor().getMessageType(42); + internal_static_google_cloud_memorystore_v1beta_DeleteAclPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1beta_DeleteAclPolicyRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", "Etag", + }); internal_static_google_cloud_memorystore_v1beta_DeleteInstanceRequest_descriptor = - getDescriptor().getMessageType(28); + getDescriptor().getMessageType(43); internal_static_google_cloud_memorystore_v1beta_DeleteInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_DeleteInstanceRequest_descriptor, @@ -1548,7 +1884,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_memorystore_v1beta_ListBackupCollectionsRequest_descriptor = - getDescriptor().getMessageType(29); + getDescriptor().getMessageType(44); internal_static_google_cloud_memorystore_v1beta_ListBackupCollectionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_ListBackupCollectionsRequest_descriptor, @@ -1556,7 +1892,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_memorystore_v1beta_ListBackupCollectionsResponse_descriptor = - getDescriptor().getMessageType(30); + getDescriptor().getMessageType(45); internal_static_google_cloud_memorystore_v1beta_ListBackupCollectionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_ListBackupCollectionsResponse_descriptor, @@ -1564,7 +1900,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackupCollections", "NextPageToken", "Unreachable", }); internal_static_google_cloud_memorystore_v1beta_GetBackupCollectionRequest_descriptor = - getDescriptor().getMessageType(31); + getDescriptor().getMessageType(46); internal_static_google_cloud_memorystore_v1beta_GetBackupCollectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_GetBackupCollectionRequest_descriptor, @@ -1572,7 +1908,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_memorystore_v1beta_ListBackupsRequest_descriptor = - getDescriptor().getMessageType(32); + getDescriptor().getMessageType(47); internal_static_google_cloud_memorystore_v1beta_ListBackupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_ListBackupsRequest_descriptor, @@ -1580,7 +1916,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_memorystore_v1beta_ListBackupsResponse_descriptor = - getDescriptor().getMessageType(33); + getDescriptor().getMessageType(48); internal_static_google_cloud_memorystore_v1beta_ListBackupsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_ListBackupsResponse_descriptor, @@ -1588,7 +1924,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Backups", "NextPageToken", "Unreachable", }); internal_static_google_cloud_memorystore_v1beta_GetBackupRequest_descriptor = - getDescriptor().getMessageType(34); + getDescriptor().getMessageType(49); internal_static_google_cloud_memorystore_v1beta_GetBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_GetBackupRequest_descriptor, @@ -1596,7 +1932,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_memorystore_v1beta_DeleteBackupRequest_descriptor = - getDescriptor().getMessageType(35); + getDescriptor().getMessageType(50); internal_static_google_cloud_memorystore_v1beta_DeleteBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_DeleteBackupRequest_descriptor, @@ -1604,7 +1940,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_memorystore_v1beta_ExportBackupRequest_descriptor = - getDescriptor().getMessageType(36); + getDescriptor().getMessageType(51); internal_static_google_cloud_memorystore_v1beta_ExportBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_ExportBackupRequest_descriptor, @@ -1612,7 +1948,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsBucket", "Name", "Destination", }); internal_static_google_cloud_memorystore_v1beta_BackupInstanceRequest_descriptor = - getDescriptor().getMessageType(37); + getDescriptor().getMessageType(52); internal_static_google_cloud_memorystore_v1beta_BackupInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_BackupInstanceRequest_descriptor, @@ -1620,7 +1956,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Ttl", "BackupId", }); internal_static_google_cloud_memorystore_v1beta_GetCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageType(38); + getDescriptor().getMessageType(53); internal_static_google_cloud_memorystore_v1beta_GetCertificateAuthorityRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_GetCertificateAuthorityRequest_descriptor, @@ -1628,7 +1964,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_memorystore_v1beta_ListTokenAuthUsersRequest_descriptor = - getDescriptor().getMessageType(39); + getDescriptor().getMessageType(54); internal_static_google_cloud_memorystore_v1beta_ListTokenAuthUsersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_ListTokenAuthUsersRequest_descriptor, @@ -1636,7 +1972,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_memorystore_v1beta_ListTokenAuthUsersResponse_descriptor = - getDescriptor().getMessageType(40); + getDescriptor().getMessageType(55); internal_static_google_cloud_memorystore_v1beta_ListTokenAuthUsersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_ListTokenAuthUsersResponse_descriptor, @@ -1644,7 +1980,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TokenAuthUsers", "NextPageToken", "Unreachable", }); internal_static_google_cloud_memorystore_v1beta_GetTokenAuthUserRequest_descriptor = - getDescriptor().getMessageType(41); + getDescriptor().getMessageType(56); internal_static_google_cloud_memorystore_v1beta_GetTokenAuthUserRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_GetTokenAuthUserRequest_descriptor, @@ -1652,7 +1988,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_memorystore_v1beta_ListAuthTokensRequest_descriptor = - getDescriptor().getMessageType(42); + getDescriptor().getMessageType(57); internal_static_google_cloud_memorystore_v1beta_ListAuthTokensRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_ListAuthTokensRequest_descriptor, @@ -1660,7 +1996,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_memorystore_v1beta_ListAuthTokensResponse_descriptor = - getDescriptor().getMessageType(43); + getDescriptor().getMessageType(58); internal_static_google_cloud_memorystore_v1beta_ListAuthTokensResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_ListAuthTokensResponse_descriptor, @@ -1668,7 +2004,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AuthTokens", "NextPageToken", "Unreachable", }); internal_static_google_cloud_memorystore_v1beta_GetAuthTokenRequest_descriptor = - getDescriptor().getMessageType(44); + getDescriptor().getMessageType(59); internal_static_google_cloud_memorystore_v1beta_GetAuthTokenRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_GetAuthTokenRequest_descriptor, @@ -1676,7 +2012,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_memorystore_v1beta_AddTokenAuthUserRequest_descriptor = - getDescriptor().getMessageType(45); + getDescriptor().getMessageType(60); internal_static_google_cloud_memorystore_v1beta_AddTokenAuthUserRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_AddTokenAuthUserRequest_descriptor, @@ -1684,7 +2020,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instance", "TokenAuthUser", }); internal_static_google_cloud_memorystore_v1beta_DeleteTokenAuthUserRequest_descriptor = - getDescriptor().getMessageType(46); + getDescriptor().getMessageType(61); internal_static_google_cloud_memorystore_v1beta_DeleteTokenAuthUserRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_DeleteTokenAuthUserRequest_descriptor, @@ -1692,7 +2028,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "Force", }); internal_static_google_cloud_memorystore_v1beta_AddAuthTokenRequest_descriptor = - getDescriptor().getMessageType(47); + getDescriptor().getMessageType(62); internal_static_google_cloud_memorystore_v1beta_AddAuthTokenRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_AddAuthTokenRequest_descriptor, @@ -1700,7 +2036,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TokenAuthUser", "AuthToken", }); internal_static_google_cloud_memorystore_v1beta_DeleteAuthTokenRequest_descriptor = - getDescriptor().getMessageType(48); + getDescriptor().getMessageType(63); internal_static_google_cloud_memorystore_v1beta_DeleteAuthTokenRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_DeleteAuthTokenRequest_descriptor, @@ -1708,7 +2044,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_memorystore_v1beta_CertificateAuthority_descriptor = - getDescriptor().getMessageType(49); + getDescriptor().getMessageType(64); internal_static_google_cloud_memorystore_v1beta_CertificateAuthority_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_CertificateAuthority_descriptor, @@ -1734,7 +2070,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Certificates", }); internal_static_google_cloud_memorystore_v1beta_SharedRegionalCertificateAuthority_descriptor = - getDescriptor().getMessageType(50); + getDescriptor().getMessageType(65); internal_static_google_cloud_memorystore_v1beta_SharedRegionalCertificateAuthority_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_SharedRegionalCertificateAuthority_descriptor, @@ -1760,7 +2096,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Certificates", }); internal_static_google_cloud_memorystore_v1beta_GetSharedRegionalCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageType(51); + getDescriptor().getMessageType(66); internal_static_google_cloud_memorystore_v1beta_GetSharedRegionalCertificateAuthorityRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_GetSharedRegionalCertificateAuthorityRequest_descriptor, @@ -1768,7 +2104,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_memorystore_v1beta_OperationMetadata_descriptor = - getDescriptor().getMessageType(52); + getDescriptor().getMessageType(67); internal_static_google_cloud_memorystore_v1beta_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_OperationMetadata_descriptor, @@ -1782,7 +2118,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiVersion", }); internal_static_google_cloud_memorystore_v1beta_EncryptionInfo_descriptor = - getDescriptor().getMessageType(53); + getDescriptor().getMessageType(68); internal_static_google_cloud_memorystore_v1beta_EncryptionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1beta_EncryptionInfo_descriptor, diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/proto/google/cloud/memorystore/v1beta/memorystore.proto b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/proto/google/cloud/memorystore/v1beta/memorystore.proto index c7a383492985..7d364d948c88 100644 --- a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/proto/google/cloud/memorystore/v1beta/memorystore.proto +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/proto/google/cloud/memorystore/v1beta/memorystore.proto @@ -73,6 +73,23 @@ service Memorystore { "https://www.googleapis.com/auth/memorystore.read-only," "https://www.googleapis.com/auth/memorystore.read-write"; + // Lists all ACL policies owned by a project in either the specified + // location (region) or all locations. + // + // The location should have the following format: + // + // * `projects/{project_id}/locations/{location_id}` + // + // If `location_id` is specified as `-` (wildcard), then all regions + // available to the project are queried, and the results are aggregated. + rpc ListAclPolicies(ListAclPoliciesRequest) + returns (ListAclPoliciesResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=projects/*/locations/*}/aclPolicies" + }; + option (google.api.method_signature) = "parent"; + } + // Lists Instances in a given project and location. rpc ListInstances(ListInstancesRequest) returns (ListInstancesResponse) { option (google.api.http) = { @@ -81,6 +98,14 @@ service Memorystore { option (google.api.method_signature) = "parent"; } + // Gets the details of a specific Memorystore ACL policy. + rpc GetAclPolicy(GetAclPolicyRequest) returns (AclPolicy) { + option (google.api.http) = { + get: "/v1beta/{name=projects/*/locations/*/aclPolicies/*}" + }; + option (google.api.method_signature) = "name"; + } + // Gets details of a single Instance. rpc GetInstance(GetInstanceRequest) returns (Instance) { option (google.api.http) = { @@ -89,6 +114,17 @@ service Memorystore { option (google.api.method_signature) = "name"; } + // Creates an ACL policy. + // The creation is executed synchronously and the policy is available for use + // immediately after the RPC returns. + rpc CreateAclPolicy(CreateAclPolicyRequest) returns (AclPolicy) { + option (google.api.http) = { + post: "/v1beta/{parent=projects/*/locations/*}/aclPolicies" + body: "acl_policy" + }; + option (google.api.method_signature) = "parent,acl_policy,acl_policy_id"; + } + // Creates a new Instance in a given project and location. rpc CreateInstance(CreateInstanceRequest) returns (google.longrunning.Operation) { @@ -103,6 +139,29 @@ service Memorystore { }; } + // Updates the ACL policy. + // + // The operation will apply the updated ACL policy to all the linked + // instances. The operation will return success if it successfully applied the + // policy to all the instances. If the operation completed with a failure, the + // service will continue to apply the policy via reconciliation for the failed + // instances even after operation completion to ensure eventual consistency. + // + // Completed longrunning.Operation will contain the new ACL policy object + // in the response field. + rpc UpdateAclPolicy(UpdateAclPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1beta/{acl_policy.name=projects/*/locations/*/aclPolicies/*}" + body: "acl_policy" + }; + option (google.api.method_signature) = "acl_policy,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "AclPolicy" + metadata_type: "OperationMetadata" + }; + } + // Updates the parameters of a single Instance. rpc UpdateInstance(UpdateInstanceRequest) returns (google.longrunning.Operation) { @@ -117,6 +176,39 @@ service Memorystore { }; } + // Deletes a specific ACL policy. This action will delete the ACL policy and + // all the rules associated with it. An ACL policy cannot be deleted if it is + // attached to an instance. + rpc DeleteAclPolicy(DeleteAclPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta/{name=projects/*/locations/*/aclPolicies/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Gets details of a specific ACL policy revision. + rpc GetAclPolicyRevision(GetAclPolicyRevisionRequest) + returns (AclPolicyRevision) { + option (google.api.http) = { + get: "/v1beta/{name=projects/*/locations/*/aclPolicies/*/revisions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all ACL policy revisions in a given ACL policy. + rpc ListAclPolicyRevisions(ListAclPolicyRevisionsRequest) + returns (ListAclPolicyRevisionsResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=projects/*/locations/*/aclPolicies/*}/revisions" + }; + option (google.api.method_signature) = "parent"; + } + // Deletes a single Instance. rpc DeleteInstance(DeleteInstanceRequest) returns (google.longrunning.Operation) { @@ -855,6 +947,51 @@ message Instance { // Output only. Migration config for the instance. MigrationConfig migration_config = 59 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The ACL policy for the instance. + // Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy} + optional string acl_policy = 60 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "memorystore.googleapis.com/AclPolicy" + } + ]; + + // Output only. Details of the applied ACL policy. + AclPolicyInfo acl_policy_info = 62 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Details of the applied ACL policy. +message AclPolicyInfo { + // Output only. The resource name of the applied ACL policy. + // Format: + // "projects/{project}/locations/{location}/aclPolicies/{acl_policy}" + string applied_acl_policy = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "memorystore.googleapis.com/AclPolicy" + } + ]; + + // Output only. The resource name of the applied ACL policy revision. + // Format: + // "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}" + string applied_acl_policy_revision = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "memorystore.googleapis.com/AclPolicyRevision" + } + ]; + + // Output only. The revision number of the applied ACL policy revision. + int64 applied_acl_policy_revision_number = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A list of status for various revisions of this ACL policy on + // the instance. + repeated AclPolicyRevisionStatus acl_policy_revision_statuses = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Request for `StartMigration`. @@ -972,6 +1109,162 @@ message MigrationConfig { bool force_finish_migration = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// The ACL policy resource. +message AclPolicy { + option (google.api.resource) = { + type: "memorystore.googleapis.com/AclPolicy" + pattern: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}" + plural: "aclPolicies" + singular: "aclPolicy" + }; + + // Represents the different states of an ACL policy. + enum State { + // Not set. + STATE_UNSPECIFIED = 0; + + // ACL policy has been created and is fully usable. + ACTIVE = 1; + + // ACL policy is being updated. + UPDATING = 2; + + // ACL policy is being deleted. + DELETING = 3; + } + + // Identifier. Full resource path of the ACL policy. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The ACL rules within the ACL policy. + repeated AclRule rules = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The state of the ACL policy. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Etag of the ACL policy. + optional string etag = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The ACL policy attachment status for each attached instance. + repeated InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp that the ACL policy was created. + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp that the ACL policy was last updated. + google.protobuf.Timestamp update_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The ACL policy revision resource. +message AclPolicyRevision { + option (google.api.resource) = { + type: "memorystore.googleapis.com/AclPolicyRevision" + pattern: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}" + plural: "aclPolicyRevisions" + singular: "aclPolicyRevision" + }; + + // Identifier. The name of the ACL policy revision. + // Format: + // "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}" + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The revision number of the ACL policy revision. + int64 revision_number = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The snapshot of the ACL policy at the time of revision + // creation. + AclPolicy snapshot = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp that the revision was created. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A list of instances that are attached to this ACL policy + // revision. + repeated string attached_instances = 5 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "memorystore.googleapis.com/Instance" + } + ]; +} + +// AclPolicyRevisionStatus stores the per-revision status for an attached +// instance. +message AclPolicyRevisionStatus { + // Enum indicating the status of this ACL policy revision on the instance. + enum State { + // Not set. + STATE_UNSPECIFIED = 0; + + // The instance is attempting to apply this revision. + APPLYING = 1; + + // The instance has successfully applied this revision. + APPLIED = 2; + + // The instance failed to apply this revision. + FAILED = 3; + } + + // Output only. The resource name of the ACL policy revision this status + // refers to. Format: + // "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}" + string acl_policy_revision = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "memorystore.googleapis.com/AclPolicyRevision" + } + ]; + + // Output only. The revision number of the ACL policy revision this status + // refers to. + int64 acl_policy_revision_number = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. AclPolicyRevision state. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable error message providing more details for FAILED + // states. + string error_message = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// InstanceAclPolicyAttachment stores the ACL policy status for an attached +// instance for the revisions successfully applied, under application or failed. +message InstanceAclPolicyAttachment { + // Output only. The resource name of the attached instance. + // Format: + // "projects/{project}/locations/{location}/instances/{instance}" + string instance = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "memorystore.googleapis.com/Instance" + } + ]; + + // Output only. A list of status for various revisions of this ACL policy on + // the instance. + repeated AclPolicyRevisionStatus acl_policy_revision_statuses = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A single ACL rule which defines the policy for a user. +message AclRule { + // Required. Specifies the IAM user or service account to be added to the ACL + // policy. This username will be directly set on the Valkey OSS. + string username = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The rule to be applied to the username. Ex: "on >password123 ~* + // +@all" The format of the rule is defined by Valkey OSS: + // https://valkey.io/topics/acl/ + string rule = 2 [(google.api.field_behavior) = REQUIRED]; +} + // The automated backup config for an instance. message AutomatedBackupConfig { // This schedule allows the backup to be triggered at a fixed frequency @@ -1693,6 +1986,85 @@ message RescheduleMaintenanceRequest { [(google.api.field_behavior) = OPTIONAL]; } +// Request for `ListAclPolicies`. +message ListAclPoliciesRequest { + // Required. The resource name of the ACL policy location using the form: + // `projects/{project}/locations/{location}` + // where `location` refers to a Google Cloud region. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "memorystore.googleapis.com/AclPolicy" + } + ]; + + // Optional. The maximum number of items to return. + // + // If not specified, a default value of 1000 will be used by the service. + // Regardless of the page_size value, the response may include a partial list + // and a caller should only rely on response's + // `next_page_token` + // to determine if there are more ACL policies left to be queried. + // + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The `next_page_token` value returned from a previous + // `ListAclPolicies` request, if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for `ListAclPolicies`. +message ListAclPoliciesResponse { + // A list of ACL policies in the project in the specified location, + // or across all locations. + // + // If the `location` in the parent field of the request is "-", all regions + // available to the project are queried, and the results aggregated. + repeated AclPolicy acl_policies = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; + + // Unordered list. Locations that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + +// Request for `ListAclPolicyRevisions`. +message ListAclPolicyRevisionsRequest { + // Required. The resource name of the ACL policy to list revisions for. + // Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "memorystore.googleapis.com/AclPolicyRevision" + } + ]; + + // Optional. The maximum number of items to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The `next_page_token` value returned from a previous + // `ListAclPolicyRevisions` request, if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for `ListAclPolicyRevisions`. +message ListAclPolicyRevisionsResponse { + // A list of ACL policy revisions. + repeated AclPolicyRevision acl_policy_revisions = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; + + // Unordered list. Locations that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + // Request message for `ListInstances`. message ListInstancesRequest { // Required. The parent to list instances from. @@ -1734,6 +2106,32 @@ message ListInstancesResponse { repeated string unreachable = 3; } +// Request for `GetAclPolicy`. +message GetAclPolicyRequest { + // Required. Memorystore ACL policy resource name using the form: + // `projects/{project}/locations/{location}/aclPolicies/{acl_policy}` + // where `location` refers to a Google Cloud region. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "memorystore.googleapis.com/AclPolicy" + } + ]; +} + +// Request for `GetAclPolicyRevision`. +message GetAclPolicyRevisionRequest { + // Required. Memorystore ACL policy revision resource name using the form: + // `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}` + // where `location` refers to a Google Cloud region. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "memorystore.googleapis.com/AclPolicyRevision" + } + ]; +} + // Request message for `GetInstance`. message GetInstanceRequest { // Required. The name of the instance to retrieve. @@ -1746,6 +2144,39 @@ message GetInstanceRequest { ]; } +// Request for `CreateAclPolicy`. +message CreateAclPolicyRequest { + // Required. The resource name of the ACL policy location using the form: + // `projects/{project}/locations/{location}` + // where `location` refers to a Google Cloud region. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "memorystore.googleapis.com/AclPolicy" + } + ]; + + // Required. The logical name of the ACL policy in the customer project + // with the following restrictions: + // + // * Must contain only lowercase letters, numbers, and hyphens. + // * Must start with a letter. + // * Must be between 1-63 characters. + // * Must end with a number or a letter. + // * Must be unique within the customer project / location + string acl_policy_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ACL policy that is to be created. + AclPolicy acl_policy = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Idempotent request UUID. + // . + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + // Request message for [CreateInstance][]. message CreateInstanceRequest { // Required. The parent resource where this instance will be created. @@ -1791,6 +2222,26 @@ message CreateInstanceRequest { ]; } +// Request for `UpdateAclPolicy`. +message UpdateAclPolicyRequest { + // Required. The ACL policy to be updated. + AclPolicy acl_policy = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Mask of fields to be updated. At least one path must be supplied + // in this field. The elements of the repeated paths field may only include + // these fields from `AclPolicy`: + // + // * `rules` + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Idempotent request UUID. + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + // Request message for [UpdateInstance][]. message UpdateInstanceRequest { // Optional. The list of fields to be updated on the instance. At least one @@ -1820,6 +2271,29 @@ message UpdateInstanceRequest { ]; } +// Request for `DeleteAclPolicy`. +message DeleteAclPolicyRequest { + // Required. Memorystore ACL policy resource name using the form: + // `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}` + // where `location` refers to a Google Cloud region. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "memorystore.googleapis.com/AclPolicy" + } + ]; + + // Optional. Idempotent request UUID. + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; + + // Optional. Etag of the ACL policy. If this is different from the server's + // etag, the request will fail with an ABORTED error. + string etag = 3 [(google.api.field_behavior) = OPTIONAL]; +} + // Request message for [DeleteInstance][]. message DeleteInstanceRequest { // Required. The name of the instance to delete. diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/createaclpolicy/AsyncCreateAclPolicy.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/createaclpolicy/AsyncCreateAclPolicy.java new file mode 100644 index 000000000000..091ca1e9a5c9 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/createaclpolicy/AsyncCreateAclPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_CreateAclPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.memorystore.v1beta.AclPolicy; +import com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest; +import com.google.cloud.memorystore.v1beta.LocationName; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; + +public class AsyncCreateAclPolicy { + + public static void main(String[] args) throws Exception { + asyncCreateAclPolicy(); + } + + public static void asyncCreateAclPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + CreateAclPolicyRequest request = + CreateAclPolicyRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAclPolicyId("aclPolicyId-1805591401") + .setAclPolicy(AclPolicy.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = memorystoreClient.createAclPolicyCallable().futureCall(request); + // Do something. + AclPolicy response = future.get(); + } + } +} +// [END memorystore_v1beta_generated_Memorystore_CreateAclPolicy_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/createaclpolicy/SyncCreateAclPolicy.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/createaclpolicy/SyncCreateAclPolicy.java new file mode 100644 index 000000000000..9b5a32a9eed2 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/createaclpolicy/SyncCreateAclPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_CreateAclPolicy_sync] +import com.google.cloud.memorystore.v1beta.AclPolicy; +import com.google.cloud.memorystore.v1beta.CreateAclPolicyRequest; +import com.google.cloud.memorystore.v1beta.LocationName; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; + +public class SyncCreateAclPolicy { + + public static void main(String[] args) throws Exception { + syncCreateAclPolicy(); + } + + public static void syncCreateAclPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + CreateAclPolicyRequest request = + CreateAclPolicyRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAclPolicyId("aclPolicyId-1805591401") + .setAclPolicy(AclPolicy.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + AclPolicy response = memorystoreClient.createAclPolicy(request); + } + } +} +// [END memorystore_v1beta_generated_Memorystore_CreateAclPolicy_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/createaclpolicy/SyncCreateAclPolicyLocationnameAclpolicyString.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/createaclpolicy/SyncCreateAclPolicyLocationnameAclpolicyString.java new file mode 100644 index 000000000000..cec40fa31842 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/createaclpolicy/SyncCreateAclPolicyLocationnameAclpolicyString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_CreateAclPolicy_LocationnameAclpolicyString_sync] +import com.google.cloud.memorystore.v1beta.AclPolicy; +import com.google.cloud.memorystore.v1beta.LocationName; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; + +public class SyncCreateAclPolicyLocationnameAclpolicyString { + + public static void main(String[] args) throws Exception { + syncCreateAclPolicyLocationnameAclpolicyString(); + } + + public static void syncCreateAclPolicyLocationnameAclpolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + String aclPolicyId = "aclPolicyId-1805591401"; + AclPolicy response = memorystoreClient.createAclPolicy(parent, aclPolicy, aclPolicyId); + } + } +} +// [END memorystore_v1beta_generated_Memorystore_CreateAclPolicy_LocationnameAclpolicyString_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/createaclpolicy/SyncCreateAclPolicyStringAclpolicyString.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/createaclpolicy/SyncCreateAclPolicyStringAclpolicyString.java new file mode 100644 index 000000000000..971ed6cd2521 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/createaclpolicy/SyncCreateAclPolicyStringAclpolicyString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_CreateAclPolicy_StringAclpolicyString_sync] +import com.google.cloud.memorystore.v1beta.AclPolicy; +import com.google.cloud.memorystore.v1beta.LocationName; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; + +public class SyncCreateAclPolicyStringAclpolicyString { + + public static void main(String[] args) throws Exception { + syncCreateAclPolicyStringAclpolicyString(); + } + + public static void syncCreateAclPolicyStringAclpolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + String aclPolicyId = "aclPolicyId-1805591401"; + AclPolicy response = memorystoreClient.createAclPolicy(parent, aclPolicy, aclPolicyId); + } + } +} +// [END memorystore_v1beta_generated_Memorystore_CreateAclPolicy_StringAclpolicyString_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/deleteaclpolicy/AsyncDeleteAclPolicy.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/deleteaclpolicy/AsyncDeleteAclPolicy.java new file mode 100644 index 000000000000..aeb3817a9816 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/deleteaclpolicy/AsyncDeleteAclPolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_DeleteAclPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.memorystore.v1beta.AclPolicyName; +import com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteAclPolicy { + + public static void main(String[] args) throws Exception { + asyncDeleteAclPolicy(); + } + + public static void asyncDeleteAclPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + DeleteAclPolicyRequest request = + DeleteAclPolicyRequest.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setRequestId("requestId693933066") + .setEtag("etag3123477") + .build(); + ApiFuture future = memorystoreClient.deleteAclPolicyCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END memorystore_v1beta_generated_Memorystore_DeleteAclPolicy_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/deleteaclpolicy/AsyncDeleteAclPolicyLRO.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/deleteaclpolicy/AsyncDeleteAclPolicyLRO.java new file mode 100644 index 000000000000..edb173b8194c --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/deleteaclpolicy/AsyncDeleteAclPolicyLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_DeleteAclPolicy_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.memorystore.v1beta.AclPolicyName; +import com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; +import com.google.cloud.memorystore.v1beta.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteAclPolicyLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteAclPolicyLRO(); + } + + public static void asyncDeleteAclPolicyLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + DeleteAclPolicyRequest request = + DeleteAclPolicyRequest.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setRequestId("requestId693933066") + .setEtag("etag3123477") + .build(); + OperationFuture future = + memorystoreClient.deleteAclPolicyOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END memorystore_v1beta_generated_Memorystore_DeleteAclPolicy_LRO_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/deleteaclpolicy/SyncDeleteAclPolicy.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/deleteaclpolicy/SyncDeleteAclPolicy.java new file mode 100644 index 000000000000..db190acad0d5 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/deleteaclpolicy/SyncDeleteAclPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_DeleteAclPolicy_sync] +import com.google.cloud.memorystore.v1beta.AclPolicyName; +import com.google.cloud.memorystore.v1beta.DeleteAclPolicyRequest; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAclPolicy { + + public static void main(String[] args) throws Exception { + syncDeleteAclPolicy(); + } + + public static void syncDeleteAclPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + DeleteAclPolicyRequest request = + DeleteAclPolicyRequest.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setRequestId("requestId693933066") + .setEtag("etag3123477") + .build(); + memorystoreClient.deleteAclPolicyAsync(request).get(); + } + } +} +// [END memorystore_v1beta_generated_Memorystore_DeleteAclPolicy_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/deleteaclpolicy/SyncDeleteAclPolicyAclpolicyname.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/deleteaclpolicy/SyncDeleteAclPolicyAclpolicyname.java new file mode 100644 index 000000000000..833f17177cd1 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/deleteaclpolicy/SyncDeleteAclPolicyAclpolicyname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_DeleteAclPolicy_Aclpolicyname_sync] +import com.google.cloud.memorystore.v1beta.AclPolicyName; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAclPolicyAclpolicyname { + + public static void main(String[] args) throws Exception { + syncDeleteAclPolicyAclpolicyname(); + } + + public static void syncDeleteAclPolicyAclpolicyname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + memorystoreClient.deleteAclPolicyAsync(name).get(); + } + } +} +// [END memorystore_v1beta_generated_Memorystore_DeleteAclPolicy_Aclpolicyname_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/deleteaclpolicy/SyncDeleteAclPolicyString.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/deleteaclpolicy/SyncDeleteAclPolicyString.java new file mode 100644 index 000000000000..a2c013831642 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/deleteaclpolicy/SyncDeleteAclPolicyString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_DeleteAclPolicy_String_sync] +import com.google.cloud.memorystore.v1beta.AclPolicyName; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAclPolicyString { + + public static void main(String[] args) throws Exception { + syncDeleteAclPolicyString(); + } + + public static void syncDeleteAclPolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + String name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString(); + memorystoreClient.deleteAclPolicyAsync(name).get(); + } + } +} +// [END memorystore_v1beta_generated_Memorystore_DeleteAclPolicy_String_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/getaclpolicy/AsyncGetAclPolicy.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/getaclpolicy/AsyncGetAclPolicy.java new file mode 100644 index 000000000000..5ac37179e5b5 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/getaclpolicy/AsyncGetAclPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_GetAclPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.memorystore.v1beta.AclPolicy; +import com.google.cloud.memorystore.v1beta.AclPolicyName; +import com.google.cloud.memorystore.v1beta.GetAclPolicyRequest; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; + +public class AsyncGetAclPolicy { + + public static void main(String[] args) throws Exception { + asyncGetAclPolicy(); + } + + public static void asyncGetAclPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + GetAclPolicyRequest request = + GetAclPolicyRequest.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .build(); + ApiFuture future = memorystoreClient.getAclPolicyCallable().futureCall(request); + // Do something. + AclPolicy response = future.get(); + } + } +} +// [END memorystore_v1beta_generated_Memorystore_GetAclPolicy_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/getaclpolicy/SyncGetAclPolicy.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/getaclpolicy/SyncGetAclPolicy.java new file mode 100644 index 000000000000..c86497c26730 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/getaclpolicy/SyncGetAclPolicy.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_GetAclPolicy_sync] +import com.google.cloud.memorystore.v1beta.AclPolicy; +import com.google.cloud.memorystore.v1beta.AclPolicyName; +import com.google.cloud.memorystore.v1beta.GetAclPolicyRequest; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; + +public class SyncGetAclPolicy { + + public static void main(String[] args) throws Exception { + syncGetAclPolicy(); + } + + public static void syncGetAclPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + GetAclPolicyRequest request = + GetAclPolicyRequest.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .build(); + AclPolicy response = memorystoreClient.getAclPolicy(request); + } + } +} +// [END memorystore_v1beta_generated_Memorystore_GetAclPolicy_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/getaclpolicy/SyncGetAclPolicyAclpolicyname.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/getaclpolicy/SyncGetAclPolicyAclpolicyname.java new file mode 100644 index 000000000000..816559c9dbf3 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/getaclpolicy/SyncGetAclPolicyAclpolicyname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_GetAclPolicy_Aclpolicyname_sync] +import com.google.cloud.memorystore.v1beta.AclPolicy; +import com.google.cloud.memorystore.v1beta.AclPolicyName; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; + +public class SyncGetAclPolicyAclpolicyname { + + public static void main(String[] args) throws Exception { + syncGetAclPolicyAclpolicyname(); + } + + public static void syncGetAclPolicyAclpolicyname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + AclPolicy response = memorystoreClient.getAclPolicy(name); + } + } +} +// [END memorystore_v1beta_generated_Memorystore_GetAclPolicy_Aclpolicyname_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/getaclpolicy/SyncGetAclPolicyString.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/getaclpolicy/SyncGetAclPolicyString.java new file mode 100644 index 000000000000..86a1f1e32b00 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/getaclpolicy/SyncGetAclPolicyString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_GetAclPolicy_String_sync] +import com.google.cloud.memorystore.v1beta.AclPolicy; +import com.google.cloud.memorystore.v1beta.AclPolicyName; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; + +public class SyncGetAclPolicyString { + + public static void main(String[] args) throws Exception { + syncGetAclPolicyString(); + } + + public static void syncGetAclPolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + String name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString(); + AclPolicy response = memorystoreClient.getAclPolicy(name); + } + } +} +// [END memorystore_v1beta_generated_Memorystore_GetAclPolicy_String_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/getaclpolicyrevision/AsyncGetAclPolicyRevision.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/getaclpolicyrevision/AsyncGetAclPolicyRevision.java new file mode 100644 index 000000000000..14cc1333af3b --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/getaclpolicyrevision/AsyncGetAclPolicyRevision.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_GetAclPolicyRevision_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.memorystore.v1beta.AclPolicyRevision; +import com.google.cloud.memorystore.v1beta.AclPolicyRevisionName; +import com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; + +public class AsyncGetAclPolicyRevision { + + public static void main(String[] args) throws Exception { + asyncGetAclPolicyRevision(); + } + + public static void asyncGetAclPolicyRevision() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + GetAclPolicyRevisionRequest request = + GetAclPolicyRevisionRequest.newBuilder() + .setName( + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + .toString()) + .build(); + ApiFuture future = + memorystoreClient.getAclPolicyRevisionCallable().futureCall(request); + // Do something. + AclPolicyRevision response = future.get(); + } + } +} +// [END memorystore_v1beta_generated_Memorystore_GetAclPolicyRevision_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/getaclpolicyrevision/SyncGetAclPolicyRevision.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/getaclpolicyrevision/SyncGetAclPolicyRevision.java new file mode 100644 index 000000000000..340fee459f04 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/getaclpolicyrevision/SyncGetAclPolicyRevision.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_GetAclPolicyRevision_sync] +import com.google.cloud.memorystore.v1beta.AclPolicyRevision; +import com.google.cloud.memorystore.v1beta.AclPolicyRevisionName; +import com.google.cloud.memorystore.v1beta.GetAclPolicyRevisionRequest; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; + +public class SyncGetAclPolicyRevision { + + public static void main(String[] args) throws Exception { + syncGetAclPolicyRevision(); + } + + public static void syncGetAclPolicyRevision() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + GetAclPolicyRevisionRequest request = + GetAclPolicyRevisionRequest.newBuilder() + .setName( + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + .toString()) + .build(); + AclPolicyRevision response = memorystoreClient.getAclPolicyRevision(request); + } + } +} +// [END memorystore_v1beta_generated_Memorystore_GetAclPolicyRevision_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/getaclpolicyrevision/SyncGetAclPolicyRevisionAclpolicyrevisionname.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/getaclpolicyrevision/SyncGetAclPolicyRevisionAclpolicyrevisionname.java new file mode 100644 index 000000000000..bdf622008182 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/getaclpolicyrevision/SyncGetAclPolicyRevisionAclpolicyrevisionname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_GetAclPolicyRevision_Aclpolicyrevisionname_sync] +import com.google.cloud.memorystore.v1beta.AclPolicyRevision; +import com.google.cloud.memorystore.v1beta.AclPolicyRevisionName; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; + +public class SyncGetAclPolicyRevisionAclpolicyrevisionname { + + public static void main(String[] args) throws Exception { + syncGetAclPolicyRevisionAclpolicyrevisionname(); + } + + public static void syncGetAclPolicyRevisionAclpolicyrevisionname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + AclPolicyRevisionName name = + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]"); + AclPolicyRevision response = memorystoreClient.getAclPolicyRevision(name); + } + } +} +// [END memorystore_v1beta_generated_Memorystore_GetAclPolicyRevision_Aclpolicyrevisionname_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/getaclpolicyrevision/SyncGetAclPolicyRevisionString.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/getaclpolicyrevision/SyncGetAclPolicyRevisionString.java new file mode 100644 index 000000000000..2bd04cbc8068 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/getaclpolicyrevision/SyncGetAclPolicyRevisionString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_GetAclPolicyRevision_String_sync] +import com.google.cloud.memorystore.v1beta.AclPolicyRevision; +import com.google.cloud.memorystore.v1beta.AclPolicyRevisionName; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; + +public class SyncGetAclPolicyRevisionString { + + public static void main(String[] args) throws Exception { + syncGetAclPolicyRevisionString(); + } + + public static void syncGetAclPolicyRevisionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + String name = + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + .toString(); + AclPolicyRevision response = memorystoreClient.getAclPolicyRevision(name); + } + } +} +// [END memorystore_v1beta_generated_Memorystore_GetAclPolicyRevision_String_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicies/AsyncListAclPolicies.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicies/AsyncListAclPolicies.java new file mode 100644 index 000000000000..6a59507cfc5c --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicies/AsyncListAclPolicies.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_ListAclPolicies_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.memorystore.v1beta.AclPolicy; +import com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest; +import com.google.cloud.memorystore.v1beta.LocationName; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; + +public class AsyncListAclPolicies { + + public static void main(String[] args) throws Exception { + asyncListAclPolicies(); + } + + public static void asyncListAclPolicies() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + ListAclPoliciesRequest request = + ListAclPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + memorystoreClient.listAclPoliciesPagedCallable().futureCall(request); + // Do something. + for (AclPolicy element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END memorystore_v1beta_generated_Memorystore_ListAclPolicies_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicies/AsyncListAclPoliciesPaged.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicies/AsyncListAclPoliciesPaged.java new file mode 100644 index 000000000000..15d9dc684ac2 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicies/AsyncListAclPoliciesPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_ListAclPolicies_Paged_async] +import com.google.cloud.memorystore.v1beta.AclPolicy; +import com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest; +import com.google.cloud.memorystore.v1beta.ListAclPoliciesResponse; +import com.google.cloud.memorystore.v1beta.LocationName; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; +import com.google.common.base.Strings; + +public class AsyncListAclPoliciesPaged { + + public static void main(String[] args) throws Exception { + asyncListAclPoliciesPaged(); + } + + public static void asyncListAclPoliciesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + ListAclPoliciesRequest request = + ListAclPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListAclPoliciesResponse response = + memorystoreClient.listAclPoliciesCallable().call(request); + for (AclPolicy element : response.getAclPoliciesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END memorystore_v1beta_generated_Memorystore_ListAclPolicies_Paged_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicies/SyncListAclPolicies.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicies/SyncListAclPolicies.java new file mode 100644 index 000000000000..f87a8e9ca373 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicies/SyncListAclPolicies.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_ListAclPolicies_sync] +import com.google.cloud.memorystore.v1beta.AclPolicy; +import com.google.cloud.memorystore.v1beta.ListAclPoliciesRequest; +import com.google.cloud.memorystore.v1beta.LocationName; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; + +public class SyncListAclPolicies { + + public static void main(String[] args) throws Exception { + syncListAclPolicies(); + } + + public static void syncListAclPolicies() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + ListAclPoliciesRequest request = + ListAclPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (AclPolicy element : memorystoreClient.listAclPolicies(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END memorystore_v1beta_generated_Memorystore_ListAclPolicies_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicies/SyncListAclPoliciesLocationname.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicies/SyncListAclPoliciesLocationname.java new file mode 100644 index 000000000000..08682deda159 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicies/SyncListAclPoliciesLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_ListAclPolicies_Locationname_sync] +import com.google.cloud.memorystore.v1beta.AclPolicy; +import com.google.cloud.memorystore.v1beta.LocationName; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; + +public class SyncListAclPoliciesLocationname { + + public static void main(String[] args) throws Exception { + syncListAclPoliciesLocationname(); + } + + public static void syncListAclPoliciesLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (AclPolicy element : memorystoreClient.listAclPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END memorystore_v1beta_generated_Memorystore_ListAclPolicies_Locationname_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicies/SyncListAclPoliciesString.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicies/SyncListAclPoliciesString.java new file mode 100644 index 000000000000..2d909917041f --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicies/SyncListAclPoliciesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_ListAclPolicies_String_sync] +import com.google.cloud.memorystore.v1beta.AclPolicy; +import com.google.cloud.memorystore.v1beta.LocationName; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; + +public class SyncListAclPoliciesString { + + public static void main(String[] args) throws Exception { + syncListAclPoliciesString(); + } + + public static void syncListAclPoliciesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (AclPolicy element : memorystoreClient.listAclPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END memorystore_v1beta_generated_Memorystore_ListAclPolicies_String_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicyrevisions/AsyncListAclPolicyRevisions.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicyrevisions/AsyncListAclPolicyRevisions.java new file mode 100644 index 000000000000..0ec8857728ad --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicyrevisions/AsyncListAclPolicyRevisions.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_ListAclPolicyRevisions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.memorystore.v1beta.AclPolicyName; +import com.google.cloud.memorystore.v1beta.AclPolicyRevision; +import com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; + +public class AsyncListAclPolicyRevisions { + + public static void main(String[] args) throws Exception { + asyncListAclPolicyRevisions(); + } + + public static void asyncListAclPolicyRevisions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + ListAclPolicyRevisionsRequest request = + ListAclPolicyRevisionsRequest.newBuilder() + .setParent(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + memorystoreClient.listAclPolicyRevisionsPagedCallable().futureCall(request); + // Do something. + for (AclPolicyRevision element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END memorystore_v1beta_generated_Memorystore_ListAclPolicyRevisions_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicyrevisions/AsyncListAclPolicyRevisionsPaged.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicyrevisions/AsyncListAclPolicyRevisionsPaged.java new file mode 100644 index 000000000000..cda064d86f4c --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicyrevisions/AsyncListAclPolicyRevisionsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_ListAclPolicyRevisions_Paged_async] +import com.google.cloud.memorystore.v1beta.AclPolicyName; +import com.google.cloud.memorystore.v1beta.AclPolicyRevision; +import com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest; +import com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsResponse; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; +import com.google.common.base.Strings; + +public class AsyncListAclPolicyRevisionsPaged { + + public static void main(String[] args) throws Exception { + asyncListAclPolicyRevisionsPaged(); + } + + public static void asyncListAclPolicyRevisionsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + ListAclPolicyRevisionsRequest request = + ListAclPolicyRevisionsRequest.newBuilder() + .setParent(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListAclPolicyRevisionsResponse response = + memorystoreClient.listAclPolicyRevisionsCallable().call(request); + for (AclPolicyRevision element : response.getAclPolicyRevisionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END memorystore_v1beta_generated_Memorystore_ListAclPolicyRevisions_Paged_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicyrevisions/SyncListAclPolicyRevisions.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicyrevisions/SyncListAclPolicyRevisions.java new file mode 100644 index 000000000000..5ec0b595e55c --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicyrevisions/SyncListAclPolicyRevisions.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_ListAclPolicyRevisions_sync] +import com.google.cloud.memorystore.v1beta.AclPolicyName; +import com.google.cloud.memorystore.v1beta.AclPolicyRevision; +import com.google.cloud.memorystore.v1beta.ListAclPolicyRevisionsRequest; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; + +public class SyncListAclPolicyRevisions { + + public static void main(String[] args) throws Exception { + syncListAclPolicyRevisions(); + } + + public static void syncListAclPolicyRevisions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + ListAclPolicyRevisionsRequest request = + ListAclPolicyRevisionsRequest.newBuilder() + .setParent(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (AclPolicyRevision element : + memorystoreClient.listAclPolicyRevisions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END memorystore_v1beta_generated_Memorystore_ListAclPolicyRevisions_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicyrevisions/SyncListAclPolicyRevisionsAclpolicyname.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicyrevisions/SyncListAclPolicyRevisionsAclpolicyname.java new file mode 100644 index 000000000000..6fb041e31bf1 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicyrevisions/SyncListAclPolicyRevisionsAclpolicyname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_ListAclPolicyRevisions_Aclpolicyname_sync] +import com.google.cloud.memorystore.v1beta.AclPolicyName; +import com.google.cloud.memorystore.v1beta.AclPolicyRevision; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; + +public class SyncListAclPolicyRevisionsAclpolicyname { + + public static void main(String[] args) throws Exception { + syncListAclPolicyRevisionsAclpolicyname(); + } + + public static void syncListAclPolicyRevisionsAclpolicyname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + AclPolicyName parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + for (AclPolicyRevision element : + memorystoreClient.listAclPolicyRevisions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END memorystore_v1beta_generated_Memorystore_ListAclPolicyRevisions_Aclpolicyname_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicyrevisions/SyncListAclPolicyRevisionsString.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicyrevisions/SyncListAclPolicyRevisionsString.java new file mode 100644 index 000000000000..2c4f546b7cee --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/listaclpolicyrevisions/SyncListAclPolicyRevisionsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_ListAclPolicyRevisions_String_sync] +import com.google.cloud.memorystore.v1beta.AclPolicyName; +import com.google.cloud.memorystore.v1beta.AclPolicyRevision; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; + +public class SyncListAclPolicyRevisionsString { + + public static void main(String[] args) throws Exception { + syncListAclPolicyRevisionsString(); + } + + public static void syncListAclPolicyRevisionsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + String parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString(); + for (AclPolicyRevision element : + memorystoreClient.listAclPolicyRevisions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END memorystore_v1beta_generated_Memorystore_ListAclPolicyRevisions_String_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/updateaclpolicy/AsyncUpdateAclPolicy.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/updateaclpolicy/AsyncUpdateAclPolicy.java new file mode 100644 index 000000000000..8e3c7631ef0e --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/updateaclpolicy/AsyncUpdateAclPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_UpdateAclPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.memorystore.v1beta.AclPolicy; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; +import com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAclPolicy { + + public static void main(String[] args) throws Exception { + asyncUpdateAclPolicy(); + } + + public static void asyncUpdateAclPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + UpdateAclPolicyRequest request = + UpdateAclPolicyRequest.newBuilder() + .setAclPolicy(AclPolicy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = memorystoreClient.updateAclPolicyCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END memorystore_v1beta_generated_Memorystore_UpdateAclPolicy_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/updateaclpolicy/AsyncUpdateAclPolicyLRO.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/updateaclpolicy/AsyncUpdateAclPolicyLRO.java new file mode 100644 index 000000000000..36a8791bc51f --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/updateaclpolicy/AsyncUpdateAclPolicyLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_UpdateAclPolicy_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.memorystore.v1beta.AclPolicy; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; +import com.google.cloud.memorystore.v1beta.OperationMetadata; +import com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAclPolicyLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateAclPolicyLRO(); + } + + public static void asyncUpdateAclPolicyLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + UpdateAclPolicyRequest request = + UpdateAclPolicyRequest.newBuilder() + .setAclPolicy(AclPolicy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + memorystoreClient.updateAclPolicyOperationCallable().futureCall(request); + // Do something. + AclPolicy response = future.get(); + } + } +} +// [END memorystore_v1beta_generated_Memorystore_UpdateAclPolicy_LRO_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/updateaclpolicy/SyncUpdateAclPolicy.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/updateaclpolicy/SyncUpdateAclPolicy.java new file mode 100644 index 000000000000..bdd331d5f430 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/updateaclpolicy/SyncUpdateAclPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_UpdateAclPolicy_sync] +import com.google.cloud.memorystore.v1beta.AclPolicy; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; +import com.google.cloud.memorystore.v1beta.UpdateAclPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAclPolicy { + + public static void main(String[] args) throws Exception { + syncUpdateAclPolicy(); + } + + public static void syncUpdateAclPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + UpdateAclPolicyRequest request = + UpdateAclPolicyRequest.newBuilder() + .setAclPolicy(AclPolicy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + AclPolicy response = memorystoreClient.updateAclPolicyAsync(request).get(); + } + } +} +// [END memorystore_v1beta_generated_Memorystore_UpdateAclPolicy_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/updateaclpolicy/SyncUpdateAclPolicyAclpolicyFieldmask.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/updateaclpolicy/SyncUpdateAclPolicyAclpolicyFieldmask.java new file mode 100644 index 000000000000..470ae510abd5 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystore/updateaclpolicy/SyncUpdateAclPolicyAclpolicyFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1beta.samples; + +// [START memorystore_v1beta_generated_Memorystore_UpdateAclPolicy_AclpolicyFieldmask_sync] +import com.google.cloud.memorystore.v1beta.AclPolicy; +import com.google.cloud.memorystore.v1beta.MemorystoreClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAclPolicyAclpolicyFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateAclPolicyAclpolicyFieldmask(); + } + + public static void syncUpdateAclPolicyAclpolicyFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + AclPolicy response = memorystoreClient.updateAclPolicyAsync(aclPolicy, updateMask).get(); + } + } +} +// [END memorystore_v1beta_generated_Memorystore_UpdateAclPolicy_AclpolicyFieldmask_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystoresettings/getinstance/SyncGetInstance.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystoresettings/getaclpolicy/SyncGetAclPolicy.java similarity index 85% rename from java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystoresettings/getinstance/SyncGetInstance.java rename to java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystoresettings/getaclpolicy/SyncGetAclPolicy.java index 4068cbe25791..8a19639f483b 100644 --- a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystoresettings/getinstance/SyncGetInstance.java +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/memorystoresettings/getaclpolicy/SyncGetAclPolicy.java @@ -16,17 +16,17 @@ package com.google.cloud.memorystore.v1beta.samples; -// [START memorystore_v1beta_generated_MemorystoreSettings_GetInstance_sync] +// [START memorystore_v1beta_generated_MemorystoreSettings_GetAclPolicy_sync] import com.google.cloud.memorystore.v1beta.MemorystoreSettings; import java.time.Duration; -public class SyncGetInstance { +public class SyncGetAclPolicy { public static void main(String[] args) throws Exception { - syncGetInstance(); + syncGetAclPolicy(); } - public static void syncGetInstance() throws Exception { + public static void syncGetAclPolicy() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -34,10 +34,10 @@ public static void syncGetInstance() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library MemorystoreSettings.Builder memorystoreSettingsBuilder = MemorystoreSettings.newBuilder(); memorystoreSettingsBuilder - .getInstanceSettings() + .getAclPolicySettings() .setRetrySettings( memorystoreSettingsBuilder - .getInstanceSettings() + .getAclPolicySettings() .getRetrySettings() .toBuilder() .setInitialRetryDelayDuration(Duration.ofSeconds(1)) @@ -52,4 +52,4 @@ public static void syncGetInstance() throws Exception { MemorystoreSettings memorystoreSettings = memorystoreSettingsBuilder.build(); } } -// [END memorystore_v1beta_generated_MemorystoreSettings_GetInstance_sync] +// [END memorystore_v1beta_generated_MemorystoreSettings_GetAclPolicy_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/stub/memorystorestubsettings/getinstance/SyncGetInstance.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/stub/memorystorestubsettings/getaclpolicy/SyncGetAclPolicy.java similarity index 90% rename from java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/stub/memorystorestubsettings/getinstance/SyncGetInstance.java rename to java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/stub/memorystorestubsettings/getaclpolicy/SyncGetAclPolicy.java index 3ec436f14e7b..87c1e51c0e7e 100644 --- a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/stub/memorystorestubsettings/getinstance/SyncGetInstance.java +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1beta/stub/memorystorestubsettings/getaclpolicy/SyncGetAclPolicy.java @@ -16,17 +16,17 @@ package com.google.cloud.memorystore.v1beta.stub.samples; -// [START memorystore_v1beta_generated_MemorystoreStubSettings_GetInstance_sync] +// [START memorystore_v1beta_generated_MemorystoreStubSettings_GetAclPolicy_sync] import com.google.cloud.memorystore.v1beta.stub.MemorystoreStubSettings; import java.time.Duration; -public class SyncGetInstance { +public class SyncGetAclPolicy { public static void main(String[] args) throws Exception { - syncGetInstance(); + syncGetAclPolicy(); } - public static void syncGetInstance() throws Exception { + public static void syncGetAclPolicy() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -35,10 +35,10 @@ public static void syncGetInstance() throws Exception { MemorystoreStubSettings.Builder memorystoreSettingsBuilder = MemorystoreStubSettings.newBuilder(); memorystoreSettingsBuilder - .getInstanceSettings() + .getAclPolicySettings() .setRetrySettings( memorystoreSettingsBuilder - .getInstanceSettings() + .getAclPolicySettings() .getRetrySettings() .toBuilder() .setInitialRetryDelayDuration(Duration.ofSeconds(1)) @@ -53,4 +53,4 @@ public static void syncGetInstance() throws Exception { MemorystoreStubSettings memorystoreSettings = memorystoreSettingsBuilder.build(); } } -// [END memorystore_v1beta_generated_MemorystoreStubSettings_GetInstance_sync] +// [END memorystore_v1beta_generated_MemorystoreStubSettings_GetAclPolicy_sync] diff --git a/librarian.yaml b/librarian.yaml index 72e194276a79..67f4956e9b9f 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -16,8 +16,8 @@ version: v0.48.0 repo: googleapis/google-cloud-java sources: googleapis: - commit: ab5c1b0777e6f1f7c89bd0eb55b05532d97b68e0 - sha256: a49e9e9a4078980c4681b821f705f1fb4b8b459ca80df42b696d128a70a92724 + commit: b6efa15f5537f053786e5d8875d75bc3a6246455 + sha256: d432e85ea4bb83e7b0ed83415d24fae57a52e7c51afc7a96c6147a27da85eb02 showcase: commit: 5158967e8a41c751b15776142d190428ddb7e99f sha256: a31271ff2cdeb7cce91e93a4d58a66dcaaac574c51cc14bd74577ab1eafd3ccd